Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5945 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.inventory;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class InventoryService {
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
27
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException;
28
 
29
    /**
30
     * add a new vendor
31
     * 
32
     * @param vendor
33
     */
34
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException;
35
 
36
    /**
37
     * Stores the incremental warehouse updates of items.
38
     * 
39
     * @param warehouse_id
40
     * @param timestamp
41
     * @param availability
42
     */
43
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
44
 
45
    /**
46
     * Stores the final inventory stocks of items.
47
     * 
48
     * @param warehouse_id
49
     * @param timestamp
50
     * @param availability
51
     */
52
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
53
 
54
    /**
55
     * Add the inventory to existing stock.
56
     * 
57
     * @param itemId
58
     * @param warehouseId
59
     * @param quantity
60
     */
61
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
62
 
63
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
64
 
65
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
66
 
67
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException;
68
 
69
    /**
70
     * Determines the warehouse that should be used to fulfil an order for the given item.
71
     * It first checks all the warehouses which are in the logistics location given by the
72
     * warehouse_loc parameter. If none of the warehouses there have any inventory, then the
73
     * preferred warehouse for the item is used.
74
     * 
75
     * Returns an ordered list of size 4 with following elements in the given order:
76
     * 1. Id of the fulfillment warehouse which was finally picked up.
77
     * 2. Expected delay added by the category manager.
78
     * 3. Id of the billing warehouse which was finally picked up.
79
     * 
80
     * @param itemId
5978 rajveer 81
     * @param sourceId
5945 mandeep.dh 82
     */
5978 rajveer 83
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 84
 
85
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
86
 
87
    /**
88
     * Returns the warehouse with the given id.
89
     * 
90
     * @param warehouse_id
91
     */
92
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
93
 
94
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
95
 
96
    /**
5978 rajveer 97
     * Depending on reservation in the table, verify if we can bill this order or not.
5967 rajveer 98
     * 
99
     * @param itemId
100
     * @param warehouseId
101
     * @param sourceId
102
     * @param orderId
103
     */
104
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException;
105
 
106
    /**
5945 mandeep.dh 107
     * Increases the reservation count for an item in a warehouse. Should always succeed normally.
108
     * 
109
     * @param itemId
110
     * @param warehouseId
5967 rajveer 111
     * @param sourceId
112
     * @param orderId
113
     * @param createdTimestamp
114
     * @param promisedShippingTimestamp
5945 mandeep.dh 115
     * @param quantity
116
     */
5967 rajveer 117
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 118
 
119
    /**
7968 amar.kumar 120
     * Updates the reservation for Order
121
     * 
122
     * @param itemId
123
     * @param warehouseId
124
     * @param sourceId
125
     * @param orderId
126
     * @param createdTimestamp
127
     * @param promisedShippingTimestamp
128
     * @param quantity
129
     */
130
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
131
 
132
    /**
5945 mandeep.dh 133
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
134
     * 
135
     * @param itemId
136
     * @param warehouseId
5967 rajveer 137
     * @param sourceId
138
     * @param orderId
5945 mandeep.dh 139
     * @param quantity
140
     */
5967 rajveer 141
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 142
 
143
    /**
144
     * Returns the pricing information of an item associated with the vendor of the given warehouse.
145
     * Raises an exception if either the item, vendor or the associated pricing information can't be found.
146
     * 
147
     * @param itemId
148
     * @param vendorId
149
     */
150
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException;
151
 
152
    /**
153
     * Returns the list of vendor pricing information of an item.
154
     * Raises an exception if item not found corresponding to itemId
155
     * 
156
     * @param itemId
157
     */
158
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
159
 
160
    /**
161
     * Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
162
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
163
     * 
164
     * @param vendorItemPricing
165
     */
166
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException;
167
 
168
    /**
169
     * Returns a vendor given its id
170
     * 
171
     * @param vendorId
172
     */
173
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException;
174
 
175
    /**
176
     * Return list of all vendors
177
     */
178
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
179
 
180
    /**
181
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
182
     * 
183
     * @param key
184
     * @param vendorItemMapping
185
     */
186
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException;
187
 
188
    /**
189
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
190
     * Raises an exception if item not found corresponding to itemId
191
     * 
192
     * @param itemId
193
     */
194
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
195
 
196
    /**
197
     * Returns a list of inventory stock for items for which there are pending orders for the given vendor.
198
     * 
199
     * @param vendorid
200
     */
201
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
202
 
203
    /**
204
     * This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
205
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
206
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
207
     *    getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
208
     *    getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
209
     * 
210
     * @param warehouseType
211
     * @param inventoryType
212
     * @param vendorId
213
     * @param billingWarehouseId
214
     * @param shippingWarehouseId
215
     */
216
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException;
217
 
218
    /**
219
     * Resets availability of an item to the quantity mentioned in a warehouse.
220
     * 
221
     * @param itemKey
222
     * @param vendorId
223
     * @param quantity
224
     * @param warehouseId
225
     */
226
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
227
 
228
    /**
229
     * Resets availability of a warehouse to zero.
230
     * 
231
     * @param warehouseId
232
     */
233
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
234
 
235
    /**
236
     * Returns the list of item keys which need to be processed for a given warehouse.
237
     * This is currently used by Support application to send item keys whose inventory needs
238
     * to be updated from PLB
239
     * 
240
     * @param warehouseId
241
     */
242
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException;
243
 
244
    /**
245
     * Marks/Deletes missed inventory updates for a given key and warehouse.
246
     * This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
247
     * 
248
     * @param itemKey
249
     * @param warehouseId
250
     */
251
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
252
 
253
    /**
254
     * Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
255
     * and the timestamp from where alert was raised.
256
     */
257
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException;
258
 
259
    /**
260
     * Add the BAD type inventory to existing stock.
261
     * 
262
     * @param itemId
263
     * @param warehouseId
264
     * @param quantity
265
     */
266
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
267
 
268
    /**
269
     * Returns all shipping locations
270
     */
271
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException;
272
 
273
    /**
274
     * Fetches all the vendor item mappings present.
275
     */
276
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException;
277
 
278
    /**
279
     * Gets items' inventory for a warehouse
280
     * If warehouse is passed as zero, items' inventory across all warehouses is sent
281
     * 
282
     * @param warehouseId
283
     */
284
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException;
285
 
286
    /**
287
     * Clear item availability cache.
288
     */
289
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
290
 
291
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
292
 
6096 amit.gupta 293
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
294
 
7718 amar.kumar 295
    public long getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException;
6467 amar.kumar 296
 
6484 amar.kumar 297
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException;
298
 
6531 vikram.rag 299
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException;
300
 
301
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException;
302
 
303
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException;
304
 
305
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException;
306
 
307
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
308
 
309
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
310
 
6821 amar.kumar 311
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException;
312
 
313
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
314
 
315
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
316
 
6832 amar.kumar 317
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
318
 
6857 amar.kumar 319
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
320
 
7149 amar.kumar 321
    /**
322
     * Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
323
     */
324
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
325
 
7281 kshitij.so 326
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException;
327
 
328
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException;
329
 
330
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException;
331
 
332
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException;
333
 
7972 amar.kumar 334
    public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException;
335
 
8182 amar.kumar 336
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException;
337
 
5945 mandeep.dh 338
  }
339
 
340
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
341
 
342
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    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;
347
 
348
    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;
349
 
350
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
351
 
352
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
355
 
356
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
357
 
5978 rajveer 358
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 359
 
360
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
361
 
362
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
363
 
364
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
365
 
5967 rajveer 366
    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 367
 
5967 rajveer 368
    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 369
 
7968 amar.kumar 370
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException;
371
 
5967 rajveer 372
    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;
373
 
5945 mandeep.dh 374
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
375
 
376
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
377
 
378
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
379
 
380
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
381
 
382
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
383
 
384
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
385
 
386
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
387
 
388
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
389
 
390
    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;
391
 
392
    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;
393
 
394
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
395
 
396
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
397
 
398
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
399
 
400
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
401
 
402
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
403
 
404
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
405
 
406
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
407
 
408
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
409
 
410
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
411
 
412
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
413
 
6096 amit.gupta 414
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
415
 
7718 amar.kumar 416
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
6467 amar.kumar 417
 
6484 amar.kumar 418
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
419
 
6531 vikram.rag 420
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
421
 
422
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
423
 
424
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
425
 
426
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
427
 
428
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
429
 
430
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
431
 
6821 amar.kumar 432
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
433
 
434
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
435
 
436
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
437
 
6832 amar.kumar 438
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
439
 
6857 amar.kumar 440
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
441
 
7149 amar.kumar 442
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
443
 
7281 kshitij.so 444
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseName_call> resultHandler) throws org.apache.thrift.TException;
445
 
446
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
447
 
448
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException;
449
 
450
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
451
 
7972 amar.kumar 452
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException;
453
 
8182 amar.kumar 454
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
455
 
5945 mandeep.dh 456
  }
457
 
458
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
459
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
460
      public Factory() {}
461
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
462
        return new Client(prot);
463
      }
464
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
465
        return new Client(iprot, oprot);
466
      }
467
    }
468
 
469
    public Client(org.apache.thrift.protocol.TProtocol prot)
470
    {
471
      super(prot, prot);
472
    }
473
 
474
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
475
      super(iprot, oprot);
476
    }
477
 
478
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
479
    {
480
      send_addWarehouse(warehouse);
481
      return recv_addWarehouse();
482
    }
483
 
484
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
485
    {
486
      addWarehouse_args args = new addWarehouse_args();
487
      args.setWarehouse(warehouse);
488
      sendBase("addWarehouse", args);
489
    }
490
 
491
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
492
    {
493
      addWarehouse_result result = new addWarehouse_result();
494
      receiveBase(result, "addWarehouse");
495
      if (result.isSetSuccess()) {
496
        return result.success;
497
      }
498
      if (result.cex != null) {
499
        throw result.cex;
500
      }
501
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
502
    }
503
 
504
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
505
    {
506
      send_addVendor(vendor);
507
      return recv_addVendor();
508
    }
509
 
510
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
511
    {
512
      addVendor_args args = new addVendor_args();
513
      args.setVendor(vendor);
514
      sendBase("addVendor", args);
515
    }
516
 
517
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
518
    {
519
      addVendor_result result = new addVendor_result();
520
      receiveBase(result, "addVendor");
521
      if (result.isSetSuccess()) {
522
        return result.success;
523
      }
524
      if (result.cex != null) {
525
        throw result.cex;
526
      }
527
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
528
    }
529
 
530
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
531
    {
532
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
533
      recv_updateInventoryHistory();
534
    }
535
 
536
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
537
    {
538
      updateInventoryHistory_args args = new updateInventoryHistory_args();
539
      args.setWarehouse_id(warehouse_id);
540
      args.setTimestamp(timestamp);
541
      args.setAvailability(availability);
542
      sendBase("updateInventoryHistory", args);
543
    }
544
 
545
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
546
    {
547
      updateInventoryHistory_result result = new updateInventoryHistory_result();
548
      receiveBase(result, "updateInventoryHistory");
549
      if (result.cex != null) {
550
        throw result.cex;
551
      }
552
      return;
553
    }
554
 
555
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
556
    {
557
      send_updateInventory(warehouse_id, timestamp, availability);
558
      recv_updateInventory();
559
    }
560
 
561
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
562
    {
563
      updateInventory_args args = new updateInventory_args();
564
      args.setWarehouse_id(warehouse_id);
565
      args.setTimestamp(timestamp);
566
      args.setAvailability(availability);
567
      sendBase("updateInventory", args);
568
    }
569
 
570
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
571
    {
572
      updateInventory_result result = new updateInventory_result();
573
      receiveBase(result, "updateInventory");
574
      if (result.cex != null) {
575
        throw result.cex;
576
      }
577
      return;
578
    }
579
 
580
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
581
    {
582
      send_addInventory(itemId, warehouseId, quantity);
583
      recv_addInventory();
584
    }
585
 
586
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
587
    {
588
      addInventory_args args = new addInventory_args();
589
      args.setItemId(itemId);
590
      args.setWarehouseId(warehouseId);
591
      args.setQuantity(quantity);
592
      sendBase("addInventory", args);
593
    }
594
 
595
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
596
    {
597
      addInventory_result result = new addInventory_result();
598
      receiveBase(result, "addInventory");
599
      if (result.cex != null) {
600
        throw result.cex;
601
      }
602
      return;
603
    }
604
 
605
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
606
    {
607
      send_retireWarehouse(warehouse_id);
608
      recv_retireWarehouse();
609
    }
610
 
611
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
612
    {
613
      retireWarehouse_args args = new retireWarehouse_args();
614
      args.setWarehouse_id(warehouse_id);
615
      sendBase("retireWarehouse", args);
616
    }
617
 
618
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
619
    {
620
      retireWarehouse_result result = new retireWarehouse_result();
621
      receiveBase(result, "retireWarehouse");
622
      if (result.cex != null) {
623
        throw result.cex;
624
      }
625
      return;
626
    }
627
 
628
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
629
    {
630
      send_getItemInventoryByItemId(item_id);
631
      return recv_getItemInventoryByItemId();
632
    }
633
 
634
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
635
    {
636
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
637
      args.setItem_id(item_id);
638
      sendBase("getItemInventoryByItemId", args);
639
    }
640
 
641
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
642
    {
643
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
644
      receiveBase(result, "getItemInventoryByItemId");
645
      if (result.isSetSuccess()) {
646
        return result.success;
647
      }
648
      if (result.cex != null) {
649
        throw result.cex;
650
      }
651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
652
    }
653
 
654
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
655
    {
656
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
657
      return recv_getItemAvailibilityAtWarehouse();
658
    }
659
 
660
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
661
    {
662
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
663
      args.setWarehouse_id(warehouse_id);
664
      args.setItem_id(item_id);
665
      sendBase("getItemAvailibilityAtWarehouse", args);
666
    }
667
 
668
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
669
    {
670
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
671
      receiveBase(result, "getItemAvailibilityAtWarehouse");
672
      if (result.isSetSuccess()) {
673
        return result.success;
674
      }
675
      if (result.cex != null) {
676
        throw result.cex;
677
      }
678
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
679
    }
680
 
5978 rajveer 681
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 682
    {
5978 rajveer 683
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 684
      return recv_getItemAvailabilityAtLocation();
685
    }
686
 
5978 rajveer 687
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 688
    {
689
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
690
      args.setItemId(itemId);
5978 rajveer 691
      args.setSourceId(sourceId);
5945 mandeep.dh 692
      sendBase("getItemAvailabilityAtLocation", args);
693
    }
694
 
695
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
696
    {
697
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
698
      receiveBase(result, "getItemAvailabilityAtLocation");
699
      if (result.isSetSuccess()) {
700
        return result.success;
701
      }
702
      if (result.isex != null) {
703
        throw result.isex;
704
      }
705
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
706
    }
707
 
708
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
709
    {
710
      send_getAllWarehouses(isActive);
711
      return recv_getAllWarehouses();
712
    }
713
 
714
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
715
    {
716
      getAllWarehouses_args args = new getAllWarehouses_args();
717
      args.setIsActive(isActive);
718
      sendBase("getAllWarehouses", args);
719
    }
720
 
721
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
722
    {
723
      getAllWarehouses_result result = new getAllWarehouses_result();
724
      receiveBase(result, "getAllWarehouses");
725
      if (result.isSetSuccess()) {
726
        return result.success;
727
      }
728
      if (result.cex != null) {
729
        throw result.cex;
730
      }
731
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
732
    }
733
 
734
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
735
    {
736
      send_getWarehouse(warehouse_id);
737
      return recv_getWarehouse();
738
    }
739
 
740
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
741
    {
742
      getWarehouse_args args = new getWarehouse_args();
743
      args.setWarehouse_id(warehouse_id);
744
      sendBase("getWarehouse", args);
745
    }
746
 
747
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
748
    {
749
      getWarehouse_result result = new getWarehouse_result();
750
      receiveBase(result, "getWarehouse");
751
      if (result.isSetSuccess()) {
752
        return result.success;
753
      }
754
      if (result.cex != null) {
755
        throw result.cex;
756
      }
757
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
758
    }
759
 
760
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
761
    {
762
      send_getAllItemsForWarehouse(warehouse_id);
763
      return recv_getAllItemsForWarehouse();
764
    }
765
 
766
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
767
    {
768
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
769
      args.setWarehouse_id(warehouse_id);
770
      sendBase("getAllItemsForWarehouse", args);
771
    }
772
 
773
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
774
    {
775
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
776
      receiveBase(result, "getAllItemsForWarehouse");
777
      if (result.isSetSuccess()) {
778
        return result.success;
779
      }
780
      if (result.cex != null) {
781
        throw result.cex;
782
      }
783
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
784
    }
785
 
5967 rajveer 786
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 787
    {
5967 rajveer 788
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
789
      return recv_isOrderBillable();
790
    }
791
 
792
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
793
    {
794
      isOrderBillable_args args = new isOrderBillable_args();
795
      args.setItemId(itemId);
796
      args.setWarehouseId(warehouseId);
797
      args.setSourceId(sourceId);
798
      args.setOrderId(orderId);
799
      sendBase("isOrderBillable", args);
800
    }
801
 
802
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
803
    {
804
      isOrderBillable_result result = new isOrderBillable_result();
805
      receiveBase(result, "isOrderBillable");
806
      if (result.isSetSuccess()) {
807
        return result.success;
808
      }
809
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
810
    }
811
 
812
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
813
    {
814
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 815
      return recv_reserveItemInWarehouse();
816
    }
817
 
5967 rajveer 818
    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 819
    {
820
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
821
      args.setItemId(itemId);
822
      args.setWarehouseId(warehouseId);
5967 rajveer 823
      args.setSourceId(sourceId);
824
      args.setOrderId(orderId);
825
      args.setCreatedTimestamp(createdTimestamp);
826
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 827
      args.setQuantity(quantity);
828
      sendBase("reserveItemInWarehouse", args);
829
    }
830
 
831
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
832
    {
833
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
834
      receiveBase(result, "reserveItemInWarehouse");
835
      if (result.isSetSuccess()) {
836
        return result.success;
837
      }
838
      if (result.cex != null) {
839
        throw result.cex;
840
      }
841
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
842
    }
843
 
7968 amar.kumar 844
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
845
    {
846
      send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
847
      return recv_updateReservationForOrder();
848
    }
849
 
850
    public void send_updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
851
    {
852
      updateReservationForOrder_args args = new updateReservationForOrder_args();
853
      args.setItemId(itemId);
854
      args.setWarehouseId(warehouseId);
855
      args.setSourceId(sourceId);
856
      args.setOrderId(orderId);
857
      args.setCreatedTimestamp(createdTimestamp);
858
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
859
      args.setQuantity(quantity);
860
      sendBase("updateReservationForOrder", args);
861
    }
862
 
863
    public boolean recv_updateReservationForOrder() throws InventoryServiceException, org.apache.thrift.TException
864
    {
865
      updateReservationForOrder_result result = new updateReservationForOrder_result();
866
      receiveBase(result, "updateReservationForOrder");
867
      if (result.isSetSuccess()) {
868
        return result.success;
869
      }
870
      if (result.cex != null) {
871
        throw result.cex;
872
      }
873
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
874
    }
875
 
5967 rajveer 876
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 877
    {
5967 rajveer 878
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 879
      return recv_reduceReservationCount();
880
    }
881
 
5967 rajveer 882
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 883
    {
884
      reduceReservationCount_args args = new reduceReservationCount_args();
885
      args.setItemId(itemId);
886
      args.setWarehouseId(warehouseId);
5967 rajveer 887
      args.setSourceId(sourceId);
888
      args.setOrderId(orderId);
5945 mandeep.dh 889
      args.setQuantity(quantity);
890
      sendBase("reduceReservationCount", args);
891
    }
892
 
893
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
894
    {
895
      reduceReservationCount_result result = new reduceReservationCount_result();
896
      receiveBase(result, "reduceReservationCount");
897
      if (result.isSetSuccess()) {
898
        return result.success;
899
      }
900
      if (result.cex != null) {
901
        throw result.cex;
902
      }
903
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
904
    }
905
 
906
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
907
    {
908
      send_getItemPricing(itemId, vendorId);
909
      return recv_getItemPricing();
910
    }
911
 
912
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
913
    {
914
      getItemPricing_args args = new getItemPricing_args();
915
      args.setItemId(itemId);
916
      args.setVendorId(vendorId);
917
      sendBase("getItemPricing", args);
918
    }
919
 
920
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
921
    {
922
      getItemPricing_result result = new getItemPricing_result();
923
      receiveBase(result, "getItemPricing");
924
      if (result.isSetSuccess()) {
925
        return result.success;
926
      }
927
      if (result.cex != null) {
928
        throw result.cex;
929
      }
930
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
931
    }
932
 
933
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
934
    {
935
      send_getAllItemPricing(itemId);
936
      return recv_getAllItemPricing();
937
    }
938
 
939
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
940
    {
941
      getAllItemPricing_args args = new getAllItemPricing_args();
942
      args.setItemId(itemId);
943
      sendBase("getAllItemPricing", args);
944
    }
945
 
946
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
947
    {
948
      getAllItemPricing_result result = new getAllItemPricing_result();
949
      receiveBase(result, "getAllItemPricing");
950
      if (result.isSetSuccess()) {
951
        return result.success;
952
      }
953
      if (result.cex != null) {
954
        throw result.cex;
955
      }
956
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
957
    }
958
 
959
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
960
    {
961
      send_addVendorItemPricing(vendorItemPricing);
962
      recv_addVendorItemPricing();
963
    }
964
 
965
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
966
    {
967
      addVendorItemPricing_args args = new addVendorItemPricing_args();
968
      args.setVendorItemPricing(vendorItemPricing);
969
      sendBase("addVendorItemPricing", args);
970
    }
971
 
972
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
973
    {
974
      addVendorItemPricing_result result = new addVendorItemPricing_result();
975
      receiveBase(result, "addVendorItemPricing");
976
      if (result.cex != null) {
977
        throw result.cex;
978
      }
979
      return;
980
    }
981
 
982
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
983
    {
984
      send_getVendor(vendorId);
985
      return recv_getVendor();
986
    }
987
 
988
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
989
    {
990
      getVendor_args args = new getVendor_args();
991
      args.setVendorId(vendorId);
992
      sendBase("getVendor", args);
993
    }
994
 
995
    public Vendor recv_getVendor() throws org.apache.thrift.TException
996
    {
997
      getVendor_result result = new getVendor_result();
998
      receiveBase(result, "getVendor");
999
      if (result.isSetSuccess()) {
1000
        return result.success;
1001
      }
1002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1003
    }
1004
 
1005
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
1006
    {
1007
      send_getAllVendors();
1008
      return recv_getAllVendors();
1009
    }
1010
 
1011
    public void send_getAllVendors() throws org.apache.thrift.TException
1012
    {
1013
      getAllVendors_args args = new getAllVendors_args();
1014
      sendBase("getAllVendors", args);
1015
    }
1016
 
1017
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
1018
    {
1019
      getAllVendors_result result = new getAllVendors_result();
1020
      receiveBase(result, "getAllVendors");
1021
      if (result.isSetSuccess()) {
1022
        return result.success;
1023
      }
1024
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1025
    }
1026
 
1027
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
1028
    {
1029
      send_addVendorItemMapping(key, vendorItemMapping);
1030
      recv_addVendorItemMapping();
1031
    }
1032
 
1033
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
1034
    {
1035
      addVendorItemMapping_args args = new addVendorItemMapping_args();
1036
      args.setKey(key);
1037
      args.setVendorItemMapping(vendorItemMapping);
1038
      sendBase("addVendorItemMapping", args);
1039
    }
1040
 
1041
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
1042
    {
1043
      addVendorItemMapping_result result = new addVendorItemMapping_result();
1044
      receiveBase(result, "addVendorItemMapping");
1045
      if (result.cex != null) {
1046
        throw result.cex;
1047
      }
1048
      return;
1049
    }
1050
 
1051
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
1052
    {
1053
      send_getVendorItemMappings(itemId);
1054
      return recv_getVendorItemMappings();
1055
    }
1056
 
1057
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
1058
    {
1059
      getVendorItemMappings_args args = new getVendorItemMappings_args();
1060
      args.setItemId(itemId);
1061
      sendBase("getVendorItemMappings", args);
1062
    }
1063
 
1064
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
1065
    {
1066
      getVendorItemMappings_result result = new getVendorItemMappings_result();
1067
      receiveBase(result, "getVendorItemMappings");
1068
      if (result.isSetSuccess()) {
1069
        return result.success;
1070
      }
1071
      if (result.cex != null) {
1072
        throw result.cex;
1073
      }
1074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1075
    }
1076
 
1077
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1078
    {
1079
      send_getPendingOrdersInventory(vendorid);
1080
      return recv_getPendingOrdersInventory();
1081
    }
1082
 
1083
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1084
    {
1085
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
1086
      args.setVendorid(vendorid);
1087
      sendBase("getPendingOrdersInventory", args);
1088
    }
1089
 
1090
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
1091
    {
1092
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
1093
      receiveBase(result, "getPendingOrdersInventory");
1094
      if (result.isSetSuccess()) {
1095
        return result.success;
1096
      }
1097
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1098
    }
1099
 
1100
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1101
    {
1102
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1103
      return recv_getWarehouses();
1104
    }
1105
 
1106
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1107
    {
1108
      getWarehouses_args args = new getWarehouses_args();
1109
      args.setWarehouseType(warehouseType);
1110
      args.setInventoryType(inventoryType);
1111
      args.setVendorId(vendorId);
1112
      args.setBillingWarehouseId(billingWarehouseId);
1113
      args.setShippingWarehouseId(shippingWarehouseId);
1114
      sendBase("getWarehouses", args);
1115
    }
1116
 
1117
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1118
    {
1119
      getWarehouses_result result = new getWarehouses_result();
1120
      receiveBase(result, "getWarehouses");
1121
      if (result.isSetSuccess()) {
1122
        return result.success;
1123
      }
1124
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1125
    }
1126
 
1127
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1128
    {
1129
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1130
      recv_resetAvailability();
1131
    }
1132
 
1133
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1134
    {
1135
      resetAvailability_args args = new resetAvailability_args();
1136
      args.setItemKey(itemKey);
1137
      args.setVendorId(vendorId);
1138
      args.setQuantity(quantity);
1139
      args.setWarehouseId(warehouseId);
1140
      sendBase("resetAvailability", args);
1141
    }
1142
 
1143
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1144
    {
1145
      resetAvailability_result result = new resetAvailability_result();
1146
      receiveBase(result, "resetAvailability");
1147
      if (result.cex != null) {
1148
        throw result.cex;
1149
      }
1150
      return;
1151
    }
1152
 
1153
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1154
    {
1155
      send_resetAvailabilityForWarehouse(warehouseId);
1156
      recv_resetAvailabilityForWarehouse();
1157
    }
1158
 
1159
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1160
    {
1161
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1162
      args.setWarehouseId(warehouseId);
1163
      sendBase("resetAvailabilityForWarehouse", args);
1164
    }
1165
 
1166
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1167
    {
1168
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1169
      receiveBase(result, "resetAvailabilityForWarehouse");
1170
      if (result.cex != null) {
1171
        throw result.cex;
1172
      }
1173
      return;
1174
    }
1175
 
1176
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1177
    {
1178
      send_getItemKeysToBeProcessed(warehouseId);
1179
      return recv_getItemKeysToBeProcessed();
1180
    }
1181
 
1182
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1183
    {
1184
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1185
      args.setWarehouseId(warehouseId);
1186
      sendBase("getItemKeysToBeProcessed", args);
1187
    }
1188
 
1189
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1190
    {
1191
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1192
      receiveBase(result, "getItemKeysToBeProcessed");
1193
      if (result.isSetSuccess()) {
1194
        return result.success;
1195
      }
1196
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1197
    }
1198
 
1199
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1200
    {
1201
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1202
      recv_markMissedInventoryUpdatesAsProcessed();
1203
    }
1204
 
1205
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1206
    {
1207
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1208
      args.setItemKey(itemKey);
1209
      args.setWarehouseId(warehouseId);
1210
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1211
    }
1212
 
1213
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1214
    {
1215
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1216
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1217
      return;
1218
    }
1219
 
1220
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1221
    {
1222
      send_getIgnoredItemKeys();
1223
      return recv_getIgnoredItemKeys();
1224
    }
1225
 
1226
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1227
    {
1228
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1229
      sendBase("getIgnoredItemKeys", args);
1230
    }
1231
 
1232
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1233
    {
1234
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1235
      receiveBase(result, "getIgnoredItemKeys");
1236
      if (result.isSetSuccess()) {
1237
        return result.success;
1238
      }
1239
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1240
    }
1241
 
1242
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1243
    {
1244
      send_addBadInventory(itemId, warehouseId, quantity);
1245
      recv_addBadInventory();
1246
    }
1247
 
1248
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1249
    {
1250
      addBadInventory_args args = new addBadInventory_args();
1251
      args.setItemId(itemId);
1252
      args.setWarehouseId(warehouseId);
1253
      args.setQuantity(quantity);
1254
      sendBase("addBadInventory", args);
1255
    }
1256
 
1257
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1258
    {
1259
      addBadInventory_result result = new addBadInventory_result();
1260
      receiveBase(result, "addBadInventory");
1261
      if (result.cex != null) {
1262
        throw result.cex;
1263
      }
1264
      return;
1265
    }
1266
 
1267
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1268
    {
1269
      send_getShippingLocations();
1270
      return recv_getShippingLocations();
1271
    }
1272
 
1273
    public void send_getShippingLocations() throws org.apache.thrift.TException
1274
    {
1275
      getShippingLocations_args args = new getShippingLocations_args();
1276
      sendBase("getShippingLocations", args);
1277
    }
1278
 
1279
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1280
    {
1281
      getShippingLocations_result result = new getShippingLocations_result();
1282
      receiveBase(result, "getShippingLocations");
1283
      if (result.isSetSuccess()) {
1284
        return result.success;
1285
      }
1286
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1287
    }
1288
 
1289
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1290
    {
1291
      send_getAllVendorItemMappings();
1292
      return recv_getAllVendorItemMappings();
1293
    }
1294
 
1295
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1296
    {
1297
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1298
      sendBase("getAllVendorItemMappings", args);
1299
    }
1300
 
1301
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1302
    {
1303
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1304
      receiveBase(result, "getAllVendorItemMappings");
1305
      if (result.isSetSuccess()) {
1306
        return result.success;
1307
      }
1308
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1309
    }
1310
 
1311
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1312
    {
1313
      send_getInventorySnapshot(warehouseId);
1314
      return recv_getInventorySnapshot();
1315
    }
1316
 
1317
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1318
    {
1319
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1320
      args.setWarehouseId(warehouseId);
1321
      sendBase("getInventorySnapshot", args);
1322
    }
1323
 
1324
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1325
    {
1326
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1327
      receiveBase(result, "getInventorySnapshot");
1328
      if (result.isSetSuccess()) {
1329
        return result.success;
1330
      }
1331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1332
    }
1333
 
1334
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1335
    {
1336
      send_clearItemAvailabilityCache();
1337
      recv_clearItemAvailabilityCache();
1338
    }
1339
 
1340
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1341
    {
1342
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1343
      sendBase("clearItemAvailabilityCache", args);
1344
    }
1345
 
1346
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1347
    {
1348
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1349
      receiveBase(result, "clearItemAvailabilityCache");
1350
      return;
1351
    }
1352
 
1353
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1354
    {
1355
      send_updateVendorString(warehouseId, vendorString);
1356
      recv_updateVendorString();
1357
    }
1358
 
1359
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1360
    {
1361
      updateVendorString_args args = new updateVendorString_args();
1362
      args.setWarehouseId(warehouseId);
1363
      args.setVendorString(vendorString);
1364
      sendBase("updateVendorString", args);
1365
    }
1366
 
1367
    public void recv_updateVendorString() throws org.apache.thrift.TException
1368
    {
1369
      updateVendorString_result result = new updateVendorString_result();
1370
      receiveBase(result, "updateVendorString");
1371
      return;
1372
    }
1373
 
6096 amit.gupta 1374
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1375
    {
1376
      send_clearItemAvailabilityCacheForItem(item_id);
1377
      recv_clearItemAvailabilityCacheForItem();
1378
    }
1379
 
1380
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1381
    {
1382
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1383
      args.setItem_id(item_id);
1384
      sendBase("clearItemAvailabilityCacheForItem", args);
1385
    }
1386
 
1387
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1388
    {
1389
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1390
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1391
      return;
1392
    }
1393
 
7718 amar.kumar 1394
    public long getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1395
    {
7718 amar.kumar 1396
      send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId);
6467 amar.kumar 1397
      return recv_getOurWarehouseIdForVendor();
1398
    }
1399
 
7718 amar.kumar 1400
    public void send_getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1401
    {
1402
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1403
      args.setVendorId(vendorId);
7718 amar.kumar 1404
      args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 1405
      sendBase("getOurWarehouseIdForVendor", args);
1406
    }
1407
 
1408
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1409
    {
1410
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1411
      receiveBase(result, "getOurWarehouseIdForVendor");
1412
      if (result.isSetSuccess()) {
1413
        return result.success;
1414
      }
1415
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1416
    }
1417
 
6484 amar.kumar 1418
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1419
    {
1420
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1421
      return recv_getItemAvailabilitiesAtOurWarehouses();
1422
    }
1423
 
1424
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1425
    {
1426
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1427
      args.setItem_ids(item_ids);
1428
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1429
    }
1430
 
1431
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1432
    {
1433
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1434
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1435
      if (result.isSetSuccess()) {
1436
        return result.success;
1437
      }
1438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1439
    }
1440
 
6531 vikram.rag 1441
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1442
    {
1443
      send_getMonitoredWarehouseForVendors(vendorIds);
1444
      return recv_getMonitoredWarehouseForVendors();
1445
    }
1446
 
1447
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1448
    {
1449
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1450
      args.setVendorIds(vendorIds);
1451
      sendBase("getMonitoredWarehouseForVendors", args);
1452
    }
1453
 
1454
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1455
    {
1456
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1457
      receiveBase(result, "getMonitoredWarehouseForVendors");
1458
      if (result.isSetSuccess()) {
1459
        return result.success;
1460
      }
1461
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1462
    }
1463
 
1464
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1465
    {
1466
      send_getIgnoredWarehouseidsAndItemids();
1467
      return recv_getIgnoredWarehouseidsAndItemids();
1468
    }
1469
 
1470
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1471
    {
1472
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1473
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1474
    }
1475
 
1476
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1477
    {
1478
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1479
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1480
      if (result.isSetSuccess()) {
1481
        return result.success;
1482
      }
1483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1484
    }
1485
 
1486
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1487
    {
1488
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1489
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1490
    }
1491
 
1492
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1493
    {
1494
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1495
      args.setItem_id(item_id);
1496
      args.setWarehouse_id(warehouse_id);
1497
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1498
    }
1499
 
1500
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1501
    {
1502
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1503
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1504
      if (result.isSetSuccess()) {
1505
        return result.success;
1506
      }
1507
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1508
    }
1509
 
1510
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1511
    {
1512
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1513
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1514
    }
1515
 
1516
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1517
    {
1518
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1519
      args.setItem_id(item_id);
1520
      args.setWarehouse_id(warehouse_id);
1521
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1522
    }
1523
 
1524
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1525
    {
1526
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1527
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1528
      if (result.isSetSuccess()) {
1529
        return result.success;
1530
      }
1531
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1532
    }
1533
 
1534
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1535
    {
1536
      send_getAllIgnoredInventoryupdateItemsCount();
1537
      return recv_getAllIgnoredInventoryupdateItemsCount();
1538
    }
1539
 
1540
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1541
    {
1542
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1543
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1544
    }
1545
 
1546
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1547
    {
1548
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1549
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1550
      if (result.isSetSuccess()) {
1551
        return result.success;
1552
      }
1553
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1554
    }
1555
 
1556
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1557
    {
1558
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1559
      return recv_getIgnoredInventoryUpdateItemids();
1560
    }
1561
 
1562
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1563
    {
1564
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1565
      args.setOffset(offset);
1566
      args.setLimit(limit);
1567
      sendBase("getIgnoredInventoryUpdateItemids", args);
1568
    }
1569
 
1570
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1571
    {
1572
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1573
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1574
      if (result.isSetSuccess()) {
1575
        return result.success;
1576
      }
1577
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1578
    }
1579
 
6821 amar.kumar 1580
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1581
    {
1582
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
1583
      recv_updateItemStockPurchaseParams();
1584
    }
1585
 
1586
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1587
    {
1588
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
1589
      args.setItem_id(item_id);
1590
      args.setNumOfDaysStock(numOfDaysStock);
1591
      args.setMinStockLevel(minStockLevel);
1592
      sendBase("updateItemStockPurchaseParams", args);
1593
    }
1594
 
1595
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
1596
    {
1597
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
1598
      receiveBase(result, "updateItemStockPurchaseParams");
1599
      return;
1600
    }
1601
 
1602
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1603
    {
1604
      send_getItemStockPurchaseParams(itemId);
1605
      return recv_getItemStockPurchaseParams();
1606
    }
1607
 
1608
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1609
    {
1610
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
1611
      args.setItemId(itemId);
1612
      sendBase("getItemStockPurchaseParams", args);
1613
    }
1614
 
1615
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
1616
    {
1617
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
1618
      receiveBase(result, "getItemStockPurchaseParams");
1619
      if (result.isSetSuccess()) {
1620
        return result.success;
1621
      }
1622
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
1623
    }
1624
 
1625
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1626
    {
1627
      send_addOosStatusForItem(oosStatusMap, date);
1628
      recv_addOosStatusForItem();
1629
    }
1630
 
1631
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1632
    {
1633
      addOosStatusForItem_args args = new addOosStatusForItem_args();
1634
      args.setOosStatusMap(oosStatusMap);
1635
      args.setDate(date);
1636
      sendBase("addOosStatusForItem", args);
1637
    }
1638
 
1639
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
1640
    {
1641
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1642
      receiveBase(result, "addOosStatusForItem");
1643
      return;
1644
    }
1645
 
6832 amar.kumar 1646
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
1647
    {
1648
      send_getOosStatusesForXDaysForItem(itemId, days);
1649
      return recv_getOosStatusesForXDaysForItem();
1650
    }
1651
 
1652
    public void send_getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
1653
    {
1654
      getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
1655
      args.setItemId(itemId);
1656
      args.setDays(days);
1657
      sendBase("getOosStatusesForXDaysForItem", args);
1658
    }
1659
 
1660
    public List<OOSStatus> recv_getOosStatusesForXDaysForItem() throws org.apache.thrift.TException
1661
    {
1662
      getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
1663
      receiveBase(result, "getOosStatusesForXDaysForItem");
1664
      if (result.isSetSuccess()) {
1665
        return result.success;
1666
      }
1667
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1668
    }
1669
 
6857 amar.kumar 1670
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1671
    {
1672
      send_getNonZeroItemStockPurchaseParams();
1673
      return recv_getNonZeroItemStockPurchaseParams();
1674
    }
1675
 
1676
    public void send_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1677
    {
1678
      getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
1679
      sendBase("getNonZeroItemStockPurchaseParams", args);
1680
    }
1681
 
1682
    public List<ItemStockPurchaseParams> recv_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1683
    {
1684
      getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
1685
      receiveBase(result, "getNonZeroItemStockPurchaseParams");
1686
      if (result.isSetSuccess()) {
1687
        return result.success;
1688
      }
1689
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
1690
    }
1691
 
7149 amar.kumar 1692
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1693
    {
1694
      send_getBillableInventoryAndPendingOrders();
1695
      return recv_getBillableInventoryAndPendingOrders();
1696
    }
1697
 
1698
    public void send_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1699
    {
1700
      getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
1701
      sendBase("getBillableInventoryAndPendingOrders", args);
1702
    }
1703
 
1704
    public List<AvailableAndReservedStock> recv_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1705
    {
1706
      getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
1707
      receiveBase(result, "getBillableInventoryAndPendingOrders");
1708
      if (result.isSetSuccess()) {
1709
        return result.success;
1710
      }
1711
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1712
    }
1713
 
7281 kshitij.so 1714
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1715
    {
1716
      send_getWarehouseName(warehouse_id);
1717
      return recv_getWarehouseName();
1718
    }
1719
 
1720
    public void send_getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1721
    {
1722
      getWarehouseName_args args = new getWarehouseName_args();
1723
      args.setWarehouse_id(warehouse_id);
1724
      sendBase("getWarehouseName", args);
1725
    }
1726
 
1727
    public String recv_getWarehouseName() throws org.apache.thrift.TException
1728
    {
1729
      getWarehouseName_result result = new getWarehouseName_result();
1730
      receiveBase(result, "getWarehouseName");
1731
      if (result.isSetSuccess()) {
1732
        return result.success;
1733
      }
1734
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
1735
    }
1736
 
1737
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1738
    {
1739
      send_getAmazonInventoryForItem(item_id);
1740
      return recv_getAmazonInventoryForItem();
1741
    }
1742
 
1743
    public void send_getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1744
    {
1745
      getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
1746
      args.setItem_id(item_id);
1747
      sendBase("getAmazonInventoryForItem", args);
1748
    }
1749
 
1750
    public AmazonInventorySnapshot recv_getAmazonInventoryForItem() throws org.apache.thrift.TException
1751
    {
1752
      getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
1753
      receiveBase(result, "getAmazonInventoryForItem");
1754
      if (result.isSetSuccess()) {
1755
        return result.success;
1756
      }
1757
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
1758
    }
1759
 
1760
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException
1761
    {
1762
      send_getAllAmazonInventory();
1763
      return recv_getAllAmazonInventory();
1764
    }
1765
 
1766
    public void send_getAllAmazonInventory() throws org.apache.thrift.TException
1767
    {
1768
      getAllAmazonInventory_args args = new getAllAmazonInventory_args();
1769
      sendBase("getAllAmazonInventory", args);
1770
    }
1771
 
1772
    public List<AmazonInventorySnapshot> recv_getAllAmazonInventory() throws org.apache.thrift.TException
1773
    {
1774
      getAllAmazonInventory_result result = new getAllAmazonInventory_result();
1775
      receiveBase(result, "getAllAmazonInventory");
1776
      if (result.isSetSuccess()) {
1777
        return result.success;
1778
      }
1779
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
1780
    }
1781
 
1782
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
1783
    {
1784
      send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot);
1785
      recv_addOrUpdateAmazonInventoryForItem();
1786
    }
1787
 
1788
    public void send_addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
1789
    {
1790
      addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
1791
      args.setAmazonInventorySnapshot(amazonInventorySnapshot);
1792
      sendBase("addOrUpdateAmazonInventoryForItem", args);
1793
    }
1794
 
1795
    public void recv_addOrUpdateAmazonInventoryForItem() throws org.apache.thrift.TException
1796
    {
1797
      addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
1798
      receiveBase(result, "addOrUpdateAmazonInventoryForItem");
1799
      return;
1800
    }
1801
 
7972 amar.kumar 1802
    public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1803
    {
1804
      send_getLastNdaySaleForItem(itemId, numberOfDays);
1805
      return recv_getLastNdaySaleForItem();
1806
    }
1807
 
1808
    public void send_getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1809
    {
1810
      getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
1811
      args.setItemId(itemId);
1812
      args.setNumberOfDays(numberOfDays);
1813
      sendBase("getLastNdaySaleForItem", args);
1814
    }
1815
 
1816
    public String recv_getLastNdaySaleForItem() throws org.apache.thrift.TException
1817
    {
1818
      getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
1819
      receiveBase(result, "getLastNdaySaleForItem");
1820
      if (result.isSetSuccess()) {
1821
        return result.success;
1822
      }
1823
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
1824
    }
1825
 
8182 amar.kumar 1826
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
1827
    {
1828
      send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source);
1829
      recv_addUpdateHoldInventory();
1830
    }
1831
 
1832
    public void send_addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
1833
    {
1834
      addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
1835
      args.setItemId(itemId);
1836
      args.setWarehouseId(warehouseId);
1837
      args.setHoldQuantity(holdQuantity);
1838
      args.setSource(source);
1839
      sendBase("addUpdateHoldInventory", args);
1840
    }
1841
 
1842
    public void recv_addUpdateHoldInventory() throws org.apache.thrift.TException
1843
    {
1844
      addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
1845
      receiveBase(result, "addUpdateHoldInventory");
1846
      return;
1847
    }
1848
 
5945 mandeep.dh 1849
  }
1850
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1851
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1852
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1853
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1854
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1855
        this.clientManager = clientManager;
1856
        this.protocolFactory = protocolFactory;
1857
      }
1858
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1859
        return new AsyncClient(protocolFactory, clientManager, transport);
1860
      }
1861
    }
1862
 
1863
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1864
      super(protocolFactory, clientManager, transport);
1865
    }
1866
 
1867
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1868
      checkReady();
1869
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1870
      this.___currentMethod = method_call;
1871
      ___manager.call(method_call);
1872
    }
1873
 
1874
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1875
      private Warehouse warehouse;
1876
      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 {
1877
        super(client, protocolFactory, transport, resultHandler, false);
1878
        this.warehouse = warehouse;
1879
      }
1880
 
1881
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1882
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1883
        addWarehouse_args args = new addWarehouse_args();
1884
        args.setWarehouse(warehouse);
1885
        args.write(prot);
1886
        prot.writeMessageEnd();
1887
      }
1888
 
1889
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1890
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1891
          throw new IllegalStateException("Method call not finished!");
1892
        }
1893
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1894
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1895
        return (new Client(prot)).recv_addWarehouse();
1896
      }
1897
    }
1898
 
1899
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1900
      checkReady();
1901
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1902
      this.___currentMethod = method_call;
1903
      ___manager.call(method_call);
1904
    }
1905
 
1906
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1907
      private Vendor vendor;
1908
      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 {
1909
        super(client, protocolFactory, transport, resultHandler, false);
1910
        this.vendor = vendor;
1911
      }
1912
 
1913
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1914
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1915
        addVendor_args args = new addVendor_args();
1916
        args.setVendor(vendor);
1917
        args.write(prot);
1918
        prot.writeMessageEnd();
1919
      }
1920
 
1921
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1922
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1923
          throw new IllegalStateException("Method call not finished!");
1924
        }
1925
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1927
        return (new Client(prot)).recv_addVendor();
1928
      }
1929
    }
1930
 
1931
    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 {
1932
      checkReady();
1933
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1934
      this.___currentMethod = method_call;
1935
      ___manager.call(method_call);
1936
    }
1937
 
1938
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1939
      private long warehouse_id;
1940
      private String timestamp;
1941
      private Map<String,Long> availability;
1942
      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 {
1943
        super(client, protocolFactory, transport, resultHandler, false);
1944
        this.warehouse_id = warehouse_id;
1945
        this.timestamp = timestamp;
1946
        this.availability = availability;
1947
      }
1948
 
1949
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1950
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1951
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1952
        args.setWarehouse_id(warehouse_id);
1953
        args.setTimestamp(timestamp);
1954
        args.setAvailability(availability);
1955
        args.write(prot);
1956
        prot.writeMessageEnd();
1957
      }
1958
 
1959
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1960
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1961
          throw new IllegalStateException("Method call not finished!");
1962
        }
1963
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1964
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1965
        (new Client(prot)).recv_updateInventoryHistory();
1966
      }
1967
    }
1968
 
1969
    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 {
1970
      checkReady();
1971
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1972
      this.___currentMethod = method_call;
1973
      ___manager.call(method_call);
1974
    }
1975
 
1976
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1977
      private long warehouse_id;
1978
      private String timestamp;
1979
      private Map<String,Long> availability;
1980
      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 {
1981
        super(client, protocolFactory, transport, resultHandler, false);
1982
        this.warehouse_id = warehouse_id;
1983
        this.timestamp = timestamp;
1984
        this.availability = availability;
1985
      }
1986
 
1987
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1988
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1989
        updateInventory_args args = new updateInventory_args();
1990
        args.setWarehouse_id(warehouse_id);
1991
        args.setTimestamp(timestamp);
1992
        args.setAvailability(availability);
1993
        args.write(prot);
1994
        prot.writeMessageEnd();
1995
      }
1996
 
1997
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1998
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1999
          throw new IllegalStateException("Method call not finished!");
2000
        }
2001
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2002
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2003
        (new Client(prot)).recv_updateInventory();
2004
      }
2005
    }
2006
 
2007
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
2008
      checkReady();
2009
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2010
      this.___currentMethod = method_call;
2011
      ___manager.call(method_call);
2012
    }
2013
 
2014
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2015
      private long itemId;
2016
      private long warehouseId;
2017
      private long quantity;
2018
      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 {
2019
        super(client, protocolFactory, transport, resultHandler, false);
2020
        this.itemId = itemId;
2021
        this.warehouseId = warehouseId;
2022
        this.quantity = quantity;
2023
      }
2024
 
2025
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2026
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2027
        addInventory_args args = new addInventory_args();
2028
        args.setItemId(itemId);
2029
        args.setWarehouseId(warehouseId);
2030
        args.setQuantity(quantity);
2031
        args.write(prot);
2032
        prot.writeMessageEnd();
2033
      }
2034
 
2035
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2036
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2037
          throw new IllegalStateException("Method call not finished!");
2038
        }
2039
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2040
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2041
        (new Client(prot)).recv_addInventory();
2042
      }
2043
    }
2044
 
2045
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2046
      checkReady();
2047
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2048
      this.___currentMethod = method_call;
2049
      ___manager.call(method_call);
2050
    }
2051
 
2052
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2053
      private long warehouse_id;
2054
      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 {
2055
        super(client, protocolFactory, transport, resultHandler, false);
2056
        this.warehouse_id = warehouse_id;
2057
      }
2058
 
2059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2061
        retireWarehouse_args args = new retireWarehouse_args();
2062
        args.setWarehouse_id(warehouse_id);
2063
        args.write(prot);
2064
        prot.writeMessageEnd();
2065
      }
2066
 
2067
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2068
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2069
          throw new IllegalStateException("Method call not finished!");
2070
        }
2071
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2072
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2073
        (new Client(prot)).recv_retireWarehouse();
2074
      }
2075
    }
2076
 
2077
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
2078
      checkReady();
2079
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2080
      this.___currentMethod = method_call;
2081
      ___manager.call(method_call);
2082
    }
2083
 
2084
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
2085
      private long item_id;
2086
      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 {
2087
        super(client, protocolFactory, transport, resultHandler, false);
2088
        this.item_id = item_id;
2089
      }
2090
 
2091
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2092
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2093
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
2094
        args.setItem_id(item_id);
2095
        args.write(prot);
2096
        prot.writeMessageEnd();
2097
      }
2098
 
2099
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
2100
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2101
          throw new IllegalStateException("Method call not finished!");
2102
        }
2103
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2104
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2105
        return (new Client(prot)).recv_getItemInventoryByItemId();
2106
      }
2107
    }
2108
 
2109
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2110
      checkReady();
2111
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
2112
      this.___currentMethod = method_call;
2113
      ___manager.call(method_call);
2114
    }
2115
 
2116
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2117
      private long warehouse_id;
2118
      private long item_id;
2119
      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 {
2120
        super(client, protocolFactory, transport, resultHandler, false);
2121
        this.warehouse_id = warehouse_id;
2122
        this.item_id = item_id;
2123
      }
2124
 
2125
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2126
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2127
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
2128
        args.setWarehouse_id(warehouse_id);
2129
        args.setItem_id(item_id);
2130
        args.write(prot);
2131
        prot.writeMessageEnd();
2132
      }
2133
 
2134
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2135
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2136
          throw new IllegalStateException("Method call not finished!");
2137
        }
2138
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2139
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2140
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
2141
      }
2142
    }
2143
 
5978 rajveer 2144
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2145
      checkReady();
5978 rajveer 2146
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2147
      this.___currentMethod = method_call;
2148
      ___manager.call(method_call);
2149
    }
2150
 
2151
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
2152
      private long itemId;
5978 rajveer 2153
      private long sourceId;
2154
      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 2155
        super(client, protocolFactory, transport, resultHandler, false);
2156
        this.itemId = itemId;
5978 rajveer 2157
        this.sourceId = sourceId;
5945 mandeep.dh 2158
      }
2159
 
2160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2162
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
2163
        args.setItemId(itemId);
5978 rajveer 2164
        args.setSourceId(sourceId);
5945 mandeep.dh 2165
        args.write(prot);
2166
        prot.writeMessageEnd();
2167
      }
2168
 
2169
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2170
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2171
          throw new IllegalStateException("Method call not finished!");
2172
        }
2173
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2174
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2175
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
2176
      }
2177
    }
2178
 
2179
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2180
      checkReady();
2181
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
2182
      this.___currentMethod = method_call;
2183
      ___manager.call(method_call);
2184
    }
2185
 
2186
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2187
      private boolean isActive;
2188
      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 {
2189
        super(client, protocolFactory, transport, resultHandler, false);
2190
        this.isActive = isActive;
2191
      }
2192
 
2193
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2194
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2195
        getAllWarehouses_args args = new getAllWarehouses_args();
2196
        args.setIsActive(isActive);
2197
        args.write(prot);
2198
        prot.writeMessageEnd();
2199
      }
2200
 
2201
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2202
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2203
          throw new IllegalStateException("Method call not finished!");
2204
        }
2205
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2206
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2207
        return (new Client(prot)).recv_getAllWarehouses();
2208
      }
2209
    }
2210
 
2211
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2212
      checkReady();
2213
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2214
      this.___currentMethod = method_call;
2215
      ___manager.call(method_call);
2216
    }
2217
 
2218
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2219
      private long warehouse_id;
2220
      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 {
2221
        super(client, protocolFactory, transport, resultHandler, false);
2222
        this.warehouse_id = warehouse_id;
2223
      }
2224
 
2225
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2226
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2227
        getWarehouse_args args = new getWarehouse_args();
2228
        args.setWarehouse_id(warehouse_id);
2229
        args.write(prot);
2230
        prot.writeMessageEnd();
2231
      }
2232
 
2233
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
2234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2235
          throw new IllegalStateException("Method call not finished!");
2236
        }
2237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2239
        return (new Client(prot)).recv_getWarehouse();
2240
      }
2241
    }
2242
 
2243
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2244
      checkReady();
2245
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2246
      this.___currentMethod = method_call;
2247
      ___manager.call(method_call);
2248
    }
2249
 
2250
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2251
      private long warehouse_id;
2252
      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 {
2253
        super(client, protocolFactory, transport, resultHandler, false);
2254
        this.warehouse_id = warehouse_id;
2255
      }
2256
 
2257
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2258
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2259
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
2260
        args.setWarehouse_id(warehouse_id);
2261
        args.write(prot);
2262
        prot.writeMessageEnd();
2263
      }
2264
 
2265
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2266
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2267
          throw new IllegalStateException("Method call not finished!");
2268
        }
2269
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2271
        return (new Client(prot)).recv_getAllItemsForWarehouse();
2272
      }
2273
    }
2274
 
5967 rajveer 2275
    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 2276
      checkReady();
5967 rajveer 2277
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2278
      this.___currentMethod = method_call;
2279
      ___manager.call(method_call);
2280
    }
2281
 
5967 rajveer 2282
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
2283
      private long itemId;
2284
      private long warehouseId;
2285
      private long sourceId;
2286
      private long orderId;
2287
      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 {
2288
        super(client, protocolFactory, transport, resultHandler, false);
2289
        this.itemId = itemId;
2290
        this.warehouseId = warehouseId;
2291
        this.sourceId = sourceId;
2292
        this.orderId = orderId;
2293
      }
2294
 
2295
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2296
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2297
        isOrderBillable_args args = new isOrderBillable_args();
2298
        args.setItemId(itemId);
2299
        args.setWarehouseId(warehouseId);
2300
        args.setSourceId(sourceId);
2301
        args.setOrderId(orderId);
2302
        args.write(prot);
2303
        prot.writeMessageEnd();
2304
      }
2305
 
2306
      public boolean getResult() throws org.apache.thrift.TException {
2307
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2308
          throw new IllegalStateException("Method call not finished!");
2309
        }
2310
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2311
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2312
        return (new Client(prot)).recv_isOrderBillable();
2313
      }
2314
    }
2315
 
2316
    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 {
2317
      checkReady();
2318
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2319
      this.___currentMethod = method_call;
2320
      ___manager.call(method_call);
2321
    }
2322
 
5945 mandeep.dh 2323
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2324
      private long itemId;
2325
      private long warehouseId;
5967 rajveer 2326
      private long sourceId;
2327
      private long orderId;
2328
      private long createdTimestamp;
2329
      private long promisedShippingTimestamp;
5945 mandeep.dh 2330
      private double quantity;
5967 rajveer 2331
      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 2332
        super(client, protocolFactory, transport, resultHandler, false);
2333
        this.itemId = itemId;
2334
        this.warehouseId = warehouseId;
5967 rajveer 2335
        this.sourceId = sourceId;
2336
        this.orderId = orderId;
2337
        this.createdTimestamp = createdTimestamp;
2338
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 2339
        this.quantity = quantity;
2340
      }
2341
 
2342
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2343
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2344
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
2345
        args.setItemId(itemId);
2346
        args.setWarehouseId(warehouseId);
5967 rajveer 2347
        args.setSourceId(sourceId);
2348
        args.setOrderId(orderId);
2349
        args.setCreatedTimestamp(createdTimestamp);
2350
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 2351
        args.setQuantity(quantity);
2352
        args.write(prot);
2353
        prot.writeMessageEnd();
2354
      }
2355
 
2356
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2357
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2358
          throw new IllegalStateException("Method call not finished!");
2359
        }
2360
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2361
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2362
        return (new Client(prot)).recv_reserveItemInWarehouse();
2363
      }
2364
    }
2365
 
7968 amar.kumar 2366
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException {
2367
      checkReady();
2368
      updateReservationForOrder_call method_call = new updateReservationForOrder_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2369
      this.___currentMethod = method_call;
2370
      ___manager.call(method_call);
2371
    }
2372
 
2373
    public static class updateReservationForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2374
      private long itemId;
2375
      private long warehouseId;
2376
      private long sourceId;
2377
      private long orderId;
2378
      private long createdTimestamp;
2379
      private long promisedShippingTimestamp;
2380
      private double quantity;
2381
      public updateReservationForOrder_call(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2382
        super(client, protocolFactory, transport, resultHandler, false);
2383
        this.itemId = itemId;
2384
        this.warehouseId = warehouseId;
2385
        this.sourceId = sourceId;
2386
        this.orderId = orderId;
2387
        this.createdTimestamp = createdTimestamp;
2388
        this.promisedShippingTimestamp = promisedShippingTimestamp;
2389
        this.quantity = quantity;
2390
      }
2391
 
2392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateReservationForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2394
        updateReservationForOrder_args args = new updateReservationForOrder_args();
2395
        args.setItemId(itemId);
2396
        args.setWarehouseId(warehouseId);
2397
        args.setSourceId(sourceId);
2398
        args.setOrderId(orderId);
2399
        args.setCreatedTimestamp(createdTimestamp);
2400
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
2401
        args.setQuantity(quantity);
2402
        args.write(prot);
2403
        prot.writeMessageEnd();
2404
      }
2405
 
2406
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2407
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2408
          throw new IllegalStateException("Method call not finished!");
2409
        }
2410
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2411
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2412
        return (new Client(prot)).recv_updateReservationForOrder();
2413
      }
2414
    }
2415
 
5967 rajveer 2416
    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 2417
      checkReady();
5967 rajveer 2418
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2419
      this.___currentMethod = method_call;
2420
      ___manager.call(method_call);
2421
    }
2422
 
2423
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2424
      private long itemId;
2425
      private long warehouseId;
5967 rajveer 2426
      private long sourceId;
2427
      private long orderId;
5945 mandeep.dh 2428
      private double quantity;
5967 rajveer 2429
      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 2430
        super(client, protocolFactory, transport, resultHandler, false);
2431
        this.itemId = itemId;
2432
        this.warehouseId = warehouseId;
5967 rajveer 2433
        this.sourceId = sourceId;
2434
        this.orderId = orderId;
5945 mandeep.dh 2435
        this.quantity = quantity;
2436
      }
2437
 
2438
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2439
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2440
        reduceReservationCount_args args = new reduceReservationCount_args();
2441
        args.setItemId(itemId);
2442
        args.setWarehouseId(warehouseId);
5967 rajveer 2443
        args.setSourceId(sourceId);
2444
        args.setOrderId(orderId);
5945 mandeep.dh 2445
        args.setQuantity(quantity);
2446
        args.write(prot);
2447
        prot.writeMessageEnd();
2448
      }
2449
 
2450
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2451
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2452
          throw new IllegalStateException("Method call not finished!");
2453
        }
2454
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2455
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2456
        return (new Client(prot)).recv_reduceReservationCount();
2457
      }
2458
    }
2459
 
2460
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2461
      checkReady();
2462
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2463
      this.___currentMethod = method_call;
2464
      ___manager.call(method_call);
2465
    }
2466
 
2467
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2468
      private long itemId;
2469
      private long vendorId;
2470
      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 {
2471
        super(client, protocolFactory, transport, resultHandler, false);
2472
        this.itemId = itemId;
2473
        this.vendorId = vendorId;
2474
      }
2475
 
2476
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2477
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2478
        getItemPricing_args args = new getItemPricing_args();
2479
        args.setItemId(itemId);
2480
        args.setVendorId(vendorId);
2481
        args.write(prot);
2482
        prot.writeMessageEnd();
2483
      }
2484
 
2485
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
2486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2487
          throw new IllegalStateException("Method call not finished!");
2488
        }
2489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2491
        return (new Client(prot)).recv_getItemPricing();
2492
      }
2493
    }
2494
 
2495
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2496
      checkReady();
2497
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2498
      this.___currentMethod = method_call;
2499
      ___manager.call(method_call);
2500
    }
2501
 
2502
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2503
      private long itemId;
2504
      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 {
2505
        super(client, protocolFactory, transport, resultHandler, false);
2506
        this.itemId = itemId;
2507
      }
2508
 
2509
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2510
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2511
        getAllItemPricing_args args = new getAllItemPricing_args();
2512
        args.setItemId(itemId);
2513
        args.write(prot);
2514
        prot.writeMessageEnd();
2515
      }
2516
 
2517
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2518
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2519
          throw new IllegalStateException("Method call not finished!");
2520
        }
2521
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2522
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2523
        return (new Client(prot)).recv_getAllItemPricing();
2524
      }
2525
    }
2526
 
2527
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2528
      checkReady();
2529
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
2530
      this.___currentMethod = method_call;
2531
      ___manager.call(method_call);
2532
    }
2533
 
2534
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2535
      private VendorItemPricing vendorItemPricing;
2536
      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 {
2537
        super(client, protocolFactory, transport, resultHandler, false);
2538
        this.vendorItemPricing = vendorItemPricing;
2539
      }
2540
 
2541
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2542
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2543
        addVendorItemPricing_args args = new addVendorItemPricing_args();
2544
        args.setVendorItemPricing(vendorItemPricing);
2545
        args.write(prot);
2546
        prot.writeMessageEnd();
2547
      }
2548
 
2549
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2550
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2551
          throw new IllegalStateException("Method call not finished!");
2552
        }
2553
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2554
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2555
        (new Client(prot)).recv_addVendorItemPricing();
2556
      }
2557
    }
2558
 
2559
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
2560
      checkReady();
2561
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2562
      this.___currentMethod = method_call;
2563
      ___manager.call(method_call);
2564
    }
2565
 
2566
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2567
      private long vendorId;
2568
      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 {
2569
        super(client, protocolFactory, transport, resultHandler, false);
2570
        this.vendorId = vendorId;
2571
      }
2572
 
2573
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2574
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2575
        getVendor_args args = new getVendor_args();
2576
        args.setVendorId(vendorId);
2577
        args.write(prot);
2578
        prot.writeMessageEnd();
2579
      }
2580
 
2581
      public Vendor getResult() throws org.apache.thrift.TException {
2582
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2583
          throw new IllegalStateException("Method call not finished!");
2584
        }
2585
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2586
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2587
        return (new Client(prot)).recv_getVendor();
2588
      }
2589
    }
2590
 
2591
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
2592
      checkReady();
2593
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
2594
      this.___currentMethod = method_call;
2595
      ___manager.call(method_call);
2596
    }
2597
 
2598
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2599
      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 {
2600
        super(client, protocolFactory, transport, resultHandler, false);
2601
      }
2602
 
2603
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2604
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2605
        getAllVendors_args args = new getAllVendors_args();
2606
        args.write(prot);
2607
        prot.writeMessageEnd();
2608
      }
2609
 
2610
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2611
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2612
          throw new IllegalStateException("Method call not finished!");
2613
        }
2614
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2615
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2616
        return (new Client(prot)).recv_getAllVendors();
2617
      }
2618
    }
2619
 
2620
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2621
      checkReady();
2622
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2623
      this.___currentMethod = method_call;
2624
      ___manager.call(method_call);
2625
    }
2626
 
2627
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2628
      private String key;
2629
      private VendorItemMapping vendorItemMapping;
2630
      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 {
2631
        super(client, protocolFactory, transport, resultHandler, false);
2632
        this.key = key;
2633
        this.vendorItemMapping = vendorItemMapping;
2634
      }
2635
 
2636
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2637
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2638
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2639
        args.setKey(key);
2640
        args.setVendorItemMapping(vendorItemMapping);
2641
        args.write(prot);
2642
        prot.writeMessageEnd();
2643
      }
2644
 
2645
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2646
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2647
          throw new IllegalStateException("Method call not finished!");
2648
        }
2649
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2650
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2651
        (new Client(prot)).recv_addVendorItemMapping();
2652
      }
2653
    }
2654
 
2655
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2656
      checkReady();
2657
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2658
      this.___currentMethod = method_call;
2659
      ___manager.call(method_call);
2660
    }
2661
 
2662
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2663
      private long itemId;
2664
      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 {
2665
        super(client, protocolFactory, transport, resultHandler, false);
2666
        this.itemId = itemId;
2667
      }
2668
 
2669
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2670
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2671
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2672
        args.setItemId(itemId);
2673
        args.write(prot);
2674
        prot.writeMessageEnd();
2675
      }
2676
 
2677
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2678
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2679
          throw new IllegalStateException("Method call not finished!");
2680
        }
2681
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2682
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2683
        return (new Client(prot)).recv_getVendorItemMappings();
2684
      }
2685
    }
2686
 
2687
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2688
      checkReady();
2689
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2690
      this.___currentMethod = method_call;
2691
      ___manager.call(method_call);
2692
    }
2693
 
2694
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2695
      private long vendorid;
2696
      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 {
2697
        super(client, protocolFactory, transport, resultHandler, false);
2698
        this.vendorid = vendorid;
2699
      }
2700
 
2701
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2702
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2703
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2704
        args.setVendorid(vendorid);
2705
        args.write(prot);
2706
        prot.writeMessageEnd();
2707
      }
2708
 
2709
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2710
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2711
          throw new IllegalStateException("Method call not finished!");
2712
        }
2713
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2714
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2715
        return (new Client(prot)).recv_getPendingOrdersInventory();
2716
      }
2717
    }
2718
 
2719
    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 {
2720
      checkReady();
2721
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2722
      this.___currentMethod = method_call;
2723
      ___manager.call(method_call);
2724
    }
2725
 
2726
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2727
      private WarehouseType warehouseType;
2728
      private InventoryType inventoryType;
2729
      private long vendorId;
2730
      private long billingWarehouseId;
2731
      private long shippingWarehouseId;
2732
      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 {
2733
        super(client, protocolFactory, transport, resultHandler, false);
2734
        this.warehouseType = warehouseType;
2735
        this.inventoryType = inventoryType;
2736
        this.vendorId = vendorId;
2737
        this.billingWarehouseId = billingWarehouseId;
2738
        this.shippingWarehouseId = shippingWarehouseId;
2739
      }
2740
 
2741
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2742
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2743
        getWarehouses_args args = new getWarehouses_args();
2744
        args.setWarehouseType(warehouseType);
2745
        args.setInventoryType(inventoryType);
2746
        args.setVendorId(vendorId);
2747
        args.setBillingWarehouseId(billingWarehouseId);
2748
        args.setShippingWarehouseId(shippingWarehouseId);
2749
        args.write(prot);
2750
        prot.writeMessageEnd();
2751
      }
2752
 
2753
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2754
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2755
          throw new IllegalStateException("Method call not finished!");
2756
        }
2757
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2758
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2759
        return (new Client(prot)).recv_getWarehouses();
2760
      }
2761
    }
2762
 
2763
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2764
      checkReady();
2765
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2766
      this.___currentMethod = method_call;
2767
      ___manager.call(method_call);
2768
    }
2769
 
2770
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2771
      private String itemKey;
2772
      private long vendorId;
2773
      private long quantity;
2774
      private long warehouseId;
2775
      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 {
2776
        super(client, protocolFactory, transport, resultHandler, false);
2777
        this.itemKey = itemKey;
2778
        this.vendorId = vendorId;
2779
        this.quantity = quantity;
2780
        this.warehouseId = warehouseId;
2781
      }
2782
 
2783
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2784
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2785
        resetAvailability_args args = new resetAvailability_args();
2786
        args.setItemKey(itemKey);
2787
        args.setVendorId(vendorId);
2788
        args.setQuantity(quantity);
2789
        args.setWarehouseId(warehouseId);
2790
        args.write(prot);
2791
        prot.writeMessageEnd();
2792
      }
2793
 
2794
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2795
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2796
          throw new IllegalStateException("Method call not finished!");
2797
        }
2798
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2799
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2800
        (new Client(prot)).recv_resetAvailability();
2801
      }
2802
    }
2803
 
2804
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2805
      checkReady();
2806
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2807
      this.___currentMethod = method_call;
2808
      ___manager.call(method_call);
2809
    }
2810
 
2811
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2812
      private long warehouseId;
2813
      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 {
2814
        super(client, protocolFactory, transport, resultHandler, false);
2815
        this.warehouseId = warehouseId;
2816
      }
2817
 
2818
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2819
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2820
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2821
        args.setWarehouseId(warehouseId);
2822
        args.write(prot);
2823
        prot.writeMessageEnd();
2824
      }
2825
 
2826
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2827
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2828
          throw new IllegalStateException("Method call not finished!");
2829
        }
2830
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2831
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2832
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2833
      }
2834
    }
2835
 
2836
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2837
      checkReady();
2838
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2839
      this.___currentMethod = method_call;
2840
      ___manager.call(method_call);
2841
    }
2842
 
2843
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2844
      private long warehouseId;
2845
      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 {
2846
        super(client, protocolFactory, transport, resultHandler, false);
2847
        this.warehouseId = warehouseId;
2848
      }
2849
 
2850
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2851
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2852
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2853
        args.setWarehouseId(warehouseId);
2854
        args.write(prot);
2855
        prot.writeMessageEnd();
2856
      }
2857
 
2858
      public List<String> getResult() throws org.apache.thrift.TException {
2859
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2860
          throw new IllegalStateException("Method call not finished!");
2861
        }
2862
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2863
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2864
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2865
      }
2866
    }
2867
 
2868
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2869
      checkReady();
2870
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2871
      this.___currentMethod = method_call;
2872
      ___manager.call(method_call);
2873
    }
2874
 
2875
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2876
      private String itemKey;
2877
      private long warehouseId;
2878
      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 {
2879
        super(client, protocolFactory, transport, resultHandler, false);
2880
        this.itemKey = itemKey;
2881
        this.warehouseId = warehouseId;
2882
      }
2883
 
2884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2886
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2887
        args.setItemKey(itemKey);
2888
        args.setWarehouseId(warehouseId);
2889
        args.write(prot);
2890
        prot.writeMessageEnd();
2891
      }
2892
 
2893
      public void getResult() throws org.apache.thrift.TException {
2894
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2895
          throw new IllegalStateException("Method call not finished!");
2896
        }
2897
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2898
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2899
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2900
      }
2901
    }
2902
 
2903
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2904
      checkReady();
2905
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2906
      this.___currentMethod = method_call;
2907
      ___manager.call(method_call);
2908
    }
2909
 
2910
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2911
      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 {
2912
        super(client, protocolFactory, transport, resultHandler, false);
2913
      }
2914
 
2915
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2916
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2917
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2918
        args.write(prot);
2919
        prot.writeMessageEnd();
2920
      }
2921
 
2922
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2923
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2924
          throw new IllegalStateException("Method call not finished!");
2925
        }
2926
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2928
        return (new Client(prot)).recv_getIgnoredItemKeys();
2929
      }
2930
    }
2931
 
2932
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2933
      checkReady();
2934
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2935
      this.___currentMethod = method_call;
2936
      ___manager.call(method_call);
2937
    }
2938
 
2939
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2940
      private long itemId;
2941
      private long warehouseId;
2942
      private long quantity;
2943
      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 {
2944
        super(client, protocolFactory, transport, resultHandler, false);
2945
        this.itemId = itemId;
2946
        this.warehouseId = warehouseId;
2947
        this.quantity = quantity;
2948
      }
2949
 
2950
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2951
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2952
        addBadInventory_args args = new addBadInventory_args();
2953
        args.setItemId(itemId);
2954
        args.setWarehouseId(warehouseId);
2955
        args.setQuantity(quantity);
2956
        args.write(prot);
2957
        prot.writeMessageEnd();
2958
      }
2959
 
2960
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2961
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2962
          throw new IllegalStateException("Method call not finished!");
2963
        }
2964
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2965
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2966
        (new Client(prot)).recv_addBadInventory();
2967
      }
2968
    }
2969
 
2970
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2971
      checkReady();
2972
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2973
      this.___currentMethod = method_call;
2974
      ___manager.call(method_call);
2975
    }
2976
 
2977
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2978
      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 {
2979
        super(client, protocolFactory, transport, resultHandler, false);
2980
      }
2981
 
2982
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2983
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2984
        getShippingLocations_args args = new getShippingLocations_args();
2985
        args.write(prot);
2986
        prot.writeMessageEnd();
2987
      }
2988
 
2989
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2990
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2991
          throw new IllegalStateException("Method call not finished!");
2992
        }
2993
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2994
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2995
        return (new Client(prot)).recv_getShippingLocations();
2996
      }
2997
    }
2998
 
2999
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
3000
      checkReady();
3001
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
3002
      this.___currentMethod = method_call;
3003
      ___manager.call(method_call);
3004
    }
3005
 
3006
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
3007
      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 {
3008
        super(client, protocolFactory, transport, resultHandler, false);
3009
      }
3010
 
3011
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3012
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
3013
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
3014
        args.write(prot);
3015
        prot.writeMessageEnd();
3016
      }
3017
 
3018
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
3019
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3020
          throw new IllegalStateException("Method call not finished!");
3021
        }
3022
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3023
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3024
        return (new Client(prot)).recv_getAllVendorItemMappings();
3025
      }
3026
    }
3027
 
3028
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
3029
      checkReady();
3030
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3031
      this.___currentMethod = method_call;
3032
      ___manager.call(method_call);
3033
    }
3034
 
3035
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
3036
      private long warehouseId;
3037
      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 {
3038
        super(client, protocolFactory, transport, resultHandler, false);
3039
        this.warehouseId = warehouseId;
3040
      }
3041
 
3042
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3043
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
3044
        getInventorySnapshot_args args = new getInventorySnapshot_args();
3045
        args.setWarehouseId(warehouseId);
3046
        args.write(prot);
3047
        prot.writeMessageEnd();
3048
      }
3049
 
3050
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
3051
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3052
          throw new IllegalStateException("Method call not finished!");
3053
        }
3054
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3055
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3056
        return (new Client(prot)).recv_getInventorySnapshot();
3057
      }
3058
    }
3059
 
3060
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
3061
      checkReady();
3062
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
3063
      this.___currentMethod = method_call;
3064
      ___manager.call(method_call);
3065
    }
3066
 
3067
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
3068
      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 {
3069
        super(client, protocolFactory, transport, resultHandler, false);
3070
      }
3071
 
3072
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3073
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
3074
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
3075
        args.write(prot);
3076
        prot.writeMessageEnd();
3077
      }
3078
 
3079
      public void getResult() throws org.apache.thrift.TException {
3080
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3081
          throw new IllegalStateException("Method call not finished!");
3082
        }
3083
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3084
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3085
        (new Client(prot)).recv_clearItemAvailabilityCache();
3086
      }
3087
    }
3088
 
3089
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
3090
      checkReady();
3091
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
3092
      this.___currentMethod = method_call;
3093
      ___manager.call(method_call);
3094
    }
3095
 
3096
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
3097
      private long warehouseId;
3098
      private String vendorString;
3099
      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 {
3100
        super(client, protocolFactory, transport, resultHandler, false);
3101
        this.warehouseId = warehouseId;
3102
        this.vendorString = vendorString;
3103
      }
3104
 
3105
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3106
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
3107
        updateVendorString_args args = new updateVendorString_args();
3108
        args.setWarehouseId(warehouseId);
3109
        args.setVendorString(vendorString);
3110
        args.write(prot);
3111
        prot.writeMessageEnd();
3112
      }
3113
 
3114
      public void getResult() throws org.apache.thrift.TException {
3115
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3116
          throw new IllegalStateException("Method call not finished!");
3117
        }
3118
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3119
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3120
        (new Client(prot)).recv_updateVendorString();
3121
      }
3122
    }
3123
 
6096 amit.gupta 3124
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
3125
      checkReady();
3126
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3127
      this.___currentMethod = method_call;
3128
      ___manager.call(method_call);
3129
    }
3130
 
3131
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3132
      private long item_id;
3133
      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 {
3134
        super(client, protocolFactory, transport, resultHandler, false);
3135
        this.item_id = item_id;
3136
      }
3137
 
3138
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3139
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3140
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
3141
        args.setItem_id(item_id);
3142
        args.write(prot);
3143
        prot.writeMessageEnd();
3144
      }
3145
 
3146
      public void getResult() throws org.apache.thrift.TException {
3147
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3148
          throw new IllegalStateException("Method call not finished!");
3149
        }
3150
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3152
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
3153
      }
3154
    }
3155
 
7718 amar.kumar 3156
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
6467 amar.kumar 3157
      checkReady();
7718 amar.kumar 3158
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
6467 amar.kumar 3159
      this.___currentMethod = method_call;
3160
      ___manager.call(method_call);
3161
    }
3162
 
3163
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3164
      private long vendorId;
7718 amar.kumar 3165
      private long billingWarehouseId;
3166
      public getOurWarehouseIdForVendor_call(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6467 amar.kumar 3167
        super(client, protocolFactory, transport, resultHandler, false);
3168
        this.vendorId = vendorId;
7718 amar.kumar 3169
        this.billingWarehouseId = billingWarehouseId;
6467 amar.kumar 3170
      }
3171
 
3172
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3173
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3174
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
3175
        args.setVendorId(vendorId);
7718 amar.kumar 3176
        args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 3177
        args.write(prot);
3178
        prot.writeMessageEnd();
3179
      }
3180
 
3181
      public long getResult() throws org.apache.thrift.TException {
3182
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3183
          throw new IllegalStateException("Method call not finished!");
3184
        }
3185
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3186
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3187
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
3188
      }
3189
    }
3190
 
6484 amar.kumar 3191
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
3192
      checkReady();
3193
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
3194
      this.___currentMethod = method_call;
3195
      ___manager.call(method_call);
3196
    }
3197
 
3198
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3199
      private List<Long> item_ids;
3200
      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 {
3201
        super(client, protocolFactory, transport, resultHandler, false);
3202
        this.item_ids = item_ids;
3203
      }
3204
 
3205
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3206
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3207
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
3208
        args.setItem_ids(item_ids);
3209
        args.write(prot);
3210
        prot.writeMessageEnd();
3211
      }
3212
 
3213
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
3214
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3215
          throw new IllegalStateException("Method call not finished!");
3216
        }
3217
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3218
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3219
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
3220
      }
3221
    }
3222
 
6531 vikram.rag 3223
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
3224
      checkReady();
3225
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
3226
      this.___currentMethod = method_call;
3227
      ___manager.call(method_call);
3228
    }
3229
 
3230
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3231
      private List<Long> vendorIds;
3232
      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 {
3233
        super(client, protocolFactory, transport, resultHandler, false);
3234
        this.vendorIds = vendorIds;
3235
      }
3236
 
3237
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3238
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3239
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
3240
        args.setVendorIds(vendorIds);
3241
        args.write(prot);
3242
        prot.writeMessageEnd();
3243
      }
3244
 
3245
      public List<Long> getResult() throws org.apache.thrift.TException {
3246
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3247
          throw new IllegalStateException("Method call not finished!");
3248
        }
3249
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3250
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3251
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
3252
      }
3253
    }
3254
 
3255
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
3256
      checkReady();
3257
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
3258
      this.___currentMethod = method_call;
3259
      ___manager.call(method_call);
3260
    }
3261
 
3262
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3263
      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 {
3264
        super(client, protocolFactory, transport, resultHandler, false);
3265
      }
3266
 
3267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3269
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
3270
        args.write(prot);
3271
        prot.writeMessageEnd();
3272
      }
3273
 
3274
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
3275
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3276
          throw new IllegalStateException("Method call not finished!");
3277
        }
3278
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3279
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3280
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
3281
      }
3282
    }
3283
 
3284
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
3285
      checkReady();
3286
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3287
      this.___currentMethod = method_call;
3288
      ___manager.call(method_call);
3289
    }
3290
 
3291
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
3292
      private long item_id;
3293
      private long warehouse_id;
3294
      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 {
3295
        super(client, protocolFactory, transport, resultHandler, false);
3296
        this.item_id = item_id;
3297
        this.warehouse_id = warehouse_id;
3298
      }
3299
 
3300
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3301
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
3302
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
3303
        args.setItem_id(item_id);
3304
        args.setWarehouse_id(warehouse_id);
3305
        args.write(prot);
3306
        prot.writeMessageEnd();
3307
      }
3308
 
3309
      public boolean getResult() throws org.apache.thrift.TException {
3310
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3311
          throw new IllegalStateException("Method call not finished!");
3312
        }
3313
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3314
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3315
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
3316
      }
3317
    }
3318
 
3319
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
3320
      checkReady();
3321
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3322
      this.___currentMethod = method_call;
3323
      ___manager.call(method_call);
3324
    }
3325
 
3326
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
3327
      private long item_id;
3328
      private long warehouse_id;
3329
      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 {
3330
        super(client, protocolFactory, transport, resultHandler, false);
3331
        this.item_id = item_id;
3332
        this.warehouse_id = warehouse_id;
3333
      }
3334
 
3335
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3336
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
3337
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
3338
        args.setItem_id(item_id);
3339
        args.setWarehouse_id(warehouse_id);
3340
        args.write(prot);
3341
        prot.writeMessageEnd();
3342
      }
3343
 
3344
      public boolean getResult() throws org.apache.thrift.TException {
3345
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3346
          throw new IllegalStateException("Method call not finished!");
3347
        }
3348
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3349
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3350
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
3351
      }
3352
    }
3353
 
3354
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
3355
      checkReady();
3356
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3357
      this.___currentMethod = method_call;
3358
      ___manager.call(method_call);
3359
    }
3360
 
3361
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3362
      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 {
3363
        super(client, protocolFactory, transport, resultHandler, false);
3364
      }
3365
 
3366
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3367
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3368
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
3369
        args.write(prot);
3370
        prot.writeMessageEnd();
3371
      }
3372
 
3373
      public int getResult() throws org.apache.thrift.TException {
3374
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3375
          throw new IllegalStateException("Method call not finished!");
3376
        }
3377
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3378
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3379
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
3380
      }
3381
    }
3382
 
3383
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
3384
      checkReady();
3385
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3386
      this.___currentMethod = method_call;
3387
      ___manager.call(method_call);
3388
    }
3389
 
3390
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3391
      private int offset;
3392
      private int limit;
3393
      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 {
3394
        super(client, protocolFactory, transport, resultHandler, false);
3395
        this.offset = offset;
3396
        this.limit = limit;
3397
      }
3398
 
3399
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3400
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3401
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
3402
        args.setOffset(offset);
3403
        args.setLimit(limit);
3404
        args.write(prot);
3405
        prot.writeMessageEnd();
3406
      }
3407
 
3408
      public List<Long> getResult() throws org.apache.thrift.TException {
3409
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3410
          throw new IllegalStateException("Method call not finished!");
3411
        }
3412
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3413
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3414
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
3415
      }
3416
    }
3417
 
6821 amar.kumar 3418
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3419
      checkReady();
3420
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
3421
      this.___currentMethod = method_call;
3422
      ___manager.call(method_call);
3423
    }
3424
 
3425
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3426
      private long item_id;
3427
      private int numOfDaysStock;
3428
      private long minStockLevel;
3429
      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 {
3430
        super(client, protocolFactory, transport, resultHandler, false);
3431
        this.item_id = item_id;
3432
        this.numOfDaysStock = numOfDaysStock;
3433
        this.minStockLevel = minStockLevel;
3434
      }
3435
 
3436
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3437
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3438
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
3439
        args.setItem_id(item_id);
3440
        args.setNumOfDaysStock(numOfDaysStock);
3441
        args.setMinStockLevel(minStockLevel);
3442
        args.write(prot);
3443
        prot.writeMessageEnd();
3444
      }
3445
 
3446
      public void getResult() throws org.apache.thrift.TException {
3447
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3448
          throw new IllegalStateException("Method call not finished!");
3449
        }
3450
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3451
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3452
        (new Client(prot)).recv_updateItemStockPurchaseParams();
3453
      }
3454
    }
3455
 
3456
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3457
      checkReady();
3458
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3459
      this.___currentMethod = method_call;
3460
      ___manager.call(method_call);
3461
    }
3462
 
3463
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3464
      private long itemId;
3465
      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 {
3466
        super(client, protocolFactory, transport, resultHandler, false);
3467
        this.itemId = itemId;
3468
      }
3469
 
3470
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3471
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3472
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
3473
        args.setItemId(itemId);
3474
        args.write(prot);
3475
        prot.writeMessageEnd();
3476
      }
3477
 
3478
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
3479
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3480
          throw new IllegalStateException("Method call not finished!");
3481
        }
3482
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3483
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3484
        return (new Client(prot)).recv_getItemStockPurchaseParams();
3485
      }
3486
    }
3487
 
3488
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
3489
      checkReady();
3490
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
3491
      this.___currentMethod = method_call;
3492
      ___manager.call(method_call);
3493
    }
3494
 
3495
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3496
      private Map<Long,Boolean> oosStatusMap;
3497
      private long date;
3498
      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 {
3499
        super(client, protocolFactory, transport, resultHandler, false);
3500
        this.oosStatusMap = oosStatusMap;
3501
        this.date = date;
3502
      }
3503
 
3504
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3505
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3506
        addOosStatusForItem_args args = new addOosStatusForItem_args();
3507
        args.setOosStatusMap(oosStatusMap);
3508
        args.setDate(date);
3509
        args.write(prot);
3510
        prot.writeMessageEnd();
3511
      }
3512
 
3513
      public void getResult() throws org.apache.thrift.TException {
3514
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3515
          throw new IllegalStateException("Method call not finished!");
3516
        }
3517
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3518
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3519
        (new Client(prot)).recv_addOosStatusForItem();
3520
      }
3521
    }
3522
 
6832 amar.kumar 3523
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException {
3524
      checkReady();
3525
      getOosStatusesForXDaysForItem_call method_call = new getOosStatusesForXDaysForItem_call(itemId, days, resultHandler, this, ___protocolFactory, ___transport);
3526
      this.___currentMethod = method_call;
3527
      ___manager.call(method_call);
3528
    }
3529
 
3530
    public static class getOosStatusesForXDaysForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3531
      private long itemId;
3532
      private int days;
3533
      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 {
3534
        super(client, protocolFactory, transport, resultHandler, false);
3535
        this.itemId = itemId;
3536
        this.days = days;
3537
      }
3538
 
3539
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3540
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDaysForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3541
        getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
3542
        args.setItemId(itemId);
3543
        args.setDays(days);
3544
        args.write(prot);
3545
        prot.writeMessageEnd();
3546
      }
3547
 
3548
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
3549
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3550
          throw new IllegalStateException("Method call not finished!");
3551
        }
3552
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3553
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3554
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
3555
      }
3556
    }
3557
 
6857 amar.kumar 3558
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3559
      checkReady();
3560
      getNonZeroItemStockPurchaseParams_call method_call = new getNonZeroItemStockPurchaseParams_call(resultHandler, this, ___protocolFactory, ___transport);
3561
      this.___currentMethod = method_call;
3562
      ___manager.call(method_call);
3563
    }
3564
 
3565
    public static class getNonZeroItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3566
      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 {
3567
        super(client, protocolFactory, transport, resultHandler, false);
3568
      }
3569
 
3570
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3571
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonZeroItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3572
        getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
3573
        args.write(prot);
3574
        prot.writeMessageEnd();
3575
      }
3576
 
3577
      public List<ItemStockPurchaseParams> getResult() throws org.apache.thrift.TException {
3578
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3579
          throw new IllegalStateException("Method call not finished!");
3580
        }
3581
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3582
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3583
        return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
3584
      }
3585
    }
3586
 
7149 amar.kumar 3587
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException {
3588
      checkReady();
3589
      getBillableInventoryAndPendingOrders_call method_call = new getBillableInventoryAndPendingOrders_call(resultHandler, this, ___protocolFactory, ___transport);
3590
      this.___currentMethod = method_call;
3591
      ___manager.call(method_call);
3592
    }
3593
 
3594
    public static class getBillableInventoryAndPendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3595
      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 {
3596
        super(client, protocolFactory, transport, resultHandler, false);
3597
      }
3598
 
3599
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3600
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBillableInventoryAndPendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3601
        getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
3602
        args.write(prot);
3603
        prot.writeMessageEnd();
3604
      }
3605
 
3606
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
3607
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3608
          throw new IllegalStateException("Method call not finished!");
3609
        }
3610
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3612
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
3613
      }
3614
    }
3615
 
7281 kshitij.so 3616
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_call> resultHandler) throws org.apache.thrift.TException {
3617
      checkReady();
3618
      getWarehouseName_call method_call = new getWarehouseName_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3619
      this.___currentMethod = method_call;
3620
      ___manager.call(method_call);
3621
    }
3622
 
3623
    public static class getWarehouseName_call extends org.apache.thrift.async.TAsyncMethodCall {
3624
      private long warehouse_id;
3625
      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 {
3626
        super(client, protocolFactory, transport, resultHandler, false);
3627
        this.warehouse_id = warehouse_id;
3628
      }
3629
 
3630
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3631
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3632
        getWarehouseName_args args = new getWarehouseName_args();
3633
        args.setWarehouse_id(warehouse_id);
3634
        args.write(prot);
3635
        prot.writeMessageEnd();
3636
      }
3637
 
3638
      public String getResult() throws org.apache.thrift.TException {
3639
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3640
          throw new IllegalStateException("Method call not finished!");
3641
        }
3642
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3643
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3644
        return (new Client(prot)).recv_getWarehouseName();
3645
      }
3646
    }
3647
 
3648
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
3649
      checkReady();
3650
      getAmazonInventoryForItem_call method_call = new getAmazonInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3651
      this.___currentMethod = method_call;
3652
      ___manager.call(method_call);
3653
    }
3654
 
3655
    public static class getAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3656
      private long item_id;
3657
      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 {
3658
        super(client, protocolFactory, transport, resultHandler, false);
3659
        this.item_id = item_id;
3660
      }
3661
 
3662
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3663
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3664
        getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
3665
        args.setItem_id(item_id);
3666
        args.write(prot);
3667
        prot.writeMessageEnd();
3668
      }
3669
 
3670
      public AmazonInventorySnapshot getResult() throws org.apache.thrift.TException {
3671
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3672
          throw new IllegalStateException("Method call not finished!");
3673
        }
3674
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3676
        return (new Client(prot)).recv_getAmazonInventoryForItem();
3677
      }
3678
    }
3679
 
3680
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException {
3681
      checkReady();
3682
      getAllAmazonInventory_call method_call = new getAllAmazonInventory_call(resultHandler, this, ___protocolFactory, ___transport);
3683
      this.___currentMethod = method_call;
3684
      ___manager.call(method_call);
3685
    }
3686
 
3687
    public static class getAllAmazonInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3688
      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 {
3689
        super(client, protocolFactory, transport, resultHandler, false);
3690
      }
3691
 
3692
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3693
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3694
        getAllAmazonInventory_args args = new getAllAmazonInventory_args();
3695
        args.write(prot);
3696
        prot.writeMessageEnd();
3697
      }
3698
 
3699
      public List<AmazonInventorySnapshot> getResult() throws org.apache.thrift.TException {
3700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3701
          throw new IllegalStateException("Method call not finished!");
3702
        }
3703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3705
        return (new Client(prot)).recv_getAllAmazonInventory();
3706
      }
3707
    }
3708
 
3709
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
3710
      checkReady();
3711
      addOrUpdateAmazonInventoryForItem_call method_call = new addOrUpdateAmazonInventoryForItem_call(amazonInventorySnapshot, resultHandler, this, ___protocolFactory, ___transport);
3712
      this.___currentMethod = method_call;
3713
      ___manager.call(method_call);
3714
    }
3715
 
3716
    public static class addOrUpdateAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3717
      private AmazonInventorySnapshot amazonInventorySnapshot;
3718
      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 {
3719
        super(client, protocolFactory, transport, resultHandler, false);
3720
        this.amazonInventorySnapshot = amazonInventorySnapshot;
3721
      }
3722
 
3723
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3724
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3725
        addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
3726
        args.setAmazonInventorySnapshot(amazonInventorySnapshot);
3727
        args.write(prot);
3728
        prot.writeMessageEnd();
3729
      }
3730
 
3731
      public void getResult() throws org.apache.thrift.TException {
3732
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3733
          throw new IllegalStateException("Method call not finished!");
3734
        }
3735
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3736
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3737
        (new Client(prot)).recv_addOrUpdateAmazonInventoryForItem();
3738
      }
3739
    }
3740
 
7972 amar.kumar 3741
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException {
3742
      checkReady();
3743
      getLastNdaySaleForItem_call method_call = new getLastNdaySaleForItem_call(itemId, numberOfDays, resultHandler, this, ___protocolFactory, ___transport);
3744
      this.___currentMethod = method_call;
3745
      ___manager.call(method_call);
3746
    }
3747
 
3748
    public static class getLastNdaySaleForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3749
      private long itemId;
3750
      private long numberOfDays;
3751
      public getLastNdaySaleForItem_call(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<getLastNdaySaleForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3752
        super(client, protocolFactory, transport, resultHandler, false);
3753
        this.itemId = itemId;
3754
        this.numberOfDays = numberOfDays;
3755
      }
3756
 
3757
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3758
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastNdaySaleForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3759
        getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
3760
        args.setItemId(itemId);
3761
        args.setNumberOfDays(numberOfDays);
3762
        args.write(prot);
3763
        prot.writeMessageEnd();
3764
      }
3765
 
3766
      public String getResult() throws org.apache.thrift.TException {
3767
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3768
          throw new IllegalStateException("Method call not finished!");
3769
        }
3770
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3771
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3772
        return (new Client(prot)).recv_getLastNdaySaleForItem();
3773
      }
3774
    }
3775
 
8182 amar.kumar 3776
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
3777
      checkReady();
3778
      addUpdateHoldInventory_call method_call = new addUpdateHoldInventory_call(itemId, warehouseId, holdQuantity, source, resultHandler, this, ___protocolFactory, ___transport);
3779
      this.___currentMethod = method_call;
3780
      ___manager.call(method_call);
3781
    }
3782
 
3783
    public static class addUpdateHoldInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3784
      private long itemId;
3785
      private long warehouseId;
3786
      private long holdQuantity;
3787
      private long source;
3788
      public addUpdateHoldInventory_call(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3789
        super(client, protocolFactory, transport, resultHandler, false);
3790
        this.itemId = itemId;
3791
        this.warehouseId = warehouseId;
3792
        this.holdQuantity = holdQuantity;
3793
        this.source = source;
3794
      }
3795
 
3796
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3797
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUpdateHoldInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3798
        addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
3799
        args.setItemId(itemId);
3800
        args.setWarehouseId(warehouseId);
3801
        args.setHoldQuantity(holdQuantity);
3802
        args.setSource(source);
3803
        args.write(prot);
3804
        prot.writeMessageEnd();
3805
      }
3806
 
3807
      public void getResult() throws org.apache.thrift.TException {
3808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3809
          throw new IllegalStateException("Method call not finished!");
3810
        }
3811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3813
        (new Client(prot)).recv_addUpdateHoldInventory();
3814
      }
3815
    }
3816
 
5945 mandeep.dh 3817
  }
3818
 
3819
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3820
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3821
    public Processor(I iface) {
3822
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3823
    }
3824
 
3825
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3826
      super(iface, getProcessMap(processMap));
3827
    }
3828
 
3829
    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) {
3830
      processMap.put("addWarehouse", new addWarehouse());
3831
      processMap.put("addVendor", new addVendor());
3832
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
3833
      processMap.put("updateInventory", new updateInventory());
3834
      processMap.put("addInventory", new addInventory());
3835
      processMap.put("retireWarehouse", new retireWarehouse());
3836
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
3837
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
3838
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
3839
      processMap.put("getAllWarehouses", new getAllWarehouses());
3840
      processMap.put("getWarehouse", new getWarehouse());
3841
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 3842
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 3843
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
7968 amar.kumar 3844
      processMap.put("updateReservationForOrder", new updateReservationForOrder());
5945 mandeep.dh 3845
      processMap.put("reduceReservationCount", new reduceReservationCount());
3846
      processMap.put("getItemPricing", new getItemPricing());
3847
      processMap.put("getAllItemPricing", new getAllItemPricing());
3848
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3849
      processMap.put("getVendor", new getVendor());
3850
      processMap.put("getAllVendors", new getAllVendors());
3851
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
3852
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
3853
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
3854
      processMap.put("getWarehouses", new getWarehouses());
3855
      processMap.put("resetAvailability", new resetAvailability());
3856
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
3857
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
3858
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
3859
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
3860
      processMap.put("addBadInventory", new addBadInventory());
3861
      processMap.put("getShippingLocations", new getShippingLocations());
3862
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
3863
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
3864
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
3865
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 3866
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 3867
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 3868
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 3869
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
3870
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3871
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3872
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3873
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3874
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
6821 amar.kumar 3875
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3876
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3877
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
6832 amar.kumar 3878
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
6857 amar.kumar 3879
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
7149 amar.kumar 3880
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
7281 kshitij.so 3881
      processMap.put("getWarehouseName", new getWarehouseName());
3882
      processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
3883
      processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
3884
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
7972 amar.kumar 3885
      processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
8182 amar.kumar 3886
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
5945 mandeep.dh 3887
      return processMap;
3888
    }
3889
 
3890
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3891
      public addWarehouse() {
3892
        super("addWarehouse");
3893
      }
3894
 
3895
      protected addWarehouse_args getEmptyArgsInstance() {
3896
        return new addWarehouse_args();
3897
      }
3898
 
3899
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
3900
        addWarehouse_result result = new addWarehouse_result();
3901
        try {
3902
          result.success = iface.addWarehouse(args.warehouse);
3903
          result.setSuccessIsSet(true);
3904
        } catch (InventoryServiceException cex) {
3905
          result.cex = cex;
3906
        }
3907
        return result;
3908
      }
3909
    }
3910
 
3911
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
3912
      public addVendor() {
3913
        super("addVendor");
3914
      }
3915
 
3916
      protected addVendor_args getEmptyArgsInstance() {
3917
        return new addVendor_args();
3918
      }
3919
 
3920
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
3921
        addVendor_result result = new addVendor_result();
3922
        try {
3923
          result.success = iface.addVendor(args.vendor);
3924
          result.setSuccessIsSet(true);
3925
        } catch (InventoryServiceException cex) {
3926
          result.cex = cex;
3927
        }
3928
        return result;
3929
      }
3930
    }
3931
 
3932
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
3933
      public updateInventoryHistory() {
3934
        super("updateInventoryHistory");
3935
      }
3936
 
3937
      protected updateInventoryHistory_args getEmptyArgsInstance() {
3938
        return new updateInventoryHistory_args();
3939
      }
3940
 
3941
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
3942
        updateInventoryHistory_result result = new updateInventoryHistory_result();
3943
        try {
3944
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
3945
        } catch (InventoryServiceException cex) {
3946
          result.cex = cex;
3947
        }
3948
        return result;
3949
      }
3950
    }
3951
 
3952
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
3953
      public updateInventory() {
3954
        super("updateInventory");
3955
      }
3956
 
3957
      protected updateInventory_args getEmptyArgsInstance() {
3958
        return new updateInventory_args();
3959
      }
3960
 
3961
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
3962
        updateInventory_result result = new updateInventory_result();
3963
        try {
3964
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
3965
        } catch (InventoryServiceException cex) {
3966
          result.cex = cex;
3967
        }
3968
        return result;
3969
      }
3970
    }
3971
 
3972
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
3973
      public addInventory() {
3974
        super("addInventory");
3975
      }
3976
 
3977
      protected addInventory_args getEmptyArgsInstance() {
3978
        return new addInventory_args();
3979
      }
3980
 
3981
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
3982
        addInventory_result result = new addInventory_result();
3983
        try {
3984
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
3985
        } catch (InventoryServiceException cex) {
3986
          result.cex = cex;
3987
        }
3988
        return result;
3989
      }
3990
    }
3991
 
3992
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
3993
      public retireWarehouse() {
3994
        super("retireWarehouse");
3995
      }
3996
 
3997
      protected retireWarehouse_args getEmptyArgsInstance() {
3998
        return new retireWarehouse_args();
3999
      }
4000
 
4001
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
4002
        retireWarehouse_result result = new retireWarehouse_result();
4003
        try {
4004
          iface.retireWarehouse(args.warehouse_id);
4005
        } catch (InventoryServiceException cex) {
4006
          result.cex = cex;
4007
        }
4008
        return result;
4009
      }
4010
    }
4011
 
4012
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
4013
      public getItemInventoryByItemId() {
4014
        super("getItemInventoryByItemId");
4015
      }
4016
 
4017
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
4018
        return new getItemInventoryByItemId_args();
4019
      }
4020
 
4021
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
4022
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
4023
        try {
4024
          result.success = iface.getItemInventoryByItemId(args.item_id);
4025
        } catch (InventoryServiceException cex) {
4026
          result.cex = cex;
4027
        }
4028
        return result;
4029
      }
4030
    }
4031
 
4032
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
4033
      public getItemAvailibilityAtWarehouse() {
4034
        super("getItemAvailibilityAtWarehouse");
4035
      }
4036
 
4037
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
4038
        return new getItemAvailibilityAtWarehouse_args();
4039
      }
4040
 
4041
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
4042
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
4043
        try {
4044
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
4045
          result.setSuccessIsSet(true);
4046
        } catch (InventoryServiceException cex) {
4047
          result.cex = cex;
4048
        }
4049
        return result;
4050
      }
4051
    }
4052
 
4053
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
4054
      public getItemAvailabilityAtLocation() {
4055
        super("getItemAvailabilityAtLocation");
4056
      }
4057
 
4058
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
4059
        return new getItemAvailabilityAtLocation_args();
4060
      }
4061
 
4062
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
4063
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
4064
        try {
5978 rajveer 4065
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 4066
        } catch (InventoryServiceException isex) {
4067
          result.isex = isex;
4068
        }
4069
        return result;
4070
      }
4071
    }
4072
 
4073
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
4074
      public getAllWarehouses() {
4075
        super("getAllWarehouses");
4076
      }
4077
 
4078
      protected getAllWarehouses_args getEmptyArgsInstance() {
4079
        return new getAllWarehouses_args();
4080
      }
4081
 
4082
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
4083
        getAllWarehouses_result result = new getAllWarehouses_result();
4084
        try {
4085
          result.success = iface.getAllWarehouses(args.isActive);
4086
        } catch (InventoryServiceException cex) {
4087
          result.cex = cex;
4088
        }
4089
        return result;
4090
      }
4091
    }
4092
 
4093
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
4094
      public getWarehouse() {
4095
        super("getWarehouse");
4096
      }
4097
 
4098
      protected getWarehouse_args getEmptyArgsInstance() {
4099
        return new getWarehouse_args();
4100
      }
4101
 
4102
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
4103
        getWarehouse_result result = new getWarehouse_result();
4104
        try {
4105
          result.success = iface.getWarehouse(args.warehouse_id);
4106
        } catch (InventoryServiceException cex) {
4107
          result.cex = cex;
4108
        }
4109
        return result;
4110
      }
4111
    }
4112
 
4113
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
4114
      public getAllItemsForWarehouse() {
4115
        super("getAllItemsForWarehouse");
4116
      }
4117
 
4118
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
4119
        return new getAllItemsForWarehouse_args();
4120
      }
4121
 
4122
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
4123
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
4124
        try {
4125
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
4126
        } catch (InventoryServiceException cex) {
4127
          result.cex = cex;
4128
        }
4129
        return result;
4130
      }
4131
    }
4132
 
5967 rajveer 4133
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
4134
      public isOrderBillable() {
4135
        super("isOrderBillable");
4136
      }
4137
 
4138
      protected isOrderBillable_args getEmptyArgsInstance() {
4139
        return new isOrderBillable_args();
4140
      }
4141
 
4142
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
4143
        isOrderBillable_result result = new isOrderBillable_result();
4144
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
4145
        result.setSuccessIsSet(true);
4146
        return result;
4147
      }
4148
    }
4149
 
5945 mandeep.dh 4150
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
4151
      public reserveItemInWarehouse() {
4152
        super("reserveItemInWarehouse");
4153
      }
4154
 
4155
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
4156
        return new reserveItemInWarehouse_args();
4157
      }
4158
 
4159
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
4160
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
4161
        try {
5967 rajveer 4162
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 4163
          result.setSuccessIsSet(true);
4164
        } catch (InventoryServiceException cex) {
4165
          result.cex = cex;
4166
        }
4167
        return result;
4168
      }
4169
    }
4170
 
7968 amar.kumar 4171
    private static class updateReservationForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateReservationForOrder_args> {
4172
      public updateReservationForOrder() {
4173
        super("updateReservationForOrder");
4174
      }
4175
 
4176
      protected updateReservationForOrder_args getEmptyArgsInstance() {
4177
        return new updateReservationForOrder_args();
4178
      }
4179
 
4180
      protected updateReservationForOrder_result getResult(I iface, updateReservationForOrder_args args) throws org.apache.thrift.TException {
4181
        updateReservationForOrder_result result = new updateReservationForOrder_result();
4182
        try {
4183
          result.success = iface.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
4184
          result.setSuccessIsSet(true);
4185
        } catch (InventoryServiceException cex) {
4186
          result.cex = cex;
4187
        }
4188
        return result;
4189
      }
4190
    }
4191
 
5945 mandeep.dh 4192
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
4193
      public reduceReservationCount() {
4194
        super("reduceReservationCount");
4195
      }
4196
 
4197
      protected reduceReservationCount_args getEmptyArgsInstance() {
4198
        return new reduceReservationCount_args();
4199
      }
4200
 
4201
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
4202
        reduceReservationCount_result result = new reduceReservationCount_result();
4203
        try {
5967 rajveer 4204
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 4205
          result.setSuccessIsSet(true);
4206
        } catch (InventoryServiceException cex) {
4207
          result.cex = cex;
4208
        }
4209
        return result;
4210
      }
4211
    }
4212
 
4213
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
4214
      public getItemPricing() {
4215
        super("getItemPricing");
4216
      }
4217
 
4218
      protected getItemPricing_args getEmptyArgsInstance() {
4219
        return new getItemPricing_args();
4220
      }
4221
 
4222
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
4223
        getItemPricing_result result = new getItemPricing_result();
4224
        try {
4225
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
4226
        } catch (InventoryServiceException cex) {
4227
          result.cex = cex;
4228
        }
4229
        return result;
4230
      }
4231
    }
4232
 
4233
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
4234
      public getAllItemPricing() {
4235
        super("getAllItemPricing");
4236
      }
4237
 
4238
      protected getAllItemPricing_args getEmptyArgsInstance() {
4239
        return new getAllItemPricing_args();
4240
      }
4241
 
4242
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
4243
        getAllItemPricing_result result = new getAllItemPricing_result();
4244
        try {
4245
          result.success = iface.getAllItemPricing(args.itemId);
4246
        } catch (InventoryServiceException cex) {
4247
          result.cex = cex;
4248
        }
4249
        return result;
4250
      }
4251
    }
4252
 
4253
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
4254
      public addVendorItemPricing() {
4255
        super("addVendorItemPricing");
4256
      }
4257
 
4258
      protected addVendorItemPricing_args getEmptyArgsInstance() {
4259
        return new addVendorItemPricing_args();
4260
      }
4261
 
4262
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
4263
        addVendorItemPricing_result result = new addVendorItemPricing_result();
4264
        try {
4265
          iface.addVendorItemPricing(args.vendorItemPricing);
4266
        } catch (InventoryServiceException cex) {
4267
          result.cex = cex;
4268
        }
4269
        return result;
4270
      }
4271
    }
4272
 
4273
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
4274
      public getVendor() {
4275
        super("getVendor");
4276
      }
4277
 
4278
      protected getVendor_args getEmptyArgsInstance() {
4279
        return new getVendor_args();
4280
      }
4281
 
4282
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
4283
        getVendor_result result = new getVendor_result();
4284
        result.success = iface.getVendor(args.vendorId);
4285
        return result;
4286
      }
4287
    }
4288
 
4289
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
4290
      public getAllVendors() {
4291
        super("getAllVendors");
4292
      }
4293
 
4294
      protected getAllVendors_args getEmptyArgsInstance() {
4295
        return new getAllVendors_args();
4296
      }
4297
 
4298
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
4299
        getAllVendors_result result = new getAllVendors_result();
4300
        result.success = iface.getAllVendors();
4301
        return result;
4302
      }
4303
    }
4304
 
4305
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
4306
      public addVendorItemMapping() {
4307
        super("addVendorItemMapping");
4308
      }
4309
 
4310
      protected addVendorItemMapping_args getEmptyArgsInstance() {
4311
        return new addVendorItemMapping_args();
4312
      }
4313
 
4314
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
4315
        addVendorItemMapping_result result = new addVendorItemMapping_result();
4316
        try {
4317
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
4318
        } catch (InventoryServiceException cex) {
4319
          result.cex = cex;
4320
        }
4321
        return result;
4322
      }
4323
    }
4324
 
4325
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
4326
      public getVendorItemMappings() {
4327
        super("getVendorItemMappings");
4328
      }
4329
 
4330
      protected getVendorItemMappings_args getEmptyArgsInstance() {
4331
        return new getVendorItemMappings_args();
4332
      }
4333
 
4334
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
4335
        getVendorItemMappings_result result = new getVendorItemMappings_result();
4336
        try {
4337
          result.success = iface.getVendorItemMappings(args.itemId);
4338
        } catch (InventoryServiceException cex) {
4339
          result.cex = cex;
4340
        }
4341
        return result;
4342
      }
4343
    }
4344
 
4345
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
4346
      public getPendingOrdersInventory() {
4347
        super("getPendingOrdersInventory");
4348
      }
4349
 
4350
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
4351
        return new getPendingOrdersInventory_args();
4352
      }
4353
 
4354
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
4355
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
4356
        result.success = iface.getPendingOrdersInventory(args.vendorid);
4357
        return result;
4358
      }
4359
    }
4360
 
4361
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
4362
      public getWarehouses() {
4363
        super("getWarehouses");
4364
      }
4365
 
4366
      protected getWarehouses_args getEmptyArgsInstance() {
4367
        return new getWarehouses_args();
4368
      }
4369
 
4370
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
4371
        getWarehouses_result result = new getWarehouses_result();
4372
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
4373
        return result;
4374
      }
4375
    }
4376
 
4377
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
4378
      public resetAvailability() {
4379
        super("resetAvailability");
4380
      }
4381
 
4382
      protected resetAvailability_args getEmptyArgsInstance() {
4383
        return new resetAvailability_args();
4384
      }
4385
 
4386
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
4387
        resetAvailability_result result = new resetAvailability_result();
4388
        try {
4389
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
4390
        } catch (InventoryServiceException cex) {
4391
          result.cex = cex;
4392
        }
4393
        return result;
4394
      }
4395
    }
4396
 
4397
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
4398
      public resetAvailabilityForWarehouse() {
4399
        super("resetAvailabilityForWarehouse");
4400
      }
4401
 
4402
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
4403
        return new resetAvailabilityForWarehouse_args();
4404
      }
4405
 
4406
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
4407
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
4408
        try {
4409
          iface.resetAvailabilityForWarehouse(args.warehouseId);
4410
        } catch (InventoryServiceException cex) {
4411
          result.cex = cex;
4412
        }
4413
        return result;
4414
      }
4415
    }
4416
 
4417
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
4418
      public getItemKeysToBeProcessed() {
4419
        super("getItemKeysToBeProcessed");
4420
      }
4421
 
4422
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
4423
        return new getItemKeysToBeProcessed_args();
4424
      }
4425
 
4426
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
4427
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
4428
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
4429
        return result;
4430
      }
4431
    }
4432
 
4433
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
4434
      public markMissedInventoryUpdatesAsProcessed() {
4435
        super("markMissedInventoryUpdatesAsProcessed");
4436
      }
4437
 
4438
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
4439
        return new markMissedInventoryUpdatesAsProcessed_args();
4440
      }
4441
 
4442
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
4443
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
4444
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
4445
        return result;
4446
      }
4447
    }
4448
 
4449
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
4450
      public getIgnoredItemKeys() {
4451
        super("getIgnoredItemKeys");
4452
      }
4453
 
4454
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
4455
        return new getIgnoredItemKeys_args();
4456
      }
4457
 
4458
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
4459
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
4460
        result.success = iface.getIgnoredItemKeys();
4461
        return result;
4462
      }
4463
    }
4464
 
4465
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
4466
      public addBadInventory() {
4467
        super("addBadInventory");
4468
      }
4469
 
4470
      protected addBadInventory_args getEmptyArgsInstance() {
4471
        return new addBadInventory_args();
4472
      }
4473
 
4474
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
4475
        addBadInventory_result result = new addBadInventory_result();
4476
        try {
4477
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
4478
        } catch (InventoryServiceException cex) {
4479
          result.cex = cex;
4480
        }
4481
        return result;
4482
      }
4483
    }
4484
 
4485
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
4486
      public getShippingLocations() {
4487
        super("getShippingLocations");
4488
      }
4489
 
4490
      protected getShippingLocations_args getEmptyArgsInstance() {
4491
        return new getShippingLocations_args();
4492
      }
4493
 
4494
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
4495
        getShippingLocations_result result = new getShippingLocations_result();
4496
        result.success = iface.getShippingLocations();
4497
        return result;
4498
      }
4499
    }
4500
 
4501
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
4502
      public getAllVendorItemMappings() {
4503
        super("getAllVendorItemMappings");
4504
      }
4505
 
4506
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
4507
        return new getAllVendorItemMappings_args();
4508
      }
4509
 
4510
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
4511
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
4512
        result.success = iface.getAllVendorItemMappings();
4513
        return result;
4514
      }
4515
    }
4516
 
4517
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
4518
      public getInventorySnapshot() {
4519
        super("getInventorySnapshot");
4520
      }
4521
 
4522
      protected getInventorySnapshot_args getEmptyArgsInstance() {
4523
        return new getInventorySnapshot_args();
4524
      }
4525
 
4526
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
4527
        getInventorySnapshot_result result = new getInventorySnapshot_result();
4528
        result.success = iface.getInventorySnapshot(args.warehouseId);
4529
        return result;
4530
      }
4531
    }
4532
 
4533
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
4534
      public clearItemAvailabilityCache() {
4535
        super("clearItemAvailabilityCache");
4536
      }
4537
 
4538
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
4539
        return new clearItemAvailabilityCache_args();
4540
      }
4541
 
4542
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
4543
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
4544
        iface.clearItemAvailabilityCache();
4545
        return result;
4546
      }
4547
    }
4548
 
4549
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
4550
      public updateVendorString() {
4551
        super("updateVendorString");
4552
      }
4553
 
4554
      protected updateVendorString_args getEmptyArgsInstance() {
4555
        return new updateVendorString_args();
4556
      }
4557
 
4558
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
4559
        updateVendorString_result result = new updateVendorString_result();
4560
        iface.updateVendorString(args.warehouseId, args.vendorString);
4561
        return result;
4562
      }
4563
    }
4564
 
6096 amit.gupta 4565
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
4566
      public clearItemAvailabilityCacheForItem() {
4567
        super("clearItemAvailabilityCacheForItem");
4568
      }
4569
 
4570
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
4571
        return new clearItemAvailabilityCacheForItem_args();
4572
      }
4573
 
4574
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
4575
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
4576
        iface.clearItemAvailabilityCacheForItem(args.item_id);
4577
        return result;
4578
      }
4579
    }
4580
 
6467 amar.kumar 4581
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
4582
      public getOurWarehouseIdForVendor() {
4583
        super("getOurWarehouseIdForVendor");
4584
      }
4585
 
4586
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
4587
        return new getOurWarehouseIdForVendor_args();
4588
      }
4589
 
4590
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
4591
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
7718 amar.kumar 4592
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId);
6467 amar.kumar 4593
        result.setSuccessIsSet(true);
4594
        return result;
4595
      }
4596
    }
4597
 
6484 amar.kumar 4598
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
4599
      public getItemAvailabilitiesAtOurWarehouses() {
4600
        super("getItemAvailabilitiesAtOurWarehouses");
4601
      }
4602
 
4603
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
4604
        return new getItemAvailabilitiesAtOurWarehouses_args();
4605
      }
4606
 
4607
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
4608
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
4609
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
4610
        return result;
4611
      }
4612
    }
4613
 
6531 vikram.rag 4614
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
4615
      public getMonitoredWarehouseForVendors() {
4616
        super("getMonitoredWarehouseForVendors");
4617
      }
4618
 
4619
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
4620
        return new getMonitoredWarehouseForVendors_args();
4621
      }
4622
 
4623
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
4624
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
4625
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
4626
        return result;
4627
      }
4628
    }
4629
 
4630
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
4631
      public getIgnoredWarehouseidsAndItemids() {
4632
        super("getIgnoredWarehouseidsAndItemids");
4633
      }
4634
 
4635
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
4636
        return new getIgnoredWarehouseidsAndItemids_args();
4637
      }
4638
 
4639
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
4640
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
4641
        result.success = iface.getIgnoredWarehouseidsAndItemids();
4642
        return result;
4643
      }
4644
    }
4645
 
4646
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
4647
      public insertItemtoIgnoreInventoryUpdatelist() {
4648
        super("insertItemtoIgnoreInventoryUpdatelist");
4649
      }
4650
 
4651
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
4652
        return new insertItemtoIgnoreInventoryUpdatelist_args();
4653
      }
4654
 
4655
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
4656
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
4657
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
4658
        result.setSuccessIsSet(true);
4659
        return result;
4660
      }
4661
    }
4662
 
4663
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
4664
      public deleteItemFromIgnoredInventoryUpdateList() {
4665
        super("deleteItemFromIgnoredInventoryUpdateList");
4666
      }
4667
 
4668
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
4669
        return new deleteItemFromIgnoredInventoryUpdateList_args();
4670
      }
4671
 
4672
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
4673
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
4674
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
4675
        result.setSuccessIsSet(true);
4676
        return result;
4677
      }
4678
    }
4679
 
4680
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
4681
      public getAllIgnoredInventoryupdateItemsCount() {
4682
        super("getAllIgnoredInventoryupdateItemsCount");
4683
      }
4684
 
4685
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
4686
        return new getAllIgnoredInventoryupdateItemsCount_args();
4687
      }
4688
 
4689
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
4690
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
4691
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
4692
        result.setSuccessIsSet(true);
4693
        return result;
4694
      }
4695
    }
4696
 
4697
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
4698
      public getIgnoredInventoryUpdateItemids() {
4699
        super("getIgnoredInventoryUpdateItemids");
4700
      }
4701
 
4702
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
4703
        return new getIgnoredInventoryUpdateItemids_args();
4704
      }
4705
 
4706
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
4707
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
4708
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
4709
        return result;
4710
      }
4711
    }
4712
 
6821 amar.kumar 4713
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
4714
      public updateItemStockPurchaseParams() {
4715
        super("updateItemStockPurchaseParams");
4716
      }
4717
 
4718
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
4719
        return new updateItemStockPurchaseParams_args();
4720
      }
4721
 
4722
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4723
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
4724
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
4725
        return result;
4726
      }
4727
    }
4728
 
4729
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
4730
      public getItemStockPurchaseParams() {
4731
        super("getItemStockPurchaseParams");
4732
      }
4733
 
4734
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
4735
        return new getItemStockPurchaseParams_args();
4736
      }
4737
 
4738
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4739
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
4740
        result.success = iface.getItemStockPurchaseParams(args.itemId);
4741
        return result;
4742
      }
4743
    }
4744
 
4745
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
4746
      public addOosStatusForItem() {
4747
        super("addOosStatusForItem");
4748
      }
4749
 
4750
      protected addOosStatusForItem_args getEmptyArgsInstance() {
4751
        return new addOosStatusForItem_args();
4752
      }
4753
 
4754
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
4755
        addOosStatusForItem_result result = new addOosStatusForItem_result();
4756
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
4757
        return result;
4758
      }
4759
    }
4760
 
6832 amar.kumar 4761
    private static class getOosStatusesForXDaysForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDaysForItem_args> {
4762
      public getOosStatusesForXDaysForItem() {
4763
        super("getOosStatusesForXDaysForItem");
4764
      }
4765
 
4766
      protected getOosStatusesForXDaysForItem_args getEmptyArgsInstance() {
4767
        return new getOosStatusesForXDaysForItem_args();
4768
      }
4769
 
4770
      protected getOosStatusesForXDaysForItem_result getResult(I iface, getOosStatusesForXDaysForItem_args args) throws org.apache.thrift.TException {
4771
        getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
4772
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.days);
4773
        return result;
4774
      }
4775
    }
4776
 
6857 amar.kumar 4777
    private static class getNonZeroItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonZeroItemStockPurchaseParams_args> {
4778
      public getNonZeroItemStockPurchaseParams() {
4779
        super("getNonZeroItemStockPurchaseParams");
4780
      }
4781
 
4782
      protected getNonZeroItemStockPurchaseParams_args getEmptyArgsInstance() {
4783
        return new getNonZeroItemStockPurchaseParams_args();
4784
      }
4785
 
4786
      protected getNonZeroItemStockPurchaseParams_result getResult(I iface, getNonZeroItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4787
        getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
4788
        result.success = iface.getNonZeroItemStockPurchaseParams();
4789
        return result;
4790
      }
4791
    }
4792
 
7149 amar.kumar 4793
    private static class getBillableInventoryAndPendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBillableInventoryAndPendingOrders_args> {
4794
      public getBillableInventoryAndPendingOrders() {
4795
        super("getBillableInventoryAndPendingOrders");
4796
      }
4797
 
4798
      protected getBillableInventoryAndPendingOrders_args getEmptyArgsInstance() {
4799
        return new getBillableInventoryAndPendingOrders_args();
4800
      }
4801
 
4802
      protected getBillableInventoryAndPendingOrders_result getResult(I iface, getBillableInventoryAndPendingOrders_args args) throws org.apache.thrift.TException {
4803
        getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
4804
        result.success = iface.getBillableInventoryAndPendingOrders();
4805
        return result;
4806
      }
4807
    }
4808
 
7281 kshitij.so 4809
    private static class getWarehouseName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseName_args> {
4810
      public getWarehouseName() {
4811
        super("getWarehouseName");
4812
      }
4813
 
4814
      protected getWarehouseName_args getEmptyArgsInstance() {
4815
        return new getWarehouseName_args();
4816
      }
4817
 
4818
      protected getWarehouseName_result getResult(I iface, getWarehouseName_args args) throws org.apache.thrift.TException {
4819
        getWarehouseName_result result = new getWarehouseName_result();
4820
        result.success = iface.getWarehouseName(args.warehouse_id);
4821
        return result;
4822
      }
4823
    }
4824
 
4825
    private static class getAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonInventoryForItem_args> {
4826
      public getAmazonInventoryForItem() {
4827
        super("getAmazonInventoryForItem");
4828
      }
4829
 
4830
      protected getAmazonInventoryForItem_args getEmptyArgsInstance() {
4831
        return new getAmazonInventoryForItem_args();
4832
      }
4833
 
4834
      protected getAmazonInventoryForItem_result getResult(I iface, getAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
4835
        getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
4836
        result.success = iface.getAmazonInventoryForItem(args.item_id);
4837
        return result;
4838
      }
4839
    }
4840
 
4841
    private static class getAllAmazonInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonInventory_args> {
4842
      public getAllAmazonInventory() {
4843
        super("getAllAmazonInventory");
4844
      }
4845
 
4846
      protected getAllAmazonInventory_args getEmptyArgsInstance() {
4847
        return new getAllAmazonInventory_args();
4848
      }
4849
 
4850
      protected getAllAmazonInventory_result getResult(I iface, getAllAmazonInventory_args args) throws org.apache.thrift.TException {
4851
        getAllAmazonInventory_result result = new getAllAmazonInventory_result();
4852
        result.success = iface.getAllAmazonInventory();
4853
        return result;
4854
      }
4855
    }
4856
 
4857
    private static class addOrUpdateAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonInventoryForItem_args> {
4858
      public addOrUpdateAmazonInventoryForItem() {
4859
        super("addOrUpdateAmazonInventoryForItem");
4860
      }
4861
 
4862
      protected addOrUpdateAmazonInventoryForItem_args getEmptyArgsInstance() {
4863
        return new addOrUpdateAmazonInventoryForItem_args();
4864
      }
4865
 
4866
      protected addOrUpdateAmazonInventoryForItem_result getResult(I iface, addOrUpdateAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
4867
        addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
4868
        iface.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot);
4869
        return result;
4870
      }
4871
    }
4872
 
7972 amar.kumar 4873
    private static class getLastNdaySaleForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastNdaySaleForItem_args> {
4874
      public getLastNdaySaleForItem() {
4875
        super("getLastNdaySaleForItem");
4876
      }
4877
 
4878
      protected getLastNdaySaleForItem_args getEmptyArgsInstance() {
4879
        return new getLastNdaySaleForItem_args();
4880
      }
4881
 
4882
      protected getLastNdaySaleForItem_result getResult(I iface, getLastNdaySaleForItem_args args) throws org.apache.thrift.TException {
4883
        getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
4884
        result.success = iface.getLastNdaySaleForItem(args.itemId, args.numberOfDays);
4885
        return result;
4886
      }
4887
    }
4888
 
8182 amar.kumar 4889
    private static class addUpdateHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateHoldInventory_args> {
4890
      public addUpdateHoldInventory() {
4891
        super("addUpdateHoldInventory");
4892
      }
4893
 
4894
      protected addUpdateHoldInventory_args getEmptyArgsInstance() {
4895
        return new addUpdateHoldInventory_args();
4896
      }
4897
 
4898
      protected addUpdateHoldInventory_result getResult(I iface, addUpdateHoldInventory_args args) throws org.apache.thrift.TException {
4899
        addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
4900
        iface.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source);
4901
        return result;
4902
      }
4903
    }
4904
 
5945 mandeep.dh 4905
  }
4906
 
4907
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4909
 
4910
    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);
4911
 
4912
    private Warehouse warehouse; // required
4913
 
4914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4916
      WAREHOUSE((short)1, "warehouse");
4917
 
4918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4919
 
4920
      static {
4921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4922
          byName.put(field.getFieldName(), field);
4923
        }
4924
      }
4925
 
4926
      /**
4927
       * Find the _Fields constant that matches fieldId, or null if its not found.
4928
       */
4929
      public static _Fields findByThriftId(int fieldId) {
4930
        switch(fieldId) {
4931
          case 1: // WAREHOUSE
4932
            return WAREHOUSE;
4933
          default:
4934
            return null;
4935
        }
4936
      }
4937
 
4938
      /**
4939
       * Find the _Fields constant that matches fieldId, throwing an exception
4940
       * if it is not found.
4941
       */
4942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4943
        _Fields fields = findByThriftId(fieldId);
4944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4945
        return fields;
4946
      }
4947
 
4948
      /**
4949
       * Find the _Fields constant that matches name, or null if its not found.
4950
       */
4951
      public static _Fields findByName(String name) {
4952
        return byName.get(name);
4953
      }
4954
 
4955
      private final short _thriftId;
4956
      private final String _fieldName;
4957
 
4958
      _Fields(short thriftId, String fieldName) {
4959
        _thriftId = thriftId;
4960
        _fieldName = fieldName;
4961
      }
4962
 
4963
      public short getThriftFieldId() {
4964
        return _thriftId;
4965
      }
4966
 
4967
      public String getFieldName() {
4968
        return _fieldName;
4969
      }
4970
    }
4971
 
4972
    // isset id assignments
4973
 
4974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4975
    static {
4976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4977
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4978
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
4979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
4981
    }
4982
 
4983
    public addWarehouse_args() {
4984
    }
4985
 
4986
    public addWarehouse_args(
4987
      Warehouse warehouse)
4988
    {
4989
      this();
4990
      this.warehouse = warehouse;
4991
    }
4992
 
4993
    /**
4994
     * Performs a deep copy on <i>other</i>.
4995
     */
4996
    public addWarehouse_args(addWarehouse_args other) {
4997
      if (other.isSetWarehouse()) {
4998
        this.warehouse = new Warehouse(other.warehouse);
4999
      }
5000
    }
5001
 
5002
    public addWarehouse_args deepCopy() {
5003
      return new addWarehouse_args(this);
5004
    }
5005
 
5006
    @Override
5007
    public void clear() {
5008
      this.warehouse = null;
5009
    }
5010
 
5011
    public Warehouse getWarehouse() {
5012
      return this.warehouse;
5013
    }
5014
 
5015
    public void setWarehouse(Warehouse warehouse) {
5016
      this.warehouse = warehouse;
5017
    }
5018
 
5019
    public void unsetWarehouse() {
5020
      this.warehouse = null;
5021
    }
5022
 
5023
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
5024
    public boolean isSetWarehouse() {
5025
      return this.warehouse != null;
5026
    }
5027
 
5028
    public void setWarehouseIsSet(boolean value) {
5029
      if (!value) {
5030
        this.warehouse = null;
5031
      }
5032
    }
5033
 
5034
    public void setFieldValue(_Fields field, Object value) {
5035
      switch (field) {
5036
      case WAREHOUSE:
5037
        if (value == null) {
5038
          unsetWarehouse();
5039
        } else {
5040
          setWarehouse((Warehouse)value);
5041
        }
5042
        break;
5043
 
5044
      }
5045
    }
5046
 
5047
    public Object getFieldValue(_Fields field) {
5048
      switch (field) {
5049
      case WAREHOUSE:
5050
        return getWarehouse();
5051
 
5052
      }
5053
      throw new IllegalStateException();
5054
    }
5055
 
5056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5057
    public boolean isSet(_Fields field) {
5058
      if (field == null) {
5059
        throw new IllegalArgumentException();
5060
      }
5061
 
5062
      switch (field) {
5063
      case WAREHOUSE:
5064
        return isSetWarehouse();
5065
      }
5066
      throw new IllegalStateException();
5067
    }
5068
 
5069
    @Override
5070
    public boolean equals(Object that) {
5071
      if (that == null)
5072
        return false;
5073
      if (that instanceof addWarehouse_args)
5074
        return this.equals((addWarehouse_args)that);
5075
      return false;
5076
    }
5077
 
5078
    public boolean equals(addWarehouse_args that) {
5079
      if (that == null)
5080
        return false;
5081
 
5082
      boolean this_present_warehouse = true && this.isSetWarehouse();
5083
      boolean that_present_warehouse = true && that.isSetWarehouse();
5084
      if (this_present_warehouse || that_present_warehouse) {
5085
        if (!(this_present_warehouse && that_present_warehouse))
5086
          return false;
5087
        if (!this.warehouse.equals(that.warehouse))
5088
          return false;
5089
      }
5090
 
5091
      return true;
5092
    }
5093
 
5094
    @Override
5095
    public int hashCode() {
5096
      return 0;
5097
    }
5098
 
5099
    public int compareTo(addWarehouse_args other) {
5100
      if (!getClass().equals(other.getClass())) {
5101
        return getClass().getName().compareTo(other.getClass().getName());
5102
      }
5103
 
5104
      int lastComparison = 0;
5105
      addWarehouse_args typedOther = (addWarehouse_args)other;
5106
 
5107
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
5108
      if (lastComparison != 0) {
5109
        return lastComparison;
5110
      }
5111
      if (isSetWarehouse()) {
5112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
5113
        if (lastComparison != 0) {
5114
          return lastComparison;
5115
        }
5116
      }
5117
      return 0;
5118
    }
5119
 
5120
    public _Fields fieldForId(int fieldId) {
5121
      return _Fields.findByThriftId(fieldId);
5122
    }
5123
 
5124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5125
      org.apache.thrift.protocol.TField field;
5126
      iprot.readStructBegin();
5127
      while (true)
5128
      {
5129
        field = iprot.readFieldBegin();
5130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5131
          break;
5132
        }
5133
        switch (field.id) {
5134
          case 1: // WAREHOUSE
5135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5136
              this.warehouse = new Warehouse();
5137
              this.warehouse.read(iprot);
5138
            } else { 
5139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5140
            }
5141
            break;
5142
          default:
5143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5144
        }
5145
        iprot.readFieldEnd();
5146
      }
5147
      iprot.readStructEnd();
5148
      validate();
5149
    }
5150
 
5151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5152
      validate();
5153
 
5154
      oprot.writeStructBegin(STRUCT_DESC);
5155
      if (this.warehouse != null) {
5156
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
5157
        this.warehouse.write(oprot);
5158
        oprot.writeFieldEnd();
5159
      }
5160
      oprot.writeFieldStop();
5161
      oprot.writeStructEnd();
5162
    }
5163
 
5164
    @Override
5165
    public String toString() {
5166
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
5167
      boolean first = true;
5168
 
5169
      sb.append("warehouse:");
5170
      if (this.warehouse == null) {
5171
        sb.append("null");
5172
      } else {
5173
        sb.append(this.warehouse);
5174
      }
5175
      first = false;
5176
      sb.append(")");
5177
      return sb.toString();
5178
    }
5179
 
5180
    public void validate() throws org.apache.thrift.TException {
5181
      // check for required fields
5182
    }
5183
 
5184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5185
      try {
5186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5187
      } catch (org.apache.thrift.TException te) {
5188
        throw new java.io.IOException(te);
5189
      }
5190
    }
5191
 
5192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5193
      try {
5194
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5195
      } catch (org.apache.thrift.TException te) {
5196
        throw new java.io.IOException(te);
5197
      }
5198
    }
5199
 
5200
  }
5201
 
5202
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
5203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
5204
 
5205
    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);
5206
    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);
5207
 
5208
    private long success; // required
5209
    private InventoryServiceException cex; // required
5210
 
5211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5213
      SUCCESS((short)0, "success"),
5214
      CEX((short)1, "cex");
5215
 
5216
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5217
 
5218
      static {
5219
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5220
          byName.put(field.getFieldName(), field);
5221
        }
5222
      }
5223
 
5224
      /**
5225
       * Find the _Fields constant that matches fieldId, or null if its not found.
5226
       */
5227
      public static _Fields findByThriftId(int fieldId) {
5228
        switch(fieldId) {
5229
          case 0: // SUCCESS
5230
            return SUCCESS;
5231
          case 1: // CEX
5232
            return CEX;
5233
          default:
5234
            return null;
5235
        }
5236
      }
5237
 
5238
      /**
5239
       * Find the _Fields constant that matches fieldId, throwing an exception
5240
       * if it is not found.
5241
       */
5242
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5243
        _Fields fields = findByThriftId(fieldId);
5244
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5245
        return fields;
5246
      }
5247
 
5248
      /**
5249
       * Find the _Fields constant that matches name, or null if its not found.
5250
       */
5251
      public static _Fields findByName(String name) {
5252
        return byName.get(name);
5253
      }
5254
 
5255
      private final short _thriftId;
5256
      private final String _fieldName;
5257
 
5258
      _Fields(short thriftId, String fieldName) {
5259
        _thriftId = thriftId;
5260
        _fieldName = fieldName;
5261
      }
5262
 
5263
      public short getThriftFieldId() {
5264
        return _thriftId;
5265
      }
5266
 
5267
      public String getFieldName() {
5268
        return _fieldName;
5269
      }
5270
    }
5271
 
5272
    // isset id assignments
5273
    private static final int __SUCCESS_ISSET_ID = 0;
5274
    private BitSet __isset_bit_vector = new BitSet(1);
5275
 
5276
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5277
    static {
5278
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5279
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5281
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5282
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5283
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5284
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
5285
    }
5286
 
5287
    public addWarehouse_result() {
5288
    }
5289
 
5290
    public addWarehouse_result(
5291
      long success,
5292
      InventoryServiceException cex)
5293
    {
5294
      this();
5295
      this.success = success;
5296
      setSuccessIsSet(true);
5297
      this.cex = cex;
5298
    }
5299
 
5300
    /**
5301
     * Performs a deep copy on <i>other</i>.
5302
     */
5303
    public addWarehouse_result(addWarehouse_result other) {
5304
      __isset_bit_vector.clear();
5305
      __isset_bit_vector.or(other.__isset_bit_vector);
5306
      this.success = other.success;
5307
      if (other.isSetCex()) {
5308
        this.cex = new InventoryServiceException(other.cex);
5309
      }
5310
    }
5311
 
5312
    public addWarehouse_result deepCopy() {
5313
      return new addWarehouse_result(this);
5314
    }
5315
 
5316
    @Override
5317
    public void clear() {
5318
      setSuccessIsSet(false);
5319
      this.success = 0;
5320
      this.cex = null;
5321
    }
5322
 
5323
    public long getSuccess() {
5324
      return this.success;
5325
    }
5326
 
5327
    public void setSuccess(long success) {
5328
      this.success = success;
5329
      setSuccessIsSet(true);
5330
    }
5331
 
5332
    public void unsetSuccess() {
5333
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5334
    }
5335
 
5336
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5337
    public boolean isSetSuccess() {
5338
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5339
    }
5340
 
5341
    public void setSuccessIsSet(boolean value) {
5342
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5343
    }
5344
 
5345
    public InventoryServiceException getCex() {
5346
      return this.cex;
5347
    }
5348
 
5349
    public void setCex(InventoryServiceException cex) {
5350
      this.cex = cex;
5351
    }
5352
 
5353
    public void unsetCex() {
5354
      this.cex = null;
5355
    }
5356
 
5357
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5358
    public boolean isSetCex() {
5359
      return this.cex != null;
5360
    }
5361
 
5362
    public void setCexIsSet(boolean value) {
5363
      if (!value) {
5364
        this.cex = null;
5365
      }
5366
    }
5367
 
5368
    public void setFieldValue(_Fields field, Object value) {
5369
      switch (field) {
5370
      case SUCCESS:
5371
        if (value == null) {
5372
          unsetSuccess();
5373
        } else {
5374
          setSuccess((Long)value);
5375
        }
5376
        break;
5377
 
5378
      case CEX:
5379
        if (value == null) {
5380
          unsetCex();
5381
        } else {
5382
          setCex((InventoryServiceException)value);
5383
        }
5384
        break;
5385
 
5386
      }
5387
    }
5388
 
5389
    public Object getFieldValue(_Fields field) {
5390
      switch (field) {
5391
      case SUCCESS:
5392
        return Long.valueOf(getSuccess());
5393
 
5394
      case CEX:
5395
        return getCex();
5396
 
5397
      }
5398
      throw new IllegalStateException();
5399
    }
5400
 
5401
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5402
    public boolean isSet(_Fields field) {
5403
      if (field == null) {
5404
        throw new IllegalArgumentException();
5405
      }
5406
 
5407
      switch (field) {
5408
      case SUCCESS:
5409
        return isSetSuccess();
5410
      case CEX:
5411
        return isSetCex();
5412
      }
5413
      throw new IllegalStateException();
5414
    }
5415
 
5416
    @Override
5417
    public boolean equals(Object that) {
5418
      if (that == null)
5419
        return false;
5420
      if (that instanceof addWarehouse_result)
5421
        return this.equals((addWarehouse_result)that);
5422
      return false;
5423
    }
5424
 
5425
    public boolean equals(addWarehouse_result that) {
5426
      if (that == null)
5427
        return false;
5428
 
5429
      boolean this_present_success = true;
5430
      boolean that_present_success = true;
5431
      if (this_present_success || that_present_success) {
5432
        if (!(this_present_success && that_present_success))
5433
          return false;
5434
        if (this.success != that.success)
5435
          return false;
5436
      }
5437
 
5438
      boolean this_present_cex = true && this.isSetCex();
5439
      boolean that_present_cex = true && that.isSetCex();
5440
      if (this_present_cex || that_present_cex) {
5441
        if (!(this_present_cex && that_present_cex))
5442
          return false;
5443
        if (!this.cex.equals(that.cex))
5444
          return false;
5445
      }
5446
 
5447
      return true;
5448
    }
5449
 
5450
    @Override
5451
    public int hashCode() {
5452
      return 0;
5453
    }
5454
 
5455
    public int compareTo(addWarehouse_result other) {
5456
      if (!getClass().equals(other.getClass())) {
5457
        return getClass().getName().compareTo(other.getClass().getName());
5458
      }
5459
 
5460
      int lastComparison = 0;
5461
      addWarehouse_result typedOther = (addWarehouse_result)other;
5462
 
5463
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5464
      if (lastComparison != 0) {
5465
        return lastComparison;
5466
      }
5467
      if (isSetSuccess()) {
5468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5469
        if (lastComparison != 0) {
5470
          return lastComparison;
5471
        }
5472
      }
5473
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5474
      if (lastComparison != 0) {
5475
        return lastComparison;
5476
      }
5477
      if (isSetCex()) {
5478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5479
        if (lastComparison != 0) {
5480
          return lastComparison;
5481
        }
5482
      }
5483
      return 0;
5484
    }
5485
 
5486
    public _Fields fieldForId(int fieldId) {
5487
      return _Fields.findByThriftId(fieldId);
5488
    }
5489
 
5490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5491
      org.apache.thrift.protocol.TField field;
5492
      iprot.readStructBegin();
5493
      while (true)
5494
      {
5495
        field = iprot.readFieldBegin();
5496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5497
          break;
5498
        }
5499
        switch (field.id) {
5500
          case 0: // SUCCESS
5501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5502
              this.success = iprot.readI64();
5503
              setSuccessIsSet(true);
5504
            } else { 
5505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5506
            }
5507
            break;
5508
          case 1: // CEX
5509
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5510
              this.cex = new InventoryServiceException();
5511
              this.cex.read(iprot);
5512
            } else { 
5513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5514
            }
5515
            break;
5516
          default:
5517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5518
        }
5519
        iprot.readFieldEnd();
5520
      }
5521
      iprot.readStructEnd();
5522
      validate();
5523
    }
5524
 
5525
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5526
      oprot.writeStructBegin(STRUCT_DESC);
5527
 
5528
      if (this.isSetSuccess()) {
5529
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5530
        oprot.writeI64(this.success);
5531
        oprot.writeFieldEnd();
5532
      } else if (this.isSetCex()) {
5533
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5534
        this.cex.write(oprot);
5535
        oprot.writeFieldEnd();
5536
      }
5537
      oprot.writeFieldStop();
5538
      oprot.writeStructEnd();
5539
    }
5540
 
5541
    @Override
5542
    public String toString() {
5543
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
5544
      boolean first = true;
5545
 
5546
      sb.append("success:");
5547
      sb.append(this.success);
5548
      first = false;
5549
      if (!first) sb.append(", ");
5550
      sb.append("cex:");
5551
      if (this.cex == null) {
5552
        sb.append("null");
5553
      } else {
5554
        sb.append(this.cex);
5555
      }
5556
      first = false;
5557
      sb.append(")");
5558
      return sb.toString();
5559
    }
5560
 
5561
    public void validate() throws org.apache.thrift.TException {
5562
      // check for required fields
5563
    }
5564
 
5565
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5566
      try {
5567
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5568
      } catch (org.apache.thrift.TException te) {
5569
        throw new java.io.IOException(te);
5570
      }
5571
    }
5572
 
5573
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5574
      try {
5575
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5576
      } catch (org.apache.thrift.TException te) {
5577
        throw new java.io.IOException(te);
5578
      }
5579
    }
5580
 
5581
  }
5582
 
5583
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
5584
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
5585
 
5586
    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);
5587
 
5588
    private Vendor vendor; // required
5589
 
5590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5592
      VENDOR((short)1, "vendor");
5593
 
5594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5595
 
5596
      static {
5597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5598
          byName.put(field.getFieldName(), field);
5599
        }
5600
      }
5601
 
5602
      /**
5603
       * Find the _Fields constant that matches fieldId, or null if its not found.
5604
       */
5605
      public static _Fields findByThriftId(int fieldId) {
5606
        switch(fieldId) {
5607
          case 1: // VENDOR
5608
            return VENDOR;
5609
          default:
5610
            return null;
5611
        }
5612
      }
5613
 
5614
      /**
5615
       * Find the _Fields constant that matches fieldId, throwing an exception
5616
       * if it is not found.
5617
       */
5618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5619
        _Fields fields = findByThriftId(fieldId);
5620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5621
        return fields;
5622
      }
5623
 
5624
      /**
5625
       * Find the _Fields constant that matches name, or null if its not found.
5626
       */
5627
      public static _Fields findByName(String name) {
5628
        return byName.get(name);
5629
      }
5630
 
5631
      private final short _thriftId;
5632
      private final String _fieldName;
5633
 
5634
      _Fields(short thriftId, String fieldName) {
5635
        _thriftId = thriftId;
5636
        _fieldName = fieldName;
5637
      }
5638
 
5639
      public short getThriftFieldId() {
5640
        return _thriftId;
5641
      }
5642
 
5643
      public String getFieldName() {
5644
        return _fieldName;
5645
      }
5646
    }
5647
 
5648
    // isset id assignments
5649
 
5650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5651
    static {
5652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5653
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5654
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
5655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
5657
    }
5658
 
5659
    public addVendor_args() {
5660
    }
5661
 
5662
    public addVendor_args(
5663
      Vendor vendor)
5664
    {
5665
      this();
5666
      this.vendor = vendor;
5667
    }
5668
 
5669
    /**
5670
     * Performs a deep copy on <i>other</i>.
5671
     */
5672
    public addVendor_args(addVendor_args other) {
5673
      if (other.isSetVendor()) {
5674
        this.vendor = new Vendor(other.vendor);
5675
      }
5676
    }
5677
 
5678
    public addVendor_args deepCopy() {
5679
      return new addVendor_args(this);
5680
    }
5681
 
5682
    @Override
5683
    public void clear() {
5684
      this.vendor = null;
5685
    }
5686
 
5687
    public Vendor getVendor() {
5688
      return this.vendor;
5689
    }
5690
 
5691
    public void setVendor(Vendor vendor) {
5692
      this.vendor = vendor;
5693
    }
5694
 
5695
    public void unsetVendor() {
5696
      this.vendor = null;
5697
    }
5698
 
5699
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
5700
    public boolean isSetVendor() {
5701
      return this.vendor != null;
5702
    }
5703
 
5704
    public void setVendorIsSet(boolean value) {
5705
      if (!value) {
5706
        this.vendor = null;
5707
      }
5708
    }
5709
 
5710
    public void setFieldValue(_Fields field, Object value) {
5711
      switch (field) {
5712
      case VENDOR:
5713
        if (value == null) {
5714
          unsetVendor();
5715
        } else {
5716
          setVendor((Vendor)value);
5717
        }
5718
        break;
5719
 
5720
      }
5721
    }
5722
 
5723
    public Object getFieldValue(_Fields field) {
5724
      switch (field) {
5725
      case VENDOR:
5726
        return getVendor();
5727
 
5728
      }
5729
      throw new IllegalStateException();
5730
    }
5731
 
5732
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5733
    public boolean isSet(_Fields field) {
5734
      if (field == null) {
5735
        throw new IllegalArgumentException();
5736
      }
5737
 
5738
      switch (field) {
5739
      case VENDOR:
5740
        return isSetVendor();
5741
      }
5742
      throw new IllegalStateException();
5743
    }
5744
 
5745
    @Override
5746
    public boolean equals(Object that) {
5747
      if (that == null)
5748
        return false;
5749
      if (that instanceof addVendor_args)
5750
        return this.equals((addVendor_args)that);
5751
      return false;
5752
    }
5753
 
5754
    public boolean equals(addVendor_args that) {
5755
      if (that == null)
5756
        return false;
5757
 
5758
      boolean this_present_vendor = true && this.isSetVendor();
5759
      boolean that_present_vendor = true && that.isSetVendor();
5760
      if (this_present_vendor || that_present_vendor) {
5761
        if (!(this_present_vendor && that_present_vendor))
5762
          return false;
5763
        if (!this.vendor.equals(that.vendor))
5764
          return false;
5765
      }
5766
 
5767
      return true;
5768
    }
5769
 
5770
    @Override
5771
    public int hashCode() {
5772
      return 0;
5773
    }
5774
 
5775
    public int compareTo(addVendor_args other) {
5776
      if (!getClass().equals(other.getClass())) {
5777
        return getClass().getName().compareTo(other.getClass().getName());
5778
      }
5779
 
5780
      int lastComparison = 0;
5781
      addVendor_args typedOther = (addVendor_args)other;
5782
 
5783
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
5784
      if (lastComparison != 0) {
5785
        return lastComparison;
5786
      }
5787
      if (isSetVendor()) {
5788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
5789
        if (lastComparison != 0) {
5790
          return lastComparison;
5791
        }
5792
      }
5793
      return 0;
5794
    }
5795
 
5796
    public _Fields fieldForId(int fieldId) {
5797
      return _Fields.findByThriftId(fieldId);
5798
    }
5799
 
5800
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5801
      org.apache.thrift.protocol.TField field;
5802
      iprot.readStructBegin();
5803
      while (true)
5804
      {
5805
        field = iprot.readFieldBegin();
5806
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5807
          break;
5808
        }
5809
        switch (field.id) {
5810
          case 1: // VENDOR
5811
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5812
              this.vendor = new Vendor();
5813
              this.vendor.read(iprot);
5814
            } else { 
5815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5816
            }
5817
            break;
5818
          default:
5819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5820
        }
5821
        iprot.readFieldEnd();
5822
      }
5823
      iprot.readStructEnd();
5824
      validate();
5825
    }
5826
 
5827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5828
      validate();
5829
 
5830
      oprot.writeStructBegin(STRUCT_DESC);
5831
      if (this.vendor != null) {
5832
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
5833
        this.vendor.write(oprot);
5834
        oprot.writeFieldEnd();
5835
      }
5836
      oprot.writeFieldStop();
5837
      oprot.writeStructEnd();
5838
    }
5839
 
5840
    @Override
5841
    public String toString() {
5842
      StringBuilder sb = new StringBuilder("addVendor_args(");
5843
      boolean first = true;
5844
 
5845
      sb.append("vendor:");
5846
      if (this.vendor == null) {
5847
        sb.append("null");
5848
      } else {
5849
        sb.append(this.vendor);
5850
      }
5851
      first = false;
5852
      sb.append(")");
5853
      return sb.toString();
5854
    }
5855
 
5856
    public void validate() throws org.apache.thrift.TException {
5857
      // check for required fields
5858
    }
5859
 
5860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5861
      try {
5862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5863
      } catch (org.apache.thrift.TException te) {
5864
        throw new java.io.IOException(te);
5865
      }
5866
    }
5867
 
5868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5869
      try {
5870
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5871
      } catch (org.apache.thrift.TException te) {
5872
        throw new java.io.IOException(te);
5873
      }
5874
    }
5875
 
5876
  }
5877
 
5878
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
5879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
5880
 
5881
    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);
5882
    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);
5883
 
5884
    private long success; // required
5885
    private InventoryServiceException cex; // required
5886
 
5887
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5888
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5889
      SUCCESS((short)0, "success"),
5890
      CEX((short)1, "cex");
5891
 
5892
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5893
 
5894
      static {
5895
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5896
          byName.put(field.getFieldName(), field);
5897
        }
5898
      }
5899
 
5900
      /**
5901
       * Find the _Fields constant that matches fieldId, or null if its not found.
5902
       */
5903
      public static _Fields findByThriftId(int fieldId) {
5904
        switch(fieldId) {
5905
          case 0: // SUCCESS
5906
            return SUCCESS;
5907
          case 1: // CEX
5908
            return CEX;
5909
          default:
5910
            return null;
5911
        }
5912
      }
5913
 
5914
      /**
5915
       * Find the _Fields constant that matches fieldId, throwing an exception
5916
       * if it is not found.
5917
       */
5918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5919
        _Fields fields = findByThriftId(fieldId);
5920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5921
        return fields;
5922
      }
5923
 
5924
      /**
5925
       * Find the _Fields constant that matches name, or null if its not found.
5926
       */
5927
      public static _Fields findByName(String name) {
5928
        return byName.get(name);
5929
      }
5930
 
5931
      private final short _thriftId;
5932
      private final String _fieldName;
5933
 
5934
      _Fields(short thriftId, String fieldName) {
5935
        _thriftId = thriftId;
5936
        _fieldName = fieldName;
5937
      }
5938
 
5939
      public short getThriftFieldId() {
5940
        return _thriftId;
5941
      }
5942
 
5943
      public String getFieldName() {
5944
        return _fieldName;
5945
      }
5946
    }
5947
 
5948
    // isset id assignments
5949
    private static final int __SUCCESS_ISSET_ID = 0;
5950
    private BitSet __isset_bit_vector = new BitSet(1);
5951
 
5952
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5953
    static {
5954
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5955
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5957
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
5961
    }
5962
 
5963
    public addVendor_result() {
5964
    }
5965
 
5966
    public addVendor_result(
5967
      long success,
5968
      InventoryServiceException cex)
5969
    {
5970
      this();
5971
      this.success = success;
5972
      setSuccessIsSet(true);
5973
      this.cex = cex;
5974
    }
5975
 
5976
    /**
5977
     * Performs a deep copy on <i>other</i>.
5978
     */
5979
    public addVendor_result(addVendor_result other) {
5980
      __isset_bit_vector.clear();
5981
      __isset_bit_vector.or(other.__isset_bit_vector);
5982
      this.success = other.success;
5983
      if (other.isSetCex()) {
5984
        this.cex = new InventoryServiceException(other.cex);
5985
      }
5986
    }
5987
 
5988
    public addVendor_result deepCopy() {
5989
      return new addVendor_result(this);
5990
    }
5991
 
5992
    @Override
5993
    public void clear() {
5994
      setSuccessIsSet(false);
5995
      this.success = 0;
5996
      this.cex = null;
5997
    }
5998
 
5999
    public long getSuccess() {
6000
      return this.success;
6001
    }
6002
 
6003
    public void setSuccess(long success) {
6004
      this.success = success;
6005
      setSuccessIsSet(true);
6006
    }
6007
 
6008
    public void unsetSuccess() {
6009
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6010
    }
6011
 
6012
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6013
    public boolean isSetSuccess() {
6014
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6015
    }
6016
 
6017
    public void setSuccessIsSet(boolean value) {
6018
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6019
    }
6020
 
6021
    public InventoryServiceException getCex() {
6022
      return this.cex;
6023
    }
6024
 
6025
    public void setCex(InventoryServiceException cex) {
6026
      this.cex = cex;
6027
    }
6028
 
6029
    public void unsetCex() {
6030
      this.cex = null;
6031
    }
6032
 
6033
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6034
    public boolean isSetCex() {
6035
      return this.cex != null;
6036
    }
6037
 
6038
    public void setCexIsSet(boolean value) {
6039
      if (!value) {
6040
        this.cex = null;
6041
      }
6042
    }
6043
 
6044
    public void setFieldValue(_Fields field, Object value) {
6045
      switch (field) {
6046
      case SUCCESS:
6047
        if (value == null) {
6048
          unsetSuccess();
6049
        } else {
6050
          setSuccess((Long)value);
6051
        }
6052
        break;
6053
 
6054
      case CEX:
6055
        if (value == null) {
6056
          unsetCex();
6057
        } else {
6058
          setCex((InventoryServiceException)value);
6059
        }
6060
        break;
6061
 
6062
      }
6063
    }
6064
 
6065
    public Object getFieldValue(_Fields field) {
6066
      switch (field) {
6067
      case SUCCESS:
6068
        return Long.valueOf(getSuccess());
6069
 
6070
      case CEX:
6071
        return getCex();
6072
 
6073
      }
6074
      throw new IllegalStateException();
6075
    }
6076
 
6077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6078
    public boolean isSet(_Fields field) {
6079
      if (field == null) {
6080
        throw new IllegalArgumentException();
6081
      }
6082
 
6083
      switch (field) {
6084
      case SUCCESS:
6085
        return isSetSuccess();
6086
      case CEX:
6087
        return isSetCex();
6088
      }
6089
      throw new IllegalStateException();
6090
    }
6091
 
6092
    @Override
6093
    public boolean equals(Object that) {
6094
      if (that == null)
6095
        return false;
6096
      if (that instanceof addVendor_result)
6097
        return this.equals((addVendor_result)that);
6098
      return false;
6099
    }
6100
 
6101
    public boolean equals(addVendor_result that) {
6102
      if (that == null)
6103
        return false;
6104
 
6105
      boolean this_present_success = true;
6106
      boolean that_present_success = true;
6107
      if (this_present_success || that_present_success) {
6108
        if (!(this_present_success && that_present_success))
6109
          return false;
6110
        if (this.success != that.success)
6111
          return false;
6112
      }
6113
 
6114
      boolean this_present_cex = true && this.isSetCex();
6115
      boolean that_present_cex = true && that.isSetCex();
6116
      if (this_present_cex || that_present_cex) {
6117
        if (!(this_present_cex && that_present_cex))
6118
          return false;
6119
        if (!this.cex.equals(that.cex))
6120
          return false;
6121
      }
6122
 
6123
      return true;
6124
    }
6125
 
6126
    @Override
6127
    public int hashCode() {
6128
      return 0;
6129
    }
6130
 
6131
    public int compareTo(addVendor_result other) {
6132
      if (!getClass().equals(other.getClass())) {
6133
        return getClass().getName().compareTo(other.getClass().getName());
6134
      }
6135
 
6136
      int lastComparison = 0;
6137
      addVendor_result typedOther = (addVendor_result)other;
6138
 
6139
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6140
      if (lastComparison != 0) {
6141
        return lastComparison;
6142
      }
6143
      if (isSetSuccess()) {
6144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6145
        if (lastComparison != 0) {
6146
          return lastComparison;
6147
        }
6148
      }
6149
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6150
      if (lastComparison != 0) {
6151
        return lastComparison;
6152
      }
6153
      if (isSetCex()) {
6154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6155
        if (lastComparison != 0) {
6156
          return lastComparison;
6157
        }
6158
      }
6159
      return 0;
6160
    }
6161
 
6162
    public _Fields fieldForId(int fieldId) {
6163
      return _Fields.findByThriftId(fieldId);
6164
    }
6165
 
6166
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6167
      org.apache.thrift.protocol.TField field;
6168
      iprot.readStructBegin();
6169
      while (true)
6170
      {
6171
        field = iprot.readFieldBegin();
6172
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6173
          break;
6174
        }
6175
        switch (field.id) {
6176
          case 0: // SUCCESS
6177
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6178
              this.success = iprot.readI64();
6179
              setSuccessIsSet(true);
6180
            } else { 
6181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6182
            }
6183
            break;
6184
          case 1: // CEX
6185
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6186
              this.cex = new InventoryServiceException();
6187
              this.cex.read(iprot);
6188
            } else { 
6189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6190
            }
6191
            break;
6192
          default:
6193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6194
        }
6195
        iprot.readFieldEnd();
6196
      }
6197
      iprot.readStructEnd();
6198
      validate();
6199
    }
6200
 
6201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6202
      oprot.writeStructBegin(STRUCT_DESC);
6203
 
6204
      if (this.isSetSuccess()) {
6205
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6206
        oprot.writeI64(this.success);
6207
        oprot.writeFieldEnd();
6208
      } else if (this.isSetCex()) {
6209
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6210
        this.cex.write(oprot);
6211
        oprot.writeFieldEnd();
6212
      }
6213
      oprot.writeFieldStop();
6214
      oprot.writeStructEnd();
6215
    }
6216
 
6217
    @Override
6218
    public String toString() {
6219
      StringBuilder sb = new StringBuilder("addVendor_result(");
6220
      boolean first = true;
6221
 
6222
      sb.append("success:");
6223
      sb.append(this.success);
6224
      first = false;
6225
      if (!first) sb.append(", ");
6226
      sb.append("cex:");
6227
      if (this.cex == null) {
6228
        sb.append("null");
6229
      } else {
6230
        sb.append(this.cex);
6231
      }
6232
      first = false;
6233
      sb.append(")");
6234
      return sb.toString();
6235
    }
6236
 
6237
    public void validate() throws org.apache.thrift.TException {
6238
      // check for required fields
6239
    }
6240
 
6241
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6242
      try {
6243
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6244
      } catch (org.apache.thrift.TException te) {
6245
        throw new java.io.IOException(te);
6246
      }
6247
    }
6248
 
6249
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6250
      try {
6251
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6252
      } catch (org.apache.thrift.TException te) {
6253
        throw new java.io.IOException(te);
6254
      }
6255
    }
6256
 
6257
  }
6258
 
6259
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
6260
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
6261
 
6262
    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);
6263
    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);
6264
    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);
6265
 
6266
    private long warehouse_id; // required
6267
    private String timestamp; // required
6268
    private Map<String,Long> availability; // required
6269
 
6270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6272
      WAREHOUSE_ID((short)1, "warehouse_id"),
6273
      TIMESTAMP((short)2, "timestamp"),
6274
      AVAILABILITY((short)3, "availability");
6275
 
6276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6277
 
6278
      static {
6279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6280
          byName.put(field.getFieldName(), field);
6281
        }
6282
      }
6283
 
6284
      /**
6285
       * Find the _Fields constant that matches fieldId, or null if its not found.
6286
       */
6287
      public static _Fields findByThriftId(int fieldId) {
6288
        switch(fieldId) {
6289
          case 1: // WAREHOUSE_ID
6290
            return WAREHOUSE_ID;
6291
          case 2: // TIMESTAMP
6292
            return TIMESTAMP;
6293
          case 3: // AVAILABILITY
6294
            return AVAILABILITY;
6295
          default:
6296
            return null;
6297
        }
6298
      }
6299
 
6300
      /**
6301
       * Find the _Fields constant that matches fieldId, throwing an exception
6302
       * if it is not found.
6303
       */
6304
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6305
        _Fields fields = findByThriftId(fieldId);
6306
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6307
        return fields;
6308
      }
6309
 
6310
      /**
6311
       * Find the _Fields constant that matches name, or null if its not found.
6312
       */
6313
      public static _Fields findByName(String name) {
6314
        return byName.get(name);
6315
      }
6316
 
6317
      private final short _thriftId;
6318
      private final String _fieldName;
6319
 
6320
      _Fields(short thriftId, String fieldName) {
6321
        _thriftId = thriftId;
6322
        _fieldName = fieldName;
6323
      }
6324
 
6325
      public short getThriftFieldId() {
6326
        return _thriftId;
6327
      }
6328
 
6329
      public String getFieldName() {
6330
        return _fieldName;
6331
      }
6332
    }
6333
 
6334
    // isset id assignments
6335
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6336
    private BitSet __isset_bit_vector = new BitSet(1);
6337
 
6338
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6339
    static {
6340
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6341
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6343
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6344
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6345
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6346
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6347
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6348
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6349
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6350
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
6351
    }
6352
 
6353
    public updateInventoryHistory_args() {
6354
    }
6355
 
6356
    public updateInventoryHistory_args(
6357
      long warehouse_id,
6358
      String timestamp,
6359
      Map<String,Long> availability)
6360
    {
6361
      this();
6362
      this.warehouse_id = warehouse_id;
6363
      setWarehouse_idIsSet(true);
6364
      this.timestamp = timestamp;
6365
      this.availability = availability;
6366
    }
6367
 
6368
    /**
6369
     * Performs a deep copy on <i>other</i>.
6370
     */
6371
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
6372
      __isset_bit_vector.clear();
6373
      __isset_bit_vector.or(other.__isset_bit_vector);
6374
      this.warehouse_id = other.warehouse_id;
6375
      if (other.isSetTimestamp()) {
6376
        this.timestamp = other.timestamp;
6377
      }
6378
      if (other.isSetAvailability()) {
6379
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6380
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6381
 
6382
          String other_element_key = other_element.getKey();
6383
          Long other_element_value = other_element.getValue();
6384
 
6385
          String __this__availability_copy_key = other_element_key;
6386
 
6387
          Long __this__availability_copy_value = other_element_value;
6388
 
6389
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6390
        }
6391
        this.availability = __this__availability;
6392
      }
6393
    }
6394
 
6395
    public updateInventoryHistory_args deepCopy() {
6396
      return new updateInventoryHistory_args(this);
6397
    }
6398
 
6399
    @Override
6400
    public void clear() {
6401
      setWarehouse_idIsSet(false);
6402
      this.warehouse_id = 0;
6403
      this.timestamp = null;
6404
      this.availability = null;
6405
    }
6406
 
6407
    public long getWarehouse_id() {
6408
      return this.warehouse_id;
6409
    }
6410
 
6411
    public void setWarehouse_id(long warehouse_id) {
6412
      this.warehouse_id = warehouse_id;
6413
      setWarehouse_idIsSet(true);
6414
    }
6415
 
6416
    public void unsetWarehouse_id() {
6417
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6418
    }
6419
 
6420
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6421
    public boolean isSetWarehouse_id() {
6422
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6423
    }
6424
 
6425
    public void setWarehouse_idIsSet(boolean value) {
6426
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6427
    }
6428
 
6429
    public String getTimestamp() {
6430
      return this.timestamp;
6431
    }
6432
 
6433
    public void setTimestamp(String timestamp) {
6434
      this.timestamp = timestamp;
6435
    }
6436
 
6437
    public void unsetTimestamp() {
6438
      this.timestamp = null;
6439
    }
6440
 
6441
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6442
    public boolean isSetTimestamp() {
6443
      return this.timestamp != null;
6444
    }
6445
 
6446
    public void setTimestampIsSet(boolean value) {
6447
      if (!value) {
6448
        this.timestamp = null;
6449
      }
6450
    }
6451
 
6452
    public int getAvailabilitySize() {
6453
      return (this.availability == null) ? 0 : this.availability.size();
6454
    }
6455
 
6456
    public void putToAvailability(String key, long val) {
6457
      if (this.availability == null) {
6458
        this.availability = new HashMap<String,Long>();
6459
      }
6460
      this.availability.put(key, val);
6461
    }
6462
 
6463
    public Map<String,Long> getAvailability() {
6464
      return this.availability;
6465
    }
6466
 
6467
    public void setAvailability(Map<String,Long> availability) {
6468
      this.availability = availability;
6469
    }
6470
 
6471
    public void unsetAvailability() {
6472
      this.availability = null;
6473
    }
6474
 
6475
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
6476
    public boolean isSetAvailability() {
6477
      return this.availability != null;
6478
    }
6479
 
6480
    public void setAvailabilityIsSet(boolean value) {
6481
      if (!value) {
6482
        this.availability = null;
6483
      }
6484
    }
6485
 
6486
    public void setFieldValue(_Fields field, Object value) {
6487
      switch (field) {
6488
      case WAREHOUSE_ID:
6489
        if (value == null) {
6490
          unsetWarehouse_id();
6491
        } else {
6492
          setWarehouse_id((Long)value);
6493
        }
6494
        break;
6495
 
6496
      case TIMESTAMP:
6497
        if (value == null) {
6498
          unsetTimestamp();
6499
        } else {
6500
          setTimestamp((String)value);
6501
        }
6502
        break;
6503
 
6504
      case AVAILABILITY:
6505
        if (value == null) {
6506
          unsetAvailability();
6507
        } else {
6508
          setAvailability((Map<String,Long>)value);
6509
        }
6510
        break;
6511
 
6512
      }
6513
    }
6514
 
6515
    public Object getFieldValue(_Fields field) {
6516
      switch (field) {
6517
      case WAREHOUSE_ID:
6518
        return Long.valueOf(getWarehouse_id());
6519
 
6520
      case TIMESTAMP:
6521
        return getTimestamp();
6522
 
6523
      case AVAILABILITY:
6524
        return getAvailability();
6525
 
6526
      }
6527
      throw new IllegalStateException();
6528
    }
6529
 
6530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6531
    public boolean isSet(_Fields field) {
6532
      if (field == null) {
6533
        throw new IllegalArgumentException();
6534
      }
6535
 
6536
      switch (field) {
6537
      case WAREHOUSE_ID:
6538
        return isSetWarehouse_id();
6539
      case TIMESTAMP:
6540
        return isSetTimestamp();
6541
      case AVAILABILITY:
6542
        return isSetAvailability();
6543
      }
6544
      throw new IllegalStateException();
6545
    }
6546
 
6547
    @Override
6548
    public boolean equals(Object that) {
6549
      if (that == null)
6550
        return false;
6551
      if (that instanceof updateInventoryHistory_args)
6552
        return this.equals((updateInventoryHistory_args)that);
6553
      return false;
6554
    }
6555
 
6556
    public boolean equals(updateInventoryHistory_args that) {
6557
      if (that == null)
6558
        return false;
6559
 
6560
      boolean this_present_warehouse_id = true;
6561
      boolean that_present_warehouse_id = true;
6562
      if (this_present_warehouse_id || that_present_warehouse_id) {
6563
        if (!(this_present_warehouse_id && that_present_warehouse_id))
6564
          return false;
6565
        if (this.warehouse_id != that.warehouse_id)
6566
          return false;
6567
      }
6568
 
6569
      boolean this_present_timestamp = true && this.isSetTimestamp();
6570
      boolean that_present_timestamp = true && that.isSetTimestamp();
6571
      if (this_present_timestamp || that_present_timestamp) {
6572
        if (!(this_present_timestamp && that_present_timestamp))
6573
          return false;
6574
        if (!this.timestamp.equals(that.timestamp))
6575
          return false;
6576
      }
6577
 
6578
      boolean this_present_availability = true && this.isSetAvailability();
6579
      boolean that_present_availability = true && that.isSetAvailability();
6580
      if (this_present_availability || that_present_availability) {
6581
        if (!(this_present_availability && that_present_availability))
6582
          return false;
6583
        if (!this.availability.equals(that.availability))
6584
          return false;
6585
      }
6586
 
6587
      return true;
6588
    }
6589
 
6590
    @Override
6591
    public int hashCode() {
6592
      return 0;
6593
    }
6594
 
6595
    public int compareTo(updateInventoryHistory_args other) {
6596
      if (!getClass().equals(other.getClass())) {
6597
        return getClass().getName().compareTo(other.getClass().getName());
6598
      }
6599
 
6600
      int lastComparison = 0;
6601
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
6602
 
6603
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
6604
      if (lastComparison != 0) {
6605
        return lastComparison;
6606
      }
6607
      if (isSetWarehouse_id()) {
6608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
6609
        if (lastComparison != 0) {
6610
          return lastComparison;
6611
        }
6612
      }
6613
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
6614
      if (lastComparison != 0) {
6615
        return lastComparison;
6616
      }
6617
      if (isSetTimestamp()) {
6618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
6619
        if (lastComparison != 0) {
6620
          return lastComparison;
6621
        }
6622
      }
6623
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
6624
      if (lastComparison != 0) {
6625
        return lastComparison;
6626
      }
6627
      if (isSetAvailability()) {
6628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
6629
        if (lastComparison != 0) {
6630
          return lastComparison;
6631
        }
6632
      }
6633
      return 0;
6634
    }
6635
 
6636
    public _Fields fieldForId(int fieldId) {
6637
      return _Fields.findByThriftId(fieldId);
6638
    }
6639
 
6640
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6641
      org.apache.thrift.protocol.TField field;
6642
      iprot.readStructBegin();
6643
      while (true)
6644
      {
6645
        field = iprot.readFieldBegin();
6646
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6647
          break;
6648
        }
6649
        switch (field.id) {
6650
          case 1: // WAREHOUSE_ID
6651
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6652
              this.warehouse_id = iprot.readI64();
6653
              setWarehouse_idIsSet(true);
6654
            } else { 
6655
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6656
            }
6657
            break;
6658
          case 2: // TIMESTAMP
6659
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6660
              this.timestamp = iprot.readString();
6661
            } else { 
6662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6663
            }
6664
            break;
6665
          case 3: // AVAILABILITY
6666
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
6667
              {
8182 amar.kumar 6668
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
6669
                this.availability = new HashMap<String,Long>(2*_map15.size);
6670
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
5945 mandeep.dh 6671
                {
8182 amar.kumar 6672
                  String _key17; // required
6673
                  long _val18; // required
6674
                  _key17 = iprot.readString();
6675
                  _val18 = iprot.readI64();
6676
                  this.availability.put(_key17, _val18);
5945 mandeep.dh 6677
                }
6678
                iprot.readMapEnd();
6679
              }
6680
            } else { 
6681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6682
            }
6683
            break;
6684
          default:
6685
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6686
        }
6687
        iprot.readFieldEnd();
6688
      }
6689
      iprot.readStructEnd();
6690
      validate();
6691
    }
6692
 
6693
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6694
      validate();
6695
 
6696
      oprot.writeStructBegin(STRUCT_DESC);
6697
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6698
      oprot.writeI64(this.warehouse_id);
6699
      oprot.writeFieldEnd();
6700
      if (this.timestamp != null) {
6701
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6702
        oprot.writeString(this.timestamp);
6703
        oprot.writeFieldEnd();
6704
      }
6705
      if (this.availability != null) {
6706
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6707
        {
6708
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
8182 amar.kumar 6709
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
5945 mandeep.dh 6710
          {
8182 amar.kumar 6711
            oprot.writeString(_iter19.getKey());
6712
            oprot.writeI64(_iter19.getValue());
5945 mandeep.dh 6713
          }
6714
          oprot.writeMapEnd();
6715
        }
6716
        oprot.writeFieldEnd();
6717
      }
6718
      oprot.writeFieldStop();
6719
      oprot.writeStructEnd();
6720
    }
6721
 
6722
    @Override
6723
    public String toString() {
6724
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
6725
      boolean first = true;
6726
 
6727
      sb.append("warehouse_id:");
6728
      sb.append(this.warehouse_id);
6729
      first = false;
6730
      if (!first) sb.append(", ");
6731
      sb.append("timestamp:");
6732
      if (this.timestamp == null) {
6733
        sb.append("null");
6734
      } else {
6735
        sb.append(this.timestamp);
6736
      }
6737
      first = false;
6738
      if (!first) sb.append(", ");
6739
      sb.append("availability:");
6740
      if (this.availability == null) {
6741
        sb.append("null");
6742
      } else {
6743
        sb.append(this.availability);
6744
      }
6745
      first = false;
6746
      sb.append(")");
6747
      return sb.toString();
6748
    }
6749
 
6750
    public void validate() throws org.apache.thrift.TException {
6751
      // check for required fields
6752
    }
6753
 
6754
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6755
      try {
6756
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6757
      } catch (org.apache.thrift.TException te) {
6758
        throw new java.io.IOException(te);
6759
      }
6760
    }
6761
 
6762
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6763
      try {
6764
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6765
      } catch (org.apache.thrift.TException te) {
6766
        throw new java.io.IOException(te);
6767
      }
6768
    }
6769
 
6770
  }
6771
 
6772
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
6773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
6774
 
6775
    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);
6776
 
6777
    private InventoryServiceException cex; // required
6778
 
6779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6781
      CEX((short)1, "cex");
6782
 
6783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6784
 
6785
      static {
6786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6787
          byName.put(field.getFieldName(), field);
6788
        }
6789
      }
6790
 
6791
      /**
6792
       * Find the _Fields constant that matches fieldId, or null if its not found.
6793
       */
6794
      public static _Fields findByThriftId(int fieldId) {
6795
        switch(fieldId) {
6796
          case 1: // CEX
6797
            return CEX;
6798
          default:
6799
            return null;
6800
        }
6801
      }
6802
 
6803
      /**
6804
       * Find the _Fields constant that matches fieldId, throwing an exception
6805
       * if it is not found.
6806
       */
6807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6808
        _Fields fields = findByThriftId(fieldId);
6809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6810
        return fields;
6811
      }
6812
 
6813
      /**
6814
       * Find the _Fields constant that matches name, or null if its not found.
6815
       */
6816
      public static _Fields findByName(String name) {
6817
        return byName.get(name);
6818
      }
6819
 
6820
      private final short _thriftId;
6821
      private final String _fieldName;
6822
 
6823
      _Fields(short thriftId, String fieldName) {
6824
        _thriftId = thriftId;
6825
        _fieldName = fieldName;
6826
      }
6827
 
6828
      public short getThriftFieldId() {
6829
        return _thriftId;
6830
      }
6831
 
6832
      public String getFieldName() {
6833
        return _fieldName;
6834
      }
6835
    }
6836
 
6837
    // isset id assignments
6838
 
6839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6840
    static {
6841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6842
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6844
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6845
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
6846
    }
6847
 
6848
    public updateInventoryHistory_result() {
6849
    }
6850
 
6851
    public updateInventoryHistory_result(
6852
      InventoryServiceException cex)
6853
    {
6854
      this();
6855
      this.cex = cex;
6856
    }
6857
 
6858
    /**
6859
     * Performs a deep copy on <i>other</i>.
6860
     */
6861
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
6862
      if (other.isSetCex()) {
6863
        this.cex = new InventoryServiceException(other.cex);
6864
      }
6865
    }
6866
 
6867
    public updateInventoryHistory_result deepCopy() {
6868
      return new updateInventoryHistory_result(this);
6869
    }
6870
 
6871
    @Override
6872
    public void clear() {
6873
      this.cex = null;
6874
    }
6875
 
6876
    public InventoryServiceException getCex() {
6877
      return this.cex;
6878
    }
6879
 
6880
    public void setCex(InventoryServiceException cex) {
6881
      this.cex = cex;
6882
    }
6883
 
6884
    public void unsetCex() {
6885
      this.cex = null;
6886
    }
6887
 
6888
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6889
    public boolean isSetCex() {
6890
      return this.cex != null;
6891
    }
6892
 
6893
    public void setCexIsSet(boolean value) {
6894
      if (!value) {
6895
        this.cex = null;
6896
      }
6897
    }
6898
 
6899
    public void setFieldValue(_Fields field, Object value) {
6900
      switch (field) {
6901
      case CEX:
6902
        if (value == null) {
6903
          unsetCex();
6904
        } else {
6905
          setCex((InventoryServiceException)value);
6906
        }
6907
        break;
6908
 
6909
      }
6910
    }
6911
 
6912
    public Object getFieldValue(_Fields field) {
6913
      switch (field) {
6914
      case CEX:
6915
        return getCex();
6916
 
6917
      }
6918
      throw new IllegalStateException();
6919
    }
6920
 
6921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6922
    public boolean isSet(_Fields field) {
6923
      if (field == null) {
6924
        throw new IllegalArgumentException();
6925
      }
6926
 
6927
      switch (field) {
6928
      case CEX:
6929
        return isSetCex();
6930
      }
6931
      throw new IllegalStateException();
6932
    }
6933
 
6934
    @Override
6935
    public boolean equals(Object that) {
6936
      if (that == null)
6937
        return false;
6938
      if (that instanceof updateInventoryHistory_result)
6939
        return this.equals((updateInventoryHistory_result)that);
6940
      return false;
6941
    }
6942
 
6943
    public boolean equals(updateInventoryHistory_result that) {
6944
      if (that == null)
6945
        return false;
6946
 
6947
      boolean this_present_cex = true && this.isSetCex();
6948
      boolean that_present_cex = true && that.isSetCex();
6949
      if (this_present_cex || that_present_cex) {
6950
        if (!(this_present_cex && that_present_cex))
6951
          return false;
6952
        if (!this.cex.equals(that.cex))
6953
          return false;
6954
      }
6955
 
6956
      return true;
6957
    }
6958
 
6959
    @Override
6960
    public int hashCode() {
6961
      return 0;
6962
    }
6963
 
6964
    public int compareTo(updateInventoryHistory_result other) {
6965
      if (!getClass().equals(other.getClass())) {
6966
        return getClass().getName().compareTo(other.getClass().getName());
6967
      }
6968
 
6969
      int lastComparison = 0;
6970
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
6971
 
6972
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6973
      if (lastComparison != 0) {
6974
        return lastComparison;
6975
      }
6976
      if (isSetCex()) {
6977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6978
        if (lastComparison != 0) {
6979
          return lastComparison;
6980
        }
6981
      }
6982
      return 0;
6983
    }
6984
 
6985
    public _Fields fieldForId(int fieldId) {
6986
      return _Fields.findByThriftId(fieldId);
6987
    }
6988
 
6989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6990
      org.apache.thrift.protocol.TField field;
6991
      iprot.readStructBegin();
6992
      while (true)
6993
      {
6994
        field = iprot.readFieldBegin();
6995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6996
          break;
6997
        }
6998
        switch (field.id) {
6999
          case 1: // CEX
7000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7001
              this.cex = new InventoryServiceException();
7002
              this.cex.read(iprot);
7003
            } else { 
7004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7005
            }
7006
            break;
7007
          default:
7008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7009
        }
7010
        iprot.readFieldEnd();
7011
      }
7012
      iprot.readStructEnd();
7013
      validate();
7014
    }
7015
 
7016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7017
      oprot.writeStructBegin(STRUCT_DESC);
7018
 
7019
      if (this.isSetCex()) {
7020
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7021
        this.cex.write(oprot);
7022
        oprot.writeFieldEnd();
7023
      }
7024
      oprot.writeFieldStop();
7025
      oprot.writeStructEnd();
7026
    }
7027
 
7028
    @Override
7029
    public String toString() {
7030
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
7031
      boolean first = true;
7032
 
7033
      sb.append("cex:");
7034
      if (this.cex == null) {
7035
        sb.append("null");
7036
      } else {
7037
        sb.append(this.cex);
7038
      }
7039
      first = false;
7040
      sb.append(")");
7041
      return sb.toString();
7042
    }
7043
 
7044
    public void validate() throws org.apache.thrift.TException {
7045
      // check for required fields
7046
    }
7047
 
7048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7049
      try {
7050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7051
      } catch (org.apache.thrift.TException te) {
7052
        throw new java.io.IOException(te);
7053
      }
7054
    }
7055
 
7056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7057
      try {
7058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7059
      } catch (org.apache.thrift.TException te) {
7060
        throw new java.io.IOException(te);
7061
      }
7062
    }
7063
 
7064
  }
7065
 
7066
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
7067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
7068
 
7069
    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);
7070
    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);
7071
    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);
7072
 
7073
    private long warehouse_id; // required
7074
    private String timestamp; // required
7075
    private Map<String,Long> availability; // required
7076
 
7077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7079
      WAREHOUSE_ID((short)1, "warehouse_id"),
7080
      TIMESTAMP((short)2, "timestamp"),
7081
      AVAILABILITY((short)3, "availability");
7082
 
7083
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7084
 
7085
      static {
7086
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7087
          byName.put(field.getFieldName(), field);
7088
        }
7089
      }
7090
 
7091
      /**
7092
       * Find the _Fields constant that matches fieldId, or null if its not found.
7093
       */
7094
      public static _Fields findByThriftId(int fieldId) {
7095
        switch(fieldId) {
7096
          case 1: // WAREHOUSE_ID
7097
            return WAREHOUSE_ID;
7098
          case 2: // TIMESTAMP
7099
            return TIMESTAMP;
7100
          case 3: // AVAILABILITY
7101
            return AVAILABILITY;
7102
          default:
7103
            return null;
7104
        }
7105
      }
7106
 
7107
      /**
7108
       * Find the _Fields constant that matches fieldId, throwing an exception
7109
       * if it is not found.
7110
       */
7111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7112
        _Fields fields = findByThriftId(fieldId);
7113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7114
        return fields;
7115
      }
7116
 
7117
      /**
7118
       * Find the _Fields constant that matches name, or null if its not found.
7119
       */
7120
      public static _Fields findByName(String name) {
7121
        return byName.get(name);
7122
      }
7123
 
7124
      private final short _thriftId;
7125
      private final String _fieldName;
7126
 
7127
      _Fields(short thriftId, String fieldName) {
7128
        _thriftId = thriftId;
7129
        _fieldName = fieldName;
7130
      }
7131
 
7132
      public short getThriftFieldId() {
7133
        return _thriftId;
7134
      }
7135
 
7136
      public String getFieldName() {
7137
        return _fieldName;
7138
      }
7139
    }
7140
 
7141
    // isset id assignments
7142
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7143
    private BitSet __isset_bit_vector = new BitSet(1);
7144
 
7145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7146
    static {
7147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7148
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7150
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7152
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7153
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7154
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7155
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
7156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
7158
    }
7159
 
7160
    public updateInventory_args() {
7161
    }
7162
 
7163
    public updateInventory_args(
7164
      long warehouse_id,
7165
      String timestamp,
7166
      Map<String,Long> availability)
7167
    {
7168
      this();
7169
      this.warehouse_id = warehouse_id;
7170
      setWarehouse_idIsSet(true);
7171
      this.timestamp = timestamp;
7172
      this.availability = availability;
7173
    }
7174
 
7175
    /**
7176
     * Performs a deep copy on <i>other</i>.
7177
     */
7178
    public updateInventory_args(updateInventory_args other) {
7179
      __isset_bit_vector.clear();
7180
      __isset_bit_vector.or(other.__isset_bit_vector);
7181
      this.warehouse_id = other.warehouse_id;
7182
      if (other.isSetTimestamp()) {
7183
        this.timestamp = other.timestamp;
7184
      }
7185
      if (other.isSetAvailability()) {
7186
        Map<String,Long> __this__availability = new HashMap<String,Long>();
7187
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
7188
 
7189
          String other_element_key = other_element.getKey();
7190
          Long other_element_value = other_element.getValue();
7191
 
7192
          String __this__availability_copy_key = other_element_key;
7193
 
7194
          Long __this__availability_copy_value = other_element_value;
7195
 
7196
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
7197
        }
7198
        this.availability = __this__availability;
7199
      }
7200
    }
7201
 
7202
    public updateInventory_args deepCopy() {
7203
      return new updateInventory_args(this);
7204
    }
7205
 
7206
    @Override
7207
    public void clear() {
7208
      setWarehouse_idIsSet(false);
7209
      this.warehouse_id = 0;
7210
      this.timestamp = null;
7211
      this.availability = null;
7212
    }
7213
 
7214
    public long getWarehouse_id() {
7215
      return this.warehouse_id;
7216
    }
7217
 
7218
    public void setWarehouse_id(long warehouse_id) {
7219
      this.warehouse_id = warehouse_id;
7220
      setWarehouse_idIsSet(true);
7221
    }
7222
 
7223
    public void unsetWarehouse_id() {
7224
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7225
    }
7226
 
7227
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7228
    public boolean isSetWarehouse_id() {
7229
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7230
    }
7231
 
7232
    public void setWarehouse_idIsSet(boolean value) {
7233
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7234
    }
7235
 
7236
    public String getTimestamp() {
7237
      return this.timestamp;
7238
    }
7239
 
7240
    public void setTimestamp(String timestamp) {
7241
      this.timestamp = timestamp;
7242
    }
7243
 
7244
    public void unsetTimestamp() {
7245
      this.timestamp = null;
7246
    }
7247
 
7248
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
7249
    public boolean isSetTimestamp() {
7250
      return this.timestamp != null;
7251
    }
7252
 
7253
    public void setTimestampIsSet(boolean value) {
7254
      if (!value) {
7255
        this.timestamp = null;
7256
      }
7257
    }
7258
 
7259
    public int getAvailabilitySize() {
7260
      return (this.availability == null) ? 0 : this.availability.size();
7261
    }
7262
 
7263
    public void putToAvailability(String key, long val) {
7264
      if (this.availability == null) {
7265
        this.availability = new HashMap<String,Long>();
7266
      }
7267
      this.availability.put(key, val);
7268
    }
7269
 
7270
    public Map<String,Long> getAvailability() {
7271
      return this.availability;
7272
    }
7273
 
7274
    public void setAvailability(Map<String,Long> availability) {
7275
      this.availability = availability;
7276
    }
7277
 
7278
    public void unsetAvailability() {
7279
      this.availability = null;
7280
    }
7281
 
7282
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
7283
    public boolean isSetAvailability() {
7284
      return this.availability != null;
7285
    }
7286
 
7287
    public void setAvailabilityIsSet(boolean value) {
7288
      if (!value) {
7289
        this.availability = null;
7290
      }
7291
    }
7292
 
7293
    public void setFieldValue(_Fields field, Object value) {
7294
      switch (field) {
7295
      case WAREHOUSE_ID:
7296
        if (value == null) {
7297
          unsetWarehouse_id();
7298
        } else {
7299
          setWarehouse_id((Long)value);
7300
        }
7301
        break;
7302
 
7303
      case TIMESTAMP:
7304
        if (value == null) {
7305
          unsetTimestamp();
7306
        } else {
7307
          setTimestamp((String)value);
7308
        }
7309
        break;
7310
 
7311
      case AVAILABILITY:
7312
        if (value == null) {
7313
          unsetAvailability();
7314
        } else {
7315
          setAvailability((Map<String,Long>)value);
7316
        }
7317
        break;
7318
 
7319
      }
7320
    }
7321
 
7322
    public Object getFieldValue(_Fields field) {
7323
      switch (field) {
7324
      case WAREHOUSE_ID:
7325
        return Long.valueOf(getWarehouse_id());
7326
 
7327
      case TIMESTAMP:
7328
        return getTimestamp();
7329
 
7330
      case AVAILABILITY:
7331
        return getAvailability();
7332
 
7333
      }
7334
      throw new IllegalStateException();
7335
    }
7336
 
7337
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7338
    public boolean isSet(_Fields field) {
7339
      if (field == null) {
7340
        throw new IllegalArgumentException();
7341
      }
7342
 
7343
      switch (field) {
7344
      case WAREHOUSE_ID:
7345
        return isSetWarehouse_id();
7346
      case TIMESTAMP:
7347
        return isSetTimestamp();
7348
      case AVAILABILITY:
7349
        return isSetAvailability();
7350
      }
7351
      throw new IllegalStateException();
7352
    }
7353
 
7354
    @Override
7355
    public boolean equals(Object that) {
7356
      if (that == null)
7357
        return false;
7358
      if (that instanceof updateInventory_args)
7359
        return this.equals((updateInventory_args)that);
7360
      return false;
7361
    }
7362
 
7363
    public boolean equals(updateInventory_args that) {
7364
      if (that == null)
7365
        return false;
7366
 
7367
      boolean this_present_warehouse_id = true;
7368
      boolean that_present_warehouse_id = true;
7369
      if (this_present_warehouse_id || that_present_warehouse_id) {
7370
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7371
          return false;
7372
        if (this.warehouse_id != that.warehouse_id)
7373
          return false;
7374
      }
7375
 
7376
      boolean this_present_timestamp = true && this.isSetTimestamp();
7377
      boolean that_present_timestamp = true && that.isSetTimestamp();
7378
      if (this_present_timestamp || that_present_timestamp) {
7379
        if (!(this_present_timestamp && that_present_timestamp))
7380
          return false;
7381
        if (!this.timestamp.equals(that.timestamp))
7382
          return false;
7383
      }
7384
 
7385
      boolean this_present_availability = true && this.isSetAvailability();
7386
      boolean that_present_availability = true && that.isSetAvailability();
7387
      if (this_present_availability || that_present_availability) {
7388
        if (!(this_present_availability && that_present_availability))
7389
          return false;
7390
        if (!this.availability.equals(that.availability))
7391
          return false;
7392
      }
7393
 
7394
      return true;
7395
    }
7396
 
7397
    @Override
7398
    public int hashCode() {
7399
      return 0;
7400
    }
7401
 
7402
    public int compareTo(updateInventory_args other) {
7403
      if (!getClass().equals(other.getClass())) {
7404
        return getClass().getName().compareTo(other.getClass().getName());
7405
      }
7406
 
7407
      int lastComparison = 0;
7408
      updateInventory_args typedOther = (updateInventory_args)other;
7409
 
7410
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7411
      if (lastComparison != 0) {
7412
        return lastComparison;
7413
      }
7414
      if (isSetWarehouse_id()) {
7415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7416
        if (lastComparison != 0) {
7417
          return lastComparison;
7418
        }
7419
      }
7420
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
7421
      if (lastComparison != 0) {
7422
        return lastComparison;
7423
      }
7424
      if (isSetTimestamp()) {
7425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
7426
        if (lastComparison != 0) {
7427
          return lastComparison;
7428
        }
7429
      }
7430
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
7431
      if (lastComparison != 0) {
7432
        return lastComparison;
7433
      }
7434
      if (isSetAvailability()) {
7435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
7436
        if (lastComparison != 0) {
7437
          return lastComparison;
7438
        }
7439
      }
7440
      return 0;
7441
    }
7442
 
7443
    public _Fields fieldForId(int fieldId) {
7444
      return _Fields.findByThriftId(fieldId);
7445
    }
7446
 
7447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7448
      org.apache.thrift.protocol.TField field;
7449
      iprot.readStructBegin();
7450
      while (true)
7451
      {
7452
        field = iprot.readFieldBegin();
7453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7454
          break;
7455
        }
7456
        switch (field.id) {
7457
          case 1: // WAREHOUSE_ID
7458
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7459
              this.warehouse_id = iprot.readI64();
7460
              setWarehouse_idIsSet(true);
7461
            } else { 
7462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7463
            }
7464
            break;
7465
          case 2: // TIMESTAMP
7466
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7467
              this.timestamp = iprot.readString();
7468
            } else { 
7469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7470
            }
7471
            break;
7472
          case 3: // AVAILABILITY
7473
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
7474
              {
8182 amar.kumar 7475
                org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin();
7476
                this.availability = new HashMap<String,Long>(2*_map20.size);
7477
                for (int _i21 = 0; _i21 < _map20.size; ++_i21)
5945 mandeep.dh 7478
                {
8182 amar.kumar 7479
                  String _key22; // required
7480
                  long _val23; // required
7481
                  _key22 = iprot.readString();
7482
                  _val23 = iprot.readI64();
7483
                  this.availability.put(_key22, _val23);
5945 mandeep.dh 7484
                }
7485
                iprot.readMapEnd();
7486
              }
7487
            } else { 
7488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7489
            }
7490
            break;
7491
          default:
7492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7493
        }
7494
        iprot.readFieldEnd();
7495
      }
7496
      iprot.readStructEnd();
7497
      validate();
7498
    }
7499
 
7500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7501
      validate();
7502
 
7503
      oprot.writeStructBegin(STRUCT_DESC);
7504
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7505
      oprot.writeI64(this.warehouse_id);
7506
      oprot.writeFieldEnd();
7507
      if (this.timestamp != null) {
7508
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
7509
        oprot.writeString(this.timestamp);
7510
        oprot.writeFieldEnd();
7511
      }
7512
      if (this.availability != null) {
7513
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
7514
        {
7515
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
8182 amar.kumar 7516
          for (Map.Entry<String, Long> _iter24 : this.availability.entrySet())
5945 mandeep.dh 7517
          {
8182 amar.kumar 7518
            oprot.writeString(_iter24.getKey());
7519
            oprot.writeI64(_iter24.getValue());
5945 mandeep.dh 7520
          }
7521
          oprot.writeMapEnd();
7522
        }
7523
        oprot.writeFieldEnd();
7524
      }
7525
      oprot.writeFieldStop();
7526
      oprot.writeStructEnd();
7527
    }
7528
 
7529
    @Override
7530
    public String toString() {
7531
      StringBuilder sb = new StringBuilder("updateInventory_args(");
7532
      boolean first = true;
7533
 
7534
      sb.append("warehouse_id:");
7535
      sb.append(this.warehouse_id);
7536
      first = false;
7537
      if (!first) sb.append(", ");
7538
      sb.append("timestamp:");
7539
      if (this.timestamp == null) {
7540
        sb.append("null");
7541
      } else {
7542
        sb.append(this.timestamp);
7543
      }
7544
      first = false;
7545
      if (!first) sb.append(", ");
7546
      sb.append("availability:");
7547
      if (this.availability == null) {
7548
        sb.append("null");
7549
      } else {
7550
        sb.append(this.availability);
7551
      }
7552
      first = false;
7553
      sb.append(")");
7554
      return sb.toString();
7555
    }
7556
 
7557
    public void validate() throws org.apache.thrift.TException {
7558
      // check for required fields
7559
    }
7560
 
7561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7562
      try {
7563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7564
      } catch (org.apache.thrift.TException te) {
7565
        throw new java.io.IOException(te);
7566
      }
7567
    }
7568
 
7569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7570
      try {
7571
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7572
        __isset_bit_vector = new BitSet(1);
7573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7574
      } catch (org.apache.thrift.TException te) {
7575
        throw new java.io.IOException(te);
7576
      }
7577
    }
7578
 
7579
  }
7580
 
7581
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
7582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
7583
 
7584
    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);
7585
 
7586
    private InventoryServiceException cex; // required
7587
 
7588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7590
      CEX((short)1, "cex");
7591
 
7592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7593
 
7594
      static {
7595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7596
          byName.put(field.getFieldName(), field);
7597
        }
7598
      }
7599
 
7600
      /**
7601
       * Find the _Fields constant that matches fieldId, or null if its not found.
7602
       */
7603
      public static _Fields findByThriftId(int fieldId) {
7604
        switch(fieldId) {
7605
          case 1: // CEX
7606
            return CEX;
7607
          default:
7608
            return null;
7609
        }
7610
      }
7611
 
7612
      /**
7613
       * Find the _Fields constant that matches fieldId, throwing an exception
7614
       * if it is not found.
7615
       */
7616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7617
        _Fields fields = findByThriftId(fieldId);
7618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7619
        return fields;
7620
      }
7621
 
7622
      /**
7623
       * Find the _Fields constant that matches name, or null if its not found.
7624
       */
7625
      public static _Fields findByName(String name) {
7626
        return byName.get(name);
7627
      }
7628
 
7629
      private final short _thriftId;
7630
      private final String _fieldName;
7631
 
7632
      _Fields(short thriftId, String fieldName) {
7633
        _thriftId = thriftId;
7634
        _fieldName = fieldName;
7635
      }
7636
 
7637
      public short getThriftFieldId() {
7638
        return _thriftId;
7639
      }
7640
 
7641
      public String getFieldName() {
7642
        return _fieldName;
7643
      }
7644
    }
7645
 
7646
    // isset id assignments
7647
 
7648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7649
    static {
7650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7651
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
7655
    }
7656
 
7657
    public updateInventory_result() {
7658
    }
7659
 
7660
    public updateInventory_result(
7661
      InventoryServiceException cex)
7662
    {
7663
      this();
7664
      this.cex = cex;
7665
    }
7666
 
7667
    /**
7668
     * Performs a deep copy on <i>other</i>.
7669
     */
7670
    public updateInventory_result(updateInventory_result other) {
7671
      if (other.isSetCex()) {
7672
        this.cex = new InventoryServiceException(other.cex);
7673
      }
7674
    }
7675
 
7676
    public updateInventory_result deepCopy() {
7677
      return new updateInventory_result(this);
7678
    }
7679
 
7680
    @Override
7681
    public void clear() {
7682
      this.cex = null;
7683
    }
7684
 
7685
    public InventoryServiceException getCex() {
7686
      return this.cex;
7687
    }
7688
 
7689
    public void setCex(InventoryServiceException cex) {
7690
      this.cex = cex;
7691
    }
7692
 
7693
    public void unsetCex() {
7694
      this.cex = null;
7695
    }
7696
 
7697
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7698
    public boolean isSetCex() {
7699
      return this.cex != null;
7700
    }
7701
 
7702
    public void setCexIsSet(boolean value) {
7703
      if (!value) {
7704
        this.cex = null;
7705
      }
7706
    }
7707
 
7708
    public void setFieldValue(_Fields field, Object value) {
7709
      switch (field) {
7710
      case CEX:
7711
        if (value == null) {
7712
          unsetCex();
7713
        } else {
7714
          setCex((InventoryServiceException)value);
7715
        }
7716
        break;
7717
 
7718
      }
7719
    }
7720
 
7721
    public Object getFieldValue(_Fields field) {
7722
      switch (field) {
7723
      case CEX:
7724
        return getCex();
7725
 
7726
      }
7727
      throw new IllegalStateException();
7728
    }
7729
 
7730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7731
    public boolean isSet(_Fields field) {
7732
      if (field == null) {
7733
        throw new IllegalArgumentException();
7734
      }
7735
 
7736
      switch (field) {
7737
      case CEX:
7738
        return isSetCex();
7739
      }
7740
      throw new IllegalStateException();
7741
    }
7742
 
7743
    @Override
7744
    public boolean equals(Object that) {
7745
      if (that == null)
7746
        return false;
7747
      if (that instanceof updateInventory_result)
7748
        return this.equals((updateInventory_result)that);
7749
      return false;
7750
    }
7751
 
7752
    public boolean equals(updateInventory_result that) {
7753
      if (that == null)
7754
        return false;
7755
 
7756
      boolean this_present_cex = true && this.isSetCex();
7757
      boolean that_present_cex = true && that.isSetCex();
7758
      if (this_present_cex || that_present_cex) {
7759
        if (!(this_present_cex && that_present_cex))
7760
          return false;
7761
        if (!this.cex.equals(that.cex))
7762
          return false;
7763
      }
7764
 
7765
      return true;
7766
    }
7767
 
7768
    @Override
7769
    public int hashCode() {
7770
      return 0;
7771
    }
7772
 
7773
    public int compareTo(updateInventory_result other) {
7774
      if (!getClass().equals(other.getClass())) {
7775
        return getClass().getName().compareTo(other.getClass().getName());
7776
      }
7777
 
7778
      int lastComparison = 0;
7779
      updateInventory_result typedOther = (updateInventory_result)other;
7780
 
7781
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7782
      if (lastComparison != 0) {
7783
        return lastComparison;
7784
      }
7785
      if (isSetCex()) {
7786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7787
        if (lastComparison != 0) {
7788
          return lastComparison;
7789
        }
7790
      }
7791
      return 0;
7792
    }
7793
 
7794
    public _Fields fieldForId(int fieldId) {
7795
      return _Fields.findByThriftId(fieldId);
7796
    }
7797
 
7798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7799
      org.apache.thrift.protocol.TField field;
7800
      iprot.readStructBegin();
7801
      while (true)
7802
      {
7803
        field = iprot.readFieldBegin();
7804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7805
          break;
7806
        }
7807
        switch (field.id) {
7808
          case 1: // CEX
7809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7810
              this.cex = new InventoryServiceException();
7811
              this.cex.read(iprot);
7812
            } else { 
7813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7814
            }
7815
            break;
7816
          default:
7817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7818
        }
7819
        iprot.readFieldEnd();
7820
      }
7821
      iprot.readStructEnd();
7822
      validate();
7823
    }
7824
 
7825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7826
      oprot.writeStructBegin(STRUCT_DESC);
7827
 
7828
      if (this.isSetCex()) {
7829
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7830
        this.cex.write(oprot);
7831
        oprot.writeFieldEnd();
7832
      }
7833
      oprot.writeFieldStop();
7834
      oprot.writeStructEnd();
7835
    }
7836
 
7837
    @Override
7838
    public String toString() {
7839
      StringBuilder sb = new StringBuilder("updateInventory_result(");
7840
      boolean first = true;
7841
 
7842
      sb.append("cex:");
7843
      if (this.cex == null) {
7844
        sb.append("null");
7845
      } else {
7846
        sb.append(this.cex);
7847
      }
7848
      first = false;
7849
      sb.append(")");
7850
      return sb.toString();
7851
    }
7852
 
7853
    public void validate() throws org.apache.thrift.TException {
7854
      // check for required fields
7855
    }
7856
 
7857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7858
      try {
7859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7860
      } catch (org.apache.thrift.TException te) {
7861
        throw new java.io.IOException(te);
7862
      }
7863
    }
7864
 
7865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7866
      try {
7867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7868
      } catch (org.apache.thrift.TException te) {
7869
        throw new java.io.IOException(te);
7870
      }
7871
    }
7872
 
7873
  }
7874
 
7875
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
7876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
7877
 
7878
    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);
7879
    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);
7880
    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);
7881
 
7882
    private long itemId; // required
7883
    private long warehouseId; // required
7884
    private long quantity; // required
7885
 
7886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7888
      ITEM_ID((short)1, "itemId"),
7889
      WAREHOUSE_ID((short)2, "warehouseId"),
7890
      QUANTITY((short)3, "quantity");
7891
 
7892
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7893
 
7894
      static {
7895
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7896
          byName.put(field.getFieldName(), field);
7897
        }
7898
      }
7899
 
7900
      /**
7901
       * Find the _Fields constant that matches fieldId, or null if its not found.
7902
       */
7903
      public static _Fields findByThriftId(int fieldId) {
7904
        switch(fieldId) {
7905
          case 1: // ITEM_ID
7906
            return ITEM_ID;
7907
          case 2: // WAREHOUSE_ID
7908
            return WAREHOUSE_ID;
7909
          case 3: // QUANTITY
7910
            return QUANTITY;
7911
          default:
7912
            return null;
7913
        }
7914
      }
7915
 
7916
      /**
7917
       * Find the _Fields constant that matches fieldId, throwing an exception
7918
       * if it is not found.
7919
       */
7920
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7921
        _Fields fields = findByThriftId(fieldId);
7922
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7923
        return fields;
7924
      }
7925
 
7926
      /**
7927
       * Find the _Fields constant that matches name, or null if its not found.
7928
       */
7929
      public static _Fields findByName(String name) {
7930
        return byName.get(name);
7931
      }
7932
 
7933
      private final short _thriftId;
7934
      private final String _fieldName;
7935
 
7936
      _Fields(short thriftId, String fieldName) {
7937
        _thriftId = thriftId;
7938
        _fieldName = fieldName;
7939
      }
7940
 
7941
      public short getThriftFieldId() {
7942
        return _thriftId;
7943
      }
7944
 
7945
      public String getFieldName() {
7946
        return _fieldName;
7947
      }
7948
    }
7949
 
7950
    // isset id assignments
7951
    private static final int __ITEMID_ISSET_ID = 0;
7952
    private static final int __WAREHOUSEID_ISSET_ID = 1;
7953
    private static final int __QUANTITY_ISSET_ID = 2;
7954
    private BitSet __isset_bit_vector = new BitSet(3);
7955
 
7956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7957
    static {
7958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7959
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7961
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7963
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
7967
    }
7968
 
7969
    public addInventory_args() {
7970
    }
7971
 
7972
    public addInventory_args(
7973
      long itemId,
7974
      long warehouseId,
7975
      long quantity)
7976
    {
7977
      this();
7978
      this.itemId = itemId;
7979
      setItemIdIsSet(true);
7980
      this.warehouseId = warehouseId;
7981
      setWarehouseIdIsSet(true);
7982
      this.quantity = quantity;
7983
      setQuantityIsSet(true);
7984
    }
7985
 
7986
    /**
7987
     * Performs a deep copy on <i>other</i>.
7988
     */
7989
    public addInventory_args(addInventory_args other) {
7990
      __isset_bit_vector.clear();
7991
      __isset_bit_vector.or(other.__isset_bit_vector);
7992
      this.itemId = other.itemId;
7993
      this.warehouseId = other.warehouseId;
7994
      this.quantity = other.quantity;
7995
    }
7996
 
7997
    public addInventory_args deepCopy() {
7998
      return new addInventory_args(this);
7999
    }
8000
 
8001
    @Override
8002
    public void clear() {
8003
      setItemIdIsSet(false);
8004
      this.itemId = 0;
8005
      setWarehouseIdIsSet(false);
8006
      this.warehouseId = 0;
8007
      setQuantityIsSet(false);
8008
      this.quantity = 0;
8009
    }
8010
 
8011
    public long getItemId() {
8012
      return this.itemId;
8013
    }
8014
 
8015
    public void setItemId(long itemId) {
8016
      this.itemId = itemId;
8017
      setItemIdIsSet(true);
8018
    }
8019
 
8020
    public void unsetItemId() {
8021
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8022
    }
8023
 
8024
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8025
    public boolean isSetItemId() {
8026
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8027
    }
8028
 
8029
    public void setItemIdIsSet(boolean value) {
8030
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8031
    }
8032
 
8033
    public long getWarehouseId() {
8034
      return this.warehouseId;
8035
    }
8036
 
8037
    public void setWarehouseId(long warehouseId) {
8038
      this.warehouseId = warehouseId;
8039
      setWarehouseIdIsSet(true);
8040
    }
8041
 
8042
    public void unsetWarehouseId() {
8043
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8044
    }
8045
 
8046
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
8047
    public boolean isSetWarehouseId() {
8048
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8049
    }
8050
 
8051
    public void setWarehouseIdIsSet(boolean value) {
8052
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8053
    }
8054
 
8055
    public long getQuantity() {
8056
      return this.quantity;
8057
    }
8058
 
8059
    public void setQuantity(long quantity) {
8060
      this.quantity = quantity;
8061
      setQuantityIsSet(true);
8062
    }
8063
 
8064
    public void unsetQuantity() {
8065
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
8066
    }
8067
 
8068
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
8069
    public boolean isSetQuantity() {
8070
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
8071
    }
8072
 
8073
    public void setQuantityIsSet(boolean value) {
8074
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
8075
    }
8076
 
8077
    public void setFieldValue(_Fields field, Object value) {
8078
      switch (field) {
8079
      case ITEM_ID:
8080
        if (value == null) {
8081
          unsetItemId();
8082
        } else {
8083
          setItemId((Long)value);
8084
        }
8085
        break;
8086
 
8087
      case WAREHOUSE_ID:
8088
        if (value == null) {
8089
          unsetWarehouseId();
8090
        } else {
8091
          setWarehouseId((Long)value);
8092
        }
8093
        break;
8094
 
8095
      case QUANTITY:
8096
        if (value == null) {
8097
          unsetQuantity();
8098
        } else {
8099
          setQuantity((Long)value);
8100
        }
8101
        break;
8102
 
8103
      }
8104
    }
8105
 
8106
    public Object getFieldValue(_Fields field) {
8107
      switch (field) {
8108
      case ITEM_ID:
8109
        return Long.valueOf(getItemId());
8110
 
8111
      case WAREHOUSE_ID:
8112
        return Long.valueOf(getWarehouseId());
8113
 
8114
      case QUANTITY:
8115
        return Long.valueOf(getQuantity());
8116
 
8117
      }
8118
      throw new IllegalStateException();
8119
    }
8120
 
8121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8122
    public boolean isSet(_Fields field) {
8123
      if (field == null) {
8124
        throw new IllegalArgumentException();
8125
      }
8126
 
8127
      switch (field) {
8128
      case ITEM_ID:
8129
        return isSetItemId();
8130
      case WAREHOUSE_ID:
8131
        return isSetWarehouseId();
8132
      case QUANTITY:
8133
        return isSetQuantity();
8134
      }
8135
      throw new IllegalStateException();
8136
    }
8137
 
8138
    @Override
8139
    public boolean equals(Object that) {
8140
      if (that == null)
8141
        return false;
8142
      if (that instanceof addInventory_args)
8143
        return this.equals((addInventory_args)that);
8144
      return false;
8145
    }
8146
 
8147
    public boolean equals(addInventory_args that) {
8148
      if (that == null)
8149
        return false;
8150
 
8151
      boolean this_present_itemId = true;
8152
      boolean that_present_itemId = true;
8153
      if (this_present_itemId || that_present_itemId) {
8154
        if (!(this_present_itemId && that_present_itemId))
8155
          return false;
8156
        if (this.itemId != that.itemId)
8157
          return false;
8158
      }
8159
 
8160
      boolean this_present_warehouseId = true;
8161
      boolean that_present_warehouseId = true;
8162
      if (this_present_warehouseId || that_present_warehouseId) {
8163
        if (!(this_present_warehouseId && that_present_warehouseId))
8164
          return false;
8165
        if (this.warehouseId != that.warehouseId)
8166
          return false;
8167
      }
8168
 
8169
      boolean this_present_quantity = true;
8170
      boolean that_present_quantity = true;
8171
      if (this_present_quantity || that_present_quantity) {
8172
        if (!(this_present_quantity && that_present_quantity))
8173
          return false;
8174
        if (this.quantity != that.quantity)
8175
          return false;
8176
      }
8177
 
8178
      return true;
8179
    }
8180
 
8181
    @Override
8182
    public int hashCode() {
8183
      return 0;
8184
    }
8185
 
8186
    public int compareTo(addInventory_args other) {
8187
      if (!getClass().equals(other.getClass())) {
8188
        return getClass().getName().compareTo(other.getClass().getName());
8189
      }
8190
 
8191
      int lastComparison = 0;
8192
      addInventory_args typedOther = (addInventory_args)other;
8193
 
8194
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8195
      if (lastComparison != 0) {
8196
        return lastComparison;
8197
      }
8198
      if (isSetItemId()) {
8199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8200
        if (lastComparison != 0) {
8201
          return lastComparison;
8202
        }
8203
      }
8204
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
8205
      if (lastComparison != 0) {
8206
        return lastComparison;
8207
      }
8208
      if (isSetWarehouseId()) {
8209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
8210
        if (lastComparison != 0) {
8211
          return lastComparison;
8212
        }
8213
      }
8214
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
8215
      if (lastComparison != 0) {
8216
        return lastComparison;
8217
      }
8218
      if (isSetQuantity()) {
8219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
8220
        if (lastComparison != 0) {
8221
          return lastComparison;
8222
        }
8223
      }
8224
      return 0;
8225
    }
8226
 
8227
    public _Fields fieldForId(int fieldId) {
8228
      return _Fields.findByThriftId(fieldId);
8229
    }
8230
 
8231
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8232
      org.apache.thrift.protocol.TField field;
8233
      iprot.readStructBegin();
8234
      while (true)
8235
      {
8236
        field = iprot.readFieldBegin();
8237
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8238
          break;
8239
        }
8240
        switch (field.id) {
8241
          case 1: // ITEM_ID
8242
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8243
              this.itemId = iprot.readI64();
8244
              setItemIdIsSet(true);
8245
            } else { 
8246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8247
            }
8248
            break;
8249
          case 2: // WAREHOUSE_ID
8250
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8251
              this.warehouseId = iprot.readI64();
8252
              setWarehouseIdIsSet(true);
8253
            } else { 
8254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8255
            }
8256
            break;
8257
          case 3: // QUANTITY
8258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8259
              this.quantity = iprot.readI64();
8260
              setQuantityIsSet(true);
8261
            } else { 
8262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8263
            }
8264
            break;
8265
          default:
8266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8267
        }
8268
        iprot.readFieldEnd();
8269
      }
8270
      iprot.readStructEnd();
8271
      validate();
8272
    }
8273
 
8274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8275
      validate();
8276
 
8277
      oprot.writeStructBegin(STRUCT_DESC);
8278
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8279
      oprot.writeI64(this.itemId);
8280
      oprot.writeFieldEnd();
8281
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8282
      oprot.writeI64(this.warehouseId);
8283
      oprot.writeFieldEnd();
8284
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8285
      oprot.writeI64(this.quantity);
8286
      oprot.writeFieldEnd();
8287
      oprot.writeFieldStop();
8288
      oprot.writeStructEnd();
8289
    }
8290
 
8291
    @Override
8292
    public String toString() {
8293
      StringBuilder sb = new StringBuilder("addInventory_args(");
8294
      boolean first = true;
8295
 
8296
      sb.append("itemId:");
8297
      sb.append(this.itemId);
8298
      first = false;
8299
      if (!first) sb.append(", ");
8300
      sb.append("warehouseId:");
8301
      sb.append(this.warehouseId);
8302
      first = false;
8303
      if (!first) sb.append(", ");
8304
      sb.append("quantity:");
8305
      sb.append(this.quantity);
8306
      first = false;
8307
      sb.append(")");
8308
      return sb.toString();
8309
    }
8310
 
8311
    public void validate() throws org.apache.thrift.TException {
8312
      // check for required fields
8313
    }
8314
 
8315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8316
      try {
8317
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8318
      } catch (org.apache.thrift.TException te) {
8319
        throw new java.io.IOException(te);
8320
      }
8321
    }
8322
 
8323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8324
      try {
8325
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8326
        __isset_bit_vector = new BitSet(1);
8327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8328
      } catch (org.apache.thrift.TException te) {
8329
        throw new java.io.IOException(te);
8330
      }
8331
    }
8332
 
8333
  }
8334
 
8335
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
8336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
8337
 
8338
    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);
8339
 
8340
    private InventoryServiceException cex; // required
8341
 
8342
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8343
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8344
      CEX((short)1, "cex");
8345
 
8346
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8347
 
8348
      static {
8349
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8350
          byName.put(field.getFieldName(), field);
8351
        }
8352
      }
8353
 
8354
      /**
8355
       * Find the _Fields constant that matches fieldId, or null if its not found.
8356
       */
8357
      public static _Fields findByThriftId(int fieldId) {
8358
        switch(fieldId) {
8359
          case 1: // CEX
8360
            return CEX;
8361
          default:
8362
            return null;
8363
        }
8364
      }
8365
 
8366
      /**
8367
       * Find the _Fields constant that matches fieldId, throwing an exception
8368
       * if it is not found.
8369
       */
8370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8371
        _Fields fields = findByThriftId(fieldId);
8372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8373
        return fields;
8374
      }
8375
 
8376
      /**
8377
       * Find the _Fields constant that matches name, or null if its not found.
8378
       */
8379
      public static _Fields findByName(String name) {
8380
        return byName.get(name);
8381
      }
8382
 
8383
      private final short _thriftId;
8384
      private final String _fieldName;
8385
 
8386
      _Fields(short thriftId, String fieldName) {
8387
        _thriftId = thriftId;
8388
        _fieldName = fieldName;
8389
      }
8390
 
8391
      public short getThriftFieldId() {
8392
        return _thriftId;
8393
      }
8394
 
8395
      public String getFieldName() {
8396
        return _fieldName;
8397
      }
8398
    }
8399
 
8400
    // isset id assignments
8401
 
8402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8403
    static {
8404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8405
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8406
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
8409
    }
8410
 
8411
    public addInventory_result() {
8412
    }
8413
 
8414
    public addInventory_result(
8415
      InventoryServiceException cex)
8416
    {
8417
      this();
8418
      this.cex = cex;
8419
    }
8420
 
8421
    /**
8422
     * Performs a deep copy on <i>other</i>.
8423
     */
8424
    public addInventory_result(addInventory_result other) {
8425
      if (other.isSetCex()) {
8426
        this.cex = new InventoryServiceException(other.cex);
8427
      }
8428
    }
8429
 
8430
    public addInventory_result deepCopy() {
8431
      return new addInventory_result(this);
8432
    }
8433
 
8434
    @Override
8435
    public void clear() {
8436
      this.cex = null;
8437
    }
8438
 
8439
    public InventoryServiceException getCex() {
8440
      return this.cex;
8441
    }
8442
 
8443
    public void setCex(InventoryServiceException cex) {
8444
      this.cex = cex;
8445
    }
8446
 
8447
    public void unsetCex() {
8448
      this.cex = null;
8449
    }
8450
 
8451
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8452
    public boolean isSetCex() {
8453
      return this.cex != null;
8454
    }
8455
 
8456
    public void setCexIsSet(boolean value) {
8457
      if (!value) {
8458
        this.cex = null;
8459
      }
8460
    }
8461
 
8462
    public void setFieldValue(_Fields field, Object value) {
8463
      switch (field) {
8464
      case CEX:
8465
        if (value == null) {
8466
          unsetCex();
8467
        } else {
8468
          setCex((InventoryServiceException)value);
8469
        }
8470
        break;
8471
 
8472
      }
8473
    }
8474
 
8475
    public Object getFieldValue(_Fields field) {
8476
      switch (field) {
8477
      case CEX:
8478
        return getCex();
8479
 
8480
      }
8481
      throw new IllegalStateException();
8482
    }
8483
 
8484
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8485
    public boolean isSet(_Fields field) {
8486
      if (field == null) {
8487
        throw new IllegalArgumentException();
8488
      }
8489
 
8490
      switch (field) {
8491
      case CEX:
8492
        return isSetCex();
8493
      }
8494
      throw new IllegalStateException();
8495
    }
8496
 
8497
    @Override
8498
    public boolean equals(Object that) {
8499
      if (that == null)
8500
        return false;
8501
      if (that instanceof addInventory_result)
8502
        return this.equals((addInventory_result)that);
8503
      return false;
8504
    }
8505
 
8506
    public boolean equals(addInventory_result that) {
8507
      if (that == null)
8508
        return false;
8509
 
8510
      boolean this_present_cex = true && this.isSetCex();
8511
      boolean that_present_cex = true && that.isSetCex();
8512
      if (this_present_cex || that_present_cex) {
8513
        if (!(this_present_cex && that_present_cex))
8514
          return false;
8515
        if (!this.cex.equals(that.cex))
8516
          return false;
8517
      }
8518
 
8519
      return true;
8520
    }
8521
 
8522
    @Override
8523
    public int hashCode() {
8524
      return 0;
8525
    }
8526
 
8527
    public int compareTo(addInventory_result other) {
8528
      if (!getClass().equals(other.getClass())) {
8529
        return getClass().getName().compareTo(other.getClass().getName());
8530
      }
8531
 
8532
      int lastComparison = 0;
8533
      addInventory_result typedOther = (addInventory_result)other;
8534
 
8535
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8536
      if (lastComparison != 0) {
8537
        return lastComparison;
8538
      }
8539
      if (isSetCex()) {
8540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8541
        if (lastComparison != 0) {
8542
          return lastComparison;
8543
        }
8544
      }
8545
      return 0;
8546
    }
8547
 
8548
    public _Fields fieldForId(int fieldId) {
8549
      return _Fields.findByThriftId(fieldId);
8550
    }
8551
 
8552
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8553
      org.apache.thrift.protocol.TField field;
8554
      iprot.readStructBegin();
8555
      while (true)
8556
      {
8557
        field = iprot.readFieldBegin();
8558
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8559
          break;
8560
        }
8561
        switch (field.id) {
8562
          case 1: // CEX
8563
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8564
              this.cex = new InventoryServiceException();
8565
              this.cex.read(iprot);
8566
            } else { 
8567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8568
            }
8569
            break;
8570
          default:
8571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8572
        }
8573
        iprot.readFieldEnd();
8574
      }
8575
      iprot.readStructEnd();
8576
      validate();
8577
    }
8578
 
8579
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8580
      oprot.writeStructBegin(STRUCT_DESC);
8581
 
8582
      if (this.isSetCex()) {
8583
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8584
        this.cex.write(oprot);
8585
        oprot.writeFieldEnd();
8586
      }
8587
      oprot.writeFieldStop();
8588
      oprot.writeStructEnd();
8589
    }
8590
 
8591
    @Override
8592
    public String toString() {
8593
      StringBuilder sb = new StringBuilder("addInventory_result(");
8594
      boolean first = true;
8595
 
8596
      sb.append("cex:");
8597
      if (this.cex == null) {
8598
        sb.append("null");
8599
      } else {
8600
        sb.append(this.cex);
8601
      }
8602
      first = false;
8603
      sb.append(")");
8604
      return sb.toString();
8605
    }
8606
 
8607
    public void validate() throws org.apache.thrift.TException {
8608
      // check for required fields
8609
    }
8610
 
8611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8612
      try {
8613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8614
      } catch (org.apache.thrift.TException te) {
8615
        throw new java.io.IOException(te);
8616
      }
8617
    }
8618
 
8619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8620
      try {
8621
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8622
      } catch (org.apache.thrift.TException te) {
8623
        throw new java.io.IOException(te);
8624
      }
8625
    }
8626
 
8627
  }
8628
 
8629
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
8631
 
8632
    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);
8633
 
8634
    private long warehouse_id; // required
8635
 
8636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8638
      WAREHOUSE_ID((short)1, "warehouse_id");
8639
 
8640
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8641
 
8642
      static {
8643
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8644
          byName.put(field.getFieldName(), field);
8645
        }
8646
      }
8647
 
8648
      /**
8649
       * Find the _Fields constant that matches fieldId, or null if its not found.
8650
       */
8651
      public static _Fields findByThriftId(int fieldId) {
8652
        switch(fieldId) {
8653
          case 1: // WAREHOUSE_ID
8654
            return WAREHOUSE_ID;
8655
          default:
8656
            return null;
8657
        }
8658
      }
8659
 
8660
      /**
8661
       * Find the _Fields constant that matches fieldId, throwing an exception
8662
       * if it is not found.
8663
       */
8664
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8665
        _Fields fields = findByThriftId(fieldId);
8666
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8667
        return fields;
8668
      }
8669
 
8670
      /**
8671
       * Find the _Fields constant that matches name, or null if its not found.
8672
       */
8673
      public static _Fields findByName(String name) {
8674
        return byName.get(name);
8675
      }
8676
 
8677
      private final short _thriftId;
8678
      private final String _fieldName;
8679
 
8680
      _Fields(short thriftId, String fieldName) {
8681
        _thriftId = thriftId;
8682
        _fieldName = fieldName;
8683
      }
8684
 
8685
      public short getThriftFieldId() {
8686
        return _thriftId;
8687
      }
8688
 
8689
      public String getFieldName() {
8690
        return _fieldName;
8691
      }
8692
    }
8693
 
8694
    // isset id assignments
8695
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8696
    private BitSet __isset_bit_vector = new BitSet(1);
8697
 
8698
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8699
    static {
8700
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8701
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8702
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
8705
    }
8706
 
8707
    public retireWarehouse_args() {
8708
    }
8709
 
8710
    public retireWarehouse_args(
8711
      long warehouse_id)
8712
    {
8713
      this();
8714
      this.warehouse_id = warehouse_id;
8715
      setWarehouse_idIsSet(true);
8716
    }
8717
 
8718
    /**
8719
     * Performs a deep copy on <i>other</i>.
8720
     */
8721
    public retireWarehouse_args(retireWarehouse_args other) {
8722
      __isset_bit_vector.clear();
8723
      __isset_bit_vector.or(other.__isset_bit_vector);
8724
      this.warehouse_id = other.warehouse_id;
8725
    }
8726
 
8727
    public retireWarehouse_args deepCopy() {
8728
      return new retireWarehouse_args(this);
8729
    }
8730
 
8731
    @Override
8732
    public void clear() {
8733
      setWarehouse_idIsSet(false);
8734
      this.warehouse_id = 0;
8735
    }
8736
 
8737
    public long getWarehouse_id() {
8738
      return this.warehouse_id;
8739
    }
8740
 
8741
    public void setWarehouse_id(long warehouse_id) {
8742
      this.warehouse_id = warehouse_id;
8743
      setWarehouse_idIsSet(true);
8744
    }
8745
 
8746
    public void unsetWarehouse_id() {
8747
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8748
    }
8749
 
8750
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8751
    public boolean isSetWarehouse_id() {
8752
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8753
    }
8754
 
8755
    public void setWarehouse_idIsSet(boolean value) {
8756
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8757
    }
8758
 
8759
    public void setFieldValue(_Fields field, Object value) {
8760
      switch (field) {
8761
      case WAREHOUSE_ID:
8762
        if (value == null) {
8763
          unsetWarehouse_id();
8764
        } else {
8765
          setWarehouse_id((Long)value);
8766
        }
8767
        break;
8768
 
8769
      }
8770
    }
8771
 
8772
    public Object getFieldValue(_Fields field) {
8773
      switch (field) {
8774
      case WAREHOUSE_ID:
8775
        return Long.valueOf(getWarehouse_id());
8776
 
8777
      }
8778
      throw new IllegalStateException();
8779
    }
8780
 
8781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8782
    public boolean isSet(_Fields field) {
8783
      if (field == null) {
8784
        throw new IllegalArgumentException();
8785
      }
8786
 
8787
      switch (field) {
8788
      case WAREHOUSE_ID:
8789
        return isSetWarehouse_id();
8790
      }
8791
      throw new IllegalStateException();
8792
    }
8793
 
8794
    @Override
8795
    public boolean equals(Object that) {
8796
      if (that == null)
8797
        return false;
8798
      if (that instanceof retireWarehouse_args)
8799
        return this.equals((retireWarehouse_args)that);
8800
      return false;
8801
    }
8802
 
8803
    public boolean equals(retireWarehouse_args that) {
8804
      if (that == null)
8805
        return false;
8806
 
8807
      boolean this_present_warehouse_id = true;
8808
      boolean that_present_warehouse_id = true;
8809
      if (this_present_warehouse_id || that_present_warehouse_id) {
8810
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8811
          return false;
8812
        if (this.warehouse_id != that.warehouse_id)
8813
          return false;
8814
      }
8815
 
8816
      return true;
8817
    }
8818
 
8819
    @Override
8820
    public int hashCode() {
8821
      return 0;
8822
    }
8823
 
8824
    public int compareTo(retireWarehouse_args other) {
8825
      if (!getClass().equals(other.getClass())) {
8826
        return getClass().getName().compareTo(other.getClass().getName());
8827
      }
8828
 
8829
      int lastComparison = 0;
8830
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
8831
 
8832
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8833
      if (lastComparison != 0) {
8834
        return lastComparison;
8835
      }
8836
      if (isSetWarehouse_id()) {
8837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8838
        if (lastComparison != 0) {
8839
          return lastComparison;
8840
        }
8841
      }
8842
      return 0;
8843
    }
8844
 
8845
    public _Fields fieldForId(int fieldId) {
8846
      return _Fields.findByThriftId(fieldId);
8847
    }
8848
 
8849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8850
      org.apache.thrift.protocol.TField field;
8851
      iprot.readStructBegin();
8852
      while (true)
8853
      {
8854
        field = iprot.readFieldBegin();
8855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8856
          break;
8857
        }
8858
        switch (field.id) {
8859
          case 1: // WAREHOUSE_ID
8860
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8861
              this.warehouse_id = iprot.readI64();
8862
              setWarehouse_idIsSet(true);
8863
            } else { 
8864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8865
            }
8866
            break;
8867
          default:
8868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8869
        }
8870
        iprot.readFieldEnd();
8871
      }
8872
      iprot.readStructEnd();
8873
      validate();
8874
    }
8875
 
8876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8877
      validate();
8878
 
8879
      oprot.writeStructBegin(STRUCT_DESC);
8880
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8881
      oprot.writeI64(this.warehouse_id);
8882
      oprot.writeFieldEnd();
8883
      oprot.writeFieldStop();
8884
      oprot.writeStructEnd();
8885
    }
8886
 
8887
    @Override
8888
    public String toString() {
8889
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
8890
      boolean first = true;
8891
 
8892
      sb.append("warehouse_id:");
8893
      sb.append(this.warehouse_id);
8894
      first = false;
8895
      sb.append(")");
8896
      return sb.toString();
8897
    }
8898
 
8899
    public void validate() throws org.apache.thrift.TException {
8900
      // check for required fields
8901
    }
8902
 
8903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8904
      try {
8905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8906
      } catch (org.apache.thrift.TException te) {
8907
        throw new java.io.IOException(te);
8908
      }
8909
    }
8910
 
8911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8912
      try {
8913
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8914
        __isset_bit_vector = new BitSet(1);
8915
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8916
      } catch (org.apache.thrift.TException te) {
8917
        throw new java.io.IOException(te);
8918
      }
8919
    }
8920
 
8921
  }
8922
 
8923
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
8924
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
8925
 
8926
    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);
8927
 
8928
    private InventoryServiceException cex; // required
8929
 
8930
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8931
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8932
      CEX((short)1, "cex");
8933
 
8934
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8935
 
8936
      static {
8937
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8938
          byName.put(field.getFieldName(), field);
8939
        }
8940
      }
8941
 
8942
      /**
8943
       * Find the _Fields constant that matches fieldId, or null if its not found.
8944
       */
8945
      public static _Fields findByThriftId(int fieldId) {
8946
        switch(fieldId) {
8947
          case 1: // CEX
8948
            return CEX;
8949
          default:
8950
            return null;
8951
        }
8952
      }
8953
 
8954
      /**
8955
       * Find the _Fields constant that matches fieldId, throwing an exception
8956
       * if it is not found.
8957
       */
8958
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8959
        _Fields fields = findByThriftId(fieldId);
8960
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8961
        return fields;
8962
      }
8963
 
8964
      /**
8965
       * Find the _Fields constant that matches name, or null if its not found.
8966
       */
8967
      public static _Fields findByName(String name) {
8968
        return byName.get(name);
8969
      }
8970
 
8971
      private final short _thriftId;
8972
      private final String _fieldName;
8973
 
8974
      _Fields(short thriftId, String fieldName) {
8975
        _thriftId = thriftId;
8976
        _fieldName = fieldName;
8977
      }
8978
 
8979
      public short getThriftFieldId() {
8980
        return _thriftId;
8981
      }
8982
 
8983
      public String getFieldName() {
8984
        return _fieldName;
8985
      }
8986
    }
8987
 
8988
    // isset id assignments
8989
 
8990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8991
    static {
8992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8993
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
8997
    }
8998
 
8999
    public retireWarehouse_result() {
9000
    }
9001
 
9002
    public retireWarehouse_result(
9003
      InventoryServiceException cex)
9004
    {
9005
      this();
9006
      this.cex = cex;
9007
    }
9008
 
9009
    /**
9010
     * Performs a deep copy on <i>other</i>.
9011
     */
9012
    public retireWarehouse_result(retireWarehouse_result other) {
9013
      if (other.isSetCex()) {
9014
        this.cex = new InventoryServiceException(other.cex);
9015
      }
9016
    }
9017
 
9018
    public retireWarehouse_result deepCopy() {
9019
      return new retireWarehouse_result(this);
9020
    }
9021
 
9022
    @Override
9023
    public void clear() {
9024
      this.cex = null;
9025
    }
9026
 
9027
    public InventoryServiceException getCex() {
9028
      return this.cex;
9029
    }
9030
 
9031
    public void setCex(InventoryServiceException cex) {
9032
      this.cex = cex;
9033
    }
9034
 
9035
    public void unsetCex() {
9036
      this.cex = null;
9037
    }
9038
 
9039
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9040
    public boolean isSetCex() {
9041
      return this.cex != null;
9042
    }
9043
 
9044
    public void setCexIsSet(boolean value) {
9045
      if (!value) {
9046
        this.cex = null;
9047
      }
9048
    }
9049
 
9050
    public void setFieldValue(_Fields field, Object value) {
9051
      switch (field) {
9052
      case CEX:
9053
        if (value == null) {
9054
          unsetCex();
9055
        } else {
9056
          setCex((InventoryServiceException)value);
9057
        }
9058
        break;
9059
 
9060
      }
9061
    }
9062
 
9063
    public Object getFieldValue(_Fields field) {
9064
      switch (field) {
9065
      case CEX:
9066
        return getCex();
9067
 
9068
      }
9069
      throw new IllegalStateException();
9070
    }
9071
 
9072
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9073
    public boolean isSet(_Fields field) {
9074
      if (field == null) {
9075
        throw new IllegalArgumentException();
9076
      }
9077
 
9078
      switch (field) {
9079
      case CEX:
9080
        return isSetCex();
9081
      }
9082
      throw new IllegalStateException();
9083
    }
9084
 
9085
    @Override
9086
    public boolean equals(Object that) {
9087
      if (that == null)
9088
        return false;
9089
      if (that instanceof retireWarehouse_result)
9090
        return this.equals((retireWarehouse_result)that);
9091
      return false;
9092
    }
9093
 
9094
    public boolean equals(retireWarehouse_result that) {
9095
      if (that == null)
9096
        return false;
9097
 
9098
      boolean this_present_cex = true && this.isSetCex();
9099
      boolean that_present_cex = true && that.isSetCex();
9100
      if (this_present_cex || that_present_cex) {
9101
        if (!(this_present_cex && that_present_cex))
9102
          return false;
9103
        if (!this.cex.equals(that.cex))
9104
          return false;
9105
      }
9106
 
9107
      return true;
9108
    }
9109
 
9110
    @Override
9111
    public int hashCode() {
9112
      return 0;
9113
    }
9114
 
9115
    public int compareTo(retireWarehouse_result other) {
9116
      if (!getClass().equals(other.getClass())) {
9117
        return getClass().getName().compareTo(other.getClass().getName());
9118
      }
9119
 
9120
      int lastComparison = 0;
9121
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
9122
 
9123
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9124
      if (lastComparison != 0) {
9125
        return lastComparison;
9126
      }
9127
      if (isSetCex()) {
9128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9129
        if (lastComparison != 0) {
9130
          return lastComparison;
9131
        }
9132
      }
9133
      return 0;
9134
    }
9135
 
9136
    public _Fields fieldForId(int fieldId) {
9137
      return _Fields.findByThriftId(fieldId);
9138
    }
9139
 
9140
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9141
      org.apache.thrift.protocol.TField field;
9142
      iprot.readStructBegin();
9143
      while (true)
9144
      {
9145
        field = iprot.readFieldBegin();
9146
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9147
          break;
9148
        }
9149
        switch (field.id) {
9150
          case 1: // CEX
9151
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9152
              this.cex = new InventoryServiceException();
9153
              this.cex.read(iprot);
9154
            } else { 
9155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9156
            }
9157
            break;
9158
          default:
9159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9160
        }
9161
        iprot.readFieldEnd();
9162
      }
9163
      iprot.readStructEnd();
9164
      validate();
9165
    }
9166
 
9167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9168
      oprot.writeStructBegin(STRUCT_DESC);
9169
 
9170
      if (this.isSetCex()) {
9171
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9172
        this.cex.write(oprot);
9173
        oprot.writeFieldEnd();
9174
      }
9175
      oprot.writeFieldStop();
9176
      oprot.writeStructEnd();
9177
    }
9178
 
9179
    @Override
9180
    public String toString() {
9181
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
9182
      boolean first = true;
9183
 
9184
      sb.append("cex:");
9185
      if (this.cex == null) {
9186
        sb.append("null");
9187
      } else {
9188
        sb.append(this.cex);
9189
      }
9190
      first = false;
9191
      sb.append(")");
9192
      return sb.toString();
9193
    }
9194
 
9195
    public void validate() throws org.apache.thrift.TException {
9196
      // check for required fields
9197
    }
9198
 
9199
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9200
      try {
9201
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9202
      } catch (org.apache.thrift.TException te) {
9203
        throw new java.io.IOException(te);
9204
      }
9205
    }
9206
 
9207
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9208
      try {
9209
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9210
      } catch (org.apache.thrift.TException te) {
9211
        throw new java.io.IOException(te);
9212
      }
9213
    }
9214
 
9215
  }
9216
 
9217
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
9218
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
9219
 
9220
    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);
9221
 
9222
    private long item_id; // required
9223
 
9224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9226
      ITEM_ID((short)1, "item_id");
9227
 
9228
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9229
 
9230
      static {
9231
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9232
          byName.put(field.getFieldName(), field);
9233
        }
9234
      }
9235
 
9236
      /**
9237
       * Find the _Fields constant that matches fieldId, or null if its not found.
9238
       */
9239
      public static _Fields findByThriftId(int fieldId) {
9240
        switch(fieldId) {
9241
          case 1: // ITEM_ID
9242
            return ITEM_ID;
9243
          default:
9244
            return null;
9245
        }
9246
      }
9247
 
9248
      /**
9249
       * Find the _Fields constant that matches fieldId, throwing an exception
9250
       * if it is not found.
9251
       */
9252
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9253
        _Fields fields = findByThriftId(fieldId);
9254
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9255
        return fields;
9256
      }
9257
 
9258
      /**
9259
       * Find the _Fields constant that matches name, or null if its not found.
9260
       */
9261
      public static _Fields findByName(String name) {
9262
        return byName.get(name);
9263
      }
9264
 
9265
      private final short _thriftId;
9266
      private final String _fieldName;
9267
 
9268
      _Fields(short thriftId, String fieldName) {
9269
        _thriftId = thriftId;
9270
        _fieldName = fieldName;
9271
      }
9272
 
9273
      public short getThriftFieldId() {
9274
        return _thriftId;
9275
      }
9276
 
9277
      public String getFieldName() {
9278
        return _fieldName;
9279
      }
9280
    }
9281
 
9282
    // isset id assignments
9283
    private static final int __ITEM_ID_ISSET_ID = 0;
9284
    private BitSet __isset_bit_vector = new BitSet(1);
9285
 
9286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9287
    static {
9288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9289
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
9293
    }
9294
 
9295
    public getItemInventoryByItemId_args() {
9296
    }
9297
 
9298
    public getItemInventoryByItemId_args(
9299
      long item_id)
9300
    {
9301
      this();
9302
      this.item_id = item_id;
9303
      setItem_idIsSet(true);
9304
    }
9305
 
9306
    /**
9307
     * Performs a deep copy on <i>other</i>.
9308
     */
9309
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
9310
      __isset_bit_vector.clear();
9311
      __isset_bit_vector.or(other.__isset_bit_vector);
9312
      this.item_id = other.item_id;
9313
    }
9314
 
9315
    public getItemInventoryByItemId_args deepCopy() {
9316
      return new getItemInventoryByItemId_args(this);
9317
    }
9318
 
9319
    @Override
9320
    public void clear() {
9321
      setItem_idIsSet(false);
9322
      this.item_id = 0;
9323
    }
9324
 
9325
    public long getItem_id() {
9326
      return this.item_id;
9327
    }
9328
 
9329
    public void setItem_id(long item_id) {
9330
      this.item_id = item_id;
9331
      setItem_idIsSet(true);
9332
    }
9333
 
9334
    public void unsetItem_id() {
9335
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9336
    }
9337
 
9338
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9339
    public boolean isSetItem_id() {
9340
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9341
    }
9342
 
9343
    public void setItem_idIsSet(boolean value) {
9344
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9345
    }
9346
 
9347
    public void setFieldValue(_Fields field, Object value) {
9348
      switch (field) {
9349
      case ITEM_ID:
9350
        if (value == null) {
9351
          unsetItem_id();
9352
        } else {
9353
          setItem_id((Long)value);
9354
        }
9355
        break;
9356
 
9357
      }
9358
    }
9359
 
9360
    public Object getFieldValue(_Fields field) {
9361
      switch (field) {
9362
      case ITEM_ID:
9363
        return Long.valueOf(getItem_id());
9364
 
9365
      }
9366
      throw new IllegalStateException();
9367
    }
9368
 
9369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9370
    public boolean isSet(_Fields field) {
9371
      if (field == null) {
9372
        throw new IllegalArgumentException();
9373
      }
9374
 
9375
      switch (field) {
9376
      case ITEM_ID:
9377
        return isSetItem_id();
9378
      }
9379
      throw new IllegalStateException();
9380
    }
9381
 
9382
    @Override
9383
    public boolean equals(Object that) {
9384
      if (that == null)
9385
        return false;
9386
      if (that instanceof getItemInventoryByItemId_args)
9387
        return this.equals((getItemInventoryByItemId_args)that);
9388
      return false;
9389
    }
9390
 
9391
    public boolean equals(getItemInventoryByItemId_args that) {
9392
      if (that == null)
9393
        return false;
9394
 
9395
      boolean this_present_item_id = true;
9396
      boolean that_present_item_id = true;
9397
      if (this_present_item_id || that_present_item_id) {
9398
        if (!(this_present_item_id && that_present_item_id))
9399
          return false;
9400
        if (this.item_id != that.item_id)
9401
          return false;
9402
      }
9403
 
9404
      return true;
9405
    }
9406
 
9407
    @Override
9408
    public int hashCode() {
9409
      return 0;
9410
    }
9411
 
9412
    public int compareTo(getItemInventoryByItemId_args other) {
9413
      if (!getClass().equals(other.getClass())) {
9414
        return getClass().getName().compareTo(other.getClass().getName());
9415
      }
9416
 
9417
      int lastComparison = 0;
9418
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
9419
 
9420
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9421
      if (lastComparison != 0) {
9422
        return lastComparison;
9423
      }
9424
      if (isSetItem_id()) {
9425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9426
        if (lastComparison != 0) {
9427
          return lastComparison;
9428
        }
9429
      }
9430
      return 0;
9431
    }
9432
 
9433
    public _Fields fieldForId(int fieldId) {
9434
      return _Fields.findByThriftId(fieldId);
9435
    }
9436
 
9437
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9438
      org.apache.thrift.protocol.TField field;
9439
      iprot.readStructBegin();
9440
      while (true)
9441
      {
9442
        field = iprot.readFieldBegin();
9443
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9444
          break;
9445
        }
9446
        switch (field.id) {
9447
          case 1: // ITEM_ID
9448
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9449
              this.item_id = iprot.readI64();
9450
              setItem_idIsSet(true);
9451
            } else { 
9452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9453
            }
9454
            break;
9455
          default:
9456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9457
        }
9458
        iprot.readFieldEnd();
9459
      }
9460
      iprot.readStructEnd();
9461
      validate();
9462
    }
9463
 
9464
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9465
      validate();
9466
 
9467
      oprot.writeStructBegin(STRUCT_DESC);
9468
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9469
      oprot.writeI64(this.item_id);
9470
      oprot.writeFieldEnd();
9471
      oprot.writeFieldStop();
9472
      oprot.writeStructEnd();
9473
    }
9474
 
9475
    @Override
9476
    public String toString() {
9477
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
9478
      boolean first = true;
9479
 
9480
      sb.append("item_id:");
9481
      sb.append(this.item_id);
9482
      first = false;
9483
      sb.append(")");
9484
      return sb.toString();
9485
    }
9486
 
9487
    public void validate() throws org.apache.thrift.TException {
9488
      // check for required fields
9489
    }
9490
 
9491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9492
      try {
9493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9494
      } catch (org.apache.thrift.TException te) {
9495
        throw new java.io.IOException(te);
9496
      }
9497
    }
9498
 
9499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9500
      try {
9501
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9502
        __isset_bit_vector = new BitSet(1);
9503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9504
      } catch (org.apache.thrift.TException te) {
9505
        throw new java.io.IOException(te);
9506
      }
9507
    }
9508
 
9509
  }
9510
 
9511
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
9512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
9513
 
9514
    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);
9515
    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);
9516
 
9517
    private ItemInventory success; // required
9518
    private InventoryServiceException cex; // required
9519
 
9520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9522
      SUCCESS((short)0, "success"),
9523
      CEX((short)1, "cex");
9524
 
9525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9526
 
9527
      static {
9528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9529
          byName.put(field.getFieldName(), field);
9530
        }
9531
      }
9532
 
9533
      /**
9534
       * Find the _Fields constant that matches fieldId, or null if its not found.
9535
       */
9536
      public static _Fields findByThriftId(int fieldId) {
9537
        switch(fieldId) {
9538
          case 0: // SUCCESS
9539
            return SUCCESS;
9540
          case 1: // CEX
9541
            return CEX;
9542
          default:
9543
            return null;
9544
        }
9545
      }
9546
 
9547
      /**
9548
       * Find the _Fields constant that matches fieldId, throwing an exception
9549
       * if it is not found.
9550
       */
9551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9552
        _Fields fields = findByThriftId(fieldId);
9553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9554
        return fields;
9555
      }
9556
 
9557
      /**
9558
       * Find the _Fields constant that matches name, or null if its not found.
9559
       */
9560
      public static _Fields findByName(String name) {
9561
        return byName.get(name);
9562
      }
9563
 
9564
      private final short _thriftId;
9565
      private final String _fieldName;
9566
 
9567
      _Fields(short thriftId, String fieldName) {
9568
        _thriftId = thriftId;
9569
        _fieldName = fieldName;
9570
      }
9571
 
9572
      public short getThriftFieldId() {
9573
        return _thriftId;
9574
      }
9575
 
9576
      public String getFieldName() {
9577
        return _fieldName;
9578
      }
9579
    }
9580
 
9581
    // isset id assignments
9582
 
9583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9584
    static {
9585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9586
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9587
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
9588
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
9592
    }
9593
 
9594
    public getItemInventoryByItemId_result() {
9595
    }
9596
 
9597
    public getItemInventoryByItemId_result(
9598
      ItemInventory success,
9599
      InventoryServiceException cex)
9600
    {
9601
      this();
9602
      this.success = success;
9603
      this.cex = cex;
9604
    }
9605
 
9606
    /**
9607
     * Performs a deep copy on <i>other</i>.
9608
     */
9609
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
9610
      if (other.isSetSuccess()) {
9611
        this.success = new ItemInventory(other.success);
9612
      }
9613
      if (other.isSetCex()) {
9614
        this.cex = new InventoryServiceException(other.cex);
9615
      }
9616
    }
9617
 
9618
    public getItemInventoryByItemId_result deepCopy() {
9619
      return new getItemInventoryByItemId_result(this);
9620
    }
9621
 
9622
    @Override
9623
    public void clear() {
9624
      this.success = null;
9625
      this.cex = null;
9626
    }
9627
 
9628
    public ItemInventory getSuccess() {
9629
      return this.success;
9630
    }
9631
 
9632
    public void setSuccess(ItemInventory success) {
9633
      this.success = success;
9634
    }
9635
 
9636
    public void unsetSuccess() {
9637
      this.success = null;
9638
    }
9639
 
9640
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9641
    public boolean isSetSuccess() {
9642
      return this.success != null;
9643
    }
9644
 
9645
    public void setSuccessIsSet(boolean value) {
9646
      if (!value) {
9647
        this.success = null;
9648
      }
9649
    }
9650
 
9651
    public InventoryServiceException getCex() {
9652
      return this.cex;
9653
    }
9654
 
9655
    public void setCex(InventoryServiceException cex) {
9656
      this.cex = cex;
9657
    }
9658
 
9659
    public void unsetCex() {
9660
      this.cex = null;
9661
    }
9662
 
9663
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9664
    public boolean isSetCex() {
9665
      return this.cex != null;
9666
    }
9667
 
9668
    public void setCexIsSet(boolean value) {
9669
      if (!value) {
9670
        this.cex = null;
9671
      }
9672
    }
9673
 
9674
    public void setFieldValue(_Fields field, Object value) {
9675
      switch (field) {
9676
      case SUCCESS:
9677
        if (value == null) {
9678
          unsetSuccess();
9679
        } else {
9680
          setSuccess((ItemInventory)value);
9681
        }
9682
        break;
9683
 
9684
      case CEX:
9685
        if (value == null) {
9686
          unsetCex();
9687
        } else {
9688
          setCex((InventoryServiceException)value);
9689
        }
9690
        break;
9691
 
9692
      }
9693
    }
9694
 
9695
    public Object getFieldValue(_Fields field) {
9696
      switch (field) {
9697
      case SUCCESS:
9698
        return getSuccess();
9699
 
9700
      case CEX:
9701
        return getCex();
9702
 
9703
      }
9704
      throw new IllegalStateException();
9705
    }
9706
 
9707
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9708
    public boolean isSet(_Fields field) {
9709
      if (field == null) {
9710
        throw new IllegalArgumentException();
9711
      }
9712
 
9713
      switch (field) {
9714
      case SUCCESS:
9715
        return isSetSuccess();
9716
      case CEX:
9717
        return isSetCex();
9718
      }
9719
      throw new IllegalStateException();
9720
    }
9721
 
9722
    @Override
9723
    public boolean equals(Object that) {
9724
      if (that == null)
9725
        return false;
9726
      if (that instanceof getItemInventoryByItemId_result)
9727
        return this.equals((getItemInventoryByItemId_result)that);
9728
      return false;
9729
    }
9730
 
9731
    public boolean equals(getItemInventoryByItemId_result that) {
9732
      if (that == null)
9733
        return false;
9734
 
9735
      boolean this_present_success = true && this.isSetSuccess();
9736
      boolean that_present_success = true && that.isSetSuccess();
9737
      if (this_present_success || that_present_success) {
9738
        if (!(this_present_success && that_present_success))
9739
          return false;
9740
        if (!this.success.equals(that.success))
9741
          return false;
9742
      }
9743
 
9744
      boolean this_present_cex = true && this.isSetCex();
9745
      boolean that_present_cex = true && that.isSetCex();
9746
      if (this_present_cex || that_present_cex) {
9747
        if (!(this_present_cex && that_present_cex))
9748
          return false;
9749
        if (!this.cex.equals(that.cex))
9750
          return false;
9751
      }
9752
 
9753
      return true;
9754
    }
9755
 
9756
    @Override
9757
    public int hashCode() {
9758
      return 0;
9759
    }
9760
 
9761
    public int compareTo(getItemInventoryByItemId_result other) {
9762
      if (!getClass().equals(other.getClass())) {
9763
        return getClass().getName().compareTo(other.getClass().getName());
9764
      }
9765
 
9766
      int lastComparison = 0;
9767
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
9768
 
9769
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9770
      if (lastComparison != 0) {
9771
        return lastComparison;
9772
      }
9773
      if (isSetSuccess()) {
9774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9775
        if (lastComparison != 0) {
9776
          return lastComparison;
9777
        }
9778
      }
9779
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9780
      if (lastComparison != 0) {
9781
        return lastComparison;
9782
      }
9783
      if (isSetCex()) {
9784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9785
        if (lastComparison != 0) {
9786
          return lastComparison;
9787
        }
9788
      }
9789
      return 0;
9790
    }
9791
 
9792
    public _Fields fieldForId(int fieldId) {
9793
      return _Fields.findByThriftId(fieldId);
9794
    }
9795
 
9796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9797
      org.apache.thrift.protocol.TField field;
9798
      iprot.readStructBegin();
9799
      while (true)
9800
      {
9801
        field = iprot.readFieldBegin();
9802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9803
          break;
9804
        }
9805
        switch (field.id) {
9806
          case 0: // SUCCESS
9807
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9808
              this.success = new ItemInventory();
9809
              this.success.read(iprot);
9810
            } else { 
9811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9812
            }
9813
            break;
9814
          case 1: // CEX
9815
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9816
              this.cex = new InventoryServiceException();
9817
              this.cex.read(iprot);
9818
            } else { 
9819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9820
            }
9821
            break;
9822
          default:
9823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9824
        }
9825
        iprot.readFieldEnd();
9826
      }
9827
      iprot.readStructEnd();
9828
      validate();
9829
    }
9830
 
9831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9832
      oprot.writeStructBegin(STRUCT_DESC);
9833
 
9834
      if (this.isSetSuccess()) {
9835
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9836
        this.success.write(oprot);
9837
        oprot.writeFieldEnd();
9838
      } else if (this.isSetCex()) {
9839
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9840
        this.cex.write(oprot);
9841
        oprot.writeFieldEnd();
9842
      }
9843
      oprot.writeFieldStop();
9844
      oprot.writeStructEnd();
9845
    }
9846
 
9847
    @Override
9848
    public String toString() {
9849
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
9850
      boolean first = true;
9851
 
9852
      sb.append("success:");
9853
      if (this.success == null) {
9854
        sb.append("null");
9855
      } else {
9856
        sb.append(this.success);
9857
      }
9858
      first = false;
9859
      if (!first) sb.append(", ");
9860
      sb.append("cex:");
9861
      if (this.cex == null) {
9862
        sb.append("null");
9863
      } else {
9864
        sb.append(this.cex);
9865
      }
9866
      first = false;
9867
      sb.append(")");
9868
      return sb.toString();
9869
    }
9870
 
9871
    public void validate() throws org.apache.thrift.TException {
9872
      // check for required fields
9873
    }
9874
 
9875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9876
      try {
9877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9878
      } catch (org.apache.thrift.TException te) {
9879
        throw new java.io.IOException(te);
9880
      }
9881
    }
9882
 
9883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9884
      try {
9885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9886
      } catch (org.apache.thrift.TException te) {
9887
        throw new java.io.IOException(te);
9888
      }
9889
    }
9890
 
9891
  }
9892
 
9893
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
9894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
9895
 
9896
    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);
9897
    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);
9898
 
9899
    private long warehouse_id; // required
9900
    private long item_id; // required
9901
 
9902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9904
      WAREHOUSE_ID((short)1, "warehouse_id"),
9905
      ITEM_ID((short)2, "item_id");
9906
 
9907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9908
 
9909
      static {
9910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9911
          byName.put(field.getFieldName(), field);
9912
        }
9913
      }
9914
 
9915
      /**
9916
       * Find the _Fields constant that matches fieldId, or null if its not found.
9917
       */
9918
      public static _Fields findByThriftId(int fieldId) {
9919
        switch(fieldId) {
9920
          case 1: // WAREHOUSE_ID
9921
            return WAREHOUSE_ID;
9922
          case 2: // ITEM_ID
9923
            return ITEM_ID;
9924
          default:
9925
            return null;
9926
        }
9927
      }
9928
 
9929
      /**
9930
       * Find the _Fields constant that matches fieldId, throwing an exception
9931
       * if it is not found.
9932
       */
9933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9934
        _Fields fields = findByThriftId(fieldId);
9935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9936
        return fields;
9937
      }
9938
 
9939
      /**
9940
       * Find the _Fields constant that matches name, or null if its not found.
9941
       */
9942
      public static _Fields findByName(String name) {
9943
        return byName.get(name);
9944
      }
9945
 
9946
      private final short _thriftId;
9947
      private final String _fieldName;
9948
 
9949
      _Fields(short thriftId, String fieldName) {
9950
        _thriftId = thriftId;
9951
        _fieldName = fieldName;
9952
      }
9953
 
9954
      public short getThriftFieldId() {
9955
        return _thriftId;
9956
      }
9957
 
9958
      public String getFieldName() {
9959
        return _fieldName;
9960
      }
9961
    }
9962
 
9963
    // isset id assignments
9964
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
9965
    private static final int __ITEM_ID_ISSET_ID = 1;
9966
    private BitSet __isset_bit_vector = new BitSet(2);
9967
 
9968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9969
    static {
9970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9971
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9973
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
9977
    }
9978
 
9979
    public getItemAvailibilityAtWarehouse_args() {
9980
    }
9981
 
9982
    public getItemAvailibilityAtWarehouse_args(
9983
      long warehouse_id,
9984
      long item_id)
9985
    {
9986
      this();
9987
      this.warehouse_id = warehouse_id;
9988
      setWarehouse_idIsSet(true);
9989
      this.item_id = item_id;
9990
      setItem_idIsSet(true);
9991
    }
9992
 
9993
    /**
9994
     * Performs a deep copy on <i>other</i>.
9995
     */
9996
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
9997
      __isset_bit_vector.clear();
9998
      __isset_bit_vector.or(other.__isset_bit_vector);
9999
      this.warehouse_id = other.warehouse_id;
10000
      this.item_id = other.item_id;
10001
    }
10002
 
10003
    public getItemAvailibilityAtWarehouse_args deepCopy() {
10004
      return new getItemAvailibilityAtWarehouse_args(this);
10005
    }
10006
 
10007
    @Override
10008
    public void clear() {
10009
      setWarehouse_idIsSet(false);
10010
      this.warehouse_id = 0;
10011
      setItem_idIsSet(false);
10012
      this.item_id = 0;
10013
    }
10014
 
10015
    public long getWarehouse_id() {
10016
      return this.warehouse_id;
10017
    }
10018
 
10019
    public void setWarehouse_id(long warehouse_id) {
10020
      this.warehouse_id = warehouse_id;
10021
      setWarehouse_idIsSet(true);
10022
    }
10023
 
10024
    public void unsetWarehouse_id() {
10025
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
10026
    }
10027
 
10028
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
10029
    public boolean isSetWarehouse_id() {
10030
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
10031
    }
10032
 
10033
    public void setWarehouse_idIsSet(boolean value) {
10034
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
10035
    }
10036
 
10037
    public long getItem_id() {
10038
      return this.item_id;
10039
    }
10040
 
10041
    public void setItem_id(long item_id) {
10042
      this.item_id = item_id;
10043
      setItem_idIsSet(true);
10044
    }
10045
 
10046
    public void unsetItem_id() {
10047
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
10048
    }
10049
 
10050
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
10051
    public boolean isSetItem_id() {
10052
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
10053
    }
10054
 
10055
    public void setItem_idIsSet(boolean value) {
10056
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
10057
    }
10058
 
10059
    public void setFieldValue(_Fields field, Object value) {
10060
      switch (field) {
10061
      case WAREHOUSE_ID:
10062
        if (value == null) {
10063
          unsetWarehouse_id();
10064
        } else {
10065
          setWarehouse_id((Long)value);
10066
        }
10067
        break;
10068
 
10069
      case ITEM_ID:
10070
        if (value == null) {
10071
          unsetItem_id();
10072
        } else {
10073
          setItem_id((Long)value);
10074
        }
10075
        break;
10076
 
10077
      }
10078
    }
10079
 
10080
    public Object getFieldValue(_Fields field) {
10081
      switch (field) {
10082
      case WAREHOUSE_ID:
10083
        return Long.valueOf(getWarehouse_id());
10084
 
10085
      case ITEM_ID:
10086
        return Long.valueOf(getItem_id());
10087
 
10088
      }
10089
      throw new IllegalStateException();
10090
    }
10091
 
10092
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10093
    public boolean isSet(_Fields field) {
10094
      if (field == null) {
10095
        throw new IllegalArgumentException();
10096
      }
10097
 
10098
      switch (field) {
10099
      case WAREHOUSE_ID:
10100
        return isSetWarehouse_id();
10101
      case ITEM_ID:
10102
        return isSetItem_id();
10103
      }
10104
      throw new IllegalStateException();
10105
    }
10106
 
10107
    @Override
10108
    public boolean equals(Object that) {
10109
      if (that == null)
10110
        return false;
10111
      if (that instanceof getItemAvailibilityAtWarehouse_args)
10112
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
10113
      return false;
10114
    }
10115
 
10116
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
10117
      if (that == null)
10118
        return false;
10119
 
10120
      boolean this_present_warehouse_id = true;
10121
      boolean that_present_warehouse_id = true;
10122
      if (this_present_warehouse_id || that_present_warehouse_id) {
10123
        if (!(this_present_warehouse_id && that_present_warehouse_id))
10124
          return false;
10125
        if (this.warehouse_id != that.warehouse_id)
10126
          return false;
10127
      }
10128
 
10129
      boolean this_present_item_id = true;
10130
      boolean that_present_item_id = true;
10131
      if (this_present_item_id || that_present_item_id) {
10132
        if (!(this_present_item_id && that_present_item_id))
10133
          return false;
10134
        if (this.item_id != that.item_id)
10135
          return false;
10136
      }
10137
 
10138
      return true;
10139
    }
10140
 
10141
    @Override
10142
    public int hashCode() {
10143
      return 0;
10144
    }
10145
 
10146
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
10147
      if (!getClass().equals(other.getClass())) {
10148
        return getClass().getName().compareTo(other.getClass().getName());
10149
      }
10150
 
10151
      int lastComparison = 0;
10152
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
10153
 
10154
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
10155
      if (lastComparison != 0) {
10156
        return lastComparison;
10157
      }
10158
      if (isSetWarehouse_id()) {
10159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10160
        if (lastComparison != 0) {
10161
          return lastComparison;
10162
        }
10163
      }
10164
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
10165
      if (lastComparison != 0) {
10166
        return lastComparison;
10167
      }
10168
      if (isSetItem_id()) {
10169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
10170
        if (lastComparison != 0) {
10171
          return lastComparison;
10172
        }
10173
      }
10174
      return 0;
10175
    }
10176
 
10177
    public _Fields fieldForId(int fieldId) {
10178
      return _Fields.findByThriftId(fieldId);
10179
    }
10180
 
10181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10182
      org.apache.thrift.protocol.TField field;
10183
      iprot.readStructBegin();
10184
      while (true)
10185
      {
10186
        field = iprot.readFieldBegin();
10187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10188
          break;
10189
        }
10190
        switch (field.id) {
10191
          case 1: // WAREHOUSE_ID
10192
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10193
              this.warehouse_id = iprot.readI64();
10194
              setWarehouse_idIsSet(true);
10195
            } else { 
10196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10197
            }
10198
            break;
10199
          case 2: // ITEM_ID
10200
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10201
              this.item_id = iprot.readI64();
10202
              setItem_idIsSet(true);
10203
            } else { 
10204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10205
            }
10206
            break;
10207
          default:
10208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10209
        }
10210
        iprot.readFieldEnd();
10211
      }
10212
      iprot.readStructEnd();
10213
      validate();
10214
    }
10215
 
10216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10217
      validate();
10218
 
10219
      oprot.writeStructBegin(STRUCT_DESC);
10220
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10221
      oprot.writeI64(this.warehouse_id);
10222
      oprot.writeFieldEnd();
10223
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10224
      oprot.writeI64(this.item_id);
10225
      oprot.writeFieldEnd();
10226
      oprot.writeFieldStop();
10227
      oprot.writeStructEnd();
10228
    }
10229
 
10230
    @Override
10231
    public String toString() {
10232
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
10233
      boolean first = true;
10234
 
10235
      sb.append("warehouse_id:");
10236
      sb.append(this.warehouse_id);
10237
      first = false;
10238
      if (!first) sb.append(", ");
10239
      sb.append("item_id:");
10240
      sb.append(this.item_id);
10241
      first = false;
10242
      sb.append(")");
10243
      return sb.toString();
10244
    }
10245
 
10246
    public void validate() throws org.apache.thrift.TException {
10247
      // check for required fields
10248
    }
10249
 
10250
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10251
      try {
10252
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10253
      } catch (org.apache.thrift.TException te) {
10254
        throw new java.io.IOException(te);
10255
      }
10256
    }
10257
 
10258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10259
      try {
10260
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10261
        __isset_bit_vector = new BitSet(1);
10262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10263
      } catch (org.apache.thrift.TException te) {
10264
        throw new java.io.IOException(te);
10265
      }
10266
    }
10267
 
10268
  }
10269
 
10270
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
10271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
10272
 
10273
    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);
10274
    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);
10275
 
10276
    private long success; // required
10277
    private InventoryServiceException cex; // required
10278
 
10279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10281
      SUCCESS((short)0, "success"),
10282
      CEX((short)1, "cex");
10283
 
10284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10285
 
10286
      static {
10287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10288
          byName.put(field.getFieldName(), field);
10289
        }
10290
      }
10291
 
10292
      /**
10293
       * Find the _Fields constant that matches fieldId, or null if its not found.
10294
       */
10295
      public static _Fields findByThriftId(int fieldId) {
10296
        switch(fieldId) {
10297
          case 0: // SUCCESS
10298
            return SUCCESS;
10299
          case 1: // CEX
10300
            return CEX;
10301
          default:
10302
            return null;
10303
        }
10304
      }
10305
 
10306
      /**
10307
       * Find the _Fields constant that matches fieldId, throwing an exception
10308
       * if it is not found.
10309
       */
10310
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10311
        _Fields fields = findByThriftId(fieldId);
10312
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10313
        return fields;
10314
      }
10315
 
10316
      /**
10317
       * Find the _Fields constant that matches name, or null if its not found.
10318
       */
10319
      public static _Fields findByName(String name) {
10320
        return byName.get(name);
10321
      }
10322
 
10323
      private final short _thriftId;
10324
      private final String _fieldName;
10325
 
10326
      _Fields(short thriftId, String fieldName) {
10327
        _thriftId = thriftId;
10328
        _fieldName = fieldName;
10329
      }
10330
 
10331
      public short getThriftFieldId() {
10332
        return _thriftId;
10333
      }
10334
 
10335
      public String getFieldName() {
10336
        return _fieldName;
10337
      }
10338
    }
10339
 
10340
    // isset id assignments
10341
    private static final int __SUCCESS_ISSET_ID = 0;
10342
    private BitSet __isset_bit_vector = new BitSet(1);
10343
 
10344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10345
    static {
10346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10347
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10349
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
10353
    }
10354
 
10355
    public getItemAvailibilityAtWarehouse_result() {
10356
    }
10357
 
10358
    public getItemAvailibilityAtWarehouse_result(
10359
      long success,
10360
      InventoryServiceException cex)
10361
    {
10362
      this();
10363
      this.success = success;
10364
      setSuccessIsSet(true);
10365
      this.cex = cex;
10366
    }
10367
 
10368
    /**
10369
     * Performs a deep copy on <i>other</i>.
10370
     */
10371
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
10372
      __isset_bit_vector.clear();
10373
      __isset_bit_vector.or(other.__isset_bit_vector);
10374
      this.success = other.success;
10375
      if (other.isSetCex()) {
10376
        this.cex = new InventoryServiceException(other.cex);
10377
      }
10378
    }
10379
 
10380
    public getItemAvailibilityAtWarehouse_result deepCopy() {
10381
      return new getItemAvailibilityAtWarehouse_result(this);
10382
    }
10383
 
10384
    @Override
10385
    public void clear() {
10386
      setSuccessIsSet(false);
10387
      this.success = 0;
10388
      this.cex = null;
10389
    }
10390
 
10391
    public long getSuccess() {
10392
      return this.success;
10393
    }
10394
 
10395
    public void setSuccess(long success) {
10396
      this.success = success;
10397
      setSuccessIsSet(true);
10398
    }
10399
 
10400
    public void unsetSuccess() {
10401
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10402
    }
10403
 
10404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10405
    public boolean isSetSuccess() {
10406
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10407
    }
10408
 
10409
    public void setSuccessIsSet(boolean value) {
10410
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10411
    }
10412
 
10413
    public InventoryServiceException getCex() {
10414
      return this.cex;
10415
    }
10416
 
10417
    public void setCex(InventoryServiceException cex) {
10418
      this.cex = cex;
10419
    }
10420
 
10421
    public void unsetCex() {
10422
      this.cex = null;
10423
    }
10424
 
10425
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10426
    public boolean isSetCex() {
10427
      return this.cex != null;
10428
    }
10429
 
10430
    public void setCexIsSet(boolean value) {
10431
      if (!value) {
10432
        this.cex = null;
10433
      }
10434
    }
10435
 
10436
    public void setFieldValue(_Fields field, Object value) {
10437
      switch (field) {
10438
      case SUCCESS:
10439
        if (value == null) {
10440
          unsetSuccess();
10441
        } else {
10442
          setSuccess((Long)value);
10443
        }
10444
        break;
10445
 
10446
      case CEX:
10447
        if (value == null) {
10448
          unsetCex();
10449
        } else {
10450
          setCex((InventoryServiceException)value);
10451
        }
10452
        break;
10453
 
10454
      }
10455
    }
10456
 
10457
    public Object getFieldValue(_Fields field) {
10458
      switch (field) {
10459
      case SUCCESS:
10460
        return Long.valueOf(getSuccess());
10461
 
10462
      case CEX:
10463
        return getCex();
10464
 
10465
      }
10466
      throw new IllegalStateException();
10467
    }
10468
 
10469
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10470
    public boolean isSet(_Fields field) {
10471
      if (field == null) {
10472
        throw new IllegalArgumentException();
10473
      }
10474
 
10475
      switch (field) {
10476
      case SUCCESS:
10477
        return isSetSuccess();
10478
      case CEX:
10479
        return isSetCex();
10480
      }
10481
      throw new IllegalStateException();
10482
    }
10483
 
10484
    @Override
10485
    public boolean equals(Object that) {
10486
      if (that == null)
10487
        return false;
10488
      if (that instanceof getItemAvailibilityAtWarehouse_result)
10489
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
10490
      return false;
10491
    }
10492
 
10493
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
10494
      if (that == null)
10495
        return false;
10496
 
10497
      boolean this_present_success = true;
10498
      boolean that_present_success = true;
10499
      if (this_present_success || that_present_success) {
10500
        if (!(this_present_success && that_present_success))
10501
          return false;
10502
        if (this.success != that.success)
10503
          return false;
10504
      }
10505
 
10506
      boolean this_present_cex = true && this.isSetCex();
10507
      boolean that_present_cex = true && that.isSetCex();
10508
      if (this_present_cex || that_present_cex) {
10509
        if (!(this_present_cex && that_present_cex))
10510
          return false;
10511
        if (!this.cex.equals(that.cex))
10512
          return false;
10513
      }
10514
 
10515
      return true;
10516
    }
10517
 
10518
    @Override
10519
    public int hashCode() {
10520
      return 0;
10521
    }
10522
 
10523
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
10524
      if (!getClass().equals(other.getClass())) {
10525
        return getClass().getName().compareTo(other.getClass().getName());
10526
      }
10527
 
10528
      int lastComparison = 0;
10529
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
10530
 
10531
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10532
      if (lastComparison != 0) {
10533
        return lastComparison;
10534
      }
10535
      if (isSetSuccess()) {
10536
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10537
        if (lastComparison != 0) {
10538
          return lastComparison;
10539
        }
10540
      }
10541
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10542
      if (lastComparison != 0) {
10543
        return lastComparison;
10544
      }
10545
      if (isSetCex()) {
10546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10547
        if (lastComparison != 0) {
10548
          return lastComparison;
10549
        }
10550
      }
10551
      return 0;
10552
    }
10553
 
10554
    public _Fields fieldForId(int fieldId) {
10555
      return _Fields.findByThriftId(fieldId);
10556
    }
10557
 
10558
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10559
      org.apache.thrift.protocol.TField field;
10560
      iprot.readStructBegin();
10561
      while (true)
10562
      {
10563
        field = iprot.readFieldBegin();
10564
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10565
          break;
10566
        }
10567
        switch (field.id) {
10568
          case 0: // SUCCESS
10569
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10570
              this.success = iprot.readI64();
10571
              setSuccessIsSet(true);
10572
            } else { 
10573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10574
            }
10575
            break;
10576
          case 1: // CEX
10577
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10578
              this.cex = new InventoryServiceException();
10579
              this.cex.read(iprot);
10580
            } else { 
10581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10582
            }
10583
            break;
10584
          default:
10585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10586
        }
10587
        iprot.readFieldEnd();
10588
      }
10589
      iprot.readStructEnd();
10590
      validate();
10591
    }
10592
 
10593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10594
      oprot.writeStructBegin(STRUCT_DESC);
10595
 
10596
      if (this.isSetSuccess()) {
10597
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10598
        oprot.writeI64(this.success);
10599
        oprot.writeFieldEnd();
10600
      } else if (this.isSetCex()) {
10601
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10602
        this.cex.write(oprot);
10603
        oprot.writeFieldEnd();
10604
      }
10605
      oprot.writeFieldStop();
10606
      oprot.writeStructEnd();
10607
    }
10608
 
10609
    @Override
10610
    public String toString() {
10611
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
10612
      boolean first = true;
10613
 
10614
      sb.append("success:");
10615
      sb.append(this.success);
10616
      first = false;
10617
      if (!first) sb.append(", ");
10618
      sb.append("cex:");
10619
      if (this.cex == null) {
10620
        sb.append("null");
10621
      } else {
10622
        sb.append(this.cex);
10623
      }
10624
      first = false;
10625
      sb.append(")");
10626
      return sb.toString();
10627
    }
10628
 
10629
    public void validate() throws org.apache.thrift.TException {
10630
      // check for required fields
10631
    }
10632
 
10633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10634
      try {
10635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10636
      } catch (org.apache.thrift.TException te) {
10637
        throw new java.io.IOException(te);
10638
      }
10639
    }
10640
 
10641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10642
      try {
10643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10644
      } catch (org.apache.thrift.TException te) {
10645
        throw new java.io.IOException(te);
10646
      }
10647
    }
10648
 
10649
  }
10650
 
10651
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
10652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
10653
 
10654
    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 10655
    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 10656
 
10657
    private long itemId; // required
5978 rajveer 10658
    private long sourceId; // required
5945 mandeep.dh 10659
 
10660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 10662
      ITEM_ID((short)1, "itemId"),
10663
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 10664
 
10665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10666
 
10667
      static {
10668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10669
          byName.put(field.getFieldName(), field);
10670
        }
10671
      }
10672
 
10673
      /**
10674
       * Find the _Fields constant that matches fieldId, or null if its not found.
10675
       */
10676
      public static _Fields findByThriftId(int fieldId) {
10677
        switch(fieldId) {
10678
          case 1: // ITEM_ID
10679
            return ITEM_ID;
5978 rajveer 10680
          case 2: // SOURCE_ID
10681
            return SOURCE_ID;
5945 mandeep.dh 10682
          default:
10683
            return null;
10684
        }
10685
      }
10686
 
10687
      /**
10688
       * Find the _Fields constant that matches fieldId, throwing an exception
10689
       * if it is not found.
10690
       */
10691
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10692
        _Fields fields = findByThriftId(fieldId);
10693
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10694
        return fields;
10695
      }
10696
 
10697
      /**
10698
       * Find the _Fields constant that matches name, or null if its not found.
10699
       */
10700
      public static _Fields findByName(String name) {
10701
        return byName.get(name);
10702
      }
10703
 
10704
      private final short _thriftId;
10705
      private final String _fieldName;
10706
 
10707
      _Fields(short thriftId, String fieldName) {
10708
        _thriftId = thriftId;
10709
        _fieldName = fieldName;
10710
      }
10711
 
10712
      public short getThriftFieldId() {
10713
        return _thriftId;
10714
      }
10715
 
10716
      public String getFieldName() {
10717
        return _fieldName;
10718
      }
10719
    }
10720
 
10721
    // isset id assignments
10722
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 10723
    private static final int __SOURCEID_ISSET_ID = 1;
10724
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 10725
 
10726
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10727
    static {
10728
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10729
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 10731
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 10733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
10735
    }
10736
 
10737
    public getItemAvailabilityAtLocation_args() {
10738
    }
10739
 
10740
    public getItemAvailabilityAtLocation_args(
5978 rajveer 10741
      long itemId,
10742
      long sourceId)
5945 mandeep.dh 10743
    {
10744
      this();
10745
      this.itemId = itemId;
10746
      setItemIdIsSet(true);
5978 rajveer 10747
      this.sourceId = sourceId;
10748
      setSourceIdIsSet(true);
5945 mandeep.dh 10749
    }
10750
 
10751
    /**
10752
     * Performs a deep copy on <i>other</i>.
10753
     */
10754
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
10755
      __isset_bit_vector.clear();
10756
      __isset_bit_vector.or(other.__isset_bit_vector);
10757
      this.itemId = other.itemId;
5978 rajveer 10758
      this.sourceId = other.sourceId;
5945 mandeep.dh 10759
    }
10760
 
10761
    public getItemAvailabilityAtLocation_args deepCopy() {
10762
      return new getItemAvailabilityAtLocation_args(this);
10763
    }
10764
 
10765
    @Override
10766
    public void clear() {
10767
      setItemIdIsSet(false);
10768
      this.itemId = 0;
5978 rajveer 10769
      setSourceIdIsSet(false);
10770
      this.sourceId = 0;
5945 mandeep.dh 10771
    }
10772
 
10773
    public long getItemId() {
10774
      return this.itemId;
10775
    }
10776
 
10777
    public void setItemId(long itemId) {
10778
      this.itemId = itemId;
10779
      setItemIdIsSet(true);
10780
    }
10781
 
10782
    public void unsetItemId() {
10783
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
10784
    }
10785
 
10786
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
10787
    public boolean isSetItemId() {
10788
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
10789
    }
10790
 
10791
    public void setItemIdIsSet(boolean value) {
10792
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
10793
    }
10794
 
5978 rajveer 10795
    public long getSourceId() {
10796
      return this.sourceId;
10797
    }
10798
 
10799
    public void setSourceId(long sourceId) {
10800
      this.sourceId = sourceId;
10801
      setSourceIdIsSet(true);
10802
    }
10803
 
10804
    public void unsetSourceId() {
10805
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
10806
    }
10807
 
10808
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
10809
    public boolean isSetSourceId() {
10810
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
10811
    }
10812
 
10813
    public void setSourceIdIsSet(boolean value) {
10814
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
10815
    }
10816
 
5945 mandeep.dh 10817
    public void setFieldValue(_Fields field, Object value) {
10818
      switch (field) {
10819
      case ITEM_ID:
10820
        if (value == null) {
10821
          unsetItemId();
10822
        } else {
10823
          setItemId((Long)value);
10824
        }
10825
        break;
10826
 
5978 rajveer 10827
      case SOURCE_ID:
10828
        if (value == null) {
10829
          unsetSourceId();
10830
        } else {
10831
          setSourceId((Long)value);
10832
        }
10833
        break;
10834
 
5945 mandeep.dh 10835
      }
10836
    }
10837
 
10838
    public Object getFieldValue(_Fields field) {
10839
      switch (field) {
10840
      case ITEM_ID:
10841
        return Long.valueOf(getItemId());
10842
 
5978 rajveer 10843
      case SOURCE_ID:
10844
        return Long.valueOf(getSourceId());
10845
 
5945 mandeep.dh 10846
      }
10847
      throw new IllegalStateException();
10848
    }
10849
 
10850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10851
    public boolean isSet(_Fields field) {
10852
      if (field == null) {
10853
        throw new IllegalArgumentException();
10854
      }
10855
 
10856
      switch (field) {
10857
      case ITEM_ID:
10858
        return isSetItemId();
5978 rajveer 10859
      case SOURCE_ID:
10860
        return isSetSourceId();
5945 mandeep.dh 10861
      }
10862
      throw new IllegalStateException();
10863
    }
10864
 
10865
    @Override
10866
    public boolean equals(Object that) {
10867
      if (that == null)
10868
        return false;
10869
      if (that instanceof getItemAvailabilityAtLocation_args)
10870
        return this.equals((getItemAvailabilityAtLocation_args)that);
10871
      return false;
10872
    }
10873
 
10874
    public boolean equals(getItemAvailabilityAtLocation_args that) {
10875
      if (that == null)
10876
        return false;
10877
 
10878
      boolean this_present_itemId = true;
10879
      boolean that_present_itemId = true;
10880
      if (this_present_itemId || that_present_itemId) {
10881
        if (!(this_present_itemId && that_present_itemId))
10882
          return false;
10883
        if (this.itemId != that.itemId)
10884
          return false;
10885
      }
10886
 
5978 rajveer 10887
      boolean this_present_sourceId = true;
10888
      boolean that_present_sourceId = true;
10889
      if (this_present_sourceId || that_present_sourceId) {
10890
        if (!(this_present_sourceId && that_present_sourceId))
10891
          return false;
10892
        if (this.sourceId != that.sourceId)
10893
          return false;
10894
      }
10895
 
5945 mandeep.dh 10896
      return true;
10897
    }
10898
 
10899
    @Override
10900
    public int hashCode() {
10901
      return 0;
10902
    }
10903
 
10904
    public int compareTo(getItemAvailabilityAtLocation_args other) {
10905
      if (!getClass().equals(other.getClass())) {
10906
        return getClass().getName().compareTo(other.getClass().getName());
10907
      }
10908
 
10909
      int lastComparison = 0;
10910
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
10911
 
10912
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
10913
      if (lastComparison != 0) {
10914
        return lastComparison;
10915
      }
10916
      if (isSetItemId()) {
10917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
10918
        if (lastComparison != 0) {
10919
          return lastComparison;
10920
        }
10921
      }
5978 rajveer 10922
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
10923
      if (lastComparison != 0) {
10924
        return lastComparison;
10925
      }
10926
      if (isSetSourceId()) {
10927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
10928
        if (lastComparison != 0) {
10929
          return lastComparison;
10930
        }
10931
      }
5945 mandeep.dh 10932
      return 0;
10933
    }
10934
 
10935
    public _Fields fieldForId(int fieldId) {
10936
      return _Fields.findByThriftId(fieldId);
10937
    }
10938
 
10939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10940
      org.apache.thrift.protocol.TField field;
10941
      iprot.readStructBegin();
10942
      while (true)
10943
      {
10944
        field = iprot.readFieldBegin();
10945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10946
          break;
10947
        }
10948
        switch (field.id) {
10949
          case 1: // ITEM_ID
10950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10951
              this.itemId = iprot.readI64();
10952
              setItemIdIsSet(true);
10953
            } else { 
10954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10955
            }
10956
            break;
5978 rajveer 10957
          case 2: // SOURCE_ID
10958
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10959
              this.sourceId = iprot.readI64();
10960
              setSourceIdIsSet(true);
10961
            } else { 
10962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10963
            }
10964
            break;
5945 mandeep.dh 10965
          default:
10966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10967
        }
10968
        iprot.readFieldEnd();
10969
      }
10970
      iprot.readStructEnd();
10971
      validate();
10972
    }
10973
 
10974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10975
      validate();
10976
 
10977
      oprot.writeStructBegin(STRUCT_DESC);
10978
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10979
      oprot.writeI64(this.itemId);
10980
      oprot.writeFieldEnd();
5978 rajveer 10981
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
10982
      oprot.writeI64(this.sourceId);
10983
      oprot.writeFieldEnd();
5945 mandeep.dh 10984
      oprot.writeFieldStop();
10985
      oprot.writeStructEnd();
10986
    }
10987
 
10988
    @Override
10989
    public String toString() {
10990
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
10991
      boolean first = true;
10992
 
10993
      sb.append("itemId:");
10994
      sb.append(this.itemId);
10995
      first = false;
5978 rajveer 10996
      if (!first) sb.append(", ");
10997
      sb.append("sourceId:");
10998
      sb.append(this.sourceId);
10999
      first = false;
5945 mandeep.dh 11000
      sb.append(")");
11001
      return sb.toString();
11002
    }
11003
 
11004
    public void validate() throws org.apache.thrift.TException {
11005
      // check for required fields
11006
    }
11007
 
11008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11009
      try {
11010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11011
      } catch (org.apache.thrift.TException te) {
11012
        throw new java.io.IOException(te);
11013
      }
11014
    }
11015
 
11016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11017
      try {
11018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11019
      } catch (org.apache.thrift.TException te) {
11020
        throw new java.io.IOException(te);
11021
      }
11022
    }
11023
 
11024
  }
11025
 
11026
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
11027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
11028
 
11029
    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);
11030
    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);
11031
 
11032
    private List<Long> success; // required
11033
    private InventoryServiceException isex; // required
11034
 
11035
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11036
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11037
      SUCCESS((short)0, "success"),
11038
      ISEX((short)1, "isex");
11039
 
11040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11041
 
11042
      static {
11043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11044
          byName.put(field.getFieldName(), field);
11045
        }
11046
      }
11047
 
11048
      /**
11049
       * Find the _Fields constant that matches fieldId, or null if its not found.
11050
       */
11051
      public static _Fields findByThriftId(int fieldId) {
11052
        switch(fieldId) {
11053
          case 0: // SUCCESS
11054
            return SUCCESS;
11055
          case 1: // ISEX
11056
            return ISEX;
11057
          default:
11058
            return null;
11059
        }
11060
      }
11061
 
11062
      /**
11063
       * Find the _Fields constant that matches fieldId, throwing an exception
11064
       * if it is not found.
11065
       */
11066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11067
        _Fields fields = findByThriftId(fieldId);
11068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11069
        return fields;
11070
      }
11071
 
11072
      /**
11073
       * Find the _Fields constant that matches name, or null if its not found.
11074
       */
11075
      public static _Fields findByName(String name) {
11076
        return byName.get(name);
11077
      }
11078
 
11079
      private final short _thriftId;
11080
      private final String _fieldName;
11081
 
11082
      _Fields(short thriftId, String fieldName) {
11083
        _thriftId = thriftId;
11084
        _fieldName = fieldName;
11085
      }
11086
 
11087
      public short getThriftFieldId() {
11088
        return _thriftId;
11089
      }
11090
 
11091
      public String getFieldName() {
11092
        return _fieldName;
11093
      }
11094
    }
11095
 
11096
    // isset id assignments
11097
 
11098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11099
    static {
11100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11101
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11102
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11103
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
11104
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
11108
    }
11109
 
11110
    public getItemAvailabilityAtLocation_result() {
11111
    }
11112
 
11113
    public getItemAvailabilityAtLocation_result(
11114
      List<Long> success,
11115
      InventoryServiceException isex)
11116
    {
11117
      this();
11118
      this.success = success;
11119
      this.isex = isex;
11120
    }
11121
 
11122
    /**
11123
     * Performs a deep copy on <i>other</i>.
11124
     */
11125
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
11126
      if (other.isSetSuccess()) {
11127
        List<Long> __this__success = new ArrayList<Long>();
11128
        for (Long other_element : other.success) {
11129
          __this__success.add(other_element);
11130
        }
11131
        this.success = __this__success;
11132
      }
11133
      if (other.isSetIsex()) {
11134
        this.isex = new InventoryServiceException(other.isex);
11135
      }
11136
    }
11137
 
11138
    public getItemAvailabilityAtLocation_result deepCopy() {
11139
      return new getItemAvailabilityAtLocation_result(this);
11140
    }
11141
 
11142
    @Override
11143
    public void clear() {
11144
      this.success = null;
11145
      this.isex = null;
11146
    }
11147
 
11148
    public int getSuccessSize() {
11149
      return (this.success == null) ? 0 : this.success.size();
11150
    }
11151
 
11152
    public java.util.Iterator<Long> getSuccessIterator() {
11153
      return (this.success == null) ? null : this.success.iterator();
11154
    }
11155
 
11156
    public void addToSuccess(long elem) {
11157
      if (this.success == null) {
11158
        this.success = new ArrayList<Long>();
11159
      }
11160
      this.success.add(elem);
11161
    }
11162
 
11163
    public List<Long> getSuccess() {
11164
      return this.success;
11165
    }
11166
 
11167
    public void setSuccess(List<Long> success) {
11168
      this.success = success;
11169
    }
11170
 
11171
    public void unsetSuccess() {
11172
      this.success = null;
11173
    }
11174
 
11175
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11176
    public boolean isSetSuccess() {
11177
      return this.success != null;
11178
    }
11179
 
11180
    public void setSuccessIsSet(boolean value) {
11181
      if (!value) {
11182
        this.success = null;
11183
      }
11184
    }
11185
 
11186
    public InventoryServiceException getIsex() {
11187
      return this.isex;
11188
    }
11189
 
11190
    public void setIsex(InventoryServiceException isex) {
11191
      this.isex = isex;
11192
    }
11193
 
11194
    public void unsetIsex() {
11195
      this.isex = null;
11196
    }
11197
 
11198
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
11199
    public boolean isSetIsex() {
11200
      return this.isex != null;
11201
    }
11202
 
11203
    public void setIsexIsSet(boolean value) {
11204
      if (!value) {
11205
        this.isex = null;
11206
      }
11207
    }
11208
 
11209
    public void setFieldValue(_Fields field, Object value) {
11210
      switch (field) {
11211
      case SUCCESS:
11212
        if (value == null) {
11213
          unsetSuccess();
11214
        } else {
11215
          setSuccess((List<Long>)value);
11216
        }
11217
        break;
11218
 
11219
      case ISEX:
11220
        if (value == null) {
11221
          unsetIsex();
11222
        } else {
11223
          setIsex((InventoryServiceException)value);
11224
        }
11225
        break;
11226
 
11227
      }
11228
    }
11229
 
11230
    public Object getFieldValue(_Fields field) {
11231
      switch (field) {
11232
      case SUCCESS:
11233
        return getSuccess();
11234
 
11235
      case ISEX:
11236
        return getIsex();
11237
 
11238
      }
11239
      throw new IllegalStateException();
11240
    }
11241
 
11242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11243
    public boolean isSet(_Fields field) {
11244
      if (field == null) {
11245
        throw new IllegalArgumentException();
11246
      }
11247
 
11248
      switch (field) {
11249
      case SUCCESS:
11250
        return isSetSuccess();
11251
      case ISEX:
11252
        return isSetIsex();
11253
      }
11254
      throw new IllegalStateException();
11255
    }
11256
 
11257
    @Override
11258
    public boolean equals(Object that) {
11259
      if (that == null)
11260
        return false;
11261
      if (that instanceof getItemAvailabilityAtLocation_result)
11262
        return this.equals((getItemAvailabilityAtLocation_result)that);
11263
      return false;
11264
    }
11265
 
11266
    public boolean equals(getItemAvailabilityAtLocation_result that) {
11267
      if (that == null)
11268
        return false;
11269
 
11270
      boolean this_present_success = true && this.isSetSuccess();
11271
      boolean that_present_success = true && that.isSetSuccess();
11272
      if (this_present_success || that_present_success) {
11273
        if (!(this_present_success && that_present_success))
11274
          return false;
11275
        if (!this.success.equals(that.success))
11276
          return false;
11277
      }
11278
 
11279
      boolean this_present_isex = true && this.isSetIsex();
11280
      boolean that_present_isex = true && that.isSetIsex();
11281
      if (this_present_isex || that_present_isex) {
11282
        if (!(this_present_isex && that_present_isex))
11283
          return false;
11284
        if (!this.isex.equals(that.isex))
11285
          return false;
11286
      }
11287
 
11288
      return true;
11289
    }
11290
 
11291
    @Override
11292
    public int hashCode() {
11293
      return 0;
11294
    }
11295
 
11296
    public int compareTo(getItemAvailabilityAtLocation_result other) {
11297
      if (!getClass().equals(other.getClass())) {
11298
        return getClass().getName().compareTo(other.getClass().getName());
11299
      }
11300
 
11301
      int lastComparison = 0;
11302
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
11303
 
11304
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11305
      if (lastComparison != 0) {
11306
        return lastComparison;
11307
      }
11308
      if (isSetSuccess()) {
11309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11310
        if (lastComparison != 0) {
11311
          return lastComparison;
11312
        }
11313
      }
11314
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
11315
      if (lastComparison != 0) {
11316
        return lastComparison;
11317
      }
11318
      if (isSetIsex()) {
11319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
11320
        if (lastComparison != 0) {
11321
          return lastComparison;
11322
        }
11323
      }
11324
      return 0;
11325
    }
11326
 
11327
    public _Fields fieldForId(int fieldId) {
11328
      return _Fields.findByThriftId(fieldId);
11329
    }
11330
 
11331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11332
      org.apache.thrift.protocol.TField field;
11333
      iprot.readStructBegin();
11334
      while (true)
11335
      {
11336
        field = iprot.readFieldBegin();
11337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11338
          break;
11339
        }
11340
        switch (field.id) {
11341
          case 0: // SUCCESS
11342
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11343
              {
8182 amar.kumar 11344
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
11345
                this.success = new ArrayList<Long>(_list25.size);
11346
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
5945 mandeep.dh 11347
                {
8182 amar.kumar 11348
                  long _elem27; // required
11349
                  _elem27 = iprot.readI64();
11350
                  this.success.add(_elem27);
5945 mandeep.dh 11351
                }
11352
                iprot.readListEnd();
11353
              }
11354
            } else { 
11355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11356
            }
11357
            break;
11358
          case 1: // ISEX
11359
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11360
              this.isex = new InventoryServiceException();
11361
              this.isex.read(iprot);
11362
            } else { 
11363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11364
            }
11365
            break;
11366
          default:
11367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11368
        }
11369
        iprot.readFieldEnd();
11370
      }
11371
      iprot.readStructEnd();
11372
      validate();
11373
    }
11374
 
11375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11376
      oprot.writeStructBegin(STRUCT_DESC);
11377
 
11378
      if (this.isSetSuccess()) {
11379
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11380
        {
11381
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 11382
          for (long _iter28 : this.success)
5945 mandeep.dh 11383
          {
8182 amar.kumar 11384
            oprot.writeI64(_iter28);
5945 mandeep.dh 11385
          }
11386
          oprot.writeListEnd();
11387
        }
11388
        oprot.writeFieldEnd();
11389
      } else if (this.isSetIsex()) {
11390
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
11391
        this.isex.write(oprot);
11392
        oprot.writeFieldEnd();
11393
      }
11394
      oprot.writeFieldStop();
11395
      oprot.writeStructEnd();
11396
    }
11397
 
11398
    @Override
11399
    public String toString() {
11400
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
11401
      boolean first = true;
11402
 
11403
      sb.append("success:");
11404
      if (this.success == null) {
11405
        sb.append("null");
11406
      } else {
11407
        sb.append(this.success);
11408
      }
11409
      first = false;
11410
      if (!first) sb.append(", ");
11411
      sb.append("isex:");
11412
      if (this.isex == null) {
11413
        sb.append("null");
11414
      } else {
11415
        sb.append(this.isex);
11416
      }
11417
      first = false;
11418
      sb.append(")");
11419
      return sb.toString();
11420
    }
11421
 
11422
    public void validate() throws org.apache.thrift.TException {
11423
      // check for required fields
11424
    }
11425
 
11426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11427
      try {
11428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11429
      } catch (org.apache.thrift.TException te) {
11430
        throw new java.io.IOException(te);
11431
      }
11432
    }
11433
 
11434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11435
      try {
11436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11437
      } catch (org.apache.thrift.TException te) {
11438
        throw new java.io.IOException(te);
11439
      }
11440
    }
11441
 
11442
  }
11443
 
11444
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
11445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
11446
 
11447
    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);
11448
 
11449
    private boolean isActive; // required
11450
 
11451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11453
      IS_ACTIVE((short)1, "isActive");
11454
 
11455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11456
 
11457
      static {
11458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11459
          byName.put(field.getFieldName(), field);
11460
        }
11461
      }
11462
 
11463
      /**
11464
       * Find the _Fields constant that matches fieldId, or null if its not found.
11465
       */
11466
      public static _Fields findByThriftId(int fieldId) {
11467
        switch(fieldId) {
11468
          case 1: // IS_ACTIVE
11469
            return IS_ACTIVE;
11470
          default:
11471
            return null;
11472
        }
11473
      }
11474
 
11475
      /**
11476
       * Find the _Fields constant that matches fieldId, throwing an exception
11477
       * if it is not found.
11478
       */
11479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11480
        _Fields fields = findByThriftId(fieldId);
11481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11482
        return fields;
11483
      }
11484
 
11485
      /**
11486
       * Find the _Fields constant that matches name, or null if its not found.
11487
       */
11488
      public static _Fields findByName(String name) {
11489
        return byName.get(name);
11490
      }
11491
 
11492
      private final short _thriftId;
11493
      private final String _fieldName;
11494
 
11495
      _Fields(short thriftId, String fieldName) {
11496
        _thriftId = thriftId;
11497
        _fieldName = fieldName;
11498
      }
11499
 
11500
      public short getThriftFieldId() {
11501
        return _thriftId;
11502
      }
11503
 
11504
      public String getFieldName() {
11505
        return _fieldName;
11506
      }
11507
    }
11508
 
11509
    // isset id assignments
11510
    private static final int __ISACTIVE_ISSET_ID = 0;
11511
    private BitSet __isset_bit_vector = new BitSet(1);
11512
 
11513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11514
    static {
11515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11516
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
11520
    }
11521
 
11522
    public getAllWarehouses_args() {
11523
    }
11524
 
11525
    public getAllWarehouses_args(
11526
      boolean isActive)
11527
    {
11528
      this();
11529
      this.isActive = isActive;
11530
      setIsActiveIsSet(true);
11531
    }
11532
 
11533
    /**
11534
     * Performs a deep copy on <i>other</i>.
11535
     */
11536
    public getAllWarehouses_args(getAllWarehouses_args other) {
11537
      __isset_bit_vector.clear();
11538
      __isset_bit_vector.or(other.__isset_bit_vector);
11539
      this.isActive = other.isActive;
11540
    }
11541
 
11542
    public getAllWarehouses_args deepCopy() {
11543
      return new getAllWarehouses_args(this);
11544
    }
11545
 
11546
    @Override
11547
    public void clear() {
11548
      setIsActiveIsSet(false);
11549
      this.isActive = false;
11550
    }
11551
 
11552
    public boolean isIsActive() {
11553
      return this.isActive;
11554
    }
11555
 
11556
    public void setIsActive(boolean isActive) {
11557
      this.isActive = isActive;
11558
      setIsActiveIsSet(true);
11559
    }
11560
 
11561
    public void unsetIsActive() {
11562
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
11563
    }
11564
 
11565
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
11566
    public boolean isSetIsActive() {
11567
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
11568
    }
11569
 
11570
    public void setIsActiveIsSet(boolean value) {
11571
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
11572
    }
11573
 
11574
    public void setFieldValue(_Fields field, Object value) {
11575
      switch (field) {
11576
      case IS_ACTIVE:
11577
        if (value == null) {
11578
          unsetIsActive();
11579
        } else {
11580
          setIsActive((Boolean)value);
11581
        }
11582
        break;
11583
 
11584
      }
11585
    }
11586
 
11587
    public Object getFieldValue(_Fields field) {
11588
      switch (field) {
11589
      case IS_ACTIVE:
11590
        return Boolean.valueOf(isIsActive());
11591
 
11592
      }
11593
      throw new IllegalStateException();
11594
    }
11595
 
11596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11597
    public boolean isSet(_Fields field) {
11598
      if (field == null) {
11599
        throw new IllegalArgumentException();
11600
      }
11601
 
11602
      switch (field) {
11603
      case IS_ACTIVE:
11604
        return isSetIsActive();
11605
      }
11606
      throw new IllegalStateException();
11607
    }
11608
 
11609
    @Override
11610
    public boolean equals(Object that) {
11611
      if (that == null)
11612
        return false;
11613
      if (that instanceof getAllWarehouses_args)
11614
        return this.equals((getAllWarehouses_args)that);
11615
      return false;
11616
    }
11617
 
11618
    public boolean equals(getAllWarehouses_args that) {
11619
      if (that == null)
11620
        return false;
11621
 
11622
      boolean this_present_isActive = true;
11623
      boolean that_present_isActive = true;
11624
      if (this_present_isActive || that_present_isActive) {
11625
        if (!(this_present_isActive && that_present_isActive))
11626
          return false;
11627
        if (this.isActive != that.isActive)
11628
          return false;
11629
      }
11630
 
11631
      return true;
11632
    }
11633
 
11634
    @Override
11635
    public int hashCode() {
11636
      return 0;
11637
    }
11638
 
11639
    public int compareTo(getAllWarehouses_args other) {
11640
      if (!getClass().equals(other.getClass())) {
11641
        return getClass().getName().compareTo(other.getClass().getName());
11642
      }
11643
 
11644
      int lastComparison = 0;
11645
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
11646
 
11647
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
11648
      if (lastComparison != 0) {
11649
        return lastComparison;
11650
      }
11651
      if (isSetIsActive()) {
11652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
11653
        if (lastComparison != 0) {
11654
          return lastComparison;
11655
        }
11656
      }
11657
      return 0;
11658
    }
11659
 
11660
    public _Fields fieldForId(int fieldId) {
11661
      return _Fields.findByThriftId(fieldId);
11662
    }
11663
 
11664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11665
      org.apache.thrift.protocol.TField field;
11666
      iprot.readStructBegin();
11667
      while (true)
11668
      {
11669
        field = iprot.readFieldBegin();
11670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11671
          break;
11672
        }
11673
        switch (field.id) {
11674
          case 1: // IS_ACTIVE
11675
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11676
              this.isActive = iprot.readBool();
11677
              setIsActiveIsSet(true);
11678
            } else { 
11679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11680
            }
11681
            break;
11682
          default:
11683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11684
        }
11685
        iprot.readFieldEnd();
11686
      }
11687
      iprot.readStructEnd();
11688
      validate();
11689
    }
11690
 
11691
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11692
      validate();
11693
 
11694
      oprot.writeStructBegin(STRUCT_DESC);
11695
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
11696
      oprot.writeBool(this.isActive);
11697
      oprot.writeFieldEnd();
11698
      oprot.writeFieldStop();
11699
      oprot.writeStructEnd();
11700
    }
11701
 
11702
    @Override
11703
    public String toString() {
11704
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
11705
      boolean first = true;
11706
 
11707
      sb.append("isActive:");
11708
      sb.append(this.isActive);
11709
      first = false;
11710
      sb.append(")");
11711
      return sb.toString();
11712
    }
11713
 
11714
    public void validate() throws org.apache.thrift.TException {
11715
      // check for required fields
11716
    }
11717
 
11718
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11719
      try {
11720
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11721
      } catch (org.apache.thrift.TException te) {
11722
        throw new java.io.IOException(te);
11723
      }
11724
    }
11725
 
11726
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11727
      try {
7968 amar.kumar 11728
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11729
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 11730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11731
      } catch (org.apache.thrift.TException te) {
11732
        throw new java.io.IOException(te);
11733
      }
11734
    }
11735
 
11736
  }
11737
 
11738
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
11739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
11740
 
11741
    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);
11742
    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);
11743
 
11744
    private List<Warehouse> success; // required
11745
    private InventoryServiceException cex; // required
11746
 
11747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11749
      SUCCESS((short)0, "success"),
11750
      CEX((short)1, "cex");
11751
 
11752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11753
 
11754
      static {
11755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11756
          byName.put(field.getFieldName(), field);
11757
        }
11758
      }
11759
 
11760
      /**
11761
       * Find the _Fields constant that matches fieldId, or null if its not found.
11762
       */
11763
      public static _Fields findByThriftId(int fieldId) {
11764
        switch(fieldId) {
11765
          case 0: // SUCCESS
11766
            return SUCCESS;
11767
          case 1: // CEX
11768
            return CEX;
11769
          default:
11770
            return null;
11771
        }
11772
      }
11773
 
11774
      /**
11775
       * Find the _Fields constant that matches fieldId, throwing an exception
11776
       * if it is not found.
11777
       */
11778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11779
        _Fields fields = findByThriftId(fieldId);
11780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11781
        return fields;
11782
      }
11783
 
11784
      /**
11785
       * Find the _Fields constant that matches name, or null if its not found.
11786
       */
11787
      public static _Fields findByName(String name) {
11788
        return byName.get(name);
11789
      }
11790
 
11791
      private final short _thriftId;
11792
      private final String _fieldName;
11793
 
11794
      _Fields(short thriftId, String fieldName) {
11795
        _thriftId = thriftId;
11796
        _fieldName = fieldName;
11797
      }
11798
 
11799
      public short getThriftFieldId() {
11800
        return _thriftId;
11801
      }
11802
 
11803
      public String getFieldName() {
11804
        return _fieldName;
11805
      }
11806
    }
11807
 
11808
    // isset id assignments
11809
 
11810
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11811
    static {
11812
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11813
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11814
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11815
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
11816
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
11820
    }
11821
 
11822
    public getAllWarehouses_result() {
11823
    }
11824
 
11825
    public getAllWarehouses_result(
11826
      List<Warehouse> success,
11827
      InventoryServiceException cex)
11828
    {
11829
      this();
11830
      this.success = success;
11831
      this.cex = cex;
11832
    }
11833
 
11834
    /**
11835
     * Performs a deep copy on <i>other</i>.
11836
     */
11837
    public getAllWarehouses_result(getAllWarehouses_result other) {
11838
      if (other.isSetSuccess()) {
11839
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
11840
        for (Warehouse other_element : other.success) {
11841
          __this__success.add(new Warehouse(other_element));
11842
        }
11843
        this.success = __this__success;
11844
      }
11845
      if (other.isSetCex()) {
11846
        this.cex = new InventoryServiceException(other.cex);
11847
      }
11848
    }
11849
 
11850
    public getAllWarehouses_result deepCopy() {
11851
      return new getAllWarehouses_result(this);
11852
    }
11853
 
11854
    @Override
11855
    public void clear() {
11856
      this.success = null;
11857
      this.cex = null;
11858
    }
11859
 
11860
    public int getSuccessSize() {
11861
      return (this.success == null) ? 0 : this.success.size();
11862
    }
11863
 
11864
    public java.util.Iterator<Warehouse> getSuccessIterator() {
11865
      return (this.success == null) ? null : this.success.iterator();
11866
    }
11867
 
11868
    public void addToSuccess(Warehouse elem) {
11869
      if (this.success == null) {
11870
        this.success = new ArrayList<Warehouse>();
11871
      }
11872
      this.success.add(elem);
11873
    }
11874
 
11875
    public List<Warehouse> getSuccess() {
11876
      return this.success;
11877
    }
11878
 
11879
    public void setSuccess(List<Warehouse> success) {
11880
      this.success = success;
11881
    }
11882
 
11883
    public void unsetSuccess() {
11884
      this.success = null;
11885
    }
11886
 
11887
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11888
    public boolean isSetSuccess() {
11889
      return this.success != null;
11890
    }
11891
 
11892
    public void setSuccessIsSet(boolean value) {
11893
      if (!value) {
11894
        this.success = null;
11895
      }
11896
    }
11897
 
11898
    public InventoryServiceException getCex() {
11899
      return this.cex;
11900
    }
11901
 
11902
    public void setCex(InventoryServiceException cex) {
11903
      this.cex = cex;
11904
    }
11905
 
11906
    public void unsetCex() {
11907
      this.cex = null;
11908
    }
11909
 
11910
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11911
    public boolean isSetCex() {
11912
      return this.cex != null;
11913
    }
11914
 
11915
    public void setCexIsSet(boolean value) {
11916
      if (!value) {
11917
        this.cex = null;
11918
      }
11919
    }
11920
 
11921
    public void setFieldValue(_Fields field, Object value) {
11922
      switch (field) {
11923
      case SUCCESS:
11924
        if (value == null) {
11925
          unsetSuccess();
11926
        } else {
11927
          setSuccess((List<Warehouse>)value);
11928
        }
11929
        break;
11930
 
11931
      case CEX:
11932
        if (value == null) {
11933
          unsetCex();
11934
        } else {
11935
          setCex((InventoryServiceException)value);
11936
        }
11937
        break;
11938
 
11939
      }
11940
    }
11941
 
11942
    public Object getFieldValue(_Fields field) {
11943
      switch (field) {
11944
      case SUCCESS:
11945
        return getSuccess();
11946
 
11947
      case CEX:
11948
        return getCex();
11949
 
11950
      }
11951
      throw new IllegalStateException();
11952
    }
11953
 
11954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11955
    public boolean isSet(_Fields field) {
11956
      if (field == null) {
11957
        throw new IllegalArgumentException();
11958
      }
11959
 
11960
      switch (field) {
11961
      case SUCCESS:
11962
        return isSetSuccess();
11963
      case CEX:
11964
        return isSetCex();
11965
      }
11966
      throw new IllegalStateException();
11967
    }
11968
 
11969
    @Override
11970
    public boolean equals(Object that) {
11971
      if (that == null)
11972
        return false;
11973
      if (that instanceof getAllWarehouses_result)
11974
        return this.equals((getAllWarehouses_result)that);
11975
      return false;
11976
    }
11977
 
11978
    public boolean equals(getAllWarehouses_result that) {
11979
      if (that == null)
11980
        return false;
11981
 
11982
      boolean this_present_success = true && this.isSetSuccess();
11983
      boolean that_present_success = true && that.isSetSuccess();
11984
      if (this_present_success || that_present_success) {
11985
        if (!(this_present_success && that_present_success))
11986
          return false;
11987
        if (!this.success.equals(that.success))
11988
          return false;
11989
      }
11990
 
11991
      boolean this_present_cex = true && this.isSetCex();
11992
      boolean that_present_cex = true && that.isSetCex();
11993
      if (this_present_cex || that_present_cex) {
11994
        if (!(this_present_cex && that_present_cex))
11995
          return false;
11996
        if (!this.cex.equals(that.cex))
11997
          return false;
11998
      }
11999
 
12000
      return true;
12001
    }
12002
 
12003
    @Override
12004
    public int hashCode() {
12005
      return 0;
12006
    }
12007
 
12008
    public int compareTo(getAllWarehouses_result other) {
12009
      if (!getClass().equals(other.getClass())) {
12010
        return getClass().getName().compareTo(other.getClass().getName());
12011
      }
12012
 
12013
      int lastComparison = 0;
12014
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
12015
 
12016
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12017
      if (lastComparison != 0) {
12018
        return lastComparison;
12019
      }
12020
      if (isSetSuccess()) {
12021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12022
        if (lastComparison != 0) {
12023
          return lastComparison;
12024
        }
12025
      }
12026
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12027
      if (lastComparison != 0) {
12028
        return lastComparison;
12029
      }
12030
      if (isSetCex()) {
12031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12032
        if (lastComparison != 0) {
12033
          return lastComparison;
12034
        }
12035
      }
12036
      return 0;
12037
    }
12038
 
12039
    public _Fields fieldForId(int fieldId) {
12040
      return _Fields.findByThriftId(fieldId);
12041
    }
12042
 
12043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12044
      org.apache.thrift.protocol.TField field;
12045
      iprot.readStructBegin();
12046
      while (true)
12047
      {
12048
        field = iprot.readFieldBegin();
12049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12050
          break;
12051
        }
12052
        switch (field.id) {
12053
          case 0: // SUCCESS
12054
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12055
              {
8182 amar.kumar 12056
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
12057
                this.success = new ArrayList<Warehouse>(_list29.size);
12058
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
5945 mandeep.dh 12059
                {
8182 amar.kumar 12060
                  Warehouse _elem31; // required
12061
                  _elem31 = new Warehouse();
12062
                  _elem31.read(iprot);
12063
                  this.success.add(_elem31);
5945 mandeep.dh 12064
                }
12065
                iprot.readListEnd();
12066
              }
12067
            } else { 
12068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12069
            }
12070
            break;
12071
          case 1: // CEX
12072
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12073
              this.cex = new InventoryServiceException();
12074
              this.cex.read(iprot);
12075
            } else { 
12076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12077
            }
12078
            break;
12079
          default:
12080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12081
        }
12082
        iprot.readFieldEnd();
12083
      }
12084
      iprot.readStructEnd();
12085
      validate();
12086
    }
12087
 
12088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12089
      oprot.writeStructBegin(STRUCT_DESC);
12090
 
12091
      if (this.isSetSuccess()) {
12092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12093
        {
12094
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 12095
          for (Warehouse _iter32 : this.success)
5945 mandeep.dh 12096
          {
8182 amar.kumar 12097
            _iter32.write(oprot);
5945 mandeep.dh 12098
          }
12099
          oprot.writeListEnd();
12100
        }
12101
        oprot.writeFieldEnd();
12102
      } else if (this.isSetCex()) {
12103
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12104
        this.cex.write(oprot);
12105
        oprot.writeFieldEnd();
12106
      }
12107
      oprot.writeFieldStop();
12108
      oprot.writeStructEnd();
12109
    }
12110
 
12111
    @Override
12112
    public String toString() {
12113
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
12114
      boolean first = true;
12115
 
12116
      sb.append("success:");
12117
      if (this.success == null) {
12118
        sb.append("null");
12119
      } else {
12120
        sb.append(this.success);
12121
      }
12122
      first = false;
12123
      if (!first) sb.append(", ");
12124
      sb.append("cex:");
12125
      if (this.cex == null) {
12126
        sb.append("null");
12127
      } else {
12128
        sb.append(this.cex);
12129
      }
12130
      first = false;
12131
      sb.append(")");
12132
      return sb.toString();
12133
    }
12134
 
12135
    public void validate() throws org.apache.thrift.TException {
12136
      // check for required fields
12137
    }
12138
 
12139
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12140
      try {
12141
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12142
      } catch (org.apache.thrift.TException te) {
12143
        throw new java.io.IOException(te);
12144
      }
12145
    }
12146
 
12147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12148
      try {
12149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12150
      } catch (org.apache.thrift.TException te) {
12151
        throw new java.io.IOException(te);
12152
      }
12153
    }
12154
 
12155
  }
12156
 
12157
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
12159
 
12160
    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);
12161
 
12162
    private long warehouse_id; // required
12163
 
12164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12166
      WAREHOUSE_ID((short)1, "warehouse_id");
12167
 
12168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12169
 
12170
      static {
12171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12172
          byName.put(field.getFieldName(), field);
12173
        }
12174
      }
12175
 
12176
      /**
12177
       * Find the _Fields constant that matches fieldId, or null if its not found.
12178
       */
12179
      public static _Fields findByThriftId(int fieldId) {
12180
        switch(fieldId) {
12181
          case 1: // WAREHOUSE_ID
12182
            return WAREHOUSE_ID;
12183
          default:
12184
            return null;
12185
        }
12186
      }
12187
 
12188
      /**
12189
       * Find the _Fields constant that matches fieldId, throwing an exception
12190
       * if it is not found.
12191
       */
12192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12193
        _Fields fields = findByThriftId(fieldId);
12194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12195
        return fields;
12196
      }
12197
 
12198
      /**
12199
       * Find the _Fields constant that matches name, or null if its not found.
12200
       */
12201
      public static _Fields findByName(String name) {
12202
        return byName.get(name);
12203
      }
12204
 
12205
      private final short _thriftId;
12206
      private final String _fieldName;
12207
 
12208
      _Fields(short thriftId, String fieldName) {
12209
        _thriftId = thriftId;
12210
        _fieldName = fieldName;
12211
      }
12212
 
12213
      public short getThriftFieldId() {
12214
        return _thriftId;
12215
      }
12216
 
12217
      public String getFieldName() {
12218
        return _fieldName;
12219
      }
12220
    }
12221
 
12222
    // isset id assignments
12223
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
12224
    private BitSet __isset_bit_vector = new BitSet(1);
12225
 
12226
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12227
    static {
12228
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12229
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
12233
    }
12234
 
12235
    public getWarehouse_args() {
12236
    }
12237
 
12238
    public getWarehouse_args(
12239
      long warehouse_id)
12240
    {
12241
      this();
12242
      this.warehouse_id = warehouse_id;
12243
      setWarehouse_idIsSet(true);
12244
    }
12245
 
12246
    /**
12247
     * Performs a deep copy on <i>other</i>.
12248
     */
12249
    public getWarehouse_args(getWarehouse_args other) {
12250
      __isset_bit_vector.clear();
12251
      __isset_bit_vector.or(other.__isset_bit_vector);
12252
      this.warehouse_id = other.warehouse_id;
12253
    }
12254
 
12255
    public getWarehouse_args deepCopy() {
12256
      return new getWarehouse_args(this);
12257
    }
12258
 
12259
    @Override
12260
    public void clear() {
12261
      setWarehouse_idIsSet(false);
12262
      this.warehouse_id = 0;
12263
    }
12264
 
12265
    public long getWarehouse_id() {
12266
      return this.warehouse_id;
12267
    }
12268
 
12269
    public void setWarehouse_id(long warehouse_id) {
12270
      this.warehouse_id = warehouse_id;
12271
      setWarehouse_idIsSet(true);
12272
    }
12273
 
12274
    public void unsetWarehouse_id() {
12275
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12276
    }
12277
 
12278
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12279
    public boolean isSetWarehouse_id() {
12280
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12281
    }
12282
 
12283
    public void setWarehouse_idIsSet(boolean value) {
12284
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12285
    }
12286
 
12287
    public void setFieldValue(_Fields field, Object value) {
12288
      switch (field) {
12289
      case WAREHOUSE_ID:
12290
        if (value == null) {
12291
          unsetWarehouse_id();
12292
        } else {
12293
          setWarehouse_id((Long)value);
12294
        }
12295
        break;
12296
 
12297
      }
12298
    }
12299
 
12300
    public Object getFieldValue(_Fields field) {
12301
      switch (field) {
12302
      case WAREHOUSE_ID:
12303
        return Long.valueOf(getWarehouse_id());
12304
 
12305
      }
12306
      throw new IllegalStateException();
12307
    }
12308
 
12309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12310
    public boolean isSet(_Fields field) {
12311
      if (field == null) {
12312
        throw new IllegalArgumentException();
12313
      }
12314
 
12315
      switch (field) {
12316
      case WAREHOUSE_ID:
12317
        return isSetWarehouse_id();
12318
      }
12319
      throw new IllegalStateException();
12320
    }
12321
 
12322
    @Override
12323
    public boolean equals(Object that) {
12324
      if (that == null)
12325
        return false;
12326
      if (that instanceof getWarehouse_args)
12327
        return this.equals((getWarehouse_args)that);
12328
      return false;
12329
    }
12330
 
12331
    public boolean equals(getWarehouse_args that) {
12332
      if (that == null)
12333
        return false;
12334
 
12335
      boolean this_present_warehouse_id = true;
12336
      boolean that_present_warehouse_id = true;
12337
      if (this_present_warehouse_id || that_present_warehouse_id) {
12338
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12339
          return false;
12340
        if (this.warehouse_id != that.warehouse_id)
12341
          return false;
12342
      }
12343
 
12344
      return true;
12345
    }
12346
 
12347
    @Override
12348
    public int hashCode() {
12349
      return 0;
12350
    }
12351
 
12352
    public int compareTo(getWarehouse_args other) {
12353
      if (!getClass().equals(other.getClass())) {
12354
        return getClass().getName().compareTo(other.getClass().getName());
12355
      }
12356
 
12357
      int lastComparison = 0;
12358
      getWarehouse_args typedOther = (getWarehouse_args)other;
12359
 
12360
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12361
      if (lastComparison != 0) {
12362
        return lastComparison;
12363
      }
12364
      if (isSetWarehouse_id()) {
12365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12366
        if (lastComparison != 0) {
12367
          return lastComparison;
12368
        }
12369
      }
12370
      return 0;
12371
    }
12372
 
12373
    public _Fields fieldForId(int fieldId) {
12374
      return _Fields.findByThriftId(fieldId);
12375
    }
12376
 
12377
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12378
      org.apache.thrift.protocol.TField field;
12379
      iprot.readStructBegin();
12380
      while (true)
12381
      {
12382
        field = iprot.readFieldBegin();
12383
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12384
          break;
12385
        }
12386
        switch (field.id) {
12387
          case 1: // WAREHOUSE_ID
12388
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12389
              this.warehouse_id = iprot.readI64();
12390
              setWarehouse_idIsSet(true);
12391
            } else { 
12392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12393
            }
12394
            break;
12395
          default:
12396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12397
        }
12398
        iprot.readFieldEnd();
12399
      }
12400
      iprot.readStructEnd();
12401
      validate();
12402
    }
12403
 
12404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12405
      validate();
12406
 
12407
      oprot.writeStructBegin(STRUCT_DESC);
12408
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12409
      oprot.writeI64(this.warehouse_id);
12410
      oprot.writeFieldEnd();
12411
      oprot.writeFieldStop();
12412
      oprot.writeStructEnd();
12413
    }
12414
 
12415
    @Override
12416
    public String toString() {
12417
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
12418
      boolean first = true;
12419
 
12420
      sb.append("warehouse_id:");
12421
      sb.append(this.warehouse_id);
12422
      first = false;
12423
      sb.append(")");
12424
      return sb.toString();
12425
    }
12426
 
12427
    public void validate() throws org.apache.thrift.TException {
12428
      // check for required fields
12429
    }
12430
 
12431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12432
      try {
12433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12434
      } catch (org.apache.thrift.TException te) {
12435
        throw new java.io.IOException(te);
12436
      }
12437
    }
12438
 
12439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12440
      try {
12441
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12442
        __isset_bit_vector = new BitSet(1);
12443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12444
      } catch (org.apache.thrift.TException te) {
12445
        throw new java.io.IOException(te);
12446
      }
12447
    }
12448
 
12449
  }
12450
 
12451
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
12453
 
12454
    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);
12455
    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);
12456
 
12457
    private Warehouse success; // required
12458
    private InventoryServiceException cex; // required
12459
 
12460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12462
      SUCCESS((short)0, "success"),
12463
      CEX((short)1, "cex");
12464
 
12465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12466
 
12467
      static {
12468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12469
          byName.put(field.getFieldName(), field);
12470
        }
12471
      }
12472
 
12473
      /**
12474
       * Find the _Fields constant that matches fieldId, or null if its not found.
12475
       */
12476
      public static _Fields findByThriftId(int fieldId) {
12477
        switch(fieldId) {
12478
          case 0: // SUCCESS
12479
            return SUCCESS;
12480
          case 1: // CEX
12481
            return CEX;
12482
          default:
12483
            return null;
12484
        }
12485
      }
12486
 
12487
      /**
12488
       * Find the _Fields constant that matches fieldId, throwing an exception
12489
       * if it is not found.
12490
       */
12491
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12492
        _Fields fields = findByThriftId(fieldId);
12493
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12494
        return fields;
12495
      }
12496
 
12497
      /**
12498
       * Find the _Fields constant that matches name, or null if its not found.
12499
       */
12500
      public static _Fields findByName(String name) {
12501
        return byName.get(name);
12502
      }
12503
 
12504
      private final short _thriftId;
12505
      private final String _fieldName;
12506
 
12507
      _Fields(short thriftId, String fieldName) {
12508
        _thriftId = thriftId;
12509
        _fieldName = fieldName;
12510
      }
12511
 
12512
      public short getThriftFieldId() {
12513
        return _thriftId;
12514
      }
12515
 
12516
      public String getFieldName() {
12517
        return _fieldName;
12518
      }
12519
    }
12520
 
12521
    // isset id assignments
12522
 
12523
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12524
    static {
12525
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12526
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12527
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
12528
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
12532
    }
12533
 
12534
    public getWarehouse_result() {
12535
    }
12536
 
12537
    public getWarehouse_result(
12538
      Warehouse success,
12539
      InventoryServiceException cex)
12540
    {
12541
      this();
12542
      this.success = success;
12543
      this.cex = cex;
12544
    }
12545
 
12546
    /**
12547
     * Performs a deep copy on <i>other</i>.
12548
     */
12549
    public getWarehouse_result(getWarehouse_result other) {
12550
      if (other.isSetSuccess()) {
12551
        this.success = new Warehouse(other.success);
12552
      }
12553
      if (other.isSetCex()) {
12554
        this.cex = new InventoryServiceException(other.cex);
12555
      }
12556
    }
12557
 
12558
    public getWarehouse_result deepCopy() {
12559
      return new getWarehouse_result(this);
12560
    }
12561
 
12562
    @Override
12563
    public void clear() {
12564
      this.success = null;
12565
      this.cex = null;
12566
    }
12567
 
12568
    public Warehouse getSuccess() {
12569
      return this.success;
12570
    }
12571
 
12572
    public void setSuccess(Warehouse success) {
12573
      this.success = success;
12574
    }
12575
 
12576
    public void unsetSuccess() {
12577
      this.success = null;
12578
    }
12579
 
12580
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12581
    public boolean isSetSuccess() {
12582
      return this.success != null;
12583
    }
12584
 
12585
    public void setSuccessIsSet(boolean value) {
12586
      if (!value) {
12587
        this.success = null;
12588
      }
12589
    }
12590
 
12591
    public InventoryServiceException getCex() {
12592
      return this.cex;
12593
    }
12594
 
12595
    public void setCex(InventoryServiceException cex) {
12596
      this.cex = cex;
12597
    }
12598
 
12599
    public void unsetCex() {
12600
      this.cex = null;
12601
    }
12602
 
12603
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12604
    public boolean isSetCex() {
12605
      return this.cex != null;
12606
    }
12607
 
12608
    public void setCexIsSet(boolean value) {
12609
      if (!value) {
12610
        this.cex = null;
12611
      }
12612
    }
12613
 
12614
    public void setFieldValue(_Fields field, Object value) {
12615
      switch (field) {
12616
      case SUCCESS:
12617
        if (value == null) {
12618
          unsetSuccess();
12619
        } else {
12620
          setSuccess((Warehouse)value);
12621
        }
12622
        break;
12623
 
12624
      case CEX:
12625
        if (value == null) {
12626
          unsetCex();
12627
        } else {
12628
          setCex((InventoryServiceException)value);
12629
        }
12630
        break;
12631
 
12632
      }
12633
    }
12634
 
12635
    public Object getFieldValue(_Fields field) {
12636
      switch (field) {
12637
      case SUCCESS:
12638
        return getSuccess();
12639
 
12640
      case CEX:
12641
        return getCex();
12642
 
12643
      }
12644
      throw new IllegalStateException();
12645
    }
12646
 
12647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12648
    public boolean isSet(_Fields field) {
12649
      if (field == null) {
12650
        throw new IllegalArgumentException();
12651
      }
12652
 
12653
      switch (field) {
12654
      case SUCCESS:
12655
        return isSetSuccess();
12656
      case CEX:
12657
        return isSetCex();
12658
      }
12659
      throw new IllegalStateException();
12660
    }
12661
 
12662
    @Override
12663
    public boolean equals(Object that) {
12664
      if (that == null)
12665
        return false;
12666
      if (that instanceof getWarehouse_result)
12667
        return this.equals((getWarehouse_result)that);
12668
      return false;
12669
    }
12670
 
12671
    public boolean equals(getWarehouse_result that) {
12672
      if (that == null)
12673
        return false;
12674
 
12675
      boolean this_present_success = true && this.isSetSuccess();
12676
      boolean that_present_success = true && that.isSetSuccess();
12677
      if (this_present_success || that_present_success) {
12678
        if (!(this_present_success && that_present_success))
12679
          return false;
12680
        if (!this.success.equals(that.success))
12681
          return false;
12682
      }
12683
 
12684
      boolean this_present_cex = true && this.isSetCex();
12685
      boolean that_present_cex = true && that.isSetCex();
12686
      if (this_present_cex || that_present_cex) {
12687
        if (!(this_present_cex && that_present_cex))
12688
          return false;
12689
        if (!this.cex.equals(that.cex))
12690
          return false;
12691
      }
12692
 
12693
      return true;
12694
    }
12695
 
12696
    @Override
12697
    public int hashCode() {
12698
      return 0;
12699
    }
12700
 
12701
    public int compareTo(getWarehouse_result other) {
12702
      if (!getClass().equals(other.getClass())) {
12703
        return getClass().getName().compareTo(other.getClass().getName());
12704
      }
12705
 
12706
      int lastComparison = 0;
12707
      getWarehouse_result typedOther = (getWarehouse_result)other;
12708
 
12709
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12710
      if (lastComparison != 0) {
12711
        return lastComparison;
12712
      }
12713
      if (isSetSuccess()) {
12714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12715
        if (lastComparison != 0) {
12716
          return lastComparison;
12717
        }
12718
      }
12719
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12720
      if (lastComparison != 0) {
12721
        return lastComparison;
12722
      }
12723
      if (isSetCex()) {
12724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12725
        if (lastComparison != 0) {
12726
          return lastComparison;
12727
        }
12728
      }
12729
      return 0;
12730
    }
12731
 
12732
    public _Fields fieldForId(int fieldId) {
12733
      return _Fields.findByThriftId(fieldId);
12734
    }
12735
 
12736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12737
      org.apache.thrift.protocol.TField field;
12738
      iprot.readStructBegin();
12739
      while (true)
12740
      {
12741
        field = iprot.readFieldBegin();
12742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12743
          break;
12744
        }
12745
        switch (field.id) {
12746
          case 0: // SUCCESS
12747
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12748
              this.success = new Warehouse();
12749
              this.success.read(iprot);
12750
            } else { 
12751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12752
            }
12753
            break;
12754
          case 1: // CEX
12755
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12756
              this.cex = new InventoryServiceException();
12757
              this.cex.read(iprot);
12758
            } else { 
12759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12760
            }
12761
            break;
12762
          default:
12763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12764
        }
12765
        iprot.readFieldEnd();
12766
      }
12767
      iprot.readStructEnd();
12768
      validate();
12769
    }
12770
 
12771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12772
      oprot.writeStructBegin(STRUCT_DESC);
12773
 
12774
      if (this.isSetSuccess()) {
12775
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12776
        this.success.write(oprot);
12777
        oprot.writeFieldEnd();
12778
      } else if (this.isSetCex()) {
12779
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12780
        this.cex.write(oprot);
12781
        oprot.writeFieldEnd();
12782
      }
12783
      oprot.writeFieldStop();
12784
      oprot.writeStructEnd();
12785
    }
12786
 
12787
    @Override
12788
    public String toString() {
12789
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
12790
      boolean first = true;
12791
 
12792
      sb.append("success:");
12793
      if (this.success == null) {
12794
        sb.append("null");
12795
      } else {
12796
        sb.append(this.success);
12797
      }
12798
      first = false;
12799
      if (!first) sb.append(", ");
12800
      sb.append("cex:");
12801
      if (this.cex == null) {
12802
        sb.append("null");
12803
      } else {
12804
        sb.append(this.cex);
12805
      }
12806
      first = false;
12807
      sb.append(")");
12808
      return sb.toString();
12809
    }
12810
 
12811
    public void validate() throws org.apache.thrift.TException {
12812
      // check for required fields
12813
    }
12814
 
12815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12816
      try {
12817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12818
      } catch (org.apache.thrift.TException te) {
12819
        throw new java.io.IOException(te);
12820
      }
12821
    }
12822
 
12823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12824
      try {
12825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12826
      } catch (org.apache.thrift.TException te) {
12827
        throw new java.io.IOException(te);
12828
      }
12829
    }
12830
 
12831
  }
12832
 
12833
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
12835
 
12836
    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);
12837
 
12838
    private long warehouse_id; // required
12839
 
12840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12842
      WAREHOUSE_ID((short)1, "warehouse_id");
12843
 
12844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12845
 
12846
      static {
12847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12848
          byName.put(field.getFieldName(), field);
12849
        }
12850
      }
12851
 
12852
      /**
12853
       * Find the _Fields constant that matches fieldId, or null if its not found.
12854
       */
12855
      public static _Fields findByThriftId(int fieldId) {
12856
        switch(fieldId) {
12857
          case 1: // WAREHOUSE_ID
12858
            return WAREHOUSE_ID;
12859
          default:
12860
            return null;
12861
        }
12862
      }
12863
 
12864
      /**
12865
       * Find the _Fields constant that matches fieldId, throwing an exception
12866
       * if it is not found.
12867
       */
12868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12869
        _Fields fields = findByThriftId(fieldId);
12870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12871
        return fields;
12872
      }
12873
 
12874
      /**
12875
       * Find the _Fields constant that matches name, or null if its not found.
12876
       */
12877
      public static _Fields findByName(String name) {
12878
        return byName.get(name);
12879
      }
12880
 
12881
      private final short _thriftId;
12882
      private final String _fieldName;
12883
 
12884
      _Fields(short thriftId, String fieldName) {
12885
        _thriftId = thriftId;
12886
        _fieldName = fieldName;
12887
      }
12888
 
12889
      public short getThriftFieldId() {
12890
        return _thriftId;
12891
      }
12892
 
12893
      public String getFieldName() {
12894
        return _fieldName;
12895
      }
12896
    }
12897
 
12898
    // isset id assignments
12899
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
12900
    private BitSet __isset_bit_vector = new BitSet(1);
12901
 
12902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12903
    static {
12904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12905
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
12909
    }
12910
 
12911
    public getAllItemsForWarehouse_args() {
12912
    }
12913
 
12914
    public getAllItemsForWarehouse_args(
12915
      long warehouse_id)
12916
    {
12917
      this();
12918
      this.warehouse_id = warehouse_id;
12919
      setWarehouse_idIsSet(true);
12920
    }
12921
 
12922
    /**
12923
     * Performs a deep copy on <i>other</i>.
12924
     */
12925
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
12926
      __isset_bit_vector.clear();
12927
      __isset_bit_vector.or(other.__isset_bit_vector);
12928
      this.warehouse_id = other.warehouse_id;
12929
    }
12930
 
12931
    public getAllItemsForWarehouse_args deepCopy() {
12932
      return new getAllItemsForWarehouse_args(this);
12933
    }
12934
 
12935
    @Override
12936
    public void clear() {
12937
      setWarehouse_idIsSet(false);
12938
      this.warehouse_id = 0;
12939
    }
12940
 
12941
    public long getWarehouse_id() {
12942
      return this.warehouse_id;
12943
    }
12944
 
12945
    public void setWarehouse_id(long warehouse_id) {
12946
      this.warehouse_id = warehouse_id;
12947
      setWarehouse_idIsSet(true);
12948
    }
12949
 
12950
    public void unsetWarehouse_id() {
12951
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12952
    }
12953
 
12954
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12955
    public boolean isSetWarehouse_id() {
12956
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12957
    }
12958
 
12959
    public void setWarehouse_idIsSet(boolean value) {
12960
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12961
    }
12962
 
12963
    public void setFieldValue(_Fields field, Object value) {
12964
      switch (field) {
12965
      case WAREHOUSE_ID:
12966
        if (value == null) {
12967
          unsetWarehouse_id();
12968
        } else {
12969
          setWarehouse_id((Long)value);
12970
        }
12971
        break;
12972
 
12973
      }
12974
    }
12975
 
12976
    public Object getFieldValue(_Fields field) {
12977
      switch (field) {
12978
      case WAREHOUSE_ID:
12979
        return Long.valueOf(getWarehouse_id());
12980
 
12981
      }
12982
      throw new IllegalStateException();
12983
    }
12984
 
12985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12986
    public boolean isSet(_Fields field) {
12987
      if (field == null) {
12988
        throw new IllegalArgumentException();
12989
      }
12990
 
12991
      switch (field) {
12992
      case WAREHOUSE_ID:
12993
        return isSetWarehouse_id();
12994
      }
12995
      throw new IllegalStateException();
12996
    }
12997
 
12998
    @Override
12999
    public boolean equals(Object that) {
13000
      if (that == null)
13001
        return false;
13002
      if (that instanceof getAllItemsForWarehouse_args)
13003
        return this.equals((getAllItemsForWarehouse_args)that);
13004
      return false;
13005
    }
13006
 
13007
    public boolean equals(getAllItemsForWarehouse_args that) {
13008
      if (that == null)
13009
        return false;
13010
 
13011
      boolean this_present_warehouse_id = true;
13012
      boolean that_present_warehouse_id = true;
13013
      if (this_present_warehouse_id || that_present_warehouse_id) {
13014
        if (!(this_present_warehouse_id && that_present_warehouse_id))
13015
          return false;
13016
        if (this.warehouse_id != that.warehouse_id)
13017
          return false;
13018
      }
13019
 
13020
      return true;
13021
    }
13022
 
13023
    @Override
13024
    public int hashCode() {
13025
      return 0;
13026
    }
13027
 
13028
    public int compareTo(getAllItemsForWarehouse_args other) {
13029
      if (!getClass().equals(other.getClass())) {
13030
        return getClass().getName().compareTo(other.getClass().getName());
13031
      }
13032
 
13033
      int lastComparison = 0;
13034
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
13035
 
13036
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
13037
      if (lastComparison != 0) {
13038
        return lastComparison;
13039
      }
13040
      if (isSetWarehouse_id()) {
13041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
13042
        if (lastComparison != 0) {
13043
          return lastComparison;
13044
        }
13045
      }
13046
      return 0;
13047
    }
13048
 
13049
    public _Fields fieldForId(int fieldId) {
13050
      return _Fields.findByThriftId(fieldId);
13051
    }
13052
 
13053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13054
      org.apache.thrift.protocol.TField field;
13055
      iprot.readStructBegin();
13056
      while (true)
13057
      {
13058
        field = iprot.readFieldBegin();
13059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13060
          break;
13061
        }
13062
        switch (field.id) {
13063
          case 1: // WAREHOUSE_ID
13064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13065
              this.warehouse_id = iprot.readI64();
13066
              setWarehouse_idIsSet(true);
13067
            } else { 
13068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13069
            }
13070
            break;
13071
          default:
13072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13073
        }
13074
        iprot.readFieldEnd();
13075
      }
13076
      iprot.readStructEnd();
13077
      validate();
13078
    }
13079
 
13080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13081
      validate();
13082
 
13083
      oprot.writeStructBegin(STRUCT_DESC);
13084
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13085
      oprot.writeI64(this.warehouse_id);
13086
      oprot.writeFieldEnd();
13087
      oprot.writeFieldStop();
13088
      oprot.writeStructEnd();
13089
    }
13090
 
13091
    @Override
13092
    public String toString() {
13093
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
13094
      boolean first = true;
13095
 
13096
      sb.append("warehouse_id:");
13097
      sb.append(this.warehouse_id);
13098
      first = false;
13099
      sb.append(")");
13100
      return sb.toString();
13101
    }
13102
 
13103
    public void validate() throws org.apache.thrift.TException {
13104
      // check for required fields
13105
    }
13106
 
13107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13108
      try {
13109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13110
      } catch (org.apache.thrift.TException te) {
13111
        throw new java.io.IOException(te);
13112
      }
13113
    }
13114
 
13115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13116
      try {
13117
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13118
        __isset_bit_vector = new BitSet(1);
13119
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13120
      } catch (org.apache.thrift.TException te) {
13121
        throw new java.io.IOException(te);
13122
      }
13123
    }
13124
 
13125
  }
13126
 
13127
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
13128
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
13129
 
13130
    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);
13131
    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);
13132
 
13133
    private List<Long> success; // required
13134
    private InventoryServiceException cex; // required
13135
 
13136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13138
      SUCCESS((short)0, "success"),
13139
      CEX((short)1, "cex");
13140
 
13141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13142
 
13143
      static {
13144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13145
          byName.put(field.getFieldName(), field);
13146
        }
13147
      }
13148
 
13149
      /**
13150
       * Find the _Fields constant that matches fieldId, or null if its not found.
13151
       */
13152
      public static _Fields findByThriftId(int fieldId) {
13153
        switch(fieldId) {
13154
          case 0: // SUCCESS
13155
            return SUCCESS;
13156
          case 1: // CEX
13157
            return CEX;
13158
          default:
13159
            return null;
13160
        }
13161
      }
13162
 
13163
      /**
13164
       * Find the _Fields constant that matches fieldId, throwing an exception
13165
       * if it is not found.
13166
       */
13167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13168
        _Fields fields = findByThriftId(fieldId);
13169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13170
        return fields;
13171
      }
13172
 
13173
      /**
13174
       * Find the _Fields constant that matches name, or null if its not found.
13175
       */
13176
      public static _Fields findByName(String name) {
13177
        return byName.get(name);
13178
      }
13179
 
13180
      private final short _thriftId;
13181
      private final String _fieldName;
13182
 
13183
      _Fields(short thriftId, String fieldName) {
13184
        _thriftId = thriftId;
13185
        _fieldName = fieldName;
13186
      }
13187
 
13188
      public short getThriftFieldId() {
13189
        return _thriftId;
13190
      }
13191
 
13192
      public String getFieldName() {
13193
        return _fieldName;
13194
      }
13195
    }
13196
 
13197
    // isset id assignments
13198
 
13199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13200
    static {
13201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13202
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13203
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13204
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13205
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13207
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13208
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
13209
    }
13210
 
13211
    public getAllItemsForWarehouse_result() {
13212
    }
13213
 
13214
    public getAllItemsForWarehouse_result(
13215
      List<Long> success,
13216
      InventoryServiceException cex)
13217
    {
13218
      this();
13219
      this.success = success;
13220
      this.cex = cex;
13221
    }
13222
 
13223
    /**
13224
     * Performs a deep copy on <i>other</i>.
13225
     */
13226
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
13227
      if (other.isSetSuccess()) {
13228
        List<Long> __this__success = new ArrayList<Long>();
13229
        for (Long other_element : other.success) {
13230
          __this__success.add(other_element);
13231
        }
13232
        this.success = __this__success;
13233
      }
13234
      if (other.isSetCex()) {
13235
        this.cex = new InventoryServiceException(other.cex);
13236
      }
13237
    }
13238
 
13239
    public getAllItemsForWarehouse_result deepCopy() {
13240
      return new getAllItemsForWarehouse_result(this);
13241
    }
13242
 
13243
    @Override
13244
    public void clear() {
13245
      this.success = null;
13246
      this.cex = null;
13247
    }
13248
 
13249
    public int getSuccessSize() {
13250
      return (this.success == null) ? 0 : this.success.size();
13251
    }
13252
 
13253
    public java.util.Iterator<Long> getSuccessIterator() {
13254
      return (this.success == null) ? null : this.success.iterator();
13255
    }
13256
 
13257
    public void addToSuccess(long elem) {
13258
      if (this.success == null) {
13259
        this.success = new ArrayList<Long>();
13260
      }
13261
      this.success.add(elem);
13262
    }
13263
 
13264
    public List<Long> getSuccess() {
13265
      return this.success;
13266
    }
13267
 
13268
    public void setSuccess(List<Long> success) {
13269
      this.success = success;
13270
    }
13271
 
13272
    public void unsetSuccess() {
13273
      this.success = null;
13274
    }
13275
 
13276
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13277
    public boolean isSetSuccess() {
13278
      return this.success != null;
13279
    }
13280
 
13281
    public void setSuccessIsSet(boolean value) {
13282
      if (!value) {
13283
        this.success = null;
13284
      }
13285
    }
13286
 
13287
    public InventoryServiceException getCex() {
13288
      return this.cex;
13289
    }
13290
 
13291
    public void setCex(InventoryServiceException cex) {
13292
      this.cex = cex;
13293
    }
13294
 
13295
    public void unsetCex() {
13296
      this.cex = null;
13297
    }
13298
 
13299
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13300
    public boolean isSetCex() {
13301
      return this.cex != null;
13302
    }
13303
 
13304
    public void setCexIsSet(boolean value) {
13305
      if (!value) {
13306
        this.cex = null;
13307
      }
13308
    }
13309
 
13310
    public void setFieldValue(_Fields field, Object value) {
13311
      switch (field) {
13312
      case SUCCESS:
13313
        if (value == null) {
13314
          unsetSuccess();
13315
        } else {
13316
          setSuccess((List<Long>)value);
13317
        }
13318
        break;
13319
 
13320
      case CEX:
13321
        if (value == null) {
13322
          unsetCex();
13323
        } else {
13324
          setCex((InventoryServiceException)value);
13325
        }
13326
        break;
13327
 
13328
      }
13329
    }
13330
 
13331
    public Object getFieldValue(_Fields field) {
13332
      switch (field) {
13333
      case SUCCESS:
13334
        return getSuccess();
13335
 
13336
      case CEX:
13337
        return getCex();
13338
 
13339
      }
13340
      throw new IllegalStateException();
13341
    }
13342
 
13343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13344
    public boolean isSet(_Fields field) {
13345
      if (field == null) {
13346
        throw new IllegalArgumentException();
13347
      }
13348
 
13349
      switch (field) {
13350
      case SUCCESS:
13351
        return isSetSuccess();
13352
      case CEX:
13353
        return isSetCex();
13354
      }
13355
      throw new IllegalStateException();
13356
    }
13357
 
13358
    @Override
13359
    public boolean equals(Object that) {
13360
      if (that == null)
13361
        return false;
13362
      if (that instanceof getAllItemsForWarehouse_result)
13363
        return this.equals((getAllItemsForWarehouse_result)that);
13364
      return false;
13365
    }
13366
 
13367
    public boolean equals(getAllItemsForWarehouse_result that) {
13368
      if (that == null)
13369
        return false;
13370
 
13371
      boolean this_present_success = true && this.isSetSuccess();
13372
      boolean that_present_success = true && that.isSetSuccess();
13373
      if (this_present_success || that_present_success) {
13374
        if (!(this_present_success && that_present_success))
13375
          return false;
13376
        if (!this.success.equals(that.success))
13377
          return false;
13378
      }
13379
 
13380
      boolean this_present_cex = true && this.isSetCex();
13381
      boolean that_present_cex = true && that.isSetCex();
13382
      if (this_present_cex || that_present_cex) {
13383
        if (!(this_present_cex && that_present_cex))
13384
          return false;
13385
        if (!this.cex.equals(that.cex))
13386
          return false;
13387
      }
13388
 
13389
      return true;
13390
    }
13391
 
13392
    @Override
13393
    public int hashCode() {
13394
      return 0;
13395
    }
13396
 
13397
    public int compareTo(getAllItemsForWarehouse_result other) {
13398
      if (!getClass().equals(other.getClass())) {
13399
        return getClass().getName().compareTo(other.getClass().getName());
13400
      }
13401
 
13402
      int lastComparison = 0;
13403
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
13404
 
13405
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13406
      if (lastComparison != 0) {
13407
        return lastComparison;
13408
      }
13409
      if (isSetSuccess()) {
13410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13411
        if (lastComparison != 0) {
13412
          return lastComparison;
13413
        }
13414
      }
13415
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13416
      if (lastComparison != 0) {
13417
        return lastComparison;
13418
      }
13419
      if (isSetCex()) {
13420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13421
        if (lastComparison != 0) {
13422
          return lastComparison;
13423
        }
13424
      }
13425
      return 0;
13426
    }
13427
 
13428
    public _Fields fieldForId(int fieldId) {
13429
      return _Fields.findByThriftId(fieldId);
13430
    }
13431
 
13432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13433
      org.apache.thrift.protocol.TField field;
13434
      iprot.readStructBegin();
13435
      while (true)
13436
      {
13437
        field = iprot.readFieldBegin();
13438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13439
          break;
13440
        }
13441
        switch (field.id) {
13442
          case 0: // SUCCESS
13443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13444
              {
8182 amar.kumar 13445
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
13446
                this.success = new ArrayList<Long>(_list33.size);
13447
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
5945 mandeep.dh 13448
                {
8182 amar.kumar 13449
                  long _elem35; // required
13450
                  _elem35 = iprot.readI64();
13451
                  this.success.add(_elem35);
5945 mandeep.dh 13452
                }
13453
                iprot.readListEnd();
13454
              }
13455
            } else { 
13456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13457
            }
13458
            break;
13459
          case 1: // CEX
13460
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13461
              this.cex = new InventoryServiceException();
13462
              this.cex.read(iprot);
13463
            } else { 
13464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13465
            }
13466
            break;
13467
          default:
13468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13469
        }
13470
        iprot.readFieldEnd();
13471
      }
13472
      iprot.readStructEnd();
13473
      validate();
13474
    }
13475
 
13476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13477
      oprot.writeStructBegin(STRUCT_DESC);
13478
 
13479
      if (this.isSetSuccess()) {
13480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13481
        {
13482
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 13483
          for (long _iter36 : this.success)
5945 mandeep.dh 13484
          {
8182 amar.kumar 13485
            oprot.writeI64(_iter36);
5945 mandeep.dh 13486
          }
13487
          oprot.writeListEnd();
13488
        }
13489
        oprot.writeFieldEnd();
13490
      } else if (this.isSetCex()) {
13491
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13492
        this.cex.write(oprot);
13493
        oprot.writeFieldEnd();
13494
      }
13495
      oprot.writeFieldStop();
13496
      oprot.writeStructEnd();
13497
    }
13498
 
13499
    @Override
13500
    public String toString() {
13501
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
13502
      boolean first = true;
13503
 
13504
      sb.append("success:");
13505
      if (this.success == null) {
13506
        sb.append("null");
13507
      } else {
13508
        sb.append(this.success);
13509
      }
13510
      first = false;
13511
      if (!first) sb.append(", ");
13512
      sb.append("cex:");
13513
      if (this.cex == null) {
13514
        sb.append("null");
13515
      } else {
13516
        sb.append(this.cex);
13517
      }
13518
      first = false;
13519
      sb.append(")");
13520
      return sb.toString();
13521
    }
13522
 
13523
    public void validate() throws org.apache.thrift.TException {
13524
      // check for required fields
13525
    }
13526
 
13527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13528
      try {
13529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13530
      } catch (org.apache.thrift.TException te) {
13531
        throw new java.io.IOException(te);
13532
      }
13533
    }
13534
 
13535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13536
      try {
13537
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13538
      } catch (org.apache.thrift.TException te) {
13539
        throw new java.io.IOException(te);
13540
      }
13541
    }
13542
 
13543
  }
13544
 
5967 rajveer 13545
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
13546
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
13547
 
13548
    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);
13549
    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);
13550
    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);
13551
    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);
13552
 
13553
    private long itemId; // required
13554
    private long warehouseId; // required
13555
    private long sourceId; // required
13556
    private long orderId; // required
13557
 
13558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13560
      ITEM_ID((short)1, "itemId"),
13561
      WAREHOUSE_ID((short)2, "warehouseId"),
13562
      SOURCE_ID((short)3, "sourceId"),
13563
      ORDER_ID((short)4, "orderId");
13564
 
13565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13566
 
13567
      static {
13568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13569
          byName.put(field.getFieldName(), field);
13570
        }
13571
      }
13572
 
13573
      /**
13574
       * Find the _Fields constant that matches fieldId, or null if its not found.
13575
       */
13576
      public static _Fields findByThriftId(int fieldId) {
13577
        switch(fieldId) {
13578
          case 1: // ITEM_ID
13579
            return ITEM_ID;
13580
          case 2: // WAREHOUSE_ID
13581
            return WAREHOUSE_ID;
13582
          case 3: // SOURCE_ID
13583
            return SOURCE_ID;
13584
          case 4: // ORDER_ID
13585
            return ORDER_ID;
13586
          default:
13587
            return null;
13588
        }
13589
      }
13590
 
13591
      /**
13592
       * Find the _Fields constant that matches fieldId, throwing an exception
13593
       * if it is not found.
13594
       */
13595
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13596
        _Fields fields = findByThriftId(fieldId);
13597
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13598
        return fields;
13599
      }
13600
 
13601
      /**
13602
       * Find the _Fields constant that matches name, or null if its not found.
13603
       */
13604
      public static _Fields findByName(String name) {
13605
        return byName.get(name);
13606
      }
13607
 
13608
      private final short _thriftId;
13609
      private final String _fieldName;
13610
 
13611
      _Fields(short thriftId, String fieldName) {
13612
        _thriftId = thriftId;
13613
        _fieldName = fieldName;
13614
      }
13615
 
13616
      public short getThriftFieldId() {
13617
        return _thriftId;
13618
      }
13619
 
13620
      public String getFieldName() {
13621
        return _fieldName;
13622
      }
13623
    }
13624
 
13625
    // isset id assignments
13626
    private static final int __ITEMID_ISSET_ID = 0;
13627
    private static final int __WAREHOUSEID_ISSET_ID = 1;
13628
    private static final int __SOURCEID_ISSET_ID = 2;
13629
    private static final int __ORDERID_ISSET_ID = 3;
13630
    private BitSet __isset_bit_vector = new BitSet(4);
13631
 
13632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13633
    static {
13634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13635
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13637
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13639
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13641
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
13645
    }
13646
 
13647
    public isOrderBillable_args() {
13648
    }
13649
 
13650
    public isOrderBillable_args(
13651
      long itemId,
13652
      long warehouseId,
13653
      long sourceId,
13654
      long orderId)
13655
    {
13656
      this();
13657
      this.itemId = itemId;
13658
      setItemIdIsSet(true);
13659
      this.warehouseId = warehouseId;
13660
      setWarehouseIdIsSet(true);
13661
      this.sourceId = sourceId;
13662
      setSourceIdIsSet(true);
13663
      this.orderId = orderId;
13664
      setOrderIdIsSet(true);
13665
    }
13666
 
13667
    /**
13668
     * Performs a deep copy on <i>other</i>.
13669
     */
13670
    public isOrderBillable_args(isOrderBillable_args other) {
13671
      __isset_bit_vector.clear();
13672
      __isset_bit_vector.or(other.__isset_bit_vector);
13673
      this.itemId = other.itemId;
13674
      this.warehouseId = other.warehouseId;
13675
      this.sourceId = other.sourceId;
13676
      this.orderId = other.orderId;
13677
    }
13678
 
13679
    public isOrderBillable_args deepCopy() {
13680
      return new isOrderBillable_args(this);
13681
    }
13682
 
13683
    @Override
13684
    public void clear() {
13685
      setItemIdIsSet(false);
13686
      this.itemId = 0;
13687
      setWarehouseIdIsSet(false);
13688
      this.warehouseId = 0;
13689
      setSourceIdIsSet(false);
13690
      this.sourceId = 0;
13691
      setOrderIdIsSet(false);
13692
      this.orderId = 0;
13693
    }
13694
 
13695
    public long getItemId() {
13696
      return this.itemId;
13697
    }
13698
 
13699
    public void setItemId(long itemId) {
13700
      this.itemId = itemId;
13701
      setItemIdIsSet(true);
13702
    }
13703
 
13704
    public void unsetItemId() {
13705
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13706
    }
13707
 
13708
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13709
    public boolean isSetItemId() {
13710
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13711
    }
13712
 
13713
    public void setItemIdIsSet(boolean value) {
13714
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13715
    }
13716
 
13717
    public long getWarehouseId() {
13718
      return this.warehouseId;
13719
    }
13720
 
13721
    public void setWarehouseId(long warehouseId) {
13722
      this.warehouseId = warehouseId;
13723
      setWarehouseIdIsSet(true);
13724
    }
13725
 
13726
    public void unsetWarehouseId() {
13727
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13728
    }
13729
 
13730
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13731
    public boolean isSetWarehouseId() {
13732
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13733
    }
13734
 
13735
    public void setWarehouseIdIsSet(boolean value) {
13736
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13737
    }
13738
 
13739
    public long getSourceId() {
13740
      return this.sourceId;
13741
    }
13742
 
13743
    public void setSourceId(long sourceId) {
13744
      this.sourceId = sourceId;
13745
      setSourceIdIsSet(true);
13746
    }
13747
 
13748
    public void unsetSourceId() {
13749
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13750
    }
13751
 
13752
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13753
    public boolean isSetSourceId() {
13754
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13755
    }
13756
 
13757
    public void setSourceIdIsSet(boolean value) {
13758
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13759
    }
13760
 
13761
    public long getOrderId() {
13762
      return this.orderId;
13763
    }
13764
 
13765
    public void setOrderId(long orderId) {
13766
      this.orderId = orderId;
13767
      setOrderIdIsSet(true);
13768
    }
13769
 
13770
    public void unsetOrderId() {
13771
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13772
    }
13773
 
13774
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13775
    public boolean isSetOrderId() {
13776
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13777
    }
13778
 
13779
    public void setOrderIdIsSet(boolean value) {
13780
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13781
    }
13782
 
13783
    public void setFieldValue(_Fields field, Object value) {
13784
      switch (field) {
13785
      case ITEM_ID:
13786
        if (value == null) {
13787
          unsetItemId();
13788
        } else {
13789
          setItemId((Long)value);
13790
        }
13791
        break;
13792
 
13793
      case WAREHOUSE_ID:
13794
        if (value == null) {
13795
          unsetWarehouseId();
13796
        } else {
13797
          setWarehouseId((Long)value);
13798
        }
13799
        break;
13800
 
13801
      case SOURCE_ID:
13802
        if (value == null) {
13803
          unsetSourceId();
13804
        } else {
13805
          setSourceId((Long)value);
13806
        }
13807
        break;
13808
 
13809
      case ORDER_ID:
13810
        if (value == null) {
13811
          unsetOrderId();
13812
        } else {
13813
          setOrderId((Long)value);
13814
        }
13815
        break;
13816
 
13817
      }
13818
    }
13819
 
13820
    public Object getFieldValue(_Fields field) {
13821
      switch (field) {
13822
      case ITEM_ID:
13823
        return Long.valueOf(getItemId());
13824
 
13825
      case WAREHOUSE_ID:
13826
        return Long.valueOf(getWarehouseId());
13827
 
13828
      case SOURCE_ID:
13829
        return Long.valueOf(getSourceId());
13830
 
13831
      case ORDER_ID:
13832
        return Long.valueOf(getOrderId());
13833
 
13834
      }
13835
      throw new IllegalStateException();
13836
    }
13837
 
13838
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13839
    public boolean isSet(_Fields field) {
13840
      if (field == null) {
13841
        throw new IllegalArgumentException();
13842
      }
13843
 
13844
      switch (field) {
13845
      case ITEM_ID:
13846
        return isSetItemId();
13847
      case WAREHOUSE_ID:
13848
        return isSetWarehouseId();
13849
      case SOURCE_ID:
13850
        return isSetSourceId();
13851
      case ORDER_ID:
13852
        return isSetOrderId();
13853
      }
13854
      throw new IllegalStateException();
13855
    }
13856
 
13857
    @Override
13858
    public boolean equals(Object that) {
13859
      if (that == null)
13860
        return false;
13861
      if (that instanceof isOrderBillable_args)
13862
        return this.equals((isOrderBillable_args)that);
13863
      return false;
13864
    }
13865
 
13866
    public boolean equals(isOrderBillable_args that) {
13867
      if (that == null)
13868
        return false;
13869
 
13870
      boolean this_present_itemId = true;
13871
      boolean that_present_itemId = true;
13872
      if (this_present_itemId || that_present_itemId) {
13873
        if (!(this_present_itemId && that_present_itemId))
13874
          return false;
13875
        if (this.itemId != that.itemId)
13876
          return false;
13877
      }
13878
 
13879
      boolean this_present_warehouseId = true;
13880
      boolean that_present_warehouseId = true;
13881
      if (this_present_warehouseId || that_present_warehouseId) {
13882
        if (!(this_present_warehouseId && that_present_warehouseId))
13883
          return false;
13884
        if (this.warehouseId != that.warehouseId)
13885
          return false;
13886
      }
13887
 
13888
      boolean this_present_sourceId = true;
13889
      boolean that_present_sourceId = true;
13890
      if (this_present_sourceId || that_present_sourceId) {
13891
        if (!(this_present_sourceId && that_present_sourceId))
13892
          return false;
13893
        if (this.sourceId != that.sourceId)
13894
          return false;
13895
      }
13896
 
13897
      boolean this_present_orderId = true;
13898
      boolean that_present_orderId = true;
13899
      if (this_present_orderId || that_present_orderId) {
13900
        if (!(this_present_orderId && that_present_orderId))
13901
          return false;
13902
        if (this.orderId != that.orderId)
13903
          return false;
13904
      }
13905
 
13906
      return true;
13907
    }
13908
 
13909
    @Override
13910
    public int hashCode() {
13911
      return 0;
13912
    }
13913
 
13914
    public int compareTo(isOrderBillable_args other) {
13915
      if (!getClass().equals(other.getClass())) {
13916
        return getClass().getName().compareTo(other.getClass().getName());
13917
      }
13918
 
13919
      int lastComparison = 0;
13920
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
13921
 
13922
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13923
      if (lastComparison != 0) {
13924
        return lastComparison;
13925
      }
13926
      if (isSetItemId()) {
13927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13928
        if (lastComparison != 0) {
13929
          return lastComparison;
13930
        }
13931
      }
13932
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13933
      if (lastComparison != 0) {
13934
        return lastComparison;
13935
      }
13936
      if (isSetWarehouseId()) {
13937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13938
        if (lastComparison != 0) {
13939
          return lastComparison;
13940
        }
13941
      }
13942
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13943
      if (lastComparison != 0) {
13944
        return lastComparison;
13945
      }
13946
      if (isSetSourceId()) {
13947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13948
        if (lastComparison != 0) {
13949
          return lastComparison;
13950
        }
13951
      }
13952
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13953
      if (lastComparison != 0) {
13954
        return lastComparison;
13955
      }
13956
      if (isSetOrderId()) {
13957
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13958
        if (lastComparison != 0) {
13959
          return lastComparison;
13960
        }
13961
      }
13962
      return 0;
13963
    }
13964
 
13965
    public _Fields fieldForId(int fieldId) {
13966
      return _Fields.findByThriftId(fieldId);
13967
    }
13968
 
13969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13970
      org.apache.thrift.protocol.TField field;
13971
      iprot.readStructBegin();
13972
      while (true)
13973
      {
13974
        field = iprot.readFieldBegin();
13975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13976
          break;
13977
        }
13978
        switch (field.id) {
13979
          case 1: // ITEM_ID
13980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13981
              this.itemId = iprot.readI64();
13982
              setItemIdIsSet(true);
13983
            } else { 
13984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13985
            }
13986
            break;
13987
          case 2: // WAREHOUSE_ID
13988
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13989
              this.warehouseId = iprot.readI64();
13990
              setWarehouseIdIsSet(true);
13991
            } else { 
13992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13993
            }
13994
            break;
13995
          case 3: // SOURCE_ID
13996
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13997
              this.sourceId = iprot.readI64();
13998
              setSourceIdIsSet(true);
13999
            } else { 
14000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14001
            }
14002
            break;
14003
          case 4: // ORDER_ID
14004
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14005
              this.orderId = iprot.readI64();
14006
              setOrderIdIsSet(true);
14007
            } else { 
14008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14009
            }
14010
            break;
14011
          default:
14012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14013
        }
14014
        iprot.readFieldEnd();
14015
      }
14016
      iprot.readStructEnd();
14017
      validate();
14018
    }
14019
 
14020
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14021
      validate();
14022
 
14023
      oprot.writeStructBegin(STRUCT_DESC);
14024
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14025
      oprot.writeI64(this.itemId);
14026
      oprot.writeFieldEnd();
14027
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14028
      oprot.writeI64(this.warehouseId);
14029
      oprot.writeFieldEnd();
14030
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14031
      oprot.writeI64(this.sourceId);
14032
      oprot.writeFieldEnd();
14033
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14034
      oprot.writeI64(this.orderId);
14035
      oprot.writeFieldEnd();
14036
      oprot.writeFieldStop();
14037
      oprot.writeStructEnd();
14038
    }
14039
 
14040
    @Override
14041
    public String toString() {
14042
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
14043
      boolean first = true;
14044
 
14045
      sb.append("itemId:");
14046
      sb.append(this.itemId);
14047
      first = false;
14048
      if (!first) sb.append(", ");
14049
      sb.append("warehouseId:");
14050
      sb.append(this.warehouseId);
14051
      first = false;
14052
      if (!first) sb.append(", ");
14053
      sb.append("sourceId:");
14054
      sb.append(this.sourceId);
14055
      first = false;
14056
      if (!first) sb.append(", ");
14057
      sb.append("orderId:");
14058
      sb.append(this.orderId);
14059
      first = false;
14060
      sb.append(")");
14061
      return sb.toString();
14062
    }
14063
 
14064
    public void validate() throws org.apache.thrift.TException {
14065
      // check for required fields
14066
    }
14067
 
14068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14069
      try {
14070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14071
      } catch (org.apache.thrift.TException te) {
14072
        throw new java.io.IOException(te);
14073
      }
14074
    }
14075
 
14076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14077
      try {
14078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14079
      } catch (org.apache.thrift.TException te) {
14080
        throw new java.io.IOException(te);
14081
      }
14082
    }
14083
 
14084
  }
14085
 
14086
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
14087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
14088
 
14089
    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);
14090
 
14091
    private boolean success; // required
14092
 
14093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14095
      SUCCESS((short)0, "success");
14096
 
14097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14098
 
14099
      static {
14100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14101
          byName.put(field.getFieldName(), field);
14102
        }
14103
      }
14104
 
14105
      /**
14106
       * Find the _Fields constant that matches fieldId, or null if its not found.
14107
       */
14108
      public static _Fields findByThriftId(int fieldId) {
14109
        switch(fieldId) {
14110
          case 0: // SUCCESS
14111
            return SUCCESS;
14112
          default:
14113
            return null;
14114
        }
14115
      }
14116
 
14117
      /**
14118
       * Find the _Fields constant that matches fieldId, throwing an exception
14119
       * if it is not found.
14120
       */
14121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14122
        _Fields fields = findByThriftId(fieldId);
14123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14124
        return fields;
14125
      }
14126
 
14127
      /**
14128
       * Find the _Fields constant that matches name, or null if its not found.
14129
       */
14130
      public static _Fields findByName(String name) {
14131
        return byName.get(name);
14132
      }
14133
 
14134
      private final short _thriftId;
14135
      private final String _fieldName;
14136
 
14137
      _Fields(short thriftId, String fieldName) {
14138
        _thriftId = thriftId;
14139
        _fieldName = fieldName;
14140
      }
14141
 
14142
      public short getThriftFieldId() {
14143
        return _thriftId;
14144
      }
14145
 
14146
      public String getFieldName() {
14147
        return _fieldName;
14148
      }
14149
    }
14150
 
14151
    // isset id assignments
14152
    private static final int __SUCCESS_ISSET_ID = 0;
14153
    private BitSet __isset_bit_vector = new BitSet(1);
14154
 
14155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14156
    static {
14157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14158
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
14162
    }
14163
 
14164
    public isOrderBillable_result() {
14165
    }
14166
 
14167
    public isOrderBillable_result(
14168
      boolean success)
14169
    {
14170
      this();
14171
      this.success = success;
14172
      setSuccessIsSet(true);
14173
    }
14174
 
14175
    /**
14176
     * Performs a deep copy on <i>other</i>.
14177
     */
14178
    public isOrderBillable_result(isOrderBillable_result other) {
14179
      __isset_bit_vector.clear();
14180
      __isset_bit_vector.or(other.__isset_bit_vector);
14181
      this.success = other.success;
14182
    }
14183
 
14184
    public isOrderBillable_result deepCopy() {
14185
      return new isOrderBillable_result(this);
14186
    }
14187
 
14188
    @Override
14189
    public void clear() {
14190
      setSuccessIsSet(false);
14191
      this.success = false;
14192
    }
14193
 
14194
    public boolean isSuccess() {
14195
      return this.success;
14196
    }
14197
 
14198
    public void setSuccess(boolean success) {
14199
      this.success = success;
14200
      setSuccessIsSet(true);
14201
    }
14202
 
14203
    public void unsetSuccess() {
14204
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14205
    }
14206
 
14207
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14208
    public boolean isSetSuccess() {
14209
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14210
    }
14211
 
14212
    public void setSuccessIsSet(boolean value) {
14213
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14214
    }
14215
 
14216
    public void setFieldValue(_Fields field, Object value) {
14217
      switch (field) {
14218
      case SUCCESS:
14219
        if (value == null) {
14220
          unsetSuccess();
14221
        } else {
14222
          setSuccess((Boolean)value);
14223
        }
14224
        break;
14225
 
14226
      }
14227
    }
14228
 
14229
    public Object getFieldValue(_Fields field) {
14230
      switch (field) {
14231
      case SUCCESS:
14232
        return Boolean.valueOf(isSuccess());
14233
 
14234
      }
14235
      throw new IllegalStateException();
14236
    }
14237
 
14238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14239
    public boolean isSet(_Fields field) {
14240
      if (field == null) {
14241
        throw new IllegalArgumentException();
14242
      }
14243
 
14244
      switch (field) {
14245
      case SUCCESS:
14246
        return isSetSuccess();
14247
      }
14248
      throw new IllegalStateException();
14249
    }
14250
 
14251
    @Override
14252
    public boolean equals(Object that) {
14253
      if (that == null)
14254
        return false;
14255
      if (that instanceof isOrderBillable_result)
14256
        return this.equals((isOrderBillable_result)that);
14257
      return false;
14258
    }
14259
 
14260
    public boolean equals(isOrderBillable_result that) {
14261
      if (that == null)
14262
        return false;
14263
 
14264
      boolean this_present_success = true;
14265
      boolean that_present_success = true;
14266
      if (this_present_success || that_present_success) {
14267
        if (!(this_present_success && that_present_success))
14268
          return false;
14269
        if (this.success != that.success)
14270
          return false;
14271
      }
14272
 
14273
      return true;
14274
    }
14275
 
14276
    @Override
14277
    public int hashCode() {
14278
      return 0;
14279
    }
14280
 
14281
    public int compareTo(isOrderBillable_result other) {
14282
      if (!getClass().equals(other.getClass())) {
14283
        return getClass().getName().compareTo(other.getClass().getName());
14284
      }
14285
 
14286
      int lastComparison = 0;
14287
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
14288
 
14289
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14290
      if (lastComparison != 0) {
14291
        return lastComparison;
14292
      }
14293
      if (isSetSuccess()) {
14294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14295
        if (lastComparison != 0) {
14296
          return lastComparison;
14297
        }
14298
      }
14299
      return 0;
14300
    }
14301
 
14302
    public _Fields fieldForId(int fieldId) {
14303
      return _Fields.findByThriftId(fieldId);
14304
    }
14305
 
14306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14307
      org.apache.thrift.protocol.TField field;
14308
      iprot.readStructBegin();
14309
      while (true)
14310
      {
14311
        field = iprot.readFieldBegin();
14312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14313
          break;
14314
        }
14315
        switch (field.id) {
14316
          case 0: // SUCCESS
14317
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14318
              this.success = iprot.readBool();
14319
              setSuccessIsSet(true);
14320
            } else { 
14321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14322
            }
14323
            break;
14324
          default:
14325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14326
        }
14327
        iprot.readFieldEnd();
14328
      }
14329
      iprot.readStructEnd();
14330
      validate();
14331
    }
14332
 
14333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14334
      oprot.writeStructBegin(STRUCT_DESC);
14335
 
14336
      if (this.isSetSuccess()) {
14337
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14338
        oprot.writeBool(this.success);
14339
        oprot.writeFieldEnd();
14340
      }
14341
      oprot.writeFieldStop();
14342
      oprot.writeStructEnd();
14343
    }
14344
 
14345
    @Override
14346
    public String toString() {
14347
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
14348
      boolean first = true;
14349
 
14350
      sb.append("success:");
14351
      sb.append(this.success);
14352
      first = false;
14353
      sb.append(")");
14354
      return sb.toString();
14355
    }
14356
 
14357
    public void validate() throws org.apache.thrift.TException {
14358
      // check for required fields
14359
    }
14360
 
14361
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14362
      try {
14363
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14364
      } catch (org.apache.thrift.TException te) {
14365
        throw new java.io.IOException(te);
14366
      }
14367
    }
14368
 
14369
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14370
      try {
14371
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14372
      } catch (org.apache.thrift.TException te) {
14373
        throw new java.io.IOException(te);
14374
      }
14375
    }
14376
 
14377
  }
14378
 
5945 mandeep.dh 14379
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
14380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
14381
 
14382
    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);
14383
    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 14384
    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);
14385
    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);
14386
    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);
14387
    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);
14388
    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 14389
 
14390
    private long itemId; // required
14391
    private long warehouseId; // required
5967 rajveer 14392
    private long sourceId; // required
14393
    private long orderId; // required
14394
    private long createdTimestamp; // required
14395
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 14396
    private double quantity; // required
14397
 
14398
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14399
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14400
      ITEM_ID((short)1, "itemId"),
14401
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14402
      SOURCE_ID((short)3, "sourceId"),
14403
      ORDER_ID((short)4, "orderId"),
14404
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
14405
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
14406
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 14407
 
14408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14409
 
14410
      static {
14411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14412
          byName.put(field.getFieldName(), field);
14413
        }
14414
      }
14415
 
14416
      /**
14417
       * Find the _Fields constant that matches fieldId, or null if its not found.
14418
       */
14419
      public static _Fields findByThriftId(int fieldId) {
14420
        switch(fieldId) {
14421
          case 1: // ITEM_ID
14422
            return ITEM_ID;
14423
          case 2: // WAREHOUSE_ID
14424
            return WAREHOUSE_ID;
5967 rajveer 14425
          case 3: // SOURCE_ID
14426
            return SOURCE_ID;
14427
          case 4: // ORDER_ID
14428
            return ORDER_ID;
14429
          case 5: // CREATED_TIMESTAMP
14430
            return CREATED_TIMESTAMP;
14431
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14432
            return PROMISED_SHIPPING_TIMESTAMP;
14433
          case 7: // QUANTITY
5945 mandeep.dh 14434
            return QUANTITY;
14435
          default:
14436
            return null;
14437
        }
14438
      }
14439
 
14440
      /**
14441
       * Find the _Fields constant that matches fieldId, throwing an exception
14442
       * if it is not found.
14443
       */
14444
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14445
        _Fields fields = findByThriftId(fieldId);
14446
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14447
        return fields;
14448
      }
14449
 
14450
      /**
14451
       * Find the _Fields constant that matches name, or null if its not found.
14452
       */
14453
      public static _Fields findByName(String name) {
14454
        return byName.get(name);
14455
      }
14456
 
14457
      private final short _thriftId;
14458
      private final String _fieldName;
14459
 
14460
      _Fields(short thriftId, String fieldName) {
14461
        _thriftId = thriftId;
14462
        _fieldName = fieldName;
14463
      }
14464
 
14465
      public short getThriftFieldId() {
14466
        return _thriftId;
14467
      }
14468
 
14469
      public String getFieldName() {
14470
        return _fieldName;
14471
      }
14472
    }
14473
 
14474
    // isset id assignments
14475
    private static final int __ITEMID_ISSET_ID = 0;
14476
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14477
    private static final int __SOURCEID_ISSET_ID = 2;
14478
    private static final int __ORDERID_ISSET_ID = 3;
14479
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
14480
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
14481
    private static final int __QUANTITY_ISSET_ID = 6;
14482
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 14483
 
14484
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14485
    static {
14486
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14487
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14489
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14491
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14493
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14495
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14497
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14499
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14501
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14502
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
14503
    }
14504
 
14505
    public reserveItemInWarehouse_args() {
14506
    }
14507
 
14508
    public reserveItemInWarehouse_args(
14509
      long itemId,
14510
      long warehouseId,
5967 rajveer 14511
      long sourceId,
14512
      long orderId,
14513
      long createdTimestamp,
14514
      long promisedShippingTimestamp,
5945 mandeep.dh 14515
      double quantity)
14516
    {
14517
      this();
14518
      this.itemId = itemId;
14519
      setItemIdIsSet(true);
14520
      this.warehouseId = warehouseId;
14521
      setWarehouseIdIsSet(true);
5967 rajveer 14522
      this.sourceId = sourceId;
14523
      setSourceIdIsSet(true);
14524
      this.orderId = orderId;
14525
      setOrderIdIsSet(true);
14526
      this.createdTimestamp = createdTimestamp;
14527
      setCreatedTimestampIsSet(true);
14528
      this.promisedShippingTimestamp = promisedShippingTimestamp;
14529
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 14530
      this.quantity = quantity;
14531
      setQuantityIsSet(true);
14532
    }
14533
 
14534
    /**
14535
     * Performs a deep copy on <i>other</i>.
14536
     */
14537
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
14538
      __isset_bit_vector.clear();
14539
      __isset_bit_vector.or(other.__isset_bit_vector);
14540
      this.itemId = other.itemId;
14541
      this.warehouseId = other.warehouseId;
5967 rajveer 14542
      this.sourceId = other.sourceId;
14543
      this.orderId = other.orderId;
14544
      this.createdTimestamp = other.createdTimestamp;
14545
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 14546
      this.quantity = other.quantity;
14547
    }
14548
 
14549
    public reserveItemInWarehouse_args deepCopy() {
14550
      return new reserveItemInWarehouse_args(this);
14551
    }
14552
 
14553
    @Override
14554
    public void clear() {
14555
      setItemIdIsSet(false);
14556
      this.itemId = 0;
14557
      setWarehouseIdIsSet(false);
14558
      this.warehouseId = 0;
5967 rajveer 14559
      setSourceIdIsSet(false);
14560
      this.sourceId = 0;
14561
      setOrderIdIsSet(false);
14562
      this.orderId = 0;
14563
      setCreatedTimestampIsSet(false);
14564
      this.createdTimestamp = 0;
14565
      setPromisedShippingTimestampIsSet(false);
14566
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 14567
      setQuantityIsSet(false);
14568
      this.quantity = 0.0;
14569
    }
14570
 
14571
    public long getItemId() {
14572
      return this.itemId;
14573
    }
14574
 
14575
    public void setItemId(long itemId) {
14576
      this.itemId = itemId;
14577
      setItemIdIsSet(true);
14578
    }
14579
 
14580
    public void unsetItemId() {
14581
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14582
    }
14583
 
14584
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14585
    public boolean isSetItemId() {
14586
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14587
    }
14588
 
14589
    public void setItemIdIsSet(boolean value) {
14590
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14591
    }
14592
 
14593
    public long getWarehouseId() {
14594
      return this.warehouseId;
14595
    }
14596
 
14597
    public void setWarehouseId(long warehouseId) {
14598
      this.warehouseId = warehouseId;
14599
      setWarehouseIdIsSet(true);
14600
    }
14601
 
14602
    public void unsetWarehouseId() {
14603
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14604
    }
14605
 
14606
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14607
    public boolean isSetWarehouseId() {
14608
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14609
    }
14610
 
14611
    public void setWarehouseIdIsSet(boolean value) {
14612
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14613
    }
14614
 
5967 rajveer 14615
    public long getSourceId() {
14616
      return this.sourceId;
14617
    }
14618
 
14619
    public void setSourceId(long sourceId) {
14620
      this.sourceId = sourceId;
14621
      setSourceIdIsSet(true);
14622
    }
14623
 
14624
    public void unsetSourceId() {
14625
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14626
    }
14627
 
14628
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14629
    public boolean isSetSourceId() {
14630
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14631
    }
14632
 
14633
    public void setSourceIdIsSet(boolean value) {
14634
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14635
    }
14636
 
14637
    public long getOrderId() {
14638
      return this.orderId;
14639
    }
14640
 
14641
    public void setOrderId(long orderId) {
14642
      this.orderId = orderId;
14643
      setOrderIdIsSet(true);
14644
    }
14645
 
14646
    public void unsetOrderId() {
14647
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14648
    }
14649
 
14650
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14651
    public boolean isSetOrderId() {
14652
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14653
    }
14654
 
14655
    public void setOrderIdIsSet(boolean value) {
14656
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14657
    }
14658
 
14659
    public long getCreatedTimestamp() {
14660
      return this.createdTimestamp;
14661
    }
14662
 
14663
    public void setCreatedTimestamp(long createdTimestamp) {
14664
      this.createdTimestamp = createdTimestamp;
14665
      setCreatedTimestampIsSet(true);
14666
    }
14667
 
14668
    public void unsetCreatedTimestamp() {
14669
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
14670
    }
14671
 
14672
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
14673
    public boolean isSetCreatedTimestamp() {
14674
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
14675
    }
14676
 
14677
    public void setCreatedTimestampIsSet(boolean value) {
14678
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
14679
    }
14680
 
14681
    public long getPromisedShippingTimestamp() {
14682
      return this.promisedShippingTimestamp;
14683
    }
14684
 
14685
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
14686
      this.promisedShippingTimestamp = promisedShippingTimestamp;
14687
      setPromisedShippingTimestampIsSet(true);
14688
    }
14689
 
14690
    public void unsetPromisedShippingTimestamp() {
14691
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
14692
    }
14693
 
14694
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
14695
    public boolean isSetPromisedShippingTimestamp() {
14696
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
14697
    }
14698
 
14699
    public void setPromisedShippingTimestampIsSet(boolean value) {
14700
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
14701
    }
14702
 
5945 mandeep.dh 14703
    public double getQuantity() {
14704
      return this.quantity;
14705
    }
14706
 
14707
    public void setQuantity(double quantity) {
14708
      this.quantity = quantity;
14709
      setQuantityIsSet(true);
14710
    }
14711
 
14712
    public void unsetQuantity() {
14713
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14714
    }
14715
 
14716
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14717
    public boolean isSetQuantity() {
14718
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14719
    }
14720
 
14721
    public void setQuantityIsSet(boolean value) {
14722
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14723
    }
14724
 
14725
    public void setFieldValue(_Fields field, Object value) {
14726
      switch (field) {
14727
      case ITEM_ID:
14728
        if (value == null) {
14729
          unsetItemId();
14730
        } else {
14731
          setItemId((Long)value);
14732
        }
14733
        break;
14734
 
14735
      case WAREHOUSE_ID:
14736
        if (value == null) {
14737
          unsetWarehouseId();
14738
        } else {
14739
          setWarehouseId((Long)value);
14740
        }
14741
        break;
14742
 
5967 rajveer 14743
      case SOURCE_ID:
14744
        if (value == null) {
14745
          unsetSourceId();
14746
        } else {
14747
          setSourceId((Long)value);
14748
        }
14749
        break;
14750
 
14751
      case ORDER_ID:
14752
        if (value == null) {
14753
          unsetOrderId();
14754
        } else {
14755
          setOrderId((Long)value);
14756
        }
14757
        break;
14758
 
14759
      case CREATED_TIMESTAMP:
14760
        if (value == null) {
14761
          unsetCreatedTimestamp();
14762
        } else {
14763
          setCreatedTimestamp((Long)value);
14764
        }
14765
        break;
14766
 
14767
      case PROMISED_SHIPPING_TIMESTAMP:
14768
        if (value == null) {
14769
          unsetPromisedShippingTimestamp();
14770
        } else {
14771
          setPromisedShippingTimestamp((Long)value);
14772
        }
14773
        break;
14774
 
5945 mandeep.dh 14775
      case QUANTITY:
14776
        if (value == null) {
14777
          unsetQuantity();
14778
        } else {
14779
          setQuantity((Double)value);
14780
        }
14781
        break;
14782
 
14783
      }
14784
    }
14785
 
14786
    public Object getFieldValue(_Fields field) {
14787
      switch (field) {
14788
      case ITEM_ID:
14789
        return Long.valueOf(getItemId());
14790
 
14791
      case WAREHOUSE_ID:
14792
        return Long.valueOf(getWarehouseId());
14793
 
5967 rajveer 14794
      case SOURCE_ID:
14795
        return Long.valueOf(getSourceId());
14796
 
14797
      case ORDER_ID:
14798
        return Long.valueOf(getOrderId());
14799
 
14800
      case CREATED_TIMESTAMP:
14801
        return Long.valueOf(getCreatedTimestamp());
14802
 
14803
      case PROMISED_SHIPPING_TIMESTAMP:
14804
        return Long.valueOf(getPromisedShippingTimestamp());
14805
 
5945 mandeep.dh 14806
      case QUANTITY:
14807
        return Double.valueOf(getQuantity());
14808
 
14809
      }
14810
      throw new IllegalStateException();
14811
    }
14812
 
14813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14814
    public boolean isSet(_Fields field) {
14815
      if (field == null) {
14816
        throw new IllegalArgumentException();
14817
      }
14818
 
14819
      switch (field) {
14820
      case ITEM_ID:
14821
        return isSetItemId();
14822
      case WAREHOUSE_ID:
14823
        return isSetWarehouseId();
5967 rajveer 14824
      case SOURCE_ID:
14825
        return isSetSourceId();
14826
      case ORDER_ID:
14827
        return isSetOrderId();
14828
      case CREATED_TIMESTAMP:
14829
        return isSetCreatedTimestamp();
14830
      case PROMISED_SHIPPING_TIMESTAMP:
14831
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 14832
      case QUANTITY:
14833
        return isSetQuantity();
14834
      }
14835
      throw new IllegalStateException();
14836
    }
14837
 
14838
    @Override
14839
    public boolean equals(Object that) {
14840
      if (that == null)
14841
        return false;
14842
      if (that instanceof reserveItemInWarehouse_args)
14843
        return this.equals((reserveItemInWarehouse_args)that);
14844
      return false;
14845
    }
14846
 
14847
    public boolean equals(reserveItemInWarehouse_args that) {
14848
      if (that == null)
14849
        return false;
14850
 
14851
      boolean this_present_itemId = true;
14852
      boolean that_present_itemId = true;
14853
      if (this_present_itemId || that_present_itemId) {
14854
        if (!(this_present_itemId && that_present_itemId))
14855
          return false;
14856
        if (this.itemId != that.itemId)
14857
          return false;
14858
      }
14859
 
14860
      boolean this_present_warehouseId = true;
14861
      boolean that_present_warehouseId = true;
14862
      if (this_present_warehouseId || that_present_warehouseId) {
14863
        if (!(this_present_warehouseId && that_present_warehouseId))
14864
          return false;
14865
        if (this.warehouseId != that.warehouseId)
14866
          return false;
14867
      }
14868
 
5967 rajveer 14869
      boolean this_present_sourceId = true;
14870
      boolean that_present_sourceId = true;
14871
      if (this_present_sourceId || that_present_sourceId) {
14872
        if (!(this_present_sourceId && that_present_sourceId))
14873
          return false;
14874
        if (this.sourceId != that.sourceId)
14875
          return false;
14876
      }
14877
 
14878
      boolean this_present_orderId = true;
14879
      boolean that_present_orderId = true;
14880
      if (this_present_orderId || that_present_orderId) {
14881
        if (!(this_present_orderId && that_present_orderId))
14882
          return false;
14883
        if (this.orderId != that.orderId)
14884
          return false;
14885
      }
14886
 
14887
      boolean this_present_createdTimestamp = true;
14888
      boolean that_present_createdTimestamp = true;
14889
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
14890
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
14891
          return false;
14892
        if (this.createdTimestamp != that.createdTimestamp)
14893
          return false;
14894
      }
14895
 
14896
      boolean this_present_promisedShippingTimestamp = true;
14897
      boolean that_present_promisedShippingTimestamp = true;
14898
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
14899
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
14900
          return false;
14901
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
14902
          return false;
14903
      }
14904
 
5945 mandeep.dh 14905
      boolean this_present_quantity = true;
14906
      boolean that_present_quantity = true;
14907
      if (this_present_quantity || that_present_quantity) {
14908
        if (!(this_present_quantity && that_present_quantity))
14909
          return false;
14910
        if (this.quantity != that.quantity)
14911
          return false;
14912
      }
14913
 
14914
      return true;
14915
    }
14916
 
14917
    @Override
14918
    public int hashCode() {
14919
      return 0;
14920
    }
14921
 
14922
    public int compareTo(reserveItemInWarehouse_args other) {
14923
      if (!getClass().equals(other.getClass())) {
14924
        return getClass().getName().compareTo(other.getClass().getName());
14925
      }
14926
 
14927
      int lastComparison = 0;
14928
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
14929
 
14930
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14931
      if (lastComparison != 0) {
14932
        return lastComparison;
14933
      }
14934
      if (isSetItemId()) {
14935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14936
        if (lastComparison != 0) {
14937
          return lastComparison;
14938
        }
14939
      }
14940
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14941
      if (lastComparison != 0) {
14942
        return lastComparison;
14943
      }
14944
      if (isSetWarehouseId()) {
14945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14946
        if (lastComparison != 0) {
14947
          return lastComparison;
14948
        }
14949
      }
5967 rajveer 14950
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14951
      if (lastComparison != 0) {
14952
        return lastComparison;
14953
      }
14954
      if (isSetSourceId()) {
14955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14956
        if (lastComparison != 0) {
14957
          return lastComparison;
14958
        }
14959
      }
14960
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14961
      if (lastComparison != 0) {
14962
        return lastComparison;
14963
      }
14964
      if (isSetOrderId()) {
14965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14966
        if (lastComparison != 0) {
14967
          return lastComparison;
14968
        }
14969
      }
14970
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
14971
      if (lastComparison != 0) {
14972
        return lastComparison;
14973
      }
14974
      if (isSetCreatedTimestamp()) {
14975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
14976
        if (lastComparison != 0) {
14977
          return lastComparison;
14978
        }
14979
      }
14980
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
14981
      if (lastComparison != 0) {
14982
        return lastComparison;
14983
      }
14984
      if (isSetPromisedShippingTimestamp()) {
14985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
14986
        if (lastComparison != 0) {
14987
          return lastComparison;
14988
        }
14989
      }
5945 mandeep.dh 14990
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14991
      if (lastComparison != 0) {
14992
        return lastComparison;
14993
      }
14994
      if (isSetQuantity()) {
14995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14996
        if (lastComparison != 0) {
14997
          return lastComparison;
14998
        }
14999
      }
15000
      return 0;
15001
    }
15002
 
15003
    public _Fields fieldForId(int fieldId) {
15004
      return _Fields.findByThriftId(fieldId);
15005
    }
15006
 
15007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15008
      org.apache.thrift.protocol.TField field;
15009
      iprot.readStructBegin();
15010
      while (true)
15011
      {
15012
        field = iprot.readFieldBegin();
15013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15014
          break;
15015
        }
15016
        switch (field.id) {
15017
          case 1: // ITEM_ID
15018
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15019
              this.itemId = iprot.readI64();
15020
              setItemIdIsSet(true);
15021
            } else { 
15022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15023
            }
15024
            break;
15025
          case 2: // WAREHOUSE_ID
15026
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15027
              this.warehouseId = iprot.readI64();
15028
              setWarehouseIdIsSet(true);
15029
            } else { 
15030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15031
            }
15032
            break;
5967 rajveer 15033
          case 3: // SOURCE_ID
15034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15035
              this.sourceId = iprot.readI64();
15036
              setSourceIdIsSet(true);
15037
            } else { 
15038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15039
            }
15040
            break;
15041
          case 4: // ORDER_ID
15042
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15043
              this.orderId = iprot.readI64();
15044
              setOrderIdIsSet(true);
15045
            } else { 
15046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15047
            }
15048
            break;
15049
          case 5: // CREATED_TIMESTAMP
15050
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15051
              this.createdTimestamp = iprot.readI64();
15052
              setCreatedTimestampIsSet(true);
15053
            } else { 
15054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15055
            }
15056
            break;
15057
          case 6: // PROMISED_SHIPPING_TIMESTAMP
15058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15059
              this.promisedShippingTimestamp = iprot.readI64();
15060
              setPromisedShippingTimestampIsSet(true);
15061
            } else { 
15062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15063
            }
15064
            break;
15065
          case 7: // QUANTITY
5945 mandeep.dh 15066
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15067
              this.quantity = iprot.readDouble();
15068
              setQuantityIsSet(true);
15069
            } else { 
15070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15071
            }
15072
            break;
15073
          default:
15074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15075
        }
15076
        iprot.readFieldEnd();
15077
      }
15078
      iprot.readStructEnd();
15079
      validate();
15080
    }
15081
 
15082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15083
      validate();
15084
 
15085
      oprot.writeStructBegin(STRUCT_DESC);
15086
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15087
      oprot.writeI64(this.itemId);
15088
      oprot.writeFieldEnd();
15089
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15090
      oprot.writeI64(this.warehouseId);
15091
      oprot.writeFieldEnd();
5967 rajveer 15092
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15093
      oprot.writeI64(this.sourceId);
15094
      oprot.writeFieldEnd();
15095
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15096
      oprot.writeI64(this.orderId);
15097
      oprot.writeFieldEnd();
15098
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
15099
      oprot.writeI64(this.createdTimestamp);
15100
      oprot.writeFieldEnd();
15101
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
15102
      oprot.writeI64(this.promisedShippingTimestamp);
15103
      oprot.writeFieldEnd();
5945 mandeep.dh 15104
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
15105
      oprot.writeDouble(this.quantity);
15106
      oprot.writeFieldEnd();
15107
      oprot.writeFieldStop();
15108
      oprot.writeStructEnd();
15109
    }
15110
 
15111
    @Override
15112
    public String toString() {
15113
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
15114
      boolean first = true;
15115
 
15116
      sb.append("itemId:");
15117
      sb.append(this.itemId);
15118
      first = false;
15119
      if (!first) sb.append(", ");
15120
      sb.append("warehouseId:");
15121
      sb.append(this.warehouseId);
15122
      first = false;
15123
      if (!first) sb.append(", ");
5967 rajveer 15124
      sb.append("sourceId:");
15125
      sb.append(this.sourceId);
15126
      first = false;
15127
      if (!first) sb.append(", ");
15128
      sb.append("orderId:");
15129
      sb.append(this.orderId);
15130
      first = false;
15131
      if (!first) sb.append(", ");
15132
      sb.append("createdTimestamp:");
15133
      sb.append(this.createdTimestamp);
15134
      first = false;
15135
      if (!first) sb.append(", ");
15136
      sb.append("promisedShippingTimestamp:");
15137
      sb.append(this.promisedShippingTimestamp);
15138
      first = false;
15139
      if (!first) sb.append(", ");
5945 mandeep.dh 15140
      sb.append("quantity:");
15141
      sb.append(this.quantity);
15142
      first = false;
15143
      sb.append(")");
15144
      return sb.toString();
15145
    }
15146
 
15147
    public void validate() throws org.apache.thrift.TException {
15148
      // check for required fields
15149
    }
15150
 
15151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15152
      try {
15153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15154
      } catch (org.apache.thrift.TException te) {
15155
        throw new java.io.IOException(te);
15156
      }
15157
    }
15158
 
15159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15160
      try {
15161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15162
      } catch (org.apache.thrift.TException te) {
15163
        throw new java.io.IOException(te);
15164
      }
15165
    }
15166
 
15167
  }
15168
 
15169
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
15170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
15171
 
15172
    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);
15173
    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);
15174
 
15175
    private boolean success; // required
15176
    private InventoryServiceException cex; // required
15177
 
15178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15180
      SUCCESS((short)0, "success"),
15181
      CEX((short)1, "cex");
15182
 
15183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15184
 
15185
      static {
15186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15187
          byName.put(field.getFieldName(), field);
15188
        }
15189
      }
15190
 
15191
      /**
15192
       * Find the _Fields constant that matches fieldId, or null if its not found.
15193
       */
15194
      public static _Fields findByThriftId(int fieldId) {
15195
        switch(fieldId) {
15196
          case 0: // SUCCESS
15197
            return SUCCESS;
15198
          case 1: // CEX
15199
            return CEX;
15200
          default:
15201
            return null;
15202
        }
15203
      }
15204
 
15205
      /**
15206
       * Find the _Fields constant that matches fieldId, throwing an exception
15207
       * if it is not found.
15208
       */
15209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15210
        _Fields fields = findByThriftId(fieldId);
15211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15212
        return fields;
15213
      }
15214
 
15215
      /**
15216
       * Find the _Fields constant that matches name, or null if its not found.
15217
       */
15218
      public static _Fields findByName(String name) {
15219
        return byName.get(name);
15220
      }
15221
 
15222
      private final short _thriftId;
15223
      private final String _fieldName;
15224
 
15225
      _Fields(short thriftId, String fieldName) {
15226
        _thriftId = thriftId;
15227
        _fieldName = fieldName;
15228
      }
15229
 
15230
      public short getThriftFieldId() {
15231
        return _thriftId;
15232
      }
15233
 
15234
      public String getFieldName() {
15235
        return _fieldName;
15236
      }
15237
    }
15238
 
15239
    // isset id assignments
15240
    private static final int __SUCCESS_ISSET_ID = 0;
15241
    private BitSet __isset_bit_vector = new BitSet(1);
15242
 
15243
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15244
    static {
15245
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15246
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15248
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15250
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15251
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
15252
    }
15253
 
15254
    public reserveItemInWarehouse_result() {
15255
    }
15256
 
15257
    public reserveItemInWarehouse_result(
15258
      boolean success,
15259
      InventoryServiceException cex)
15260
    {
15261
      this();
15262
      this.success = success;
15263
      setSuccessIsSet(true);
15264
      this.cex = cex;
15265
    }
15266
 
15267
    /**
15268
     * Performs a deep copy on <i>other</i>.
15269
     */
15270
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
15271
      __isset_bit_vector.clear();
15272
      __isset_bit_vector.or(other.__isset_bit_vector);
15273
      this.success = other.success;
15274
      if (other.isSetCex()) {
15275
        this.cex = new InventoryServiceException(other.cex);
15276
      }
15277
    }
15278
 
15279
    public reserveItemInWarehouse_result deepCopy() {
15280
      return new reserveItemInWarehouse_result(this);
15281
    }
15282
 
15283
    @Override
15284
    public void clear() {
15285
      setSuccessIsSet(false);
15286
      this.success = false;
15287
      this.cex = null;
15288
    }
15289
 
15290
    public boolean isSuccess() {
15291
      return this.success;
15292
    }
15293
 
15294
    public void setSuccess(boolean success) {
15295
      this.success = success;
15296
      setSuccessIsSet(true);
15297
    }
15298
 
15299
    public void unsetSuccess() {
15300
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15301
    }
15302
 
15303
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15304
    public boolean isSetSuccess() {
15305
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15306
    }
15307
 
15308
    public void setSuccessIsSet(boolean value) {
15309
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15310
    }
15311
 
15312
    public InventoryServiceException getCex() {
15313
      return this.cex;
15314
    }
15315
 
15316
    public void setCex(InventoryServiceException cex) {
15317
      this.cex = cex;
15318
    }
15319
 
15320
    public void unsetCex() {
15321
      this.cex = null;
15322
    }
15323
 
15324
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15325
    public boolean isSetCex() {
15326
      return this.cex != null;
15327
    }
15328
 
15329
    public void setCexIsSet(boolean value) {
15330
      if (!value) {
15331
        this.cex = null;
15332
      }
15333
    }
15334
 
15335
    public void setFieldValue(_Fields field, Object value) {
15336
      switch (field) {
15337
      case SUCCESS:
15338
        if (value == null) {
15339
          unsetSuccess();
15340
        } else {
15341
          setSuccess((Boolean)value);
15342
        }
15343
        break;
15344
 
15345
      case CEX:
15346
        if (value == null) {
15347
          unsetCex();
15348
        } else {
15349
          setCex((InventoryServiceException)value);
15350
        }
15351
        break;
15352
 
15353
      }
15354
    }
15355
 
15356
    public Object getFieldValue(_Fields field) {
15357
      switch (field) {
15358
      case SUCCESS:
15359
        return Boolean.valueOf(isSuccess());
15360
 
15361
      case CEX:
15362
        return getCex();
15363
 
15364
      }
15365
      throw new IllegalStateException();
15366
    }
15367
 
15368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15369
    public boolean isSet(_Fields field) {
15370
      if (field == null) {
15371
        throw new IllegalArgumentException();
15372
      }
15373
 
15374
      switch (field) {
15375
      case SUCCESS:
15376
        return isSetSuccess();
15377
      case CEX:
15378
        return isSetCex();
15379
      }
15380
      throw new IllegalStateException();
15381
    }
15382
 
15383
    @Override
15384
    public boolean equals(Object that) {
15385
      if (that == null)
15386
        return false;
15387
      if (that instanceof reserveItemInWarehouse_result)
15388
        return this.equals((reserveItemInWarehouse_result)that);
15389
      return false;
15390
    }
15391
 
15392
    public boolean equals(reserveItemInWarehouse_result that) {
15393
      if (that == null)
15394
        return false;
15395
 
15396
      boolean this_present_success = true;
15397
      boolean that_present_success = true;
15398
      if (this_present_success || that_present_success) {
15399
        if (!(this_present_success && that_present_success))
15400
          return false;
15401
        if (this.success != that.success)
15402
          return false;
15403
      }
15404
 
15405
      boolean this_present_cex = true && this.isSetCex();
15406
      boolean that_present_cex = true && that.isSetCex();
15407
      if (this_present_cex || that_present_cex) {
15408
        if (!(this_present_cex && that_present_cex))
15409
          return false;
15410
        if (!this.cex.equals(that.cex))
15411
          return false;
15412
      }
15413
 
15414
      return true;
15415
    }
15416
 
15417
    @Override
15418
    public int hashCode() {
15419
      return 0;
15420
    }
15421
 
15422
    public int compareTo(reserveItemInWarehouse_result other) {
15423
      if (!getClass().equals(other.getClass())) {
15424
        return getClass().getName().compareTo(other.getClass().getName());
15425
      }
15426
 
15427
      int lastComparison = 0;
15428
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
15429
 
15430
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15431
      if (lastComparison != 0) {
15432
        return lastComparison;
15433
      }
15434
      if (isSetSuccess()) {
15435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15436
        if (lastComparison != 0) {
15437
          return lastComparison;
15438
        }
15439
      }
15440
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15441
      if (lastComparison != 0) {
15442
        return lastComparison;
15443
      }
15444
      if (isSetCex()) {
15445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15446
        if (lastComparison != 0) {
15447
          return lastComparison;
15448
        }
15449
      }
15450
      return 0;
15451
    }
15452
 
15453
    public _Fields fieldForId(int fieldId) {
15454
      return _Fields.findByThriftId(fieldId);
15455
    }
15456
 
15457
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15458
      org.apache.thrift.protocol.TField field;
15459
      iprot.readStructBegin();
15460
      while (true)
15461
      {
15462
        field = iprot.readFieldBegin();
15463
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15464
          break;
15465
        }
15466
        switch (field.id) {
15467
          case 0: // SUCCESS
15468
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15469
              this.success = iprot.readBool();
15470
              setSuccessIsSet(true);
15471
            } else { 
15472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15473
            }
15474
            break;
15475
          case 1: // CEX
15476
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15477
              this.cex = new InventoryServiceException();
15478
              this.cex.read(iprot);
15479
            } else { 
15480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15481
            }
15482
            break;
15483
          default:
15484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15485
        }
15486
        iprot.readFieldEnd();
15487
      }
15488
      iprot.readStructEnd();
15489
      validate();
15490
    }
15491
 
15492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15493
      oprot.writeStructBegin(STRUCT_DESC);
15494
 
15495
      if (this.isSetSuccess()) {
15496
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15497
        oprot.writeBool(this.success);
15498
        oprot.writeFieldEnd();
15499
      } else if (this.isSetCex()) {
15500
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15501
        this.cex.write(oprot);
15502
        oprot.writeFieldEnd();
15503
      }
15504
      oprot.writeFieldStop();
15505
      oprot.writeStructEnd();
15506
    }
15507
 
15508
    @Override
15509
    public String toString() {
15510
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
15511
      boolean first = true;
15512
 
15513
      sb.append("success:");
15514
      sb.append(this.success);
15515
      first = false;
15516
      if (!first) sb.append(", ");
15517
      sb.append("cex:");
15518
      if (this.cex == null) {
15519
        sb.append("null");
15520
      } else {
15521
        sb.append(this.cex);
15522
      }
15523
      first = false;
15524
      sb.append(")");
15525
      return sb.toString();
15526
    }
15527
 
15528
    public void validate() throws org.apache.thrift.TException {
15529
      // check for required fields
15530
    }
15531
 
15532
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15533
      try {
15534
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15535
      } catch (org.apache.thrift.TException te) {
15536
        throw new java.io.IOException(te);
15537
      }
15538
    }
15539
 
15540
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15541
      try {
15542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15543
      } catch (org.apache.thrift.TException te) {
15544
        throw new java.io.IOException(te);
15545
      }
15546
    }
15547
 
15548
  }
15549
 
7968 amar.kumar 15550
  public static class updateReservationForOrder_args implements org.apache.thrift.TBase<updateReservationForOrder_args, updateReservationForOrder_args._Fields>, java.io.Serializable, Cloneable   {
15551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_args");
15552
 
15553
    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);
15554
    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);
15555
    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);
15556
    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);
15557
    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);
15558
    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);
15559
    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);
15560
 
15561
    private long itemId; // required
15562
    private long warehouseId; // required
15563
    private long sourceId; // required
15564
    private long orderId; // required
15565
    private long createdTimestamp; // required
15566
    private long promisedShippingTimestamp; // required
15567
    private double quantity; // required
15568
 
15569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15571
      ITEM_ID((short)1, "itemId"),
15572
      WAREHOUSE_ID((short)2, "warehouseId"),
15573
      SOURCE_ID((short)3, "sourceId"),
15574
      ORDER_ID((short)4, "orderId"),
15575
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
15576
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
15577
      QUANTITY((short)7, "quantity");
15578
 
15579
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15580
 
15581
      static {
15582
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15583
          byName.put(field.getFieldName(), field);
15584
        }
15585
      }
15586
 
15587
      /**
15588
       * Find the _Fields constant that matches fieldId, or null if its not found.
15589
       */
15590
      public static _Fields findByThriftId(int fieldId) {
15591
        switch(fieldId) {
15592
          case 1: // ITEM_ID
15593
            return ITEM_ID;
15594
          case 2: // WAREHOUSE_ID
15595
            return WAREHOUSE_ID;
15596
          case 3: // SOURCE_ID
15597
            return SOURCE_ID;
15598
          case 4: // ORDER_ID
15599
            return ORDER_ID;
15600
          case 5: // CREATED_TIMESTAMP
15601
            return CREATED_TIMESTAMP;
15602
          case 6: // PROMISED_SHIPPING_TIMESTAMP
15603
            return PROMISED_SHIPPING_TIMESTAMP;
15604
          case 7: // QUANTITY
15605
            return QUANTITY;
15606
          default:
15607
            return null;
15608
        }
15609
      }
15610
 
15611
      /**
15612
       * Find the _Fields constant that matches fieldId, throwing an exception
15613
       * if it is not found.
15614
       */
15615
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15616
        _Fields fields = findByThriftId(fieldId);
15617
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15618
        return fields;
15619
      }
15620
 
15621
      /**
15622
       * Find the _Fields constant that matches name, or null if its not found.
15623
       */
15624
      public static _Fields findByName(String name) {
15625
        return byName.get(name);
15626
      }
15627
 
15628
      private final short _thriftId;
15629
      private final String _fieldName;
15630
 
15631
      _Fields(short thriftId, String fieldName) {
15632
        _thriftId = thriftId;
15633
        _fieldName = fieldName;
15634
      }
15635
 
15636
      public short getThriftFieldId() {
15637
        return _thriftId;
15638
      }
15639
 
15640
      public String getFieldName() {
15641
        return _fieldName;
15642
      }
15643
    }
15644
 
15645
    // isset id assignments
15646
    private static final int __ITEMID_ISSET_ID = 0;
15647
    private static final int __WAREHOUSEID_ISSET_ID = 1;
15648
    private static final int __SOURCEID_ISSET_ID = 2;
15649
    private static final int __ORDERID_ISSET_ID = 3;
15650
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
15651
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
15652
    private static final int __QUANTITY_ISSET_ID = 6;
15653
    private BitSet __isset_bit_vector = new BitSet(7);
15654
 
15655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15656
    static {
15657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15658
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15660
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15662
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15663
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15664
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15666
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15668
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15670
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_args.class, metaDataMap);
15674
    }
15675
 
15676
    public updateReservationForOrder_args() {
15677
    }
15678
 
15679
    public updateReservationForOrder_args(
15680
      long itemId,
15681
      long warehouseId,
15682
      long sourceId,
15683
      long orderId,
15684
      long createdTimestamp,
15685
      long promisedShippingTimestamp,
15686
      double quantity)
15687
    {
15688
      this();
15689
      this.itemId = itemId;
15690
      setItemIdIsSet(true);
15691
      this.warehouseId = warehouseId;
15692
      setWarehouseIdIsSet(true);
15693
      this.sourceId = sourceId;
15694
      setSourceIdIsSet(true);
15695
      this.orderId = orderId;
15696
      setOrderIdIsSet(true);
15697
      this.createdTimestamp = createdTimestamp;
15698
      setCreatedTimestampIsSet(true);
15699
      this.promisedShippingTimestamp = promisedShippingTimestamp;
15700
      setPromisedShippingTimestampIsSet(true);
15701
      this.quantity = quantity;
15702
      setQuantityIsSet(true);
15703
    }
15704
 
15705
    /**
15706
     * Performs a deep copy on <i>other</i>.
15707
     */
15708
    public updateReservationForOrder_args(updateReservationForOrder_args other) {
15709
      __isset_bit_vector.clear();
15710
      __isset_bit_vector.or(other.__isset_bit_vector);
15711
      this.itemId = other.itemId;
15712
      this.warehouseId = other.warehouseId;
15713
      this.sourceId = other.sourceId;
15714
      this.orderId = other.orderId;
15715
      this.createdTimestamp = other.createdTimestamp;
15716
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
15717
      this.quantity = other.quantity;
15718
    }
15719
 
15720
    public updateReservationForOrder_args deepCopy() {
15721
      return new updateReservationForOrder_args(this);
15722
    }
15723
 
15724
    @Override
15725
    public void clear() {
15726
      setItemIdIsSet(false);
15727
      this.itemId = 0;
15728
      setWarehouseIdIsSet(false);
15729
      this.warehouseId = 0;
15730
      setSourceIdIsSet(false);
15731
      this.sourceId = 0;
15732
      setOrderIdIsSet(false);
15733
      this.orderId = 0;
15734
      setCreatedTimestampIsSet(false);
15735
      this.createdTimestamp = 0;
15736
      setPromisedShippingTimestampIsSet(false);
15737
      this.promisedShippingTimestamp = 0;
15738
      setQuantityIsSet(false);
15739
      this.quantity = 0.0;
15740
    }
15741
 
15742
    public long getItemId() {
15743
      return this.itemId;
15744
    }
15745
 
15746
    public void setItemId(long itemId) {
15747
      this.itemId = itemId;
15748
      setItemIdIsSet(true);
15749
    }
15750
 
15751
    public void unsetItemId() {
15752
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15753
    }
15754
 
15755
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15756
    public boolean isSetItemId() {
15757
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15758
    }
15759
 
15760
    public void setItemIdIsSet(boolean value) {
15761
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15762
    }
15763
 
15764
    public long getWarehouseId() {
15765
      return this.warehouseId;
15766
    }
15767
 
15768
    public void setWarehouseId(long warehouseId) {
15769
      this.warehouseId = warehouseId;
15770
      setWarehouseIdIsSet(true);
15771
    }
15772
 
15773
    public void unsetWarehouseId() {
15774
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
15775
    }
15776
 
15777
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
15778
    public boolean isSetWarehouseId() {
15779
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
15780
    }
15781
 
15782
    public void setWarehouseIdIsSet(boolean value) {
15783
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
15784
    }
15785
 
15786
    public long getSourceId() {
15787
      return this.sourceId;
15788
    }
15789
 
15790
    public void setSourceId(long sourceId) {
15791
      this.sourceId = sourceId;
15792
      setSourceIdIsSet(true);
15793
    }
15794
 
15795
    public void unsetSourceId() {
15796
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
15797
    }
15798
 
15799
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
15800
    public boolean isSetSourceId() {
15801
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
15802
    }
15803
 
15804
    public void setSourceIdIsSet(boolean value) {
15805
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
15806
    }
15807
 
15808
    public long getOrderId() {
15809
      return this.orderId;
15810
    }
15811
 
15812
    public void setOrderId(long orderId) {
15813
      this.orderId = orderId;
15814
      setOrderIdIsSet(true);
15815
    }
15816
 
15817
    public void unsetOrderId() {
15818
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15819
    }
15820
 
15821
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
15822
    public boolean isSetOrderId() {
15823
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15824
    }
15825
 
15826
    public void setOrderIdIsSet(boolean value) {
15827
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15828
    }
15829
 
15830
    public long getCreatedTimestamp() {
15831
      return this.createdTimestamp;
15832
    }
15833
 
15834
    public void setCreatedTimestamp(long createdTimestamp) {
15835
      this.createdTimestamp = createdTimestamp;
15836
      setCreatedTimestampIsSet(true);
15837
    }
15838
 
15839
    public void unsetCreatedTimestamp() {
15840
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
15841
    }
15842
 
15843
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
15844
    public boolean isSetCreatedTimestamp() {
15845
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
15846
    }
15847
 
15848
    public void setCreatedTimestampIsSet(boolean value) {
15849
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
15850
    }
15851
 
15852
    public long getPromisedShippingTimestamp() {
15853
      return this.promisedShippingTimestamp;
15854
    }
15855
 
15856
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
15857
      this.promisedShippingTimestamp = promisedShippingTimestamp;
15858
      setPromisedShippingTimestampIsSet(true);
15859
    }
15860
 
15861
    public void unsetPromisedShippingTimestamp() {
15862
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
15863
    }
15864
 
15865
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
15866
    public boolean isSetPromisedShippingTimestamp() {
15867
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
15868
    }
15869
 
15870
    public void setPromisedShippingTimestampIsSet(boolean value) {
15871
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
15872
    }
15873
 
15874
    public double getQuantity() {
15875
      return this.quantity;
15876
    }
15877
 
15878
    public void setQuantity(double quantity) {
15879
      this.quantity = quantity;
15880
      setQuantityIsSet(true);
15881
    }
15882
 
15883
    public void unsetQuantity() {
15884
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
15885
    }
15886
 
15887
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
15888
    public boolean isSetQuantity() {
15889
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
15890
    }
15891
 
15892
    public void setQuantityIsSet(boolean value) {
15893
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
15894
    }
15895
 
15896
    public void setFieldValue(_Fields field, Object value) {
15897
      switch (field) {
15898
      case ITEM_ID:
15899
        if (value == null) {
15900
          unsetItemId();
15901
        } else {
15902
          setItemId((Long)value);
15903
        }
15904
        break;
15905
 
15906
      case WAREHOUSE_ID:
15907
        if (value == null) {
15908
          unsetWarehouseId();
15909
        } else {
15910
          setWarehouseId((Long)value);
15911
        }
15912
        break;
15913
 
15914
      case SOURCE_ID:
15915
        if (value == null) {
15916
          unsetSourceId();
15917
        } else {
15918
          setSourceId((Long)value);
15919
        }
15920
        break;
15921
 
15922
      case ORDER_ID:
15923
        if (value == null) {
15924
          unsetOrderId();
15925
        } else {
15926
          setOrderId((Long)value);
15927
        }
15928
        break;
15929
 
15930
      case CREATED_TIMESTAMP:
15931
        if (value == null) {
15932
          unsetCreatedTimestamp();
15933
        } else {
15934
          setCreatedTimestamp((Long)value);
15935
        }
15936
        break;
15937
 
15938
      case PROMISED_SHIPPING_TIMESTAMP:
15939
        if (value == null) {
15940
          unsetPromisedShippingTimestamp();
15941
        } else {
15942
          setPromisedShippingTimestamp((Long)value);
15943
        }
15944
        break;
15945
 
15946
      case QUANTITY:
15947
        if (value == null) {
15948
          unsetQuantity();
15949
        } else {
15950
          setQuantity((Double)value);
15951
        }
15952
        break;
15953
 
15954
      }
15955
    }
15956
 
15957
    public Object getFieldValue(_Fields field) {
15958
      switch (field) {
15959
      case ITEM_ID:
15960
        return Long.valueOf(getItemId());
15961
 
15962
      case WAREHOUSE_ID:
15963
        return Long.valueOf(getWarehouseId());
15964
 
15965
      case SOURCE_ID:
15966
        return Long.valueOf(getSourceId());
15967
 
15968
      case ORDER_ID:
15969
        return Long.valueOf(getOrderId());
15970
 
15971
      case CREATED_TIMESTAMP:
15972
        return Long.valueOf(getCreatedTimestamp());
15973
 
15974
      case PROMISED_SHIPPING_TIMESTAMP:
15975
        return Long.valueOf(getPromisedShippingTimestamp());
15976
 
15977
      case QUANTITY:
15978
        return Double.valueOf(getQuantity());
15979
 
15980
      }
15981
      throw new IllegalStateException();
15982
    }
15983
 
15984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15985
    public boolean isSet(_Fields field) {
15986
      if (field == null) {
15987
        throw new IllegalArgumentException();
15988
      }
15989
 
15990
      switch (field) {
15991
      case ITEM_ID:
15992
        return isSetItemId();
15993
      case WAREHOUSE_ID:
15994
        return isSetWarehouseId();
15995
      case SOURCE_ID:
15996
        return isSetSourceId();
15997
      case ORDER_ID:
15998
        return isSetOrderId();
15999
      case CREATED_TIMESTAMP:
16000
        return isSetCreatedTimestamp();
16001
      case PROMISED_SHIPPING_TIMESTAMP:
16002
        return isSetPromisedShippingTimestamp();
16003
      case QUANTITY:
16004
        return isSetQuantity();
16005
      }
16006
      throw new IllegalStateException();
16007
    }
16008
 
16009
    @Override
16010
    public boolean equals(Object that) {
16011
      if (that == null)
16012
        return false;
16013
      if (that instanceof updateReservationForOrder_args)
16014
        return this.equals((updateReservationForOrder_args)that);
16015
      return false;
16016
    }
16017
 
16018
    public boolean equals(updateReservationForOrder_args that) {
16019
      if (that == null)
16020
        return false;
16021
 
16022
      boolean this_present_itemId = true;
16023
      boolean that_present_itemId = true;
16024
      if (this_present_itemId || that_present_itemId) {
16025
        if (!(this_present_itemId && that_present_itemId))
16026
          return false;
16027
        if (this.itemId != that.itemId)
16028
          return false;
16029
      }
16030
 
16031
      boolean this_present_warehouseId = true;
16032
      boolean that_present_warehouseId = true;
16033
      if (this_present_warehouseId || that_present_warehouseId) {
16034
        if (!(this_present_warehouseId && that_present_warehouseId))
16035
          return false;
16036
        if (this.warehouseId != that.warehouseId)
16037
          return false;
16038
      }
16039
 
16040
      boolean this_present_sourceId = true;
16041
      boolean that_present_sourceId = true;
16042
      if (this_present_sourceId || that_present_sourceId) {
16043
        if (!(this_present_sourceId && that_present_sourceId))
16044
          return false;
16045
        if (this.sourceId != that.sourceId)
16046
          return false;
16047
      }
16048
 
16049
      boolean this_present_orderId = true;
16050
      boolean that_present_orderId = true;
16051
      if (this_present_orderId || that_present_orderId) {
16052
        if (!(this_present_orderId && that_present_orderId))
16053
          return false;
16054
        if (this.orderId != that.orderId)
16055
          return false;
16056
      }
16057
 
16058
      boolean this_present_createdTimestamp = true;
16059
      boolean that_present_createdTimestamp = true;
16060
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
16061
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
16062
          return false;
16063
        if (this.createdTimestamp != that.createdTimestamp)
16064
          return false;
16065
      }
16066
 
16067
      boolean this_present_promisedShippingTimestamp = true;
16068
      boolean that_present_promisedShippingTimestamp = true;
16069
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
16070
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
16071
          return false;
16072
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
16073
          return false;
16074
      }
16075
 
16076
      boolean this_present_quantity = true;
16077
      boolean that_present_quantity = true;
16078
      if (this_present_quantity || that_present_quantity) {
16079
        if (!(this_present_quantity && that_present_quantity))
16080
          return false;
16081
        if (this.quantity != that.quantity)
16082
          return false;
16083
      }
16084
 
16085
      return true;
16086
    }
16087
 
16088
    @Override
16089
    public int hashCode() {
16090
      return 0;
16091
    }
16092
 
16093
    public int compareTo(updateReservationForOrder_args other) {
16094
      if (!getClass().equals(other.getClass())) {
16095
        return getClass().getName().compareTo(other.getClass().getName());
16096
      }
16097
 
16098
      int lastComparison = 0;
16099
      updateReservationForOrder_args typedOther = (updateReservationForOrder_args)other;
16100
 
16101
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16102
      if (lastComparison != 0) {
16103
        return lastComparison;
16104
      }
16105
      if (isSetItemId()) {
16106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16107
        if (lastComparison != 0) {
16108
          return lastComparison;
16109
        }
16110
      }
16111
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
16112
      if (lastComparison != 0) {
16113
        return lastComparison;
16114
      }
16115
      if (isSetWarehouseId()) {
16116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
16117
        if (lastComparison != 0) {
16118
          return lastComparison;
16119
        }
16120
      }
16121
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
16122
      if (lastComparison != 0) {
16123
        return lastComparison;
16124
      }
16125
      if (isSetSourceId()) {
16126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
16127
        if (lastComparison != 0) {
16128
          return lastComparison;
16129
        }
16130
      }
16131
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
16132
      if (lastComparison != 0) {
16133
        return lastComparison;
16134
      }
16135
      if (isSetOrderId()) {
16136
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
16137
        if (lastComparison != 0) {
16138
          return lastComparison;
16139
        }
16140
      }
16141
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
16142
      if (lastComparison != 0) {
16143
        return lastComparison;
16144
      }
16145
      if (isSetCreatedTimestamp()) {
16146
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
16147
        if (lastComparison != 0) {
16148
          return lastComparison;
16149
        }
16150
      }
16151
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
16152
      if (lastComparison != 0) {
16153
        return lastComparison;
16154
      }
16155
      if (isSetPromisedShippingTimestamp()) {
16156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
16157
        if (lastComparison != 0) {
16158
          return lastComparison;
16159
        }
16160
      }
16161
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
16162
      if (lastComparison != 0) {
16163
        return lastComparison;
16164
      }
16165
      if (isSetQuantity()) {
16166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
16167
        if (lastComparison != 0) {
16168
          return lastComparison;
16169
        }
16170
      }
16171
      return 0;
16172
    }
16173
 
16174
    public _Fields fieldForId(int fieldId) {
16175
      return _Fields.findByThriftId(fieldId);
16176
    }
16177
 
16178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16179
      org.apache.thrift.protocol.TField field;
16180
      iprot.readStructBegin();
16181
      while (true)
16182
      {
16183
        field = iprot.readFieldBegin();
16184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16185
          break;
16186
        }
16187
        switch (field.id) {
16188
          case 1: // ITEM_ID
16189
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16190
              this.itemId = iprot.readI64();
16191
              setItemIdIsSet(true);
16192
            } else { 
16193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16194
            }
16195
            break;
16196
          case 2: // WAREHOUSE_ID
16197
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16198
              this.warehouseId = iprot.readI64();
16199
              setWarehouseIdIsSet(true);
16200
            } else { 
16201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16202
            }
16203
            break;
16204
          case 3: // SOURCE_ID
16205
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16206
              this.sourceId = iprot.readI64();
16207
              setSourceIdIsSet(true);
16208
            } else { 
16209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16210
            }
16211
            break;
16212
          case 4: // ORDER_ID
16213
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16214
              this.orderId = iprot.readI64();
16215
              setOrderIdIsSet(true);
16216
            } else { 
16217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16218
            }
16219
            break;
16220
          case 5: // CREATED_TIMESTAMP
16221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16222
              this.createdTimestamp = iprot.readI64();
16223
              setCreatedTimestampIsSet(true);
16224
            } else { 
16225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16226
            }
16227
            break;
16228
          case 6: // PROMISED_SHIPPING_TIMESTAMP
16229
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16230
              this.promisedShippingTimestamp = iprot.readI64();
16231
              setPromisedShippingTimestampIsSet(true);
16232
            } else { 
16233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16234
            }
16235
            break;
16236
          case 7: // QUANTITY
16237
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
16238
              this.quantity = iprot.readDouble();
16239
              setQuantityIsSet(true);
16240
            } else { 
16241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16242
            }
16243
            break;
16244
          default:
16245
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16246
        }
16247
        iprot.readFieldEnd();
16248
      }
16249
      iprot.readStructEnd();
16250
      validate();
16251
    }
16252
 
16253
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16254
      validate();
16255
 
16256
      oprot.writeStructBegin(STRUCT_DESC);
16257
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16258
      oprot.writeI64(this.itemId);
16259
      oprot.writeFieldEnd();
16260
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
16261
      oprot.writeI64(this.warehouseId);
16262
      oprot.writeFieldEnd();
16263
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
16264
      oprot.writeI64(this.sourceId);
16265
      oprot.writeFieldEnd();
16266
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16267
      oprot.writeI64(this.orderId);
16268
      oprot.writeFieldEnd();
16269
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
16270
      oprot.writeI64(this.createdTimestamp);
16271
      oprot.writeFieldEnd();
16272
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
16273
      oprot.writeI64(this.promisedShippingTimestamp);
16274
      oprot.writeFieldEnd();
16275
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
16276
      oprot.writeDouble(this.quantity);
16277
      oprot.writeFieldEnd();
16278
      oprot.writeFieldStop();
16279
      oprot.writeStructEnd();
16280
    }
16281
 
16282
    @Override
16283
    public String toString() {
16284
      StringBuilder sb = new StringBuilder("updateReservationForOrder_args(");
16285
      boolean first = true;
16286
 
16287
      sb.append("itemId:");
16288
      sb.append(this.itemId);
16289
      first = false;
16290
      if (!first) sb.append(", ");
16291
      sb.append("warehouseId:");
16292
      sb.append(this.warehouseId);
16293
      first = false;
16294
      if (!first) sb.append(", ");
16295
      sb.append("sourceId:");
16296
      sb.append(this.sourceId);
16297
      first = false;
16298
      if (!first) sb.append(", ");
16299
      sb.append("orderId:");
16300
      sb.append(this.orderId);
16301
      first = false;
16302
      if (!first) sb.append(", ");
16303
      sb.append("createdTimestamp:");
16304
      sb.append(this.createdTimestamp);
16305
      first = false;
16306
      if (!first) sb.append(", ");
16307
      sb.append("promisedShippingTimestamp:");
16308
      sb.append(this.promisedShippingTimestamp);
16309
      first = false;
16310
      if (!first) sb.append(", ");
16311
      sb.append("quantity:");
16312
      sb.append(this.quantity);
16313
      first = false;
16314
      sb.append(")");
16315
      return sb.toString();
16316
    }
16317
 
16318
    public void validate() throws org.apache.thrift.TException {
16319
      // check for required fields
16320
    }
16321
 
16322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16323
      try {
16324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16325
      } catch (org.apache.thrift.TException te) {
16326
        throw new java.io.IOException(te);
16327
      }
16328
    }
16329
 
16330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16331
      try {
16332
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16333
        __isset_bit_vector = new BitSet(1);
16334
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16335
      } catch (org.apache.thrift.TException te) {
16336
        throw new java.io.IOException(te);
16337
      }
16338
    }
16339
 
16340
  }
16341
 
16342
  public static class updateReservationForOrder_result implements org.apache.thrift.TBase<updateReservationForOrder_result, updateReservationForOrder_result._Fields>, java.io.Serializable, Cloneable   {
16343
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_result");
16344
 
16345
    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);
16346
    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);
16347
 
16348
    private boolean success; // required
16349
    private InventoryServiceException cex; // required
16350
 
16351
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16352
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16353
      SUCCESS((short)0, "success"),
16354
      CEX((short)1, "cex");
16355
 
16356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16357
 
16358
      static {
16359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16360
          byName.put(field.getFieldName(), field);
16361
        }
16362
      }
16363
 
16364
      /**
16365
       * Find the _Fields constant that matches fieldId, or null if its not found.
16366
       */
16367
      public static _Fields findByThriftId(int fieldId) {
16368
        switch(fieldId) {
16369
          case 0: // SUCCESS
16370
            return SUCCESS;
16371
          case 1: // CEX
16372
            return CEX;
16373
          default:
16374
            return null;
16375
        }
16376
      }
16377
 
16378
      /**
16379
       * Find the _Fields constant that matches fieldId, throwing an exception
16380
       * if it is not found.
16381
       */
16382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16383
        _Fields fields = findByThriftId(fieldId);
16384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16385
        return fields;
16386
      }
16387
 
16388
      /**
16389
       * Find the _Fields constant that matches name, or null if its not found.
16390
       */
16391
      public static _Fields findByName(String name) {
16392
        return byName.get(name);
16393
      }
16394
 
16395
      private final short _thriftId;
16396
      private final String _fieldName;
16397
 
16398
      _Fields(short thriftId, String fieldName) {
16399
        _thriftId = thriftId;
16400
        _fieldName = fieldName;
16401
      }
16402
 
16403
      public short getThriftFieldId() {
16404
        return _thriftId;
16405
      }
16406
 
16407
      public String getFieldName() {
16408
        return _fieldName;
16409
      }
16410
    }
16411
 
16412
    // isset id assignments
16413
    private static final int __SUCCESS_ISSET_ID = 0;
16414
    private BitSet __isset_bit_vector = new BitSet(1);
16415
 
16416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16417
    static {
16418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16419
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16421
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_result.class, metaDataMap);
16425
    }
16426
 
16427
    public updateReservationForOrder_result() {
16428
    }
16429
 
16430
    public updateReservationForOrder_result(
16431
      boolean success,
16432
      InventoryServiceException cex)
16433
    {
16434
      this();
16435
      this.success = success;
16436
      setSuccessIsSet(true);
16437
      this.cex = cex;
16438
    }
16439
 
16440
    /**
16441
     * Performs a deep copy on <i>other</i>.
16442
     */
16443
    public updateReservationForOrder_result(updateReservationForOrder_result other) {
16444
      __isset_bit_vector.clear();
16445
      __isset_bit_vector.or(other.__isset_bit_vector);
16446
      this.success = other.success;
16447
      if (other.isSetCex()) {
16448
        this.cex = new InventoryServiceException(other.cex);
16449
      }
16450
    }
16451
 
16452
    public updateReservationForOrder_result deepCopy() {
16453
      return new updateReservationForOrder_result(this);
16454
    }
16455
 
16456
    @Override
16457
    public void clear() {
16458
      setSuccessIsSet(false);
16459
      this.success = false;
16460
      this.cex = null;
16461
    }
16462
 
16463
    public boolean isSuccess() {
16464
      return this.success;
16465
    }
16466
 
16467
    public void setSuccess(boolean success) {
16468
      this.success = success;
16469
      setSuccessIsSet(true);
16470
    }
16471
 
16472
    public void unsetSuccess() {
16473
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16474
    }
16475
 
16476
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16477
    public boolean isSetSuccess() {
16478
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16479
    }
16480
 
16481
    public void setSuccessIsSet(boolean value) {
16482
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16483
    }
16484
 
16485
    public InventoryServiceException getCex() {
16486
      return this.cex;
16487
    }
16488
 
16489
    public void setCex(InventoryServiceException cex) {
16490
      this.cex = cex;
16491
    }
16492
 
16493
    public void unsetCex() {
16494
      this.cex = null;
16495
    }
16496
 
16497
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16498
    public boolean isSetCex() {
16499
      return this.cex != null;
16500
    }
16501
 
16502
    public void setCexIsSet(boolean value) {
16503
      if (!value) {
16504
        this.cex = null;
16505
      }
16506
    }
16507
 
16508
    public void setFieldValue(_Fields field, Object value) {
16509
      switch (field) {
16510
      case SUCCESS:
16511
        if (value == null) {
16512
          unsetSuccess();
16513
        } else {
16514
          setSuccess((Boolean)value);
16515
        }
16516
        break;
16517
 
16518
      case CEX:
16519
        if (value == null) {
16520
          unsetCex();
16521
        } else {
16522
          setCex((InventoryServiceException)value);
16523
        }
16524
        break;
16525
 
16526
      }
16527
    }
16528
 
16529
    public Object getFieldValue(_Fields field) {
16530
      switch (field) {
16531
      case SUCCESS:
16532
        return Boolean.valueOf(isSuccess());
16533
 
16534
      case CEX:
16535
        return getCex();
16536
 
16537
      }
16538
      throw new IllegalStateException();
16539
    }
16540
 
16541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16542
    public boolean isSet(_Fields field) {
16543
      if (field == null) {
16544
        throw new IllegalArgumentException();
16545
      }
16546
 
16547
      switch (field) {
16548
      case SUCCESS:
16549
        return isSetSuccess();
16550
      case CEX:
16551
        return isSetCex();
16552
      }
16553
      throw new IllegalStateException();
16554
    }
16555
 
16556
    @Override
16557
    public boolean equals(Object that) {
16558
      if (that == null)
16559
        return false;
16560
      if (that instanceof updateReservationForOrder_result)
16561
        return this.equals((updateReservationForOrder_result)that);
16562
      return false;
16563
    }
16564
 
16565
    public boolean equals(updateReservationForOrder_result that) {
16566
      if (that == null)
16567
        return false;
16568
 
16569
      boolean this_present_success = true;
16570
      boolean that_present_success = true;
16571
      if (this_present_success || that_present_success) {
16572
        if (!(this_present_success && that_present_success))
16573
          return false;
16574
        if (this.success != that.success)
16575
          return false;
16576
      }
16577
 
16578
      boolean this_present_cex = true && this.isSetCex();
16579
      boolean that_present_cex = true && that.isSetCex();
16580
      if (this_present_cex || that_present_cex) {
16581
        if (!(this_present_cex && that_present_cex))
16582
          return false;
16583
        if (!this.cex.equals(that.cex))
16584
          return false;
16585
      }
16586
 
16587
      return true;
16588
    }
16589
 
16590
    @Override
16591
    public int hashCode() {
16592
      return 0;
16593
    }
16594
 
16595
    public int compareTo(updateReservationForOrder_result other) {
16596
      if (!getClass().equals(other.getClass())) {
16597
        return getClass().getName().compareTo(other.getClass().getName());
16598
      }
16599
 
16600
      int lastComparison = 0;
16601
      updateReservationForOrder_result typedOther = (updateReservationForOrder_result)other;
16602
 
16603
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16604
      if (lastComparison != 0) {
16605
        return lastComparison;
16606
      }
16607
      if (isSetSuccess()) {
16608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16609
        if (lastComparison != 0) {
16610
          return lastComparison;
16611
        }
16612
      }
16613
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16614
      if (lastComparison != 0) {
16615
        return lastComparison;
16616
      }
16617
      if (isSetCex()) {
16618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16619
        if (lastComparison != 0) {
16620
          return lastComparison;
16621
        }
16622
      }
16623
      return 0;
16624
    }
16625
 
16626
    public _Fields fieldForId(int fieldId) {
16627
      return _Fields.findByThriftId(fieldId);
16628
    }
16629
 
16630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16631
      org.apache.thrift.protocol.TField field;
16632
      iprot.readStructBegin();
16633
      while (true)
16634
      {
16635
        field = iprot.readFieldBegin();
16636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16637
          break;
16638
        }
16639
        switch (field.id) {
16640
          case 0: // SUCCESS
16641
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16642
              this.success = iprot.readBool();
16643
              setSuccessIsSet(true);
16644
            } else { 
16645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16646
            }
16647
            break;
16648
          case 1: // CEX
16649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16650
              this.cex = new InventoryServiceException();
16651
              this.cex.read(iprot);
16652
            } else { 
16653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16654
            }
16655
            break;
16656
          default:
16657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16658
        }
16659
        iprot.readFieldEnd();
16660
      }
16661
      iprot.readStructEnd();
16662
      validate();
16663
    }
16664
 
16665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16666
      oprot.writeStructBegin(STRUCT_DESC);
16667
 
16668
      if (this.isSetSuccess()) {
16669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16670
        oprot.writeBool(this.success);
16671
        oprot.writeFieldEnd();
16672
      } else if (this.isSetCex()) {
16673
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16674
        this.cex.write(oprot);
16675
        oprot.writeFieldEnd();
16676
      }
16677
      oprot.writeFieldStop();
16678
      oprot.writeStructEnd();
16679
    }
16680
 
16681
    @Override
16682
    public String toString() {
16683
      StringBuilder sb = new StringBuilder("updateReservationForOrder_result(");
16684
      boolean first = true;
16685
 
16686
      sb.append("success:");
16687
      sb.append(this.success);
16688
      first = false;
16689
      if (!first) sb.append(", ");
16690
      sb.append("cex:");
16691
      if (this.cex == null) {
16692
        sb.append("null");
16693
      } else {
16694
        sb.append(this.cex);
16695
      }
16696
      first = false;
16697
      sb.append(")");
16698
      return sb.toString();
16699
    }
16700
 
16701
    public void validate() throws org.apache.thrift.TException {
16702
      // check for required fields
16703
    }
16704
 
16705
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16706
      try {
16707
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16708
      } catch (org.apache.thrift.TException te) {
16709
        throw new java.io.IOException(te);
16710
      }
16711
    }
16712
 
16713
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16714
      try {
16715
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16716
      } catch (org.apache.thrift.TException te) {
16717
        throw new java.io.IOException(te);
16718
      }
16719
    }
16720
 
16721
  }
16722
 
5945 mandeep.dh 16723
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
16724
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
16725
 
16726
    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);
16727
    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 16728
    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);
16729
    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);
16730
    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 16731
 
16732
    private long itemId; // required
16733
    private long warehouseId; // required
5967 rajveer 16734
    private long sourceId; // required
16735
    private long orderId; // required
5945 mandeep.dh 16736
    private double quantity; // required
16737
 
16738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16740
      ITEM_ID((short)1, "itemId"),
16741
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 16742
      SOURCE_ID((short)3, "sourceId"),
16743
      ORDER_ID((short)4, "orderId"),
16744
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 16745
 
16746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16747
 
16748
      static {
16749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16750
          byName.put(field.getFieldName(), field);
16751
        }
16752
      }
16753
 
16754
      /**
16755
       * Find the _Fields constant that matches fieldId, or null if its not found.
16756
       */
16757
      public static _Fields findByThriftId(int fieldId) {
16758
        switch(fieldId) {
16759
          case 1: // ITEM_ID
16760
            return ITEM_ID;
16761
          case 2: // WAREHOUSE_ID
16762
            return WAREHOUSE_ID;
5967 rajveer 16763
          case 3: // SOURCE_ID
16764
            return SOURCE_ID;
16765
          case 4: // ORDER_ID
16766
            return ORDER_ID;
16767
          case 5: // QUANTITY
5945 mandeep.dh 16768
            return QUANTITY;
16769
          default:
16770
            return null;
16771
        }
16772
      }
16773
 
16774
      /**
16775
       * Find the _Fields constant that matches fieldId, throwing an exception
16776
       * if it is not found.
16777
       */
16778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16779
        _Fields fields = findByThriftId(fieldId);
16780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16781
        return fields;
16782
      }
16783
 
16784
      /**
16785
       * Find the _Fields constant that matches name, or null if its not found.
16786
       */
16787
      public static _Fields findByName(String name) {
16788
        return byName.get(name);
16789
      }
16790
 
16791
      private final short _thriftId;
16792
      private final String _fieldName;
16793
 
16794
      _Fields(short thriftId, String fieldName) {
16795
        _thriftId = thriftId;
16796
        _fieldName = fieldName;
16797
      }
16798
 
16799
      public short getThriftFieldId() {
16800
        return _thriftId;
16801
      }
16802
 
16803
      public String getFieldName() {
16804
        return _fieldName;
16805
      }
16806
    }
16807
 
16808
    // isset id assignments
16809
    private static final int __ITEMID_ISSET_ID = 0;
16810
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 16811
    private static final int __SOURCEID_ISSET_ID = 2;
16812
    private static final int __ORDERID_ISSET_ID = 3;
16813
    private static final int __QUANTITY_ISSET_ID = 4;
16814
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 16815
 
16816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16817
    static {
16818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16819
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16821
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 16823
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16825
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 16827
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16829
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16830
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
16831
    }
16832
 
16833
    public reduceReservationCount_args() {
16834
    }
16835
 
16836
    public reduceReservationCount_args(
16837
      long itemId,
16838
      long warehouseId,
5967 rajveer 16839
      long sourceId,
16840
      long orderId,
5945 mandeep.dh 16841
      double quantity)
16842
    {
16843
      this();
16844
      this.itemId = itemId;
16845
      setItemIdIsSet(true);
16846
      this.warehouseId = warehouseId;
16847
      setWarehouseIdIsSet(true);
5967 rajveer 16848
      this.sourceId = sourceId;
16849
      setSourceIdIsSet(true);
16850
      this.orderId = orderId;
16851
      setOrderIdIsSet(true);
5945 mandeep.dh 16852
      this.quantity = quantity;
16853
      setQuantityIsSet(true);
16854
    }
16855
 
16856
    /**
16857
     * Performs a deep copy on <i>other</i>.
16858
     */
16859
    public reduceReservationCount_args(reduceReservationCount_args other) {
16860
      __isset_bit_vector.clear();
16861
      __isset_bit_vector.or(other.__isset_bit_vector);
16862
      this.itemId = other.itemId;
16863
      this.warehouseId = other.warehouseId;
5967 rajveer 16864
      this.sourceId = other.sourceId;
16865
      this.orderId = other.orderId;
5945 mandeep.dh 16866
      this.quantity = other.quantity;
16867
    }
16868
 
16869
    public reduceReservationCount_args deepCopy() {
16870
      return new reduceReservationCount_args(this);
16871
    }
16872
 
16873
    @Override
16874
    public void clear() {
16875
      setItemIdIsSet(false);
16876
      this.itemId = 0;
16877
      setWarehouseIdIsSet(false);
16878
      this.warehouseId = 0;
5967 rajveer 16879
      setSourceIdIsSet(false);
16880
      this.sourceId = 0;
16881
      setOrderIdIsSet(false);
16882
      this.orderId = 0;
5945 mandeep.dh 16883
      setQuantityIsSet(false);
16884
      this.quantity = 0.0;
16885
    }
16886
 
16887
    public long getItemId() {
16888
      return this.itemId;
16889
    }
16890
 
16891
    public void setItemId(long itemId) {
16892
      this.itemId = itemId;
16893
      setItemIdIsSet(true);
16894
    }
16895
 
16896
    public void unsetItemId() {
16897
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16898
    }
16899
 
16900
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16901
    public boolean isSetItemId() {
16902
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16903
    }
16904
 
16905
    public void setItemIdIsSet(boolean value) {
16906
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16907
    }
16908
 
16909
    public long getWarehouseId() {
16910
      return this.warehouseId;
16911
    }
16912
 
16913
    public void setWarehouseId(long warehouseId) {
16914
      this.warehouseId = warehouseId;
16915
      setWarehouseIdIsSet(true);
16916
    }
16917
 
16918
    public void unsetWarehouseId() {
16919
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
16920
    }
16921
 
16922
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
16923
    public boolean isSetWarehouseId() {
16924
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
16925
    }
16926
 
16927
    public void setWarehouseIdIsSet(boolean value) {
16928
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
16929
    }
16930
 
5967 rajveer 16931
    public long getSourceId() {
16932
      return this.sourceId;
16933
    }
16934
 
16935
    public void setSourceId(long sourceId) {
16936
      this.sourceId = sourceId;
16937
      setSourceIdIsSet(true);
16938
    }
16939
 
16940
    public void unsetSourceId() {
16941
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
16942
    }
16943
 
16944
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
16945
    public boolean isSetSourceId() {
16946
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
16947
    }
16948
 
16949
    public void setSourceIdIsSet(boolean value) {
16950
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
16951
    }
16952
 
16953
    public long getOrderId() {
16954
      return this.orderId;
16955
    }
16956
 
16957
    public void setOrderId(long orderId) {
16958
      this.orderId = orderId;
16959
      setOrderIdIsSet(true);
16960
    }
16961
 
16962
    public void unsetOrderId() {
16963
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
16964
    }
16965
 
16966
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
16967
    public boolean isSetOrderId() {
16968
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
16969
    }
16970
 
16971
    public void setOrderIdIsSet(boolean value) {
16972
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
16973
    }
16974
 
5945 mandeep.dh 16975
    public double getQuantity() {
16976
      return this.quantity;
16977
    }
16978
 
16979
    public void setQuantity(double quantity) {
16980
      this.quantity = quantity;
16981
      setQuantityIsSet(true);
16982
    }
16983
 
16984
    public void unsetQuantity() {
16985
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
16986
    }
16987
 
16988
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
16989
    public boolean isSetQuantity() {
16990
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
16991
    }
16992
 
16993
    public void setQuantityIsSet(boolean value) {
16994
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
16995
    }
16996
 
16997
    public void setFieldValue(_Fields field, Object value) {
16998
      switch (field) {
16999
      case ITEM_ID:
17000
        if (value == null) {
17001
          unsetItemId();
17002
        } else {
17003
          setItemId((Long)value);
17004
        }
17005
        break;
17006
 
17007
      case WAREHOUSE_ID:
17008
        if (value == null) {
17009
          unsetWarehouseId();
17010
        } else {
17011
          setWarehouseId((Long)value);
17012
        }
17013
        break;
17014
 
5967 rajveer 17015
      case SOURCE_ID:
17016
        if (value == null) {
17017
          unsetSourceId();
17018
        } else {
17019
          setSourceId((Long)value);
17020
        }
17021
        break;
17022
 
17023
      case ORDER_ID:
17024
        if (value == null) {
17025
          unsetOrderId();
17026
        } else {
17027
          setOrderId((Long)value);
17028
        }
17029
        break;
17030
 
5945 mandeep.dh 17031
      case QUANTITY:
17032
        if (value == null) {
17033
          unsetQuantity();
17034
        } else {
17035
          setQuantity((Double)value);
17036
        }
17037
        break;
17038
 
17039
      }
17040
    }
17041
 
17042
    public Object getFieldValue(_Fields field) {
17043
      switch (field) {
17044
      case ITEM_ID:
17045
        return Long.valueOf(getItemId());
17046
 
17047
      case WAREHOUSE_ID:
17048
        return Long.valueOf(getWarehouseId());
17049
 
5967 rajveer 17050
      case SOURCE_ID:
17051
        return Long.valueOf(getSourceId());
17052
 
17053
      case ORDER_ID:
17054
        return Long.valueOf(getOrderId());
17055
 
5945 mandeep.dh 17056
      case QUANTITY:
17057
        return Double.valueOf(getQuantity());
17058
 
17059
      }
17060
      throw new IllegalStateException();
17061
    }
17062
 
17063
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17064
    public boolean isSet(_Fields field) {
17065
      if (field == null) {
17066
        throw new IllegalArgumentException();
17067
      }
17068
 
17069
      switch (field) {
17070
      case ITEM_ID:
17071
        return isSetItemId();
17072
      case WAREHOUSE_ID:
17073
        return isSetWarehouseId();
5967 rajveer 17074
      case SOURCE_ID:
17075
        return isSetSourceId();
17076
      case ORDER_ID:
17077
        return isSetOrderId();
5945 mandeep.dh 17078
      case QUANTITY:
17079
        return isSetQuantity();
17080
      }
17081
      throw new IllegalStateException();
17082
    }
17083
 
17084
    @Override
17085
    public boolean equals(Object that) {
17086
      if (that == null)
17087
        return false;
17088
      if (that instanceof reduceReservationCount_args)
17089
        return this.equals((reduceReservationCount_args)that);
17090
      return false;
17091
    }
17092
 
17093
    public boolean equals(reduceReservationCount_args that) {
17094
      if (that == null)
17095
        return false;
17096
 
17097
      boolean this_present_itemId = true;
17098
      boolean that_present_itemId = true;
17099
      if (this_present_itemId || that_present_itemId) {
17100
        if (!(this_present_itemId && that_present_itemId))
17101
          return false;
17102
        if (this.itemId != that.itemId)
17103
          return false;
17104
      }
17105
 
17106
      boolean this_present_warehouseId = true;
17107
      boolean that_present_warehouseId = true;
17108
      if (this_present_warehouseId || that_present_warehouseId) {
17109
        if (!(this_present_warehouseId && that_present_warehouseId))
17110
          return false;
17111
        if (this.warehouseId != that.warehouseId)
17112
          return false;
17113
      }
17114
 
5967 rajveer 17115
      boolean this_present_sourceId = true;
17116
      boolean that_present_sourceId = true;
17117
      if (this_present_sourceId || that_present_sourceId) {
17118
        if (!(this_present_sourceId && that_present_sourceId))
17119
          return false;
17120
        if (this.sourceId != that.sourceId)
17121
          return false;
17122
      }
17123
 
17124
      boolean this_present_orderId = true;
17125
      boolean that_present_orderId = true;
17126
      if (this_present_orderId || that_present_orderId) {
17127
        if (!(this_present_orderId && that_present_orderId))
17128
          return false;
17129
        if (this.orderId != that.orderId)
17130
          return false;
17131
      }
17132
 
5945 mandeep.dh 17133
      boolean this_present_quantity = true;
17134
      boolean that_present_quantity = true;
17135
      if (this_present_quantity || that_present_quantity) {
17136
        if (!(this_present_quantity && that_present_quantity))
17137
          return false;
17138
        if (this.quantity != that.quantity)
17139
          return false;
17140
      }
17141
 
17142
      return true;
17143
    }
17144
 
17145
    @Override
17146
    public int hashCode() {
17147
      return 0;
17148
    }
17149
 
17150
    public int compareTo(reduceReservationCount_args other) {
17151
      if (!getClass().equals(other.getClass())) {
17152
        return getClass().getName().compareTo(other.getClass().getName());
17153
      }
17154
 
17155
      int lastComparison = 0;
17156
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
17157
 
17158
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
17159
      if (lastComparison != 0) {
17160
        return lastComparison;
17161
      }
17162
      if (isSetItemId()) {
17163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
17164
        if (lastComparison != 0) {
17165
          return lastComparison;
17166
        }
17167
      }
17168
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
17169
      if (lastComparison != 0) {
17170
        return lastComparison;
17171
      }
17172
      if (isSetWarehouseId()) {
17173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
17174
        if (lastComparison != 0) {
17175
          return lastComparison;
17176
        }
17177
      }
5967 rajveer 17178
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
17179
      if (lastComparison != 0) {
17180
        return lastComparison;
17181
      }
17182
      if (isSetSourceId()) {
17183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
17184
        if (lastComparison != 0) {
17185
          return lastComparison;
17186
        }
17187
      }
17188
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
17189
      if (lastComparison != 0) {
17190
        return lastComparison;
17191
      }
17192
      if (isSetOrderId()) {
17193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
17194
        if (lastComparison != 0) {
17195
          return lastComparison;
17196
        }
17197
      }
5945 mandeep.dh 17198
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
17199
      if (lastComparison != 0) {
17200
        return lastComparison;
17201
      }
17202
      if (isSetQuantity()) {
17203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
17204
        if (lastComparison != 0) {
17205
          return lastComparison;
17206
        }
17207
      }
17208
      return 0;
17209
    }
17210
 
17211
    public _Fields fieldForId(int fieldId) {
17212
      return _Fields.findByThriftId(fieldId);
17213
    }
17214
 
17215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17216
      org.apache.thrift.protocol.TField field;
17217
      iprot.readStructBegin();
17218
      while (true)
17219
      {
17220
        field = iprot.readFieldBegin();
17221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17222
          break;
17223
        }
17224
        switch (field.id) {
17225
          case 1: // ITEM_ID
17226
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17227
              this.itemId = iprot.readI64();
17228
              setItemIdIsSet(true);
17229
            } else { 
17230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17231
            }
17232
            break;
17233
          case 2: // WAREHOUSE_ID
17234
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17235
              this.warehouseId = iprot.readI64();
17236
              setWarehouseIdIsSet(true);
17237
            } else { 
17238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17239
            }
17240
            break;
5967 rajveer 17241
          case 3: // SOURCE_ID
17242
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17243
              this.sourceId = iprot.readI64();
17244
              setSourceIdIsSet(true);
17245
            } else { 
17246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17247
            }
17248
            break;
17249
          case 4: // ORDER_ID
17250
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17251
              this.orderId = iprot.readI64();
17252
              setOrderIdIsSet(true);
17253
            } else { 
17254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17255
            }
17256
            break;
17257
          case 5: // QUANTITY
5945 mandeep.dh 17258
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17259
              this.quantity = iprot.readDouble();
17260
              setQuantityIsSet(true);
17261
            } else { 
17262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17263
            }
17264
            break;
17265
          default:
17266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17267
        }
17268
        iprot.readFieldEnd();
17269
      }
17270
      iprot.readStructEnd();
17271
      validate();
17272
    }
17273
 
17274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17275
      validate();
17276
 
17277
      oprot.writeStructBegin(STRUCT_DESC);
17278
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
17279
      oprot.writeI64(this.itemId);
17280
      oprot.writeFieldEnd();
17281
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
17282
      oprot.writeI64(this.warehouseId);
17283
      oprot.writeFieldEnd();
5967 rajveer 17284
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
17285
      oprot.writeI64(this.sourceId);
17286
      oprot.writeFieldEnd();
17287
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
17288
      oprot.writeI64(this.orderId);
17289
      oprot.writeFieldEnd();
5945 mandeep.dh 17290
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
17291
      oprot.writeDouble(this.quantity);
17292
      oprot.writeFieldEnd();
17293
      oprot.writeFieldStop();
17294
      oprot.writeStructEnd();
17295
    }
17296
 
17297
    @Override
17298
    public String toString() {
17299
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
17300
      boolean first = true;
17301
 
17302
      sb.append("itemId:");
17303
      sb.append(this.itemId);
17304
      first = false;
17305
      if (!first) sb.append(", ");
17306
      sb.append("warehouseId:");
17307
      sb.append(this.warehouseId);
17308
      first = false;
17309
      if (!first) sb.append(", ");
5967 rajveer 17310
      sb.append("sourceId:");
17311
      sb.append(this.sourceId);
17312
      first = false;
17313
      if (!first) sb.append(", ");
17314
      sb.append("orderId:");
17315
      sb.append(this.orderId);
17316
      first = false;
17317
      if (!first) sb.append(", ");
5945 mandeep.dh 17318
      sb.append("quantity:");
17319
      sb.append(this.quantity);
17320
      first = false;
17321
      sb.append(")");
17322
      return sb.toString();
17323
    }
17324
 
17325
    public void validate() throws org.apache.thrift.TException {
17326
      // check for required fields
17327
    }
17328
 
17329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17330
      try {
17331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17332
      } catch (org.apache.thrift.TException te) {
17333
        throw new java.io.IOException(te);
17334
      }
17335
    }
17336
 
17337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17338
      try {
17339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17340
      } catch (org.apache.thrift.TException te) {
17341
        throw new java.io.IOException(te);
17342
      }
17343
    }
17344
 
17345
  }
17346
 
17347
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
17348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
17349
 
17350
    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);
17351
    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);
17352
 
17353
    private boolean success; // required
17354
    private InventoryServiceException cex; // required
17355
 
17356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17358
      SUCCESS((short)0, "success"),
17359
      CEX((short)1, "cex");
17360
 
17361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17362
 
17363
      static {
17364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17365
          byName.put(field.getFieldName(), field);
17366
        }
17367
      }
17368
 
17369
      /**
17370
       * Find the _Fields constant that matches fieldId, or null if its not found.
17371
       */
17372
      public static _Fields findByThriftId(int fieldId) {
17373
        switch(fieldId) {
17374
          case 0: // SUCCESS
17375
            return SUCCESS;
17376
          case 1: // CEX
17377
            return CEX;
17378
          default:
17379
            return null;
17380
        }
17381
      }
17382
 
17383
      /**
17384
       * Find the _Fields constant that matches fieldId, throwing an exception
17385
       * if it is not found.
17386
       */
17387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17388
        _Fields fields = findByThriftId(fieldId);
17389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17390
        return fields;
17391
      }
17392
 
17393
      /**
17394
       * Find the _Fields constant that matches name, or null if its not found.
17395
       */
17396
      public static _Fields findByName(String name) {
17397
        return byName.get(name);
17398
      }
17399
 
17400
      private final short _thriftId;
17401
      private final String _fieldName;
17402
 
17403
      _Fields(short thriftId, String fieldName) {
17404
        _thriftId = thriftId;
17405
        _fieldName = fieldName;
17406
      }
17407
 
17408
      public short getThriftFieldId() {
17409
        return _thriftId;
17410
      }
17411
 
17412
      public String getFieldName() {
17413
        return _fieldName;
17414
      }
17415
    }
17416
 
17417
    // isset id assignments
17418
    private static final int __SUCCESS_ISSET_ID = 0;
17419
    private BitSet __isset_bit_vector = new BitSet(1);
17420
 
17421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17422
    static {
17423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17424
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17426
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17428
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17429
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
17430
    }
17431
 
17432
    public reduceReservationCount_result() {
17433
    }
17434
 
17435
    public reduceReservationCount_result(
17436
      boolean success,
17437
      InventoryServiceException cex)
17438
    {
17439
      this();
17440
      this.success = success;
17441
      setSuccessIsSet(true);
17442
      this.cex = cex;
17443
    }
17444
 
17445
    /**
17446
     * Performs a deep copy on <i>other</i>.
17447
     */
17448
    public reduceReservationCount_result(reduceReservationCount_result other) {
17449
      __isset_bit_vector.clear();
17450
      __isset_bit_vector.or(other.__isset_bit_vector);
17451
      this.success = other.success;
17452
      if (other.isSetCex()) {
17453
        this.cex = new InventoryServiceException(other.cex);
17454
      }
17455
    }
17456
 
17457
    public reduceReservationCount_result deepCopy() {
17458
      return new reduceReservationCount_result(this);
17459
    }
17460
 
17461
    @Override
17462
    public void clear() {
17463
      setSuccessIsSet(false);
17464
      this.success = false;
17465
      this.cex = null;
17466
    }
17467
 
17468
    public boolean isSuccess() {
17469
      return this.success;
17470
    }
17471
 
17472
    public void setSuccess(boolean success) {
17473
      this.success = success;
17474
      setSuccessIsSet(true);
17475
    }
17476
 
17477
    public void unsetSuccess() {
17478
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17479
    }
17480
 
17481
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17482
    public boolean isSetSuccess() {
17483
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17484
    }
17485
 
17486
    public void setSuccessIsSet(boolean value) {
17487
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
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((Boolean)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 Boolean.valueOf(isSuccess());
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 reduceReservationCount_result)
17566
        return this.equals((reduceReservationCount_result)that);
17567
      return false;
17568
    }
17569
 
17570
    public boolean equals(reduceReservationCount_result that) {
17571
      if (that == null)
17572
        return false;
17573
 
17574
      boolean this_present_success = true;
17575
      boolean that_present_success = true;
17576
      if (this_present_success || that_present_success) {
17577
        if (!(this_present_success && that_present_success))
17578
          return false;
17579
        if (this.success != 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(reduceReservationCount_result other) {
17601
      if (!getClass().equals(other.getClass())) {
17602
        return getClass().getName().compareTo(other.getClass().getName());
17603
      }
17604
 
17605
      int lastComparison = 0;
17606
      reduceReservationCount_result typedOther = (reduceReservationCount_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.BOOL) {
17647
              this.success = iprot.readBool();
17648
              setSuccessIsSet(true);
17649
            } else { 
17650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17651
            }
17652
            break;
17653
          case 1: // CEX
17654
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17655
              this.cex = new InventoryServiceException();
17656
              this.cex.read(iprot);
17657
            } else { 
17658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17659
            }
17660
            break;
17661
          default:
17662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17663
        }
17664
        iprot.readFieldEnd();
17665
      }
17666
      iprot.readStructEnd();
17667
      validate();
17668
    }
17669
 
17670
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17671
      oprot.writeStructBegin(STRUCT_DESC);
17672
 
17673
      if (this.isSetSuccess()) {
17674
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17675
        oprot.writeBool(this.success);
17676
        oprot.writeFieldEnd();
17677
      } else if (this.isSetCex()) {
17678
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17679
        this.cex.write(oprot);
17680
        oprot.writeFieldEnd();
17681
      }
17682
      oprot.writeFieldStop();
17683
      oprot.writeStructEnd();
17684
    }
17685
 
17686
    @Override
17687
    public String toString() {
17688
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
17689
      boolean first = true;
17690
 
17691
      sb.append("success:");
17692
      sb.append(this.success);
17693
      first = false;
17694
      if (!first) sb.append(", ");
17695
      sb.append("cex:");
17696
      if (this.cex == null) {
17697
        sb.append("null");
17698
      } else {
17699
        sb.append(this.cex);
17700
      }
17701
      first = false;
17702
      sb.append(")");
17703
      return sb.toString();
17704
    }
17705
 
17706
    public void validate() throws org.apache.thrift.TException {
17707
      // check for required fields
17708
    }
17709
 
17710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17711
      try {
17712
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17713
      } catch (org.apache.thrift.TException te) {
17714
        throw new java.io.IOException(te);
17715
      }
17716
    }
17717
 
17718
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17719
      try {
17720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17721
      } catch (org.apache.thrift.TException te) {
17722
        throw new java.io.IOException(te);
17723
      }
17724
    }
17725
 
17726
  }
17727
 
17728
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
17729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
17730
 
17731
    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);
17732
    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);
17733
 
17734
    private long itemId; // required
17735
    private long vendorId; // required
17736
 
17737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17739
      ITEM_ID((short)1, "itemId"),
17740
      VENDOR_ID((short)2, "vendorId");
17741
 
17742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17743
 
17744
      static {
17745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17746
          byName.put(field.getFieldName(), field);
17747
        }
17748
      }
17749
 
17750
      /**
17751
       * Find the _Fields constant that matches fieldId, or null if its not found.
17752
       */
17753
      public static _Fields findByThriftId(int fieldId) {
17754
        switch(fieldId) {
17755
          case 1: // ITEM_ID
17756
            return ITEM_ID;
17757
          case 2: // VENDOR_ID
17758
            return VENDOR_ID;
17759
          default:
17760
            return null;
17761
        }
17762
      }
17763
 
17764
      /**
17765
       * Find the _Fields constant that matches fieldId, throwing an exception
17766
       * if it is not found.
17767
       */
17768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17769
        _Fields fields = findByThriftId(fieldId);
17770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17771
        return fields;
17772
      }
17773
 
17774
      /**
17775
       * Find the _Fields constant that matches name, or null if its not found.
17776
       */
17777
      public static _Fields findByName(String name) {
17778
        return byName.get(name);
17779
      }
17780
 
17781
      private final short _thriftId;
17782
      private final String _fieldName;
17783
 
17784
      _Fields(short thriftId, String fieldName) {
17785
        _thriftId = thriftId;
17786
        _fieldName = fieldName;
17787
      }
17788
 
17789
      public short getThriftFieldId() {
17790
        return _thriftId;
17791
      }
17792
 
17793
      public String getFieldName() {
17794
        return _fieldName;
17795
      }
17796
    }
17797
 
17798
    // isset id assignments
17799
    private static final int __ITEMID_ISSET_ID = 0;
17800
    private static final int __VENDORID_ISSET_ID = 1;
17801
    private BitSet __isset_bit_vector = new BitSet(2);
17802
 
17803
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17804
    static {
17805
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17806
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17808
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17810
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17811
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
17812
    }
17813
 
17814
    public getItemPricing_args() {
17815
    }
17816
 
17817
    public getItemPricing_args(
17818
      long itemId,
17819
      long vendorId)
17820
    {
17821
      this();
17822
      this.itemId = itemId;
17823
      setItemIdIsSet(true);
17824
      this.vendorId = vendorId;
17825
      setVendorIdIsSet(true);
17826
    }
17827
 
17828
    /**
17829
     * Performs a deep copy on <i>other</i>.
17830
     */
17831
    public getItemPricing_args(getItemPricing_args other) {
17832
      __isset_bit_vector.clear();
17833
      __isset_bit_vector.or(other.__isset_bit_vector);
17834
      this.itemId = other.itemId;
17835
      this.vendorId = other.vendorId;
17836
    }
17837
 
17838
    public getItemPricing_args deepCopy() {
17839
      return new getItemPricing_args(this);
17840
    }
17841
 
17842
    @Override
17843
    public void clear() {
17844
      setItemIdIsSet(false);
17845
      this.itemId = 0;
17846
      setVendorIdIsSet(false);
17847
      this.vendorId = 0;
17848
    }
17849
 
17850
    public long getItemId() {
17851
      return this.itemId;
17852
    }
17853
 
17854
    public void setItemId(long itemId) {
17855
      this.itemId = itemId;
17856
      setItemIdIsSet(true);
17857
    }
17858
 
17859
    public void unsetItemId() {
17860
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
17861
    }
17862
 
17863
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
17864
    public boolean isSetItemId() {
17865
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
17866
    }
17867
 
17868
    public void setItemIdIsSet(boolean value) {
17869
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
17870
    }
17871
 
17872
    public long getVendorId() {
17873
      return this.vendorId;
17874
    }
17875
 
17876
    public void setVendorId(long vendorId) {
17877
      this.vendorId = vendorId;
17878
      setVendorIdIsSet(true);
17879
    }
17880
 
17881
    public void unsetVendorId() {
17882
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17883
    }
17884
 
17885
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17886
    public boolean isSetVendorId() {
17887
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17888
    }
17889
 
17890
    public void setVendorIdIsSet(boolean value) {
17891
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17892
    }
17893
 
17894
    public void setFieldValue(_Fields field, Object value) {
17895
      switch (field) {
17896
      case ITEM_ID:
17897
        if (value == null) {
17898
          unsetItemId();
17899
        } else {
17900
          setItemId((Long)value);
17901
        }
17902
        break;
17903
 
17904
      case VENDOR_ID:
17905
        if (value == null) {
17906
          unsetVendorId();
17907
        } else {
17908
          setVendorId((Long)value);
17909
        }
17910
        break;
17911
 
17912
      }
17913
    }
17914
 
17915
    public Object getFieldValue(_Fields field) {
17916
      switch (field) {
17917
      case ITEM_ID:
17918
        return Long.valueOf(getItemId());
17919
 
17920
      case VENDOR_ID:
17921
        return Long.valueOf(getVendorId());
17922
 
17923
      }
17924
      throw new IllegalStateException();
17925
    }
17926
 
17927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17928
    public boolean isSet(_Fields field) {
17929
      if (field == null) {
17930
        throw new IllegalArgumentException();
17931
      }
17932
 
17933
      switch (field) {
17934
      case ITEM_ID:
17935
        return isSetItemId();
17936
      case VENDOR_ID:
17937
        return isSetVendorId();
17938
      }
17939
      throw new IllegalStateException();
17940
    }
17941
 
17942
    @Override
17943
    public boolean equals(Object that) {
17944
      if (that == null)
17945
        return false;
17946
      if (that instanceof getItemPricing_args)
17947
        return this.equals((getItemPricing_args)that);
17948
      return false;
17949
    }
17950
 
17951
    public boolean equals(getItemPricing_args that) {
17952
      if (that == null)
17953
        return false;
17954
 
17955
      boolean this_present_itemId = true;
17956
      boolean that_present_itemId = true;
17957
      if (this_present_itemId || that_present_itemId) {
17958
        if (!(this_present_itemId && that_present_itemId))
17959
          return false;
17960
        if (this.itemId != that.itemId)
17961
          return false;
17962
      }
17963
 
17964
      boolean this_present_vendorId = true;
17965
      boolean that_present_vendorId = true;
17966
      if (this_present_vendorId || that_present_vendorId) {
17967
        if (!(this_present_vendorId && that_present_vendorId))
17968
          return false;
17969
        if (this.vendorId != that.vendorId)
17970
          return false;
17971
      }
17972
 
17973
      return true;
17974
    }
17975
 
17976
    @Override
17977
    public int hashCode() {
17978
      return 0;
17979
    }
17980
 
17981
    public int compareTo(getItemPricing_args other) {
17982
      if (!getClass().equals(other.getClass())) {
17983
        return getClass().getName().compareTo(other.getClass().getName());
17984
      }
17985
 
17986
      int lastComparison = 0;
17987
      getItemPricing_args typedOther = (getItemPricing_args)other;
17988
 
17989
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
17990
      if (lastComparison != 0) {
17991
        return lastComparison;
17992
      }
17993
      if (isSetItemId()) {
17994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
17995
        if (lastComparison != 0) {
17996
          return lastComparison;
17997
        }
17998
      }
17999
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
18000
      if (lastComparison != 0) {
18001
        return lastComparison;
18002
      }
18003
      if (isSetVendorId()) {
18004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
18005
        if (lastComparison != 0) {
18006
          return lastComparison;
18007
        }
18008
      }
18009
      return 0;
18010
    }
18011
 
18012
    public _Fields fieldForId(int fieldId) {
18013
      return _Fields.findByThriftId(fieldId);
18014
    }
18015
 
18016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18017
      org.apache.thrift.protocol.TField field;
18018
      iprot.readStructBegin();
18019
      while (true)
18020
      {
18021
        field = iprot.readFieldBegin();
18022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18023
          break;
18024
        }
18025
        switch (field.id) {
18026
          case 1: // ITEM_ID
18027
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18028
              this.itemId = iprot.readI64();
18029
              setItemIdIsSet(true);
18030
            } else { 
18031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18032
            }
18033
            break;
18034
          case 2: // VENDOR_ID
18035
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18036
              this.vendorId = iprot.readI64();
18037
              setVendorIdIsSet(true);
18038
            } else { 
18039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18040
            }
18041
            break;
18042
          default:
18043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18044
        }
18045
        iprot.readFieldEnd();
18046
      }
18047
      iprot.readStructEnd();
18048
      validate();
18049
    }
18050
 
18051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18052
      validate();
18053
 
18054
      oprot.writeStructBegin(STRUCT_DESC);
18055
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
18056
      oprot.writeI64(this.itemId);
18057
      oprot.writeFieldEnd();
18058
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
18059
      oprot.writeI64(this.vendorId);
18060
      oprot.writeFieldEnd();
18061
      oprot.writeFieldStop();
18062
      oprot.writeStructEnd();
18063
    }
18064
 
18065
    @Override
18066
    public String toString() {
18067
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
18068
      boolean first = true;
18069
 
18070
      sb.append("itemId:");
18071
      sb.append(this.itemId);
18072
      first = false;
18073
      if (!first) sb.append(", ");
18074
      sb.append("vendorId:");
18075
      sb.append(this.vendorId);
18076
      first = false;
18077
      sb.append(")");
18078
      return sb.toString();
18079
    }
18080
 
18081
    public void validate() throws org.apache.thrift.TException {
18082
      // check for required fields
18083
    }
18084
 
18085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18086
      try {
18087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18088
      } catch (org.apache.thrift.TException te) {
18089
        throw new java.io.IOException(te);
18090
      }
18091
    }
18092
 
18093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18094
      try {
18095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18096
      } catch (org.apache.thrift.TException te) {
18097
        throw new java.io.IOException(te);
18098
      }
18099
    }
18100
 
18101
  }
18102
 
18103
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
18104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
18105
 
18106
    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);
18107
    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);
18108
 
18109
    private VendorItemPricing success; // required
18110
    private InventoryServiceException cex; // required
18111
 
18112
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18113
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18114
      SUCCESS((short)0, "success"),
18115
      CEX((short)1, "cex");
18116
 
18117
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18118
 
18119
      static {
18120
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18121
          byName.put(field.getFieldName(), field);
18122
        }
18123
      }
18124
 
18125
      /**
18126
       * Find the _Fields constant that matches fieldId, or null if its not found.
18127
       */
18128
      public static _Fields findByThriftId(int fieldId) {
18129
        switch(fieldId) {
18130
          case 0: // SUCCESS
18131
            return SUCCESS;
18132
          case 1: // CEX
18133
            return CEX;
18134
          default:
18135
            return null;
18136
        }
18137
      }
18138
 
18139
      /**
18140
       * Find the _Fields constant that matches fieldId, throwing an exception
18141
       * if it is not found.
18142
       */
18143
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18144
        _Fields fields = findByThriftId(fieldId);
18145
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18146
        return fields;
18147
      }
18148
 
18149
      /**
18150
       * Find the _Fields constant that matches name, or null if its not found.
18151
       */
18152
      public static _Fields findByName(String name) {
18153
        return byName.get(name);
18154
      }
18155
 
18156
      private final short _thriftId;
18157
      private final String _fieldName;
18158
 
18159
      _Fields(short thriftId, String fieldName) {
18160
        _thriftId = thriftId;
18161
        _fieldName = fieldName;
18162
      }
18163
 
18164
      public short getThriftFieldId() {
18165
        return _thriftId;
18166
      }
18167
 
18168
      public String getFieldName() {
18169
        return _fieldName;
18170
      }
18171
    }
18172
 
18173
    // isset id assignments
18174
 
18175
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18176
    static {
18177
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18178
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18179
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
18180
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18181
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
18184
    }
18185
 
18186
    public getItemPricing_result() {
18187
    }
18188
 
18189
    public getItemPricing_result(
18190
      VendorItemPricing success,
18191
      InventoryServiceException cex)
18192
    {
18193
      this();
18194
      this.success = success;
18195
      this.cex = cex;
18196
    }
18197
 
18198
    /**
18199
     * Performs a deep copy on <i>other</i>.
18200
     */
18201
    public getItemPricing_result(getItemPricing_result other) {
18202
      if (other.isSetSuccess()) {
18203
        this.success = new VendorItemPricing(other.success);
18204
      }
18205
      if (other.isSetCex()) {
18206
        this.cex = new InventoryServiceException(other.cex);
18207
      }
18208
    }
18209
 
18210
    public getItemPricing_result deepCopy() {
18211
      return new getItemPricing_result(this);
18212
    }
18213
 
18214
    @Override
18215
    public void clear() {
18216
      this.success = null;
18217
      this.cex = null;
18218
    }
18219
 
18220
    public VendorItemPricing getSuccess() {
18221
      return this.success;
18222
    }
18223
 
18224
    public void setSuccess(VendorItemPricing success) {
18225
      this.success = success;
18226
    }
18227
 
18228
    public void unsetSuccess() {
18229
      this.success = null;
18230
    }
18231
 
18232
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18233
    public boolean isSetSuccess() {
18234
      return this.success != null;
18235
    }
18236
 
18237
    public void setSuccessIsSet(boolean value) {
18238
      if (!value) {
18239
        this.success = null;
18240
      }
18241
    }
18242
 
18243
    public InventoryServiceException getCex() {
18244
      return this.cex;
18245
    }
18246
 
18247
    public void setCex(InventoryServiceException cex) {
18248
      this.cex = cex;
18249
    }
18250
 
18251
    public void unsetCex() {
18252
      this.cex = null;
18253
    }
18254
 
18255
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18256
    public boolean isSetCex() {
18257
      return this.cex != null;
18258
    }
18259
 
18260
    public void setCexIsSet(boolean value) {
18261
      if (!value) {
18262
        this.cex = null;
18263
      }
18264
    }
18265
 
18266
    public void setFieldValue(_Fields field, Object value) {
18267
      switch (field) {
18268
      case SUCCESS:
18269
        if (value == null) {
18270
          unsetSuccess();
18271
        } else {
18272
          setSuccess((VendorItemPricing)value);
18273
        }
18274
        break;
18275
 
18276
      case CEX:
18277
        if (value == null) {
18278
          unsetCex();
18279
        } else {
18280
          setCex((InventoryServiceException)value);
18281
        }
18282
        break;
18283
 
18284
      }
18285
    }
18286
 
18287
    public Object getFieldValue(_Fields field) {
18288
      switch (field) {
18289
      case SUCCESS:
18290
        return getSuccess();
18291
 
18292
      case CEX:
18293
        return getCex();
18294
 
18295
      }
18296
      throw new IllegalStateException();
18297
    }
18298
 
18299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18300
    public boolean isSet(_Fields field) {
18301
      if (field == null) {
18302
        throw new IllegalArgumentException();
18303
      }
18304
 
18305
      switch (field) {
18306
      case SUCCESS:
18307
        return isSetSuccess();
18308
      case CEX:
18309
        return isSetCex();
18310
      }
18311
      throw new IllegalStateException();
18312
    }
18313
 
18314
    @Override
18315
    public boolean equals(Object that) {
18316
      if (that == null)
18317
        return false;
18318
      if (that instanceof getItemPricing_result)
18319
        return this.equals((getItemPricing_result)that);
18320
      return false;
18321
    }
18322
 
18323
    public boolean equals(getItemPricing_result that) {
18324
      if (that == null)
18325
        return false;
18326
 
18327
      boolean this_present_success = true && this.isSetSuccess();
18328
      boolean that_present_success = true && that.isSetSuccess();
18329
      if (this_present_success || that_present_success) {
18330
        if (!(this_present_success && that_present_success))
18331
          return false;
18332
        if (!this.success.equals(that.success))
18333
          return false;
18334
      }
18335
 
18336
      boolean this_present_cex = true && this.isSetCex();
18337
      boolean that_present_cex = true && that.isSetCex();
18338
      if (this_present_cex || that_present_cex) {
18339
        if (!(this_present_cex && that_present_cex))
18340
          return false;
18341
        if (!this.cex.equals(that.cex))
18342
          return false;
18343
      }
18344
 
18345
      return true;
18346
    }
18347
 
18348
    @Override
18349
    public int hashCode() {
18350
      return 0;
18351
    }
18352
 
18353
    public int compareTo(getItemPricing_result other) {
18354
      if (!getClass().equals(other.getClass())) {
18355
        return getClass().getName().compareTo(other.getClass().getName());
18356
      }
18357
 
18358
      int lastComparison = 0;
18359
      getItemPricing_result typedOther = (getItemPricing_result)other;
18360
 
18361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18362
      if (lastComparison != 0) {
18363
        return lastComparison;
18364
      }
18365
      if (isSetSuccess()) {
18366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18367
        if (lastComparison != 0) {
18368
          return lastComparison;
18369
        }
18370
      }
18371
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18372
      if (lastComparison != 0) {
18373
        return lastComparison;
18374
      }
18375
      if (isSetCex()) {
18376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18377
        if (lastComparison != 0) {
18378
          return lastComparison;
18379
        }
18380
      }
18381
      return 0;
18382
    }
18383
 
18384
    public _Fields fieldForId(int fieldId) {
18385
      return _Fields.findByThriftId(fieldId);
18386
    }
18387
 
18388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18389
      org.apache.thrift.protocol.TField field;
18390
      iprot.readStructBegin();
18391
      while (true)
18392
      {
18393
        field = iprot.readFieldBegin();
18394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18395
          break;
18396
        }
18397
        switch (field.id) {
18398
          case 0: // SUCCESS
18399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18400
              this.success = new VendorItemPricing();
18401
              this.success.read(iprot);
18402
            } else { 
18403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18404
            }
18405
            break;
18406
          case 1: // CEX
18407
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18408
              this.cex = new InventoryServiceException();
18409
              this.cex.read(iprot);
18410
            } else { 
18411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18412
            }
18413
            break;
18414
          default:
18415
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18416
        }
18417
        iprot.readFieldEnd();
18418
      }
18419
      iprot.readStructEnd();
18420
      validate();
18421
    }
18422
 
18423
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18424
      oprot.writeStructBegin(STRUCT_DESC);
18425
 
18426
      if (this.isSetSuccess()) {
18427
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18428
        this.success.write(oprot);
18429
        oprot.writeFieldEnd();
18430
      } else if (this.isSetCex()) {
18431
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18432
        this.cex.write(oprot);
18433
        oprot.writeFieldEnd();
18434
      }
18435
      oprot.writeFieldStop();
18436
      oprot.writeStructEnd();
18437
    }
18438
 
18439
    @Override
18440
    public String toString() {
18441
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
18442
      boolean first = true;
18443
 
18444
      sb.append("success:");
18445
      if (this.success == null) {
18446
        sb.append("null");
18447
      } else {
18448
        sb.append(this.success);
18449
      }
18450
      first = false;
18451
      if (!first) sb.append(", ");
18452
      sb.append("cex:");
18453
      if (this.cex == null) {
18454
        sb.append("null");
18455
      } else {
18456
        sb.append(this.cex);
18457
      }
18458
      first = false;
18459
      sb.append(")");
18460
      return sb.toString();
18461
    }
18462
 
18463
    public void validate() throws org.apache.thrift.TException {
18464
      // check for required fields
18465
    }
18466
 
18467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18468
      try {
18469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18470
      } catch (org.apache.thrift.TException te) {
18471
        throw new java.io.IOException(te);
18472
      }
18473
    }
18474
 
18475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18476
      try {
18477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18478
      } catch (org.apache.thrift.TException te) {
18479
        throw new java.io.IOException(te);
18480
      }
18481
    }
18482
 
18483
  }
18484
 
18485
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
18486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
18487
 
18488
    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);
18489
 
18490
    private long itemId; // required
18491
 
18492
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18493
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18494
      ITEM_ID((short)1, "itemId");
18495
 
18496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18497
 
18498
      static {
18499
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18500
          byName.put(field.getFieldName(), field);
18501
        }
18502
      }
18503
 
18504
      /**
18505
       * Find the _Fields constant that matches fieldId, or null if its not found.
18506
       */
18507
      public static _Fields findByThriftId(int fieldId) {
18508
        switch(fieldId) {
18509
          case 1: // ITEM_ID
18510
            return ITEM_ID;
18511
          default:
18512
            return null;
18513
        }
18514
      }
18515
 
18516
      /**
18517
       * Find the _Fields constant that matches fieldId, throwing an exception
18518
       * if it is not found.
18519
       */
18520
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18521
        _Fields fields = findByThriftId(fieldId);
18522
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18523
        return fields;
18524
      }
18525
 
18526
      /**
18527
       * Find the _Fields constant that matches name, or null if its not found.
18528
       */
18529
      public static _Fields findByName(String name) {
18530
        return byName.get(name);
18531
      }
18532
 
18533
      private final short _thriftId;
18534
      private final String _fieldName;
18535
 
18536
      _Fields(short thriftId, String fieldName) {
18537
        _thriftId = thriftId;
18538
        _fieldName = fieldName;
18539
      }
18540
 
18541
      public short getThriftFieldId() {
18542
        return _thriftId;
18543
      }
18544
 
18545
      public String getFieldName() {
18546
        return _fieldName;
18547
      }
18548
    }
18549
 
18550
    // isset id assignments
18551
    private static final int __ITEMID_ISSET_ID = 0;
18552
    private BitSet __isset_bit_vector = new BitSet(1);
18553
 
18554
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18555
    static {
18556
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18557
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18558
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18559
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18560
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
18561
    }
18562
 
18563
    public getAllItemPricing_args() {
18564
    }
18565
 
18566
    public getAllItemPricing_args(
18567
      long itemId)
18568
    {
18569
      this();
18570
      this.itemId = itemId;
18571
      setItemIdIsSet(true);
18572
    }
18573
 
18574
    /**
18575
     * Performs a deep copy on <i>other</i>.
18576
     */
18577
    public getAllItemPricing_args(getAllItemPricing_args other) {
18578
      __isset_bit_vector.clear();
18579
      __isset_bit_vector.or(other.__isset_bit_vector);
18580
      this.itemId = other.itemId;
18581
    }
18582
 
18583
    public getAllItemPricing_args deepCopy() {
18584
      return new getAllItemPricing_args(this);
18585
    }
18586
 
18587
    @Override
18588
    public void clear() {
18589
      setItemIdIsSet(false);
18590
      this.itemId = 0;
18591
    }
18592
 
18593
    public long getItemId() {
18594
      return this.itemId;
18595
    }
18596
 
18597
    public void setItemId(long itemId) {
18598
      this.itemId = itemId;
18599
      setItemIdIsSet(true);
18600
    }
18601
 
18602
    public void unsetItemId() {
18603
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
18604
    }
18605
 
18606
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
18607
    public boolean isSetItemId() {
18608
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
18609
    }
18610
 
18611
    public void setItemIdIsSet(boolean value) {
18612
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
18613
    }
18614
 
18615
    public void setFieldValue(_Fields field, Object value) {
18616
      switch (field) {
18617
      case ITEM_ID:
18618
        if (value == null) {
18619
          unsetItemId();
18620
        } else {
18621
          setItemId((Long)value);
18622
        }
18623
        break;
18624
 
18625
      }
18626
    }
18627
 
18628
    public Object getFieldValue(_Fields field) {
18629
      switch (field) {
18630
      case ITEM_ID:
18631
        return Long.valueOf(getItemId());
18632
 
18633
      }
18634
      throw new IllegalStateException();
18635
    }
18636
 
18637
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18638
    public boolean isSet(_Fields field) {
18639
      if (field == null) {
18640
        throw new IllegalArgumentException();
18641
      }
18642
 
18643
      switch (field) {
18644
      case ITEM_ID:
18645
        return isSetItemId();
18646
      }
18647
      throw new IllegalStateException();
18648
    }
18649
 
18650
    @Override
18651
    public boolean equals(Object that) {
18652
      if (that == null)
18653
        return false;
18654
      if (that instanceof getAllItemPricing_args)
18655
        return this.equals((getAllItemPricing_args)that);
18656
      return false;
18657
    }
18658
 
18659
    public boolean equals(getAllItemPricing_args that) {
18660
      if (that == null)
18661
        return false;
18662
 
18663
      boolean this_present_itemId = true;
18664
      boolean that_present_itemId = true;
18665
      if (this_present_itemId || that_present_itemId) {
18666
        if (!(this_present_itemId && that_present_itemId))
18667
          return false;
18668
        if (this.itemId != that.itemId)
18669
          return false;
18670
      }
18671
 
18672
      return true;
18673
    }
18674
 
18675
    @Override
18676
    public int hashCode() {
18677
      return 0;
18678
    }
18679
 
18680
    public int compareTo(getAllItemPricing_args other) {
18681
      if (!getClass().equals(other.getClass())) {
18682
        return getClass().getName().compareTo(other.getClass().getName());
18683
      }
18684
 
18685
      int lastComparison = 0;
18686
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
18687
 
18688
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
18689
      if (lastComparison != 0) {
18690
        return lastComparison;
18691
      }
18692
      if (isSetItemId()) {
18693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
18694
        if (lastComparison != 0) {
18695
          return lastComparison;
18696
        }
18697
      }
18698
      return 0;
18699
    }
18700
 
18701
    public _Fields fieldForId(int fieldId) {
18702
      return _Fields.findByThriftId(fieldId);
18703
    }
18704
 
18705
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18706
      org.apache.thrift.protocol.TField field;
18707
      iprot.readStructBegin();
18708
      while (true)
18709
      {
18710
        field = iprot.readFieldBegin();
18711
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18712
          break;
18713
        }
18714
        switch (field.id) {
18715
          case 1: // ITEM_ID
18716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18717
              this.itemId = iprot.readI64();
18718
              setItemIdIsSet(true);
18719
            } else { 
18720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18721
            }
18722
            break;
18723
          default:
18724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18725
        }
18726
        iprot.readFieldEnd();
18727
      }
18728
      iprot.readStructEnd();
18729
      validate();
18730
    }
18731
 
18732
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18733
      validate();
18734
 
18735
      oprot.writeStructBegin(STRUCT_DESC);
18736
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
18737
      oprot.writeI64(this.itemId);
18738
      oprot.writeFieldEnd();
18739
      oprot.writeFieldStop();
18740
      oprot.writeStructEnd();
18741
    }
18742
 
18743
    @Override
18744
    public String toString() {
18745
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
18746
      boolean first = true;
18747
 
18748
      sb.append("itemId:");
18749
      sb.append(this.itemId);
18750
      first = false;
18751
      sb.append(")");
18752
      return sb.toString();
18753
    }
18754
 
18755
    public void validate() throws org.apache.thrift.TException {
18756
      // check for required fields
18757
    }
18758
 
18759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18760
      try {
18761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18762
      } catch (org.apache.thrift.TException te) {
18763
        throw new java.io.IOException(te);
18764
      }
18765
    }
18766
 
18767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18768
      try {
18769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18770
      } catch (org.apache.thrift.TException te) {
18771
        throw new java.io.IOException(te);
18772
      }
18773
    }
18774
 
18775
  }
18776
 
18777
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
18778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
18779
 
18780
    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);
18781
    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);
18782
 
18783
    private List<VendorItemPricing> success; // required
18784
    private InventoryServiceException cex; // required
18785
 
18786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18788
      SUCCESS((short)0, "success"),
18789
      CEX((short)1, "cex");
18790
 
18791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18792
 
18793
      static {
18794
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18795
          byName.put(field.getFieldName(), field);
18796
        }
18797
      }
18798
 
18799
      /**
18800
       * Find the _Fields constant that matches fieldId, or null if its not found.
18801
       */
18802
      public static _Fields findByThriftId(int fieldId) {
18803
        switch(fieldId) {
18804
          case 0: // SUCCESS
18805
            return SUCCESS;
18806
          case 1: // CEX
18807
            return CEX;
18808
          default:
18809
            return null;
18810
        }
18811
      }
18812
 
18813
      /**
18814
       * Find the _Fields constant that matches fieldId, throwing an exception
18815
       * if it is not found.
18816
       */
18817
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18818
        _Fields fields = findByThriftId(fieldId);
18819
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18820
        return fields;
18821
      }
18822
 
18823
      /**
18824
       * Find the _Fields constant that matches name, or null if its not found.
18825
       */
18826
      public static _Fields findByName(String name) {
18827
        return byName.get(name);
18828
      }
18829
 
18830
      private final short _thriftId;
18831
      private final String _fieldName;
18832
 
18833
      _Fields(short thriftId, String fieldName) {
18834
        _thriftId = thriftId;
18835
        _fieldName = fieldName;
18836
      }
18837
 
18838
      public short getThriftFieldId() {
18839
        return _thriftId;
18840
      }
18841
 
18842
      public String getFieldName() {
18843
        return _fieldName;
18844
      }
18845
    }
18846
 
18847
    // isset id assignments
18848
 
18849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18850
    static {
18851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18852
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18853
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18854
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
18855
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
18859
    }
18860
 
18861
    public getAllItemPricing_result() {
18862
    }
18863
 
18864
    public getAllItemPricing_result(
18865
      List<VendorItemPricing> success,
18866
      InventoryServiceException cex)
18867
    {
18868
      this();
18869
      this.success = success;
18870
      this.cex = cex;
18871
    }
18872
 
18873
    /**
18874
     * Performs a deep copy on <i>other</i>.
18875
     */
18876
    public getAllItemPricing_result(getAllItemPricing_result other) {
18877
      if (other.isSetSuccess()) {
18878
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
18879
        for (VendorItemPricing other_element : other.success) {
18880
          __this__success.add(new VendorItemPricing(other_element));
18881
        }
18882
        this.success = __this__success;
18883
      }
18884
      if (other.isSetCex()) {
18885
        this.cex = new InventoryServiceException(other.cex);
18886
      }
18887
    }
18888
 
18889
    public getAllItemPricing_result deepCopy() {
18890
      return new getAllItemPricing_result(this);
18891
    }
18892
 
18893
    @Override
18894
    public void clear() {
18895
      this.success = null;
18896
      this.cex = null;
18897
    }
18898
 
18899
    public int getSuccessSize() {
18900
      return (this.success == null) ? 0 : this.success.size();
18901
    }
18902
 
18903
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
18904
      return (this.success == null) ? null : this.success.iterator();
18905
    }
18906
 
18907
    public void addToSuccess(VendorItemPricing elem) {
18908
      if (this.success == null) {
18909
        this.success = new ArrayList<VendorItemPricing>();
18910
      }
18911
      this.success.add(elem);
18912
    }
18913
 
18914
    public List<VendorItemPricing> getSuccess() {
18915
      return this.success;
18916
    }
18917
 
18918
    public void setSuccess(List<VendorItemPricing> success) {
18919
      this.success = success;
18920
    }
18921
 
18922
    public void unsetSuccess() {
18923
      this.success = null;
18924
    }
18925
 
18926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18927
    public boolean isSetSuccess() {
18928
      return this.success != null;
18929
    }
18930
 
18931
    public void setSuccessIsSet(boolean value) {
18932
      if (!value) {
18933
        this.success = null;
18934
      }
18935
    }
18936
 
18937
    public InventoryServiceException getCex() {
18938
      return this.cex;
18939
    }
18940
 
18941
    public void setCex(InventoryServiceException cex) {
18942
      this.cex = cex;
18943
    }
18944
 
18945
    public void unsetCex() {
18946
      this.cex = null;
18947
    }
18948
 
18949
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18950
    public boolean isSetCex() {
18951
      return this.cex != null;
18952
    }
18953
 
18954
    public void setCexIsSet(boolean value) {
18955
      if (!value) {
18956
        this.cex = null;
18957
      }
18958
    }
18959
 
18960
    public void setFieldValue(_Fields field, Object value) {
18961
      switch (field) {
18962
      case SUCCESS:
18963
        if (value == null) {
18964
          unsetSuccess();
18965
        } else {
18966
          setSuccess((List<VendorItemPricing>)value);
18967
        }
18968
        break;
18969
 
18970
      case CEX:
18971
        if (value == null) {
18972
          unsetCex();
18973
        } else {
18974
          setCex((InventoryServiceException)value);
18975
        }
18976
        break;
18977
 
18978
      }
18979
    }
18980
 
18981
    public Object getFieldValue(_Fields field) {
18982
      switch (field) {
18983
      case SUCCESS:
18984
        return getSuccess();
18985
 
18986
      case CEX:
18987
        return getCex();
18988
 
18989
      }
18990
      throw new IllegalStateException();
18991
    }
18992
 
18993
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18994
    public boolean isSet(_Fields field) {
18995
      if (field == null) {
18996
        throw new IllegalArgumentException();
18997
      }
18998
 
18999
      switch (field) {
19000
      case SUCCESS:
19001
        return isSetSuccess();
19002
      case CEX:
19003
        return isSetCex();
19004
      }
19005
      throw new IllegalStateException();
19006
    }
19007
 
19008
    @Override
19009
    public boolean equals(Object that) {
19010
      if (that == null)
19011
        return false;
19012
      if (that instanceof getAllItemPricing_result)
19013
        return this.equals((getAllItemPricing_result)that);
19014
      return false;
19015
    }
19016
 
19017
    public boolean equals(getAllItemPricing_result that) {
19018
      if (that == null)
19019
        return false;
19020
 
19021
      boolean this_present_success = true && this.isSetSuccess();
19022
      boolean that_present_success = true && that.isSetSuccess();
19023
      if (this_present_success || that_present_success) {
19024
        if (!(this_present_success && that_present_success))
19025
          return false;
19026
        if (!this.success.equals(that.success))
19027
          return false;
19028
      }
19029
 
19030
      boolean this_present_cex = true && this.isSetCex();
19031
      boolean that_present_cex = true && that.isSetCex();
19032
      if (this_present_cex || that_present_cex) {
19033
        if (!(this_present_cex && that_present_cex))
19034
          return false;
19035
        if (!this.cex.equals(that.cex))
19036
          return false;
19037
      }
19038
 
19039
      return true;
19040
    }
19041
 
19042
    @Override
19043
    public int hashCode() {
19044
      return 0;
19045
    }
19046
 
19047
    public int compareTo(getAllItemPricing_result other) {
19048
      if (!getClass().equals(other.getClass())) {
19049
        return getClass().getName().compareTo(other.getClass().getName());
19050
      }
19051
 
19052
      int lastComparison = 0;
19053
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
19054
 
19055
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19056
      if (lastComparison != 0) {
19057
        return lastComparison;
19058
      }
19059
      if (isSetSuccess()) {
19060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19061
        if (lastComparison != 0) {
19062
          return lastComparison;
19063
        }
19064
      }
19065
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19066
      if (lastComparison != 0) {
19067
        return lastComparison;
19068
      }
19069
      if (isSetCex()) {
19070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19071
        if (lastComparison != 0) {
19072
          return lastComparison;
19073
        }
19074
      }
19075
      return 0;
19076
    }
19077
 
19078
    public _Fields fieldForId(int fieldId) {
19079
      return _Fields.findByThriftId(fieldId);
19080
    }
19081
 
19082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19083
      org.apache.thrift.protocol.TField field;
19084
      iprot.readStructBegin();
19085
      while (true)
19086
      {
19087
        field = iprot.readFieldBegin();
19088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19089
          break;
19090
        }
19091
        switch (field.id) {
19092
          case 0: // SUCCESS
19093
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19094
              {
8182 amar.kumar 19095
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
19096
                this.success = new ArrayList<VendorItemPricing>(_list37.size);
19097
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
5945 mandeep.dh 19098
                {
8182 amar.kumar 19099
                  VendorItemPricing _elem39; // required
19100
                  _elem39 = new VendorItemPricing();
19101
                  _elem39.read(iprot);
19102
                  this.success.add(_elem39);
5945 mandeep.dh 19103
                }
19104
                iprot.readListEnd();
19105
              }
19106
            } else { 
19107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19108
            }
19109
            break;
19110
          case 1: // CEX
19111
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19112
              this.cex = new InventoryServiceException();
19113
              this.cex.read(iprot);
19114
            } else { 
19115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19116
            }
19117
            break;
19118
          default:
19119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19120
        }
19121
        iprot.readFieldEnd();
19122
      }
19123
      iprot.readStructEnd();
19124
      validate();
19125
    }
19126
 
19127
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19128
      oprot.writeStructBegin(STRUCT_DESC);
19129
 
19130
      if (this.isSetSuccess()) {
19131
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19132
        {
19133
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 19134
          for (VendorItemPricing _iter40 : this.success)
5945 mandeep.dh 19135
          {
8182 amar.kumar 19136
            _iter40.write(oprot);
5945 mandeep.dh 19137
          }
19138
          oprot.writeListEnd();
19139
        }
19140
        oprot.writeFieldEnd();
19141
      } else if (this.isSetCex()) {
19142
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19143
        this.cex.write(oprot);
19144
        oprot.writeFieldEnd();
19145
      }
19146
      oprot.writeFieldStop();
19147
      oprot.writeStructEnd();
19148
    }
19149
 
19150
    @Override
19151
    public String toString() {
19152
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
19153
      boolean first = true;
19154
 
19155
      sb.append("success:");
19156
      if (this.success == null) {
19157
        sb.append("null");
19158
      } else {
19159
        sb.append(this.success);
19160
      }
19161
      first = false;
19162
      if (!first) sb.append(", ");
19163
      sb.append("cex:");
19164
      if (this.cex == null) {
19165
        sb.append("null");
19166
      } else {
19167
        sb.append(this.cex);
19168
      }
19169
      first = false;
19170
      sb.append(")");
19171
      return sb.toString();
19172
    }
19173
 
19174
    public void validate() throws org.apache.thrift.TException {
19175
      // check for required fields
19176
    }
19177
 
19178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19179
      try {
19180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19181
      } catch (org.apache.thrift.TException te) {
19182
        throw new java.io.IOException(te);
19183
      }
19184
    }
19185
 
19186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19187
      try {
19188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19189
      } catch (org.apache.thrift.TException te) {
19190
        throw new java.io.IOException(te);
19191
      }
19192
    }
19193
 
19194
  }
19195
 
19196
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
19197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
19198
 
19199
    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);
19200
 
19201
    private VendorItemPricing vendorItemPricing; // required
19202
 
19203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19205
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
19206
 
19207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19208
 
19209
      static {
19210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19211
          byName.put(field.getFieldName(), field);
19212
        }
19213
      }
19214
 
19215
      /**
19216
       * Find the _Fields constant that matches fieldId, or null if its not found.
19217
       */
19218
      public static _Fields findByThriftId(int fieldId) {
19219
        switch(fieldId) {
19220
          case 1: // VENDOR_ITEM_PRICING
19221
            return VENDOR_ITEM_PRICING;
19222
          default:
19223
            return null;
19224
        }
19225
      }
19226
 
19227
      /**
19228
       * Find the _Fields constant that matches fieldId, throwing an exception
19229
       * if it is not found.
19230
       */
19231
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19232
        _Fields fields = findByThriftId(fieldId);
19233
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19234
        return fields;
19235
      }
19236
 
19237
      /**
19238
       * Find the _Fields constant that matches name, or null if its not found.
19239
       */
19240
      public static _Fields findByName(String name) {
19241
        return byName.get(name);
19242
      }
19243
 
19244
      private final short _thriftId;
19245
      private final String _fieldName;
19246
 
19247
      _Fields(short thriftId, String fieldName) {
19248
        _thriftId = thriftId;
19249
        _fieldName = fieldName;
19250
      }
19251
 
19252
      public short getThriftFieldId() {
19253
        return _thriftId;
19254
      }
19255
 
19256
      public String getFieldName() {
19257
        return _fieldName;
19258
      }
19259
    }
19260
 
19261
    // isset id assignments
19262
 
19263
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19264
    static {
19265
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19266
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19267
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
19268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
19270
    }
19271
 
19272
    public addVendorItemPricing_args() {
19273
    }
19274
 
19275
    public addVendorItemPricing_args(
19276
      VendorItemPricing vendorItemPricing)
19277
    {
19278
      this();
19279
      this.vendorItemPricing = vendorItemPricing;
19280
    }
19281
 
19282
    /**
19283
     * Performs a deep copy on <i>other</i>.
19284
     */
19285
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
19286
      if (other.isSetVendorItemPricing()) {
19287
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
19288
      }
19289
    }
19290
 
19291
    public addVendorItemPricing_args deepCopy() {
19292
      return new addVendorItemPricing_args(this);
19293
    }
19294
 
19295
    @Override
19296
    public void clear() {
19297
      this.vendorItemPricing = null;
19298
    }
19299
 
19300
    public VendorItemPricing getVendorItemPricing() {
19301
      return this.vendorItemPricing;
19302
    }
19303
 
19304
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
19305
      this.vendorItemPricing = vendorItemPricing;
19306
    }
19307
 
19308
    public void unsetVendorItemPricing() {
19309
      this.vendorItemPricing = null;
19310
    }
19311
 
19312
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
19313
    public boolean isSetVendorItemPricing() {
19314
      return this.vendorItemPricing != null;
19315
    }
19316
 
19317
    public void setVendorItemPricingIsSet(boolean value) {
19318
      if (!value) {
19319
        this.vendorItemPricing = null;
19320
      }
19321
    }
19322
 
19323
    public void setFieldValue(_Fields field, Object value) {
19324
      switch (field) {
19325
      case VENDOR_ITEM_PRICING:
19326
        if (value == null) {
19327
          unsetVendorItemPricing();
19328
        } else {
19329
          setVendorItemPricing((VendorItemPricing)value);
19330
        }
19331
        break;
19332
 
19333
      }
19334
    }
19335
 
19336
    public Object getFieldValue(_Fields field) {
19337
      switch (field) {
19338
      case VENDOR_ITEM_PRICING:
19339
        return getVendorItemPricing();
19340
 
19341
      }
19342
      throw new IllegalStateException();
19343
    }
19344
 
19345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19346
    public boolean isSet(_Fields field) {
19347
      if (field == null) {
19348
        throw new IllegalArgumentException();
19349
      }
19350
 
19351
      switch (field) {
19352
      case VENDOR_ITEM_PRICING:
19353
        return isSetVendorItemPricing();
19354
      }
19355
      throw new IllegalStateException();
19356
    }
19357
 
19358
    @Override
19359
    public boolean equals(Object that) {
19360
      if (that == null)
19361
        return false;
19362
      if (that instanceof addVendorItemPricing_args)
19363
        return this.equals((addVendorItemPricing_args)that);
19364
      return false;
19365
    }
19366
 
19367
    public boolean equals(addVendorItemPricing_args that) {
19368
      if (that == null)
19369
        return false;
19370
 
19371
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
19372
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
19373
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
19374
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
19375
          return false;
19376
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
19377
          return false;
19378
      }
19379
 
19380
      return true;
19381
    }
19382
 
19383
    @Override
19384
    public int hashCode() {
19385
      return 0;
19386
    }
19387
 
19388
    public int compareTo(addVendorItemPricing_args other) {
19389
      if (!getClass().equals(other.getClass())) {
19390
        return getClass().getName().compareTo(other.getClass().getName());
19391
      }
19392
 
19393
      int lastComparison = 0;
19394
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
19395
 
19396
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
19397
      if (lastComparison != 0) {
19398
        return lastComparison;
19399
      }
19400
      if (isSetVendorItemPricing()) {
19401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
19402
        if (lastComparison != 0) {
19403
          return lastComparison;
19404
        }
19405
      }
19406
      return 0;
19407
    }
19408
 
19409
    public _Fields fieldForId(int fieldId) {
19410
      return _Fields.findByThriftId(fieldId);
19411
    }
19412
 
19413
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19414
      org.apache.thrift.protocol.TField field;
19415
      iprot.readStructBegin();
19416
      while (true)
19417
      {
19418
        field = iprot.readFieldBegin();
19419
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19420
          break;
19421
        }
19422
        switch (field.id) {
19423
          case 1: // VENDOR_ITEM_PRICING
19424
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19425
              this.vendorItemPricing = new VendorItemPricing();
19426
              this.vendorItemPricing.read(iprot);
19427
            } else { 
19428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19429
            }
19430
            break;
19431
          default:
19432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19433
        }
19434
        iprot.readFieldEnd();
19435
      }
19436
      iprot.readStructEnd();
19437
      validate();
19438
    }
19439
 
19440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19441
      validate();
19442
 
19443
      oprot.writeStructBegin(STRUCT_DESC);
19444
      if (this.vendorItemPricing != null) {
19445
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
19446
        this.vendorItemPricing.write(oprot);
19447
        oprot.writeFieldEnd();
19448
      }
19449
      oprot.writeFieldStop();
19450
      oprot.writeStructEnd();
19451
    }
19452
 
19453
    @Override
19454
    public String toString() {
19455
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
19456
      boolean first = true;
19457
 
19458
      sb.append("vendorItemPricing:");
19459
      if (this.vendorItemPricing == null) {
19460
        sb.append("null");
19461
      } else {
19462
        sb.append(this.vendorItemPricing);
19463
      }
19464
      first = false;
19465
      sb.append(")");
19466
      return sb.toString();
19467
    }
19468
 
19469
    public void validate() throws org.apache.thrift.TException {
19470
      // check for required fields
19471
    }
19472
 
19473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19474
      try {
19475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19476
      } catch (org.apache.thrift.TException te) {
19477
        throw new java.io.IOException(te);
19478
      }
19479
    }
19480
 
19481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19482
      try {
19483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19484
      } catch (org.apache.thrift.TException te) {
19485
        throw new java.io.IOException(te);
19486
      }
19487
    }
19488
 
19489
  }
19490
 
19491
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
19492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
19493
 
19494
    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);
19495
 
19496
    private InventoryServiceException cex; // required
19497
 
19498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19500
      CEX((short)1, "cex");
19501
 
19502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19503
 
19504
      static {
19505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19506
          byName.put(field.getFieldName(), field);
19507
        }
19508
      }
19509
 
19510
      /**
19511
       * Find the _Fields constant that matches fieldId, or null if its not found.
19512
       */
19513
      public static _Fields findByThriftId(int fieldId) {
19514
        switch(fieldId) {
19515
          case 1: // CEX
19516
            return CEX;
19517
          default:
19518
            return null;
19519
        }
19520
      }
19521
 
19522
      /**
19523
       * Find the _Fields constant that matches fieldId, throwing an exception
19524
       * if it is not found.
19525
       */
19526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19527
        _Fields fields = findByThriftId(fieldId);
19528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19529
        return fields;
19530
      }
19531
 
19532
      /**
19533
       * Find the _Fields constant that matches name, or null if its not found.
19534
       */
19535
      public static _Fields findByName(String name) {
19536
        return byName.get(name);
19537
      }
19538
 
19539
      private final short _thriftId;
19540
      private final String _fieldName;
19541
 
19542
      _Fields(short thriftId, String fieldName) {
19543
        _thriftId = thriftId;
19544
        _fieldName = fieldName;
19545
      }
19546
 
19547
      public short getThriftFieldId() {
19548
        return _thriftId;
19549
      }
19550
 
19551
      public String getFieldName() {
19552
        return _fieldName;
19553
      }
19554
    }
19555
 
19556
    // isset id assignments
19557
 
19558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19559
    static {
19560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19561
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
19565
    }
19566
 
19567
    public addVendorItemPricing_result() {
19568
    }
19569
 
19570
    public addVendorItemPricing_result(
19571
      InventoryServiceException cex)
19572
    {
19573
      this();
19574
      this.cex = cex;
19575
    }
19576
 
19577
    /**
19578
     * Performs a deep copy on <i>other</i>.
19579
     */
19580
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
19581
      if (other.isSetCex()) {
19582
        this.cex = new InventoryServiceException(other.cex);
19583
      }
19584
    }
19585
 
19586
    public addVendorItemPricing_result deepCopy() {
19587
      return new addVendorItemPricing_result(this);
19588
    }
19589
 
19590
    @Override
19591
    public void clear() {
19592
      this.cex = null;
19593
    }
19594
 
19595
    public InventoryServiceException getCex() {
19596
      return this.cex;
19597
    }
19598
 
19599
    public void setCex(InventoryServiceException cex) {
19600
      this.cex = cex;
19601
    }
19602
 
19603
    public void unsetCex() {
19604
      this.cex = null;
19605
    }
19606
 
19607
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19608
    public boolean isSetCex() {
19609
      return this.cex != null;
19610
    }
19611
 
19612
    public void setCexIsSet(boolean value) {
19613
      if (!value) {
19614
        this.cex = null;
19615
      }
19616
    }
19617
 
19618
    public void setFieldValue(_Fields field, Object value) {
19619
      switch (field) {
19620
      case CEX:
19621
        if (value == null) {
19622
          unsetCex();
19623
        } else {
19624
          setCex((InventoryServiceException)value);
19625
        }
19626
        break;
19627
 
19628
      }
19629
    }
19630
 
19631
    public Object getFieldValue(_Fields field) {
19632
      switch (field) {
19633
      case CEX:
19634
        return getCex();
19635
 
19636
      }
19637
      throw new IllegalStateException();
19638
    }
19639
 
19640
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19641
    public boolean isSet(_Fields field) {
19642
      if (field == null) {
19643
        throw new IllegalArgumentException();
19644
      }
19645
 
19646
      switch (field) {
19647
      case CEX:
19648
        return isSetCex();
19649
      }
19650
      throw new IllegalStateException();
19651
    }
19652
 
19653
    @Override
19654
    public boolean equals(Object that) {
19655
      if (that == null)
19656
        return false;
19657
      if (that instanceof addVendorItemPricing_result)
19658
        return this.equals((addVendorItemPricing_result)that);
19659
      return false;
19660
    }
19661
 
19662
    public boolean equals(addVendorItemPricing_result that) {
19663
      if (that == null)
19664
        return false;
19665
 
19666
      boolean this_present_cex = true && this.isSetCex();
19667
      boolean that_present_cex = true && that.isSetCex();
19668
      if (this_present_cex || that_present_cex) {
19669
        if (!(this_present_cex && that_present_cex))
19670
          return false;
19671
        if (!this.cex.equals(that.cex))
19672
          return false;
19673
      }
19674
 
19675
      return true;
19676
    }
19677
 
19678
    @Override
19679
    public int hashCode() {
19680
      return 0;
19681
    }
19682
 
19683
    public int compareTo(addVendorItemPricing_result other) {
19684
      if (!getClass().equals(other.getClass())) {
19685
        return getClass().getName().compareTo(other.getClass().getName());
19686
      }
19687
 
19688
      int lastComparison = 0;
19689
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
19690
 
19691
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19692
      if (lastComparison != 0) {
19693
        return lastComparison;
19694
      }
19695
      if (isSetCex()) {
19696
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19697
        if (lastComparison != 0) {
19698
          return lastComparison;
19699
        }
19700
      }
19701
      return 0;
19702
    }
19703
 
19704
    public _Fields fieldForId(int fieldId) {
19705
      return _Fields.findByThriftId(fieldId);
19706
    }
19707
 
19708
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19709
      org.apache.thrift.protocol.TField field;
19710
      iprot.readStructBegin();
19711
      while (true)
19712
      {
19713
        field = iprot.readFieldBegin();
19714
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19715
          break;
19716
        }
19717
        switch (field.id) {
19718
          case 1: // CEX
19719
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19720
              this.cex = new InventoryServiceException();
19721
              this.cex.read(iprot);
19722
            } else { 
19723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19724
            }
19725
            break;
19726
          default:
19727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19728
        }
19729
        iprot.readFieldEnd();
19730
      }
19731
      iprot.readStructEnd();
19732
      validate();
19733
    }
19734
 
19735
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19736
      oprot.writeStructBegin(STRUCT_DESC);
19737
 
19738
      if (this.isSetCex()) {
19739
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19740
        this.cex.write(oprot);
19741
        oprot.writeFieldEnd();
19742
      }
19743
      oprot.writeFieldStop();
19744
      oprot.writeStructEnd();
19745
    }
19746
 
19747
    @Override
19748
    public String toString() {
19749
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
19750
      boolean first = true;
19751
 
19752
      sb.append("cex:");
19753
      if (this.cex == null) {
19754
        sb.append("null");
19755
      } else {
19756
        sb.append(this.cex);
19757
      }
19758
      first = false;
19759
      sb.append(")");
19760
      return sb.toString();
19761
    }
19762
 
19763
    public void validate() throws org.apache.thrift.TException {
19764
      // check for required fields
19765
    }
19766
 
19767
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19768
      try {
19769
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19770
      } catch (org.apache.thrift.TException te) {
19771
        throw new java.io.IOException(te);
19772
      }
19773
    }
19774
 
19775
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19776
      try {
19777
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19778
      } catch (org.apache.thrift.TException te) {
19779
        throw new java.io.IOException(te);
19780
      }
19781
    }
19782
 
19783
  }
19784
 
19785
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
19786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
19787
 
19788
    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);
19789
 
19790
    private long vendorId; // required
19791
 
19792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19794
      VENDOR_ID((short)1, "vendorId");
19795
 
19796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19797
 
19798
      static {
19799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19800
          byName.put(field.getFieldName(), field);
19801
        }
19802
      }
19803
 
19804
      /**
19805
       * Find the _Fields constant that matches fieldId, or null if its not found.
19806
       */
19807
      public static _Fields findByThriftId(int fieldId) {
19808
        switch(fieldId) {
19809
          case 1: // VENDOR_ID
19810
            return VENDOR_ID;
19811
          default:
19812
            return null;
19813
        }
19814
      }
19815
 
19816
      /**
19817
       * Find the _Fields constant that matches fieldId, throwing an exception
19818
       * if it is not found.
19819
       */
19820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19821
        _Fields fields = findByThriftId(fieldId);
19822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19823
        return fields;
19824
      }
19825
 
19826
      /**
19827
       * Find the _Fields constant that matches name, or null if its not found.
19828
       */
19829
      public static _Fields findByName(String name) {
19830
        return byName.get(name);
19831
      }
19832
 
19833
      private final short _thriftId;
19834
      private final String _fieldName;
19835
 
19836
      _Fields(short thriftId, String fieldName) {
19837
        _thriftId = thriftId;
19838
        _fieldName = fieldName;
19839
      }
19840
 
19841
      public short getThriftFieldId() {
19842
        return _thriftId;
19843
      }
19844
 
19845
      public String getFieldName() {
19846
        return _fieldName;
19847
      }
19848
    }
19849
 
19850
    // isset id assignments
19851
    private static final int __VENDORID_ISSET_ID = 0;
19852
    private BitSet __isset_bit_vector = new BitSet(1);
19853
 
19854
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19855
    static {
19856
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19857
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19858
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
19861
    }
19862
 
19863
    public getVendor_args() {
19864
    }
19865
 
19866
    public getVendor_args(
19867
      long vendorId)
19868
    {
19869
      this();
19870
      this.vendorId = vendorId;
19871
      setVendorIdIsSet(true);
19872
    }
19873
 
19874
    /**
19875
     * Performs a deep copy on <i>other</i>.
19876
     */
19877
    public getVendor_args(getVendor_args other) {
19878
      __isset_bit_vector.clear();
19879
      __isset_bit_vector.or(other.__isset_bit_vector);
19880
      this.vendorId = other.vendorId;
19881
    }
19882
 
19883
    public getVendor_args deepCopy() {
19884
      return new getVendor_args(this);
19885
    }
19886
 
19887
    @Override
19888
    public void clear() {
19889
      setVendorIdIsSet(false);
19890
      this.vendorId = 0;
19891
    }
19892
 
19893
    public long getVendorId() {
19894
      return this.vendorId;
19895
    }
19896
 
19897
    public void setVendorId(long vendorId) {
19898
      this.vendorId = vendorId;
19899
      setVendorIdIsSet(true);
19900
    }
19901
 
19902
    public void unsetVendorId() {
19903
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
19904
    }
19905
 
19906
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
19907
    public boolean isSetVendorId() {
19908
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
19909
    }
19910
 
19911
    public void setVendorIdIsSet(boolean value) {
19912
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
19913
    }
19914
 
19915
    public void setFieldValue(_Fields field, Object value) {
19916
      switch (field) {
19917
      case VENDOR_ID:
19918
        if (value == null) {
19919
          unsetVendorId();
19920
        } else {
19921
          setVendorId((Long)value);
19922
        }
19923
        break;
19924
 
19925
      }
19926
    }
19927
 
19928
    public Object getFieldValue(_Fields field) {
19929
      switch (field) {
19930
      case VENDOR_ID:
19931
        return Long.valueOf(getVendorId());
19932
 
19933
      }
19934
      throw new IllegalStateException();
19935
    }
19936
 
19937
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19938
    public boolean isSet(_Fields field) {
19939
      if (field == null) {
19940
        throw new IllegalArgumentException();
19941
      }
19942
 
19943
      switch (field) {
19944
      case VENDOR_ID:
19945
        return isSetVendorId();
19946
      }
19947
      throw new IllegalStateException();
19948
    }
19949
 
19950
    @Override
19951
    public boolean equals(Object that) {
19952
      if (that == null)
19953
        return false;
19954
      if (that instanceof getVendor_args)
19955
        return this.equals((getVendor_args)that);
19956
      return false;
19957
    }
19958
 
19959
    public boolean equals(getVendor_args that) {
19960
      if (that == null)
19961
        return false;
19962
 
19963
      boolean this_present_vendorId = true;
19964
      boolean that_present_vendorId = true;
19965
      if (this_present_vendorId || that_present_vendorId) {
19966
        if (!(this_present_vendorId && that_present_vendorId))
19967
          return false;
19968
        if (this.vendorId != that.vendorId)
19969
          return false;
19970
      }
19971
 
19972
      return true;
19973
    }
19974
 
19975
    @Override
19976
    public int hashCode() {
19977
      return 0;
19978
    }
19979
 
19980
    public int compareTo(getVendor_args other) {
19981
      if (!getClass().equals(other.getClass())) {
19982
        return getClass().getName().compareTo(other.getClass().getName());
19983
      }
19984
 
19985
      int lastComparison = 0;
19986
      getVendor_args typedOther = (getVendor_args)other;
19987
 
19988
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
19989
      if (lastComparison != 0) {
19990
        return lastComparison;
19991
      }
19992
      if (isSetVendorId()) {
19993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
19994
        if (lastComparison != 0) {
19995
          return lastComparison;
19996
        }
19997
      }
19998
      return 0;
19999
    }
20000
 
20001
    public _Fields fieldForId(int fieldId) {
20002
      return _Fields.findByThriftId(fieldId);
20003
    }
20004
 
20005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20006
      org.apache.thrift.protocol.TField field;
20007
      iprot.readStructBegin();
20008
      while (true)
20009
      {
20010
        field = iprot.readFieldBegin();
20011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20012
          break;
20013
        }
20014
        switch (field.id) {
20015
          case 1: // VENDOR_ID
20016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20017
              this.vendorId = iprot.readI64();
20018
              setVendorIdIsSet(true);
20019
            } else { 
20020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20021
            }
20022
            break;
20023
          default:
20024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20025
        }
20026
        iprot.readFieldEnd();
20027
      }
20028
      iprot.readStructEnd();
20029
      validate();
20030
    }
20031
 
20032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20033
      validate();
20034
 
20035
      oprot.writeStructBegin(STRUCT_DESC);
20036
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
20037
      oprot.writeI64(this.vendorId);
20038
      oprot.writeFieldEnd();
20039
      oprot.writeFieldStop();
20040
      oprot.writeStructEnd();
20041
    }
20042
 
20043
    @Override
20044
    public String toString() {
20045
      StringBuilder sb = new StringBuilder("getVendor_args(");
20046
      boolean first = true;
20047
 
20048
      sb.append("vendorId:");
20049
      sb.append(this.vendorId);
20050
      first = false;
20051
      sb.append(")");
20052
      return sb.toString();
20053
    }
20054
 
20055
    public void validate() throws org.apache.thrift.TException {
20056
      // check for required fields
20057
    }
20058
 
20059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20060
      try {
20061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20062
      } catch (org.apache.thrift.TException te) {
20063
        throw new java.io.IOException(te);
20064
      }
20065
    }
20066
 
20067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20068
      try {
20069
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20070
        __isset_bit_vector = new BitSet(1);
20071
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20072
      } catch (org.apache.thrift.TException te) {
20073
        throw new java.io.IOException(te);
20074
      }
20075
    }
20076
 
20077
  }
20078
 
20079
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
20080
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
20081
 
20082
    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);
20083
 
20084
    private Vendor success; // required
20085
 
20086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20088
      SUCCESS((short)0, "success");
20089
 
20090
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20091
 
20092
      static {
20093
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20094
          byName.put(field.getFieldName(), field);
20095
        }
20096
      }
20097
 
20098
      /**
20099
       * Find the _Fields constant that matches fieldId, or null if its not found.
20100
       */
20101
      public static _Fields findByThriftId(int fieldId) {
20102
        switch(fieldId) {
20103
          case 0: // SUCCESS
20104
            return SUCCESS;
20105
          default:
20106
            return null;
20107
        }
20108
      }
20109
 
20110
      /**
20111
       * Find the _Fields constant that matches fieldId, throwing an exception
20112
       * if it is not found.
20113
       */
20114
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20115
        _Fields fields = findByThriftId(fieldId);
20116
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20117
        return fields;
20118
      }
20119
 
20120
      /**
20121
       * Find the _Fields constant that matches name, or null if its not found.
20122
       */
20123
      public static _Fields findByName(String name) {
20124
        return byName.get(name);
20125
      }
20126
 
20127
      private final short _thriftId;
20128
      private final String _fieldName;
20129
 
20130
      _Fields(short thriftId, String fieldName) {
20131
        _thriftId = thriftId;
20132
        _fieldName = fieldName;
20133
      }
20134
 
20135
      public short getThriftFieldId() {
20136
        return _thriftId;
20137
      }
20138
 
20139
      public String getFieldName() {
20140
        return _fieldName;
20141
      }
20142
    }
20143
 
20144
    // isset id assignments
20145
 
20146
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20147
    static {
20148
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20149
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20150
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
20151
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20152
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
20153
    }
20154
 
20155
    public getVendor_result() {
20156
    }
20157
 
20158
    public getVendor_result(
20159
      Vendor success)
20160
    {
20161
      this();
20162
      this.success = success;
20163
    }
20164
 
20165
    /**
20166
     * Performs a deep copy on <i>other</i>.
20167
     */
20168
    public getVendor_result(getVendor_result other) {
20169
      if (other.isSetSuccess()) {
20170
        this.success = new Vendor(other.success);
20171
      }
20172
    }
20173
 
20174
    public getVendor_result deepCopy() {
20175
      return new getVendor_result(this);
20176
    }
20177
 
20178
    @Override
20179
    public void clear() {
20180
      this.success = null;
20181
    }
20182
 
20183
    public Vendor getSuccess() {
20184
      return this.success;
20185
    }
20186
 
20187
    public void setSuccess(Vendor success) {
20188
      this.success = success;
20189
    }
20190
 
20191
    public void unsetSuccess() {
20192
      this.success = null;
20193
    }
20194
 
20195
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20196
    public boolean isSetSuccess() {
20197
      return this.success != null;
20198
    }
20199
 
20200
    public void setSuccessIsSet(boolean value) {
20201
      if (!value) {
20202
        this.success = null;
20203
      }
20204
    }
20205
 
20206
    public void setFieldValue(_Fields field, Object value) {
20207
      switch (field) {
20208
      case SUCCESS:
20209
        if (value == null) {
20210
          unsetSuccess();
20211
        } else {
20212
          setSuccess((Vendor)value);
20213
        }
20214
        break;
20215
 
20216
      }
20217
    }
20218
 
20219
    public Object getFieldValue(_Fields field) {
20220
      switch (field) {
20221
      case SUCCESS:
20222
        return getSuccess();
20223
 
20224
      }
20225
      throw new IllegalStateException();
20226
    }
20227
 
20228
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20229
    public boolean isSet(_Fields field) {
20230
      if (field == null) {
20231
        throw new IllegalArgumentException();
20232
      }
20233
 
20234
      switch (field) {
20235
      case SUCCESS:
20236
        return isSetSuccess();
20237
      }
20238
      throw new IllegalStateException();
20239
    }
20240
 
20241
    @Override
20242
    public boolean equals(Object that) {
20243
      if (that == null)
20244
        return false;
20245
      if (that instanceof getVendor_result)
20246
        return this.equals((getVendor_result)that);
20247
      return false;
20248
    }
20249
 
20250
    public boolean equals(getVendor_result that) {
20251
      if (that == null)
20252
        return false;
20253
 
20254
      boolean this_present_success = true && this.isSetSuccess();
20255
      boolean that_present_success = true && that.isSetSuccess();
20256
      if (this_present_success || that_present_success) {
20257
        if (!(this_present_success && that_present_success))
20258
          return false;
20259
        if (!this.success.equals(that.success))
20260
          return false;
20261
      }
20262
 
20263
      return true;
20264
    }
20265
 
20266
    @Override
20267
    public int hashCode() {
20268
      return 0;
20269
    }
20270
 
20271
    public int compareTo(getVendor_result other) {
20272
      if (!getClass().equals(other.getClass())) {
20273
        return getClass().getName().compareTo(other.getClass().getName());
20274
      }
20275
 
20276
      int lastComparison = 0;
20277
      getVendor_result typedOther = (getVendor_result)other;
20278
 
20279
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20280
      if (lastComparison != 0) {
20281
        return lastComparison;
20282
      }
20283
      if (isSetSuccess()) {
20284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20285
        if (lastComparison != 0) {
20286
          return lastComparison;
20287
        }
20288
      }
20289
      return 0;
20290
    }
20291
 
20292
    public _Fields fieldForId(int fieldId) {
20293
      return _Fields.findByThriftId(fieldId);
20294
    }
20295
 
20296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20297
      org.apache.thrift.protocol.TField field;
20298
      iprot.readStructBegin();
20299
      while (true)
20300
      {
20301
        field = iprot.readFieldBegin();
20302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20303
          break;
20304
        }
20305
        switch (field.id) {
20306
          case 0: // SUCCESS
20307
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20308
              this.success = new Vendor();
20309
              this.success.read(iprot);
20310
            } else { 
20311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20312
            }
20313
            break;
20314
          default:
20315
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20316
        }
20317
        iprot.readFieldEnd();
20318
      }
20319
      iprot.readStructEnd();
20320
      validate();
20321
    }
20322
 
20323
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20324
      oprot.writeStructBegin(STRUCT_DESC);
20325
 
20326
      if (this.isSetSuccess()) {
20327
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20328
        this.success.write(oprot);
20329
        oprot.writeFieldEnd();
20330
      }
20331
      oprot.writeFieldStop();
20332
      oprot.writeStructEnd();
20333
    }
20334
 
20335
    @Override
20336
    public String toString() {
20337
      StringBuilder sb = new StringBuilder("getVendor_result(");
20338
      boolean first = true;
20339
 
20340
      sb.append("success:");
20341
      if (this.success == null) {
20342
        sb.append("null");
20343
      } else {
20344
        sb.append(this.success);
20345
      }
20346
      first = false;
20347
      sb.append(")");
20348
      return sb.toString();
20349
    }
20350
 
20351
    public void validate() throws org.apache.thrift.TException {
20352
      // check for required fields
20353
    }
20354
 
20355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20356
      try {
20357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20358
      } catch (org.apache.thrift.TException te) {
20359
        throw new java.io.IOException(te);
20360
      }
20361
    }
20362
 
20363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20364
      try {
20365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20366
      } catch (org.apache.thrift.TException te) {
20367
        throw new java.io.IOException(te);
20368
      }
20369
    }
20370
 
20371
  }
20372
 
20373
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
20374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
20375
 
20376
 
20377
 
20378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20380
;
20381
 
20382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20383
 
20384
      static {
20385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20386
          byName.put(field.getFieldName(), field);
20387
        }
20388
      }
20389
 
20390
      /**
20391
       * Find the _Fields constant that matches fieldId, or null if its not found.
20392
       */
20393
      public static _Fields findByThriftId(int fieldId) {
20394
        switch(fieldId) {
20395
          default:
20396
            return null;
20397
        }
20398
      }
20399
 
20400
      /**
20401
       * Find the _Fields constant that matches fieldId, throwing an exception
20402
       * if it is not found.
20403
       */
20404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20405
        _Fields fields = findByThriftId(fieldId);
20406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20407
        return fields;
20408
      }
20409
 
20410
      /**
20411
       * Find the _Fields constant that matches name, or null if its not found.
20412
       */
20413
      public static _Fields findByName(String name) {
20414
        return byName.get(name);
20415
      }
20416
 
20417
      private final short _thriftId;
20418
      private final String _fieldName;
20419
 
20420
      _Fields(short thriftId, String fieldName) {
20421
        _thriftId = thriftId;
20422
        _fieldName = fieldName;
20423
      }
20424
 
20425
      public short getThriftFieldId() {
20426
        return _thriftId;
20427
      }
20428
 
20429
      public String getFieldName() {
20430
        return _fieldName;
20431
      }
20432
    }
20433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20434
    static {
20435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
20438
    }
20439
 
20440
    public getAllVendors_args() {
20441
    }
20442
 
20443
    /**
20444
     * Performs a deep copy on <i>other</i>.
20445
     */
20446
    public getAllVendors_args(getAllVendors_args other) {
20447
    }
20448
 
20449
    public getAllVendors_args deepCopy() {
20450
      return new getAllVendors_args(this);
20451
    }
20452
 
20453
    @Override
20454
    public void clear() {
20455
    }
20456
 
20457
    public void setFieldValue(_Fields field, Object value) {
20458
      switch (field) {
20459
      }
20460
    }
20461
 
20462
    public Object getFieldValue(_Fields field) {
20463
      switch (field) {
20464
      }
20465
      throw new IllegalStateException();
20466
    }
20467
 
20468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20469
    public boolean isSet(_Fields field) {
20470
      if (field == null) {
20471
        throw new IllegalArgumentException();
20472
      }
20473
 
20474
      switch (field) {
20475
      }
20476
      throw new IllegalStateException();
20477
    }
20478
 
20479
    @Override
20480
    public boolean equals(Object that) {
20481
      if (that == null)
20482
        return false;
20483
      if (that instanceof getAllVendors_args)
20484
        return this.equals((getAllVendors_args)that);
20485
      return false;
20486
    }
20487
 
20488
    public boolean equals(getAllVendors_args that) {
20489
      if (that == null)
20490
        return false;
20491
 
20492
      return true;
20493
    }
20494
 
20495
    @Override
20496
    public int hashCode() {
20497
      return 0;
20498
    }
20499
 
20500
    public int compareTo(getAllVendors_args other) {
20501
      if (!getClass().equals(other.getClass())) {
20502
        return getClass().getName().compareTo(other.getClass().getName());
20503
      }
20504
 
20505
      int lastComparison = 0;
20506
      getAllVendors_args typedOther = (getAllVendors_args)other;
20507
 
20508
      return 0;
20509
    }
20510
 
20511
    public _Fields fieldForId(int fieldId) {
20512
      return _Fields.findByThriftId(fieldId);
20513
    }
20514
 
20515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20516
      org.apache.thrift.protocol.TField field;
20517
      iprot.readStructBegin();
20518
      while (true)
20519
      {
20520
        field = iprot.readFieldBegin();
20521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20522
          break;
20523
        }
20524
        switch (field.id) {
20525
          default:
20526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20527
        }
20528
        iprot.readFieldEnd();
20529
      }
20530
      iprot.readStructEnd();
20531
      validate();
20532
    }
20533
 
20534
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20535
      validate();
20536
 
20537
      oprot.writeStructBegin(STRUCT_DESC);
20538
      oprot.writeFieldStop();
20539
      oprot.writeStructEnd();
20540
    }
20541
 
20542
    @Override
20543
    public String toString() {
20544
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
20545
      boolean first = true;
20546
 
20547
      sb.append(")");
20548
      return sb.toString();
20549
    }
20550
 
20551
    public void validate() throws org.apache.thrift.TException {
20552
      // check for required fields
20553
    }
20554
 
20555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20556
      try {
20557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20558
      } catch (org.apache.thrift.TException te) {
20559
        throw new java.io.IOException(te);
20560
      }
20561
    }
20562
 
20563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20564
      try {
20565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20566
      } catch (org.apache.thrift.TException te) {
20567
        throw new java.io.IOException(te);
20568
      }
20569
    }
20570
 
20571
  }
20572
 
20573
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
20574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
20575
 
20576
    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);
20577
 
20578
    private List<Vendor> success; // required
20579
 
20580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20582
      SUCCESS((short)0, "success");
20583
 
20584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20585
 
20586
      static {
20587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20588
          byName.put(field.getFieldName(), field);
20589
        }
20590
      }
20591
 
20592
      /**
20593
       * Find the _Fields constant that matches fieldId, or null if its not found.
20594
       */
20595
      public static _Fields findByThriftId(int fieldId) {
20596
        switch(fieldId) {
20597
          case 0: // SUCCESS
20598
            return SUCCESS;
20599
          default:
20600
            return null;
20601
        }
20602
      }
20603
 
20604
      /**
20605
       * Find the _Fields constant that matches fieldId, throwing an exception
20606
       * if it is not found.
20607
       */
20608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20609
        _Fields fields = findByThriftId(fieldId);
20610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20611
        return fields;
20612
      }
20613
 
20614
      /**
20615
       * Find the _Fields constant that matches name, or null if its not found.
20616
       */
20617
      public static _Fields findByName(String name) {
20618
        return byName.get(name);
20619
      }
20620
 
20621
      private final short _thriftId;
20622
      private final String _fieldName;
20623
 
20624
      _Fields(short thriftId, String fieldName) {
20625
        _thriftId = thriftId;
20626
        _fieldName = fieldName;
20627
      }
20628
 
20629
      public short getThriftFieldId() {
20630
        return _thriftId;
20631
      }
20632
 
20633
      public String getFieldName() {
20634
        return _fieldName;
20635
      }
20636
    }
20637
 
20638
    // isset id assignments
20639
 
20640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20641
    static {
20642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20643
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20644
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20645
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
20646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
20648
    }
20649
 
20650
    public getAllVendors_result() {
20651
    }
20652
 
20653
    public getAllVendors_result(
20654
      List<Vendor> success)
20655
    {
20656
      this();
20657
      this.success = success;
20658
    }
20659
 
20660
    /**
20661
     * Performs a deep copy on <i>other</i>.
20662
     */
20663
    public getAllVendors_result(getAllVendors_result other) {
20664
      if (other.isSetSuccess()) {
20665
        List<Vendor> __this__success = new ArrayList<Vendor>();
20666
        for (Vendor other_element : other.success) {
20667
          __this__success.add(new Vendor(other_element));
20668
        }
20669
        this.success = __this__success;
20670
      }
20671
    }
20672
 
20673
    public getAllVendors_result deepCopy() {
20674
      return new getAllVendors_result(this);
20675
    }
20676
 
20677
    @Override
20678
    public void clear() {
20679
      this.success = null;
20680
    }
20681
 
20682
    public int getSuccessSize() {
20683
      return (this.success == null) ? 0 : this.success.size();
20684
    }
20685
 
20686
    public java.util.Iterator<Vendor> getSuccessIterator() {
20687
      return (this.success == null) ? null : this.success.iterator();
20688
    }
20689
 
20690
    public void addToSuccess(Vendor elem) {
20691
      if (this.success == null) {
20692
        this.success = new ArrayList<Vendor>();
20693
      }
20694
      this.success.add(elem);
20695
    }
20696
 
20697
    public List<Vendor> getSuccess() {
20698
      return this.success;
20699
    }
20700
 
20701
    public void setSuccess(List<Vendor> success) {
20702
      this.success = success;
20703
    }
20704
 
20705
    public void unsetSuccess() {
20706
      this.success = null;
20707
    }
20708
 
20709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20710
    public boolean isSetSuccess() {
20711
      return this.success != null;
20712
    }
20713
 
20714
    public void setSuccessIsSet(boolean value) {
20715
      if (!value) {
20716
        this.success = null;
20717
      }
20718
    }
20719
 
20720
    public void setFieldValue(_Fields field, Object value) {
20721
      switch (field) {
20722
      case SUCCESS:
20723
        if (value == null) {
20724
          unsetSuccess();
20725
        } else {
20726
          setSuccess((List<Vendor>)value);
20727
        }
20728
        break;
20729
 
20730
      }
20731
    }
20732
 
20733
    public Object getFieldValue(_Fields field) {
20734
      switch (field) {
20735
      case SUCCESS:
20736
        return getSuccess();
20737
 
20738
      }
20739
      throw new IllegalStateException();
20740
    }
20741
 
20742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20743
    public boolean isSet(_Fields field) {
20744
      if (field == null) {
20745
        throw new IllegalArgumentException();
20746
      }
20747
 
20748
      switch (field) {
20749
      case SUCCESS:
20750
        return isSetSuccess();
20751
      }
20752
      throw new IllegalStateException();
20753
    }
20754
 
20755
    @Override
20756
    public boolean equals(Object that) {
20757
      if (that == null)
20758
        return false;
20759
      if (that instanceof getAllVendors_result)
20760
        return this.equals((getAllVendors_result)that);
20761
      return false;
20762
    }
20763
 
20764
    public boolean equals(getAllVendors_result that) {
20765
      if (that == null)
20766
        return false;
20767
 
20768
      boolean this_present_success = true && this.isSetSuccess();
20769
      boolean that_present_success = true && that.isSetSuccess();
20770
      if (this_present_success || that_present_success) {
20771
        if (!(this_present_success && that_present_success))
20772
          return false;
20773
        if (!this.success.equals(that.success))
20774
          return false;
20775
      }
20776
 
20777
      return true;
20778
    }
20779
 
20780
    @Override
20781
    public int hashCode() {
20782
      return 0;
20783
    }
20784
 
20785
    public int compareTo(getAllVendors_result other) {
20786
      if (!getClass().equals(other.getClass())) {
20787
        return getClass().getName().compareTo(other.getClass().getName());
20788
      }
20789
 
20790
      int lastComparison = 0;
20791
      getAllVendors_result typedOther = (getAllVendors_result)other;
20792
 
20793
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20794
      if (lastComparison != 0) {
20795
        return lastComparison;
20796
      }
20797
      if (isSetSuccess()) {
20798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20799
        if (lastComparison != 0) {
20800
          return lastComparison;
20801
        }
20802
      }
20803
      return 0;
20804
    }
20805
 
20806
    public _Fields fieldForId(int fieldId) {
20807
      return _Fields.findByThriftId(fieldId);
20808
    }
20809
 
20810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20811
      org.apache.thrift.protocol.TField field;
20812
      iprot.readStructBegin();
20813
      while (true)
20814
      {
20815
        field = iprot.readFieldBegin();
20816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20817
          break;
20818
        }
20819
        switch (field.id) {
20820
          case 0: // SUCCESS
20821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20822
              {
8182 amar.kumar 20823
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
20824
                this.success = new ArrayList<Vendor>(_list41.size);
20825
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
5945 mandeep.dh 20826
                {
8182 amar.kumar 20827
                  Vendor _elem43; // required
20828
                  _elem43 = new Vendor();
20829
                  _elem43.read(iprot);
20830
                  this.success.add(_elem43);
5945 mandeep.dh 20831
                }
20832
                iprot.readListEnd();
20833
              }
20834
            } else { 
20835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20836
            }
20837
            break;
20838
          default:
20839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20840
        }
20841
        iprot.readFieldEnd();
20842
      }
20843
      iprot.readStructEnd();
20844
      validate();
20845
    }
20846
 
20847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20848
      oprot.writeStructBegin(STRUCT_DESC);
20849
 
20850
      if (this.isSetSuccess()) {
20851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20852
        {
20853
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 20854
          for (Vendor _iter44 : this.success)
5945 mandeep.dh 20855
          {
8182 amar.kumar 20856
            _iter44.write(oprot);
5945 mandeep.dh 20857
          }
20858
          oprot.writeListEnd();
20859
        }
20860
        oprot.writeFieldEnd();
20861
      }
20862
      oprot.writeFieldStop();
20863
      oprot.writeStructEnd();
20864
    }
20865
 
20866
    @Override
20867
    public String toString() {
20868
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
20869
      boolean first = true;
20870
 
20871
      sb.append("success:");
20872
      if (this.success == null) {
20873
        sb.append("null");
20874
      } else {
20875
        sb.append(this.success);
20876
      }
20877
      first = false;
20878
      sb.append(")");
20879
      return sb.toString();
20880
    }
20881
 
20882
    public void validate() throws org.apache.thrift.TException {
20883
      // check for required fields
20884
    }
20885
 
20886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20887
      try {
20888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20889
      } catch (org.apache.thrift.TException te) {
20890
        throw new java.io.IOException(te);
20891
      }
20892
    }
20893
 
20894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20895
      try {
20896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20897
      } catch (org.apache.thrift.TException te) {
20898
        throw new java.io.IOException(te);
20899
      }
20900
    }
20901
 
20902
  }
20903
 
20904
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
20905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
20906
 
20907
    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);
20908
    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);
20909
 
20910
    private String key; // required
20911
    private VendorItemMapping vendorItemMapping; // required
20912
 
20913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20915
      KEY((short)1, "key"),
20916
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
20917
 
20918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20919
 
20920
      static {
20921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20922
          byName.put(field.getFieldName(), field);
20923
        }
20924
      }
20925
 
20926
      /**
20927
       * Find the _Fields constant that matches fieldId, or null if its not found.
20928
       */
20929
      public static _Fields findByThriftId(int fieldId) {
20930
        switch(fieldId) {
20931
          case 1: // KEY
20932
            return KEY;
20933
          case 2: // VENDOR_ITEM_MAPPING
20934
            return VENDOR_ITEM_MAPPING;
20935
          default:
20936
            return null;
20937
        }
20938
      }
20939
 
20940
      /**
20941
       * Find the _Fields constant that matches fieldId, throwing an exception
20942
       * if it is not found.
20943
       */
20944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20945
        _Fields fields = findByThriftId(fieldId);
20946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20947
        return fields;
20948
      }
20949
 
20950
      /**
20951
       * Find the _Fields constant that matches name, or null if its not found.
20952
       */
20953
      public static _Fields findByName(String name) {
20954
        return byName.get(name);
20955
      }
20956
 
20957
      private final short _thriftId;
20958
      private final String _fieldName;
20959
 
20960
      _Fields(short thriftId, String fieldName) {
20961
        _thriftId = thriftId;
20962
        _fieldName = fieldName;
20963
      }
20964
 
20965
      public short getThriftFieldId() {
20966
        return _thriftId;
20967
      }
20968
 
20969
      public String getFieldName() {
20970
        return _fieldName;
20971
      }
20972
    }
20973
 
20974
    // isset id assignments
20975
 
20976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20977
    static {
20978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20979
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20981
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20982
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
20983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
20985
    }
20986
 
20987
    public addVendorItemMapping_args() {
20988
    }
20989
 
20990
    public addVendorItemMapping_args(
20991
      String key,
20992
      VendorItemMapping vendorItemMapping)
20993
    {
20994
      this();
20995
      this.key = key;
20996
      this.vendorItemMapping = vendorItemMapping;
20997
    }
20998
 
20999
    /**
21000
     * Performs a deep copy on <i>other</i>.
21001
     */
21002
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
21003
      if (other.isSetKey()) {
21004
        this.key = other.key;
21005
      }
21006
      if (other.isSetVendorItemMapping()) {
21007
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
21008
      }
21009
    }
21010
 
21011
    public addVendorItemMapping_args deepCopy() {
21012
      return new addVendorItemMapping_args(this);
21013
    }
21014
 
21015
    @Override
21016
    public void clear() {
21017
      this.key = null;
21018
      this.vendorItemMapping = null;
21019
    }
21020
 
21021
    public String getKey() {
21022
      return this.key;
21023
    }
21024
 
21025
    public void setKey(String key) {
21026
      this.key = key;
21027
    }
21028
 
21029
    public void unsetKey() {
21030
      this.key = null;
21031
    }
21032
 
21033
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
21034
    public boolean isSetKey() {
21035
      return this.key != null;
21036
    }
21037
 
21038
    public void setKeyIsSet(boolean value) {
21039
      if (!value) {
21040
        this.key = null;
21041
      }
21042
    }
21043
 
21044
    public VendorItemMapping getVendorItemMapping() {
21045
      return this.vendorItemMapping;
21046
    }
21047
 
21048
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
21049
      this.vendorItemMapping = vendorItemMapping;
21050
    }
21051
 
21052
    public void unsetVendorItemMapping() {
21053
      this.vendorItemMapping = null;
21054
    }
21055
 
21056
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
21057
    public boolean isSetVendorItemMapping() {
21058
      return this.vendorItemMapping != null;
21059
    }
21060
 
21061
    public void setVendorItemMappingIsSet(boolean value) {
21062
      if (!value) {
21063
        this.vendorItemMapping = null;
21064
      }
21065
    }
21066
 
21067
    public void setFieldValue(_Fields field, Object value) {
21068
      switch (field) {
21069
      case KEY:
21070
        if (value == null) {
21071
          unsetKey();
21072
        } else {
21073
          setKey((String)value);
21074
        }
21075
        break;
21076
 
21077
      case VENDOR_ITEM_MAPPING:
21078
        if (value == null) {
21079
          unsetVendorItemMapping();
21080
        } else {
21081
          setVendorItemMapping((VendorItemMapping)value);
21082
        }
21083
        break;
21084
 
21085
      }
21086
    }
21087
 
21088
    public Object getFieldValue(_Fields field) {
21089
      switch (field) {
21090
      case KEY:
21091
        return getKey();
21092
 
21093
      case VENDOR_ITEM_MAPPING:
21094
        return getVendorItemMapping();
21095
 
21096
      }
21097
      throw new IllegalStateException();
21098
    }
21099
 
21100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21101
    public boolean isSet(_Fields field) {
21102
      if (field == null) {
21103
        throw new IllegalArgumentException();
21104
      }
21105
 
21106
      switch (field) {
21107
      case KEY:
21108
        return isSetKey();
21109
      case VENDOR_ITEM_MAPPING:
21110
        return isSetVendorItemMapping();
21111
      }
21112
      throw new IllegalStateException();
21113
    }
21114
 
21115
    @Override
21116
    public boolean equals(Object that) {
21117
      if (that == null)
21118
        return false;
21119
      if (that instanceof addVendorItemMapping_args)
21120
        return this.equals((addVendorItemMapping_args)that);
21121
      return false;
21122
    }
21123
 
21124
    public boolean equals(addVendorItemMapping_args that) {
21125
      if (that == null)
21126
        return false;
21127
 
21128
      boolean this_present_key = true && this.isSetKey();
21129
      boolean that_present_key = true && that.isSetKey();
21130
      if (this_present_key || that_present_key) {
21131
        if (!(this_present_key && that_present_key))
21132
          return false;
21133
        if (!this.key.equals(that.key))
21134
          return false;
21135
      }
21136
 
21137
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
21138
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
21139
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
21140
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
21141
          return false;
21142
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
21143
          return false;
21144
      }
21145
 
21146
      return true;
21147
    }
21148
 
21149
    @Override
21150
    public int hashCode() {
21151
      return 0;
21152
    }
21153
 
21154
    public int compareTo(addVendorItemMapping_args other) {
21155
      if (!getClass().equals(other.getClass())) {
21156
        return getClass().getName().compareTo(other.getClass().getName());
21157
      }
21158
 
21159
      int lastComparison = 0;
21160
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
21161
 
21162
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
21163
      if (lastComparison != 0) {
21164
        return lastComparison;
21165
      }
21166
      if (isSetKey()) {
21167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
21168
        if (lastComparison != 0) {
21169
          return lastComparison;
21170
        }
21171
      }
21172
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
21173
      if (lastComparison != 0) {
21174
        return lastComparison;
21175
      }
21176
      if (isSetVendorItemMapping()) {
21177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
21178
        if (lastComparison != 0) {
21179
          return lastComparison;
21180
        }
21181
      }
21182
      return 0;
21183
    }
21184
 
21185
    public _Fields fieldForId(int fieldId) {
21186
      return _Fields.findByThriftId(fieldId);
21187
    }
21188
 
21189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21190
      org.apache.thrift.protocol.TField field;
21191
      iprot.readStructBegin();
21192
      while (true)
21193
      {
21194
        field = iprot.readFieldBegin();
21195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21196
          break;
21197
        }
21198
        switch (field.id) {
21199
          case 1: // KEY
21200
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21201
              this.key = iprot.readString();
21202
            } else { 
21203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21204
            }
21205
            break;
21206
          case 2: // VENDOR_ITEM_MAPPING
21207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21208
              this.vendorItemMapping = new VendorItemMapping();
21209
              this.vendorItemMapping.read(iprot);
21210
            } else { 
21211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21212
            }
21213
            break;
21214
          default:
21215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21216
        }
21217
        iprot.readFieldEnd();
21218
      }
21219
      iprot.readStructEnd();
21220
      validate();
21221
    }
21222
 
21223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21224
      validate();
21225
 
21226
      oprot.writeStructBegin(STRUCT_DESC);
21227
      if (this.key != null) {
21228
        oprot.writeFieldBegin(KEY_FIELD_DESC);
21229
        oprot.writeString(this.key);
21230
        oprot.writeFieldEnd();
21231
      }
21232
      if (this.vendorItemMapping != null) {
21233
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
21234
        this.vendorItemMapping.write(oprot);
21235
        oprot.writeFieldEnd();
21236
      }
21237
      oprot.writeFieldStop();
21238
      oprot.writeStructEnd();
21239
    }
21240
 
21241
    @Override
21242
    public String toString() {
21243
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
21244
      boolean first = true;
21245
 
21246
      sb.append("key:");
21247
      if (this.key == null) {
21248
        sb.append("null");
21249
      } else {
21250
        sb.append(this.key);
21251
      }
21252
      first = false;
21253
      if (!first) sb.append(", ");
21254
      sb.append("vendorItemMapping:");
21255
      if (this.vendorItemMapping == null) {
21256
        sb.append("null");
21257
      } else {
21258
        sb.append(this.vendorItemMapping);
21259
      }
21260
      first = false;
21261
      sb.append(")");
21262
      return sb.toString();
21263
    }
21264
 
21265
    public void validate() throws org.apache.thrift.TException {
21266
      // check for required fields
21267
    }
21268
 
21269
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21270
      try {
21271
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21272
      } catch (org.apache.thrift.TException te) {
21273
        throw new java.io.IOException(te);
21274
      }
21275
    }
21276
 
21277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21278
      try {
21279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21280
      } catch (org.apache.thrift.TException te) {
21281
        throw new java.io.IOException(te);
21282
      }
21283
    }
21284
 
21285
  }
21286
 
21287
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
21288
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
21289
 
21290
    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);
21291
 
21292
    private InventoryServiceException cex; // required
21293
 
21294
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21295
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21296
      CEX((short)1, "cex");
21297
 
21298
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21299
 
21300
      static {
21301
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21302
          byName.put(field.getFieldName(), field);
21303
        }
21304
      }
21305
 
21306
      /**
21307
       * Find the _Fields constant that matches fieldId, or null if its not found.
21308
       */
21309
      public static _Fields findByThriftId(int fieldId) {
21310
        switch(fieldId) {
21311
          case 1: // CEX
21312
            return CEX;
21313
          default:
21314
            return null;
21315
        }
21316
      }
21317
 
21318
      /**
21319
       * Find the _Fields constant that matches fieldId, throwing an exception
21320
       * if it is not found.
21321
       */
21322
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21323
        _Fields fields = findByThriftId(fieldId);
21324
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21325
        return fields;
21326
      }
21327
 
21328
      /**
21329
       * Find the _Fields constant that matches name, or null if its not found.
21330
       */
21331
      public static _Fields findByName(String name) {
21332
        return byName.get(name);
21333
      }
21334
 
21335
      private final short _thriftId;
21336
      private final String _fieldName;
21337
 
21338
      _Fields(short thriftId, String fieldName) {
21339
        _thriftId = thriftId;
21340
        _fieldName = fieldName;
21341
      }
21342
 
21343
      public short getThriftFieldId() {
21344
        return _thriftId;
21345
      }
21346
 
21347
      public String getFieldName() {
21348
        return _fieldName;
21349
      }
21350
    }
21351
 
21352
    // isset id assignments
21353
 
21354
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21355
    static {
21356
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21357
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
21361
    }
21362
 
21363
    public addVendorItemMapping_result() {
21364
    }
21365
 
21366
    public addVendorItemMapping_result(
21367
      InventoryServiceException cex)
21368
    {
21369
      this();
21370
      this.cex = cex;
21371
    }
21372
 
21373
    /**
21374
     * Performs a deep copy on <i>other</i>.
21375
     */
21376
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
21377
      if (other.isSetCex()) {
21378
        this.cex = new InventoryServiceException(other.cex);
21379
      }
21380
    }
21381
 
21382
    public addVendorItemMapping_result deepCopy() {
21383
      return new addVendorItemMapping_result(this);
21384
    }
21385
 
21386
    @Override
21387
    public void clear() {
21388
      this.cex = null;
21389
    }
21390
 
21391
    public InventoryServiceException getCex() {
21392
      return this.cex;
21393
    }
21394
 
21395
    public void setCex(InventoryServiceException cex) {
21396
      this.cex = cex;
21397
    }
21398
 
21399
    public void unsetCex() {
21400
      this.cex = null;
21401
    }
21402
 
21403
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
21404
    public boolean isSetCex() {
21405
      return this.cex != null;
21406
    }
21407
 
21408
    public void setCexIsSet(boolean value) {
21409
      if (!value) {
21410
        this.cex = null;
21411
      }
21412
    }
21413
 
21414
    public void setFieldValue(_Fields field, Object value) {
21415
      switch (field) {
21416
      case CEX:
21417
        if (value == null) {
21418
          unsetCex();
21419
        } else {
21420
          setCex((InventoryServiceException)value);
21421
        }
21422
        break;
21423
 
21424
      }
21425
    }
21426
 
21427
    public Object getFieldValue(_Fields field) {
21428
      switch (field) {
21429
      case CEX:
21430
        return getCex();
21431
 
21432
      }
21433
      throw new IllegalStateException();
21434
    }
21435
 
21436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21437
    public boolean isSet(_Fields field) {
21438
      if (field == null) {
21439
        throw new IllegalArgumentException();
21440
      }
21441
 
21442
      switch (field) {
21443
      case CEX:
21444
        return isSetCex();
21445
      }
21446
      throw new IllegalStateException();
21447
    }
21448
 
21449
    @Override
21450
    public boolean equals(Object that) {
21451
      if (that == null)
21452
        return false;
21453
      if (that instanceof addVendorItemMapping_result)
21454
        return this.equals((addVendorItemMapping_result)that);
21455
      return false;
21456
    }
21457
 
21458
    public boolean equals(addVendorItemMapping_result that) {
21459
      if (that == null)
21460
        return false;
21461
 
21462
      boolean this_present_cex = true && this.isSetCex();
21463
      boolean that_present_cex = true && that.isSetCex();
21464
      if (this_present_cex || that_present_cex) {
21465
        if (!(this_present_cex && that_present_cex))
21466
          return false;
21467
        if (!this.cex.equals(that.cex))
21468
          return false;
21469
      }
21470
 
21471
      return true;
21472
    }
21473
 
21474
    @Override
21475
    public int hashCode() {
21476
      return 0;
21477
    }
21478
 
21479
    public int compareTo(addVendorItemMapping_result other) {
21480
      if (!getClass().equals(other.getClass())) {
21481
        return getClass().getName().compareTo(other.getClass().getName());
21482
      }
21483
 
21484
      int lastComparison = 0;
21485
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
21486
 
21487
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21488
      if (lastComparison != 0) {
21489
        return lastComparison;
21490
      }
21491
      if (isSetCex()) {
21492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21493
        if (lastComparison != 0) {
21494
          return lastComparison;
21495
        }
21496
      }
21497
      return 0;
21498
    }
21499
 
21500
    public _Fields fieldForId(int fieldId) {
21501
      return _Fields.findByThriftId(fieldId);
21502
    }
21503
 
21504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21505
      org.apache.thrift.protocol.TField field;
21506
      iprot.readStructBegin();
21507
      while (true)
21508
      {
21509
        field = iprot.readFieldBegin();
21510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21511
          break;
21512
        }
21513
        switch (field.id) {
21514
          case 1: // CEX
21515
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21516
              this.cex = new InventoryServiceException();
21517
              this.cex.read(iprot);
21518
            } else { 
21519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21520
            }
21521
            break;
21522
          default:
21523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21524
        }
21525
        iprot.readFieldEnd();
21526
      }
21527
      iprot.readStructEnd();
21528
      validate();
21529
    }
21530
 
21531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21532
      oprot.writeStructBegin(STRUCT_DESC);
21533
 
21534
      if (this.isSetCex()) {
21535
        oprot.writeFieldBegin(CEX_FIELD_DESC);
21536
        this.cex.write(oprot);
21537
        oprot.writeFieldEnd();
21538
      }
21539
      oprot.writeFieldStop();
21540
      oprot.writeStructEnd();
21541
    }
21542
 
21543
    @Override
21544
    public String toString() {
21545
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
21546
      boolean first = true;
21547
 
21548
      sb.append("cex:");
21549
      if (this.cex == null) {
21550
        sb.append("null");
21551
      } else {
21552
        sb.append(this.cex);
21553
      }
21554
      first = false;
21555
      sb.append(")");
21556
      return sb.toString();
21557
    }
21558
 
21559
    public void validate() throws org.apache.thrift.TException {
21560
      // check for required fields
21561
    }
21562
 
21563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21564
      try {
21565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21566
      } catch (org.apache.thrift.TException te) {
21567
        throw new java.io.IOException(te);
21568
      }
21569
    }
21570
 
21571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21572
      try {
21573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21574
      } catch (org.apache.thrift.TException te) {
21575
        throw new java.io.IOException(te);
21576
      }
21577
    }
21578
 
21579
  }
21580
 
21581
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
21582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
21583
 
21584
    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);
21585
 
21586
    private long itemId; // required
21587
 
21588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21590
      ITEM_ID((short)1, "itemId");
21591
 
21592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21593
 
21594
      static {
21595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21596
          byName.put(field.getFieldName(), field);
21597
        }
21598
      }
21599
 
21600
      /**
21601
       * Find the _Fields constant that matches fieldId, or null if its not found.
21602
       */
21603
      public static _Fields findByThriftId(int fieldId) {
21604
        switch(fieldId) {
21605
          case 1: // ITEM_ID
21606
            return ITEM_ID;
21607
          default:
21608
            return null;
21609
        }
21610
      }
21611
 
21612
      /**
21613
       * Find the _Fields constant that matches fieldId, throwing an exception
21614
       * if it is not found.
21615
       */
21616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21617
        _Fields fields = findByThriftId(fieldId);
21618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21619
        return fields;
21620
      }
21621
 
21622
      /**
21623
       * Find the _Fields constant that matches name, or null if its not found.
21624
       */
21625
      public static _Fields findByName(String name) {
21626
        return byName.get(name);
21627
      }
21628
 
21629
      private final short _thriftId;
21630
      private final String _fieldName;
21631
 
21632
      _Fields(short thriftId, String fieldName) {
21633
        _thriftId = thriftId;
21634
        _fieldName = fieldName;
21635
      }
21636
 
21637
      public short getThriftFieldId() {
21638
        return _thriftId;
21639
      }
21640
 
21641
      public String getFieldName() {
21642
        return _fieldName;
21643
      }
21644
    }
21645
 
21646
    // isset id assignments
21647
    private static final int __ITEMID_ISSET_ID = 0;
21648
    private BitSet __isset_bit_vector = new BitSet(1);
21649
 
21650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21651
    static {
21652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21653
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
21657
    }
21658
 
21659
    public getVendorItemMappings_args() {
21660
    }
21661
 
21662
    public getVendorItemMappings_args(
21663
      long itemId)
21664
    {
21665
      this();
21666
      this.itemId = itemId;
21667
      setItemIdIsSet(true);
21668
    }
21669
 
21670
    /**
21671
     * Performs a deep copy on <i>other</i>.
21672
     */
21673
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
21674
      __isset_bit_vector.clear();
21675
      __isset_bit_vector.or(other.__isset_bit_vector);
21676
      this.itemId = other.itemId;
21677
    }
21678
 
21679
    public getVendorItemMappings_args deepCopy() {
21680
      return new getVendorItemMappings_args(this);
21681
    }
21682
 
21683
    @Override
21684
    public void clear() {
21685
      setItemIdIsSet(false);
21686
      this.itemId = 0;
21687
    }
21688
 
21689
    public long getItemId() {
21690
      return this.itemId;
21691
    }
21692
 
21693
    public void setItemId(long itemId) {
21694
      this.itemId = itemId;
21695
      setItemIdIsSet(true);
21696
    }
21697
 
21698
    public void unsetItemId() {
21699
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
21700
    }
21701
 
21702
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
21703
    public boolean isSetItemId() {
21704
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
21705
    }
21706
 
21707
    public void setItemIdIsSet(boolean value) {
21708
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
21709
    }
21710
 
21711
    public void setFieldValue(_Fields field, Object value) {
21712
      switch (field) {
21713
      case ITEM_ID:
21714
        if (value == null) {
21715
          unsetItemId();
21716
        } else {
21717
          setItemId((Long)value);
21718
        }
21719
        break;
21720
 
21721
      }
21722
    }
21723
 
21724
    public Object getFieldValue(_Fields field) {
21725
      switch (field) {
21726
      case ITEM_ID:
21727
        return Long.valueOf(getItemId());
21728
 
21729
      }
21730
      throw new IllegalStateException();
21731
    }
21732
 
21733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21734
    public boolean isSet(_Fields field) {
21735
      if (field == null) {
21736
        throw new IllegalArgumentException();
21737
      }
21738
 
21739
      switch (field) {
21740
      case ITEM_ID:
21741
        return isSetItemId();
21742
      }
21743
      throw new IllegalStateException();
21744
    }
21745
 
21746
    @Override
21747
    public boolean equals(Object that) {
21748
      if (that == null)
21749
        return false;
21750
      if (that instanceof getVendorItemMappings_args)
21751
        return this.equals((getVendorItemMappings_args)that);
21752
      return false;
21753
    }
21754
 
21755
    public boolean equals(getVendorItemMappings_args that) {
21756
      if (that == null)
21757
        return false;
21758
 
21759
      boolean this_present_itemId = true;
21760
      boolean that_present_itemId = true;
21761
      if (this_present_itemId || that_present_itemId) {
21762
        if (!(this_present_itemId && that_present_itemId))
21763
          return false;
21764
        if (this.itemId != that.itemId)
21765
          return false;
21766
      }
21767
 
21768
      return true;
21769
    }
21770
 
21771
    @Override
21772
    public int hashCode() {
21773
      return 0;
21774
    }
21775
 
21776
    public int compareTo(getVendorItemMappings_args other) {
21777
      if (!getClass().equals(other.getClass())) {
21778
        return getClass().getName().compareTo(other.getClass().getName());
21779
      }
21780
 
21781
      int lastComparison = 0;
21782
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
21783
 
21784
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
21785
      if (lastComparison != 0) {
21786
        return lastComparison;
21787
      }
21788
      if (isSetItemId()) {
21789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
21790
        if (lastComparison != 0) {
21791
          return lastComparison;
21792
        }
21793
      }
21794
      return 0;
21795
    }
21796
 
21797
    public _Fields fieldForId(int fieldId) {
21798
      return _Fields.findByThriftId(fieldId);
21799
    }
21800
 
21801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21802
      org.apache.thrift.protocol.TField field;
21803
      iprot.readStructBegin();
21804
      while (true)
21805
      {
21806
        field = iprot.readFieldBegin();
21807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21808
          break;
21809
        }
21810
        switch (field.id) {
21811
          case 1: // ITEM_ID
21812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21813
              this.itemId = iprot.readI64();
21814
              setItemIdIsSet(true);
21815
            } else { 
21816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21817
            }
21818
            break;
21819
          default:
21820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21821
        }
21822
        iprot.readFieldEnd();
21823
      }
21824
      iprot.readStructEnd();
21825
      validate();
21826
    }
21827
 
21828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21829
      validate();
21830
 
21831
      oprot.writeStructBegin(STRUCT_DESC);
21832
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
21833
      oprot.writeI64(this.itemId);
21834
      oprot.writeFieldEnd();
21835
      oprot.writeFieldStop();
21836
      oprot.writeStructEnd();
21837
    }
21838
 
21839
    @Override
21840
    public String toString() {
21841
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
21842
      boolean first = true;
21843
 
21844
      sb.append("itemId:");
21845
      sb.append(this.itemId);
21846
      first = false;
21847
      sb.append(")");
21848
      return sb.toString();
21849
    }
21850
 
21851
    public void validate() throws org.apache.thrift.TException {
21852
      // check for required fields
21853
    }
21854
 
21855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21856
      try {
21857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21858
      } catch (org.apache.thrift.TException te) {
21859
        throw new java.io.IOException(te);
21860
      }
21861
    }
21862
 
21863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21864
      try {
21865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21866
      } catch (org.apache.thrift.TException te) {
21867
        throw new java.io.IOException(te);
21868
      }
21869
    }
21870
 
21871
  }
21872
 
21873
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
21874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
21875
 
21876
    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);
21877
    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);
21878
 
21879
    private List<VendorItemMapping> success; // required
21880
    private InventoryServiceException cex; // required
21881
 
21882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21884
      SUCCESS((short)0, "success"),
21885
      CEX((short)1, "cex");
21886
 
21887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21888
 
21889
      static {
21890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21891
          byName.put(field.getFieldName(), field);
21892
        }
21893
      }
21894
 
21895
      /**
21896
       * Find the _Fields constant that matches fieldId, or null if its not found.
21897
       */
21898
      public static _Fields findByThriftId(int fieldId) {
21899
        switch(fieldId) {
21900
          case 0: // SUCCESS
21901
            return SUCCESS;
21902
          case 1: // CEX
21903
            return CEX;
21904
          default:
21905
            return null;
21906
        }
21907
      }
21908
 
21909
      /**
21910
       * Find the _Fields constant that matches fieldId, throwing an exception
21911
       * if it is not found.
21912
       */
21913
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21914
        _Fields fields = findByThriftId(fieldId);
21915
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21916
        return fields;
21917
      }
21918
 
21919
      /**
21920
       * Find the _Fields constant that matches name, or null if its not found.
21921
       */
21922
      public static _Fields findByName(String name) {
21923
        return byName.get(name);
21924
      }
21925
 
21926
      private final short _thriftId;
21927
      private final String _fieldName;
21928
 
21929
      _Fields(short thriftId, String fieldName) {
21930
        _thriftId = thriftId;
21931
        _fieldName = fieldName;
21932
      }
21933
 
21934
      public short getThriftFieldId() {
21935
        return _thriftId;
21936
      }
21937
 
21938
      public String getFieldName() {
21939
        return _fieldName;
21940
      }
21941
    }
21942
 
21943
    // isset id assignments
21944
 
21945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21946
    static {
21947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21948
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21949
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21950
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
21951
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
21955
    }
21956
 
21957
    public getVendorItemMappings_result() {
21958
    }
21959
 
21960
    public getVendorItemMappings_result(
21961
      List<VendorItemMapping> success,
21962
      InventoryServiceException cex)
21963
    {
21964
      this();
21965
      this.success = success;
21966
      this.cex = cex;
21967
    }
21968
 
21969
    /**
21970
     * Performs a deep copy on <i>other</i>.
21971
     */
21972
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
21973
      if (other.isSetSuccess()) {
21974
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
21975
        for (VendorItemMapping other_element : other.success) {
21976
          __this__success.add(new VendorItemMapping(other_element));
21977
        }
21978
        this.success = __this__success;
21979
      }
21980
      if (other.isSetCex()) {
21981
        this.cex = new InventoryServiceException(other.cex);
21982
      }
21983
    }
21984
 
21985
    public getVendorItemMappings_result deepCopy() {
21986
      return new getVendorItemMappings_result(this);
21987
    }
21988
 
21989
    @Override
21990
    public void clear() {
21991
      this.success = null;
21992
      this.cex = null;
21993
    }
21994
 
21995
    public int getSuccessSize() {
21996
      return (this.success == null) ? 0 : this.success.size();
21997
    }
21998
 
21999
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
22000
      return (this.success == null) ? null : this.success.iterator();
22001
    }
22002
 
22003
    public void addToSuccess(VendorItemMapping elem) {
22004
      if (this.success == null) {
22005
        this.success = new ArrayList<VendorItemMapping>();
22006
      }
22007
      this.success.add(elem);
22008
    }
22009
 
22010
    public List<VendorItemMapping> getSuccess() {
22011
      return this.success;
22012
    }
22013
 
22014
    public void setSuccess(List<VendorItemMapping> success) {
22015
      this.success = success;
22016
    }
22017
 
22018
    public void unsetSuccess() {
22019
      this.success = null;
22020
    }
22021
 
22022
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22023
    public boolean isSetSuccess() {
22024
      return this.success != null;
22025
    }
22026
 
22027
    public void setSuccessIsSet(boolean value) {
22028
      if (!value) {
22029
        this.success = null;
22030
      }
22031
    }
22032
 
22033
    public InventoryServiceException getCex() {
22034
      return this.cex;
22035
    }
22036
 
22037
    public void setCex(InventoryServiceException cex) {
22038
      this.cex = cex;
22039
    }
22040
 
22041
    public void unsetCex() {
22042
      this.cex = null;
22043
    }
22044
 
22045
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22046
    public boolean isSetCex() {
22047
      return this.cex != null;
22048
    }
22049
 
22050
    public void setCexIsSet(boolean value) {
22051
      if (!value) {
22052
        this.cex = null;
22053
      }
22054
    }
22055
 
22056
    public void setFieldValue(_Fields field, Object value) {
22057
      switch (field) {
22058
      case SUCCESS:
22059
        if (value == null) {
22060
          unsetSuccess();
22061
        } else {
22062
          setSuccess((List<VendorItemMapping>)value);
22063
        }
22064
        break;
22065
 
22066
      case CEX:
22067
        if (value == null) {
22068
          unsetCex();
22069
        } else {
22070
          setCex((InventoryServiceException)value);
22071
        }
22072
        break;
22073
 
22074
      }
22075
    }
22076
 
22077
    public Object getFieldValue(_Fields field) {
22078
      switch (field) {
22079
      case SUCCESS:
22080
        return getSuccess();
22081
 
22082
      case CEX:
22083
        return getCex();
22084
 
22085
      }
22086
      throw new IllegalStateException();
22087
    }
22088
 
22089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22090
    public boolean isSet(_Fields field) {
22091
      if (field == null) {
22092
        throw new IllegalArgumentException();
22093
      }
22094
 
22095
      switch (field) {
22096
      case SUCCESS:
22097
        return isSetSuccess();
22098
      case CEX:
22099
        return isSetCex();
22100
      }
22101
      throw new IllegalStateException();
22102
    }
22103
 
22104
    @Override
22105
    public boolean equals(Object that) {
22106
      if (that == null)
22107
        return false;
22108
      if (that instanceof getVendorItemMappings_result)
22109
        return this.equals((getVendorItemMappings_result)that);
22110
      return false;
22111
    }
22112
 
22113
    public boolean equals(getVendorItemMappings_result that) {
22114
      if (that == null)
22115
        return false;
22116
 
22117
      boolean this_present_success = true && this.isSetSuccess();
22118
      boolean that_present_success = true && that.isSetSuccess();
22119
      if (this_present_success || that_present_success) {
22120
        if (!(this_present_success && that_present_success))
22121
          return false;
22122
        if (!this.success.equals(that.success))
22123
          return false;
22124
      }
22125
 
22126
      boolean this_present_cex = true && this.isSetCex();
22127
      boolean that_present_cex = true && that.isSetCex();
22128
      if (this_present_cex || that_present_cex) {
22129
        if (!(this_present_cex && that_present_cex))
22130
          return false;
22131
        if (!this.cex.equals(that.cex))
22132
          return false;
22133
      }
22134
 
22135
      return true;
22136
    }
22137
 
22138
    @Override
22139
    public int hashCode() {
22140
      return 0;
22141
    }
22142
 
22143
    public int compareTo(getVendorItemMappings_result other) {
22144
      if (!getClass().equals(other.getClass())) {
22145
        return getClass().getName().compareTo(other.getClass().getName());
22146
      }
22147
 
22148
      int lastComparison = 0;
22149
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
22150
 
22151
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22152
      if (lastComparison != 0) {
22153
        return lastComparison;
22154
      }
22155
      if (isSetSuccess()) {
22156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22157
        if (lastComparison != 0) {
22158
          return lastComparison;
22159
        }
22160
      }
22161
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22162
      if (lastComparison != 0) {
22163
        return lastComparison;
22164
      }
22165
      if (isSetCex()) {
22166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22167
        if (lastComparison != 0) {
22168
          return lastComparison;
22169
        }
22170
      }
22171
      return 0;
22172
    }
22173
 
22174
    public _Fields fieldForId(int fieldId) {
22175
      return _Fields.findByThriftId(fieldId);
22176
    }
22177
 
22178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22179
      org.apache.thrift.protocol.TField field;
22180
      iprot.readStructBegin();
22181
      while (true)
22182
      {
22183
        field = iprot.readFieldBegin();
22184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22185
          break;
22186
        }
22187
        switch (field.id) {
22188
          case 0: // SUCCESS
22189
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22190
              {
8182 amar.kumar 22191
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
22192
                this.success = new ArrayList<VendorItemMapping>(_list45.size);
22193
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
5945 mandeep.dh 22194
                {
8182 amar.kumar 22195
                  VendorItemMapping _elem47; // required
22196
                  _elem47 = new VendorItemMapping();
22197
                  _elem47.read(iprot);
22198
                  this.success.add(_elem47);
5945 mandeep.dh 22199
                }
22200
                iprot.readListEnd();
22201
              }
22202
            } else { 
22203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22204
            }
22205
            break;
22206
          case 1: // CEX
22207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22208
              this.cex = new InventoryServiceException();
22209
              this.cex.read(iprot);
22210
            } else { 
22211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22212
            }
22213
            break;
22214
          default:
22215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22216
        }
22217
        iprot.readFieldEnd();
22218
      }
22219
      iprot.readStructEnd();
22220
      validate();
22221
    }
22222
 
22223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22224
      oprot.writeStructBegin(STRUCT_DESC);
22225
 
22226
      if (this.isSetSuccess()) {
22227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22228
        {
22229
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 22230
          for (VendorItemMapping _iter48 : this.success)
5945 mandeep.dh 22231
          {
8182 amar.kumar 22232
            _iter48.write(oprot);
5945 mandeep.dh 22233
          }
22234
          oprot.writeListEnd();
22235
        }
22236
        oprot.writeFieldEnd();
22237
      } else if (this.isSetCex()) {
22238
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22239
        this.cex.write(oprot);
22240
        oprot.writeFieldEnd();
22241
      }
22242
      oprot.writeFieldStop();
22243
      oprot.writeStructEnd();
22244
    }
22245
 
22246
    @Override
22247
    public String toString() {
22248
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
22249
      boolean first = true;
22250
 
22251
      sb.append("success:");
22252
      if (this.success == null) {
22253
        sb.append("null");
22254
      } else {
22255
        sb.append(this.success);
22256
      }
22257
      first = false;
22258
      if (!first) sb.append(", ");
22259
      sb.append("cex:");
22260
      if (this.cex == null) {
22261
        sb.append("null");
22262
      } else {
22263
        sb.append(this.cex);
22264
      }
22265
      first = false;
22266
      sb.append(")");
22267
      return sb.toString();
22268
    }
22269
 
22270
    public void validate() throws org.apache.thrift.TException {
22271
      // check for required fields
22272
    }
22273
 
22274
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22275
      try {
22276
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22277
      } catch (org.apache.thrift.TException te) {
22278
        throw new java.io.IOException(te);
22279
      }
22280
    }
22281
 
22282
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22283
      try {
22284
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22285
      } catch (org.apache.thrift.TException te) {
22286
        throw new java.io.IOException(te);
22287
      }
22288
    }
22289
 
22290
  }
22291
 
22292
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
22293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
22294
 
22295
    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);
22296
 
22297
    private long vendorid; // required
22298
 
22299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22300
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22301
      VENDORID((short)1, "vendorid");
22302
 
22303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22304
 
22305
      static {
22306
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22307
          byName.put(field.getFieldName(), field);
22308
        }
22309
      }
22310
 
22311
      /**
22312
       * Find the _Fields constant that matches fieldId, or null if its not found.
22313
       */
22314
      public static _Fields findByThriftId(int fieldId) {
22315
        switch(fieldId) {
22316
          case 1: // VENDORID
22317
            return VENDORID;
22318
          default:
22319
            return null;
22320
        }
22321
      }
22322
 
22323
      /**
22324
       * Find the _Fields constant that matches fieldId, throwing an exception
22325
       * if it is not found.
22326
       */
22327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22328
        _Fields fields = findByThriftId(fieldId);
22329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22330
        return fields;
22331
      }
22332
 
22333
      /**
22334
       * Find the _Fields constant that matches name, or null if its not found.
22335
       */
22336
      public static _Fields findByName(String name) {
22337
        return byName.get(name);
22338
      }
22339
 
22340
      private final short _thriftId;
22341
      private final String _fieldName;
22342
 
22343
      _Fields(short thriftId, String fieldName) {
22344
        _thriftId = thriftId;
22345
        _fieldName = fieldName;
22346
      }
22347
 
22348
      public short getThriftFieldId() {
22349
        return _thriftId;
22350
      }
22351
 
22352
      public String getFieldName() {
22353
        return _fieldName;
22354
      }
22355
    }
22356
 
22357
    // isset id assignments
22358
    private static final int __VENDORID_ISSET_ID = 0;
22359
    private BitSet __isset_bit_vector = new BitSet(1);
22360
 
22361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22362
    static {
22363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22364
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
22368
    }
22369
 
22370
    public getPendingOrdersInventory_args() {
22371
    }
22372
 
22373
    public getPendingOrdersInventory_args(
22374
      long vendorid)
22375
    {
22376
      this();
22377
      this.vendorid = vendorid;
22378
      setVendoridIsSet(true);
22379
    }
22380
 
22381
    /**
22382
     * Performs a deep copy on <i>other</i>.
22383
     */
22384
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
22385
      __isset_bit_vector.clear();
22386
      __isset_bit_vector.or(other.__isset_bit_vector);
22387
      this.vendorid = other.vendorid;
22388
    }
22389
 
22390
    public getPendingOrdersInventory_args deepCopy() {
22391
      return new getPendingOrdersInventory_args(this);
22392
    }
22393
 
22394
    @Override
22395
    public void clear() {
22396
      setVendoridIsSet(false);
22397
      this.vendorid = 0;
22398
    }
22399
 
22400
    public long getVendorid() {
22401
      return this.vendorid;
22402
    }
22403
 
22404
    public void setVendorid(long vendorid) {
22405
      this.vendorid = vendorid;
22406
      setVendoridIsSet(true);
22407
    }
22408
 
22409
    public void unsetVendorid() {
22410
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
22411
    }
22412
 
22413
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
22414
    public boolean isSetVendorid() {
22415
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
22416
    }
22417
 
22418
    public void setVendoridIsSet(boolean value) {
22419
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
22420
    }
22421
 
22422
    public void setFieldValue(_Fields field, Object value) {
22423
      switch (field) {
22424
      case VENDORID:
22425
        if (value == null) {
22426
          unsetVendorid();
22427
        } else {
22428
          setVendorid((Long)value);
22429
        }
22430
        break;
22431
 
22432
      }
22433
    }
22434
 
22435
    public Object getFieldValue(_Fields field) {
22436
      switch (field) {
22437
      case VENDORID:
22438
        return Long.valueOf(getVendorid());
22439
 
22440
      }
22441
      throw new IllegalStateException();
22442
    }
22443
 
22444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22445
    public boolean isSet(_Fields field) {
22446
      if (field == null) {
22447
        throw new IllegalArgumentException();
22448
      }
22449
 
22450
      switch (field) {
22451
      case VENDORID:
22452
        return isSetVendorid();
22453
      }
22454
      throw new IllegalStateException();
22455
    }
22456
 
22457
    @Override
22458
    public boolean equals(Object that) {
22459
      if (that == null)
22460
        return false;
22461
      if (that instanceof getPendingOrdersInventory_args)
22462
        return this.equals((getPendingOrdersInventory_args)that);
22463
      return false;
22464
    }
22465
 
22466
    public boolean equals(getPendingOrdersInventory_args that) {
22467
      if (that == null)
22468
        return false;
22469
 
22470
      boolean this_present_vendorid = true;
22471
      boolean that_present_vendorid = true;
22472
      if (this_present_vendorid || that_present_vendorid) {
22473
        if (!(this_present_vendorid && that_present_vendorid))
22474
          return false;
22475
        if (this.vendorid != that.vendorid)
22476
          return false;
22477
      }
22478
 
22479
      return true;
22480
    }
22481
 
22482
    @Override
22483
    public int hashCode() {
22484
      return 0;
22485
    }
22486
 
22487
    public int compareTo(getPendingOrdersInventory_args other) {
22488
      if (!getClass().equals(other.getClass())) {
22489
        return getClass().getName().compareTo(other.getClass().getName());
22490
      }
22491
 
22492
      int lastComparison = 0;
22493
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
22494
 
22495
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
22496
      if (lastComparison != 0) {
22497
        return lastComparison;
22498
      }
22499
      if (isSetVendorid()) {
22500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
22501
        if (lastComparison != 0) {
22502
          return lastComparison;
22503
        }
22504
      }
22505
      return 0;
22506
    }
22507
 
22508
    public _Fields fieldForId(int fieldId) {
22509
      return _Fields.findByThriftId(fieldId);
22510
    }
22511
 
22512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22513
      org.apache.thrift.protocol.TField field;
22514
      iprot.readStructBegin();
22515
      while (true)
22516
      {
22517
        field = iprot.readFieldBegin();
22518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22519
          break;
22520
        }
22521
        switch (field.id) {
22522
          case 1: // VENDORID
22523
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22524
              this.vendorid = iprot.readI64();
22525
              setVendoridIsSet(true);
22526
            } else { 
22527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22528
            }
22529
            break;
22530
          default:
22531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22532
        }
22533
        iprot.readFieldEnd();
22534
      }
22535
      iprot.readStructEnd();
22536
      validate();
22537
    }
22538
 
22539
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22540
      validate();
22541
 
22542
      oprot.writeStructBegin(STRUCT_DESC);
22543
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
22544
      oprot.writeI64(this.vendorid);
22545
      oprot.writeFieldEnd();
22546
      oprot.writeFieldStop();
22547
      oprot.writeStructEnd();
22548
    }
22549
 
22550
    @Override
22551
    public String toString() {
22552
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
22553
      boolean first = true;
22554
 
22555
      sb.append("vendorid:");
22556
      sb.append(this.vendorid);
22557
      first = false;
22558
      sb.append(")");
22559
      return sb.toString();
22560
    }
22561
 
22562
    public void validate() throws org.apache.thrift.TException {
22563
      // check for required fields
22564
    }
22565
 
22566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22567
      try {
22568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22569
      } catch (org.apache.thrift.TException te) {
22570
        throw new java.io.IOException(te);
22571
      }
22572
    }
22573
 
22574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22575
      try {
22576
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22577
        __isset_bit_vector = new BitSet(1);
22578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22579
      } catch (org.apache.thrift.TException te) {
22580
        throw new java.io.IOException(te);
22581
      }
22582
    }
22583
 
22584
  }
22585
 
22586
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
22587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
22588
 
22589
    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);
22590
 
22591
    private List<AvailableAndReservedStock> success; // required
22592
 
22593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22595
      SUCCESS((short)0, "success");
22596
 
22597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22598
 
22599
      static {
22600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22601
          byName.put(field.getFieldName(), field);
22602
        }
22603
      }
22604
 
22605
      /**
22606
       * Find the _Fields constant that matches fieldId, or null if its not found.
22607
       */
22608
      public static _Fields findByThriftId(int fieldId) {
22609
        switch(fieldId) {
22610
          case 0: // SUCCESS
22611
            return SUCCESS;
22612
          default:
22613
            return null;
22614
        }
22615
      }
22616
 
22617
      /**
22618
       * Find the _Fields constant that matches fieldId, throwing an exception
22619
       * if it is not found.
22620
       */
22621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22622
        _Fields fields = findByThriftId(fieldId);
22623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22624
        return fields;
22625
      }
22626
 
22627
      /**
22628
       * Find the _Fields constant that matches name, or null if its not found.
22629
       */
22630
      public static _Fields findByName(String name) {
22631
        return byName.get(name);
22632
      }
22633
 
22634
      private final short _thriftId;
22635
      private final String _fieldName;
22636
 
22637
      _Fields(short thriftId, String fieldName) {
22638
        _thriftId = thriftId;
22639
        _fieldName = fieldName;
22640
      }
22641
 
22642
      public short getThriftFieldId() {
22643
        return _thriftId;
22644
      }
22645
 
22646
      public String getFieldName() {
22647
        return _fieldName;
22648
      }
22649
    }
22650
 
22651
    // isset id assignments
22652
 
22653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22654
    static {
22655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22656
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22657
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22658
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
22659
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22660
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
22661
    }
22662
 
22663
    public getPendingOrdersInventory_result() {
22664
    }
22665
 
22666
    public getPendingOrdersInventory_result(
22667
      List<AvailableAndReservedStock> success)
22668
    {
22669
      this();
22670
      this.success = success;
22671
    }
22672
 
22673
    /**
22674
     * Performs a deep copy on <i>other</i>.
22675
     */
22676
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
22677
      if (other.isSetSuccess()) {
22678
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
22679
        for (AvailableAndReservedStock other_element : other.success) {
22680
          __this__success.add(new AvailableAndReservedStock(other_element));
22681
        }
22682
        this.success = __this__success;
22683
      }
22684
    }
22685
 
22686
    public getPendingOrdersInventory_result deepCopy() {
22687
      return new getPendingOrdersInventory_result(this);
22688
    }
22689
 
22690
    @Override
22691
    public void clear() {
22692
      this.success = null;
22693
    }
22694
 
22695
    public int getSuccessSize() {
22696
      return (this.success == null) ? 0 : this.success.size();
22697
    }
22698
 
22699
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
22700
      return (this.success == null) ? null : this.success.iterator();
22701
    }
22702
 
22703
    public void addToSuccess(AvailableAndReservedStock elem) {
22704
      if (this.success == null) {
22705
        this.success = new ArrayList<AvailableAndReservedStock>();
22706
      }
22707
      this.success.add(elem);
22708
    }
22709
 
22710
    public List<AvailableAndReservedStock> getSuccess() {
22711
      return this.success;
22712
    }
22713
 
22714
    public void setSuccess(List<AvailableAndReservedStock> success) {
22715
      this.success = success;
22716
    }
22717
 
22718
    public void unsetSuccess() {
22719
      this.success = null;
22720
    }
22721
 
22722
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22723
    public boolean isSetSuccess() {
22724
      return this.success != null;
22725
    }
22726
 
22727
    public void setSuccessIsSet(boolean value) {
22728
      if (!value) {
22729
        this.success = null;
22730
      }
22731
    }
22732
 
22733
    public void setFieldValue(_Fields field, Object value) {
22734
      switch (field) {
22735
      case SUCCESS:
22736
        if (value == null) {
22737
          unsetSuccess();
22738
        } else {
22739
          setSuccess((List<AvailableAndReservedStock>)value);
22740
        }
22741
        break;
22742
 
22743
      }
22744
    }
22745
 
22746
    public Object getFieldValue(_Fields field) {
22747
      switch (field) {
22748
      case SUCCESS:
22749
        return getSuccess();
22750
 
22751
      }
22752
      throw new IllegalStateException();
22753
    }
22754
 
22755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22756
    public boolean isSet(_Fields field) {
22757
      if (field == null) {
22758
        throw new IllegalArgumentException();
22759
      }
22760
 
22761
      switch (field) {
22762
      case SUCCESS:
22763
        return isSetSuccess();
22764
      }
22765
      throw new IllegalStateException();
22766
    }
22767
 
22768
    @Override
22769
    public boolean equals(Object that) {
22770
      if (that == null)
22771
        return false;
22772
      if (that instanceof getPendingOrdersInventory_result)
22773
        return this.equals((getPendingOrdersInventory_result)that);
22774
      return false;
22775
    }
22776
 
22777
    public boolean equals(getPendingOrdersInventory_result that) {
22778
      if (that == null)
22779
        return false;
22780
 
22781
      boolean this_present_success = true && this.isSetSuccess();
22782
      boolean that_present_success = true && that.isSetSuccess();
22783
      if (this_present_success || that_present_success) {
22784
        if (!(this_present_success && that_present_success))
22785
          return false;
22786
        if (!this.success.equals(that.success))
22787
          return false;
22788
      }
22789
 
22790
      return true;
22791
    }
22792
 
22793
    @Override
22794
    public int hashCode() {
22795
      return 0;
22796
    }
22797
 
22798
    public int compareTo(getPendingOrdersInventory_result other) {
22799
      if (!getClass().equals(other.getClass())) {
22800
        return getClass().getName().compareTo(other.getClass().getName());
22801
      }
22802
 
22803
      int lastComparison = 0;
22804
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
22805
 
22806
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22807
      if (lastComparison != 0) {
22808
        return lastComparison;
22809
      }
22810
      if (isSetSuccess()) {
22811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22812
        if (lastComparison != 0) {
22813
          return lastComparison;
22814
        }
22815
      }
22816
      return 0;
22817
    }
22818
 
22819
    public _Fields fieldForId(int fieldId) {
22820
      return _Fields.findByThriftId(fieldId);
22821
    }
22822
 
22823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22824
      org.apache.thrift.protocol.TField field;
22825
      iprot.readStructBegin();
22826
      while (true)
22827
      {
22828
        field = iprot.readFieldBegin();
22829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22830
          break;
22831
        }
22832
        switch (field.id) {
22833
          case 0: // SUCCESS
22834
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22835
              {
8182 amar.kumar 22836
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
22837
                this.success = new ArrayList<AvailableAndReservedStock>(_list49.size);
22838
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
5945 mandeep.dh 22839
                {
8182 amar.kumar 22840
                  AvailableAndReservedStock _elem51; // required
22841
                  _elem51 = new AvailableAndReservedStock();
22842
                  _elem51.read(iprot);
22843
                  this.success.add(_elem51);
5945 mandeep.dh 22844
                }
22845
                iprot.readListEnd();
22846
              }
22847
            } else { 
22848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22849
            }
22850
            break;
22851
          default:
22852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22853
        }
22854
        iprot.readFieldEnd();
22855
      }
22856
      iprot.readStructEnd();
22857
      validate();
22858
    }
22859
 
22860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22861
      oprot.writeStructBegin(STRUCT_DESC);
22862
 
22863
      if (this.isSetSuccess()) {
22864
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22865
        {
22866
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 22867
          for (AvailableAndReservedStock _iter52 : this.success)
5945 mandeep.dh 22868
          {
8182 amar.kumar 22869
            _iter52.write(oprot);
5945 mandeep.dh 22870
          }
22871
          oprot.writeListEnd();
22872
        }
22873
        oprot.writeFieldEnd();
22874
      }
22875
      oprot.writeFieldStop();
22876
      oprot.writeStructEnd();
22877
    }
22878
 
22879
    @Override
22880
    public String toString() {
22881
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
22882
      boolean first = true;
22883
 
22884
      sb.append("success:");
22885
      if (this.success == null) {
22886
        sb.append("null");
22887
      } else {
22888
        sb.append(this.success);
22889
      }
22890
      first = false;
22891
      sb.append(")");
22892
      return sb.toString();
22893
    }
22894
 
22895
    public void validate() throws org.apache.thrift.TException {
22896
      // check for required fields
22897
    }
22898
 
22899
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22900
      try {
22901
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22902
      } catch (org.apache.thrift.TException te) {
22903
        throw new java.io.IOException(te);
22904
      }
22905
    }
22906
 
22907
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22908
      try {
22909
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22910
      } catch (org.apache.thrift.TException te) {
22911
        throw new java.io.IOException(te);
22912
      }
22913
    }
22914
 
22915
  }
22916
 
22917
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
22918
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
22919
 
22920
    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);
22921
    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);
22922
    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);
22923
    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);
22924
    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);
22925
 
22926
    private WarehouseType warehouseType; // required
22927
    private InventoryType inventoryType; // required
22928
    private long vendorId; // required
22929
    private long billingWarehouseId; // required
22930
    private long shippingWarehouseId; // required
22931
 
22932
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22933
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22934
      /**
22935
       * 
22936
       * @see WarehouseType
22937
       */
22938
      WAREHOUSE_TYPE((short)1, "warehouseType"),
22939
      /**
22940
       * 
22941
       * @see InventoryType
22942
       */
22943
      INVENTORY_TYPE((short)2, "inventoryType"),
22944
      VENDOR_ID((short)3, "vendorId"),
22945
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
22946
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
22947
 
22948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22949
 
22950
      static {
22951
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22952
          byName.put(field.getFieldName(), field);
22953
        }
22954
      }
22955
 
22956
      /**
22957
       * Find the _Fields constant that matches fieldId, or null if its not found.
22958
       */
22959
      public static _Fields findByThriftId(int fieldId) {
22960
        switch(fieldId) {
22961
          case 1: // WAREHOUSE_TYPE
22962
            return WAREHOUSE_TYPE;
22963
          case 2: // INVENTORY_TYPE
22964
            return INVENTORY_TYPE;
22965
          case 3: // VENDOR_ID
22966
            return VENDOR_ID;
22967
          case 4: // BILLING_WAREHOUSE_ID
22968
            return BILLING_WAREHOUSE_ID;
22969
          case 5: // SHIPPING_WAREHOUSE_ID
22970
            return SHIPPING_WAREHOUSE_ID;
22971
          default:
22972
            return null;
22973
        }
22974
      }
22975
 
22976
      /**
22977
       * Find the _Fields constant that matches fieldId, throwing an exception
22978
       * if it is not found.
22979
       */
22980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22981
        _Fields fields = findByThriftId(fieldId);
22982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22983
        return fields;
22984
      }
22985
 
22986
      /**
22987
       * Find the _Fields constant that matches name, or null if its not found.
22988
       */
22989
      public static _Fields findByName(String name) {
22990
        return byName.get(name);
22991
      }
22992
 
22993
      private final short _thriftId;
22994
      private final String _fieldName;
22995
 
22996
      _Fields(short thriftId, String fieldName) {
22997
        _thriftId = thriftId;
22998
        _fieldName = fieldName;
22999
      }
23000
 
23001
      public short getThriftFieldId() {
23002
        return _thriftId;
23003
      }
23004
 
23005
      public String getFieldName() {
23006
        return _fieldName;
23007
      }
23008
    }
23009
 
23010
    // isset id assignments
23011
    private static final int __VENDORID_ISSET_ID = 0;
23012
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
23013
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
23014
    private BitSet __isset_bit_vector = new BitSet(3);
23015
 
23016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23017
    static {
23018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23019
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23020
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
23021
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23022
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
23023
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23025
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23027
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23029
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23030
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
23031
    }
23032
 
23033
    public getWarehouses_args() {
23034
    }
23035
 
23036
    public getWarehouses_args(
23037
      WarehouseType warehouseType,
23038
      InventoryType inventoryType,
23039
      long vendorId,
23040
      long billingWarehouseId,
23041
      long shippingWarehouseId)
23042
    {
23043
      this();
23044
      this.warehouseType = warehouseType;
23045
      this.inventoryType = inventoryType;
23046
      this.vendorId = vendorId;
23047
      setVendorIdIsSet(true);
23048
      this.billingWarehouseId = billingWarehouseId;
23049
      setBillingWarehouseIdIsSet(true);
23050
      this.shippingWarehouseId = shippingWarehouseId;
23051
      setShippingWarehouseIdIsSet(true);
23052
    }
23053
 
23054
    /**
23055
     * Performs a deep copy on <i>other</i>.
23056
     */
23057
    public getWarehouses_args(getWarehouses_args other) {
23058
      __isset_bit_vector.clear();
23059
      __isset_bit_vector.or(other.__isset_bit_vector);
23060
      if (other.isSetWarehouseType()) {
23061
        this.warehouseType = other.warehouseType;
23062
      }
23063
      if (other.isSetInventoryType()) {
23064
        this.inventoryType = other.inventoryType;
23065
      }
23066
      this.vendorId = other.vendorId;
23067
      this.billingWarehouseId = other.billingWarehouseId;
23068
      this.shippingWarehouseId = other.shippingWarehouseId;
23069
    }
23070
 
23071
    public getWarehouses_args deepCopy() {
23072
      return new getWarehouses_args(this);
23073
    }
23074
 
23075
    @Override
23076
    public void clear() {
23077
      this.warehouseType = null;
23078
      this.inventoryType = null;
23079
      setVendorIdIsSet(false);
23080
      this.vendorId = 0;
23081
      setBillingWarehouseIdIsSet(false);
23082
      this.billingWarehouseId = 0;
23083
      setShippingWarehouseIdIsSet(false);
23084
      this.shippingWarehouseId = 0;
23085
    }
23086
 
23087
    /**
23088
     * 
23089
     * @see WarehouseType
23090
     */
23091
    public WarehouseType getWarehouseType() {
23092
      return this.warehouseType;
23093
    }
23094
 
23095
    /**
23096
     * 
23097
     * @see WarehouseType
23098
     */
23099
    public void setWarehouseType(WarehouseType warehouseType) {
23100
      this.warehouseType = warehouseType;
23101
    }
23102
 
23103
    public void unsetWarehouseType() {
23104
      this.warehouseType = null;
23105
    }
23106
 
23107
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
23108
    public boolean isSetWarehouseType() {
23109
      return this.warehouseType != null;
23110
    }
23111
 
23112
    public void setWarehouseTypeIsSet(boolean value) {
23113
      if (!value) {
23114
        this.warehouseType = null;
23115
      }
23116
    }
23117
 
23118
    /**
23119
     * 
23120
     * @see InventoryType
23121
     */
23122
    public InventoryType getInventoryType() {
23123
      return this.inventoryType;
23124
    }
23125
 
23126
    /**
23127
     * 
23128
     * @see InventoryType
23129
     */
23130
    public void setInventoryType(InventoryType inventoryType) {
23131
      this.inventoryType = inventoryType;
23132
    }
23133
 
23134
    public void unsetInventoryType() {
23135
      this.inventoryType = null;
23136
    }
23137
 
23138
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
23139
    public boolean isSetInventoryType() {
23140
      return this.inventoryType != null;
23141
    }
23142
 
23143
    public void setInventoryTypeIsSet(boolean value) {
23144
      if (!value) {
23145
        this.inventoryType = null;
23146
      }
23147
    }
23148
 
23149
    public long getVendorId() {
23150
      return this.vendorId;
23151
    }
23152
 
23153
    public void setVendorId(long vendorId) {
23154
      this.vendorId = vendorId;
23155
      setVendorIdIsSet(true);
23156
    }
23157
 
23158
    public void unsetVendorId() {
23159
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
23160
    }
23161
 
23162
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
23163
    public boolean isSetVendorId() {
23164
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
23165
    }
23166
 
23167
    public void setVendorIdIsSet(boolean value) {
23168
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
23169
    }
23170
 
23171
    public long getBillingWarehouseId() {
23172
      return this.billingWarehouseId;
23173
    }
23174
 
23175
    public void setBillingWarehouseId(long billingWarehouseId) {
23176
      this.billingWarehouseId = billingWarehouseId;
23177
      setBillingWarehouseIdIsSet(true);
23178
    }
23179
 
23180
    public void unsetBillingWarehouseId() {
23181
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
23182
    }
23183
 
23184
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
23185
    public boolean isSetBillingWarehouseId() {
23186
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
23187
    }
23188
 
23189
    public void setBillingWarehouseIdIsSet(boolean value) {
23190
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
23191
    }
23192
 
23193
    public long getShippingWarehouseId() {
23194
      return this.shippingWarehouseId;
23195
    }
23196
 
23197
    public void setShippingWarehouseId(long shippingWarehouseId) {
23198
      this.shippingWarehouseId = shippingWarehouseId;
23199
      setShippingWarehouseIdIsSet(true);
23200
    }
23201
 
23202
    public void unsetShippingWarehouseId() {
23203
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
23204
    }
23205
 
23206
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
23207
    public boolean isSetShippingWarehouseId() {
23208
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
23209
    }
23210
 
23211
    public void setShippingWarehouseIdIsSet(boolean value) {
23212
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
23213
    }
23214
 
23215
    public void setFieldValue(_Fields field, Object value) {
23216
      switch (field) {
23217
      case WAREHOUSE_TYPE:
23218
        if (value == null) {
23219
          unsetWarehouseType();
23220
        } else {
23221
          setWarehouseType((WarehouseType)value);
23222
        }
23223
        break;
23224
 
23225
      case INVENTORY_TYPE:
23226
        if (value == null) {
23227
          unsetInventoryType();
23228
        } else {
23229
          setInventoryType((InventoryType)value);
23230
        }
23231
        break;
23232
 
23233
      case VENDOR_ID:
23234
        if (value == null) {
23235
          unsetVendorId();
23236
        } else {
23237
          setVendorId((Long)value);
23238
        }
23239
        break;
23240
 
23241
      case BILLING_WAREHOUSE_ID:
23242
        if (value == null) {
23243
          unsetBillingWarehouseId();
23244
        } else {
23245
          setBillingWarehouseId((Long)value);
23246
        }
23247
        break;
23248
 
23249
      case SHIPPING_WAREHOUSE_ID:
23250
        if (value == null) {
23251
          unsetShippingWarehouseId();
23252
        } else {
23253
          setShippingWarehouseId((Long)value);
23254
        }
23255
        break;
23256
 
23257
      }
23258
    }
23259
 
23260
    public Object getFieldValue(_Fields field) {
23261
      switch (field) {
23262
      case WAREHOUSE_TYPE:
23263
        return getWarehouseType();
23264
 
23265
      case INVENTORY_TYPE:
23266
        return getInventoryType();
23267
 
23268
      case VENDOR_ID:
23269
        return Long.valueOf(getVendorId());
23270
 
23271
      case BILLING_WAREHOUSE_ID:
23272
        return Long.valueOf(getBillingWarehouseId());
23273
 
23274
      case SHIPPING_WAREHOUSE_ID:
23275
        return Long.valueOf(getShippingWarehouseId());
23276
 
23277
      }
23278
      throw new IllegalStateException();
23279
    }
23280
 
23281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23282
    public boolean isSet(_Fields field) {
23283
      if (field == null) {
23284
        throw new IllegalArgumentException();
23285
      }
23286
 
23287
      switch (field) {
23288
      case WAREHOUSE_TYPE:
23289
        return isSetWarehouseType();
23290
      case INVENTORY_TYPE:
23291
        return isSetInventoryType();
23292
      case VENDOR_ID:
23293
        return isSetVendorId();
23294
      case BILLING_WAREHOUSE_ID:
23295
        return isSetBillingWarehouseId();
23296
      case SHIPPING_WAREHOUSE_ID:
23297
        return isSetShippingWarehouseId();
23298
      }
23299
      throw new IllegalStateException();
23300
    }
23301
 
23302
    @Override
23303
    public boolean equals(Object that) {
23304
      if (that == null)
23305
        return false;
23306
      if (that instanceof getWarehouses_args)
23307
        return this.equals((getWarehouses_args)that);
23308
      return false;
23309
    }
23310
 
23311
    public boolean equals(getWarehouses_args that) {
23312
      if (that == null)
23313
        return false;
23314
 
23315
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
23316
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
23317
      if (this_present_warehouseType || that_present_warehouseType) {
23318
        if (!(this_present_warehouseType && that_present_warehouseType))
23319
          return false;
23320
        if (!this.warehouseType.equals(that.warehouseType))
23321
          return false;
23322
      }
23323
 
23324
      boolean this_present_inventoryType = true && this.isSetInventoryType();
23325
      boolean that_present_inventoryType = true && that.isSetInventoryType();
23326
      if (this_present_inventoryType || that_present_inventoryType) {
23327
        if (!(this_present_inventoryType && that_present_inventoryType))
23328
          return false;
23329
        if (!this.inventoryType.equals(that.inventoryType))
23330
          return false;
23331
      }
23332
 
23333
      boolean this_present_vendorId = true;
23334
      boolean that_present_vendorId = true;
23335
      if (this_present_vendorId || that_present_vendorId) {
23336
        if (!(this_present_vendorId && that_present_vendorId))
23337
          return false;
23338
        if (this.vendorId != that.vendorId)
23339
          return false;
23340
      }
23341
 
23342
      boolean this_present_billingWarehouseId = true;
23343
      boolean that_present_billingWarehouseId = true;
23344
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
23345
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
23346
          return false;
23347
        if (this.billingWarehouseId != that.billingWarehouseId)
23348
          return false;
23349
      }
23350
 
23351
      boolean this_present_shippingWarehouseId = true;
23352
      boolean that_present_shippingWarehouseId = true;
23353
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
23354
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
23355
          return false;
23356
        if (this.shippingWarehouseId != that.shippingWarehouseId)
23357
          return false;
23358
      }
23359
 
23360
      return true;
23361
    }
23362
 
23363
    @Override
23364
    public int hashCode() {
23365
      return 0;
23366
    }
23367
 
23368
    public int compareTo(getWarehouses_args other) {
23369
      if (!getClass().equals(other.getClass())) {
23370
        return getClass().getName().compareTo(other.getClass().getName());
23371
      }
23372
 
23373
      int lastComparison = 0;
23374
      getWarehouses_args typedOther = (getWarehouses_args)other;
23375
 
23376
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
23377
      if (lastComparison != 0) {
23378
        return lastComparison;
23379
      }
23380
      if (isSetWarehouseType()) {
23381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
23382
        if (lastComparison != 0) {
23383
          return lastComparison;
23384
        }
23385
      }
23386
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
23387
      if (lastComparison != 0) {
23388
        return lastComparison;
23389
      }
23390
      if (isSetInventoryType()) {
23391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
23392
        if (lastComparison != 0) {
23393
          return lastComparison;
23394
        }
23395
      }
23396
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
23397
      if (lastComparison != 0) {
23398
        return lastComparison;
23399
      }
23400
      if (isSetVendorId()) {
23401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
23402
        if (lastComparison != 0) {
23403
          return lastComparison;
23404
        }
23405
      }
23406
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
23407
      if (lastComparison != 0) {
23408
        return lastComparison;
23409
      }
23410
      if (isSetBillingWarehouseId()) {
23411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
23412
        if (lastComparison != 0) {
23413
          return lastComparison;
23414
        }
23415
      }
23416
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
23417
      if (lastComparison != 0) {
23418
        return lastComparison;
23419
      }
23420
      if (isSetShippingWarehouseId()) {
23421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
23422
        if (lastComparison != 0) {
23423
          return lastComparison;
23424
        }
23425
      }
23426
      return 0;
23427
    }
23428
 
23429
    public _Fields fieldForId(int fieldId) {
23430
      return _Fields.findByThriftId(fieldId);
23431
    }
23432
 
23433
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23434
      org.apache.thrift.protocol.TField field;
23435
      iprot.readStructBegin();
23436
      while (true)
23437
      {
23438
        field = iprot.readFieldBegin();
23439
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23440
          break;
23441
        }
23442
        switch (field.id) {
23443
          case 1: // WAREHOUSE_TYPE
23444
            if (field.type == org.apache.thrift.protocol.TType.I32) {
23445
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
23446
            } else { 
23447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23448
            }
23449
            break;
23450
          case 2: // INVENTORY_TYPE
23451
            if (field.type == org.apache.thrift.protocol.TType.I32) {
23452
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
23453
            } else { 
23454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23455
            }
23456
            break;
23457
          case 3: // VENDOR_ID
23458
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23459
              this.vendorId = iprot.readI64();
23460
              setVendorIdIsSet(true);
23461
            } else { 
23462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23463
            }
23464
            break;
23465
          case 4: // BILLING_WAREHOUSE_ID
23466
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23467
              this.billingWarehouseId = iprot.readI64();
23468
              setBillingWarehouseIdIsSet(true);
23469
            } else { 
23470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23471
            }
23472
            break;
23473
          case 5: // SHIPPING_WAREHOUSE_ID
23474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23475
              this.shippingWarehouseId = iprot.readI64();
23476
              setShippingWarehouseIdIsSet(true);
23477
            } else { 
23478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23479
            }
23480
            break;
23481
          default:
23482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23483
        }
23484
        iprot.readFieldEnd();
23485
      }
23486
      iprot.readStructEnd();
23487
      validate();
23488
    }
23489
 
23490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23491
      validate();
23492
 
23493
      oprot.writeStructBegin(STRUCT_DESC);
23494
      if (this.warehouseType != null) {
23495
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
23496
        oprot.writeI32(this.warehouseType.getValue());
23497
        oprot.writeFieldEnd();
23498
      }
23499
      if (this.inventoryType != null) {
23500
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
23501
        oprot.writeI32(this.inventoryType.getValue());
23502
        oprot.writeFieldEnd();
23503
      }
23504
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
23505
      oprot.writeI64(this.vendorId);
23506
      oprot.writeFieldEnd();
23507
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
23508
      oprot.writeI64(this.billingWarehouseId);
23509
      oprot.writeFieldEnd();
23510
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
23511
      oprot.writeI64(this.shippingWarehouseId);
23512
      oprot.writeFieldEnd();
23513
      oprot.writeFieldStop();
23514
      oprot.writeStructEnd();
23515
    }
23516
 
23517
    @Override
23518
    public String toString() {
23519
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
23520
      boolean first = true;
23521
 
23522
      sb.append("warehouseType:");
23523
      if (this.warehouseType == null) {
23524
        sb.append("null");
23525
      } else {
23526
        sb.append(this.warehouseType);
23527
      }
23528
      first = false;
23529
      if (!first) sb.append(", ");
23530
      sb.append("inventoryType:");
23531
      if (this.inventoryType == null) {
23532
        sb.append("null");
23533
      } else {
23534
        sb.append(this.inventoryType);
23535
      }
23536
      first = false;
23537
      if (!first) sb.append(", ");
23538
      sb.append("vendorId:");
23539
      sb.append(this.vendorId);
23540
      first = false;
23541
      if (!first) sb.append(", ");
23542
      sb.append("billingWarehouseId:");
23543
      sb.append(this.billingWarehouseId);
23544
      first = false;
23545
      if (!first) sb.append(", ");
23546
      sb.append("shippingWarehouseId:");
23547
      sb.append(this.shippingWarehouseId);
23548
      first = false;
23549
      sb.append(")");
23550
      return sb.toString();
23551
    }
23552
 
23553
    public void validate() throws org.apache.thrift.TException {
23554
      // check for required fields
23555
    }
23556
 
23557
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23558
      try {
23559
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23560
      } catch (org.apache.thrift.TException te) {
23561
        throw new java.io.IOException(te);
23562
      }
23563
    }
23564
 
23565
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23566
      try {
23567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23568
      } catch (org.apache.thrift.TException te) {
23569
        throw new java.io.IOException(te);
23570
      }
23571
    }
23572
 
23573
  }
23574
 
23575
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
23576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
23577
 
23578
    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);
23579
 
23580
    private List<Warehouse> success; // required
23581
 
23582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23584
      SUCCESS((short)0, "success");
23585
 
23586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23587
 
23588
      static {
23589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23590
          byName.put(field.getFieldName(), field);
23591
        }
23592
      }
23593
 
23594
      /**
23595
       * Find the _Fields constant that matches fieldId, or null if its not found.
23596
       */
23597
      public static _Fields findByThriftId(int fieldId) {
23598
        switch(fieldId) {
23599
          case 0: // SUCCESS
23600
            return SUCCESS;
23601
          default:
23602
            return null;
23603
        }
23604
      }
23605
 
23606
      /**
23607
       * Find the _Fields constant that matches fieldId, throwing an exception
23608
       * if it is not found.
23609
       */
23610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23611
        _Fields fields = findByThriftId(fieldId);
23612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23613
        return fields;
23614
      }
23615
 
23616
      /**
23617
       * Find the _Fields constant that matches name, or null if its not found.
23618
       */
23619
      public static _Fields findByName(String name) {
23620
        return byName.get(name);
23621
      }
23622
 
23623
      private final short _thriftId;
23624
      private final String _fieldName;
23625
 
23626
      _Fields(short thriftId, String fieldName) {
23627
        _thriftId = thriftId;
23628
        _fieldName = fieldName;
23629
      }
23630
 
23631
      public short getThriftFieldId() {
23632
        return _thriftId;
23633
      }
23634
 
23635
      public String getFieldName() {
23636
        return _fieldName;
23637
      }
23638
    }
23639
 
23640
    // isset id assignments
23641
 
23642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23643
    static {
23644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23645
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23646
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23647
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
23648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
23650
    }
23651
 
23652
    public getWarehouses_result() {
23653
    }
23654
 
23655
    public getWarehouses_result(
23656
      List<Warehouse> success)
23657
    {
23658
      this();
23659
      this.success = success;
23660
    }
23661
 
23662
    /**
23663
     * Performs a deep copy on <i>other</i>.
23664
     */
23665
    public getWarehouses_result(getWarehouses_result other) {
23666
      if (other.isSetSuccess()) {
23667
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
23668
        for (Warehouse other_element : other.success) {
23669
          __this__success.add(new Warehouse(other_element));
23670
        }
23671
        this.success = __this__success;
23672
      }
23673
    }
23674
 
23675
    public getWarehouses_result deepCopy() {
23676
      return new getWarehouses_result(this);
23677
    }
23678
 
23679
    @Override
23680
    public void clear() {
23681
      this.success = null;
23682
    }
23683
 
23684
    public int getSuccessSize() {
23685
      return (this.success == null) ? 0 : this.success.size();
23686
    }
23687
 
23688
    public java.util.Iterator<Warehouse> getSuccessIterator() {
23689
      return (this.success == null) ? null : this.success.iterator();
23690
    }
23691
 
23692
    public void addToSuccess(Warehouse elem) {
23693
      if (this.success == null) {
23694
        this.success = new ArrayList<Warehouse>();
23695
      }
23696
      this.success.add(elem);
23697
    }
23698
 
23699
    public List<Warehouse> getSuccess() {
23700
      return this.success;
23701
    }
23702
 
23703
    public void setSuccess(List<Warehouse> success) {
23704
      this.success = success;
23705
    }
23706
 
23707
    public void unsetSuccess() {
23708
      this.success = null;
23709
    }
23710
 
23711
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23712
    public boolean isSetSuccess() {
23713
      return this.success != null;
23714
    }
23715
 
23716
    public void setSuccessIsSet(boolean value) {
23717
      if (!value) {
23718
        this.success = null;
23719
      }
23720
    }
23721
 
23722
    public void setFieldValue(_Fields field, Object value) {
23723
      switch (field) {
23724
      case SUCCESS:
23725
        if (value == null) {
23726
          unsetSuccess();
23727
        } else {
23728
          setSuccess((List<Warehouse>)value);
23729
        }
23730
        break;
23731
 
23732
      }
23733
    }
23734
 
23735
    public Object getFieldValue(_Fields field) {
23736
      switch (field) {
23737
      case SUCCESS:
23738
        return getSuccess();
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 SUCCESS:
23752
        return isSetSuccess();
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 getWarehouses_result)
23762
        return this.equals((getWarehouses_result)that);
23763
      return false;
23764
    }
23765
 
23766
    public boolean equals(getWarehouses_result that) {
23767
      if (that == null)
23768
        return false;
23769
 
23770
      boolean this_present_success = true && this.isSetSuccess();
23771
      boolean that_present_success = true && that.isSetSuccess();
23772
      if (this_present_success || that_present_success) {
23773
        if (!(this_present_success && that_present_success))
23774
          return false;
23775
        if (!this.success.equals(that.success))
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(getWarehouses_result other) {
23788
      if (!getClass().equals(other.getClass())) {
23789
        return getClass().getName().compareTo(other.getClass().getName());
23790
      }
23791
 
23792
      int lastComparison = 0;
23793
      getWarehouses_result typedOther = (getWarehouses_result)other;
23794
 
23795
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23796
      if (lastComparison != 0) {
23797
        return lastComparison;
23798
      }
23799
      if (isSetSuccess()) {
23800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
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 0: // SUCCESS
23823
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23824
              {
8182 amar.kumar 23825
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
23826
                this.success = new ArrayList<Warehouse>(_list53.size);
23827
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
5945 mandeep.dh 23828
                {
8182 amar.kumar 23829
                  Warehouse _elem55; // required
23830
                  _elem55 = new Warehouse();
23831
                  _elem55.read(iprot);
23832
                  this.success.add(_elem55);
5945 mandeep.dh 23833
                }
23834
                iprot.readListEnd();
23835
              }
23836
            } else { 
23837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23838
            }
23839
            break;
23840
          default:
23841
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23842
        }
23843
        iprot.readFieldEnd();
23844
      }
23845
      iprot.readStructEnd();
23846
      validate();
23847
    }
23848
 
23849
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23850
      oprot.writeStructBegin(STRUCT_DESC);
23851
 
23852
      if (this.isSetSuccess()) {
23853
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23854
        {
23855
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 23856
          for (Warehouse _iter56 : this.success)
5945 mandeep.dh 23857
          {
8182 amar.kumar 23858
            _iter56.write(oprot);
5945 mandeep.dh 23859
          }
23860
          oprot.writeListEnd();
23861
        }
23862
        oprot.writeFieldEnd();
23863
      }
23864
      oprot.writeFieldStop();
23865
      oprot.writeStructEnd();
23866
    }
23867
 
23868
    @Override
23869
    public String toString() {
23870
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
23871
      boolean first = true;
23872
 
23873
      sb.append("success:");
23874
      if (this.success == null) {
23875
        sb.append("null");
23876
      } else {
23877
        sb.append(this.success);
23878
      }
23879
      first = false;
23880
      sb.append(")");
23881
      return sb.toString();
23882
    }
23883
 
23884
    public void validate() throws org.apache.thrift.TException {
23885
      // check for required fields
23886
    }
23887
 
23888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23889
      try {
23890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23891
      } catch (org.apache.thrift.TException te) {
23892
        throw new java.io.IOException(te);
23893
      }
23894
    }
23895
 
23896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23897
      try {
23898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23899
      } catch (org.apache.thrift.TException te) {
23900
        throw new java.io.IOException(te);
23901
      }
23902
    }
23903
 
23904
  }
23905
 
23906
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
23907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
23908
 
23909
    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);
23910
    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);
23911
    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);
23912
    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);
23913
 
23914
    private String itemKey; // required
23915
    private long vendorId; // required
23916
    private long quantity; // required
23917
    private long warehouseId; // required
23918
 
23919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23921
      ITEM_KEY((short)1, "itemKey"),
23922
      VENDOR_ID((short)2, "vendorId"),
23923
      QUANTITY((short)3, "quantity"),
23924
      WAREHOUSE_ID((short)4, "warehouseId");
23925
 
23926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23927
 
23928
      static {
23929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23930
          byName.put(field.getFieldName(), field);
23931
        }
23932
      }
23933
 
23934
      /**
23935
       * Find the _Fields constant that matches fieldId, or null if its not found.
23936
       */
23937
      public static _Fields findByThriftId(int fieldId) {
23938
        switch(fieldId) {
23939
          case 1: // ITEM_KEY
23940
            return ITEM_KEY;
23941
          case 2: // VENDOR_ID
23942
            return VENDOR_ID;
23943
          case 3: // QUANTITY
23944
            return QUANTITY;
23945
          case 4: // WAREHOUSE_ID
23946
            return WAREHOUSE_ID;
23947
          default:
23948
            return null;
23949
        }
23950
      }
23951
 
23952
      /**
23953
       * Find the _Fields constant that matches fieldId, throwing an exception
23954
       * if it is not found.
23955
       */
23956
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23957
        _Fields fields = findByThriftId(fieldId);
23958
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23959
        return fields;
23960
      }
23961
 
23962
      /**
23963
       * Find the _Fields constant that matches name, or null if its not found.
23964
       */
23965
      public static _Fields findByName(String name) {
23966
        return byName.get(name);
23967
      }
23968
 
23969
      private final short _thriftId;
23970
      private final String _fieldName;
23971
 
23972
      _Fields(short thriftId, String fieldName) {
23973
        _thriftId = thriftId;
23974
        _fieldName = fieldName;
23975
      }
23976
 
23977
      public short getThriftFieldId() {
23978
        return _thriftId;
23979
      }
23980
 
23981
      public String getFieldName() {
23982
        return _fieldName;
23983
      }
23984
    }
23985
 
23986
    // isset id assignments
23987
    private static final int __VENDORID_ISSET_ID = 0;
23988
    private static final int __QUANTITY_ISSET_ID = 1;
23989
    private static final int __WAREHOUSEID_ISSET_ID = 2;
23990
    private BitSet __isset_bit_vector = new BitSet(3);
23991
 
23992
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23993
    static {
23994
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23995
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23997
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23998
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23999
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24001
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
24005
    }
24006
 
24007
    public resetAvailability_args() {
24008
    }
24009
 
24010
    public resetAvailability_args(
24011
      String itemKey,
24012
      long vendorId,
24013
      long quantity,
24014
      long warehouseId)
24015
    {
24016
      this();
24017
      this.itemKey = itemKey;
24018
      this.vendorId = vendorId;
24019
      setVendorIdIsSet(true);
24020
      this.quantity = quantity;
24021
      setQuantityIsSet(true);
24022
      this.warehouseId = warehouseId;
24023
      setWarehouseIdIsSet(true);
24024
    }
24025
 
24026
    /**
24027
     * Performs a deep copy on <i>other</i>.
24028
     */
24029
    public resetAvailability_args(resetAvailability_args other) {
24030
      __isset_bit_vector.clear();
24031
      __isset_bit_vector.or(other.__isset_bit_vector);
24032
      if (other.isSetItemKey()) {
24033
        this.itemKey = other.itemKey;
24034
      }
24035
      this.vendorId = other.vendorId;
24036
      this.quantity = other.quantity;
24037
      this.warehouseId = other.warehouseId;
24038
    }
24039
 
24040
    public resetAvailability_args deepCopy() {
24041
      return new resetAvailability_args(this);
24042
    }
24043
 
24044
    @Override
24045
    public void clear() {
24046
      this.itemKey = null;
24047
      setVendorIdIsSet(false);
24048
      this.vendorId = 0;
24049
      setQuantityIsSet(false);
24050
      this.quantity = 0;
24051
      setWarehouseIdIsSet(false);
24052
      this.warehouseId = 0;
24053
    }
24054
 
24055
    public String getItemKey() {
24056
      return this.itemKey;
24057
    }
24058
 
24059
    public void setItemKey(String itemKey) {
24060
      this.itemKey = itemKey;
24061
    }
24062
 
24063
    public void unsetItemKey() {
24064
      this.itemKey = null;
24065
    }
24066
 
24067
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
24068
    public boolean isSetItemKey() {
24069
      return this.itemKey != null;
24070
    }
24071
 
24072
    public void setItemKeyIsSet(boolean value) {
24073
      if (!value) {
24074
        this.itemKey = null;
24075
      }
24076
    }
24077
 
24078
    public long getVendorId() {
24079
      return this.vendorId;
24080
    }
24081
 
24082
    public void setVendorId(long vendorId) {
24083
      this.vendorId = vendorId;
24084
      setVendorIdIsSet(true);
24085
    }
24086
 
24087
    public void unsetVendorId() {
24088
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
24089
    }
24090
 
24091
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
24092
    public boolean isSetVendorId() {
24093
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
24094
    }
24095
 
24096
    public void setVendorIdIsSet(boolean value) {
24097
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
24098
    }
24099
 
24100
    public long getQuantity() {
24101
      return this.quantity;
24102
    }
24103
 
24104
    public void setQuantity(long quantity) {
24105
      this.quantity = quantity;
24106
      setQuantityIsSet(true);
24107
    }
24108
 
24109
    public void unsetQuantity() {
24110
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
24111
    }
24112
 
24113
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
24114
    public boolean isSetQuantity() {
24115
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
24116
    }
24117
 
24118
    public void setQuantityIsSet(boolean value) {
24119
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
24120
    }
24121
 
24122
    public long getWarehouseId() {
24123
      return this.warehouseId;
24124
    }
24125
 
24126
    public void setWarehouseId(long warehouseId) {
24127
      this.warehouseId = warehouseId;
24128
      setWarehouseIdIsSet(true);
24129
    }
24130
 
24131
    public void unsetWarehouseId() {
24132
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24133
    }
24134
 
24135
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24136
    public boolean isSetWarehouseId() {
24137
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24138
    }
24139
 
24140
    public void setWarehouseIdIsSet(boolean value) {
24141
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24142
    }
24143
 
24144
    public void setFieldValue(_Fields field, Object value) {
24145
      switch (field) {
24146
      case ITEM_KEY:
24147
        if (value == null) {
24148
          unsetItemKey();
24149
        } else {
24150
          setItemKey((String)value);
24151
        }
24152
        break;
24153
 
24154
      case VENDOR_ID:
24155
        if (value == null) {
24156
          unsetVendorId();
24157
        } else {
24158
          setVendorId((Long)value);
24159
        }
24160
        break;
24161
 
24162
      case QUANTITY:
24163
        if (value == null) {
24164
          unsetQuantity();
24165
        } else {
24166
          setQuantity((Long)value);
24167
        }
24168
        break;
24169
 
24170
      case WAREHOUSE_ID:
24171
        if (value == null) {
24172
          unsetWarehouseId();
24173
        } else {
24174
          setWarehouseId((Long)value);
24175
        }
24176
        break;
24177
 
24178
      }
24179
    }
24180
 
24181
    public Object getFieldValue(_Fields field) {
24182
      switch (field) {
24183
      case ITEM_KEY:
24184
        return getItemKey();
24185
 
24186
      case VENDOR_ID:
24187
        return Long.valueOf(getVendorId());
24188
 
24189
      case QUANTITY:
24190
        return Long.valueOf(getQuantity());
24191
 
24192
      case WAREHOUSE_ID:
24193
        return Long.valueOf(getWarehouseId());
24194
 
24195
      }
24196
      throw new IllegalStateException();
24197
    }
24198
 
24199
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24200
    public boolean isSet(_Fields field) {
24201
      if (field == null) {
24202
        throw new IllegalArgumentException();
24203
      }
24204
 
24205
      switch (field) {
24206
      case ITEM_KEY:
24207
        return isSetItemKey();
24208
      case VENDOR_ID:
24209
        return isSetVendorId();
24210
      case QUANTITY:
24211
        return isSetQuantity();
24212
      case WAREHOUSE_ID:
24213
        return isSetWarehouseId();
24214
      }
24215
      throw new IllegalStateException();
24216
    }
24217
 
24218
    @Override
24219
    public boolean equals(Object that) {
24220
      if (that == null)
24221
        return false;
24222
      if (that instanceof resetAvailability_args)
24223
        return this.equals((resetAvailability_args)that);
24224
      return false;
24225
    }
24226
 
24227
    public boolean equals(resetAvailability_args that) {
24228
      if (that == null)
24229
        return false;
24230
 
24231
      boolean this_present_itemKey = true && this.isSetItemKey();
24232
      boolean that_present_itemKey = true && that.isSetItemKey();
24233
      if (this_present_itemKey || that_present_itemKey) {
24234
        if (!(this_present_itemKey && that_present_itemKey))
24235
          return false;
24236
        if (!this.itemKey.equals(that.itemKey))
24237
          return false;
24238
      }
24239
 
24240
      boolean this_present_vendorId = true;
24241
      boolean that_present_vendorId = true;
24242
      if (this_present_vendorId || that_present_vendorId) {
24243
        if (!(this_present_vendorId && that_present_vendorId))
24244
          return false;
24245
        if (this.vendorId != that.vendorId)
24246
          return false;
24247
      }
24248
 
24249
      boolean this_present_quantity = true;
24250
      boolean that_present_quantity = true;
24251
      if (this_present_quantity || that_present_quantity) {
24252
        if (!(this_present_quantity && that_present_quantity))
24253
          return false;
24254
        if (this.quantity != that.quantity)
24255
          return false;
24256
      }
24257
 
24258
      boolean this_present_warehouseId = true;
24259
      boolean that_present_warehouseId = true;
24260
      if (this_present_warehouseId || that_present_warehouseId) {
24261
        if (!(this_present_warehouseId && that_present_warehouseId))
24262
          return false;
24263
        if (this.warehouseId != that.warehouseId)
24264
          return false;
24265
      }
24266
 
24267
      return true;
24268
    }
24269
 
24270
    @Override
24271
    public int hashCode() {
24272
      return 0;
24273
    }
24274
 
24275
    public int compareTo(resetAvailability_args other) {
24276
      if (!getClass().equals(other.getClass())) {
24277
        return getClass().getName().compareTo(other.getClass().getName());
24278
      }
24279
 
24280
      int lastComparison = 0;
24281
      resetAvailability_args typedOther = (resetAvailability_args)other;
24282
 
24283
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
24284
      if (lastComparison != 0) {
24285
        return lastComparison;
24286
      }
24287
      if (isSetItemKey()) {
24288
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
24289
        if (lastComparison != 0) {
24290
          return lastComparison;
24291
        }
24292
      }
24293
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
24294
      if (lastComparison != 0) {
24295
        return lastComparison;
24296
      }
24297
      if (isSetVendorId()) {
24298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
24299
        if (lastComparison != 0) {
24300
          return lastComparison;
24301
        }
24302
      }
24303
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
24304
      if (lastComparison != 0) {
24305
        return lastComparison;
24306
      }
24307
      if (isSetQuantity()) {
24308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
24309
        if (lastComparison != 0) {
24310
          return lastComparison;
24311
        }
24312
      }
24313
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24314
      if (lastComparison != 0) {
24315
        return lastComparison;
24316
      }
24317
      if (isSetWarehouseId()) {
24318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24319
        if (lastComparison != 0) {
24320
          return lastComparison;
24321
        }
24322
      }
24323
      return 0;
24324
    }
24325
 
24326
    public _Fields fieldForId(int fieldId) {
24327
      return _Fields.findByThriftId(fieldId);
24328
    }
24329
 
24330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24331
      org.apache.thrift.protocol.TField field;
24332
      iprot.readStructBegin();
24333
      while (true)
24334
      {
24335
        field = iprot.readFieldBegin();
24336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24337
          break;
24338
        }
24339
        switch (field.id) {
24340
          case 1: // ITEM_KEY
24341
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24342
              this.itemKey = iprot.readString();
24343
            } else { 
24344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24345
            }
24346
            break;
24347
          case 2: // VENDOR_ID
24348
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24349
              this.vendorId = iprot.readI64();
24350
              setVendorIdIsSet(true);
24351
            } else { 
24352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24353
            }
24354
            break;
24355
          case 3: // QUANTITY
24356
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24357
              this.quantity = iprot.readI64();
24358
              setQuantityIsSet(true);
24359
            } else { 
24360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24361
            }
24362
            break;
24363
          case 4: // WAREHOUSE_ID
24364
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24365
              this.warehouseId = iprot.readI64();
24366
              setWarehouseIdIsSet(true);
24367
            } else { 
24368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24369
            }
24370
            break;
24371
          default:
24372
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24373
        }
24374
        iprot.readFieldEnd();
24375
      }
24376
      iprot.readStructEnd();
24377
      validate();
24378
    }
24379
 
24380
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24381
      validate();
24382
 
24383
      oprot.writeStructBegin(STRUCT_DESC);
24384
      if (this.itemKey != null) {
24385
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
24386
        oprot.writeString(this.itemKey);
24387
        oprot.writeFieldEnd();
24388
      }
24389
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
24390
      oprot.writeI64(this.vendorId);
24391
      oprot.writeFieldEnd();
24392
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
24393
      oprot.writeI64(this.quantity);
24394
      oprot.writeFieldEnd();
24395
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24396
      oprot.writeI64(this.warehouseId);
24397
      oprot.writeFieldEnd();
24398
      oprot.writeFieldStop();
24399
      oprot.writeStructEnd();
24400
    }
24401
 
24402
    @Override
24403
    public String toString() {
24404
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
24405
      boolean first = true;
24406
 
24407
      sb.append("itemKey:");
24408
      if (this.itemKey == null) {
24409
        sb.append("null");
24410
      } else {
24411
        sb.append(this.itemKey);
24412
      }
24413
      first = false;
24414
      if (!first) sb.append(", ");
24415
      sb.append("vendorId:");
24416
      sb.append(this.vendorId);
24417
      first = false;
24418
      if (!first) sb.append(", ");
24419
      sb.append("quantity:");
24420
      sb.append(this.quantity);
24421
      first = false;
24422
      if (!first) sb.append(", ");
24423
      sb.append("warehouseId:");
24424
      sb.append(this.warehouseId);
24425
      first = false;
24426
      sb.append(")");
24427
      return sb.toString();
24428
    }
24429
 
24430
    public void validate() throws org.apache.thrift.TException {
24431
      // check for required fields
24432
    }
24433
 
24434
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24435
      try {
24436
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24437
      } catch (org.apache.thrift.TException te) {
24438
        throw new java.io.IOException(te);
24439
      }
24440
    }
24441
 
24442
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24443
      try {
24444
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24445
        __isset_bit_vector = new BitSet(1);
24446
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24447
      } catch (org.apache.thrift.TException te) {
24448
        throw new java.io.IOException(te);
24449
      }
24450
    }
24451
 
24452
  }
24453
 
24454
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
24455
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
24456
 
24457
    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);
24458
 
24459
    private InventoryServiceException cex; // required
24460
 
24461
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24462
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24463
      CEX((short)1, "cex");
24464
 
24465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24466
 
24467
      static {
24468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24469
          byName.put(field.getFieldName(), field);
24470
        }
24471
      }
24472
 
24473
      /**
24474
       * Find the _Fields constant that matches fieldId, or null if its not found.
24475
       */
24476
      public static _Fields findByThriftId(int fieldId) {
24477
        switch(fieldId) {
24478
          case 1: // CEX
24479
            return CEX;
24480
          default:
24481
            return null;
24482
        }
24483
      }
24484
 
24485
      /**
24486
       * Find the _Fields constant that matches fieldId, throwing an exception
24487
       * if it is not found.
24488
       */
24489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24490
        _Fields fields = findByThriftId(fieldId);
24491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24492
        return fields;
24493
      }
24494
 
24495
      /**
24496
       * Find the _Fields constant that matches name, or null if its not found.
24497
       */
24498
      public static _Fields findByName(String name) {
24499
        return byName.get(name);
24500
      }
24501
 
24502
      private final short _thriftId;
24503
      private final String _fieldName;
24504
 
24505
      _Fields(short thriftId, String fieldName) {
24506
        _thriftId = thriftId;
24507
        _fieldName = fieldName;
24508
      }
24509
 
24510
      public short getThriftFieldId() {
24511
        return _thriftId;
24512
      }
24513
 
24514
      public String getFieldName() {
24515
        return _fieldName;
24516
      }
24517
    }
24518
 
24519
    // isset id assignments
24520
 
24521
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24522
    static {
24523
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24524
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24526
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24527
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
24528
    }
24529
 
24530
    public resetAvailability_result() {
24531
    }
24532
 
24533
    public resetAvailability_result(
24534
      InventoryServiceException cex)
24535
    {
24536
      this();
24537
      this.cex = cex;
24538
    }
24539
 
24540
    /**
24541
     * Performs a deep copy on <i>other</i>.
24542
     */
24543
    public resetAvailability_result(resetAvailability_result other) {
24544
      if (other.isSetCex()) {
24545
        this.cex = new InventoryServiceException(other.cex);
24546
      }
24547
    }
24548
 
24549
    public resetAvailability_result deepCopy() {
24550
      return new resetAvailability_result(this);
24551
    }
24552
 
24553
    @Override
24554
    public void clear() {
24555
      this.cex = null;
24556
    }
24557
 
24558
    public InventoryServiceException getCex() {
24559
      return this.cex;
24560
    }
24561
 
24562
    public void setCex(InventoryServiceException cex) {
24563
      this.cex = cex;
24564
    }
24565
 
24566
    public void unsetCex() {
24567
      this.cex = null;
24568
    }
24569
 
24570
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
24571
    public boolean isSetCex() {
24572
      return this.cex != null;
24573
    }
24574
 
24575
    public void setCexIsSet(boolean value) {
24576
      if (!value) {
24577
        this.cex = null;
24578
      }
24579
    }
24580
 
24581
    public void setFieldValue(_Fields field, Object value) {
24582
      switch (field) {
24583
      case CEX:
24584
        if (value == null) {
24585
          unsetCex();
24586
        } else {
24587
          setCex((InventoryServiceException)value);
24588
        }
24589
        break;
24590
 
24591
      }
24592
    }
24593
 
24594
    public Object getFieldValue(_Fields field) {
24595
      switch (field) {
24596
      case CEX:
24597
        return getCex();
24598
 
24599
      }
24600
      throw new IllegalStateException();
24601
    }
24602
 
24603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24604
    public boolean isSet(_Fields field) {
24605
      if (field == null) {
24606
        throw new IllegalArgumentException();
24607
      }
24608
 
24609
      switch (field) {
24610
      case CEX:
24611
        return isSetCex();
24612
      }
24613
      throw new IllegalStateException();
24614
    }
24615
 
24616
    @Override
24617
    public boolean equals(Object that) {
24618
      if (that == null)
24619
        return false;
24620
      if (that instanceof resetAvailability_result)
24621
        return this.equals((resetAvailability_result)that);
24622
      return false;
24623
    }
24624
 
24625
    public boolean equals(resetAvailability_result that) {
24626
      if (that == null)
24627
        return false;
24628
 
24629
      boolean this_present_cex = true && this.isSetCex();
24630
      boolean that_present_cex = true && that.isSetCex();
24631
      if (this_present_cex || that_present_cex) {
24632
        if (!(this_present_cex && that_present_cex))
24633
          return false;
24634
        if (!this.cex.equals(that.cex))
24635
          return false;
24636
      }
24637
 
24638
      return true;
24639
    }
24640
 
24641
    @Override
24642
    public int hashCode() {
24643
      return 0;
24644
    }
24645
 
24646
    public int compareTo(resetAvailability_result other) {
24647
      if (!getClass().equals(other.getClass())) {
24648
        return getClass().getName().compareTo(other.getClass().getName());
24649
      }
24650
 
24651
      int lastComparison = 0;
24652
      resetAvailability_result typedOther = (resetAvailability_result)other;
24653
 
24654
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
24655
      if (lastComparison != 0) {
24656
        return lastComparison;
24657
      }
24658
      if (isSetCex()) {
24659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
24660
        if (lastComparison != 0) {
24661
          return lastComparison;
24662
        }
24663
      }
24664
      return 0;
24665
    }
24666
 
24667
    public _Fields fieldForId(int fieldId) {
24668
      return _Fields.findByThriftId(fieldId);
24669
    }
24670
 
24671
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24672
      org.apache.thrift.protocol.TField field;
24673
      iprot.readStructBegin();
24674
      while (true)
24675
      {
24676
        field = iprot.readFieldBegin();
24677
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24678
          break;
24679
        }
24680
        switch (field.id) {
24681
          case 1: // CEX
24682
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24683
              this.cex = new InventoryServiceException();
24684
              this.cex.read(iprot);
24685
            } else { 
24686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24687
            }
24688
            break;
24689
          default:
24690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24691
        }
24692
        iprot.readFieldEnd();
24693
      }
24694
      iprot.readStructEnd();
24695
      validate();
24696
    }
24697
 
24698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24699
      oprot.writeStructBegin(STRUCT_DESC);
24700
 
24701
      if (this.isSetCex()) {
24702
        oprot.writeFieldBegin(CEX_FIELD_DESC);
24703
        this.cex.write(oprot);
24704
        oprot.writeFieldEnd();
24705
      }
24706
      oprot.writeFieldStop();
24707
      oprot.writeStructEnd();
24708
    }
24709
 
24710
    @Override
24711
    public String toString() {
24712
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
24713
      boolean first = true;
24714
 
24715
      sb.append("cex:");
24716
      if (this.cex == null) {
24717
        sb.append("null");
24718
      } else {
24719
        sb.append(this.cex);
24720
      }
24721
      first = false;
24722
      sb.append(")");
24723
      return sb.toString();
24724
    }
24725
 
24726
    public void validate() throws org.apache.thrift.TException {
24727
      // check for required fields
24728
    }
24729
 
24730
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24731
      try {
24732
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24733
      } catch (org.apache.thrift.TException te) {
24734
        throw new java.io.IOException(te);
24735
      }
24736
    }
24737
 
24738
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24739
      try {
24740
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24741
      } catch (org.apache.thrift.TException te) {
24742
        throw new java.io.IOException(te);
24743
      }
24744
    }
24745
 
24746
  }
24747
 
24748
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
24749
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
24750
 
24751
    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);
24752
 
24753
    private long warehouseId; // required
24754
 
24755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24756
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24757
      WAREHOUSE_ID((short)1, "warehouseId");
24758
 
24759
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24760
 
24761
      static {
24762
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24763
          byName.put(field.getFieldName(), field);
24764
        }
24765
      }
24766
 
24767
      /**
24768
       * Find the _Fields constant that matches fieldId, or null if its not found.
24769
       */
24770
      public static _Fields findByThriftId(int fieldId) {
24771
        switch(fieldId) {
24772
          case 1: // WAREHOUSE_ID
24773
            return WAREHOUSE_ID;
24774
          default:
24775
            return null;
24776
        }
24777
      }
24778
 
24779
      /**
24780
       * Find the _Fields constant that matches fieldId, throwing an exception
24781
       * if it is not found.
24782
       */
24783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24784
        _Fields fields = findByThriftId(fieldId);
24785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24786
        return fields;
24787
      }
24788
 
24789
      /**
24790
       * Find the _Fields constant that matches name, or null if its not found.
24791
       */
24792
      public static _Fields findByName(String name) {
24793
        return byName.get(name);
24794
      }
24795
 
24796
      private final short _thriftId;
24797
      private final String _fieldName;
24798
 
24799
      _Fields(short thriftId, String fieldName) {
24800
        _thriftId = thriftId;
24801
        _fieldName = fieldName;
24802
      }
24803
 
24804
      public short getThriftFieldId() {
24805
        return _thriftId;
24806
      }
24807
 
24808
      public String getFieldName() {
24809
        return _fieldName;
24810
      }
24811
    }
24812
 
24813
    // isset id assignments
24814
    private static final int __WAREHOUSEID_ISSET_ID = 0;
24815
    private BitSet __isset_bit_vector = new BitSet(1);
24816
 
24817
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24818
    static {
24819
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24820
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24821
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
24824
    }
24825
 
24826
    public resetAvailabilityForWarehouse_args() {
24827
    }
24828
 
24829
    public resetAvailabilityForWarehouse_args(
24830
      long warehouseId)
24831
    {
24832
      this();
24833
      this.warehouseId = warehouseId;
24834
      setWarehouseIdIsSet(true);
24835
    }
24836
 
24837
    /**
24838
     * Performs a deep copy on <i>other</i>.
24839
     */
24840
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
24841
      __isset_bit_vector.clear();
24842
      __isset_bit_vector.or(other.__isset_bit_vector);
24843
      this.warehouseId = other.warehouseId;
24844
    }
24845
 
24846
    public resetAvailabilityForWarehouse_args deepCopy() {
24847
      return new resetAvailabilityForWarehouse_args(this);
24848
    }
24849
 
24850
    @Override
24851
    public void clear() {
24852
      setWarehouseIdIsSet(false);
24853
      this.warehouseId = 0;
24854
    }
24855
 
24856
    public long getWarehouseId() {
24857
      return this.warehouseId;
24858
    }
24859
 
24860
    public void setWarehouseId(long warehouseId) {
24861
      this.warehouseId = warehouseId;
24862
      setWarehouseIdIsSet(true);
24863
    }
24864
 
24865
    public void unsetWarehouseId() {
24866
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24867
    }
24868
 
24869
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24870
    public boolean isSetWarehouseId() {
24871
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24872
    }
24873
 
24874
    public void setWarehouseIdIsSet(boolean value) {
24875
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24876
    }
24877
 
24878
    public void setFieldValue(_Fields field, Object value) {
24879
      switch (field) {
24880
      case WAREHOUSE_ID:
24881
        if (value == null) {
24882
          unsetWarehouseId();
24883
        } else {
24884
          setWarehouseId((Long)value);
24885
        }
24886
        break;
24887
 
24888
      }
24889
    }
24890
 
24891
    public Object getFieldValue(_Fields field) {
24892
      switch (field) {
24893
      case WAREHOUSE_ID:
24894
        return Long.valueOf(getWarehouseId());
24895
 
24896
      }
24897
      throw new IllegalStateException();
24898
    }
24899
 
24900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24901
    public boolean isSet(_Fields field) {
24902
      if (field == null) {
24903
        throw new IllegalArgumentException();
24904
      }
24905
 
24906
      switch (field) {
24907
      case WAREHOUSE_ID:
24908
        return isSetWarehouseId();
24909
      }
24910
      throw new IllegalStateException();
24911
    }
24912
 
24913
    @Override
24914
    public boolean equals(Object that) {
24915
      if (that == null)
24916
        return false;
24917
      if (that instanceof resetAvailabilityForWarehouse_args)
24918
        return this.equals((resetAvailabilityForWarehouse_args)that);
24919
      return false;
24920
    }
24921
 
24922
    public boolean equals(resetAvailabilityForWarehouse_args that) {
24923
      if (that == null)
24924
        return false;
24925
 
24926
      boolean this_present_warehouseId = true;
24927
      boolean that_present_warehouseId = true;
24928
      if (this_present_warehouseId || that_present_warehouseId) {
24929
        if (!(this_present_warehouseId && that_present_warehouseId))
24930
          return false;
24931
        if (this.warehouseId != that.warehouseId)
24932
          return false;
24933
      }
24934
 
24935
      return true;
24936
    }
24937
 
24938
    @Override
24939
    public int hashCode() {
24940
      return 0;
24941
    }
24942
 
24943
    public int compareTo(resetAvailabilityForWarehouse_args other) {
24944
      if (!getClass().equals(other.getClass())) {
24945
        return getClass().getName().compareTo(other.getClass().getName());
24946
      }
24947
 
24948
      int lastComparison = 0;
24949
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
24950
 
24951
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24952
      if (lastComparison != 0) {
24953
        return lastComparison;
24954
      }
24955
      if (isSetWarehouseId()) {
24956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24957
        if (lastComparison != 0) {
24958
          return lastComparison;
24959
        }
24960
      }
24961
      return 0;
24962
    }
24963
 
24964
    public _Fields fieldForId(int fieldId) {
24965
      return _Fields.findByThriftId(fieldId);
24966
    }
24967
 
24968
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24969
      org.apache.thrift.protocol.TField field;
24970
      iprot.readStructBegin();
24971
      while (true)
24972
      {
24973
        field = iprot.readFieldBegin();
24974
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24975
          break;
24976
        }
24977
        switch (field.id) {
24978
          case 1: // WAREHOUSE_ID
24979
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24980
              this.warehouseId = iprot.readI64();
24981
              setWarehouseIdIsSet(true);
24982
            } else { 
24983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24984
            }
24985
            break;
24986
          default:
24987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24988
        }
24989
        iprot.readFieldEnd();
24990
      }
24991
      iprot.readStructEnd();
24992
      validate();
24993
    }
24994
 
24995
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24996
      validate();
24997
 
24998
      oprot.writeStructBegin(STRUCT_DESC);
24999
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25000
      oprot.writeI64(this.warehouseId);
25001
      oprot.writeFieldEnd();
25002
      oprot.writeFieldStop();
25003
      oprot.writeStructEnd();
25004
    }
25005
 
25006
    @Override
25007
    public String toString() {
25008
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
25009
      boolean first = true;
25010
 
25011
      sb.append("warehouseId:");
25012
      sb.append(this.warehouseId);
25013
      first = false;
25014
      sb.append(")");
25015
      return sb.toString();
25016
    }
25017
 
25018
    public void validate() throws org.apache.thrift.TException {
25019
      // check for required fields
25020
    }
25021
 
25022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25023
      try {
25024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25025
      } catch (org.apache.thrift.TException te) {
25026
        throw new java.io.IOException(te);
25027
      }
25028
    }
25029
 
25030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25031
      try {
25032
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25033
        __isset_bit_vector = new BitSet(1);
25034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25035
      } catch (org.apache.thrift.TException te) {
25036
        throw new java.io.IOException(te);
25037
      }
25038
    }
25039
 
25040
  }
25041
 
25042
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
25043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
25044
 
25045
    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);
25046
 
25047
    private InventoryServiceException cex; // required
25048
 
25049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25051
      CEX((short)1, "cex");
25052
 
25053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25054
 
25055
      static {
25056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25057
          byName.put(field.getFieldName(), field);
25058
        }
25059
      }
25060
 
25061
      /**
25062
       * Find the _Fields constant that matches fieldId, or null if its not found.
25063
       */
25064
      public static _Fields findByThriftId(int fieldId) {
25065
        switch(fieldId) {
25066
          case 1: // CEX
25067
            return CEX;
25068
          default:
25069
            return null;
25070
        }
25071
      }
25072
 
25073
      /**
25074
       * Find the _Fields constant that matches fieldId, throwing an exception
25075
       * if it is not found.
25076
       */
25077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25078
        _Fields fields = findByThriftId(fieldId);
25079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25080
        return fields;
25081
      }
25082
 
25083
      /**
25084
       * Find the _Fields constant that matches name, or null if its not found.
25085
       */
25086
      public static _Fields findByName(String name) {
25087
        return byName.get(name);
25088
      }
25089
 
25090
      private final short _thriftId;
25091
      private final String _fieldName;
25092
 
25093
      _Fields(short thriftId, String fieldName) {
25094
        _thriftId = thriftId;
25095
        _fieldName = fieldName;
25096
      }
25097
 
25098
      public short getThriftFieldId() {
25099
        return _thriftId;
25100
      }
25101
 
25102
      public String getFieldName() {
25103
        return _fieldName;
25104
      }
25105
    }
25106
 
25107
    // isset id assignments
25108
 
25109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25110
    static {
25111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25112
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
25116
    }
25117
 
25118
    public resetAvailabilityForWarehouse_result() {
25119
    }
25120
 
25121
    public resetAvailabilityForWarehouse_result(
25122
      InventoryServiceException cex)
25123
    {
25124
      this();
25125
      this.cex = cex;
25126
    }
25127
 
25128
    /**
25129
     * Performs a deep copy on <i>other</i>.
25130
     */
25131
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
25132
      if (other.isSetCex()) {
25133
        this.cex = new InventoryServiceException(other.cex);
25134
      }
25135
    }
25136
 
25137
    public resetAvailabilityForWarehouse_result deepCopy() {
25138
      return new resetAvailabilityForWarehouse_result(this);
25139
    }
25140
 
25141
    @Override
25142
    public void clear() {
25143
      this.cex = null;
25144
    }
25145
 
25146
    public InventoryServiceException getCex() {
25147
      return this.cex;
25148
    }
25149
 
25150
    public void setCex(InventoryServiceException cex) {
25151
      this.cex = cex;
25152
    }
25153
 
25154
    public void unsetCex() {
25155
      this.cex = null;
25156
    }
25157
 
25158
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
25159
    public boolean isSetCex() {
25160
      return this.cex != null;
25161
    }
25162
 
25163
    public void setCexIsSet(boolean value) {
25164
      if (!value) {
25165
        this.cex = null;
25166
      }
25167
    }
25168
 
25169
    public void setFieldValue(_Fields field, Object value) {
25170
      switch (field) {
25171
      case CEX:
25172
        if (value == null) {
25173
          unsetCex();
25174
        } else {
25175
          setCex((InventoryServiceException)value);
25176
        }
25177
        break;
25178
 
25179
      }
25180
    }
25181
 
25182
    public Object getFieldValue(_Fields field) {
25183
      switch (field) {
25184
      case CEX:
25185
        return getCex();
25186
 
25187
      }
25188
      throw new IllegalStateException();
25189
    }
25190
 
25191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25192
    public boolean isSet(_Fields field) {
25193
      if (field == null) {
25194
        throw new IllegalArgumentException();
25195
      }
25196
 
25197
      switch (field) {
25198
      case CEX:
25199
        return isSetCex();
25200
      }
25201
      throw new IllegalStateException();
25202
    }
25203
 
25204
    @Override
25205
    public boolean equals(Object that) {
25206
      if (that == null)
25207
        return false;
25208
      if (that instanceof resetAvailabilityForWarehouse_result)
25209
        return this.equals((resetAvailabilityForWarehouse_result)that);
25210
      return false;
25211
    }
25212
 
25213
    public boolean equals(resetAvailabilityForWarehouse_result that) {
25214
      if (that == null)
25215
        return false;
25216
 
25217
      boolean this_present_cex = true && this.isSetCex();
25218
      boolean that_present_cex = true && that.isSetCex();
25219
      if (this_present_cex || that_present_cex) {
25220
        if (!(this_present_cex && that_present_cex))
25221
          return false;
25222
        if (!this.cex.equals(that.cex))
25223
          return false;
25224
      }
25225
 
25226
      return true;
25227
    }
25228
 
25229
    @Override
25230
    public int hashCode() {
25231
      return 0;
25232
    }
25233
 
25234
    public int compareTo(resetAvailabilityForWarehouse_result other) {
25235
      if (!getClass().equals(other.getClass())) {
25236
        return getClass().getName().compareTo(other.getClass().getName());
25237
      }
25238
 
25239
      int lastComparison = 0;
25240
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
25241
 
25242
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25243
      if (lastComparison != 0) {
25244
        return lastComparison;
25245
      }
25246
      if (isSetCex()) {
25247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25248
        if (lastComparison != 0) {
25249
          return lastComparison;
25250
        }
25251
      }
25252
      return 0;
25253
    }
25254
 
25255
    public _Fields fieldForId(int fieldId) {
25256
      return _Fields.findByThriftId(fieldId);
25257
    }
25258
 
25259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25260
      org.apache.thrift.protocol.TField field;
25261
      iprot.readStructBegin();
25262
      while (true)
25263
      {
25264
        field = iprot.readFieldBegin();
25265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25266
          break;
25267
        }
25268
        switch (field.id) {
25269
          case 1: // CEX
25270
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25271
              this.cex = new InventoryServiceException();
25272
              this.cex.read(iprot);
25273
            } else { 
25274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25275
            }
25276
            break;
25277
          default:
25278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25279
        }
25280
        iprot.readFieldEnd();
25281
      }
25282
      iprot.readStructEnd();
25283
      validate();
25284
    }
25285
 
25286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25287
      oprot.writeStructBegin(STRUCT_DESC);
25288
 
25289
      if (this.isSetCex()) {
25290
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25291
        this.cex.write(oprot);
25292
        oprot.writeFieldEnd();
25293
      }
25294
      oprot.writeFieldStop();
25295
      oprot.writeStructEnd();
25296
    }
25297
 
25298
    @Override
25299
    public String toString() {
25300
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
25301
      boolean first = true;
25302
 
25303
      sb.append("cex:");
25304
      if (this.cex == null) {
25305
        sb.append("null");
25306
      } else {
25307
        sb.append(this.cex);
25308
      }
25309
      first = false;
25310
      sb.append(")");
25311
      return sb.toString();
25312
    }
25313
 
25314
    public void validate() throws org.apache.thrift.TException {
25315
      // check for required fields
25316
    }
25317
 
25318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25319
      try {
25320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25321
      } catch (org.apache.thrift.TException te) {
25322
        throw new java.io.IOException(te);
25323
      }
25324
    }
25325
 
25326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25327
      try {
25328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25329
      } catch (org.apache.thrift.TException te) {
25330
        throw new java.io.IOException(te);
25331
      }
25332
    }
25333
 
25334
  }
25335
 
25336
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
25337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
25338
 
25339
    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);
25340
 
25341
    private long warehouseId; // required
25342
 
25343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25345
      WAREHOUSE_ID((short)1, "warehouseId");
25346
 
25347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25348
 
25349
      static {
25350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25351
          byName.put(field.getFieldName(), field);
25352
        }
25353
      }
25354
 
25355
      /**
25356
       * Find the _Fields constant that matches fieldId, or null if its not found.
25357
       */
25358
      public static _Fields findByThriftId(int fieldId) {
25359
        switch(fieldId) {
25360
          case 1: // WAREHOUSE_ID
25361
            return WAREHOUSE_ID;
25362
          default:
25363
            return null;
25364
        }
25365
      }
25366
 
25367
      /**
25368
       * Find the _Fields constant that matches fieldId, throwing an exception
25369
       * if it is not found.
25370
       */
25371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25372
        _Fields fields = findByThriftId(fieldId);
25373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25374
        return fields;
25375
      }
25376
 
25377
      /**
25378
       * Find the _Fields constant that matches name, or null if its not found.
25379
       */
25380
      public static _Fields findByName(String name) {
25381
        return byName.get(name);
25382
      }
25383
 
25384
      private final short _thriftId;
25385
      private final String _fieldName;
25386
 
25387
      _Fields(short thriftId, String fieldName) {
25388
        _thriftId = thriftId;
25389
        _fieldName = fieldName;
25390
      }
25391
 
25392
      public short getThriftFieldId() {
25393
        return _thriftId;
25394
      }
25395
 
25396
      public String getFieldName() {
25397
        return _fieldName;
25398
      }
25399
    }
25400
 
25401
    // isset id assignments
25402
    private static final int __WAREHOUSEID_ISSET_ID = 0;
25403
    private BitSet __isset_bit_vector = new BitSet(1);
25404
 
25405
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25406
    static {
25407
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25408
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25410
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25411
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
25412
    }
25413
 
25414
    public getItemKeysToBeProcessed_args() {
25415
    }
25416
 
25417
    public getItemKeysToBeProcessed_args(
25418
      long warehouseId)
25419
    {
25420
      this();
25421
      this.warehouseId = warehouseId;
25422
      setWarehouseIdIsSet(true);
25423
    }
25424
 
25425
    /**
25426
     * Performs a deep copy on <i>other</i>.
25427
     */
25428
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
25429
      __isset_bit_vector.clear();
25430
      __isset_bit_vector.or(other.__isset_bit_vector);
25431
      this.warehouseId = other.warehouseId;
25432
    }
25433
 
25434
    public getItemKeysToBeProcessed_args deepCopy() {
25435
      return new getItemKeysToBeProcessed_args(this);
25436
    }
25437
 
25438
    @Override
25439
    public void clear() {
25440
      setWarehouseIdIsSet(false);
25441
      this.warehouseId = 0;
25442
    }
25443
 
25444
    public long getWarehouseId() {
25445
      return this.warehouseId;
25446
    }
25447
 
25448
    public void setWarehouseId(long warehouseId) {
25449
      this.warehouseId = warehouseId;
25450
      setWarehouseIdIsSet(true);
25451
    }
25452
 
25453
    public void unsetWarehouseId() {
25454
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25455
    }
25456
 
25457
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25458
    public boolean isSetWarehouseId() {
25459
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25460
    }
25461
 
25462
    public void setWarehouseIdIsSet(boolean value) {
25463
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25464
    }
25465
 
25466
    public void setFieldValue(_Fields field, Object value) {
25467
      switch (field) {
25468
      case WAREHOUSE_ID:
25469
        if (value == null) {
25470
          unsetWarehouseId();
25471
        } else {
25472
          setWarehouseId((Long)value);
25473
        }
25474
        break;
25475
 
25476
      }
25477
    }
25478
 
25479
    public Object getFieldValue(_Fields field) {
25480
      switch (field) {
25481
      case WAREHOUSE_ID:
25482
        return Long.valueOf(getWarehouseId());
25483
 
25484
      }
25485
      throw new IllegalStateException();
25486
    }
25487
 
25488
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25489
    public boolean isSet(_Fields field) {
25490
      if (field == null) {
25491
        throw new IllegalArgumentException();
25492
      }
25493
 
25494
      switch (field) {
25495
      case WAREHOUSE_ID:
25496
        return isSetWarehouseId();
25497
      }
25498
      throw new IllegalStateException();
25499
    }
25500
 
25501
    @Override
25502
    public boolean equals(Object that) {
25503
      if (that == null)
25504
        return false;
25505
      if (that instanceof getItemKeysToBeProcessed_args)
25506
        return this.equals((getItemKeysToBeProcessed_args)that);
25507
      return false;
25508
    }
25509
 
25510
    public boolean equals(getItemKeysToBeProcessed_args that) {
25511
      if (that == null)
25512
        return false;
25513
 
25514
      boolean this_present_warehouseId = true;
25515
      boolean that_present_warehouseId = true;
25516
      if (this_present_warehouseId || that_present_warehouseId) {
25517
        if (!(this_present_warehouseId && that_present_warehouseId))
25518
          return false;
25519
        if (this.warehouseId != that.warehouseId)
25520
          return false;
25521
      }
25522
 
25523
      return true;
25524
    }
25525
 
25526
    @Override
25527
    public int hashCode() {
25528
      return 0;
25529
    }
25530
 
25531
    public int compareTo(getItemKeysToBeProcessed_args other) {
25532
      if (!getClass().equals(other.getClass())) {
25533
        return getClass().getName().compareTo(other.getClass().getName());
25534
      }
25535
 
25536
      int lastComparison = 0;
25537
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
25538
 
25539
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25540
      if (lastComparison != 0) {
25541
        return lastComparison;
25542
      }
25543
      if (isSetWarehouseId()) {
25544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25545
        if (lastComparison != 0) {
25546
          return lastComparison;
25547
        }
25548
      }
25549
      return 0;
25550
    }
25551
 
25552
    public _Fields fieldForId(int fieldId) {
25553
      return _Fields.findByThriftId(fieldId);
25554
    }
25555
 
25556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25557
      org.apache.thrift.protocol.TField field;
25558
      iprot.readStructBegin();
25559
      while (true)
25560
      {
25561
        field = iprot.readFieldBegin();
25562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25563
          break;
25564
        }
25565
        switch (field.id) {
25566
          case 1: // WAREHOUSE_ID
25567
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25568
              this.warehouseId = iprot.readI64();
25569
              setWarehouseIdIsSet(true);
25570
            } else { 
25571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25572
            }
25573
            break;
25574
          default:
25575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25576
        }
25577
        iprot.readFieldEnd();
25578
      }
25579
      iprot.readStructEnd();
25580
      validate();
25581
    }
25582
 
25583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25584
      validate();
25585
 
25586
      oprot.writeStructBegin(STRUCT_DESC);
25587
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25588
      oprot.writeI64(this.warehouseId);
25589
      oprot.writeFieldEnd();
25590
      oprot.writeFieldStop();
25591
      oprot.writeStructEnd();
25592
    }
25593
 
25594
    @Override
25595
    public String toString() {
25596
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
25597
      boolean first = true;
25598
 
25599
      sb.append("warehouseId:");
25600
      sb.append(this.warehouseId);
25601
      first = false;
25602
      sb.append(")");
25603
      return sb.toString();
25604
    }
25605
 
25606
    public void validate() throws org.apache.thrift.TException {
25607
      // check for required fields
25608
    }
25609
 
25610
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25611
      try {
25612
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25613
      } catch (org.apache.thrift.TException te) {
25614
        throw new java.io.IOException(te);
25615
      }
25616
    }
25617
 
25618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25619
      try {
25620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25621
      } catch (org.apache.thrift.TException te) {
25622
        throw new java.io.IOException(te);
25623
      }
25624
    }
25625
 
25626
  }
25627
 
25628
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
25629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
25630
 
25631
    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);
25632
 
25633
    private List<String> success; // required
25634
 
25635
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25636
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25637
      SUCCESS((short)0, "success");
25638
 
25639
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25640
 
25641
      static {
25642
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25643
          byName.put(field.getFieldName(), field);
25644
        }
25645
      }
25646
 
25647
      /**
25648
       * Find the _Fields constant that matches fieldId, or null if its not found.
25649
       */
25650
      public static _Fields findByThriftId(int fieldId) {
25651
        switch(fieldId) {
25652
          case 0: // SUCCESS
25653
            return SUCCESS;
25654
          default:
25655
            return null;
25656
        }
25657
      }
25658
 
25659
      /**
25660
       * Find the _Fields constant that matches fieldId, throwing an exception
25661
       * if it is not found.
25662
       */
25663
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25664
        _Fields fields = findByThriftId(fieldId);
25665
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25666
        return fields;
25667
      }
25668
 
25669
      /**
25670
       * Find the _Fields constant that matches name, or null if its not found.
25671
       */
25672
      public static _Fields findByName(String name) {
25673
        return byName.get(name);
25674
      }
25675
 
25676
      private final short _thriftId;
25677
      private final String _fieldName;
25678
 
25679
      _Fields(short thriftId, String fieldName) {
25680
        _thriftId = thriftId;
25681
        _fieldName = fieldName;
25682
      }
25683
 
25684
      public short getThriftFieldId() {
25685
        return _thriftId;
25686
      }
25687
 
25688
      public String getFieldName() {
25689
        return _fieldName;
25690
      }
25691
    }
25692
 
25693
    // isset id assignments
25694
 
25695
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25696
    static {
25697
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25698
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25699
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25700
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
25701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
25703
    }
25704
 
25705
    public getItemKeysToBeProcessed_result() {
25706
    }
25707
 
25708
    public getItemKeysToBeProcessed_result(
25709
      List<String> success)
25710
    {
25711
      this();
25712
      this.success = success;
25713
    }
25714
 
25715
    /**
25716
     * Performs a deep copy on <i>other</i>.
25717
     */
25718
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
25719
      if (other.isSetSuccess()) {
25720
        List<String> __this__success = new ArrayList<String>();
25721
        for (String other_element : other.success) {
25722
          __this__success.add(other_element);
25723
        }
25724
        this.success = __this__success;
25725
      }
25726
    }
25727
 
25728
    public getItemKeysToBeProcessed_result deepCopy() {
25729
      return new getItemKeysToBeProcessed_result(this);
25730
    }
25731
 
25732
    @Override
25733
    public void clear() {
25734
      this.success = null;
25735
    }
25736
 
25737
    public int getSuccessSize() {
25738
      return (this.success == null) ? 0 : this.success.size();
25739
    }
25740
 
25741
    public java.util.Iterator<String> getSuccessIterator() {
25742
      return (this.success == null) ? null : this.success.iterator();
25743
    }
25744
 
25745
    public void addToSuccess(String elem) {
25746
      if (this.success == null) {
25747
        this.success = new ArrayList<String>();
25748
      }
25749
      this.success.add(elem);
25750
    }
25751
 
25752
    public List<String> getSuccess() {
25753
      return this.success;
25754
    }
25755
 
25756
    public void setSuccess(List<String> success) {
25757
      this.success = success;
25758
    }
25759
 
25760
    public void unsetSuccess() {
25761
      this.success = null;
25762
    }
25763
 
25764
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25765
    public boolean isSetSuccess() {
25766
      return this.success != null;
25767
    }
25768
 
25769
    public void setSuccessIsSet(boolean value) {
25770
      if (!value) {
25771
        this.success = null;
25772
      }
25773
    }
25774
 
25775
    public void setFieldValue(_Fields field, Object value) {
25776
      switch (field) {
25777
      case SUCCESS:
25778
        if (value == null) {
25779
          unsetSuccess();
25780
        } else {
25781
          setSuccess((List<String>)value);
25782
        }
25783
        break;
25784
 
25785
      }
25786
    }
25787
 
25788
    public Object getFieldValue(_Fields field) {
25789
      switch (field) {
25790
      case SUCCESS:
25791
        return getSuccess();
25792
 
25793
      }
25794
      throw new IllegalStateException();
25795
    }
25796
 
25797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25798
    public boolean isSet(_Fields field) {
25799
      if (field == null) {
25800
        throw new IllegalArgumentException();
25801
      }
25802
 
25803
      switch (field) {
25804
      case SUCCESS:
25805
        return isSetSuccess();
25806
      }
25807
      throw new IllegalStateException();
25808
    }
25809
 
25810
    @Override
25811
    public boolean equals(Object that) {
25812
      if (that == null)
25813
        return false;
25814
      if (that instanceof getItemKeysToBeProcessed_result)
25815
        return this.equals((getItemKeysToBeProcessed_result)that);
25816
      return false;
25817
    }
25818
 
25819
    public boolean equals(getItemKeysToBeProcessed_result that) {
25820
      if (that == null)
25821
        return false;
25822
 
25823
      boolean this_present_success = true && this.isSetSuccess();
25824
      boolean that_present_success = true && that.isSetSuccess();
25825
      if (this_present_success || that_present_success) {
25826
        if (!(this_present_success && that_present_success))
25827
          return false;
25828
        if (!this.success.equals(that.success))
25829
          return false;
25830
      }
25831
 
25832
      return true;
25833
    }
25834
 
25835
    @Override
25836
    public int hashCode() {
25837
      return 0;
25838
    }
25839
 
25840
    public int compareTo(getItemKeysToBeProcessed_result other) {
25841
      if (!getClass().equals(other.getClass())) {
25842
        return getClass().getName().compareTo(other.getClass().getName());
25843
      }
25844
 
25845
      int lastComparison = 0;
25846
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
25847
 
25848
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25849
      if (lastComparison != 0) {
25850
        return lastComparison;
25851
      }
25852
      if (isSetSuccess()) {
25853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25854
        if (lastComparison != 0) {
25855
          return lastComparison;
25856
        }
25857
      }
25858
      return 0;
25859
    }
25860
 
25861
    public _Fields fieldForId(int fieldId) {
25862
      return _Fields.findByThriftId(fieldId);
25863
    }
25864
 
25865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25866
      org.apache.thrift.protocol.TField field;
25867
      iprot.readStructBegin();
25868
      while (true)
25869
      {
25870
        field = iprot.readFieldBegin();
25871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25872
          break;
25873
        }
25874
        switch (field.id) {
25875
          case 0: // SUCCESS
25876
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25877
              {
8182 amar.kumar 25878
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
25879
                this.success = new ArrayList<String>(_list57.size);
25880
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
5945 mandeep.dh 25881
                {
8182 amar.kumar 25882
                  String _elem59; // required
25883
                  _elem59 = iprot.readString();
25884
                  this.success.add(_elem59);
5945 mandeep.dh 25885
                }
25886
                iprot.readListEnd();
25887
              }
25888
            } else { 
25889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25890
            }
25891
            break;
25892
          default:
25893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25894
        }
25895
        iprot.readFieldEnd();
25896
      }
25897
      iprot.readStructEnd();
25898
      validate();
25899
    }
25900
 
25901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25902
      oprot.writeStructBegin(STRUCT_DESC);
25903
 
25904
      if (this.isSetSuccess()) {
25905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25906
        {
25907
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
8182 amar.kumar 25908
          for (String _iter60 : this.success)
5945 mandeep.dh 25909
          {
8182 amar.kumar 25910
            oprot.writeString(_iter60);
5945 mandeep.dh 25911
          }
25912
          oprot.writeListEnd();
25913
        }
25914
        oprot.writeFieldEnd();
25915
      }
25916
      oprot.writeFieldStop();
25917
      oprot.writeStructEnd();
25918
    }
25919
 
25920
    @Override
25921
    public String toString() {
25922
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
25923
      boolean first = true;
25924
 
25925
      sb.append("success:");
25926
      if (this.success == null) {
25927
        sb.append("null");
25928
      } else {
25929
        sb.append(this.success);
25930
      }
25931
      first = false;
25932
      sb.append(")");
25933
      return sb.toString();
25934
    }
25935
 
25936
    public void validate() throws org.apache.thrift.TException {
25937
      // check for required fields
25938
    }
25939
 
25940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25941
      try {
25942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25943
      } catch (org.apache.thrift.TException te) {
25944
        throw new java.io.IOException(te);
25945
      }
25946
    }
25947
 
25948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25949
      try {
25950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25951
      } catch (org.apache.thrift.TException te) {
25952
        throw new java.io.IOException(te);
25953
      }
25954
    }
25955
 
25956
  }
25957
 
25958
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
25959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
25960
 
25961
    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);
25962
    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);
25963
 
25964
    private String itemKey; // required
25965
    private long warehouseId; // required
25966
 
25967
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25968
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25969
      ITEM_KEY((short)1, "itemKey"),
25970
      WAREHOUSE_ID((short)2, "warehouseId");
25971
 
25972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25973
 
25974
      static {
25975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25976
          byName.put(field.getFieldName(), field);
25977
        }
25978
      }
25979
 
25980
      /**
25981
       * Find the _Fields constant that matches fieldId, or null if its not found.
25982
       */
25983
      public static _Fields findByThriftId(int fieldId) {
25984
        switch(fieldId) {
25985
          case 1: // ITEM_KEY
25986
            return ITEM_KEY;
25987
          case 2: // WAREHOUSE_ID
25988
            return WAREHOUSE_ID;
25989
          default:
25990
            return null;
25991
        }
25992
      }
25993
 
25994
      /**
25995
       * Find the _Fields constant that matches fieldId, throwing an exception
25996
       * if it is not found.
25997
       */
25998
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25999
        _Fields fields = findByThriftId(fieldId);
26000
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26001
        return fields;
26002
      }
26003
 
26004
      /**
26005
       * Find the _Fields constant that matches name, or null if its not found.
26006
       */
26007
      public static _Fields findByName(String name) {
26008
        return byName.get(name);
26009
      }
26010
 
26011
      private final short _thriftId;
26012
      private final String _fieldName;
26013
 
26014
      _Fields(short thriftId, String fieldName) {
26015
        _thriftId = thriftId;
26016
        _fieldName = fieldName;
26017
      }
26018
 
26019
      public short getThriftFieldId() {
26020
        return _thriftId;
26021
      }
26022
 
26023
      public String getFieldName() {
26024
        return _fieldName;
26025
      }
26026
    }
26027
 
26028
    // isset id assignments
26029
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26030
    private BitSet __isset_bit_vector = new BitSet(1);
26031
 
26032
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26033
    static {
26034
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26035
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26037
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26038
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26039
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26040
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
26041
    }
26042
 
26043
    public markMissedInventoryUpdatesAsProcessed_args() {
26044
    }
26045
 
26046
    public markMissedInventoryUpdatesAsProcessed_args(
26047
      String itemKey,
26048
      long warehouseId)
26049
    {
26050
      this();
26051
      this.itemKey = itemKey;
26052
      this.warehouseId = warehouseId;
26053
      setWarehouseIdIsSet(true);
26054
    }
26055
 
26056
    /**
26057
     * Performs a deep copy on <i>other</i>.
26058
     */
26059
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
26060
      __isset_bit_vector.clear();
26061
      __isset_bit_vector.or(other.__isset_bit_vector);
26062
      if (other.isSetItemKey()) {
26063
        this.itemKey = other.itemKey;
26064
      }
26065
      this.warehouseId = other.warehouseId;
26066
    }
26067
 
26068
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
26069
      return new markMissedInventoryUpdatesAsProcessed_args(this);
26070
    }
26071
 
26072
    @Override
26073
    public void clear() {
26074
      this.itemKey = null;
26075
      setWarehouseIdIsSet(false);
26076
      this.warehouseId = 0;
26077
    }
26078
 
26079
    public String getItemKey() {
26080
      return this.itemKey;
26081
    }
26082
 
26083
    public void setItemKey(String itemKey) {
26084
      this.itemKey = itemKey;
26085
    }
26086
 
26087
    public void unsetItemKey() {
26088
      this.itemKey = null;
26089
    }
26090
 
26091
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
26092
    public boolean isSetItemKey() {
26093
      return this.itemKey != null;
26094
    }
26095
 
26096
    public void setItemKeyIsSet(boolean value) {
26097
      if (!value) {
26098
        this.itemKey = null;
26099
      }
26100
    }
26101
 
26102
    public long getWarehouseId() {
26103
      return this.warehouseId;
26104
    }
26105
 
26106
    public void setWarehouseId(long warehouseId) {
26107
      this.warehouseId = warehouseId;
26108
      setWarehouseIdIsSet(true);
26109
    }
26110
 
26111
    public void unsetWarehouseId() {
26112
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26113
    }
26114
 
26115
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26116
    public boolean isSetWarehouseId() {
26117
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26118
    }
26119
 
26120
    public void setWarehouseIdIsSet(boolean value) {
26121
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26122
    }
26123
 
26124
    public void setFieldValue(_Fields field, Object value) {
26125
      switch (field) {
26126
      case ITEM_KEY:
26127
        if (value == null) {
26128
          unsetItemKey();
26129
        } else {
26130
          setItemKey((String)value);
26131
        }
26132
        break;
26133
 
26134
      case WAREHOUSE_ID:
26135
        if (value == null) {
26136
          unsetWarehouseId();
26137
        } else {
26138
          setWarehouseId((Long)value);
26139
        }
26140
        break;
26141
 
26142
      }
26143
    }
26144
 
26145
    public Object getFieldValue(_Fields field) {
26146
      switch (field) {
26147
      case ITEM_KEY:
26148
        return getItemKey();
26149
 
26150
      case WAREHOUSE_ID:
26151
        return Long.valueOf(getWarehouseId());
26152
 
26153
      }
26154
      throw new IllegalStateException();
26155
    }
26156
 
26157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26158
    public boolean isSet(_Fields field) {
26159
      if (field == null) {
26160
        throw new IllegalArgumentException();
26161
      }
26162
 
26163
      switch (field) {
26164
      case ITEM_KEY:
26165
        return isSetItemKey();
26166
      case WAREHOUSE_ID:
26167
        return isSetWarehouseId();
26168
      }
26169
      throw new IllegalStateException();
26170
    }
26171
 
26172
    @Override
26173
    public boolean equals(Object that) {
26174
      if (that == null)
26175
        return false;
26176
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
26177
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
26178
      return false;
26179
    }
26180
 
26181
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
26182
      if (that == null)
26183
        return false;
26184
 
26185
      boolean this_present_itemKey = true && this.isSetItemKey();
26186
      boolean that_present_itemKey = true && that.isSetItemKey();
26187
      if (this_present_itemKey || that_present_itemKey) {
26188
        if (!(this_present_itemKey && that_present_itemKey))
26189
          return false;
26190
        if (!this.itemKey.equals(that.itemKey))
26191
          return false;
26192
      }
26193
 
26194
      boolean this_present_warehouseId = true;
26195
      boolean that_present_warehouseId = true;
26196
      if (this_present_warehouseId || that_present_warehouseId) {
26197
        if (!(this_present_warehouseId && that_present_warehouseId))
26198
          return false;
26199
        if (this.warehouseId != that.warehouseId)
26200
          return false;
26201
      }
26202
 
26203
      return true;
26204
    }
26205
 
26206
    @Override
26207
    public int hashCode() {
26208
      return 0;
26209
    }
26210
 
26211
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
26212
      if (!getClass().equals(other.getClass())) {
26213
        return getClass().getName().compareTo(other.getClass().getName());
26214
      }
26215
 
26216
      int lastComparison = 0;
26217
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
26218
 
26219
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
26220
      if (lastComparison != 0) {
26221
        return lastComparison;
26222
      }
26223
      if (isSetItemKey()) {
26224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
26225
        if (lastComparison != 0) {
26226
          return lastComparison;
26227
        }
26228
      }
26229
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26230
      if (lastComparison != 0) {
26231
        return lastComparison;
26232
      }
26233
      if (isSetWarehouseId()) {
26234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26235
        if (lastComparison != 0) {
26236
          return lastComparison;
26237
        }
26238
      }
26239
      return 0;
26240
    }
26241
 
26242
    public _Fields fieldForId(int fieldId) {
26243
      return _Fields.findByThriftId(fieldId);
26244
    }
26245
 
26246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26247
      org.apache.thrift.protocol.TField field;
26248
      iprot.readStructBegin();
26249
      while (true)
26250
      {
26251
        field = iprot.readFieldBegin();
26252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26253
          break;
26254
        }
26255
        switch (field.id) {
26256
          case 1: // ITEM_KEY
26257
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26258
              this.itemKey = iprot.readString();
26259
            } else { 
26260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26261
            }
26262
            break;
26263
          case 2: // WAREHOUSE_ID
26264
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26265
              this.warehouseId = iprot.readI64();
26266
              setWarehouseIdIsSet(true);
26267
            } else { 
26268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26269
            }
26270
            break;
26271
          default:
26272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26273
        }
26274
        iprot.readFieldEnd();
26275
      }
26276
      iprot.readStructEnd();
26277
      validate();
26278
    }
26279
 
26280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26281
      validate();
26282
 
26283
      oprot.writeStructBegin(STRUCT_DESC);
26284
      if (this.itemKey != null) {
26285
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
26286
        oprot.writeString(this.itemKey);
26287
        oprot.writeFieldEnd();
26288
      }
26289
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26290
      oprot.writeI64(this.warehouseId);
26291
      oprot.writeFieldEnd();
26292
      oprot.writeFieldStop();
26293
      oprot.writeStructEnd();
26294
    }
26295
 
26296
    @Override
26297
    public String toString() {
26298
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
26299
      boolean first = true;
26300
 
26301
      sb.append("itemKey:");
26302
      if (this.itemKey == null) {
26303
        sb.append("null");
26304
      } else {
26305
        sb.append(this.itemKey);
26306
      }
26307
      first = false;
26308
      if (!first) sb.append(", ");
26309
      sb.append("warehouseId:");
26310
      sb.append(this.warehouseId);
26311
      first = false;
26312
      sb.append(")");
26313
      return sb.toString();
26314
    }
26315
 
26316
    public void validate() throws org.apache.thrift.TException {
26317
      // check for required fields
26318
    }
26319
 
26320
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26321
      try {
26322
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26323
      } catch (org.apache.thrift.TException te) {
26324
        throw new java.io.IOException(te);
26325
      }
26326
    }
26327
 
26328
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26329
      try {
26330
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26331
      } catch (org.apache.thrift.TException te) {
26332
        throw new java.io.IOException(te);
26333
      }
26334
    }
26335
 
26336
  }
26337
 
26338
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
26339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
26340
 
26341
 
26342
 
26343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26345
;
26346
 
26347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26348
 
26349
      static {
26350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26351
          byName.put(field.getFieldName(), field);
26352
        }
26353
      }
26354
 
26355
      /**
26356
       * Find the _Fields constant that matches fieldId, or null if its not found.
26357
       */
26358
      public static _Fields findByThriftId(int fieldId) {
26359
        switch(fieldId) {
26360
          default:
26361
            return null;
26362
        }
26363
      }
26364
 
26365
      /**
26366
       * Find the _Fields constant that matches fieldId, throwing an exception
26367
       * if it is not found.
26368
       */
26369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26370
        _Fields fields = findByThriftId(fieldId);
26371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26372
        return fields;
26373
      }
26374
 
26375
      /**
26376
       * Find the _Fields constant that matches name, or null if its not found.
26377
       */
26378
      public static _Fields findByName(String name) {
26379
        return byName.get(name);
26380
      }
26381
 
26382
      private final short _thriftId;
26383
      private final String _fieldName;
26384
 
26385
      _Fields(short thriftId, String fieldName) {
26386
        _thriftId = thriftId;
26387
        _fieldName = fieldName;
26388
      }
26389
 
26390
      public short getThriftFieldId() {
26391
        return _thriftId;
26392
      }
26393
 
26394
      public String getFieldName() {
26395
        return _fieldName;
26396
      }
26397
    }
26398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26399
    static {
26400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
26403
    }
26404
 
26405
    public markMissedInventoryUpdatesAsProcessed_result() {
26406
    }
26407
 
26408
    /**
26409
     * Performs a deep copy on <i>other</i>.
26410
     */
26411
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
26412
    }
26413
 
26414
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
26415
      return new markMissedInventoryUpdatesAsProcessed_result(this);
26416
    }
26417
 
26418
    @Override
26419
    public void clear() {
26420
    }
26421
 
26422
    public void setFieldValue(_Fields field, Object value) {
26423
      switch (field) {
26424
      }
26425
    }
26426
 
26427
    public Object getFieldValue(_Fields field) {
26428
      switch (field) {
26429
      }
26430
      throw new IllegalStateException();
26431
    }
26432
 
26433
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26434
    public boolean isSet(_Fields field) {
26435
      if (field == null) {
26436
        throw new IllegalArgumentException();
26437
      }
26438
 
26439
      switch (field) {
26440
      }
26441
      throw new IllegalStateException();
26442
    }
26443
 
26444
    @Override
26445
    public boolean equals(Object that) {
26446
      if (that == null)
26447
        return false;
26448
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
26449
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
26450
      return false;
26451
    }
26452
 
26453
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
26454
      if (that == null)
26455
        return false;
26456
 
26457
      return true;
26458
    }
26459
 
26460
    @Override
26461
    public int hashCode() {
26462
      return 0;
26463
    }
26464
 
26465
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
26466
      if (!getClass().equals(other.getClass())) {
26467
        return getClass().getName().compareTo(other.getClass().getName());
26468
      }
26469
 
26470
      int lastComparison = 0;
26471
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
26472
 
26473
      return 0;
26474
    }
26475
 
26476
    public _Fields fieldForId(int fieldId) {
26477
      return _Fields.findByThriftId(fieldId);
26478
    }
26479
 
26480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26481
      org.apache.thrift.protocol.TField field;
26482
      iprot.readStructBegin();
26483
      while (true)
26484
      {
26485
        field = iprot.readFieldBegin();
26486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26487
          break;
26488
        }
26489
        switch (field.id) {
26490
          default:
26491
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26492
        }
26493
        iprot.readFieldEnd();
26494
      }
26495
      iprot.readStructEnd();
26496
      validate();
26497
    }
26498
 
26499
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26500
      oprot.writeStructBegin(STRUCT_DESC);
26501
 
26502
      oprot.writeFieldStop();
26503
      oprot.writeStructEnd();
26504
    }
26505
 
26506
    @Override
26507
    public String toString() {
26508
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
26509
      boolean first = true;
26510
 
26511
      sb.append(")");
26512
      return sb.toString();
26513
    }
26514
 
26515
    public void validate() throws org.apache.thrift.TException {
26516
      // check for required fields
26517
    }
26518
 
26519
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26520
      try {
26521
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26522
      } catch (org.apache.thrift.TException te) {
26523
        throw new java.io.IOException(te);
26524
      }
26525
    }
26526
 
26527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26528
      try {
26529
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26530
      } catch (org.apache.thrift.TException te) {
26531
        throw new java.io.IOException(te);
26532
      }
26533
    }
26534
 
26535
  }
26536
 
26537
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
26538
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
26539
 
26540
 
26541
 
26542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26544
;
26545
 
26546
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26547
 
26548
      static {
26549
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26550
          byName.put(field.getFieldName(), field);
26551
        }
26552
      }
26553
 
26554
      /**
26555
       * Find the _Fields constant that matches fieldId, or null if its not found.
26556
       */
26557
      public static _Fields findByThriftId(int fieldId) {
26558
        switch(fieldId) {
26559
          default:
26560
            return null;
26561
        }
26562
      }
26563
 
26564
      /**
26565
       * Find the _Fields constant that matches fieldId, throwing an exception
26566
       * if it is not found.
26567
       */
26568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26569
        _Fields fields = findByThriftId(fieldId);
26570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26571
        return fields;
26572
      }
26573
 
26574
      /**
26575
       * Find the _Fields constant that matches name, or null if its not found.
26576
       */
26577
      public static _Fields findByName(String name) {
26578
        return byName.get(name);
26579
      }
26580
 
26581
      private final short _thriftId;
26582
      private final String _fieldName;
26583
 
26584
      _Fields(short thriftId, String fieldName) {
26585
        _thriftId = thriftId;
26586
        _fieldName = fieldName;
26587
      }
26588
 
26589
      public short getThriftFieldId() {
26590
        return _thriftId;
26591
      }
26592
 
26593
      public String getFieldName() {
26594
        return _fieldName;
26595
      }
26596
    }
26597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26598
    static {
26599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26600
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26601
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
26602
    }
26603
 
26604
    public getIgnoredItemKeys_args() {
26605
    }
26606
 
26607
    /**
26608
     * Performs a deep copy on <i>other</i>.
26609
     */
26610
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
26611
    }
26612
 
26613
    public getIgnoredItemKeys_args deepCopy() {
26614
      return new getIgnoredItemKeys_args(this);
26615
    }
26616
 
26617
    @Override
26618
    public void clear() {
26619
    }
26620
 
26621
    public void setFieldValue(_Fields field, Object value) {
26622
      switch (field) {
26623
      }
26624
    }
26625
 
26626
    public Object getFieldValue(_Fields field) {
26627
      switch (field) {
26628
      }
26629
      throw new IllegalStateException();
26630
    }
26631
 
26632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26633
    public boolean isSet(_Fields field) {
26634
      if (field == null) {
26635
        throw new IllegalArgumentException();
26636
      }
26637
 
26638
      switch (field) {
26639
      }
26640
      throw new IllegalStateException();
26641
    }
26642
 
26643
    @Override
26644
    public boolean equals(Object that) {
26645
      if (that == null)
26646
        return false;
26647
      if (that instanceof getIgnoredItemKeys_args)
26648
        return this.equals((getIgnoredItemKeys_args)that);
26649
      return false;
26650
    }
26651
 
26652
    public boolean equals(getIgnoredItemKeys_args that) {
26653
      if (that == null)
26654
        return false;
26655
 
26656
      return true;
26657
    }
26658
 
26659
    @Override
26660
    public int hashCode() {
26661
      return 0;
26662
    }
26663
 
26664
    public int compareTo(getIgnoredItemKeys_args other) {
26665
      if (!getClass().equals(other.getClass())) {
26666
        return getClass().getName().compareTo(other.getClass().getName());
26667
      }
26668
 
26669
      int lastComparison = 0;
26670
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
26671
 
26672
      return 0;
26673
    }
26674
 
26675
    public _Fields fieldForId(int fieldId) {
26676
      return _Fields.findByThriftId(fieldId);
26677
    }
26678
 
26679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26680
      org.apache.thrift.protocol.TField field;
26681
      iprot.readStructBegin();
26682
      while (true)
26683
      {
26684
        field = iprot.readFieldBegin();
26685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26686
          break;
26687
        }
26688
        switch (field.id) {
26689
          default:
26690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26691
        }
26692
        iprot.readFieldEnd();
26693
      }
26694
      iprot.readStructEnd();
26695
      validate();
26696
    }
26697
 
26698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26699
      validate();
26700
 
26701
      oprot.writeStructBegin(STRUCT_DESC);
26702
      oprot.writeFieldStop();
26703
      oprot.writeStructEnd();
26704
    }
26705
 
26706
    @Override
26707
    public String toString() {
26708
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
26709
      boolean first = true;
26710
 
26711
      sb.append(")");
26712
      return sb.toString();
26713
    }
26714
 
26715
    public void validate() throws org.apache.thrift.TException {
26716
      // check for required fields
26717
    }
26718
 
26719
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26720
      try {
26721
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26722
      } catch (org.apache.thrift.TException te) {
26723
        throw new java.io.IOException(te);
26724
      }
26725
    }
26726
 
26727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26728
      try {
26729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26730
      } catch (org.apache.thrift.TException te) {
26731
        throw new java.io.IOException(te);
26732
      }
26733
    }
26734
 
26735
  }
26736
 
26737
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
26738
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
26739
 
26740
    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);
26741
 
26742
    private Map<String,Map<Long,Long>> success; // required
26743
 
26744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26745
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26746
      SUCCESS((short)0, "success");
26747
 
26748
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26749
 
26750
      static {
26751
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26752
          byName.put(field.getFieldName(), field);
26753
        }
26754
      }
26755
 
26756
      /**
26757
       * Find the _Fields constant that matches fieldId, or null if its not found.
26758
       */
26759
      public static _Fields findByThriftId(int fieldId) {
26760
        switch(fieldId) {
26761
          case 0: // SUCCESS
26762
            return SUCCESS;
26763
          default:
26764
            return null;
26765
        }
26766
      }
26767
 
26768
      /**
26769
       * Find the _Fields constant that matches fieldId, throwing an exception
26770
       * if it is not found.
26771
       */
26772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26773
        _Fields fields = findByThriftId(fieldId);
26774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26775
        return fields;
26776
      }
26777
 
26778
      /**
26779
       * Find the _Fields constant that matches name, or null if its not found.
26780
       */
26781
      public static _Fields findByName(String name) {
26782
        return byName.get(name);
26783
      }
26784
 
26785
      private final short _thriftId;
26786
      private final String _fieldName;
26787
 
26788
      _Fields(short thriftId, String fieldName) {
26789
        _thriftId = thriftId;
26790
        _fieldName = fieldName;
26791
      }
26792
 
26793
      public short getThriftFieldId() {
26794
        return _thriftId;
26795
      }
26796
 
26797
      public String getFieldName() {
26798
        return _fieldName;
26799
      }
26800
    }
26801
 
26802
    // isset id assignments
26803
 
26804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26805
    static {
26806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26807
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26808
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
26809
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
26810
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
26811
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
26812
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
26813
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26814
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
26815
    }
26816
 
26817
    public getIgnoredItemKeys_result() {
26818
    }
26819
 
26820
    public getIgnoredItemKeys_result(
26821
      Map<String,Map<Long,Long>> success)
26822
    {
26823
      this();
26824
      this.success = success;
26825
    }
26826
 
26827
    /**
26828
     * Performs a deep copy on <i>other</i>.
26829
     */
26830
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
26831
      if (other.isSetSuccess()) {
26832
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
26833
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
26834
 
26835
          String other_element_key = other_element.getKey();
26836
          Map<Long,Long> other_element_value = other_element.getValue();
26837
 
26838
          String __this__success_copy_key = other_element_key;
26839
 
26840
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
26841
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
26842
 
26843
            Long other_element_value_element_key = other_element_value_element.getKey();
26844
            Long other_element_value_element_value = other_element_value_element.getValue();
26845
 
26846
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
26847
 
26848
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
26849
 
26850
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
26851
          }
26852
 
26853
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
26854
        }
26855
        this.success = __this__success;
26856
      }
26857
    }
26858
 
26859
    public getIgnoredItemKeys_result deepCopy() {
26860
      return new getIgnoredItemKeys_result(this);
26861
    }
26862
 
26863
    @Override
26864
    public void clear() {
26865
      this.success = null;
26866
    }
26867
 
26868
    public int getSuccessSize() {
26869
      return (this.success == null) ? 0 : this.success.size();
26870
    }
26871
 
26872
    public void putToSuccess(String key, Map<Long,Long> val) {
26873
      if (this.success == null) {
26874
        this.success = new HashMap<String,Map<Long,Long>>();
26875
      }
26876
      this.success.put(key, val);
26877
    }
26878
 
26879
    public Map<String,Map<Long,Long>> getSuccess() {
26880
      return this.success;
26881
    }
26882
 
26883
    public void setSuccess(Map<String,Map<Long,Long>> success) {
26884
      this.success = success;
26885
    }
26886
 
26887
    public void unsetSuccess() {
26888
      this.success = null;
26889
    }
26890
 
26891
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26892
    public boolean isSetSuccess() {
26893
      return this.success != null;
26894
    }
26895
 
26896
    public void setSuccessIsSet(boolean value) {
26897
      if (!value) {
26898
        this.success = null;
26899
      }
26900
    }
26901
 
26902
    public void setFieldValue(_Fields field, Object value) {
26903
      switch (field) {
26904
      case SUCCESS:
26905
        if (value == null) {
26906
          unsetSuccess();
26907
        } else {
26908
          setSuccess((Map<String,Map<Long,Long>>)value);
26909
        }
26910
        break;
26911
 
26912
      }
26913
    }
26914
 
26915
    public Object getFieldValue(_Fields field) {
26916
      switch (field) {
26917
      case SUCCESS:
26918
        return getSuccess();
26919
 
26920
      }
26921
      throw new IllegalStateException();
26922
    }
26923
 
26924
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26925
    public boolean isSet(_Fields field) {
26926
      if (field == null) {
26927
        throw new IllegalArgumentException();
26928
      }
26929
 
26930
      switch (field) {
26931
      case SUCCESS:
26932
        return isSetSuccess();
26933
      }
26934
      throw new IllegalStateException();
26935
    }
26936
 
26937
    @Override
26938
    public boolean equals(Object that) {
26939
      if (that == null)
26940
        return false;
26941
      if (that instanceof getIgnoredItemKeys_result)
26942
        return this.equals((getIgnoredItemKeys_result)that);
26943
      return false;
26944
    }
26945
 
26946
    public boolean equals(getIgnoredItemKeys_result that) {
26947
      if (that == null)
26948
        return false;
26949
 
26950
      boolean this_present_success = true && this.isSetSuccess();
26951
      boolean that_present_success = true && that.isSetSuccess();
26952
      if (this_present_success || that_present_success) {
26953
        if (!(this_present_success && that_present_success))
26954
          return false;
26955
        if (!this.success.equals(that.success))
26956
          return false;
26957
      }
26958
 
26959
      return true;
26960
    }
26961
 
26962
    @Override
26963
    public int hashCode() {
26964
      return 0;
26965
    }
26966
 
26967
    public int compareTo(getIgnoredItemKeys_result other) {
26968
      if (!getClass().equals(other.getClass())) {
26969
        return getClass().getName().compareTo(other.getClass().getName());
26970
      }
26971
 
26972
      int lastComparison = 0;
26973
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
26974
 
26975
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26976
      if (lastComparison != 0) {
26977
        return lastComparison;
26978
      }
26979
      if (isSetSuccess()) {
26980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26981
        if (lastComparison != 0) {
26982
          return lastComparison;
26983
        }
26984
      }
26985
      return 0;
26986
    }
26987
 
26988
    public _Fields fieldForId(int fieldId) {
26989
      return _Fields.findByThriftId(fieldId);
26990
    }
26991
 
26992
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26993
      org.apache.thrift.protocol.TField field;
26994
      iprot.readStructBegin();
26995
      while (true)
26996
      {
26997
        field = iprot.readFieldBegin();
26998
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26999
          break;
27000
        }
27001
        switch (field.id) {
27002
          case 0: // SUCCESS
27003
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
27004
              {
8182 amar.kumar 27005
                org.apache.thrift.protocol.TMap _map61 = iprot.readMapBegin();
27006
                this.success = new HashMap<String,Map<Long,Long>>(2*_map61.size);
27007
                for (int _i62 = 0; _i62 < _map61.size; ++_i62)
5945 mandeep.dh 27008
                {
8182 amar.kumar 27009
                  String _key63; // required
27010
                  Map<Long,Long> _val64; // required
27011
                  _key63 = iprot.readString();
5945 mandeep.dh 27012
                  {
8182 amar.kumar 27013
                    org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin();
27014
                    _val64 = new HashMap<Long,Long>(2*_map65.size);
27015
                    for (int _i66 = 0; _i66 < _map65.size; ++_i66)
5945 mandeep.dh 27016
                    {
8182 amar.kumar 27017
                      long _key67; // required
27018
                      long _val68; // required
27019
                      _key67 = iprot.readI64();
27020
                      _val68 = iprot.readI64();
27021
                      _val64.put(_key67, _val68);
5945 mandeep.dh 27022
                    }
27023
                    iprot.readMapEnd();
27024
                  }
8182 amar.kumar 27025
                  this.success.put(_key63, _val64);
5945 mandeep.dh 27026
                }
27027
                iprot.readMapEnd();
27028
              }
27029
            } else { 
27030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27031
            }
27032
            break;
27033
          default:
27034
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27035
        }
27036
        iprot.readFieldEnd();
27037
      }
27038
      iprot.readStructEnd();
27039
      validate();
27040
    }
27041
 
27042
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27043
      oprot.writeStructBegin(STRUCT_DESC);
27044
 
27045
      if (this.isSetSuccess()) {
27046
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27047
        {
27048
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
8182 amar.kumar 27049
          for (Map.Entry<String, Map<Long,Long>> _iter69 : this.success.entrySet())
5945 mandeep.dh 27050
          {
8182 amar.kumar 27051
            oprot.writeString(_iter69.getKey());
5945 mandeep.dh 27052
            {
8182 amar.kumar 27053
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter69.getValue().size()));
27054
              for (Map.Entry<Long, Long> _iter70 : _iter69.getValue().entrySet())
5945 mandeep.dh 27055
              {
8182 amar.kumar 27056
                oprot.writeI64(_iter70.getKey());
27057
                oprot.writeI64(_iter70.getValue());
5945 mandeep.dh 27058
              }
27059
              oprot.writeMapEnd();
27060
            }
27061
          }
27062
          oprot.writeMapEnd();
27063
        }
27064
        oprot.writeFieldEnd();
27065
      }
27066
      oprot.writeFieldStop();
27067
      oprot.writeStructEnd();
27068
    }
27069
 
27070
    @Override
27071
    public String toString() {
27072
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
27073
      boolean first = true;
27074
 
27075
      sb.append("success:");
27076
      if (this.success == null) {
27077
        sb.append("null");
27078
      } else {
27079
        sb.append(this.success);
27080
      }
27081
      first = false;
27082
      sb.append(")");
27083
      return sb.toString();
27084
    }
27085
 
27086
    public void validate() throws org.apache.thrift.TException {
27087
      // check for required fields
27088
    }
27089
 
27090
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27091
      try {
27092
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27093
      } catch (org.apache.thrift.TException te) {
27094
        throw new java.io.IOException(te);
27095
      }
27096
    }
27097
 
27098
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27099
      try {
27100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27101
      } catch (org.apache.thrift.TException te) {
27102
        throw new java.io.IOException(te);
27103
      }
27104
    }
27105
 
27106
  }
27107
 
27108
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
27109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
27110
 
27111
    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);
27112
    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);
27113
    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);
27114
 
27115
    private long itemId; // required
27116
    private long warehouseId; // required
27117
    private long quantity; // required
27118
 
27119
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27120
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27121
      ITEM_ID((short)1, "itemId"),
27122
      WAREHOUSE_ID((short)2, "warehouseId"),
27123
      QUANTITY((short)3, "quantity");
27124
 
27125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27126
 
27127
      static {
27128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27129
          byName.put(field.getFieldName(), field);
27130
        }
27131
      }
27132
 
27133
      /**
27134
       * Find the _Fields constant that matches fieldId, or null if its not found.
27135
       */
27136
      public static _Fields findByThriftId(int fieldId) {
27137
        switch(fieldId) {
27138
          case 1: // ITEM_ID
27139
            return ITEM_ID;
27140
          case 2: // WAREHOUSE_ID
27141
            return WAREHOUSE_ID;
27142
          case 3: // QUANTITY
27143
            return QUANTITY;
27144
          default:
27145
            return null;
27146
        }
27147
      }
27148
 
27149
      /**
27150
       * Find the _Fields constant that matches fieldId, throwing an exception
27151
       * if it is not found.
27152
       */
27153
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27154
        _Fields fields = findByThriftId(fieldId);
27155
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27156
        return fields;
27157
      }
27158
 
27159
      /**
27160
       * Find the _Fields constant that matches name, or null if its not found.
27161
       */
27162
      public static _Fields findByName(String name) {
27163
        return byName.get(name);
27164
      }
27165
 
27166
      private final short _thriftId;
27167
      private final String _fieldName;
27168
 
27169
      _Fields(short thriftId, String fieldName) {
27170
        _thriftId = thriftId;
27171
        _fieldName = fieldName;
27172
      }
27173
 
27174
      public short getThriftFieldId() {
27175
        return _thriftId;
27176
      }
27177
 
27178
      public String getFieldName() {
27179
        return _fieldName;
27180
      }
27181
    }
27182
 
27183
    // isset id assignments
27184
    private static final int __ITEMID_ISSET_ID = 0;
27185
    private static final int __WAREHOUSEID_ISSET_ID = 1;
27186
    private static final int __QUANTITY_ISSET_ID = 2;
27187
    private BitSet __isset_bit_vector = new BitSet(3);
27188
 
27189
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27190
    static {
27191
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27192
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27194
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27195
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27196
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27197
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27198
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27199
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
27200
    }
27201
 
27202
    public addBadInventory_args() {
27203
    }
27204
 
27205
    public addBadInventory_args(
27206
      long itemId,
27207
      long warehouseId,
27208
      long quantity)
27209
    {
27210
      this();
27211
      this.itemId = itemId;
27212
      setItemIdIsSet(true);
27213
      this.warehouseId = warehouseId;
27214
      setWarehouseIdIsSet(true);
27215
      this.quantity = quantity;
27216
      setQuantityIsSet(true);
27217
    }
27218
 
27219
    /**
27220
     * Performs a deep copy on <i>other</i>.
27221
     */
27222
    public addBadInventory_args(addBadInventory_args other) {
27223
      __isset_bit_vector.clear();
27224
      __isset_bit_vector.or(other.__isset_bit_vector);
27225
      this.itemId = other.itemId;
27226
      this.warehouseId = other.warehouseId;
27227
      this.quantity = other.quantity;
27228
    }
27229
 
27230
    public addBadInventory_args deepCopy() {
27231
      return new addBadInventory_args(this);
27232
    }
27233
 
27234
    @Override
27235
    public void clear() {
27236
      setItemIdIsSet(false);
27237
      this.itemId = 0;
27238
      setWarehouseIdIsSet(false);
27239
      this.warehouseId = 0;
27240
      setQuantityIsSet(false);
27241
      this.quantity = 0;
27242
    }
27243
 
27244
    public long getItemId() {
27245
      return this.itemId;
27246
    }
27247
 
27248
    public void setItemId(long itemId) {
27249
      this.itemId = itemId;
27250
      setItemIdIsSet(true);
27251
    }
27252
 
27253
    public void unsetItemId() {
27254
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
27255
    }
27256
 
27257
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
27258
    public boolean isSetItemId() {
27259
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
27260
    }
27261
 
27262
    public void setItemIdIsSet(boolean value) {
27263
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
27264
    }
27265
 
27266
    public long getWarehouseId() {
27267
      return this.warehouseId;
27268
    }
27269
 
27270
    public void setWarehouseId(long warehouseId) {
27271
      this.warehouseId = warehouseId;
27272
      setWarehouseIdIsSet(true);
27273
    }
27274
 
27275
    public void unsetWarehouseId() {
27276
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27277
    }
27278
 
27279
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27280
    public boolean isSetWarehouseId() {
27281
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27282
    }
27283
 
27284
    public void setWarehouseIdIsSet(boolean value) {
27285
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27286
    }
27287
 
27288
    public long getQuantity() {
27289
      return this.quantity;
27290
    }
27291
 
27292
    public void setQuantity(long quantity) {
27293
      this.quantity = quantity;
27294
      setQuantityIsSet(true);
27295
    }
27296
 
27297
    public void unsetQuantity() {
27298
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
27299
    }
27300
 
27301
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
27302
    public boolean isSetQuantity() {
27303
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
27304
    }
27305
 
27306
    public void setQuantityIsSet(boolean value) {
27307
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
27308
    }
27309
 
27310
    public void setFieldValue(_Fields field, Object value) {
27311
      switch (field) {
27312
      case ITEM_ID:
27313
        if (value == null) {
27314
          unsetItemId();
27315
        } else {
27316
          setItemId((Long)value);
27317
        }
27318
        break;
27319
 
27320
      case WAREHOUSE_ID:
27321
        if (value == null) {
27322
          unsetWarehouseId();
27323
        } else {
27324
          setWarehouseId((Long)value);
27325
        }
27326
        break;
27327
 
27328
      case QUANTITY:
27329
        if (value == null) {
27330
          unsetQuantity();
27331
        } else {
27332
          setQuantity((Long)value);
27333
        }
27334
        break;
27335
 
27336
      }
27337
    }
27338
 
27339
    public Object getFieldValue(_Fields field) {
27340
      switch (field) {
27341
      case ITEM_ID:
27342
        return Long.valueOf(getItemId());
27343
 
27344
      case WAREHOUSE_ID:
27345
        return Long.valueOf(getWarehouseId());
27346
 
27347
      case QUANTITY:
27348
        return Long.valueOf(getQuantity());
27349
 
27350
      }
27351
      throw new IllegalStateException();
27352
    }
27353
 
27354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27355
    public boolean isSet(_Fields field) {
27356
      if (field == null) {
27357
        throw new IllegalArgumentException();
27358
      }
27359
 
27360
      switch (field) {
27361
      case ITEM_ID:
27362
        return isSetItemId();
27363
      case WAREHOUSE_ID:
27364
        return isSetWarehouseId();
27365
      case QUANTITY:
27366
        return isSetQuantity();
27367
      }
27368
      throw new IllegalStateException();
27369
    }
27370
 
27371
    @Override
27372
    public boolean equals(Object that) {
27373
      if (that == null)
27374
        return false;
27375
      if (that instanceof addBadInventory_args)
27376
        return this.equals((addBadInventory_args)that);
27377
      return false;
27378
    }
27379
 
27380
    public boolean equals(addBadInventory_args that) {
27381
      if (that == null)
27382
        return false;
27383
 
27384
      boolean this_present_itemId = true;
27385
      boolean that_present_itemId = true;
27386
      if (this_present_itemId || that_present_itemId) {
27387
        if (!(this_present_itemId && that_present_itemId))
27388
          return false;
27389
        if (this.itemId != that.itemId)
27390
          return false;
27391
      }
27392
 
27393
      boolean this_present_warehouseId = true;
27394
      boolean that_present_warehouseId = true;
27395
      if (this_present_warehouseId || that_present_warehouseId) {
27396
        if (!(this_present_warehouseId && that_present_warehouseId))
27397
          return false;
27398
        if (this.warehouseId != that.warehouseId)
27399
          return false;
27400
      }
27401
 
27402
      boolean this_present_quantity = true;
27403
      boolean that_present_quantity = true;
27404
      if (this_present_quantity || that_present_quantity) {
27405
        if (!(this_present_quantity && that_present_quantity))
27406
          return false;
27407
        if (this.quantity != that.quantity)
27408
          return false;
27409
      }
27410
 
27411
      return true;
27412
    }
27413
 
27414
    @Override
27415
    public int hashCode() {
27416
      return 0;
27417
    }
27418
 
27419
    public int compareTo(addBadInventory_args other) {
27420
      if (!getClass().equals(other.getClass())) {
27421
        return getClass().getName().compareTo(other.getClass().getName());
27422
      }
27423
 
27424
      int lastComparison = 0;
27425
      addBadInventory_args typedOther = (addBadInventory_args)other;
27426
 
27427
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
27428
      if (lastComparison != 0) {
27429
        return lastComparison;
27430
      }
27431
      if (isSetItemId()) {
27432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
27433
        if (lastComparison != 0) {
27434
          return lastComparison;
27435
        }
27436
      }
27437
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27438
      if (lastComparison != 0) {
27439
        return lastComparison;
27440
      }
27441
      if (isSetWarehouseId()) {
27442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27443
        if (lastComparison != 0) {
27444
          return lastComparison;
27445
        }
27446
      }
27447
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
27448
      if (lastComparison != 0) {
27449
        return lastComparison;
27450
      }
27451
      if (isSetQuantity()) {
27452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
27453
        if (lastComparison != 0) {
27454
          return lastComparison;
27455
        }
27456
      }
27457
      return 0;
27458
    }
27459
 
27460
    public _Fields fieldForId(int fieldId) {
27461
      return _Fields.findByThriftId(fieldId);
27462
    }
27463
 
27464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27465
      org.apache.thrift.protocol.TField field;
27466
      iprot.readStructBegin();
27467
      while (true)
27468
      {
27469
        field = iprot.readFieldBegin();
27470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27471
          break;
27472
        }
27473
        switch (field.id) {
27474
          case 1: // ITEM_ID
27475
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27476
              this.itemId = iprot.readI64();
27477
              setItemIdIsSet(true);
27478
            } else { 
27479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27480
            }
27481
            break;
27482
          case 2: // WAREHOUSE_ID
27483
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27484
              this.warehouseId = iprot.readI64();
27485
              setWarehouseIdIsSet(true);
27486
            } else { 
27487
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27488
            }
27489
            break;
27490
          case 3: // QUANTITY
27491
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27492
              this.quantity = iprot.readI64();
27493
              setQuantityIsSet(true);
27494
            } else { 
27495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27496
            }
27497
            break;
27498
          default:
27499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27500
        }
27501
        iprot.readFieldEnd();
27502
      }
27503
      iprot.readStructEnd();
27504
      validate();
27505
    }
27506
 
27507
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27508
      validate();
27509
 
27510
      oprot.writeStructBegin(STRUCT_DESC);
27511
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
27512
      oprot.writeI64(this.itemId);
27513
      oprot.writeFieldEnd();
27514
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27515
      oprot.writeI64(this.warehouseId);
27516
      oprot.writeFieldEnd();
27517
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
27518
      oprot.writeI64(this.quantity);
27519
      oprot.writeFieldEnd();
27520
      oprot.writeFieldStop();
27521
      oprot.writeStructEnd();
27522
    }
27523
 
27524
    @Override
27525
    public String toString() {
27526
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
27527
      boolean first = true;
27528
 
27529
      sb.append("itemId:");
27530
      sb.append(this.itemId);
27531
      first = false;
27532
      if (!first) sb.append(", ");
27533
      sb.append("warehouseId:");
27534
      sb.append(this.warehouseId);
27535
      first = false;
27536
      if (!first) sb.append(", ");
27537
      sb.append("quantity:");
27538
      sb.append(this.quantity);
27539
      first = false;
27540
      sb.append(")");
27541
      return sb.toString();
27542
    }
27543
 
27544
    public void validate() throws org.apache.thrift.TException {
27545
      // check for required fields
27546
    }
27547
 
27548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27549
      try {
27550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27551
      } catch (org.apache.thrift.TException te) {
27552
        throw new java.io.IOException(te);
27553
      }
27554
    }
27555
 
27556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27557
      try {
27558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27559
      } catch (org.apache.thrift.TException te) {
27560
        throw new java.io.IOException(te);
27561
      }
27562
    }
27563
 
27564
  }
27565
 
27566
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
27567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
27568
 
27569
    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);
27570
 
27571
    private InventoryServiceException cex; // required
27572
 
27573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27575
      CEX((short)1, "cex");
27576
 
27577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27578
 
27579
      static {
27580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27581
          byName.put(field.getFieldName(), field);
27582
        }
27583
      }
27584
 
27585
      /**
27586
       * Find the _Fields constant that matches fieldId, or null if its not found.
27587
       */
27588
      public static _Fields findByThriftId(int fieldId) {
27589
        switch(fieldId) {
27590
          case 1: // CEX
27591
            return CEX;
27592
          default:
27593
            return null;
27594
        }
27595
      }
27596
 
27597
      /**
27598
       * Find the _Fields constant that matches fieldId, throwing an exception
27599
       * if it is not found.
27600
       */
27601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27602
        _Fields fields = findByThriftId(fieldId);
27603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27604
        return fields;
27605
      }
27606
 
27607
      /**
27608
       * Find the _Fields constant that matches name, or null if its not found.
27609
       */
27610
      public static _Fields findByName(String name) {
27611
        return byName.get(name);
27612
      }
27613
 
27614
      private final short _thriftId;
27615
      private final String _fieldName;
27616
 
27617
      _Fields(short thriftId, String fieldName) {
27618
        _thriftId = thriftId;
27619
        _fieldName = fieldName;
27620
      }
27621
 
27622
      public short getThriftFieldId() {
27623
        return _thriftId;
27624
      }
27625
 
27626
      public String getFieldName() {
27627
        return _fieldName;
27628
      }
27629
    }
27630
 
27631
    // isset id assignments
27632
 
27633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27634
    static {
27635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27636
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
27640
    }
27641
 
27642
    public addBadInventory_result() {
27643
    }
27644
 
27645
    public addBadInventory_result(
27646
      InventoryServiceException cex)
27647
    {
27648
      this();
27649
      this.cex = cex;
27650
    }
27651
 
27652
    /**
27653
     * Performs a deep copy on <i>other</i>.
27654
     */
27655
    public addBadInventory_result(addBadInventory_result other) {
27656
      if (other.isSetCex()) {
27657
        this.cex = new InventoryServiceException(other.cex);
27658
      }
27659
    }
27660
 
27661
    public addBadInventory_result deepCopy() {
27662
      return new addBadInventory_result(this);
27663
    }
27664
 
27665
    @Override
27666
    public void clear() {
27667
      this.cex = null;
27668
    }
27669
 
27670
    public InventoryServiceException getCex() {
27671
      return this.cex;
27672
    }
27673
 
27674
    public void setCex(InventoryServiceException cex) {
27675
      this.cex = cex;
27676
    }
27677
 
27678
    public void unsetCex() {
27679
      this.cex = null;
27680
    }
27681
 
27682
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
27683
    public boolean isSetCex() {
27684
      return this.cex != null;
27685
    }
27686
 
27687
    public void setCexIsSet(boolean value) {
27688
      if (!value) {
27689
        this.cex = null;
27690
      }
27691
    }
27692
 
27693
    public void setFieldValue(_Fields field, Object value) {
27694
      switch (field) {
27695
      case CEX:
27696
        if (value == null) {
27697
          unsetCex();
27698
        } else {
27699
          setCex((InventoryServiceException)value);
27700
        }
27701
        break;
27702
 
27703
      }
27704
    }
27705
 
27706
    public Object getFieldValue(_Fields field) {
27707
      switch (field) {
27708
      case CEX:
27709
        return getCex();
27710
 
27711
      }
27712
      throw new IllegalStateException();
27713
    }
27714
 
27715
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27716
    public boolean isSet(_Fields field) {
27717
      if (field == null) {
27718
        throw new IllegalArgumentException();
27719
      }
27720
 
27721
      switch (field) {
27722
      case CEX:
27723
        return isSetCex();
27724
      }
27725
      throw new IllegalStateException();
27726
    }
27727
 
27728
    @Override
27729
    public boolean equals(Object that) {
27730
      if (that == null)
27731
        return false;
27732
      if (that instanceof addBadInventory_result)
27733
        return this.equals((addBadInventory_result)that);
27734
      return false;
27735
    }
27736
 
27737
    public boolean equals(addBadInventory_result that) {
27738
      if (that == null)
27739
        return false;
27740
 
27741
      boolean this_present_cex = true && this.isSetCex();
27742
      boolean that_present_cex = true && that.isSetCex();
27743
      if (this_present_cex || that_present_cex) {
27744
        if (!(this_present_cex && that_present_cex))
27745
          return false;
27746
        if (!this.cex.equals(that.cex))
27747
          return false;
27748
      }
27749
 
27750
      return true;
27751
    }
27752
 
27753
    @Override
27754
    public int hashCode() {
27755
      return 0;
27756
    }
27757
 
27758
    public int compareTo(addBadInventory_result other) {
27759
      if (!getClass().equals(other.getClass())) {
27760
        return getClass().getName().compareTo(other.getClass().getName());
27761
      }
27762
 
27763
      int lastComparison = 0;
27764
      addBadInventory_result typedOther = (addBadInventory_result)other;
27765
 
27766
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
27767
      if (lastComparison != 0) {
27768
        return lastComparison;
27769
      }
27770
      if (isSetCex()) {
27771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
27772
        if (lastComparison != 0) {
27773
          return lastComparison;
27774
        }
27775
      }
27776
      return 0;
27777
    }
27778
 
27779
    public _Fields fieldForId(int fieldId) {
27780
      return _Fields.findByThriftId(fieldId);
27781
    }
27782
 
27783
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27784
      org.apache.thrift.protocol.TField field;
27785
      iprot.readStructBegin();
27786
      while (true)
27787
      {
27788
        field = iprot.readFieldBegin();
27789
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27790
          break;
27791
        }
27792
        switch (field.id) {
27793
          case 1: // CEX
27794
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27795
              this.cex = new InventoryServiceException();
27796
              this.cex.read(iprot);
27797
            } else { 
27798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27799
            }
27800
            break;
27801
          default:
27802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27803
        }
27804
        iprot.readFieldEnd();
27805
      }
27806
      iprot.readStructEnd();
27807
      validate();
27808
    }
27809
 
27810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27811
      oprot.writeStructBegin(STRUCT_DESC);
27812
 
27813
      if (this.isSetCex()) {
27814
        oprot.writeFieldBegin(CEX_FIELD_DESC);
27815
        this.cex.write(oprot);
27816
        oprot.writeFieldEnd();
27817
      }
27818
      oprot.writeFieldStop();
27819
      oprot.writeStructEnd();
27820
    }
27821
 
27822
    @Override
27823
    public String toString() {
27824
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
27825
      boolean first = true;
27826
 
27827
      sb.append("cex:");
27828
      if (this.cex == null) {
27829
        sb.append("null");
27830
      } else {
27831
        sb.append(this.cex);
27832
      }
27833
      first = false;
27834
      sb.append(")");
27835
      return sb.toString();
27836
    }
27837
 
27838
    public void validate() throws org.apache.thrift.TException {
27839
      // check for required fields
27840
    }
27841
 
27842
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27843
      try {
27844
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27845
      } catch (org.apache.thrift.TException te) {
27846
        throw new java.io.IOException(te);
27847
      }
27848
    }
27849
 
27850
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27851
      try {
27852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27853
      } catch (org.apache.thrift.TException te) {
27854
        throw new java.io.IOException(te);
27855
      }
27856
    }
27857
 
27858
  }
27859
 
27860
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
27861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
27862
 
27863
 
27864
 
27865
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27866
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27867
;
27868
 
27869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27870
 
27871
      static {
27872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27873
          byName.put(field.getFieldName(), field);
27874
        }
27875
      }
27876
 
27877
      /**
27878
       * Find the _Fields constant that matches fieldId, or null if its not found.
27879
       */
27880
      public static _Fields findByThriftId(int fieldId) {
27881
        switch(fieldId) {
27882
          default:
27883
            return null;
27884
        }
27885
      }
27886
 
27887
      /**
27888
       * Find the _Fields constant that matches fieldId, throwing an exception
27889
       * if it is not found.
27890
       */
27891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27892
        _Fields fields = findByThriftId(fieldId);
27893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27894
        return fields;
27895
      }
27896
 
27897
      /**
27898
       * Find the _Fields constant that matches name, or null if its not found.
27899
       */
27900
      public static _Fields findByName(String name) {
27901
        return byName.get(name);
27902
      }
27903
 
27904
      private final short _thriftId;
27905
      private final String _fieldName;
27906
 
27907
      _Fields(short thriftId, String fieldName) {
27908
        _thriftId = thriftId;
27909
        _fieldName = fieldName;
27910
      }
27911
 
27912
      public short getThriftFieldId() {
27913
        return _thriftId;
27914
      }
27915
 
27916
      public String getFieldName() {
27917
        return _fieldName;
27918
      }
27919
    }
27920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27921
    static {
27922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27923
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27924
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
27925
    }
27926
 
27927
    public getShippingLocations_args() {
27928
    }
27929
 
27930
    /**
27931
     * Performs a deep copy on <i>other</i>.
27932
     */
27933
    public getShippingLocations_args(getShippingLocations_args other) {
27934
    }
27935
 
27936
    public getShippingLocations_args deepCopy() {
27937
      return new getShippingLocations_args(this);
27938
    }
27939
 
27940
    @Override
27941
    public void clear() {
27942
    }
27943
 
27944
    public void setFieldValue(_Fields field, Object value) {
27945
      switch (field) {
27946
      }
27947
    }
27948
 
27949
    public Object getFieldValue(_Fields field) {
27950
      switch (field) {
27951
      }
27952
      throw new IllegalStateException();
27953
    }
27954
 
27955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27956
    public boolean isSet(_Fields field) {
27957
      if (field == null) {
27958
        throw new IllegalArgumentException();
27959
      }
27960
 
27961
      switch (field) {
27962
      }
27963
      throw new IllegalStateException();
27964
    }
27965
 
27966
    @Override
27967
    public boolean equals(Object that) {
27968
      if (that == null)
27969
        return false;
27970
      if (that instanceof getShippingLocations_args)
27971
        return this.equals((getShippingLocations_args)that);
27972
      return false;
27973
    }
27974
 
27975
    public boolean equals(getShippingLocations_args that) {
27976
      if (that == null)
27977
        return false;
27978
 
27979
      return true;
27980
    }
27981
 
27982
    @Override
27983
    public int hashCode() {
27984
      return 0;
27985
    }
27986
 
27987
    public int compareTo(getShippingLocations_args other) {
27988
      if (!getClass().equals(other.getClass())) {
27989
        return getClass().getName().compareTo(other.getClass().getName());
27990
      }
27991
 
27992
      int lastComparison = 0;
27993
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
27994
 
27995
      return 0;
27996
    }
27997
 
27998
    public _Fields fieldForId(int fieldId) {
27999
      return _Fields.findByThriftId(fieldId);
28000
    }
28001
 
28002
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28003
      org.apache.thrift.protocol.TField field;
28004
      iprot.readStructBegin();
28005
      while (true)
28006
      {
28007
        field = iprot.readFieldBegin();
28008
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28009
          break;
28010
        }
28011
        switch (field.id) {
28012
          default:
28013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28014
        }
28015
        iprot.readFieldEnd();
28016
      }
28017
      iprot.readStructEnd();
28018
      validate();
28019
    }
28020
 
28021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28022
      validate();
28023
 
28024
      oprot.writeStructBegin(STRUCT_DESC);
28025
      oprot.writeFieldStop();
28026
      oprot.writeStructEnd();
28027
    }
28028
 
28029
    @Override
28030
    public String toString() {
28031
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
28032
      boolean first = true;
28033
 
28034
      sb.append(")");
28035
      return sb.toString();
28036
    }
28037
 
28038
    public void validate() throws org.apache.thrift.TException {
28039
      // check for required fields
28040
    }
28041
 
28042
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28043
      try {
28044
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28045
      } catch (org.apache.thrift.TException te) {
28046
        throw new java.io.IOException(te);
28047
      }
28048
    }
28049
 
28050
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28051
      try {
28052
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28053
      } catch (org.apache.thrift.TException te) {
28054
        throw new java.io.IOException(te);
28055
      }
28056
    }
28057
 
28058
  }
28059
 
28060
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
28061
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
28062
 
28063
    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);
28064
 
28065
    private List<Warehouse> success; // required
28066
 
28067
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28068
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28069
      SUCCESS((short)0, "success");
28070
 
28071
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28072
 
28073
      static {
28074
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28075
          byName.put(field.getFieldName(), field);
28076
        }
28077
      }
28078
 
28079
      /**
28080
       * Find the _Fields constant that matches fieldId, or null if its not found.
28081
       */
28082
      public static _Fields findByThriftId(int fieldId) {
28083
        switch(fieldId) {
28084
          case 0: // SUCCESS
28085
            return SUCCESS;
28086
          default:
28087
            return null;
28088
        }
28089
      }
28090
 
28091
      /**
28092
       * Find the _Fields constant that matches fieldId, throwing an exception
28093
       * if it is not found.
28094
       */
28095
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28096
        _Fields fields = findByThriftId(fieldId);
28097
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28098
        return fields;
28099
      }
28100
 
28101
      /**
28102
       * Find the _Fields constant that matches name, or null if its not found.
28103
       */
28104
      public static _Fields findByName(String name) {
28105
        return byName.get(name);
28106
      }
28107
 
28108
      private final short _thriftId;
28109
      private final String _fieldName;
28110
 
28111
      _Fields(short thriftId, String fieldName) {
28112
        _thriftId = thriftId;
28113
        _fieldName = fieldName;
28114
      }
28115
 
28116
      public short getThriftFieldId() {
28117
        return _thriftId;
28118
      }
28119
 
28120
      public String getFieldName() {
28121
        return _fieldName;
28122
      }
28123
    }
28124
 
28125
    // isset id assignments
28126
 
28127
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28128
    static {
28129
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28130
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28131
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
28132
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
28133
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28134
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
28135
    }
28136
 
28137
    public getShippingLocations_result() {
28138
    }
28139
 
28140
    public getShippingLocations_result(
28141
      List<Warehouse> success)
28142
    {
28143
      this();
28144
      this.success = success;
28145
    }
28146
 
28147
    /**
28148
     * Performs a deep copy on <i>other</i>.
28149
     */
28150
    public getShippingLocations_result(getShippingLocations_result other) {
28151
      if (other.isSetSuccess()) {
28152
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
28153
        for (Warehouse other_element : other.success) {
28154
          __this__success.add(new Warehouse(other_element));
28155
        }
28156
        this.success = __this__success;
28157
      }
28158
    }
28159
 
28160
    public getShippingLocations_result deepCopy() {
28161
      return new getShippingLocations_result(this);
28162
    }
28163
 
28164
    @Override
28165
    public void clear() {
28166
      this.success = null;
28167
    }
28168
 
28169
    public int getSuccessSize() {
28170
      return (this.success == null) ? 0 : this.success.size();
28171
    }
28172
 
28173
    public java.util.Iterator<Warehouse> getSuccessIterator() {
28174
      return (this.success == null) ? null : this.success.iterator();
28175
    }
28176
 
28177
    public void addToSuccess(Warehouse elem) {
28178
      if (this.success == null) {
28179
        this.success = new ArrayList<Warehouse>();
28180
      }
28181
      this.success.add(elem);
28182
    }
28183
 
28184
    public List<Warehouse> getSuccess() {
28185
      return this.success;
28186
    }
28187
 
28188
    public void setSuccess(List<Warehouse> success) {
28189
      this.success = success;
28190
    }
28191
 
28192
    public void unsetSuccess() {
28193
      this.success = null;
28194
    }
28195
 
28196
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28197
    public boolean isSetSuccess() {
28198
      return this.success != null;
28199
    }
28200
 
28201
    public void setSuccessIsSet(boolean value) {
28202
      if (!value) {
28203
        this.success = null;
28204
      }
28205
    }
28206
 
28207
    public void setFieldValue(_Fields field, Object value) {
28208
      switch (field) {
28209
      case SUCCESS:
28210
        if (value == null) {
28211
          unsetSuccess();
28212
        } else {
28213
          setSuccess((List<Warehouse>)value);
28214
        }
28215
        break;
28216
 
28217
      }
28218
    }
28219
 
28220
    public Object getFieldValue(_Fields field) {
28221
      switch (field) {
28222
      case SUCCESS:
28223
        return getSuccess();
28224
 
28225
      }
28226
      throw new IllegalStateException();
28227
    }
28228
 
28229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28230
    public boolean isSet(_Fields field) {
28231
      if (field == null) {
28232
        throw new IllegalArgumentException();
28233
      }
28234
 
28235
      switch (field) {
28236
      case SUCCESS:
28237
        return isSetSuccess();
28238
      }
28239
      throw new IllegalStateException();
28240
    }
28241
 
28242
    @Override
28243
    public boolean equals(Object that) {
28244
      if (that == null)
28245
        return false;
28246
      if (that instanceof getShippingLocations_result)
28247
        return this.equals((getShippingLocations_result)that);
28248
      return false;
28249
    }
28250
 
28251
    public boolean equals(getShippingLocations_result that) {
28252
      if (that == null)
28253
        return false;
28254
 
28255
      boolean this_present_success = true && this.isSetSuccess();
28256
      boolean that_present_success = true && that.isSetSuccess();
28257
      if (this_present_success || that_present_success) {
28258
        if (!(this_present_success && that_present_success))
28259
          return false;
28260
        if (!this.success.equals(that.success))
28261
          return false;
28262
      }
28263
 
28264
      return true;
28265
    }
28266
 
28267
    @Override
28268
    public int hashCode() {
28269
      return 0;
28270
    }
28271
 
28272
    public int compareTo(getShippingLocations_result other) {
28273
      if (!getClass().equals(other.getClass())) {
28274
        return getClass().getName().compareTo(other.getClass().getName());
28275
      }
28276
 
28277
      int lastComparison = 0;
28278
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
28279
 
28280
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28281
      if (lastComparison != 0) {
28282
        return lastComparison;
28283
      }
28284
      if (isSetSuccess()) {
28285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28286
        if (lastComparison != 0) {
28287
          return lastComparison;
28288
        }
28289
      }
28290
      return 0;
28291
    }
28292
 
28293
    public _Fields fieldForId(int fieldId) {
28294
      return _Fields.findByThriftId(fieldId);
28295
    }
28296
 
28297
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28298
      org.apache.thrift.protocol.TField field;
28299
      iprot.readStructBegin();
28300
      while (true)
28301
      {
28302
        field = iprot.readFieldBegin();
28303
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28304
          break;
28305
        }
28306
        switch (field.id) {
28307
          case 0: // SUCCESS
28308
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
28309
              {
8182 amar.kumar 28310
                org.apache.thrift.protocol.TList _list71 = iprot.readListBegin();
28311
                this.success = new ArrayList<Warehouse>(_list71.size);
28312
                for (int _i72 = 0; _i72 < _list71.size; ++_i72)
5945 mandeep.dh 28313
                {
8182 amar.kumar 28314
                  Warehouse _elem73; // required
28315
                  _elem73 = new Warehouse();
28316
                  _elem73.read(iprot);
28317
                  this.success.add(_elem73);
5945 mandeep.dh 28318
                }
28319
                iprot.readListEnd();
28320
              }
28321
            } else { 
28322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28323
            }
28324
            break;
28325
          default:
28326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28327
        }
28328
        iprot.readFieldEnd();
28329
      }
28330
      iprot.readStructEnd();
28331
      validate();
28332
    }
28333
 
28334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28335
      oprot.writeStructBegin(STRUCT_DESC);
28336
 
28337
      if (this.isSetSuccess()) {
28338
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28339
        {
28340
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 28341
          for (Warehouse _iter74 : this.success)
5945 mandeep.dh 28342
          {
8182 amar.kumar 28343
            _iter74.write(oprot);
5945 mandeep.dh 28344
          }
28345
          oprot.writeListEnd();
28346
        }
28347
        oprot.writeFieldEnd();
28348
      }
28349
      oprot.writeFieldStop();
28350
      oprot.writeStructEnd();
28351
    }
28352
 
28353
    @Override
28354
    public String toString() {
28355
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
28356
      boolean first = true;
28357
 
28358
      sb.append("success:");
28359
      if (this.success == null) {
28360
        sb.append("null");
28361
      } else {
28362
        sb.append(this.success);
28363
      }
28364
      first = false;
28365
      sb.append(")");
28366
      return sb.toString();
28367
    }
28368
 
28369
    public void validate() throws org.apache.thrift.TException {
28370
      // check for required fields
28371
    }
28372
 
28373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28374
      try {
28375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28376
      } catch (org.apache.thrift.TException te) {
28377
        throw new java.io.IOException(te);
28378
      }
28379
    }
28380
 
28381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28382
      try {
28383
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28384
      } catch (org.apache.thrift.TException te) {
28385
        throw new java.io.IOException(te);
28386
      }
28387
    }
28388
 
28389
  }
28390
 
28391
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
28392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
28393
 
28394
 
28395
 
28396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28398
;
28399
 
28400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28401
 
28402
      static {
28403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28404
          byName.put(field.getFieldName(), field);
28405
        }
28406
      }
28407
 
28408
      /**
28409
       * Find the _Fields constant that matches fieldId, or null if its not found.
28410
       */
28411
      public static _Fields findByThriftId(int fieldId) {
28412
        switch(fieldId) {
28413
          default:
28414
            return null;
28415
        }
28416
      }
28417
 
28418
      /**
28419
       * Find the _Fields constant that matches fieldId, throwing an exception
28420
       * if it is not found.
28421
       */
28422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28423
        _Fields fields = findByThriftId(fieldId);
28424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28425
        return fields;
28426
      }
28427
 
28428
      /**
28429
       * Find the _Fields constant that matches name, or null if its not found.
28430
       */
28431
      public static _Fields findByName(String name) {
28432
        return byName.get(name);
28433
      }
28434
 
28435
      private final short _thriftId;
28436
      private final String _fieldName;
28437
 
28438
      _Fields(short thriftId, String fieldName) {
28439
        _thriftId = thriftId;
28440
        _fieldName = fieldName;
28441
      }
28442
 
28443
      public short getThriftFieldId() {
28444
        return _thriftId;
28445
      }
28446
 
28447
      public String getFieldName() {
28448
        return _fieldName;
28449
      }
28450
    }
28451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28452
    static {
28453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
28456
    }
28457
 
28458
    public getAllVendorItemMappings_args() {
28459
    }
28460
 
28461
    /**
28462
     * Performs a deep copy on <i>other</i>.
28463
     */
28464
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
28465
    }
28466
 
28467
    public getAllVendorItemMappings_args deepCopy() {
28468
      return new getAllVendorItemMappings_args(this);
28469
    }
28470
 
28471
    @Override
28472
    public void clear() {
28473
    }
28474
 
28475
    public void setFieldValue(_Fields field, Object value) {
28476
      switch (field) {
28477
      }
28478
    }
28479
 
28480
    public Object getFieldValue(_Fields field) {
28481
      switch (field) {
28482
      }
28483
      throw new IllegalStateException();
28484
    }
28485
 
28486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28487
    public boolean isSet(_Fields field) {
28488
      if (field == null) {
28489
        throw new IllegalArgumentException();
28490
      }
28491
 
28492
      switch (field) {
28493
      }
28494
      throw new IllegalStateException();
28495
    }
28496
 
28497
    @Override
28498
    public boolean equals(Object that) {
28499
      if (that == null)
28500
        return false;
28501
      if (that instanceof getAllVendorItemMappings_args)
28502
        return this.equals((getAllVendorItemMappings_args)that);
28503
      return false;
28504
    }
28505
 
28506
    public boolean equals(getAllVendorItemMappings_args that) {
28507
      if (that == null)
28508
        return false;
28509
 
28510
      return true;
28511
    }
28512
 
28513
    @Override
28514
    public int hashCode() {
28515
      return 0;
28516
    }
28517
 
28518
    public int compareTo(getAllVendorItemMappings_args other) {
28519
      if (!getClass().equals(other.getClass())) {
28520
        return getClass().getName().compareTo(other.getClass().getName());
28521
      }
28522
 
28523
      int lastComparison = 0;
28524
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
28525
 
28526
      return 0;
28527
    }
28528
 
28529
    public _Fields fieldForId(int fieldId) {
28530
      return _Fields.findByThriftId(fieldId);
28531
    }
28532
 
28533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28534
      org.apache.thrift.protocol.TField field;
28535
      iprot.readStructBegin();
28536
      while (true)
28537
      {
28538
        field = iprot.readFieldBegin();
28539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28540
          break;
28541
        }
28542
        switch (field.id) {
28543
          default:
28544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28545
        }
28546
        iprot.readFieldEnd();
28547
      }
28548
      iprot.readStructEnd();
28549
      validate();
28550
    }
28551
 
28552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28553
      validate();
28554
 
28555
      oprot.writeStructBegin(STRUCT_DESC);
28556
      oprot.writeFieldStop();
28557
      oprot.writeStructEnd();
28558
    }
28559
 
28560
    @Override
28561
    public String toString() {
28562
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
28563
      boolean first = true;
28564
 
28565
      sb.append(")");
28566
      return sb.toString();
28567
    }
28568
 
28569
    public void validate() throws org.apache.thrift.TException {
28570
      // check for required fields
28571
    }
28572
 
28573
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28574
      try {
28575
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28576
      } catch (org.apache.thrift.TException te) {
28577
        throw new java.io.IOException(te);
28578
      }
28579
    }
28580
 
28581
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28582
      try {
28583
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28584
      } catch (org.apache.thrift.TException te) {
28585
        throw new java.io.IOException(te);
28586
      }
28587
    }
28588
 
28589
  }
28590
 
28591
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
28592
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
28593
 
28594
    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);
28595
 
28596
    private List<VendorItemMapping> success; // required
28597
 
28598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28599
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28600
      SUCCESS((short)0, "success");
28601
 
28602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28603
 
28604
      static {
28605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28606
          byName.put(field.getFieldName(), field);
28607
        }
28608
      }
28609
 
28610
      /**
28611
       * Find the _Fields constant that matches fieldId, or null if its not found.
28612
       */
28613
      public static _Fields findByThriftId(int fieldId) {
28614
        switch(fieldId) {
28615
          case 0: // SUCCESS
28616
            return SUCCESS;
28617
          default:
28618
            return null;
28619
        }
28620
      }
28621
 
28622
      /**
28623
       * Find the _Fields constant that matches fieldId, throwing an exception
28624
       * if it is not found.
28625
       */
28626
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28627
        _Fields fields = findByThriftId(fieldId);
28628
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28629
        return fields;
28630
      }
28631
 
28632
      /**
28633
       * Find the _Fields constant that matches name, or null if its not found.
28634
       */
28635
      public static _Fields findByName(String name) {
28636
        return byName.get(name);
28637
      }
28638
 
28639
      private final short _thriftId;
28640
      private final String _fieldName;
28641
 
28642
      _Fields(short thriftId, String fieldName) {
28643
        _thriftId = thriftId;
28644
        _fieldName = fieldName;
28645
      }
28646
 
28647
      public short getThriftFieldId() {
28648
        return _thriftId;
28649
      }
28650
 
28651
      public String getFieldName() {
28652
        return _fieldName;
28653
      }
28654
    }
28655
 
28656
    // isset id assignments
28657
 
28658
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28659
    static {
28660
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28661
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28662
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
28663
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
28664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
28666
    }
28667
 
28668
    public getAllVendorItemMappings_result() {
28669
    }
28670
 
28671
    public getAllVendorItemMappings_result(
28672
      List<VendorItemMapping> success)
28673
    {
28674
      this();
28675
      this.success = success;
28676
    }
28677
 
28678
    /**
28679
     * Performs a deep copy on <i>other</i>.
28680
     */
28681
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
28682
      if (other.isSetSuccess()) {
28683
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
28684
        for (VendorItemMapping other_element : other.success) {
28685
          __this__success.add(new VendorItemMapping(other_element));
28686
        }
28687
        this.success = __this__success;
28688
      }
28689
    }
28690
 
28691
    public getAllVendorItemMappings_result deepCopy() {
28692
      return new getAllVendorItemMappings_result(this);
28693
    }
28694
 
28695
    @Override
28696
    public void clear() {
28697
      this.success = null;
28698
    }
28699
 
28700
    public int getSuccessSize() {
28701
      return (this.success == null) ? 0 : this.success.size();
28702
    }
28703
 
28704
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
28705
      return (this.success == null) ? null : this.success.iterator();
28706
    }
28707
 
28708
    public void addToSuccess(VendorItemMapping elem) {
28709
      if (this.success == null) {
28710
        this.success = new ArrayList<VendorItemMapping>();
28711
      }
28712
      this.success.add(elem);
28713
    }
28714
 
28715
    public List<VendorItemMapping> getSuccess() {
28716
      return this.success;
28717
    }
28718
 
28719
    public void setSuccess(List<VendorItemMapping> success) {
28720
      this.success = success;
28721
    }
28722
 
28723
    public void unsetSuccess() {
28724
      this.success = null;
28725
    }
28726
 
28727
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28728
    public boolean isSetSuccess() {
28729
      return this.success != null;
28730
    }
28731
 
28732
    public void setSuccessIsSet(boolean value) {
28733
      if (!value) {
28734
        this.success = null;
28735
      }
28736
    }
28737
 
28738
    public void setFieldValue(_Fields field, Object value) {
28739
      switch (field) {
28740
      case SUCCESS:
28741
        if (value == null) {
28742
          unsetSuccess();
28743
        } else {
28744
          setSuccess((List<VendorItemMapping>)value);
28745
        }
28746
        break;
28747
 
28748
      }
28749
    }
28750
 
28751
    public Object getFieldValue(_Fields field) {
28752
      switch (field) {
28753
      case SUCCESS:
28754
        return getSuccess();
28755
 
28756
      }
28757
      throw new IllegalStateException();
28758
    }
28759
 
28760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28761
    public boolean isSet(_Fields field) {
28762
      if (field == null) {
28763
        throw new IllegalArgumentException();
28764
      }
28765
 
28766
      switch (field) {
28767
      case SUCCESS:
28768
        return isSetSuccess();
28769
      }
28770
      throw new IllegalStateException();
28771
    }
28772
 
28773
    @Override
28774
    public boolean equals(Object that) {
28775
      if (that == null)
28776
        return false;
28777
      if (that instanceof getAllVendorItemMappings_result)
28778
        return this.equals((getAllVendorItemMappings_result)that);
28779
      return false;
28780
    }
28781
 
28782
    public boolean equals(getAllVendorItemMappings_result that) {
28783
      if (that == null)
28784
        return false;
28785
 
28786
      boolean this_present_success = true && this.isSetSuccess();
28787
      boolean that_present_success = true && that.isSetSuccess();
28788
      if (this_present_success || that_present_success) {
28789
        if (!(this_present_success && that_present_success))
28790
          return false;
28791
        if (!this.success.equals(that.success))
28792
          return false;
28793
      }
28794
 
28795
      return true;
28796
    }
28797
 
28798
    @Override
28799
    public int hashCode() {
28800
      return 0;
28801
    }
28802
 
28803
    public int compareTo(getAllVendorItemMappings_result other) {
28804
      if (!getClass().equals(other.getClass())) {
28805
        return getClass().getName().compareTo(other.getClass().getName());
28806
      }
28807
 
28808
      int lastComparison = 0;
28809
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
28810
 
28811
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28812
      if (lastComparison != 0) {
28813
        return lastComparison;
28814
      }
28815
      if (isSetSuccess()) {
28816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28817
        if (lastComparison != 0) {
28818
          return lastComparison;
28819
        }
28820
      }
28821
      return 0;
28822
    }
28823
 
28824
    public _Fields fieldForId(int fieldId) {
28825
      return _Fields.findByThriftId(fieldId);
28826
    }
28827
 
28828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28829
      org.apache.thrift.protocol.TField field;
28830
      iprot.readStructBegin();
28831
      while (true)
28832
      {
28833
        field = iprot.readFieldBegin();
28834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28835
          break;
28836
        }
28837
        switch (field.id) {
28838
          case 0: // SUCCESS
28839
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
28840
              {
8182 amar.kumar 28841
                org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
28842
                this.success = new ArrayList<VendorItemMapping>(_list75.size);
28843
                for (int _i76 = 0; _i76 < _list75.size; ++_i76)
5945 mandeep.dh 28844
                {
8182 amar.kumar 28845
                  VendorItemMapping _elem77; // required
28846
                  _elem77 = new VendorItemMapping();
28847
                  _elem77.read(iprot);
28848
                  this.success.add(_elem77);
5945 mandeep.dh 28849
                }
28850
                iprot.readListEnd();
28851
              }
28852
            } else { 
28853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28854
            }
28855
            break;
28856
          default:
28857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28858
        }
28859
        iprot.readFieldEnd();
28860
      }
28861
      iprot.readStructEnd();
28862
      validate();
28863
    }
28864
 
28865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28866
      oprot.writeStructBegin(STRUCT_DESC);
28867
 
28868
      if (this.isSetSuccess()) {
28869
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28870
        {
28871
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 28872
          for (VendorItemMapping _iter78 : this.success)
5945 mandeep.dh 28873
          {
8182 amar.kumar 28874
            _iter78.write(oprot);
5945 mandeep.dh 28875
          }
28876
          oprot.writeListEnd();
28877
        }
28878
        oprot.writeFieldEnd();
28879
      }
28880
      oprot.writeFieldStop();
28881
      oprot.writeStructEnd();
28882
    }
28883
 
28884
    @Override
28885
    public String toString() {
28886
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
28887
      boolean first = true;
28888
 
28889
      sb.append("success:");
28890
      if (this.success == null) {
28891
        sb.append("null");
28892
      } else {
28893
        sb.append(this.success);
28894
      }
28895
      first = false;
28896
      sb.append(")");
28897
      return sb.toString();
28898
    }
28899
 
28900
    public void validate() throws org.apache.thrift.TException {
28901
      // check for required fields
28902
    }
28903
 
28904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28905
      try {
28906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28907
      } catch (org.apache.thrift.TException te) {
28908
        throw new java.io.IOException(te);
28909
      }
28910
    }
28911
 
28912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28913
      try {
28914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28915
      } catch (org.apache.thrift.TException te) {
28916
        throw new java.io.IOException(te);
28917
      }
28918
    }
28919
 
28920
  }
28921
 
28922
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
28923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
28924
 
28925
    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);
28926
 
28927
    private long warehouseId; // required
28928
 
28929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28931
      WAREHOUSE_ID((short)1, "warehouseId");
28932
 
28933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28934
 
28935
      static {
28936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28937
          byName.put(field.getFieldName(), field);
28938
        }
28939
      }
28940
 
28941
      /**
28942
       * Find the _Fields constant that matches fieldId, or null if its not found.
28943
       */
28944
      public static _Fields findByThriftId(int fieldId) {
28945
        switch(fieldId) {
28946
          case 1: // WAREHOUSE_ID
28947
            return WAREHOUSE_ID;
28948
          default:
28949
            return null;
28950
        }
28951
      }
28952
 
28953
      /**
28954
       * Find the _Fields constant that matches fieldId, throwing an exception
28955
       * if it is not found.
28956
       */
28957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28958
        _Fields fields = findByThriftId(fieldId);
28959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28960
        return fields;
28961
      }
28962
 
28963
      /**
28964
       * Find the _Fields constant that matches name, or null if its not found.
28965
       */
28966
      public static _Fields findByName(String name) {
28967
        return byName.get(name);
28968
      }
28969
 
28970
      private final short _thriftId;
28971
      private final String _fieldName;
28972
 
28973
      _Fields(short thriftId, String fieldName) {
28974
        _thriftId = thriftId;
28975
        _fieldName = fieldName;
28976
      }
28977
 
28978
      public short getThriftFieldId() {
28979
        return _thriftId;
28980
      }
28981
 
28982
      public String getFieldName() {
28983
        return _fieldName;
28984
      }
28985
    }
28986
 
28987
    // isset id assignments
28988
    private static final int __WAREHOUSEID_ISSET_ID = 0;
28989
    private BitSet __isset_bit_vector = new BitSet(1);
28990
 
28991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28992
    static {
28993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28994
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
28998
    }
28999
 
29000
    public getInventorySnapshot_args() {
29001
    }
29002
 
29003
    public getInventorySnapshot_args(
29004
      long warehouseId)
29005
    {
29006
      this();
29007
      this.warehouseId = warehouseId;
29008
      setWarehouseIdIsSet(true);
29009
    }
29010
 
29011
    /**
29012
     * Performs a deep copy on <i>other</i>.
29013
     */
29014
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
29015
      __isset_bit_vector.clear();
29016
      __isset_bit_vector.or(other.__isset_bit_vector);
29017
      this.warehouseId = other.warehouseId;
29018
    }
29019
 
29020
    public getInventorySnapshot_args deepCopy() {
29021
      return new getInventorySnapshot_args(this);
29022
    }
29023
 
29024
    @Override
29025
    public void clear() {
29026
      setWarehouseIdIsSet(false);
29027
      this.warehouseId = 0;
29028
    }
29029
 
29030
    public long getWarehouseId() {
29031
      return this.warehouseId;
29032
    }
29033
 
29034
    public void setWarehouseId(long warehouseId) {
29035
      this.warehouseId = warehouseId;
29036
      setWarehouseIdIsSet(true);
29037
    }
29038
 
29039
    public void unsetWarehouseId() {
29040
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
29041
    }
29042
 
29043
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
29044
    public boolean isSetWarehouseId() {
29045
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
29046
    }
29047
 
29048
    public void setWarehouseIdIsSet(boolean value) {
29049
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
29050
    }
29051
 
29052
    public void setFieldValue(_Fields field, Object value) {
29053
      switch (field) {
29054
      case WAREHOUSE_ID:
29055
        if (value == null) {
29056
          unsetWarehouseId();
29057
        } else {
29058
          setWarehouseId((Long)value);
29059
        }
29060
        break;
29061
 
29062
      }
29063
    }
29064
 
29065
    public Object getFieldValue(_Fields field) {
29066
      switch (field) {
29067
      case WAREHOUSE_ID:
29068
        return Long.valueOf(getWarehouseId());
29069
 
29070
      }
29071
      throw new IllegalStateException();
29072
    }
29073
 
29074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29075
    public boolean isSet(_Fields field) {
29076
      if (field == null) {
29077
        throw new IllegalArgumentException();
29078
      }
29079
 
29080
      switch (field) {
29081
      case WAREHOUSE_ID:
29082
        return isSetWarehouseId();
29083
      }
29084
      throw new IllegalStateException();
29085
    }
29086
 
29087
    @Override
29088
    public boolean equals(Object that) {
29089
      if (that == null)
29090
        return false;
29091
      if (that instanceof getInventorySnapshot_args)
29092
        return this.equals((getInventorySnapshot_args)that);
29093
      return false;
29094
    }
29095
 
29096
    public boolean equals(getInventorySnapshot_args that) {
29097
      if (that == null)
29098
        return false;
29099
 
29100
      boolean this_present_warehouseId = true;
29101
      boolean that_present_warehouseId = true;
29102
      if (this_present_warehouseId || that_present_warehouseId) {
29103
        if (!(this_present_warehouseId && that_present_warehouseId))
29104
          return false;
29105
        if (this.warehouseId != that.warehouseId)
29106
          return false;
29107
      }
29108
 
29109
      return true;
29110
    }
29111
 
29112
    @Override
29113
    public int hashCode() {
29114
      return 0;
29115
    }
29116
 
29117
    public int compareTo(getInventorySnapshot_args other) {
29118
      if (!getClass().equals(other.getClass())) {
29119
        return getClass().getName().compareTo(other.getClass().getName());
29120
      }
29121
 
29122
      int lastComparison = 0;
29123
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
29124
 
29125
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
29126
      if (lastComparison != 0) {
29127
        return lastComparison;
29128
      }
29129
      if (isSetWarehouseId()) {
29130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
29131
        if (lastComparison != 0) {
29132
          return lastComparison;
29133
        }
29134
      }
29135
      return 0;
29136
    }
29137
 
29138
    public _Fields fieldForId(int fieldId) {
29139
      return _Fields.findByThriftId(fieldId);
29140
    }
29141
 
29142
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29143
      org.apache.thrift.protocol.TField field;
29144
      iprot.readStructBegin();
29145
      while (true)
29146
      {
29147
        field = iprot.readFieldBegin();
29148
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29149
          break;
29150
        }
29151
        switch (field.id) {
29152
          case 1: // WAREHOUSE_ID
29153
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29154
              this.warehouseId = iprot.readI64();
29155
              setWarehouseIdIsSet(true);
29156
            } else { 
29157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29158
            }
29159
            break;
29160
          default:
29161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29162
        }
29163
        iprot.readFieldEnd();
29164
      }
29165
      iprot.readStructEnd();
29166
      validate();
29167
    }
29168
 
29169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29170
      validate();
29171
 
29172
      oprot.writeStructBegin(STRUCT_DESC);
29173
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
29174
      oprot.writeI64(this.warehouseId);
29175
      oprot.writeFieldEnd();
29176
      oprot.writeFieldStop();
29177
      oprot.writeStructEnd();
29178
    }
29179
 
29180
    @Override
29181
    public String toString() {
29182
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
29183
      boolean first = true;
29184
 
29185
      sb.append("warehouseId:");
29186
      sb.append(this.warehouseId);
29187
      first = false;
29188
      sb.append(")");
29189
      return sb.toString();
29190
    }
29191
 
29192
    public void validate() throws org.apache.thrift.TException {
29193
      // check for required fields
29194
    }
29195
 
29196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29197
      try {
29198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29199
      } catch (org.apache.thrift.TException te) {
29200
        throw new java.io.IOException(te);
29201
      }
29202
    }
29203
 
29204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29205
      try {
29206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29207
      } catch (org.apache.thrift.TException te) {
29208
        throw new java.io.IOException(te);
29209
      }
29210
    }
29211
 
29212
  }
29213
 
29214
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
29215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
29216
 
29217
    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);
29218
 
29219
    private Map<Long,ItemInventory> success; // required
29220
 
29221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29223
      SUCCESS((short)0, "success");
29224
 
29225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29226
 
29227
      static {
29228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29229
          byName.put(field.getFieldName(), field);
29230
        }
29231
      }
29232
 
29233
      /**
29234
       * Find the _Fields constant that matches fieldId, or null if its not found.
29235
       */
29236
      public static _Fields findByThriftId(int fieldId) {
29237
        switch(fieldId) {
29238
          case 0: // SUCCESS
29239
            return SUCCESS;
29240
          default:
29241
            return null;
29242
        }
29243
      }
29244
 
29245
      /**
29246
       * Find the _Fields constant that matches fieldId, throwing an exception
29247
       * if it is not found.
29248
       */
29249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29250
        _Fields fields = findByThriftId(fieldId);
29251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29252
        return fields;
29253
      }
29254
 
29255
      /**
29256
       * Find the _Fields constant that matches name, or null if its not found.
29257
       */
29258
      public static _Fields findByName(String name) {
29259
        return byName.get(name);
29260
      }
29261
 
29262
      private final short _thriftId;
29263
      private final String _fieldName;
29264
 
29265
      _Fields(short thriftId, String fieldName) {
29266
        _thriftId = thriftId;
29267
        _fieldName = fieldName;
29268
      }
29269
 
29270
      public short getThriftFieldId() {
29271
        return _thriftId;
29272
      }
29273
 
29274
      public String getFieldName() {
29275
        return _fieldName;
29276
      }
29277
    }
29278
 
29279
    // isset id assignments
29280
 
29281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29282
    static {
29283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29284
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29285
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
29286
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
29287
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
29288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
29290
    }
29291
 
29292
    public getInventorySnapshot_result() {
29293
    }
29294
 
29295
    public getInventorySnapshot_result(
29296
      Map<Long,ItemInventory> success)
29297
    {
29298
      this();
29299
      this.success = success;
29300
    }
29301
 
29302
    /**
29303
     * Performs a deep copy on <i>other</i>.
29304
     */
29305
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
29306
      if (other.isSetSuccess()) {
29307
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
29308
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
29309
 
29310
          Long other_element_key = other_element.getKey();
29311
          ItemInventory other_element_value = other_element.getValue();
29312
 
29313
          Long __this__success_copy_key = other_element_key;
29314
 
29315
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
29316
 
29317
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
29318
        }
29319
        this.success = __this__success;
29320
      }
29321
    }
29322
 
29323
    public getInventorySnapshot_result deepCopy() {
29324
      return new getInventorySnapshot_result(this);
29325
    }
29326
 
29327
    @Override
29328
    public void clear() {
29329
      this.success = null;
29330
    }
29331
 
29332
    public int getSuccessSize() {
29333
      return (this.success == null) ? 0 : this.success.size();
29334
    }
29335
 
29336
    public void putToSuccess(long key, ItemInventory val) {
29337
      if (this.success == null) {
29338
        this.success = new HashMap<Long,ItemInventory>();
29339
      }
29340
      this.success.put(key, val);
29341
    }
29342
 
29343
    public Map<Long,ItemInventory> getSuccess() {
29344
      return this.success;
29345
    }
29346
 
29347
    public void setSuccess(Map<Long,ItemInventory> success) {
29348
      this.success = success;
29349
    }
29350
 
29351
    public void unsetSuccess() {
29352
      this.success = null;
29353
    }
29354
 
29355
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29356
    public boolean isSetSuccess() {
29357
      return this.success != null;
29358
    }
29359
 
29360
    public void setSuccessIsSet(boolean value) {
29361
      if (!value) {
29362
        this.success = null;
29363
      }
29364
    }
29365
 
29366
    public void setFieldValue(_Fields field, Object value) {
29367
      switch (field) {
29368
      case SUCCESS:
29369
        if (value == null) {
29370
          unsetSuccess();
29371
        } else {
29372
          setSuccess((Map<Long,ItemInventory>)value);
29373
        }
29374
        break;
29375
 
29376
      }
29377
    }
29378
 
29379
    public Object getFieldValue(_Fields field) {
29380
      switch (field) {
29381
      case SUCCESS:
29382
        return getSuccess();
29383
 
29384
      }
29385
      throw new IllegalStateException();
29386
    }
29387
 
29388
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29389
    public boolean isSet(_Fields field) {
29390
      if (field == null) {
29391
        throw new IllegalArgumentException();
29392
      }
29393
 
29394
      switch (field) {
29395
      case SUCCESS:
29396
        return isSetSuccess();
29397
      }
29398
      throw new IllegalStateException();
29399
    }
29400
 
29401
    @Override
29402
    public boolean equals(Object that) {
29403
      if (that == null)
29404
        return false;
29405
      if (that instanceof getInventorySnapshot_result)
29406
        return this.equals((getInventorySnapshot_result)that);
29407
      return false;
29408
    }
29409
 
29410
    public boolean equals(getInventorySnapshot_result that) {
29411
      if (that == null)
29412
        return false;
29413
 
29414
      boolean this_present_success = true && this.isSetSuccess();
29415
      boolean that_present_success = true && that.isSetSuccess();
29416
      if (this_present_success || that_present_success) {
29417
        if (!(this_present_success && that_present_success))
29418
          return false;
29419
        if (!this.success.equals(that.success))
29420
          return false;
29421
      }
29422
 
29423
      return true;
29424
    }
29425
 
29426
    @Override
29427
    public int hashCode() {
29428
      return 0;
29429
    }
29430
 
29431
    public int compareTo(getInventorySnapshot_result other) {
29432
      if (!getClass().equals(other.getClass())) {
29433
        return getClass().getName().compareTo(other.getClass().getName());
29434
      }
29435
 
29436
      int lastComparison = 0;
29437
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
29438
 
29439
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29440
      if (lastComparison != 0) {
29441
        return lastComparison;
29442
      }
29443
      if (isSetSuccess()) {
29444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29445
        if (lastComparison != 0) {
29446
          return lastComparison;
29447
        }
29448
      }
29449
      return 0;
29450
    }
29451
 
29452
    public _Fields fieldForId(int fieldId) {
29453
      return _Fields.findByThriftId(fieldId);
29454
    }
29455
 
29456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29457
      org.apache.thrift.protocol.TField field;
29458
      iprot.readStructBegin();
29459
      while (true)
29460
      {
29461
        field = iprot.readFieldBegin();
29462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29463
          break;
29464
        }
29465
        switch (field.id) {
29466
          case 0: // SUCCESS
29467
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
29468
              {
8182 amar.kumar 29469
                org.apache.thrift.protocol.TMap _map79 = iprot.readMapBegin();
29470
                this.success = new HashMap<Long,ItemInventory>(2*_map79.size);
29471
                for (int _i80 = 0; _i80 < _map79.size; ++_i80)
5945 mandeep.dh 29472
                {
8182 amar.kumar 29473
                  long _key81; // required
29474
                  ItemInventory _val82; // required
29475
                  _key81 = iprot.readI64();
29476
                  _val82 = new ItemInventory();
29477
                  _val82.read(iprot);
29478
                  this.success.put(_key81, _val82);
5945 mandeep.dh 29479
                }
29480
                iprot.readMapEnd();
29481
              }
29482
            } else { 
29483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29484
            }
29485
            break;
29486
          default:
29487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29488
        }
29489
        iprot.readFieldEnd();
29490
      }
29491
      iprot.readStructEnd();
29492
      validate();
29493
    }
29494
 
29495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29496
      oprot.writeStructBegin(STRUCT_DESC);
29497
 
29498
      if (this.isSetSuccess()) {
29499
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29500
        {
29501
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 29502
          for (Map.Entry<Long, ItemInventory> _iter83 : this.success.entrySet())
5945 mandeep.dh 29503
          {
8182 amar.kumar 29504
            oprot.writeI64(_iter83.getKey());
29505
            _iter83.getValue().write(oprot);
5945 mandeep.dh 29506
          }
29507
          oprot.writeMapEnd();
29508
        }
29509
        oprot.writeFieldEnd();
29510
      }
29511
      oprot.writeFieldStop();
29512
      oprot.writeStructEnd();
29513
    }
29514
 
29515
    @Override
29516
    public String toString() {
29517
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
29518
      boolean first = true;
29519
 
29520
      sb.append("success:");
29521
      if (this.success == null) {
29522
        sb.append("null");
29523
      } else {
29524
        sb.append(this.success);
29525
      }
29526
      first = false;
29527
      sb.append(")");
29528
      return sb.toString();
29529
    }
29530
 
29531
    public void validate() throws org.apache.thrift.TException {
29532
      // check for required fields
29533
    }
29534
 
29535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29536
      try {
29537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29538
      } catch (org.apache.thrift.TException te) {
29539
        throw new java.io.IOException(te);
29540
      }
29541
    }
29542
 
29543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29544
      try {
29545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29546
      } catch (org.apache.thrift.TException te) {
29547
        throw new java.io.IOException(te);
29548
      }
29549
    }
29550
 
29551
  }
29552
 
29553
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
29554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
29555
 
29556
 
29557
 
29558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29560
;
29561
 
29562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29563
 
29564
      static {
29565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29566
          byName.put(field.getFieldName(), field);
29567
        }
29568
      }
29569
 
29570
      /**
29571
       * Find the _Fields constant that matches fieldId, or null if its not found.
29572
       */
29573
      public static _Fields findByThriftId(int fieldId) {
29574
        switch(fieldId) {
29575
          default:
29576
            return null;
29577
        }
29578
      }
29579
 
29580
      /**
29581
       * Find the _Fields constant that matches fieldId, throwing an exception
29582
       * if it is not found.
29583
       */
29584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29585
        _Fields fields = findByThriftId(fieldId);
29586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29587
        return fields;
29588
      }
29589
 
29590
      /**
29591
       * Find the _Fields constant that matches name, or null if its not found.
29592
       */
29593
      public static _Fields findByName(String name) {
29594
        return byName.get(name);
29595
      }
29596
 
29597
      private final short _thriftId;
29598
      private final String _fieldName;
29599
 
29600
      _Fields(short thriftId, String fieldName) {
29601
        _thriftId = thriftId;
29602
        _fieldName = fieldName;
29603
      }
29604
 
29605
      public short getThriftFieldId() {
29606
        return _thriftId;
29607
      }
29608
 
29609
      public String getFieldName() {
29610
        return _fieldName;
29611
      }
29612
    }
29613
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29614
    static {
29615
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
29618
    }
29619
 
29620
    public clearItemAvailabilityCache_args() {
29621
    }
29622
 
29623
    /**
29624
     * Performs a deep copy on <i>other</i>.
29625
     */
29626
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
29627
    }
29628
 
29629
    public clearItemAvailabilityCache_args deepCopy() {
29630
      return new clearItemAvailabilityCache_args(this);
29631
    }
29632
 
29633
    @Override
29634
    public void clear() {
29635
    }
29636
 
29637
    public void setFieldValue(_Fields field, Object value) {
29638
      switch (field) {
29639
      }
29640
    }
29641
 
29642
    public Object getFieldValue(_Fields field) {
29643
      switch (field) {
29644
      }
29645
      throw new IllegalStateException();
29646
    }
29647
 
29648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29649
    public boolean isSet(_Fields field) {
29650
      if (field == null) {
29651
        throw new IllegalArgumentException();
29652
      }
29653
 
29654
      switch (field) {
29655
      }
29656
      throw new IllegalStateException();
29657
    }
29658
 
29659
    @Override
29660
    public boolean equals(Object that) {
29661
      if (that == null)
29662
        return false;
29663
      if (that instanceof clearItemAvailabilityCache_args)
29664
        return this.equals((clearItemAvailabilityCache_args)that);
29665
      return false;
29666
    }
29667
 
29668
    public boolean equals(clearItemAvailabilityCache_args that) {
29669
      if (that == null)
29670
        return false;
29671
 
29672
      return true;
29673
    }
29674
 
29675
    @Override
29676
    public int hashCode() {
29677
      return 0;
29678
    }
29679
 
29680
    public int compareTo(clearItemAvailabilityCache_args other) {
29681
      if (!getClass().equals(other.getClass())) {
29682
        return getClass().getName().compareTo(other.getClass().getName());
29683
      }
29684
 
29685
      int lastComparison = 0;
29686
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
29687
 
29688
      return 0;
29689
    }
29690
 
29691
    public _Fields fieldForId(int fieldId) {
29692
      return _Fields.findByThriftId(fieldId);
29693
    }
29694
 
29695
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29696
      org.apache.thrift.protocol.TField field;
29697
      iprot.readStructBegin();
29698
      while (true)
29699
      {
29700
        field = iprot.readFieldBegin();
29701
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29702
          break;
29703
        }
29704
        switch (field.id) {
29705
          default:
29706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29707
        }
29708
        iprot.readFieldEnd();
29709
      }
29710
      iprot.readStructEnd();
29711
      validate();
29712
    }
29713
 
29714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29715
      validate();
29716
 
29717
      oprot.writeStructBegin(STRUCT_DESC);
29718
      oprot.writeFieldStop();
29719
      oprot.writeStructEnd();
29720
    }
29721
 
29722
    @Override
29723
    public String toString() {
29724
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
29725
      boolean first = true;
29726
 
29727
      sb.append(")");
29728
      return sb.toString();
29729
    }
29730
 
29731
    public void validate() throws org.apache.thrift.TException {
29732
      // check for required fields
29733
    }
29734
 
29735
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29736
      try {
29737
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29738
      } catch (org.apache.thrift.TException te) {
29739
        throw new java.io.IOException(te);
29740
      }
29741
    }
29742
 
29743
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29744
      try {
29745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29746
      } catch (org.apache.thrift.TException te) {
29747
        throw new java.io.IOException(te);
29748
      }
29749
    }
29750
 
29751
  }
29752
 
29753
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
29754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
29755
 
29756
 
29757
 
29758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29760
;
29761
 
29762
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29763
 
29764
      static {
29765
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29766
          byName.put(field.getFieldName(), field);
29767
        }
29768
      }
29769
 
29770
      /**
29771
       * Find the _Fields constant that matches fieldId, or null if its not found.
29772
       */
29773
      public static _Fields findByThriftId(int fieldId) {
29774
        switch(fieldId) {
29775
          default:
29776
            return null;
29777
        }
29778
      }
29779
 
29780
      /**
29781
       * Find the _Fields constant that matches fieldId, throwing an exception
29782
       * if it is not found.
29783
       */
29784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29785
        _Fields fields = findByThriftId(fieldId);
29786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29787
        return fields;
29788
      }
29789
 
29790
      /**
29791
       * Find the _Fields constant that matches name, or null if its not found.
29792
       */
29793
      public static _Fields findByName(String name) {
29794
        return byName.get(name);
29795
      }
29796
 
29797
      private final short _thriftId;
29798
      private final String _fieldName;
29799
 
29800
      _Fields(short thriftId, String fieldName) {
29801
        _thriftId = thriftId;
29802
        _fieldName = fieldName;
29803
      }
29804
 
29805
      public short getThriftFieldId() {
29806
        return _thriftId;
29807
      }
29808
 
29809
      public String getFieldName() {
29810
        return _fieldName;
29811
      }
29812
    }
29813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29814
    static {
29815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
29818
    }
29819
 
29820
    public clearItemAvailabilityCache_result() {
29821
    }
29822
 
29823
    /**
29824
     * Performs a deep copy on <i>other</i>.
29825
     */
29826
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
29827
    }
29828
 
29829
    public clearItemAvailabilityCache_result deepCopy() {
29830
      return new clearItemAvailabilityCache_result(this);
29831
    }
29832
 
29833
    @Override
29834
    public void clear() {
29835
    }
29836
 
29837
    public void setFieldValue(_Fields field, Object value) {
29838
      switch (field) {
29839
      }
29840
    }
29841
 
29842
    public Object getFieldValue(_Fields field) {
29843
      switch (field) {
29844
      }
29845
      throw new IllegalStateException();
29846
    }
29847
 
29848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29849
    public boolean isSet(_Fields field) {
29850
      if (field == null) {
29851
        throw new IllegalArgumentException();
29852
      }
29853
 
29854
      switch (field) {
29855
      }
29856
      throw new IllegalStateException();
29857
    }
29858
 
29859
    @Override
29860
    public boolean equals(Object that) {
29861
      if (that == null)
29862
        return false;
29863
      if (that instanceof clearItemAvailabilityCache_result)
29864
        return this.equals((clearItemAvailabilityCache_result)that);
29865
      return false;
29866
    }
29867
 
29868
    public boolean equals(clearItemAvailabilityCache_result that) {
29869
      if (that == null)
29870
        return false;
29871
 
29872
      return true;
29873
    }
29874
 
29875
    @Override
29876
    public int hashCode() {
29877
      return 0;
29878
    }
29879
 
29880
    public int compareTo(clearItemAvailabilityCache_result other) {
29881
      if (!getClass().equals(other.getClass())) {
29882
        return getClass().getName().compareTo(other.getClass().getName());
29883
      }
29884
 
29885
      int lastComparison = 0;
29886
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
29887
 
29888
      return 0;
29889
    }
29890
 
29891
    public _Fields fieldForId(int fieldId) {
29892
      return _Fields.findByThriftId(fieldId);
29893
    }
29894
 
29895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29896
      org.apache.thrift.protocol.TField field;
29897
      iprot.readStructBegin();
29898
      while (true)
29899
      {
29900
        field = iprot.readFieldBegin();
29901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29902
          break;
29903
        }
29904
        switch (field.id) {
29905
          default:
29906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29907
        }
29908
        iprot.readFieldEnd();
29909
      }
29910
      iprot.readStructEnd();
29911
      validate();
29912
    }
29913
 
29914
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29915
      oprot.writeStructBegin(STRUCT_DESC);
29916
 
29917
      oprot.writeFieldStop();
29918
      oprot.writeStructEnd();
29919
    }
29920
 
29921
    @Override
29922
    public String toString() {
29923
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
29924
      boolean first = true;
29925
 
29926
      sb.append(")");
29927
      return sb.toString();
29928
    }
29929
 
29930
    public void validate() throws org.apache.thrift.TException {
29931
      // check for required fields
29932
    }
29933
 
29934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29935
      try {
29936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29937
      } catch (org.apache.thrift.TException te) {
29938
        throw new java.io.IOException(te);
29939
      }
29940
    }
29941
 
29942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29943
      try {
29944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29945
      } catch (org.apache.thrift.TException te) {
29946
        throw new java.io.IOException(te);
29947
      }
29948
    }
29949
 
29950
  }
29951
 
29952
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
29953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
29954
 
29955
    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);
29956
    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);
29957
 
29958
    private long warehouseId; // required
29959
    private String vendorString; // required
29960
 
29961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29963
      WAREHOUSE_ID((short)1, "warehouseId"),
29964
      VENDOR_STRING((short)2, "vendorString");
29965
 
29966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29967
 
29968
      static {
29969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29970
          byName.put(field.getFieldName(), field);
29971
        }
29972
      }
29973
 
29974
      /**
29975
       * Find the _Fields constant that matches fieldId, or null if its not found.
29976
       */
29977
      public static _Fields findByThriftId(int fieldId) {
29978
        switch(fieldId) {
29979
          case 1: // WAREHOUSE_ID
29980
            return WAREHOUSE_ID;
29981
          case 2: // VENDOR_STRING
29982
            return VENDOR_STRING;
29983
          default:
29984
            return null;
29985
        }
29986
      }
29987
 
29988
      /**
29989
       * Find the _Fields constant that matches fieldId, throwing an exception
29990
       * if it is not found.
29991
       */
29992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29993
        _Fields fields = findByThriftId(fieldId);
29994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29995
        return fields;
29996
      }
29997
 
29998
      /**
29999
       * Find the _Fields constant that matches name, or null if its not found.
30000
       */
30001
      public static _Fields findByName(String name) {
30002
        return byName.get(name);
30003
      }
30004
 
30005
      private final short _thriftId;
30006
      private final String _fieldName;
30007
 
30008
      _Fields(short thriftId, String fieldName) {
30009
        _thriftId = thriftId;
30010
        _fieldName = fieldName;
30011
      }
30012
 
30013
      public short getThriftFieldId() {
30014
        return _thriftId;
30015
      }
30016
 
30017
      public String getFieldName() {
30018
        return _fieldName;
30019
      }
30020
    }
30021
 
30022
    // isset id assignments
30023
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30024
    private BitSet __isset_bit_vector = new BitSet(1);
30025
 
30026
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30027
    static {
30028
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30029
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30031
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
30035
    }
30036
 
30037
    public updateVendorString_args() {
30038
    }
30039
 
30040
    public updateVendorString_args(
30041
      long warehouseId,
30042
      String vendorString)
30043
    {
30044
      this();
30045
      this.warehouseId = warehouseId;
30046
      setWarehouseIdIsSet(true);
30047
      this.vendorString = vendorString;
30048
    }
30049
 
30050
    /**
30051
     * Performs a deep copy on <i>other</i>.
30052
     */
30053
    public updateVendorString_args(updateVendorString_args other) {
30054
      __isset_bit_vector.clear();
30055
      __isset_bit_vector.or(other.__isset_bit_vector);
30056
      this.warehouseId = other.warehouseId;
30057
      if (other.isSetVendorString()) {
30058
        this.vendorString = other.vendorString;
30059
      }
30060
    }
30061
 
30062
    public updateVendorString_args deepCopy() {
30063
      return new updateVendorString_args(this);
30064
    }
30065
 
30066
    @Override
30067
    public void clear() {
30068
      setWarehouseIdIsSet(false);
30069
      this.warehouseId = 0;
30070
      this.vendorString = null;
30071
    }
30072
 
30073
    public long getWarehouseId() {
30074
      return this.warehouseId;
30075
    }
30076
 
30077
    public void setWarehouseId(long warehouseId) {
30078
      this.warehouseId = warehouseId;
30079
      setWarehouseIdIsSet(true);
30080
    }
30081
 
30082
    public void unsetWarehouseId() {
30083
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30084
    }
30085
 
30086
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30087
    public boolean isSetWarehouseId() {
30088
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30089
    }
30090
 
30091
    public void setWarehouseIdIsSet(boolean value) {
30092
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30093
    }
30094
 
30095
    public String getVendorString() {
30096
      return this.vendorString;
30097
    }
30098
 
30099
    public void setVendorString(String vendorString) {
30100
      this.vendorString = vendorString;
30101
    }
30102
 
30103
    public void unsetVendorString() {
30104
      this.vendorString = null;
30105
    }
30106
 
30107
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
30108
    public boolean isSetVendorString() {
30109
      return this.vendorString != null;
30110
    }
30111
 
30112
    public void setVendorStringIsSet(boolean value) {
30113
      if (!value) {
30114
        this.vendorString = null;
30115
      }
30116
    }
30117
 
30118
    public void setFieldValue(_Fields field, Object value) {
30119
      switch (field) {
30120
      case WAREHOUSE_ID:
30121
        if (value == null) {
30122
          unsetWarehouseId();
30123
        } else {
30124
          setWarehouseId((Long)value);
30125
        }
30126
        break;
30127
 
30128
      case VENDOR_STRING:
30129
        if (value == null) {
30130
          unsetVendorString();
30131
        } else {
30132
          setVendorString((String)value);
30133
        }
30134
        break;
30135
 
30136
      }
30137
    }
30138
 
30139
    public Object getFieldValue(_Fields field) {
30140
      switch (field) {
30141
      case WAREHOUSE_ID:
30142
        return Long.valueOf(getWarehouseId());
30143
 
30144
      case VENDOR_STRING:
30145
        return getVendorString();
30146
 
30147
      }
30148
      throw new IllegalStateException();
30149
    }
30150
 
30151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30152
    public boolean isSet(_Fields field) {
30153
      if (field == null) {
30154
        throw new IllegalArgumentException();
30155
      }
30156
 
30157
      switch (field) {
30158
      case WAREHOUSE_ID:
30159
        return isSetWarehouseId();
30160
      case VENDOR_STRING:
30161
        return isSetVendorString();
30162
      }
30163
      throw new IllegalStateException();
30164
    }
30165
 
30166
    @Override
30167
    public boolean equals(Object that) {
30168
      if (that == null)
30169
        return false;
30170
      if (that instanceof updateVendorString_args)
30171
        return this.equals((updateVendorString_args)that);
30172
      return false;
30173
    }
30174
 
30175
    public boolean equals(updateVendorString_args that) {
30176
      if (that == null)
30177
        return false;
30178
 
30179
      boolean this_present_warehouseId = true;
30180
      boolean that_present_warehouseId = true;
30181
      if (this_present_warehouseId || that_present_warehouseId) {
30182
        if (!(this_present_warehouseId && that_present_warehouseId))
30183
          return false;
30184
        if (this.warehouseId != that.warehouseId)
30185
          return false;
30186
      }
30187
 
30188
      boolean this_present_vendorString = true && this.isSetVendorString();
30189
      boolean that_present_vendorString = true && that.isSetVendorString();
30190
      if (this_present_vendorString || that_present_vendorString) {
30191
        if (!(this_present_vendorString && that_present_vendorString))
30192
          return false;
30193
        if (!this.vendorString.equals(that.vendorString))
30194
          return false;
30195
      }
30196
 
30197
      return true;
30198
    }
30199
 
30200
    @Override
30201
    public int hashCode() {
30202
      return 0;
30203
    }
30204
 
30205
    public int compareTo(updateVendorString_args other) {
30206
      if (!getClass().equals(other.getClass())) {
30207
        return getClass().getName().compareTo(other.getClass().getName());
30208
      }
30209
 
30210
      int lastComparison = 0;
30211
      updateVendorString_args typedOther = (updateVendorString_args)other;
30212
 
30213
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30214
      if (lastComparison != 0) {
30215
        return lastComparison;
30216
      }
30217
      if (isSetWarehouseId()) {
30218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30219
        if (lastComparison != 0) {
30220
          return lastComparison;
30221
        }
30222
      }
30223
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
30224
      if (lastComparison != 0) {
30225
        return lastComparison;
30226
      }
30227
      if (isSetVendorString()) {
30228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
30229
        if (lastComparison != 0) {
30230
          return lastComparison;
30231
        }
30232
      }
30233
      return 0;
30234
    }
30235
 
30236
    public _Fields fieldForId(int fieldId) {
30237
      return _Fields.findByThriftId(fieldId);
30238
    }
30239
 
30240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30241
      org.apache.thrift.protocol.TField field;
30242
      iprot.readStructBegin();
30243
      while (true)
30244
      {
30245
        field = iprot.readFieldBegin();
30246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30247
          break;
30248
        }
30249
        switch (field.id) {
30250
          case 1: // WAREHOUSE_ID
30251
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30252
              this.warehouseId = iprot.readI64();
30253
              setWarehouseIdIsSet(true);
30254
            } else { 
30255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30256
            }
30257
            break;
30258
          case 2: // VENDOR_STRING
30259
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30260
              this.vendorString = iprot.readString();
30261
            } else { 
30262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30263
            }
30264
            break;
30265
          default:
30266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30267
        }
30268
        iprot.readFieldEnd();
30269
      }
30270
      iprot.readStructEnd();
30271
      validate();
30272
    }
30273
 
30274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30275
      validate();
30276
 
30277
      oprot.writeStructBegin(STRUCT_DESC);
30278
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30279
      oprot.writeI64(this.warehouseId);
30280
      oprot.writeFieldEnd();
30281
      if (this.vendorString != null) {
30282
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
30283
        oprot.writeString(this.vendorString);
30284
        oprot.writeFieldEnd();
30285
      }
30286
      oprot.writeFieldStop();
30287
      oprot.writeStructEnd();
30288
    }
30289
 
30290
    @Override
30291
    public String toString() {
30292
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
30293
      boolean first = true;
30294
 
30295
      sb.append("warehouseId:");
30296
      sb.append(this.warehouseId);
30297
      first = false;
30298
      if (!first) sb.append(", ");
30299
      sb.append("vendorString:");
30300
      if (this.vendorString == null) {
30301
        sb.append("null");
30302
      } else {
30303
        sb.append(this.vendorString);
30304
      }
30305
      first = false;
30306
      sb.append(")");
30307
      return sb.toString();
30308
    }
30309
 
30310
    public void validate() throws org.apache.thrift.TException {
30311
      // check for required fields
30312
    }
30313
 
30314
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30315
      try {
30316
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30317
      } catch (org.apache.thrift.TException te) {
30318
        throw new java.io.IOException(te);
30319
      }
30320
    }
30321
 
30322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30323
      try {
5967 rajveer 30324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30325
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 30326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30327
      } catch (org.apache.thrift.TException te) {
30328
        throw new java.io.IOException(te);
30329
      }
30330
    }
30331
 
30332
  }
30333
 
30334
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
30335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
30336
 
30337
 
30338
 
30339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30341
;
30342
 
30343
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30344
 
30345
      static {
30346
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30347
          byName.put(field.getFieldName(), field);
30348
        }
30349
      }
30350
 
30351
      /**
30352
       * Find the _Fields constant that matches fieldId, or null if its not found.
30353
       */
30354
      public static _Fields findByThriftId(int fieldId) {
30355
        switch(fieldId) {
30356
          default:
30357
            return null;
30358
        }
30359
      }
30360
 
30361
      /**
30362
       * Find the _Fields constant that matches fieldId, throwing an exception
30363
       * if it is not found.
30364
       */
30365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30366
        _Fields fields = findByThriftId(fieldId);
30367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30368
        return fields;
30369
      }
30370
 
30371
      /**
30372
       * Find the _Fields constant that matches name, or null if its not found.
30373
       */
30374
      public static _Fields findByName(String name) {
30375
        return byName.get(name);
30376
      }
30377
 
30378
      private final short _thriftId;
30379
      private final String _fieldName;
30380
 
30381
      _Fields(short thriftId, String fieldName) {
30382
        _thriftId = thriftId;
30383
        _fieldName = fieldName;
30384
      }
30385
 
30386
      public short getThriftFieldId() {
30387
        return _thriftId;
30388
      }
30389
 
30390
      public String getFieldName() {
30391
        return _fieldName;
30392
      }
30393
    }
30394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30395
    static {
30396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
30399
    }
30400
 
30401
    public updateVendorString_result() {
30402
    }
30403
 
30404
    /**
30405
     * Performs a deep copy on <i>other</i>.
30406
     */
30407
    public updateVendorString_result(updateVendorString_result other) {
30408
    }
30409
 
30410
    public updateVendorString_result deepCopy() {
30411
      return new updateVendorString_result(this);
30412
    }
30413
 
30414
    @Override
30415
    public void clear() {
30416
    }
30417
 
30418
    public void setFieldValue(_Fields field, Object value) {
30419
      switch (field) {
30420
      }
30421
    }
30422
 
30423
    public Object getFieldValue(_Fields field) {
30424
      switch (field) {
30425
      }
30426
      throw new IllegalStateException();
30427
    }
30428
 
30429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30430
    public boolean isSet(_Fields field) {
30431
      if (field == null) {
30432
        throw new IllegalArgumentException();
30433
      }
30434
 
30435
      switch (field) {
30436
      }
30437
      throw new IllegalStateException();
30438
    }
30439
 
30440
    @Override
30441
    public boolean equals(Object that) {
30442
      if (that == null)
30443
        return false;
30444
      if (that instanceof updateVendorString_result)
30445
        return this.equals((updateVendorString_result)that);
30446
      return false;
30447
    }
30448
 
30449
    public boolean equals(updateVendorString_result that) {
30450
      if (that == null)
30451
        return false;
30452
 
30453
      return true;
30454
    }
30455
 
30456
    @Override
30457
    public int hashCode() {
30458
      return 0;
30459
    }
30460
 
30461
    public int compareTo(updateVendorString_result other) {
30462
      if (!getClass().equals(other.getClass())) {
30463
        return getClass().getName().compareTo(other.getClass().getName());
30464
      }
30465
 
30466
      int lastComparison = 0;
30467
      updateVendorString_result typedOther = (updateVendorString_result)other;
30468
 
30469
      return 0;
30470
    }
30471
 
30472
    public _Fields fieldForId(int fieldId) {
30473
      return _Fields.findByThriftId(fieldId);
30474
    }
30475
 
30476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30477
      org.apache.thrift.protocol.TField field;
30478
      iprot.readStructBegin();
30479
      while (true)
30480
      {
30481
        field = iprot.readFieldBegin();
30482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30483
          break;
30484
        }
30485
        switch (field.id) {
30486
          default:
30487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30488
        }
30489
        iprot.readFieldEnd();
30490
      }
30491
      iprot.readStructEnd();
30492
      validate();
30493
    }
30494
 
30495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30496
      oprot.writeStructBegin(STRUCT_DESC);
30497
 
30498
      oprot.writeFieldStop();
30499
      oprot.writeStructEnd();
30500
    }
30501
 
30502
    @Override
30503
    public String toString() {
30504
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
30505
      boolean first = true;
30506
 
30507
      sb.append(")");
30508
      return sb.toString();
30509
    }
30510
 
30511
    public void validate() throws org.apache.thrift.TException {
30512
      // check for required fields
30513
    }
30514
 
30515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30516
      try {
30517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30518
      } catch (org.apache.thrift.TException te) {
30519
        throw new java.io.IOException(te);
30520
      }
30521
    }
30522
 
30523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30524
      try {
30525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30526
      } catch (org.apache.thrift.TException te) {
30527
        throw new java.io.IOException(te);
30528
      }
30529
    }
30530
 
30531
  }
30532
 
6096 amit.gupta 30533
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
30534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
30535
 
30536
    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);
30537
 
30538
    private long item_id; // required
30539
 
30540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30542
      ITEM_ID((short)1, "item_id");
30543
 
30544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30545
 
30546
      static {
30547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30548
          byName.put(field.getFieldName(), field);
30549
        }
30550
      }
30551
 
30552
      /**
30553
       * Find the _Fields constant that matches fieldId, or null if its not found.
30554
       */
30555
      public static _Fields findByThriftId(int fieldId) {
30556
        switch(fieldId) {
30557
          case 1: // ITEM_ID
30558
            return ITEM_ID;
30559
          default:
30560
            return null;
30561
        }
30562
      }
30563
 
30564
      /**
30565
       * Find the _Fields constant that matches fieldId, throwing an exception
30566
       * if it is not found.
30567
       */
30568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30569
        _Fields fields = findByThriftId(fieldId);
30570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30571
        return fields;
30572
      }
30573
 
30574
      /**
30575
       * Find the _Fields constant that matches name, or null if its not found.
30576
       */
30577
      public static _Fields findByName(String name) {
30578
        return byName.get(name);
30579
      }
30580
 
30581
      private final short _thriftId;
30582
      private final String _fieldName;
30583
 
30584
      _Fields(short thriftId, String fieldName) {
30585
        _thriftId = thriftId;
30586
        _fieldName = fieldName;
30587
      }
30588
 
30589
      public short getThriftFieldId() {
30590
        return _thriftId;
30591
      }
30592
 
30593
      public String getFieldName() {
30594
        return _fieldName;
30595
      }
30596
    }
30597
 
30598
    // isset id assignments
30599
    private static final int __ITEM_ID_ISSET_ID = 0;
30600
    private BitSet __isset_bit_vector = new BitSet(1);
30601
 
30602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30603
    static {
30604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30605
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
30609
    }
30610
 
30611
    public clearItemAvailabilityCacheForItem_args() {
30612
    }
30613
 
30614
    public clearItemAvailabilityCacheForItem_args(
30615
      long item_id)
30616
    {
30617
      this();
30618
      this.item_id = item_id;
30619
      setItem_idIsSet(true);
30620
    }
30621
 
30622
    /**
30623
     * Performs a deep copy on <i>other</i>.
30624
     */
30625
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
30626
      __isset_bit_vector.clear();
30627
      __isset_bit_vector.or(other.__isset_bit_vector);
30628
      this.item_id = other.item_id;
30629
    }
30630
 
30631
    public clearItemAvailabilityCacheForItem_args deepCopy() {
30632
      return new clearItemAvailabilityCacheForItem_args(this);
30633
    }
30634
 
30635
    @Override
30636
    public void clear() {
30637
      setItem_idIsSet(false);
30638
      this.item_id = 0;
30639
    }
30640
 
30641
    public long getItem_id() {
30642
      return this.item_id;
30643
    }
30644
 
30645
    public void setItem_id(long item_id) {
30646
      this.item_id = item_id;
30647
      setItem_idIsSet(true);
30648
    }
30649
 
30650
    public void unsetItem_id() {
30651
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
30652
    }
30653
 
30654
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
30655
    public boolean isSetItem_id() {
30656
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
30657
    }
30658
 
30659
    public void setItem_idIsSet(boolean value) {
30660
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
30661
    }
30662
 
30663
    public void setFieldValue(_Fields field, Object value) {
30664
      switch (field) {
30665
      case ITEM_ID:
30666
        if (value == null) {
30667
          unsetItem_id();
30668
        } else {
30669
          setItem_id((Long)value);
30670
        }
30671
        break;
30672
 
30673
      }
30674
    }
30675
 
30676
    public Object getFieldValue(_Fields field) {
30677
      switch (field) {
30678
      case ITEM_ID:
30679
        return Long.valueOf(getItem_id());
30680
 
30681
      }
30682
      throw new IllegalStateException();
30683
    }
30684
 
30685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30686
    public boolean isSet(_Fields field) {
30687
      if (field == null) {
30688
        throw new IllegalArgumentException();
30689
      }
30690
 
30691
      switch (field) {
30692
      case ITEM_ID:
30693
        return isSetItem_id();
30694
      }
30695
      throw new IllegalStateException();
30696
    }
30697
 
30698
    @Override
30699
    public boolean equals(Object that) {
30700
      if (that == null)
30701
        return false;
30702
      if (that instanceof clearItemAvailabilityCacheForItem_args)
30703
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
30704
      return false;
30705
    }
30706
 
30707
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
30708
      if (that == null)
30709
        return false;
30710
 
30711
      boolean this_present_item_id = true;
30712
      boolean that_present_item_id = true;
30713
      if (this_present_item_id || that_present_item_id) {
30714
        if (!(this_present_item_id && that_present_item_id))
30715
          return false;
30716
        if (this.item_id != that.item_id)
30717
          return false;
30718
      }
30719
 
30720
      return true;
30721
    }
30722
 
30723
    @Override
30724
    public int hashCode() {
30725
      return 0;
30726
    }
30727
 
30728
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
30729
      if (!getClass().equals(other.getClass())) {
30730
        return getClass().getName().compareTo(other.getClass().getName());
30731
      }
30732
 
30733
      int lastComparison = 0;
30734
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
30735
 
30736
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
30737
      if (lastComparison != 0) {
30738
        return lastComparison;
30739
      }
30740
      if (isSetItem_id()) {
30741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
30742
        if (lastComparison != 0) {
30743
          return lastComparison;
30744
        }
30745
      }
30746
      return 0;
30747
    }
30748
 
30749
    public _Fields fieldForId(int fieldId) {
30750
      return _Fields.findByThriftId(fieldId);
30751
    }
30752
 
30753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30754
      org.apache.thrift.protocol.TField field;
30755
      iprot.readStructBegin();
30756
      while (true)
30757
      {
30758
        field = iprot.readFieldBegin();
30759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30760
          break;
30761
        }
30762
        switch (field.id) {
30763
          case 1: // ITEM_ID
30764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30765
              this.item_id = iprot.readI64();
30766
              setItem_idIsSet(true);
30767
            } else { 
30768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30769
            }
30770
            break;
30771
          default:
30772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30773
        }
30774
        iprot.readFieldEnd();
30775
      }
30776
      iprot.readStructEnd();
30777
      validate();
30778
    }
30779
 
30780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30781
      validate();
30782
 
30783
      oprot.writeStructBegin(STRUCT_DESC);
30784
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
30785
      oprot.writeI64(this.item_id);
30786
      oprot.writeFieldEnd();
30787
      oprot.writeFieldStop();
30788
      oprot.writeStructEnd();
30789
    }
30790
 
30791
    @Override
30792
    public String toString() {
30793
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
30794
      boolean first = true;
30795
 
30796
      sb.append("item_id:");
30797
      sb.append(this.item_id);
30798
      first = false;
30799
      sb.append(")");
30800
      return sb.toString();
30801
    }
30802
 
30803
    public void validate() throws org.apache.thrift.TException {
30804
      // check for required fields
30805
    }
30806
 
30807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30808
      try {
30809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30810
      } catch (org.apache.thrift.TException te) {
30811
        throw new java.io.IOException(te);
30812
      }
30813
    }
30814
 
30815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30816
      try {
30817
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30818
        __isset_bit_vector = new BitSet(1);
30819
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30820
      } catch (org.apache.thrift.TException te) {
30821
        throw new java.io.IOException(te);
30822
      }
30823
    }
30824
 
30825
  }
30826
 
30827
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
30828
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
30829
 
30830
 
30831
 
30832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30834
;
30835
 
30836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30837
 
30838
      static {
30839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30840
          byName.put(field.getFieldName(), field);
30841
        }
30842
      }
30843
 
30844
      /**
30845
       * Find the _Fields constant that matches fieldId, or null if its not found.
30846
       */
30847
      public static _Fields findByThriftId(int fieldId) {
30848
        switch(fieldId) {
30849
          default:
30850
            return null;
30851
        }
30852
      }
30853
 
30854
      /**
30855
       * Find the _Fields constant that matches fieldId, throwing an exception
30856
       * if it is not found.
30857
       */
30858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30859
        _Fields fields = findByThriftId(fieldId);
30860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30861
        return fields;
30862
      }
30863
 
30864
      /**
30865
       * Find the _Fields constant that matches name, or null if its not found.
30866
       */
30867
      public static _Fields findByName(String name) {
30868
        return byName.get(name);
30869
      }
30870
 
30871
      private final short _thriftId;
30872
      private final String _fieldName;
30873
 
30874
      _Fields(short thriftId, String fieldName) {
30875
        _thriftId = thriftId;
30876
        _fieldName = fieldName;
30877
      }
30878
 
30879
      public short getThriftFieldId() {
30880
        return _thriftId;
30881
      }
30882
 
30883
      public String getFieldName() {
30884
        return _fieldName;
30885
      }
30886
    }
30887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30888
    static {
30889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
30892
    }
30893
 
30894
    public clearItemAvailabilityCacheForItem_result() {
30895
    }
30896
 
30897
    /**
30898
     * Performs a deep copy on <i>other</i>.
30899
     */
30900
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
30901
    }
30902
 
30903
    public clearItemAvailabilityCacheForItem_result deepCopy() {
30904
      return new clearItemAvailabilityCacheForItem_result(this);
30905
    }
30906
 
30907
    @Override
30908
    public void clear() {
30909
    }
30910
 
30911
    public void setFieldValue(_Fields field, Object value) {
30912
      switch (field) {
30913
      }
30914
    }
30915
 
30916
    public Object getFieldValue(_Fields field) {
30917
      switch (field) {
30918
      }
30919
      throw new IllegalStateException();
30920
    }
30921
 
30922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30923
    public boolean isSet(_Fields field) {
30924
      if (field == null) {
30925
        throw new IllegalArgumentException();
30926
      }
30927
 
30928
      switch (field) {
30929
      }
30930
      throw new IllegalStateException();
30931
    }
30932
 
30933
    @Override
30934
    public boolean equals(Object that) {
30935
      if (that == null)
30936
        return false;
30937
      if (that instanceof clearItemAvailabilityCacheForItem_result)
30938
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
30939
      return false;
30940
    }
30941
 
30942
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
30943
      if (that == null)
30944
        return false;
30945
 
30946
      return true;
30947
    }
30948
 
30949
    @Override
30950
    public int hashCode() {
30951
      return 0;
30952
    }
30953
 
30954
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
30955
      if (!getClass().equals(other.getClass())) {
30956
        return getClass().getName().compareTo(other.getClass().getName());
30957
      }
30958
 
30959
      int lastComparison = 0;
30960
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
30961
 
30962
      return 0;
30963
    }
30964
 
30965
    public _Fields fieldForId(int fieldId) {
30966
      return _Fields.findByThriftId(fieldId);
30967
    }
30968
 
30969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30970
      org.apache.thrift.protocol.TField field;
30971
      iprot.readStructBegin();
30972
      while (true)
30973
      {
30974
        field = iprot.readFieldBegin();
30975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30976
          break;
30977
        }
30978
        switch (field.id) {
30979
          default:
30980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30981
        }
30982
        iprot.readFieldEnd();
30983
      }
30984
      iprot.readStructEnd();
30985
      validate();
30986
    }
30987
 
30988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30989
      oprot.writeStructBegin(STRUCT_DESC);
30990
 
30991
      oprot.writeFieldStop();
30992
      oprot.writeStructEnd();
30993
    }
30994
 
30995
    @Override
30996
    public String toString() {
30997
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
30998
      boolean first = true;
30999
 
31000
      sb.append(")");
31001
      return sb.toString();
31002
    }
31003
 
31004
    public void validate() throws org.apache.thrift.TException {
31005
      // check for required fields
31006
    }
31007
 
31008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31009
      try {
31010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31011
      } catch (org.apache.thrift.TException te) {
31012
        throw new java.io.IOException(te);
31013
      }
31014
    }
31015
 
31016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31017
      try {
31018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31019
      } catch (org.apache.thrift.TException te) {
31020
        throw new java.io.IOException(te);
31021
      }
31022
    }
31023
 
31024
  }
31025
 
6467 amar.kumar 31026
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
31027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
31028
 
31029
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);
7718 amar.kumar 31030
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
6467 amar.kumar 31031
 
31032
    private long vendorId; // required
7718 amar.kumar 31033
    private long billingWarehouseId; // required
6467 amar.kumar 31034
 
31035
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31036
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7718 amar.kumar 31037
      VENDOR_ID((short)1, "vendorId"),
31038
      BILLING_WAREHOUSE_ID((short)2, "billingWarehouseId");
6467 amar.kumar 31039
 
31040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31041
 
31042
      static {
31043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31044
          byName.put(field.getFieldName(), field);
31045
        }
31046
      }
31047
 
31048
      /**
31049
       * Find the _Fields constant that matches fieldId, or null if its not found.
31050
       */
31051
      public static _Fields findByThriftId(int fieldId) {
31052
        switch(fieldId) {
31053
          case 1: // VENDOR_ID
31054
            return VENDOR_ID;
7718 amar.kumar 31055
          case 2: // BILLING_WAREHOUSE_ID
31056
            return BILLING_WAREHOUSE_ID;
6467 amar.kumar 31057
          default:
31058
            return null;
31059
        }
31060
      }
31061
 
31062
      /**
31063
       * Find the _Fields constant that matches fieldId, throwing an exception
31064
       * if it is not found.
31065
       */
31066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31067
        _Fields fields = findByThriftId(fieldId);
31068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31069
        return fields;
31070
      }
31071
 
31072
      /**
31073
       * Find the _Fields constant that matches name, or null if its not found.
31074
       */
31075
      public static _Fields findByName(String name) {
31076
        return byName.get(name);
31077
      }
31078
 
31079
      private final short _thriftId;
31080
      private final String _fieldName;
31081
 
31082
      _Fields(short thriftId, String fieldName) {
31083
        _thriftId = thriftId;
31084
        _fieldName = fieldName;
31085
      }
31086
 
31087
      public short getThriftFieldId() {
31088
        return _thriftId;
31089
      }
31090
 
31091
      public String getFieldName() {
31092
        return _fieldName;
31093
      }
31094
    }
31095
 
31096
    // isset id assignments
31097
    private static final int __VENDORID_ISSET_ID = 0;
7718 amar.kumar 31098
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
31099
    private BitSet __isset_bit_vector = new BitSet(2);
6467 amar.kumar 31100
 
31101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31102
    static {
31103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31104
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7718 amar.kumar 31106
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6467 amar.kumar 31108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
31110
    }
31111
 
31112
    public getOurWarehouseIdForVendor_args() {
31113
    }
31114
 
31115
    public getOurWarehouseIdForVendor_args(
7718 amar.kumar 31116
      long vendorId,
31117
      long billingWarehouseId)
6467 amar.kumar 31118
    {
31119
      this();
31120
      this.vendorId = vendorId;
31121
      setVendorIdIsSet(true);
7718 amar.kumar 31122
      this.billingWarehouseId = billingWarehouseId;
31123
      setBillingWarehouseIdIsSet(true);
6467 amar.kumar 31124
    }
31125
 
31126
    /**
31127
     * Performs a deep copy on <i>other</i>.
31128
     */
31129
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
31130
      __isset_bit_vector.clear();
31131
      __isset_bit_vector.or(other.__isset_bit_vector);
31132
      this.vendorId = other.vendorId;
7718 amar.kumar 31133
      this.billingWarehouseId = other.billingWarehouseId;
6467 amar.kumar 31134
    }
31135
 
31136
    public getOurWarehouseIdForVendor_args deepCopy() {
31137
      return new getOurWarehouseIdForVendor_args(this);
31138
    }
31139
 
31140
    @Override
31141
    public void clear() {
31142
      setVendorIdIsSet(false);
31143
      this.vendorId = 0;
7718 amar.kumar 31144
      setBillingWarehouseIdIsSet(false);
31145
      this.billingWarehouseId = 0;
6467 amar.kumar 31146
    }
31147
 
31148
    public long getVendorId() {
31149
      return this.vendorId;
31150
    }
31151
 
31152
    public void setVendorId(long vendorId) {
31153
      this.vendorId = vendorId;
31154
      setVendorIdIsSet(true);
31155
    }
31156
 
31157
    public void unsetVendorId() {
31158
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
31159
    }
31160
 
31161
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
31162
    public boolean isSetVendorId() {
31163
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
31164
    }
31165
 
31166
    public void setVendorIdIsSet(boolean value) {
31167
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
31168
    }
31169
 
7718 amar.kumar 31170
    public long getBillingWarehouseId() {
31171
      return this.billingWarehouseId;
31172
    }
31173
 
31174
    public void setBillingWarehouseId(long billingWarehouseId) {
31175
      this.billingWarehouseId = billingWarehouseId;
31176
      setBillingWarehouseIdIsSet(true);
31177
    }
31178
 
31179
    public void unsetBillingWarehouseId() {
31180
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
31181
    }
31182
 
31183
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
31184
    public boolean isSetBillingWarehouseId() {
31185
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
31186
    }
31187
 
31188
    public void setBillingWarehouseIdIsSet(boolean value) {
31189
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
31190
    }
31191
 
6467 amar.kumar 31192
    public void setFieldValue(_Fields field, Object value) {
31193
      switch (field) {
31194
      case VENDOR_ID:
31195
        if (value == null) {
31196
          unsetVendorId();
31197
        } else {
31198
          setVendorId((Long)value);
31199
        }
31200
        break;
31201
 
7718 amar.kumar 31202
      case BILLING_WAREHOUSE_ID:
31203
        if (value == null) {
31204
          unsetBillingWarehouseId();
31205
        } else {
31206
          setBillingWarehouseId((Long)value);
31207
        }
31208
        break;
31209
 
6467 amar.kumar 31210
      }
31211
    }
31212
 
31213
    public Object getFieldValue(_Fields field) {
31214
      switch (field) {
31215
      case VENDOR_ID:
31216
        return Long.valueOf(getVendorId());
31217
 
7718 amar.kumar 31218
      case BILLING_WAREHOUSE_ID:
31219
        return Long.valueOf(getBillingWarehouseId());
31220
 
6467 amar.kumar 31221
      }
31222
      throw new IllegalStateException();
31223
    }
31224
 
31225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31226
    public boolean isSet(_Fields field) {
31227
      if (field == null) {
31228
        throw new IllegalArgumentException();
31229
      }
31230
 
31231
      switch (field) {
31232
      case VENDOR_ID:
31233
        return isSetVendorId();
7718 amar.kumar 31234
      case BILLING_WAREHOUSE_ID:
31235
        return isSetBillingWarehouseId();
6467 amar.kumar 31236
      }
31237
      throw new IllegalStateException();
31238
    }
31239
 
31240
    @Override
31241
    public boolean equals(Object that) {
31242
      if (that == null)
31243
        return false;
31244
      if (that instanceof getOurWarehouseIdForVendor_args)
31245
        return this.equals((getOurWarehouseIdForVendor_args)that);
31246
      return false;
31247
    }
31248
 
31249
    public boolean equals(getOurWarehouseIdForVendor_args that) {
31250
      if (that == null)
31251
        return false;
31252
 
31253
      boolean this_present_vendorId = true;
31254
      boolean that_present_vendorId = true;
31255
      if (this_present_vendorId || that_present_vendorId) {
31256
        if (!(this_present_vendorId && that_present_vendorId))
31257
          return false;
31258
        if (this.vendorId != that.vendorId)
31259
          return false;
31260
      }
31261
 
7718 amar.kumar 31262
      boolean this_present_billingWarehouseId = true;
31263
      boolean that_present_billingWarehouseId = true;
31264
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
31265
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
31266
          return false;
31267
        if (this.billingWarehouseId != that.billingWarehouseId)
31268
          return false;
31269
      }
31270
 
6467 amar.kumar 31271
      return true;
31272
    }
31273
 
31274
    @Override
31275
    public int hashCode() {
31276
      return 0;
31277
    }
31278
 
31279
    public int compareTo(getOurWarehouseIdForVendor_args other) {
31280
      if (!getClass().equals(other.getClass())) {
31281
        return getClass().getName().compareTo(other.getClass().getName());
31282
      }
31283
 
31284
      int lastComparison = 0;
31285
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
31286
 
31287
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
31288
      if (lastComparison != 0) {
31289
        return lastComparison;
31290
      }
31291
      if (isSetVendorId()) {
31292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
31293
        if (lastComparison != 0) {
31294
          return lastComparison;
31295
        }
31296
      }
7718 amar.kumar 31297
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
31298
      if (lastComparison != 0) {
31299
        return lastComparison;
31300
      }
31301
      if (isSetBillingWarehouseId()) {
31302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
31303
        if (lastComparison != 0) {
31304
          return lastComparison;
31305
        }
31306
      }
6467 amar.kumar 31307
      return 0;
31308
    }
31309
 
31310
    public _Fields fieldForId(int fieldId) {
31311
      return _Fields.findByThriftId(fieldId);
31312
    }
31313
 
31314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31315
      org.apache.thrift.protocol.TField field;
31316
      iprot.readStructBegin();
31317
      while (true)
31318
      {
31319
        field = iprot.readFieldBegin();
31320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31321
          break;
31322
        }
31323
        switch (field.id) {
31324
          case 1: // VENDOR_ID
31325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31326
              this.vendorId = iprot.readI64();
31327
              setVendorIdIsSet(true);
31328
            } else { 
31329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31330
            }
31331
            break;
7718 amar.kumar 31332
          case 2: // BILLING_WAREHOUSE_ID
31333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31334
              this.billingWarehouseId = iprot.readI64();
31335
              setBillingWarehouseIdIsSet(true);
31336
            } else { 
31337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31338
            }
31339
            break;
6467 amar.kumar 31340
          default:
31341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31342
        }
31343
        iprot.readFieldEnd();
31344
      }
31345
      iprot.readStructEnd();
31346
      validate();
31347
    }
31348
 
31349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31350
      validate();
31351
 
31352
      oprot.writeStructBegin(STRUCT_DESC);
31353
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
31354
      oprot.writeI64(this.vendorId);
31355
      oprot.writeFieldEnd();
7718 amar.kumar 31356
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
31357
      oprot.writeI64(this.billingWarehouseId);
31358
      oprot.writeFieldEnd();
6467 amar.kumar 31359
      oprot.writeFieldStop();
31360
      oprot.writeStructEnd();
31361
    }
31362
 
31363
    @Override
31364
    public String toString() {
31365
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
31366
      boolean first = true;
31367
 
31368
      sb.append("vendorId:");
31369
      sb.append(this.vendorId);
31370
      first = false;
7718 amar.kumar 31371
      if (!first) sb.append(", ");
31372
      sb.append("billingWarehouseId:");
31373
      sb.append(this.billingWarehouseId);
31374
      first = false;
6467 amar.kumar 31375
      sb.append(")");
31376
      return sb.toString();
31377
    }
31378
 
31379
    public void validate() throws org.apache.thrift.TException {
31380
      // check for required fields
31381
    }
31382
 
31383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31384
      try {
31385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31386
      } catch (org.apache.thrift.TException te) {
31387
        throw new java.io.IOException(te);
31388
      }
31389
    }
31390
 
31391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31392
      try {
31393
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31394
        __isset_bit_vector = new BitSet(1);
31395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31396
      } catch (org.apache.thrift.TException te) {
31397
        throw new java.io.IOException(te);
31398
      }
31399
    }
31400
 
31401
  }
31402
 
31403
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
31404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
31405
 
31406
    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);
31407
 
31408
    private long success; // required
31409
 
31410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31412
      SUCCESS((short)0, "success");
31413
 
31414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31415
 
31416
      static {
31417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31418
          byName.put(field.getFieldName(), field);
31419
        }
31420
      }
31421
 
31422
      /**
31423
       * Find the _Fields constant that matches fieldId, or null if its not found.
31424
       */
31425
      public static _Fields findByThriftId(int fieldId) {
31426
        switch(fieldId) {
31427
          case 0: // SUCCESS
31428
            return SUCCESS;
31429
          default:
31430
            return null;
31431
        }
31432
      }
31433
 
31434
      /**
31435
       * Find the _Fields constant that matches fieldId, throwing an exception
31436
       * if it is not found.
31437
       */
31438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31439
        _Fields fields = findByThriftId(fieldId);
31440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31441
        return fields;
31442
      }
31443
 
31444
      /**
31445
       * Find the _Fields constant that matches name, or null if its not found.
31446
       */
31447
      public static _Fields findByName(String name) {
31448
        return byName.get(name);
31449
      }
31450
 
31451
      private final short _thriftId;
31452
      private final String _fieldName;
31453
 
31454
      _Fields(short thriftId, String fieldName) {
31455
        _thriftId = thriftId;
31456
        _fieldName = fieldName;
31457
      }
31458
 
31459
      public short getThriftFieldId() {
31460
        return _thriftId;
31461
      }
31462
 
31463
      public String getFieldName() {
31464
        return _fieldName;
31465
      }
31466
    }
31467
 
31468
    // isset id assignments
31469
    private static final int __SUCCESS_ISSET_ID = 0;
31470
    private BitSet __isset_bit_vector = new BitSet(1);
31471
 
31472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31473
    static {
31474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
31479
    }
31480
 
31481
    public getOurWarehouseIdForVendor_result() {
31482
    }
31483
 
31484
    public getOurWarehouseIdForVendor_result(
31485
      long success)
31486
    {
31487
      this();
31488
      this.success = success;
31489
      setSuccessIsSet(true);
31490
    }
31491
 
31492
    /**
31493
     * Performs a deep copy on <i>other</i>.
31494
     */
31495
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
31496
      __isset_bit_vector.clear();
31497
      __isset_bit_vector.or(other.__isset_bit_vector);
31498
      this.success = other.success;
31499
    }
31500
 
31501
    public getOurWarehouseIdForVendor_result deepCopy() {
31502
      return new getOurWarehouseIdForVendor_result(this);
31503
    }
31504
 
31505
    @Override
31506
    public void clear() {
31507
      setSuccessIsSet(false);
31508
      this.success = 0;
31509
    }
31510
 
31511
    public long getSuccess() {
31512
      return this.success;
31513
    }
31514
 
31515
    public void setSuccess(long success) {
31516
      this.success = success;
31517
      setSuccessIsSet(true);
31518
    }
31519
 
31520
    public void unsetSuccess() {
31521
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31522
    }
31523
 
31524
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31525
    public boolean isSetSuccess() {
31526
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31527
    }
31528
 
31529
    public void setSuccessIsSet(boolean value) {
31530
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31531
    }
31532
 
31533
    public void setFieldValue(_Fields field, Object value) {
31534
      switch (field) {
31535
      case SUCCESS:
31536
        if (value == null) {
31537
          unsetSuccess();
31538
        } else {
31539
          setSuccess((Long)value);
31540
        }
31541
        break;
31542
 
31543
      }
31544
    }
31545
 
31546
    public Object getFieldValue(_Fields field) {
31547
      switch (field) {
31548
      case SUCCESS:
31549
        return Long.valueOf(getSuccess());
31550
 
31551
      }
31552
      throw new IllegalStateException();
31553
    }
31554
 
31555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31556
    public boolean isSet(_Fields field) {
31557
      if (field == null) {
31558
        throw new IllegalArgumentException();
31559
      }
31560
 
31561
      switch (field) {
31562
      case SUCCESS:
31563
        return isSetSuccess();
31564
      }
31565
      throw new IllegalStateException();
31566
    }
31567
 
31568
    @Override
31569
    public boolean equals(Object that) {
31570
      if (that == null)
31571
        return false;
31572
      if (that instanceof getOurWarehouseIdForVendor_result)
31573
        return this.equals((getOurWarehouseIdForVendor_result)that);
31574
      return false;
31575
    }
31576
 
31577
    public boolean equals(getOurWarehouseIdForVendor_result that) {
31578
      if (that == null)
31579
        return false;
31580
 
31581
      boolean this_present_success = true;
31582
      boolean that_present_success = true;
31583
      if (this_present_success || that_present_success) {
31584
        if (!(this_present_success && that_present_success))
31585
          return false;
31586
        if (this.success != that.success)
31587
          return false;
31588
      }
31589
 
31590
      return true;
31591
    }
31592
 
31593
    @Override
31594
    public int hashCode() {
31595
      return 0;
31596
    }
31597
 
31598
    public int compareTo(getOurWarehouseIdForVendor_result other) {
31599
      if (!getClass().equals(other.getClass())) {
31600
        return getClass().getName().compareTo(other.getClass().getName());
31601
      }
31602
 
31603
      int lastComparison = 0;
31604
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
31605
 
31606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31607
      if (lastComparison != 0) {
31608
        return lastComparison;
31609
      }
31610
      if (isSetSuccess()) {
31611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31612
        if (lastComparison != 0) {
31613
          return lastComparison;
31614
        }
31615
      }
31616
      return 0;
31617
    }
31618
 
31619
    public _Fields fieldForId(int fieldId) {
31620
      return _Fields.findByThriftId(fieldId);
31621
    }
31622
 
31623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31624
      org.apache.thrift.protocol.TField field;
31625
      iprot.readStructBegin();
31626
      while (true)
31627
      {
31628
        field = iprot.readFieldBegin();
31629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31630
          break;
31631
        }
31632
        switch (field.id) {
31633
          case 0: // SUCCESS
31634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31635
              this.success = iprot.readI64();
31636
              setSuccessIsSet(true);
31637
            } else { 
31638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31639
            }
31640
            break;
31641
          default:
31642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31643
        }
31644
        iprot.readFieldEnd();
31645
      }
31646
      iprot.readStructEnd();
31647
      validate();
31648
    }
31649
 
31650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31651
      oprot.writeStructBegin(STRUCT_DESC);
31652
 
31653
      if (this.isSetSuccess()) {
31654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31655
        oprot.writeI64(this.success);
31656
        oprot.writeFieldEnd();
31657
      }
31658
      oprot.writeFieldStop();
31659
      oprot.writeStructEnd();
31660
    }
31661
 
31662
    @Override
31663
    public String toString() {
31664
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
31665
      boolean first = true;
31666
 
31667
      sb.append("success:");
31668
      sb.append(this.success);
31669
      first = false;
31670
      sb.append(")");
31671
      return sb.toString();
31672
    }
31673
 
31674
    public void validate() throws org.apache.thrift.TException {
31675
      // check for required fields
31676
    }
31677
 
31678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31679
      try {
31680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31681
      } catch (org.apache.thrift.TException te) {
31682
        throw new java.io.IOException(te);
31683
      }
31684
    }
31685
 
31686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31687
      try {
31688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31689
      } catch (org.apache.thrift.TException te) {
31690
        throw new java.io.IOException(te);
31691
      }
31692
    }
31693
 
31694
  }
31695
 
6484 amar.kumar 31696
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
31697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
31698
 
31699
    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);
31700
 
31701
    private List<Long> item_ids; // required
31702
 
31703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31705
      ITEM_IDS((short)1, "item_ids");
31706
 
31707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31708
 
31709
      static {
31710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31711
          byName.put(field.getFieldName(), field);
31712
        }
31713
      }
31714
 
31715
      /**
31716
       * Find the _Fields constant that matches fieldId, or null if its not found.
31717
       */
31718
      public static _Fields findByThriftId(int fieldId) {
31719
        switch(fieldId) {
31720
          case 1: // ITEM_IDS
31721
            return ITEM_IDS;
31722
          default:
31723
            return null;
31724
        }
31725
      }
31726
 
31727
      /**
31728
       * Find the _Fields constant that matches fieldId, throwing an exception
31729
       * if it is not found.
31730
       */
31731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31732
        _Fields fields = findByThriftId(fieldId);
31733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31734
        return fields;
31735
      }
31736
 
31737
      /**
31738
       * Find the _Fields constant that matches name, or null if its not found.
31739
       */
31740
      public static _Fields findByName(String name) {
31741
        return byName.get(name);
31742
      }
31743
 
31744
      private final short _thriftId;
31745
      private final String _fieldName;
31746
 
31747
      _Fields(short thriftId, String fieldName) {
31748
        _thriftId = thriftId;
31749
        _fieldName = fieldName;
31750
      }
31751
 
31752
      public short getThriftFieldId() {
31753
        return _thriftId;
31754
      }
31755
 
31756
      public String getFieldName() {
31757
        return _fieldName;
31758
      }
31759
    }
31760
 
31761
    // isset id assignments
31762
 
31763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31764
    static {
31765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31766
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31767
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31768
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
31769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
31771
    }
31772
 
31773
    public getItemAvailabilitiesAtOurWarehouses_args() {
31774
    }
31775
 
31776
    public getItemAvailabilitiesAtOurWarehouses_args(
31777
      List<Long> item_ids)
31778
    {
31779
      this();
31780
      this.item_ids = item_ids;
31781
    }
31782
 
31783
    /**
31784
     * Performs a deep copy on <i>other</i>.
31785
     */
31786
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
31787
      if (other.isSetItem_ids()) {
31788
        List<Long> __this__item_ids = new ArrayList<Long>();
31789
        for (Long other_element : other.item_ids) {
31790
          __this__item_ids.add(other_element);
31791
        }
31792
        this.item_ids = __this__item_ids;
31793
      }
31794
    }
31795
 
31796
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
31797
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
31798
    }
31799
 
31800
    @Override
31801
    public void clear() {
31802
      this.item_ids = null;
31803
    }
31804
 
31805
    public int getItem_idsSize() {
31806
      return (this.item_ids == null) ? 0 : this.item_ids.size();
31807
    }
31808
 
31809
    public java.util.Iterator<Long> getItem_idsIterator() {
31810
      return (this.item_ids == null) ? null : this.item_ids.iterator();
31811
    }
31812
 
31813
    public void addToItem_ids(long elem) {
31814
      if (this.item_ids == null) {
31815
        this.item_ids = new ArrayList<Long>();
31816
      }
31817
      this.item_ids.add(elem);
31818
    }
31819
 
31820
    public List<Long> getItem_ids() {
31821
      return this.item_ids;
31822
    }
31823
 
31824
    public void setItem_ids(List<Long> item_ids) {
31825
      this.item_ids = item_ids;
31826
    }
31827
 
31828
    public void unsetItem_ids() {
31829
      this.item_ids = null;
31830
    }
31831
 
31832
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
31833
    public boolean isSetItem_ids() {
31834
      return this.item_ids != null;
31835
    }
31836
 
31837
    public void setItem_idsIsSet(boolean value) {
31838
      if (!value) {
31839
        this.item_ids = null;
31840
      }
31841
    }
31842
 
31843
    public void setFieldValue(_Fields field, Object value) {
31844
      switch (field) {
31845
      case ITEM_IDS:
31846
        if (value == null) {
31847
          unsetItem_ids();
31848
        } else {
31849
          setItem_ids((List<Long>)value);
31850
        }
31851
        break;
31852
 
31853
      }
31854
    }
31855
 
31856
    public Object getFieldValue(_Fields field) {
31857
      switch (field) {
31858
      case ITEM_IDS:
31859
        return getItem_ids();
31860
 
31861
      }
31862
      throw new IllegalStateException();
31863
    }
31864
 
31865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31866
    public boolean isSet(_Fields field) {
31867
      if (field == null) {
31868
        throw new IllegalArgumentException();
31869
      }
31870
 
31871
      switch (field) {
31872
      case ITEM_IDS:
31873
        return isSetItem_ids();
31874
      }
31875
      throw new IllegalStateException();
31876
    }
31877
 
31878
    @Override
31879
    public boolean equals(Object that) {
31880
      if (that == null)
31881
        return false;
31882
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
31883
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
31884
      return false;
31885
    }
31886
 
31887
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
31888
      if (that == null)
31889
        return false;
31890
 
31891
      boolean this_present_item_ids = true && this.isSetItem_ids();
31892
      boolean that_present_item_ids = true && that.isSetItem_ids();
31893
      if (this_present_item_ids || that_present_item_ids) {
31894
        if (!(this_present_item_ids && that_present_item_ids))
31895
          return false;
31896
        if (!this.item_ids.equals(that.item_ids))
31897
          return false;
31898
      }
31899
 
31900
      return true;
31901
    }
31902
 
31903
    @Override
31904
    public int hashCode() {
31905
      return 0;
31906
    }
31907
 
31908
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
31909
      if (!getClass().equals(other.getClass())) {
31910
        return getClass().getName().compareTo(other.getClass().getName());
31911
      }
31912
 
31913
      int lastComparison = 0;
31914
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
31915
 
31916
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
31917
      if (lastComparison != 0) {
31918
        return lastComparison;
31919
      }
31920
      if (isSetItem_ids()) {
31921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
31922
        if (lastComparison != 0) {
31923
          return lastComparison;
31924
        }
31925
      }
31926
      return 0;
31927
    }
31928
 
31929
    public _Fields fieldForId(int fieldId) {
31930
      return _Fields.findByThriftId(fieldId);
31931
    }
31932
 
31933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31934
      org.apache.thrift.protocol.TField field;
31935
      iprot.readStructBegin();
31936
      while (true)
31937
      {
31938
        field = iprot.readFieldBegin();
31939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31940
          break;
31941
        }
31942
        switch (field.id) {
31943
          case 1: // ITEM_IDS
31944
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31945
              {
8182 amar.kumar 31946
                org.apache.thrift.protocol.TList _list84 = iprot.readListBegin();
31947
                this.item_ids = new ArrayList<Long>(_list84.size);
31948
                for (int _i85 = 0; _i85 < _list84.size; ++_i85)
6484 amar.kumar 31949
                {
8182 amar.kumar 31950
                  long _elem86; // required
31951
                  _elem86 = iprot.readI64();
31952
                  this.item_ids.add(_elem86);
6484 amar.kumar 31953
                }
31954
                iprot.readListEnd();
31955
              }
31956
            } else { 
31957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31958
            }
31959
            break;
31960
          default:
31961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31962
        }
31963
        iprot.readFieldEnd();
31964
      }
31965
      iprot.readStructEnd();
31966
      validate();
31967
    }
31968
 
31969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31970
      validate();
31971
 
31972
      oprot.writeStructBegin(STRUCT_DESC);
31973
      if (this.item_ids != null) {
31974
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
31975
        {
31976
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
8182 amar.kumar 31977
          for (long _iter87 : this.item_ids)
6484 amar.kumar 31978
          {
8182 amar.kumar 31979
            oprot.writeI64(_iter87);
6484 amar.kumar 31980
          }
31981
          oprot.writeListEnd();
31982
        }
31983
        oprot.writeFieldEnd();
31984
      }
31985
      oprot.writeFieldStop();
31986
      oprot.writeStructEnd();
31987
    }
31988
 
31989
    @Override
31990
    public String toString() {
31991
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
31992
      boolean first = true;
31993
 
31994
      sb.append("item_ids:");
31995
      if (this.item_ids == null) {
31996
        sb.append("null");
31997
      } else {
31998
        sb.append(this.item_ids);
31999
      }
32000
      first = false;
32001
      sb.append(")");
32002
      return sb.toString();
32003
    }
32004
 
32005
    public void validate() throws org.apache.thrift.TException {
32006
      // check for required fields
32007
    }
32008
 
32009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32010
      try {
32011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32012
      } catch (org.apache.thrift.TException te) {
32013
        throw new java.io.IOException(te);
32014
      }
32015
    }
32016
 
32017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32018
      try {
32019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32020
      } catch (org.apache.thrift.TException te) {
32021
        throw new java.io.IOException(te);
32022
      }
32023
    }
32024
 
32025
  }
32026
 
32027
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
32028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
32029
 
32030
    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);
32031
 
32032
    private Map<Long,Long> success; // required
32033
 
32034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32036
      SUCCESS((short)0, "success");
32037
 
32038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32039
 
32040
      static {
32041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32042
          byName.put(field.getFieldName(), field);
32043
        }
32044
      }
32045
 
32046
      /**
32047
       * Find the _Fields constant that matches fieldId, or null if its not found.
32048
       */
32049
      public static _Fields findByThriftId(int fieldId) {
32050
        switch(fieldId) {
32051
          case 0: // SUCCESS
32052
            return SUCCESS;
32053
          default:
32054
            return null;
32055
        }
32056
      }
32057
 
32058
      /**
32059
       * Find the _Fields constant that matches fieldId, throwing an exception
32060
       * if it is not found.
32061
       */
32062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32063
        _Fields fields = findByThriftId(fieldId);
32064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32065
        return fields;
32066
      }
32067
 
32068
      /**
32069
       * Find the _Fields constant that matches name, or null if its not found.
32070
       */
32071
      public static _Fields findByName(String name) {
32072
        return byName.get(name);
32073
      }
32074
 
32075
      private final short _thriftId;
32076
      private final String _fieldName;
32077
 
32078
      _Fields(short thriftId, String fieldName) {
32079
        _thriftId = thriftId;
32080
        _fieldName = fieldName;
32081
      }
32082
 
32083
      public short getThriftFieldId() {
32084
        return _thriftId;
32085
      }
32086
 
32087
      public String getFieldName() {
32088
        return _fieldName;
32089
      }
32090
    }
32091
 
32092
    // isset id assignments
32093
 
32094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32095
    static {
32096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32097
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32098
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
32099
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
32100
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
32101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
32103
    }
32104
 
32105
    public getItemAvailabilitiesAtOurWarehouses_result() {
32106
    }
32107
 
32108
    public getItemAvailabilitiesAtOurWarehouses_result(
32109
      Map<Long,Long> success)
32110
    {
32111
      this();
32112
      this.success = success;
32113
    }
32114
 
32115
    /**
32116
     * Performs a deep copy on <i>other</i>.
32117
     */
32118
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
32119
      if (other.isSetSuccess()) {
32120
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
32121
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
32122
 
32123
          Long other_element_key = other_element.getKey();
32124
          Long other_element_value = other_element.getValue();
32125
 
32126
          Long __this__success_copy_key = other_element_key;
32127
 
32128
          Long __this__success_copy_value = other_element_value;
32129
 
32130
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
32131
        }
32132
        this.success = __this__success;
32133
      }
32134
    }
32135
 
32136
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
32137
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
32138
    }
32139
 
32140
    @Override
32141
    public void clear() {
32142
      this.success = null;
32143
    }
32144
 
32145
    public int getSuccessSize() {
32146
      return (this.success == null) ? 0 : this.success.size();
32147
    }
32148
 
32149
    public void putToSuccess(long key, long val) {
32150
      if (this.success == null) {
32151
        this.success = new HashMap<Long,Long>();
32152
      }
32153
      this.success.put(key, val);
32154
    }
32155
 
32156
    public Map<Long,Long> getSuccess() {
32157
      return this.success;
32158
    }
32159
 
32160
    public void setSuccess(Map<Long,Long> success) {
32161
      this.success = success;
32162
    }
32163
 
32164
    public void unsetSuccess() {
32165
      this.success = null;
32166
    }
32167
 
32168
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32169
    public boolean isSetSuccess() {
32170
      return this.success != null;
32171
    }
32172
 
32173
    public void setSuccessIsSet(boolean value) {
32174
      if (!value) {
32175
        this.success = null;
32176
      }
32177
    }
32178
 
32179
    public void setFieldValue(_Fields field, Object value) {
32180
      switch (field) {
32181
      case SUCCESS:
32182
        if (value == null) {
32183
          unsetSuccess();
32184
        } else {
32185
          setSuccess((Map<Long,Long>)value);
32186
        }
32187
        break;
32188
 
32189
      }
32190
    }
32191
 
32192
    public Object getFieldValue(_Fields field) {
32193
      switch (field) {
32194
      case SUCCESS:
32195
        return getSuccess();
32196
 
32197
      }
32198
      throw new IllegalStateException();
32199
    }
32200
 
32201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32202
    public boolean isSet(_Fields field) {
32203
      if (field == null) {
32204
        throw new IllegalArgumentException();
32205
      }
32206
 
32207
      switch (field) {
32208
      case SUCCESS:
32209
        return isSetSuccess();
32210
      }
32211
      throw new IllegalStateException();
32212
    }
32213
 
32214
    @Override
32215
    public boolean equals(Object that) {
32216
      if (that == null)
32217
        return false;
32218
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
32219
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
32220
      return false;
32221
    }
32222
 
32223
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
32224
      if (that == null)
32225
        return false;
32226
 
32227
      boolean this_present_success = true && this.isSetSuccess();
32228
      boolean that_present_success = true && that.isSetSuccess();
32229
      if (this_present_success || that_present_success) {
32230
        if (!(this_present_success && that_present_success))
32231
          return false;
32232
        if (!this.success.equals(that.success))
32233
          return false;
32234
      }
32235
 
32236
      return true;
32237
    }
32238
 
32239
    @Override
32240
    public int hashCode() {
32241
      return 0;
32242
    }
32243
 
32244
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
32245
      if (!getClass().equals(other.getClass())) {
32246
        return getClass().getName().compareTo(other.getClass().getName());
32247
      }
32248
 
32249
      int lastComparison = 0;
32250
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
32251
 
32252
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32253
      if (lastComparison != 0) {
32254
        return lastComparison;
32255
      }
32256
      if (isSetSuccess()) {
32257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32258
        if (lastComparison != 0) {
32259
          return lastComparison;
32260
        }
32261
      }
32262
      return 0;
32263
    }
32264
 
32265
    public _Fields fieldForId(int fieldId) {
32266
      return _Fields.findByThriftId(fieldId);
32267
    }
32268
 
32269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32270
      org.apache.thrift.protocol.TField field;
32271
      iprot.readStructBegin();
32272
      while (true)
32273
      {
32274
        field = iprot.readFieldBegin();
32275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32276
          break;
32277
        }
32278
        switch (field.id) {
32279
          case 0: // SUCCESS
32280
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32281
              {
8182 amar.kumar 32282
                org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
32283
                this.success = new HashMap<Long,Long>(2*_map88.size);
32284
                for (int _i89 = 0; _i89 < _map88.size; ++_i89)
6484 amar.kumar 32285
                {
8182 amar.kumar 32286
                  long _key90; // required
32287
                  long _val91; // required
32288
                  _key90 = iprot.readI64();
32289
                  _val91 = iprot.readI64();
32290
                  this.success.put(_key90, _val91);
6484 amar.kumar 32291
                }
32292
                iprot.readMapEnd();
32293
              }
32294
            } else { 
32295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32296
            }
32297
            break;
32298
          default:
32299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32300
        }
32301
        iprot.readFieldEnd();
32302
      }
32303
      iprot.readStructEnd();
32304
      validate();
32305
    }
32306
 
32307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32308
      oprot.writeStructBegin(STRUCT_DESC);
32309
 
32310
      if (this.isSetSuccess()) {
32311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32312
        {
32313
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 32314
          for (Map.Entry<Long, Long> _iter92 : this.success.entrySet())
6484 amar.kumar 32315
          {
8182 amar.kumar 32316
            oprot.writeI64(_iter92.getKey());
32317
            oprot.writeI64(_iter92.getValue());
6484 amar.kumar 32318
          }
32319
          oprot.writeMapEnd();
32320
        }
32321
        oprot.writeFieldEnd();
32322
      }
32323
      oprot.writeFieldStop();
32324
      oprot.writeStructEnd();
32325
    }
32326
 
32327
    @Override
32328
    public String toString() {
32329
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
32330
      boolean first = true;
32331
 
32332
      sb.append("success:");
32333
      if (this.success == null) {
32334
        sb.append("null");
32335
      } else {
32336
        sb.append(this.success);
32337
      }
32338
      first = false;
32339
      sb.append(")");
32340
      return sb.toString();
32341
    }
32342
 
32343
    public void validate() throws org.apache.thrift.TException {
32344
      // check for required fields
32345
    }
32346
 
32347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32348
      try {
32349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32350
      } catch (org.apache.thrift.TException te) {
32351
        throw new java.io.IOException(te);
32352
      }
32353
    }
32354
 
32355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32356
      try {
32357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32358
      } catch (org.apache.thrift.TException te) {
32359
        throw new java.io.IOException(te);
32360
      }
32361
    }
32362
 
32363
  }
32364
 
6531 vikram.rag 32365
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
32366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
32367
 
32368
    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);
32369
 
32370
    private List<Long> vendorIds; // required
32371
 
32372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32374
      VENDOR_IDS((short)1, "vendorIds");
32375
 
32376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32377
 
32378
      static {
32379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32380
          byName.put(field.getFieldName(), field);
32381
        }
32382
      }
32383
 
32384
      /**
32385
       * Find the _Fields constant that matches fieldId, or null if its not found.
32386
       */
32387
      public static _Fields findByThriftId(int fieldId) {
32388
        switch(fieldId) {
32389
          case 1: // VENDOR_IDS
32390
            return VENDOR_IDS;
32391
          default:
32392
            return null;
32393
        }
32394
      }
32395
 
32396
      /**
32397
       * Find the _Fields constant that matches fieldId, throwing an exception
32398
       * if it is not found.
32399
       */
32400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32401
        _Fields fields = findByThriftId(fieldId);
32402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32403
        return fields;
32404
      }
32405
 
32406
      /**
32407
       * Find the _Fields constant that matches name, or null if its not found.
32408
       */
32409
      public static _Fields findByName(String name) {
32410
        return byName.get(name);
32411
      }
32412
 
32413
      private final short _thriftId;
32414
      private final String _fieldName;
32415
 
32416
      _Fields(short thriftId, String fieldName) {
32417
        _thriftId = thriftId;
32418
        _fieldName = fieldName;
32419
      }
32420
 
32421
      public short getThriftFieldId() {
32422
        return _thriftId;
32423
      }
32424
 
32425
      public String getFieldName() {
32426
        return _fieldName;
32427
      }
32428
    }
32429
 
32430
    // isset id assignments
32431
 
32432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32433
    static {
32434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32435
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32436
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32437
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
32438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
32440
    }
32441
 
32442
    public getMonitoredWarehouseForVendors_args() {
32443
    }
32444
 
32445
    public getMonitoredWarehouseForVendors_args(
32446
      List<Long> vendorIds)
32447
    {
32448
      this();
32449
      this.vendorIds = vendorIds;
32450
    }
32451
 
32452
    /**
32453
     * Performs a deep copy on <i>other</i>.
32454
     */
32455
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
32456
      if (other.isSetVendorIds()) {
32457
        List<Long> __this__vendorIds = new ArrayList<Long>();
32458
        for (Long other_element : other.vendorIds) {
32459
          __this__vendorIds.add(other_element);
32460
        }
32461
        this.vendorIds = __this__vendorIds;
32462
      }
32463
    }
32464
 
32465
    public getMonitoredWarehouseForVendors_args deepCopy() {
32466
      return new getMonitoredWarehouseForVendors_args(this);
32467
    }
32468
 
32469
    @Override
32470
    public void clear() {
32471
      this.vendorIds = null;
32472
    }
32473
 
32474
    public int getVendorIdsSize() {
32475
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
32476
    }
32477
 
32478
    public java.util.Iterator<Long> getVendorIdsIterator() {
32479
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
32480
    }
32481
 
32482
    public void addToVendorIds(long elem) {
32483
      if (this.vendorIds == null) {
32484
        this.vendorIds = new ArrayList<Long>();
32485
      }
32486
      this.vendorIds.add(elem);
32487
    }
32488
 
32489
    public List<Long> getVendorIds() {
32490
      return this.vendorIds;
32491
    }
32492
 
32493
    public void setVendorIds(List<Long> vendorIds) {
32494
      this.vendorIds = vendorIds;
32495
    }
32496
 
32497
    public void unsetVendorIds() {
32498
      this.vendorIds = null;
32499
    }
32500
 
32501
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
32502
    public boolean isSetVendorIds() {
32503
      return this.vendorIds != null;
32504
    }
32505
 
32506
    public void setVendorIdsIsSet(boolean value) {
32507
      if (!value) {
32508
        this.vendorIds = null;
32509
      }
32510
    }
32511
 
32512
    public void setFieldValue(_Fields field, Object value) {
32513
      switch (field) {
32514
      case VENDOR_IDS:
32515
        if (value == null) {
32516
          unsetVendorIds();
32517
        } else {
32518
          setVendorIds((List<Long>)value);
32519
        }
32520
        break;
32521
 
32522
      }
32523
    }
32524
 
32525
    public Object getFieldValue(_Fields field) {
32526
      switch (field) {
32527
      case VENDOR_IDS:
32528
        return getVendorIds();
32529
 
32530
      }
32531
      throw new IllegalStateException();
32532
    }
32533
 
32534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32535
    public boolean isSet(_Fields field) {
32536
      if (field == null) {
32537
        throw new IllegalArgumentException();
32538
      }
32539
 
32540
      switch (field) {
32541
      case VENDOR_IDS:
32542
        return isSetVendorIds();
32543
      }
32544
      throw new IllegalStateException();
32545
    }
32546
 
32547
    @Override
32548
    public boolean equals(Object that) {
32549
      if (that == null)
32550
        return false;
32551
      if (that instanceof getMonitoredWarehouseForVendors_args)
32552
        return this.equals((getMonitoredWarehouseForVendors_args)that);
32553
      return false;
32554
    }
32555
 
32556
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
32557
      if (that == null)
32558
        return false;
32559
 
32560
      boolean this_present_vendorIds = true && this.isSetVendorIds();
32561
      boolean that_present_vendorIds = true && that.isSetVendorIds();
32562
      if (this_present_vendorIds || that_present_vendorIds) {
32563
        if (!(this_present_vendorIds && that_present_vendorIds))
32564
          return false;
32565
        if (!this.vendorIds.equals(that.vendorIds))
32566
          return false;
32567
      }
32568
 
32569
      return true;
32570
    }
32571
 
32572
    @Override
32573
    public int hashCode() {
32574
      return 0;
32575
    }
32576
 
32577
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
32578
      if (!getClass().equals(other.getClass())) {
32579
        return getClass().getName().compareTo(other.getClass().getName());
32580
      }
32581
 
32582
      int lastComparison = 0;
32583
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
32584
 
32585
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
32586
      if (lastComparison != 0) {
32587
        return lastComparison;
32588
      }
32589
      if (isSetVendorIds()) {
32590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
32591
        if (lastComparison != 0) {
32592
          return lastComparison;
32593
        }
32594
      }
32595
      return 0;
32596
    }
32597
 
32598
    public _Fields fieldForId(int fieldId) {
32599
      return _Fields.findByThriftId(fieldId);
32600
    }
32601
 
32602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32603
      org.apache.thrift.protocol.TField field;
32604
      iprot.readStructBegin();
32605
      while (true)
32606
      {
32607
        field = iprot.readFieldBegin();
32608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32609
          break;
32610
        }
32611
        switch (field.id) {
32612
          case 1: // VENDOR_IDS
32613
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32614
              {
8182 amar.kumar 32615
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
32616
                this.vendorIds = new ArrayList<Long>(_list93.size);
32617
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
6531 vikram.rag 32618
                {
8182 amar.kumar 32619
                  long _elem95; // required
32620
                  _elem95 = iprot.readI64();
32621
                  this.vendorIds.add(_elem95);
6531 vikram.rag 32622
                }
32623
                iprot.readListEnd();
32624
              }
32625
            } else { 
32626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32627
            }
32628
            break;
32629
          default:
32630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32631
        }
32632
        iprot.readFieldEnd();
32633
      }
32634
      iprot.readStructEnd();
32635
      validate();
32636
    }
32637
 
32638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32639
      validate();
32640
 
32641
      oprot.writeStructBegin(STRUCT_DESC);
32642
      if (this.vendorIds != null) {
32643
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
32644
        {
32645
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
8182 amar.kumar 32646
          for (long _iter96 : this.vendorIds)
6531 vikram.rag 32647
          {
8182 amar.kumar 32648
            oprot.writeI64(_iter96);
6531 vikram.rag 32649
          }
32650
          oprot.writeListEnd();
32651
        }
32652
        oprot.writeFieldEnd();
32653
      }
32654
      oprot.writeFieldStop();
32655
      oprot.writeStructEnd();
32656
    }
32657
 
32658
    @Override
32659
    public String toString() {
32660
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
32661
      boolean first = true;
32662
 
32663
      sb.append("vendorIds:");
32664
      if (this.vendorIds == null) {
32665
        sb.append("null");
32666
      } else {
32667
        sb.append(this.vendorIds);
32668
      }
32669
      first = false;
32670
      sb.append(")");
32671
      return sb.toString();
32672
    }
32673
 
32674
    public void validate() throws org.apache.thrift.TException {
32675
      // check for required fields
32676
    }
32677
 
32678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32679
      try {
32680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32681
      } catch (org.apache.thrift.TException te) {
32682
        throw new java.io.IOException(te);
32683
      }
32684
    }
32685
 
32686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32687
      try {
32688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32689
      } catch (org.apache.thrift.TException te) {
32690
        throw new java.io.IOException(te);
32691
      }
32692
    }
32693
 
32694
  }
32695
 
32696
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
32697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
32698
 
32699
    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);
32700
 
32701
    private List<Long> success; // required
32702
 
32703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32705
      SUCCESS((short)0, "success");
32706
 
32707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32708
 
32709
      static {
32710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32711
          byName.put(field.getFieldName(), field);
32712
        }
32713
      }
32714
 
32715
      /**
32716
       * Find the _Fields constant that matches fieldId, or null if its not found.
32717
       */
32718
      public static _Fields findByThriftId(int fieldId) {
32719
        switch(fieldId) {
32720
          case 0: // SUCCESS
32721
            return SUCCESS;
32722
          default:
32723
            return null;
32724
        }
32725
      }
32726
 
32727
      /**
32728
       * Find the _Fields constant that matches fieldId, throwing an exception
32729
       * if it is not found.
32730
       */
32731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32732
        _Fields fields = findByThriftId(fieldId);
32733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32734
        return fields;
32735
      }
32736
 
32737
      /**
32738
       * Find the _Fields constant that matches name, or null if its not found.
32739
       */
32740
      public static _Fields findByName(String name) {
32741
        return byName.get(name);
32742
      }
32743
 
32744
      private final short _thriftId;
32745
      private final String _fieldName;
32746
 
32747
      _Fields(short thriftId, String fieldName) {
32748
        _thriftId = thriftId;
32749
        _fieldName = fieldName;
32750
      }
32751
 
32752
      public short getThriftFieldId() {
32753
        return _thriftId;
32754
      }
32755
 
32756
      public String getFieldName() {
32757
        return _fieldName;
32758
      }
32759
    }
32760
 
32761
    // isset id assignments
32762
 
32763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32764
    static {
32765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32766
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32767
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32768
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
32769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
32771
    }
32772
 
32773
    public getMonitoredWarehouseForVendors_result() {
32774
    }
32775
 
32776
    public getMonitoredWarehouseForVendors_result(
32777
      List<Long> success)
32778
    {
32779
      this();
32780
      this.success = success;
32781
    }
32782
 
32783
    /**
32784
     * Performs a deep copy on <i>other</i>.
32785
     */
32786
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
32787
      if (other.isSetSuccess()) {
32788
        List<Long> __this__success = new ArrayList<Long>();
32789
        for (Long other_element : other.success) {
32790
          __this__success.add(other_element);
32791
        }
32792
        this.success = __this__success;
32793
      }
32794
    }
32795
 
32796
    public getMonitoredWarehouseForVendors_result deepCopy() {
32797
      return new getMonitoredWarehouseForVendors_result(this);
32798
    }
32799
 
32800
    @Override
32801
    public void clear() {
32802
      this.success = null;
32803
    }
32804
 
32805
    public int getSuccessSize() {
32806
      return (this.success == null) ? 0 : this.success.size();
32807
    }
32808
 
32809
    public java.util.Iterator<Long> getSuccessIterator() {
32810
      return (this.success == null) ? null : this.success.iterator();
32811
    }
32812
 
32813
    public void addToSuccess(long elem) {
32814
      if (this.success == null) {
32815
        this.success = new ArrayList<Long>();
32816
      }
32817
      this.success.add(elem);
32818
    }
32819
 
32820
    public List<Long> getSuccess() {
32821
      return this.success;
32822
    }
32823
 
32824
    public void setSuccess(List<Long> success) {
32825
      this.success = success;
32826
    }
32827
 
32828
    public void unsetSuccess() {
32829
      this.success = null;
32830
    }
32831
 
32832
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32833
    public boolean isSetSuccess() {
32834
      return this.success != null;
32835
    }
32836
 
32837
    public void setSuccessIsSet(boolean value) {
32838
      if (!value) {
32839
        this.success = null;
32840
      }
32841
    }
32842
 
32843
    public void setFieldValue(_Fields field, Object value) {
32844
      switch (field) {
32845
      case SUCCESS:
32846
        if (value == null) {
32847
          unsetSuccess();
32848
        } else {
32849
          setSuccess((List<Long>)value);
32850
        }
32851
        break;
32852
 
32853
      }
32854
    }
32855
 
32856
    public Object getFieldValue(_Fields field) {
32857
      switch (field) {
32858
      case SUCCESS:
32859
        return getSuccess();
32860
 
32861
      }
32862
      throw new IllegalStateException();
32863
    }
32864
 
32865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32866
    public boolean isSet(_Fields field) {
32867
      if (field == null) {
32868
        throw new IllegalArgumentException();
32869
      }
32870
 
32871
      switch (field) {
32872
      case SUCCESS:
32873
        return isSetSuccess();
32874
      }
32875
      throw new IllegalStateException();
32876
    }
32877
 
32878
    @Override
32879
    public boolean equals(Object that) {
32880
      if (that == null)
32881
        return false;
32882
      if (that instanceof getMonitoredWarehouseForVendors_result)
32883
        return this.equals((getMonitoredWarehouseForVendors_result)that);
32884
      return false;
32885
    }
32886
 
32887
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
32888
      if (that == null)
32889
        return false;
32890
 
32891
      boolean this_present_success = true && this.isSetSuccess();
32892
      boolean that_present_success = true && that.isSetSuccess();
32893
      if (this_present_success || that_present_success) {
32894
        if (!(this_present_success && that_present_success))
32895
          return false;
32896
        if (!this.success.equals(that.success))
32897
          return false;
32898
      }
32899
 
32900
      return true;
32901
    }
32902
 
32903
    @Override
32904
    public int hashCode() {
32905
      return 0;
32906
    }
32907
 
32908
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
32909
      if (!getClass().equals(other.getClass())) {
32910
        return getClass().getName().compareTo(other.getClass().getName());
32911
      }
32912
 
32913
      int lastComparison = 0;
32914
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
32915
 
32916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32917
      if (lastComparison != 0) {
32918
        return lastComparison;
32919
      }
32920
      if (isSetSuccess()) {
32921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32922
        if (lastComparison != 0) {
32923
          return lastComparison;
32924
        }
32925
      }
32926
      return 0;
32927
    }
32928
 
32929
    public _Fields fieldForId(int fieldId) {
32930
      return _Fields.findByThriftId(fieldId);
32931
    }
32932
 
32933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32934
      org.apache.thrift.protocol.TField field;
32935
      iprot.readStructBegin();
32936
      while (true)
32937
      {
32938
        field = iprot.readFieldBegin();
32939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32940
          break;
32941
        }
32942
        switch (field.id) {
32943
          case 0: // SUCCESS
32944
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32945
              {
8182 amar.kumar 32946
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
32947
                this.success = new ArrayList<Long>(_list97.size);
32948
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
6531 vikram.rag 32949
                {
8182 amar.kumar 32950
                  long _elem99; // required
32951
                  _elem99 = iprot.readI64();
32952
                  this.success.add(_elem99);
6531 vikram.rag 32953
                }
32954
                iprot.readListEnd();
32955
              }
32956
            } else { 
32957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32958
            }
32959
            break;
32960
          default:
32961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32962
        }
32963
        iprot.readFieldEnd();
32964
      }
32965
      iprot.readStructEnd();
32966
      validate();
32967
    }
32968
 
32969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32970
      oprot.writeStructBegin(STRUCT_DESC);
32971
 
32972
      if (this.isSetSuccess()) {
32973
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32974
        {
32975
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 32976
          for (long _iter100 : this.success)
6531 vikram.rag 32977
          {
8182 amar.kumar 32978
            oprot.writeI64(_iter100);
6531 vikram.rag 32979
          }
32980
          oprot.writeListEnd();
32981
        }
32982
        oprot.writeFieldEnd();
32983
      }
32984
      oprot.writeFieldStop();
32985
      oprot.writeStructEnd();
32986
    }
32987
 
32988
    @Override
32989
    public String toString() {
32990
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
32991
      boolean first = true;
32992
 
32993
      sb.append("success:");
32994
      if (this.success == null) {
32995
        sb.append("null");
32996
      } else {
32997
        sb.append(this.success);
32998
      }
32999
      first = false;
33000
      sb.append(")");
33001
      return sb.toString();
33002
    }
33003
 
33004
    public void validate() throws org.apache.thrift.TException {
33005
      // check for required fields
33006
    }
33007
 
33008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33009
      try {
33010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33011
      } catch (org.apache.thrift.TException te) {
33012
        throw new java.io.IOException(te);
33013
      }
33014
    }
33015
 
33016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33017
      try {
33018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33019
      } catch (org.apache.thrift.TException te) {
33020
        throw new java.io.IOException(te);
33021
      }
33022
    }
33023
 
33024
  }
33025
 
33026
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
33027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
33028
 
33029
 
33030
 
33031
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33032
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33033
;
33034
 
33035
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33036
 
33037
      static {
33038
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33039
          byName.put(field.getFieldName(), field);
33040
        }
33041
      }
33042
 
33043
      /**
33044
       * Find the _Fields constant that matches fieldId, or null if its not found.
33045
       */
33046
      public static _Fields findByThriftId(int fieldId) {
33047
        switch(fieldId) {
33048
          default:
33049
            return null;
33050
        }
33051
      }
33052
 
33053
      /**
33054
       * Find the _Fields constant that matches fieldId, throwing an exception
33055
       * if it is not found.
33056
       */
33057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33058
        _Fields fields = findByThriftId(fieldId);
33059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33060
        return fields;
33061
      }
33062
 
33063
      /**
33064
       * Find the _Fields constant that matches name, or null if its not found.
33065
       */
33066
      public static _Fields findByName(String name) {
33067
        return byName.get(name);
33068
      }
33069
 
33070
      private final short _thriftId;
33071
      private final String _fieldName;
33072
 
33073
      _Fields(short thriftId, String fieldName) {
33074
        _thriftId = thriftId;
33075
        _fieldName = fieldName;
33076
      }
33077
 
33078
      public short getThriftFieldId() {
33079
        return _thriftId;
33080
      }
33081
 
33082
      public String getFieldName() {
33083
        return _fieldName;
33084
      }
33085
    }
33086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33087
    static {
33088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33089
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33090
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
33091
    }
33092
 
33093
    public getIgnoredWarehouseidsAndItemids_args() {
33094
    }
33095
 
33096
    /**
33097
     * Performs a deep copy on <i>other</i>.
33098
     */
33099
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
33100
    }
33101
 
33102
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
33103
      return new getIgnoredWarehouseidsAndItemids_args(this);
33104
    }
33105
 
33106
    @Override
33107
    public void clear() {
33108
    }
33109
 
33110
    public void setFieldValue(_Fields field, Object value) {
33111
      switch (field) {
33112
      }
33113
    }
33114
 
33115
    public Object getFieldValue(_Fields field) {
33116
      switch (field) {
33117
      }
33118
      throw new IllegalStateException();
33119
    }
33120
 
33121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33122
    public boolean isSet(_Fields field) {
33123
      if (field == null) {
33124
        throw new IllegalArgumentException();
33125
      }
33126
 
33127
      switch (field) {
33128
      }
33129
      throw new IllegalStateException();
33130
    }
33131
 
33132
    @Override
33133
    public boolean equals(Object that) {
33134
      if (that == null)
33135
        return false;
33136
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
33137
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
33138
      return false;
33139
    }
33140
 
33141
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
33142
      if (that == null)
33143
        return false;
33144
 
33145
      return true;
33146
    }
33147
 
33148
    @Override
33149
    public int hashCode() {
33150
      return 0;
33151
    }
33152
 
33153
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
33154
      if (!getClass().equals(other.getClass())) {
33155
        return getClass().getName().compareTo(other.getClass().getName());
33156
      }
33157
 
33158
      int lastComparison = 0;
33159
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
33160
 
33161
      return 0;
33162
    }
33163
 
33164
    public _Fields fieldForId(int fieldId) {
33165
      return _Fields.findByThriftId(fieldId);
33166
    }
33167
 
33168
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33169
      org.apache.thrift.protocol.TField field;
33170
      iprot.readStructBegin();
33171
      while (true)
33172
      {
33173
        field = iprot.readFieldBegin();
33174
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33175
          break;
33176
        }
33177
        switch (field.id) {
33178
          default:
33179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33180
        }
33181
        iprot.readFieldEnd();
33182
      }
33183
      iprot.readStructEnd();
33184
      validate();
33185
    }
33186
 
33187
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33188
      validate();
33189
 
33190
      oprot.writeStructBegin(STRUCT_DESC);
33191
      oprot.writeFieldStop();
33192
      oprot.writeStructEnd();
33193
    }
33194
 
33195
    @Override
33196
    public String toString() {
33197
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
33198
      boolean first = true;
33199
 
33200
      sb.append(")");
33201
      return sb.toString();
33202
    }
33203
 
33204
    public void validate() throws org.apache.thrift.TException {
33205
      // check for required fields
33206
    }
33207
 
33208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33209
      try {
33210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33211
      } catch (org.apache.thrift.TException te) {
33212
        throw new java.io.IOException(te);
33213
      }
33214
    }
33215
 
33216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33217
      try {
33218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33219
      } catch (org.apache.thrift.TException te) {
33220
        throw new java.io.IOException(te);
33221
      }
33222
    }
33223
 
33224
  }
33225
 
33226
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
33227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
33228
 
33229
    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);
33230
 
33231
    private List<IgnoredInventoryUpdateItems> success; // required
33232
 
33233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33235
      SUCCESS((short)0, "success");
33236
 
33237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33238
 
33239
      static {
33240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33241
          byName.put(field.getFieldName(), field);
33242
        }
33243
      }
33244
 
33245
      /**
33246
       * Find the _Fields constant that matches fieldId, or null if its not found.
33247
       */
33248
      public static _Fields findByThriftId(int fieldId) {
33249
        switch(fieldId) {
33250
          case 0: // SUCCESS
33251
            return SUCCESS;
33252
          default:
33253
            return null;
33254
        }
33255
      }
33256
 
33257
      /**
33258
       * Find the _Fields constant that matches fieldId, throwing an exception
33259
       * if it is not found.
33260
       */
33261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33262
        _Fields fields = findByThriftId(fieldId);
33263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33264
        return fields;
33265
      }
33266
 
33267
      /**
33268
       * Find the _Fields constant that matches name, or null if its not found.
33269
       */
33270
      public static _Fields findByName(String name) {
33271
        return byName.get(name);
33272
      }
33273
 
33274
      private final short _thriftId;
33275
      private final String _fieldName;
33276
 
33277
      _Fields(short thriftId, String fieldName) {
33278
        _thriftId = thriftId;
33279
        _fieldName = fieldName;
33280
      }
33281
 
33282
      public short getThriftFieldId() {
33283
        return _thriftId;
33284
      }
33285
 
33286
      public String getFieldName() {
33287
        return _fieldName;
33288
      }
33289
    }
33290
 
33291
    // isset id assignments
33292
 
33293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33294
    static {
33295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33297
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33298
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
33299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
33301
    }
33302
 
33303
    public getIgnoredWarehouseidsAndItemids_result() {
33304
    }
33305
 
33306
    public getIgnoredWarehouseidsAndItemids_result(
33307
      List<IgnoredInventoryUpdateItems> success)
33308
    {
33309
      this();
33310
      this.success = success;
33311
    }
33312
 
33313
    /**
33314
     * Performs a deep copy on <i>other</i>.
33315
     */
33316
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
33317
      if (other.isSetSuccess()) {
33318
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
33319
        for (IgnoredInventoryUpdateItems other_element : other.success) {
33320
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
33321
        }
33322
        this.success = __this__success;
33323
      }
33324
    }
33325
 
33326
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
33327
      return new getIgnoredWarehouseidsAndItemids_result(this);
33328
    }
33329
 
33330
    @Override
33331
    public void clear() {
33332
      this.success = null;
33333
    }
33334
 
33335
    public int getSuccessSize() {
33336
      return (this.success == null) ? 0 : this.success.size();
33337
    }
33338
 
33339
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
33340
      return (this.success == null) ? null : this.success.iterator();
33341
    }
33342
 
33343
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
33344
      if (this.success == null) {
33345
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
33346
      }
33347
      this.success.add(elem);
33348
    }
33349
 
33350
    public List<IgnoredInventoryUpdateItems> getSuccess() {
33351
      return this.success;
33352
    }
33353
 
33354
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
33355
      this.success = success;
33356
    }
33357
 
33358
    public void unsetSuccess() {
33359
      this.success = null;
33360
    }
33361
 
33362
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33363
    public boolean isSetSuccess() {
33364
      return this.success != null;
33365
    }
33366
 
33367
    public void setSuccessIsSet(boolean value) {
33368
      if (!value) {
33369
        this.success = null;
33370
      }
33371
    }
33372
 
33373
    public void setFieldValue(_Fields field, Object value) {
33374
      switch (field) {
33375
      case SUCCESS:
33376
        if (value == null) {
33377
          unsetSuccess();
33378
        } else {
33379
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
33380
        }
33381
        break;
33382
 
33383
      }
33384
    }
33385
 
33386
    public Object getFieldValue(_Fields field) {
33387
      switch (field) {
33388
      case SUCCESS:
33389
        return getSuccess();
33390
 
33391
      }
33392
      throw new IllegalStateException();
33393
    }
33394
 
33395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33396
    public boolean isSet(_Fields field) {
33397
      if (field == null) {
33398
        throw new IllegalArgumentException();
33399
      }
33400
 
33401
      switch (field) {
33402
      case SUCCESS:
33403
        return isSetSuccess();
33404
      }
33405
      throw new IllegalStateException();
33406
    }
33407
 
33408
    @Override
33409
    public boolean equals(Object that) {
33410
      if (that == null)
33411
        return false;
33412
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
33413
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
33414
      return false;
33415
    }
33416
 
33417
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
33418
      if (that == null)
33419
        return false;
33420
 
33421
      boolean this_present_success = true && this.isSetSuccess();
33422
      boolean that_present_success = true && that.isSetSuccess();
33423
      if (this_present_success || that_present_success) {
33424
        if (!(this_present_success && that_present_success))
33425
          return false;
33426
        if (!this.success.equals(that.success))
33427
          return false;
33428
      }
33429
 
33430
      return true;
33431
    }
33432
 
33433
    @Override
33434
    public int hashCode() {
33435
      return 0;
33436
    }
33437
 
33438
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
33439
      if (!getClass().equals(other.getClass())) {
33440
        return getClass().getName().compareTo(other.getClass().getName());
33441
      }
33442
 
33443
      int lastComparison = 0;
33444
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
33445
 
33446
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33447
      if (lastComparison != 0) {
33448
        return lastComparison;
33449
      }
33450
      if (isSetSuccess()) {
33451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33452
        if (lastComparison != 0) {
33453
          return lastComparison;
33454
        }
33455
      }
33456
      return 0;
33457
    }
33458
 
33459
    public _Fields fieldForId(int fieldId) {
33460
      return _Fields.findByThriftId(fieldId);
33461
    }
33462
 
33463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33464
      org.apache.thrift.protocol.TField field;
33465
      iprot.readStructBegin();
33466
      while (true)
33467
      {
33468
        field = iprot.readFieldBegin();
33469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33470
          break;
33471
        }
33472
        switch (field.id) {
33473
          case 0: // SUCCESS
33474
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33475
              {
8182 amar.kumar 33476
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
33477
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list101.size);
33478
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
6531 vikram.rag 33479
                {
8182 amar.kumar 33480
                  IgnoredInventoryUpdateItems _elem103; // required
33481
                  _elem103 = new IgnoredInventoryUpdateItems();
33482
                  _elem103.read(iprot);
33483
                  this.success.add(_elem103);
6531 vikram.rag 33484
                }
33485
                iprot.readListEnd();
33486
              }
33487
            } else { 
33488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33489
            }
33490
            break;
33491
          default:
33492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33493
        }
33494
        iprot.readFieldEnd();
33495
      }
33496
      iprot.readStructEnd();
33497
      validate();
33498
    }
33499
 
33500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33501
      oprot.writeStructBegin(STRUCT_DESC);
33502
 
33503
      if (this.isSetSuccess()) {
33504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33505
        {
33506
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 33507
          for (IgnoredInventoryUpdateItems _iter104 : this.success)
6531 vikram.rag 33508
          {
8182 amar.kumar 33509
            _iter104.write(oprot);
6531 vikram.rag 33510
          }
33511
          oprot.writeListEnd();
33512
        }
33513
        oprot.writeFieldEnd();
33514
      }
33515
      oprot.writeFieldStop();
33516
      oprot.writeStructEnd();
33517
    }
33518
 
33519
    @Override
33520
    public String toString() {
33521
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
33522
      boolean first = true;
33523
 
33524
      sb.append("success:");
33525
      if (this.success == null) {
33526
        sb.append("null");
33527
      } else {
33528
        sb.append(this.success);
33529
      }
33530
      first = false;
33531
      sb.append(")");
33532
      return sb.toString();
33533
    }
33534
 
33535
    public void validate() throws org.apache.thrift.TException {
33536
      // check for required fields
33537
    }
33538
 
33539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33540
      try {
33541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33542
      } catch (org.apache.thrift.TException te) {
33543
        throw new java.io.IOException(te);
33544
      }
33545
    }
33546
 
33547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33548
      try {
33549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33550
      } catch (org.apache.thrift.TException te) {
33551
        throw new java.io.IOException(te);
33552
      }
33553
    }
33554
 
33555
  }
33556
 
33557
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
33558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
33559
 
33560
    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);
33561
    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);
33562
 
33563
    private long item_id; // required
33564
    private long warehouse_id; // required
33565
 
33566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33568
      ITEM_ID((short)1, "item_id"),
33569
      WAREHOUSE_ID((short)2, "warehouse_id");
33570
 
33571
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33572
 
33573
      static {
33574
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33575
          byName.put(field.getFieldName(), field);
33576
        }
33577
      }
33578
 
33579
      /**
33580
       * Find the _Fields constant that matches fieldId, or null if its not found.
33581
       */
33582
      public static _Fields findByThriftId(int fieldId) {
33583
        switch(fieldId) {
33584
          case 1: // ITEM_ID
33585
            return ITEM_ID;
33586
          case 2: // WAREHOUSE_ID
33587
            return WAREHOUSE_ID;
33588
          default:
33589
            return null;
33590
        }
33591
      }
33592
 
33593
      /**
33594
       * Find the _Fields constant that matches fieldId, throwing an exception
33595
       * if it is not found.
33596
       */
33597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33598
        _Fields fields = findByThriftId(fieldId);
33599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33600
        return fields;
33601
      }
33602
 
33603
      /**
33604
       * Find the _Fields constant that matches name, or null if its not found.
33605
       */
33606
      public static _Fields findByName(String name) {
33607
        return byName.get(name);
33608
      }
33609
 
33610
      private final short _thriftId;
33611
      private final String _fieldName;
33612
 
33613
      _Fields(short thriftId, String fieldName) {
33614
        _thriftId = thriftId;
33615
        _fieldName = fieldName;
33616
      }
33617
 
33618
      public short getThriftFieldId() {
33619
        return _thriftId;
33620
      }
33621
 
33622
      public String getFieldName() {
33623
        return _fieldName;
33624
      }
33625
    }
33626
 
33627
    // isset id assignments
33628
    private static final int __ITEM_ID_ISSET_ID = 0;
33629
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
33630
    private BitSet __isset_bit_vector = new BitSet(2);
33631
 
33632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33633
    static {
33634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33635
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33637
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
33641
    }
33642
 
33643
    public insertItemtoIgnoreInventoryUpdatelist_args() {
33644
    }
33645
 
33646
    public insertItemtoIgnoreInventoryUpdatelist_args(
33647
      long item_id,
33648
      long warehouse_id)
33649
    {
33650
      this();
33651
      this.item_id = item_id;
33652
      setItem_idIsSet(true);
33653
      this.warehouse_id = warehouse_id;
33654
      setWarehouse_idIsSet(true);
33655
    }
33656
 
33657
    /**
33658
     * Performs a deep copy on <i>other</i>.
33659
     */
33660
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
33661
      __isset_bit_vector.clear();
33662
      __isset_bit_vector.or(other.__isset_bit_vector);
33663
      this.item_id = other.item_id;
33664
      this.warehouse_id = other.warehouse_id;
33665
    }
33666
 
33667
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
33668
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
33669
    }
33670
 
33671
    @Override
33672
    public void clear() {
33673
      setItem_idIsSet(false);
33674
      this.item_id = 0;
33675
      setWarehouse_idIsSet(false);
33676
      this.warehouse_id = 0;
33677
    }
33678
 
33679
    public long getItem_id() {
33680
      return this.item_id;
33681
    }
33682
 
33683
    public void setItem_id(long item_id) {
33684
      this.item_id = item_id;
33685
      setItem_idIsSet(true);
33686
    }
33687
 
33688
    public void unsetItem_id() {
33689
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
33690
    }
33691
 
33692
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
33693
    public boolean isSetItem_id() {
33694
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
33695
    }
33696
 
33697
    public void setItem_idIsSet(boolean value) {
33698
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
33699
    }
33700
 
33701
    public long getWarehouse_id() {
33702
      return this.warehouse_id;
33703
    }
33704
 
33705
    public void setWarehouse_id(long warehouse_id) {
33706
      this.warehouse_id = warehouse_id;
33707
      setWarehouse_idIsSet(true);
33708
    }
33709
 
33710
    public void unsetWarehouse_id() {
33711
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
33712
    }
33713
 
33714
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
33715
    public boolean isSetWarehouse_id() {
33716
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
33717
    }
33718
 
33719
    public void setWarehouse_idIsSet(boolean value) {
33720
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
33721
    }
33722
 
33723
    public void setFieldValue(_Fields field, Object value) {
33724
      switch (field) {
33725
      case ITEM_ID:
33726
        if (value == null) {
33727
          unsetItem_id();
33728
        } else {
33729
          setItem_id((Long)value);
33730
        }
33731
        break;
33732
 
33733
      case WAREHOUSE_ID:
33734
        if (value == null) {
33735
          unsetWarehouse_id();
33736
        } else {
33737
          setWarehouse_id((Long)value);
33738
        }
33739
        break;
33740
 
33741
      }
33742
    }
33743
 
33744
    public Object getFieldValue(_Fields field) {
33745
      switch (field) {
33746
      case ITEM_ID:
33747
        return Long.valueOf(getItem_id());
33748
 
33749
      case WAREHOUSE_ID:
33750
        return Long.valueOf(getWarehouse_id());
33751
 
33752
      }
33753
      throw new IllegalStateException();
33754
    }
33755
 
33756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33757
    public boolean isSet(_Fields field) {
33758
      if (field == null) {
33759
        throw new IllegalArgumentException();
33760
      }
33761
 
33762
      switch (field) {
33763
      case ITEM_ID:
33764
        return isSetItem_id();
33765
      case WAREHOUSE_ID:
33766
        return isSetWarehouse_id();
33767
      }
33768
      throw new IllegalStateException();
33769
    }
33770
 
33771
    @Override
33772
    public boolean equals(Object that) {
33773
      if (that == null)
33774
        return false;
33775
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
33776
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
33777
      return false;
33778
    }
33779
 
33780
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
33781
      if (that == null)
33782
        return false;
33783
 
33784
      boolean this_present_item_id = true;
33785
      boolean that_present_item_id = true;
33786
      if (this_present_item_id || that_present_item_id) {
33787
        if (!(this_present_item_id && that_present_item_id))
33788
          return false;
33789
        if (this.item_id != that.item_id)
33790
          return false;
33791
      }
33792
 
33793
      boolean this_present_warehouse_id = true;
33794
      boolean that_present_warehouse_id = true;
33795
      if (this_present_warehouse_id || that_present_warehouse_id) {
33796
        if (!(this_present_warehouse_id && that_present_warehouse_id))
33797
          return false;
33798
        if (this.warehouse_id != that.warehouse_id)
33799
          return false;
33800
      }
33801
 
33802
      return true;
33803
    }
33804
 
33805
    @Override
33806
    public int hashCode() {
33807
      return 0;
33808
    }
33809
 
33810
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
33811
      if (!getClass().equals(other.getClass())) {
33812
        return getClass().getName().compareTo(other.getClass().getName());
33813
      }
33814
 
33815
      int lastComparison = 0;
33816
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
33817
 
33818
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
33819
      if (lastComparison != 0) {
33820
        return lastComparison;
33821
      }
33822
      if (isSetItem_id()) {
33823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
33824
        if (lastComparison != 0) {
33825
          return lastComparison;
33826
        }
33827
      }
33828
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
33829
      if (lastComparison != 0) {
33830
        return lastComparison;
33831
      }
33832
      if (isSetWarehouse_id()) {
33833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
33834
        if (lastComparison != 0) {
33835
          return lastComparison;
33836
        }
33837
      }
33838
      return 0;
33839
    }
33840
 
33841
    public _Fields fieldForId(int fieldId) {
33842
      return _Fields.findByThriftId(fieldId);
33843
    }
33844
 
33845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33846
      org.apache.thrift.protocol.TField field;
33847
      iprot.readStructBegin();
33848
      while (true)
33849
      {
33850
        field = iprot.readFieldBegin();
33851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33852
          break;
33853
        }
33854
        switch (field.id) {
33855
          case 1: // ITEM_ID
33856
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33857
              this.item_id = iprot.readI64();
33858
              setItem_idIsSet(true);
33859
            } else { 
33860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33861
            }
33862
            break;
33863
          case 2: // WAREHOUSE_ID
33864
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33865
              this.warehouse_id = iprot.readI64();
33866
              setWarehouse_idIsSet(true);
33867
            } else { 
33868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33869
            }
33870
            break;
33871
          default:
33872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33873
        }
33874
        iprot.readFieldEnd();
33875
      }
33876
      iprot.readStructEnd();
33877
      validate();
33878
    }
33879
 
33880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33881
      validate();
33882
 
33883
      oprot.writeStructBegin(STRUCT_DESC);
33884
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
33885
      oprot.writeI64(this.item_id);
33886
      oprot.writeFieldEnd();
33887
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
33888
      oprot.writeI64(this.warehouse_id);
33889
      oprot.writeFieldEnd();
33890
      oprot.writeFieldStop();
33891
      oprot.writeStructEnd();
33892
    }
33893
 
33894
    @Override
33895
    public String toString() {
33896
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
33897
      boolean first = true;
33898
 
33899
      sb.append("item_id:");
33900
      sb.append(this.item_id);
33901
      first = false;
33902
      if (!first) sb.append(", ");
33903
      sb.append("warehouse_id:");
33904
      sb.append(this.warehouse_id);
33905
      first = false;
33906
      sb.append(")");
33907
      return sb.toString();
33908
    }
33909
 
33910
    public void validate() throws org.apache.thrift.TException {
33911
      // check for required fields
33912
    }
33913
 
33914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33915
      try {
33916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33917
      } catch (org.apache.thrift.TException te) {
33918
        throw new java.io.IOException(te);
33919
      }
33920
    }
33921
 
33922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33923
      try {
33924
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33925
        __isset_bit_vector = new BitSet(1);
33926
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33927
      } catch (org.apache.thrift.TException te) {
33928
        throw new java.io.IOException(te);
33929
      }
33930
    }
33931
 
33932
  }
33933
 
33934
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
33935
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
33936
 
33937
    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);
33938
 
33939
    private boolean success; // required
33940
 
33941
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33942
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33943
      SUCCESS((short)0, "success");
33944
 
33945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33946
 
33947
      static {
33948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33949
          byName.put(field.getFieldName(), field);
33950
        }
33951
      }
33952
 
33953
      /**
33954
       * Find the _Fields constant that matches fieldId, or null if its not found.
33955
       */
33956
      public static _Fields findByThriftId(int fieldId) {
33957
        switch(fieldId) {
33958
          case 0: // SUCCESS
33959
            return SUCCESS;
33960
          default:
33961
            return null;
33962
        }
33963
      }
33964
 
33965
      /**
33966
       * Find the _Fields constant that matches fieldId, throwing an exception
33967
       * if it is not found.
33968
       */
33969
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33970
        _Fields fields = findByThriftId(fieldId);
33971
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33972
        return fields;
33973
      }
33974
 
33975
      /**
33976
       * Find the _Fields constant that matches name, or null if its not found.
33977
       */
33978
      public static _Fields findByName(String name) {
33979
        return byName.get(name);
33980
      }
33981
 
33982
      private final short _thriftId;
33983
      private final String _fieldName;
33984
 
33985
      _Fields(short thriftId, String fieldName) {
33986
        _thriftId = thriftId;
33987
        _fieldName = fieldName;
33988
      }
33989
 
33990
      public short getThriftFieldId() {
33991
        return _thriftId;
33992
      }
33993
 
33994
      public String getFieldName() {
33995
        return _fieldName;
33996
      }
33997
    }
33998
 
33999
    // isset id assignments
34000
    private static final int __SUCCESS_ISSET_ID = 0;
34001
    private BitSet __isset_bit_vector = new BitSet(1);
34002
 
34003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34004
    static {
34005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34006
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
34010
    }
34011
 
34012
    public insertItemtoIgnoreInventoryUpdatelist_result() {
34013
    }
34014
 
34015
    public insertItemtoIgnoreInventoryUpdatelist_result(
34016
      boolean success)
34017
    {
34018
      this();
34019
      this.success = success;
34020
      setSuccessIsSet(true);
34021
    }
34022
 
34023
    /**
34024
     * Performs a deep copy on <i>other</i>.
34025
     */
34026
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
34027
      __isset_bit_vector.clear();
34028
      __isset_bit_vector.or(other.__isset_bit_vector);
34029
      this.success = other.success;
34030
    }
34031
 
34032
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
34033
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
34034
    }
34035
 
34036
    @Override
34037
    public void clear() {
34038
      setSuccessIsSet(false);
34039
      this.success = false;
34040
    }
34041
 
34042
    public boolean isSuccess() {
34043
      return this.success;
34044
    }
34045
 
34046
    public void setSuccess(boolean success) {
34047
      this.success = success;
34048
      setSuccessIsSet(true);
34049
    }
34050
 
34051
    public void unsetSuccess() {
34052
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
34053
    }
34054
 
34055
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34056
    public boolean isSetSuccess() {
34057
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
34058
    }
34059
 
34060
    public void setSuccessIsSet(boolean value) {
34061
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
34062
    }
34063
 
34064
    public void setFieldValue(_Fields field, Object value) {
34065
      switch (field) {
34066
      case SUCCESS:
34067
        if (value == null) {
34068
          unsetSuccess();
34069
        } else {
34070
          setSuccess((Boolean)value);
34071
        }
34072
        break;
34073
 
34074
      }
34075
    }
34076
 
34077
    public Object getFieldValue(_Fields field) {
34078
      switch (field) {
34079
      case SUCCESS:
34080
        return Boolean.valueOf(isSuccess());
34081
 
34082
      }
34083
      throw new IllegalStateException();
34084
    }
34085
 
34086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34087
    public boolean isSet(_Fields field) {
34088
      if (field == null) {
34089
        throw new IllegalArgumentException();
34090
      }
34091
 
34092
      switch (field) {
34093
      case SUCCESS:
34094
        return isSetSuccess();
34095
      }
34096
      throw new IllegalStateException();
34097
    }
34098
 
34099
    @Override
34100
    public boolean equals(Object that) {
34101
      if (that == null)
34102
        return false;
34103
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
34104
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
34105
      return false;
34106
    }
34107
 
34108
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
34109
      if (that == null)
34110
        return false;
34111
 
34112
      boolean this_present_success = true;
34113
      boolean that_present_success = true;
34114
      if (this_present_success || that_present_success) {
34115
        if (!(this_present_success && that_present_success))
34116
          return false;
34117
        if (this.success != that.success)
34118
          return false;
34119
      }
34120
 
34121
      return true;
34122
    }
34123
 
34124
    @Override
34125
    public int hashCode() {
34126
      return 0;
34127
    }
34128
 
34129
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
34130
      if (!getClass().equals(other.getClass())) {
34131
        return getClass().getName().compareTo(other.getClass().getName());
34132
      }
34133
 
34134
      int lastComparison = 0;
34135
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
34136
 
34137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34138
      if (lastComparison != 0) {
34139
        return lastComparison;
34140
      }
34141
      if (isSetSuccess()) {
34142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34143
        if (lastComparison != 0) {
34144
          return lastComparison;
34145
        }
34146
      }
34147
      return 0;
34148
    }
34149
 
34150
    public _Fields fieldForId(int fieldId) {
34151
      return _Fields.findByThriftId(fieldId);
34152
    }
34153
 
34154
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34155
      org.apache.thrift.protocol.TField field;
34156
      iprot.readStructBegin();
34157
      while (true)
34158
      {
34159
        field = iprot.readFieldBegin();
34160
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34161
          break;
34162
        }
34163
        switch (field.id) {
34164
          case 0: // SUCCESS
34165
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
34166
              this.success = iprot.readBool();
34167
              setSuccessIsSet(true);
34168
            } else { 
34169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34170
            }
34171
            break;
34172
          default:
34173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34174
        }
34175
        iprot.readFieldEnd();
34176
      }
34177
      iprot.readStructEnd();
34178
      validate();
34179
    }
34180
 
34181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34182
      oprot.writeStructBegin(STRUCT_DESC);
34183
 
34184
      if (this.isSetSuccess()) {
34185
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34186
        oprot.writeBool(this.success);
34187
        oprot.writeFieldEnd();
34188
      }
34189
      oprot.writeFieldStop();
34190
      oprot.writeStructEnd();
34191
    }
34192
 
34193
    @Override
34194
    public String toString() {
34195
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
34196
      boolean first = true;
34197
 
34198
      sb.append("success:");
34199
      sb.append(this.success);
34200
      first = false;
34201
      sb.append(")");
34202
      return sb.toString();
34203
    }
34204
 
34205
    public void validate() throws org.apache.thrift.TException {
34206
      // check for required fields
34207
    }
34208
 
34209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34210
      try {
34211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34212
      } catch (org.apache.thrift.TException te) {
34213
        throw new java.io.IOException(te);
34214
      }
34215
    }
34216
 
34217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34218
      try {
34219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34220
      } catch (org.apache.thrift.TException te) {
34221
        throw new java.io.IOException(te);
34222
      }
34223
    }
34224
 
34225
  }
34226
 
34227
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
34228
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
34229
 
34230
    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);
34231
    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);
34232
 
34233
    private long item_id; // required
34234
    private long warehouse_id; // required
34235
 
34236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34238
      ITEM_ID((short)1, "item_id"),
34239
      WAREHOUSE_ID((short)2, "warehouse_id");
34240
 
34241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34242
 
34243
      static {
34244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34245
          byName.put(field.getFieldName(), field);
34246
        }
34247
      }
34248
 
34249
      /**
34250
       * Find the _Fields constant that matches fieldId, or null if its not found.
34251
       */
34252
      public static _Fields findByThriftId(int fieldId) {
34253
        switch(fieldId) {
34254
          case 1: // ITEM_ID
34255
            return ITEM_ID;
34256
          case 2: // WAREHOUSE_ID
34257
            return WAREHOUSE_ID;
34258
          default:
34259
            return null;
34260
        }
34261
      }
34262
 
34263
      /**
34264
       * Find the _Fields constant that matches fieldId, throwing an exception
34265
       * if it is not found.
34266
       */
34267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34268
        _Fields fields = findByThriftId(fieldId);
34269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34270
        return fields;
34271
      }
34272
 
34273
      /**
34274
       * Find the _Fields constant that matches name, or null if its not found.
34275
       */
34276
      public static _Fields findByName(String name) {
34277
        return byName.get(name);
34278
      }
34279
 
34280
      private final short _thriftId;
34281
      private final String _fieldName;
34282
 
34283
      _Fields(short thriftId, String fieldName) {
34284
        _thriftId = thriftId;
34285
        _fieldName = fieldName;
34286
      }
34287
 
34288
      public short getThriftFieldId() {
34289
        return _thriftId;
34290
      }
34291
 
34292
      public String getFieldName() {
34293
        return _fieldName;
34294
      }
34295
    }
34296
 
34297
    // isset id assignments
34298
    private static final int __ITEM_ID_ISSET_ID = 0;
34299
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
34300
    private BitSet __isset_bit_vector = new BitSet(2);
34301
 
34302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34303
    static {
34304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34305
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34307
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
34311
    }
34312
 
34313
    public deleteItemFromIgnoredInventoryUpdateList_args() {
34314
    }
34315
 
34316
    public deleteItemFromIgnoredInventoryUpdateList_args(
34317
      long item_id,
34318
      long warehouse_id)
34319
    {
34320
      this();
34321
      this.item_id = item_id;
34322
      setItem_idIsSet(true);
34323
      this.warehouse_id = warehouse_id;
34324
      setWarehouse_idIsSet(true);
34325
    }
34326
 
34327
    /**
34328
     * Performs a deep copy on <i>other</i>.
34329
     */
34330
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
34331
      __isset_bit_vector.clear();
34332
      __isset_bit_vector.or(other.__isset_bit_vector);
34333
      this.item_id = other.item_id;
34334
      this.warehouse_id = other.warehouse_id;
34335
    }
34336
 
34337
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
34338
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
34339
    }
34340
 
34341
    @Override
34342
    public void clear() {
34343
      setItem_idIsSet(false);
34344
      this.item_id = 0;
34345
      setWarehouse_idIsSet(false);
34346
      this.warehouse_id = 0;
34347
    }
34348
 
34349
    public long getItem_id() {
34350
      return this.item_id;
34351
    }
34352
 
34353
    public void setItem_id(long item_id) {
34354
      this.item_id = item_id;
34355
      setItem_idIsSet(true);
34356
    }
34357
 
34358
    public void unsetItem_id() {
34359
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
34360
    }
34361
 
34362
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
34363
    public boolean isSetItem_id() {
34364
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
34365
    }
34366
 
34367
    public void setItem_idIsSet(boolean value) {
34368
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
34369
    }
34370
 
34371
    public long getWarehouse_id() {
34372
      return this.warehouse_id;
34373
    }
34374
 
34375
    public void setWarehouse_id(long warehouse_id) {
34376
      this.warehouse_id = warehouse_id;
34377
      setWarehouse_idIsSet(true);
34378
    }
34379
 
34380
    public void unsetWarehouse_id() {
34381
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
34382
    }
34383
 
34384
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
34385
    public boolean isSetWarehouse_id() {
34386
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
34387
    }
34388
 
34389
    public void setWarehouse_idIsSet(boolean value) {
34390
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
34391
    }
34392
 
34393
    public void setFieldValue(_Fields field, Object value) {
34394
      switch (field) {
34395
      case ITEM_ID:
34396
        if (value == null) {
34397
          unsetItem_id();
34398
        } else {
34399
          setItem_id((Long)value);
34400
        }
34401
        break;
34402
 
34403
      case WAREHOUSE_ID:
34404
        if (value == null) {
34405
          unsetWarehouse_id();
34406
        } else {
34407
          setWarehouse_id((Long)value);
34408
        }
34409
        break;
34410
 
34411
      }
34412
    }
34413
 
34414
    public Object getFieldValue(_Fields field) {
34415
      switch (field) {
34416
      case ITEM_ID:
34417
        return Long.valueOf(getItem_id());
34418
 
34419
      case WAREHOUSE_ID:
34420
        return Long.valueOf(getWarehouse_id());
34421
 
34422
      }
34423
      throw new IllegalStateException();
34424
    }
34425
 
34426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34427
    public boolean isSet(_Fields field) {
34428
      if (field == null) {
34429
        throw new IllegalArgumentException();
34430
      }
34431
 
34432
      switch (field) {
34433
      case ITEM_ID:
34434
        return isSetItem_id();
34435
      case WAREHOUSE_ID:
34436
        return isSetWarehouse_id();
34437
      }
34438
      throw new IllegalStateException();
34439
    }
34440
 
34441
    @Override
34442
    public boolean equals(Object that) {
34443
      if (that == null)
34444
        return false;
34445
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
34446
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
34447
      return false;
34448
    }
34449
 
34450
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
34451
      if (that == null)
34452
        return false;
34453
 
34454
      boolean this_present_item_id = true;
34455
      boolean that_present_item_id = true;
34456
      if (this_present_item_id || that_present_item_id) {
34457
        if (!(this_present_item_id && that_present_item_id))
34458
          return false;
34459
        if (this.item_id != that.item_id)
34460
          return false;
34461
      }
34462
 
34463
      boolean this_present_warehouse_id = true;
34464
      boolean that_present_warehouse_id = true;
34465
      if (this_present_warehouse_id || that_present_warehouse_id) {
34466
        if (!(this_present_warehouse_id && that_present_warehouse_id))
34467
          return false;
34468
        if (this.warehouse_id != that.warehouse_id)
34469
          return false;
34470
      }
34471
 
34472
      return true;
34473
    }
34474
 
34475
    @Override
34476
    public int hashCode() {
34477
      return 0;
34478
    }
34479
 
34480
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
34481
      if (!getClass().equals(other.getClass())) {
34482
        return getClass().getName().compareTo(other.getClass().getName());
34483
      }
34484
 
34485
      int lastComparison = 0;
34486
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
34487
 
34488
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
34489
      if (lastComparison != 0) {
34490
        return lastComparison;
34491
      }
34492
      if (isSetItem_id()) {
34493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
34494
        if (lastComparison != 0) {
34495
          return lastComparison;
34496
        }
34497
      }
34498
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
34499
      if (lastComparison != 0) {
34500
        return lastComparison;
34501
      }
34502
      if (isSetWarehouse_id()) {
34503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
34504
        if (lastComparison != 0) {
34505
          return lastComparison;
34506
        }
34507
      }
34508
      return 0;
34509
    }
34510
 
34511
    public _Fields fieldForId(int fieldId) {
34512
      return _Fields.findByThriftId(fieldId);
34513
    }
34514
 
34515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34516
      org.apache.thrift.protocol.TField field;
34517
      iprot.readStructBegin();
34518
      while (true)
34519
      {
34520
        field = iprot.readFieldBegin();
34521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34522
          break;
34523
        }
34524
        switch (field.id) {
34525
          case 1: // ITEM_ID
34526
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34527
              this.item_id = iprot.readI64();
34528
              setItem_idIsSet(true);
34529
            } else { 
34530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34531
            }
34532
            break;
34533
          case 2: // WAREHOUSE_ID
34534
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34535
              this.warehouse_id = iprot.readI64();
34536
              setWarehouse_idIsSet(true);
34537
            } else { 
34538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34539
            }
34540
            break;
34541
          default:
34542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34543
        }
34544
        iprot.readFieldEnd();
34545
      }
34546
      iprot.readStructEnd();
34547
      validate();
34548
    }
34549
 
34550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34551
      validate();
34552
 
34553
      oprot.writeStructBegin(STRUCT_DESC);
34554
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
34555
      oprot.writeI64(this.item_id);
34556
      oprot.writeFieldEnd();
34557
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
34558
      oprot.writeI64(this.warehouse_id);
34559
      oprot.writeFieldEnd();
34560
      oprot.writeFieldStop();
34561
      oprot.writeStructEnd();
34562
    }
34563
 
34564
    @Override
34565
    public String toString() {
34566
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
34567
      boolean first = true;
34568
 
34569
      sb.append("item_id:");
34570
      sb.append(this.item_id);
34571
      first = false;
34572
      if (!first) sb.append(", ");
34573
      sb.append("warehouse_id:");
34574
      sb.append(this.warehouse_id);
34575
      first = false;
34576
      sb.append(")");
34577
      return sb.toString();
34578
    }
34579
 
34580
    public void validate() throws org.apache.thrift.TException {
34581
      // check for required fields
34582
    }
34583
 
34584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34585
      try {
34586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34587
      } catch (org.apache.thrift.TException te) {
34588
        throw new java.io.IOException(te);
34589
      }
34590
    }
34591
 
34592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34593
      try {
34594
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34595
        __isset_bit_vector = new BitSet(1);
34596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34597
      } catch (org.apache.thrift.TException te) {
34598
        throw new java.io.IOException(te);
34599
      }
34600
    }
34601
 
34602
  }
34603
 
34604
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
34605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
34606
 
34607
    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);
34608
 
34609
    private boolean success; // required
34610
 
34611
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34612
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34613
      SUCCESS((short)0, "success");
34614
 
34615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34616
 
34617
      static {
34618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34619
          byName.put(field.getFieldName(), field);
34620
        }
34621
      }
34622
 
34623
      /**
34624
       * Find the _Fields constant that matches fieldId, or null if its not found.
34625
       */
34626
      public static _Fields findByThriftId(int fieldId) {
34627
        switch(fieldId) {
34628
          case 0: // SUCCESS
34629
            return SUCCESS;
34630
          default:
34631
            return null;
34632
        }
34633
      }
34634
 
34635
      /**
34636
       * Find the _Fields constant that matches fieldId, throwing an exception
34637
       * if it is not found.
34638
       */
34639
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34640
        _Fields fields = findByThriftId(fieldId);
34641
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34642
        return fields;
34643
      }
34644
 
34645
      /**
34646
       * Find the _Fields constant that matches name, or null if its not found.
34647
       */
34648
      public static _Fields findByName(String name) {
34649
        return byName.get(name);
34650
      }
34651
 
34652
      private final short _thriftId;
34653
      private final String _fieldName;
34654
 
34655
      _Fields(short thriftId, String fieldName) {
34656
        _thriftId = thriftId;
34657
        _fieldName = fieldName;
34658
      }
34659
 
34660
      public short getThriftFieldId() {
34661
        return _thriftId;
34662
      }
34663
 
34664
      public String getFieldName() {
34665
        return _fieldName;
34666
      }
34667
    }
34668
 
34669
    // isset id assignments
34670
    private static final int __SUCCESS_ISSET_ID = 0;
34671
    private BitSet __isset_bit_vector = new BitSet(1);
34672
 
34673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34674
    static {
34675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
34680
    }
34681
 
34682
    public deleteItemFromIgnoredInventoryUpdateList_result() {
34683
    }
34684
 
34685
    public deleteItemFromIgnoredInventoryUpdateList_result(
34686
      boolean success)
34687
    {
34688
      this();
34689
      this.success = success;
34690
      setSuccessIsSet(true);
34691
    }
34692
 
34693
    /**
34694
     * Performs a deep copy on <i>other</i>.
34695
     */
34696
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
34697
      __isset_bit_vector.clear();
34698
      __isset_bit_vector.or(other.__isset_bit_vector);
34699
      this.success = other.success;
34700
    }
34701
 
34702
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
34703
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
34704
    }
34705
 
34706
    @Override
34707
    public void clear() {
34708
      setSuccessIsSet(false);
34709
      this.success = false;
34710
    }
34711
 
34712
    public boolean isSuccess() {
34713
      return this.success;
34714
    }
34715
 
34716
    public void setSuccess(boolean success) {
34717
      this.success = success;
34718
      setSuccessIsSet(true);
34719
    }
34720
 
34721
    public void unsetSuccess() {
34722
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
34723
    }
34724
 
34725
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34726
    public boolean isSetSuccess() {
34727
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
34728
    }
34729
 
34730
    public void setSuccessIsSet(boolean value) {
34731
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
34732
    }
34733
 
34734
    public void setFieldValue(_Fields field, Object value) {
34735
      switch (field) {
34736
      case SUCCESS:
34737
        if (value == null) {
34738
          unsetSuccess();
34739
        } else {
34740
          setSuccess((Boolean)value);
34741
        }
34742
        break;
34743
 
34744
      }
34745
    }
34746
 
34747
    public Object getFieldValue(_Fields field) {
34748
      switch (field) {
34749
      case SUCCESS:
34750
        return Boolean.valueOf(isSuccess());
34751
 
34752
      }
34753
      throw new IllegalStateException();
34754
    }
34755
 
34756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34757
    public boolean isSet(_Fields field) {
34758
      if (field == null) {
34759
        throw new IllegalArgumentException();
34760
      }
34761
 
34762
      switch (field) {
34763
      case SUCCESS:
34764
        return isSetSuccess();
34765
      }
34766
      throw new IllegalStateException();
34767
    }
34768
 
34769
    @Override
34770
    public boolean equals(Object that) {
34771
      if (that == null)
34772
        return false;
34773
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
34774
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
34775
      return false;
34776
    }
34777
 
34778
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
34779
      if (that == null)
34780
        return false;
34781
 
34782
      boolean this_present_success = true;
34783
      boolean that_present_success = true;
34784
      if (this_present_success || that_present_success) {
34785
        if (!(this_present_success && that_present_success))
34786
          return false;
34787
        if (this.success != that.success)
34788
          return false;
34789
      }
34790
 
34791
      return true;
34792
    }
34793
 
34794
    @Override
34795
    public int hashCode() {
34796
      return 0;
34797
    }
34798
 
34799
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
34800
      if (!getClass().equals(other.getClass())) {
34801
        return getClass().getName().compareTo(other.getClass().getName());
34802
      }
34803
 
34804
      int lastComparison = 0;
34805
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
34806
 
34807
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34808
      if (lastComparison != 0) {
34809
        return lastComparison;
34810
      }
34811
      if (isSetSuccess()) {
34812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34813
        if (lastComparison != 0) {
34814
          return lastComparison;
34815
        }
34816
      }
34817
      return 0;
34818
    }
34819
 
34820
    public _Fields fieldForId(int fieldId) {
34821
      return _Fields.findByThriftId(fieldId);
34822
    }
34823
 
34824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34825
      org.apache.thrift.protocol.TField field;
34826
      iprot.readStructBegin();
34827
      while (true)
34828
      {
34829
        field = iprot.readFieldBegin();
34830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34831
          break;
34832
        }
34833
        switch (field.id) {
34834
          case 0: // SUCCESS
34835
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
34836
              this.success = iprot.readBool();
34837
              setSuccessIsSet(true);
34838
            } else { 
34839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34840
            }
34841
            break;
34842
          default:
34843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34844
        }
34845
        iprot.readFieldEnd();
34846
      }
34847
      iprot.readStructEnd();
34848
      validate();
34849
    }
34850
 
34851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34852
      oprot.writeStructBegin(STRUCT_DESC);
34853
 
34854
      if (this.isSetSuccess()) {
34855
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34856
        oprot.writeBool(this.success);
34857
        oprot.writeFieldEnd();
34858
      }
34859
      oprot.writeFieldStop();
34860
      oprot.writeStructEnd();
34861
    }
34862
 
34863
    @Override
34864
    public String toString() {
34865
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
34866
      boolean first = true;
34867
 
34868
      sb.append("success:");
34869
      sb.append(this.success);
34870
      first = false;
34871
      sb.append(")");
34872
      return sb.toString();
34873
    }
34874
 
34875
    public void validate() throws org.apache.thrift.TException {
34876
      // check for required fields
34877
    }
34878
 
34879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34880
      try {
34881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34882
      } catch (org.apache.thrift.TException te) {
34883
        throw new java.io.IOException(te);
34884
      }
34885
    }
34886
 
34887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34888
      try {
34889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34890
      } catch (org.apache.thrift.TException te) {
34891
        throw new java.io.IOException(te);
34892
      }
34893
    }
34894
 
34895
  }
34896
 
34897
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
34898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
34899
 
34900
 
34901
 
34902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34904
;
34905
 
34906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34907
 
34908
      static {
34909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34910
          byName.put(field.getFieldName(), field);
34911
        }
34912
      }
34913
 
34914
      /**
34915
       * Find the _Fields constant that matches fieldId, or null if its not found.
34916
       */
34917
      public static _Fields findByThriftId(int fieldId) {
34918
        switch(fieldId) {
34919
          default:
34920
            return null;
34921
        }
34922
      }
34923
 
34924
      /**
34925
       * Find the _Fields constant that matches fieldId, throwing an exception
34926
       * if it is not found.
34927
       */
34928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34929
        _Fields fields = findByThriftId(fieldId);
34930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34931
        return fields;
34932
      }
34933
 
34934
      /**
34935
       * Find the _Fields constant that matches name, or null if its not found.
34936
       */
34937
      public static _Fields findByName(String name) {
34938
        return byName.get(name);
34939
      }
34940
 
34941
      private final short _thriftId;
34942
      private final String _fieldName;
34943
 
34944
      _Fields(short thriftId, String fieldName) {
34945
        _thriftId = thriftId;
34946
        _fieldName = fieldName;
34947
      }
34948
 
34949
      public short getThriftFieldId() {
34950
        return _thriftId;
34951
      }
34952
 
34953
      public String getFieldName() {
34954
        return _fieldName;
34955
      }
34956
    }
34957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34958
    static {
34959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34960
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34961
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
34962
    }
34963
 
34964
    public getAllIgnoredInventoryupdateItemsCount_args() {
34965
    }
34966
 
34967
    /**
34968
     * Performs a deep copy on <i>other</i>.
34969
     */
34970
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
34971
    }
34972
 
34973
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
34974
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
34975
    }
34976
 
34977
    @Override
34978
    public void clear() {
34979
    }
34980
 
34981
    public void setFieldValue(_Fields field, Object value) {
34982
      switch (field) {
34983
      }
34984
    }
34985
 
34986
    public Object getFieldValue(_Fields field) {
34987
      switch (field) {
34988
      }
34989
      throw new IllegalStateException();
34990
    }
34991
 
34992
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34993
    public boolean isSet(_Fields field) {
34994
      if (field == null) {
34995
        throw new IllegalArgumentException();
34996
      }
34997
 
34998
      switch (field) {
34999
      }
35000
      throw new IllegalStateException();
35001
    }
35002
 
35003
    @Override
35004
    public boolean equals(Object that) {
35005
      if (that == null)
35006
        return false;
35007
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
35008
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
35009
      return false;
35010
    }
35011
 
35012
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
35013
      if (that == null)
35014
        return false;
35015
 
35016
      return true;
35017
    }
35018
 
35019
    @Override
35020
    public int hashCode() {
35021
      return 0;
35022
    }
35023
 
35024
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
35025
      if (!getClass().equals(other.getClass())) {
35026
        return getClass().getName().compareTo(other.getClass().getName());
35027
      }
35028
 
35029
      int lastComparison = 0;
35030
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
35031
 
35032
      return 0;
35033
    }
35034
 
35035
    public _Fields fieldForId(int fieldId) {
35036
      return _Fields.findByThriftId(fieldId);
35037
    }
35038
 
35039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35040
      org.apache.thrift.protocol.TField field;
35041
      iprot.readStructBegin();
35042
      while (true)
35043
      {
35044
        field = iprot.readFieldBegin();
35045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35046
          break;
35047
        }
35048
        switch (field.id) {
35049
          default:
35050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35051
        }
35052
        iprot.readFieldEnd();
35053
      }
35054
      iprot.readStructEnd();
35055
      validate();
35056
    }
35057
 
35058
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35059
      validate();
35060
 
35061
      oprot.writeStructBegin(STRUCT_DESC);
35062
      oprot.writeFieldStop();
35063
      oprot.writeStructEnd();
35064
    }
35065
 
35066
    @Override
35067
    public String toString() {
35068
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
35069
      boolean first = true;
35070
 
35071
      sb.append(")");
35072
      return sb.toString();
35073
    }
35074
 
35075
    public void validate() throws org.apache.thrift.TException {
35076
      // check for required fields
35077
    }
35078
 
35079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35080
      try {
35081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35082
      } catch (org.apache.thrift.TException te) {
35083
        throw new java.io.IOException(te);
35084
      }
35085
    }
35086
 
35087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35088
      try {
35089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35090
      } catch (org.apache.thrift.TException te) {
35091
        throw new java.io.IOException(te);
35092
      }
35093
    }
35094
 
35095
  }
35096
 
35097
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
35098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
35099
 
35100
    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);
35101
 
35102
    private int success; // required
35103
 
35104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35106
      SUCCESS((short)0, "success");
35107
 
35108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35109
 
35110
      static {
35111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35112
          byName.put(field.getFieldName(), field);
35113
        }
35114
      }
35115
 
35116
      /**
35117
       * Find the _Fields constant that matches fieldId, or null if its not found.
35118
       */
35119
      public static _Fields findByThriftId(int fieldId) {
35120
        switch(fieldId) {
35121
          case 0: // SUCCESS
35122
            return SUCCESS;
35123
          default:
35124
            return null;
35125
        }
35126
      }
35127
 
35128
      /**
35129
       * Find the _Fields constant that matches fieldId, throwing an exception
35130
       * if it is not found.
35131
       */
35132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35133
        _Fields fields = findByThriftId(fieldId);
35134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35135
        return fields;
35136
      }
35137
 
35138
      /**
35139
       * Find the _Fields constant that matches name, or null if its not found.
35140
       */
35141
      public static _Fields findByName(String name) {
35142
        return byName.get(name);
35143
      }
35144
 
35145
      private final short _thriftId;
35146
      private final String _fieldName;
35147
 
35148
      _Fields(short thriftId, String fieldName) {
35149
        _thriftId = thriftId;
35150
        _fieldName = fieldName;
35151
      }
35152
 
35153
      public short getThriftFieldId() {
35154
        return _thriftId;
35155
      }
35156
 
35157
      public String getFieldName() {
35158
        return _fieldName;
35159
      }
35160
    }
35161
 
35162
    // isset id assignments
35163
    private static final int __SUCCESS_ISSET_ID = 0;
35164
    private BitSet __isset_bit_vector = new BitSet(1);
35165
 
35166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35167
    static {
35168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35169
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
35171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
35173
    }
35174
 
35175
    public getAllIgnoredInventoryupdateItemsCount_result() {
35176
    }
35177
 
35178
    public getAllIgnoredInventoryupdateItemsCount_result(
35179
      int success)
35180
    {
35181
      this();
35182
      this.success = success;
35183
      setSuccessIsSet(true);
35184
    }
35185
 
35186
    /**
35187
     * Performs a deep copy on <i>other</i>.
35188
     */
35189
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
35190
      __isset_bit_vector.clear();
35191
      __isset_bit_vector.or(other.__isset_bit_vector);
35192
      this.success = other.success;
35193
    }
35194
 
35195
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
35196
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
35197
    }
35198
 
35199
    @Override
35200
    public void clear() {
35201
      setSuccessIsSet(false);
35202
      this.success = 0;
35203
    }
35204
 
35205
    public int getSuccess() {
35206
      return this.success;
35207
    }
35208
 
35209
    public void setSuccess(int success) {
35210
      this.success = success;
35211
      setSuccessIsSet(true);
35212
    }
35213
 
35214
    public void unsetSuccess() {
35215
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35216
    }
35217
 
35218
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35219
    public boolean isSetSuccess() {
35220
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35221
    }
35222
 
35223
    public void setSuccessIsSet(boolean value) {
35224
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35225
    }
35226
 
35227
    public void setFieldValue(_Fields field, Object value) {
35228
      switch (field) {
35229
      case SUCCESS:
35230
        if (value == null) {
35231
          unsetSuccess();
35232
        } else {
35233
          setSuccess((Integer)value);
35234
        }
35235
        break;
35236
 
35237
      }
35238
    }
35239
 
35240
    public Object getFieldValue(_Fields field) {
35241
      switch (field) {
35242
      case SUCCESS:
35243
        return Integer.valueOf(getSuccess());
35244
 
35245
      }
35246
      throw new IllegalStateException();
35247
    }
35248
 
35249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35250
    public boolean isSet(_Fields field) {
35251
      if (field == null) {
35252
        throw new IllegalArgumentException();
35253
      }
35254
 
35255
      switch (field) {
35256
      case SUCCESS:
35257
        return isSetSuccess();
35258
      }
35259
      throw new IllegalStateException();
35260
    }
35261
 
35262
    @Override
35263
    public boolean equals(Object that) {
35264
      if (that == null)
35265
        return false;
35266
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
35267
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
35268
      return false;
35269
    }
35270
 
35271
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
35272
      if (that == null)
35273
        return false;
35274
 
35275
      boolean this_present_success = true;
35276
      boolean that_present_success = true;
35277
      if (this_present_success || that_present_success) {
35278
        if (!(this_present_success && that_present_success))
35279
          return false;
35280
        if (this.success != that.success)
35281
          return false;
35282
      }
35283
 
35284
      return true;
35285
    }
35286
 
35287
    @Override
35288
    public int hashCode() {
35289
      return 0;
35290
    }
35291
 
35292
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
35293
      if (!getClass().equals(other.getClass())) {
35294
        return getClass().getName().compareTo(other.getClass().getName());
35295
      }
35296
 
35297
      int lastComparison = 0;
35298
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
35299
 
35300
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35301
      if (lastComparison != 0) {
35302
        return lastComparison;
35303
      }
35304
      if (isSetSuccess()) {
35305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35306
        if (lastComparison != 0) {
35307
          return lastComparison;
35308
        }
35309
      }
35310
      return 0;
35311
    }
35312
 
35313
    public _Fields fieldForId(int fieldId) {
35314
      return _Fields.findByThriftId(fieldId);
35315
    }
35316
 
35317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35318
      org.apache.thrift.protocol.TField field;
35319
      iprot.readStructBegin();
35320
      while (true)
35321
      {
35322
        field = iprot.readFieldBegin();
35323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35324
          break;
35325
        }
35326
        switch (field.id) {
35327
          case 0: // SUCCESS
35328
            if (field.type == org.apache.thrift.protocol.TType.I32) {
35329
              this.success = iprot.readI32();
35330
              setSuccessIsSet(true);
35331
            } else { 
35332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35333
            }
35334
            break;
35335
          default:
35336
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35337
        }
35338
        iprot.readFieldEnd();
35339
      }
35340
      iprot.readStructEnd();
35341
      validate();
35342
    }
35343
 
35344
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35345
      oprot.writeStructBegin(STRUCT_DESC);
35346
 
35347
      if (this.isSetSuccess()) {
35348
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35349
        oprot.writeI32(this.success);
35350
        oprot.writeFieldEnd();
35351
      }
35352
      oprot.writeFieldStop();
35353
      oprot.writeStructEnd();
35354
    }
35355
 
35356
    @Override
35357
    public String toString() {
35358
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
35359
      boolean first = true;
35360
 
35361
      sb.append("success:");
35362
      sb.append(this.success);
35363
      first = false;
35364
      sb.append(")");
35365
      return sb.toString();
35366
    }
35367
 
35368
    public void validate() throws org.apache.thrift.TException {
35369
      // check for required fields
35370
    }
35371
 
35372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35373
      try {
35374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35375
      } catch (org.apache.thrift.TException te) {
35376
        throw new java.io.IOException(te);
35377
      }
35378
    }
35379
 
35380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35381
      try {
35382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35383
      } catch (org.apache.thrift.TException te) {
35384
        throw new java.io.IOException(te);
35385
      }
35386
    }
35387
 
35388
  }
35389
 
35390
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
35391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
35392
 
35393
    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);
35394
    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);
35395
 
35396
    private int offset; // required
35397
    private int limit; // required
35398
 
35399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35401
      OFFSET((short)1, "offset"),
35402
      LIMIT((short)2, "limit");
35403
 
35404
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35405
 
35406
      static {
35407
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35408
          byName.put(field.getFieldName(), field);
35409
        }
35410
      }
35411
 
35412
      /**
35413
       * Find the _Fields constant that matches fieldId, or null if its not found.
35414
       */
35415
      public static _Fields findByThriftId(int fieldId) {
35416
        switch(fieldId) {
35417
          case 1: // OFFSET
35418
            return OFFSET;
35419
          case 2: // LIMIT
35420
            return LIMIT;
35421
          default:
35422
            return null;
35423
        }
35424
      }
35425
 
35426
      /**
35427
       * Find the _Fields constant that matches fieldId, throwing an exception
35428
       * if it is not found.
35429
       */
35430
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35431
        _Fields fields = findByThriftId(fieldId);
35432
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35433
        return fields;
35434
      }
35435
 
35436
      /**
35437
       * Find the _Fields constant that matches name, or null if its not found.
35438
       */
35439
      public static _Fields findByName(String name) {
35440
        return byName.get(name);
35441
      }
35442
 
35443
      private final short _thriftId;
35444
      private final String _fieldName;
35445
 
35446
      _Fields(short thriftId, String fieldName) {
35447
        _thriftId = thriftId;
35448
        _fieldName = fieldName;
35449
      }
35450
 
35451
      public short getThriftFieldId() {
35452
        return _thriftId;
35453
      }
35454
 
35455
      public String getFieldName() {
35456
        return _fieldName;
35457
      }
35458
    }
35459
 
35460
    // isset id assignments
35461
    private static final int __OFFSET_ISSET_ID = 0;
35462
    private static final int __LIMIT_ISSET_ID = 1;
35463
    private BitSet __isset_bit_vector = new BitSet(2);
35464
 
35465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35466
    static {
35467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35468
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
35470
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35471
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
35472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
35474
    }
35475
 
35476
    public getIgnoredInventoryUpdateItemids_args() {
35477
    }
35478
 
35479
    public getIgnoredInventoryUpdateItemids_args(
35480
      int offset,
35481
      int limit)
35482
    {
35483
      this();
35484
      this.offset = offset;
35485
      setOffsetIsSet(true);
35486
      this.limit = limit;
35487
      setLimitIsSet(true);
35488
    }
35489
 
35490
    /**
35491
     * Performs a deep copy on <i>other</i>.
35492
     */
35493
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
35494
      __isset_bit_vector.clear();
35495
      __isset_bit_vector.or(other.__isset_bit_vector);
35496
      this.offset = other.offset;
35497
      this.limit = other.limit;
35498
    }
35499
 
35500
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
35501
      return new getIgnoredInventoryUpdateItemids_args(this);
35502
    }
35503
 
35504
    @Override
35505
    public void clear() {
35506
      setOffsetIsSet(false);
35507
      this.offset = 0;
35508
      setLimitIsSet(false);
35509
      this.limit = 0;
35510
    }
35511
 
35512
    public int getOffset() {
35513
      return this.offset;
35514
    }
35515
 
35516
    public void setOffset(int offset) {
35517
      this.offset = offset;
35518
      setOffsetIsSet(true);
35519
    }
35520
 
35521
    public void unsetOffset() {
35522
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
35523
    }
35524
 
35525
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
35526
    public boolean isSetOffset() {
35527
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
35528
    }
35529
 
35530
    public void setOffsetIsSet(boolean value) {
35531
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
35532
    }
35533
 
35534
    public int getLimit() {
35535
      return this.limit;
35536
    }
35537
 
35538
    public void setLimit(int limit) {
35539
      this.limit = limit;
35540
      setLimitIsSet(true);
35541
    }
35542
 
35543
    public void unsetLimit() {
35544
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
35545
    }
35546
 
35547
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
35548
    public boolean isSetLimit() {
35549
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
35550
    }
35551
 
35552
    public void setLimitIsSet(boolean value) {
35553
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
35554
    }
35555
 
35556
    public void setFieldValue(_Fields field, Object value) {
35557
      switch (field) {
35558
      case OFFSET:
35559
        if (value == null) {
35560
          unsetOffset();
35561
        } else {
35562
          setOffset((Integer)value);
35563
        }
35564
        break;
35565
 
35566
      case LIMIT:
35567
        if (value == null) {
35568
          unsetLimit();
35569
        } else {
35570
          setLimit((Integer)value);
35571
        }
35572
        break;
35573
 
35574
      }
35575
    }
35576
 
35577
    public Object getFieldValue(_Fields field) {
35578
      switch (field) {
35579
      case OFFSET:
35580
        return Integer.valueOf(getOffset());
35581
 
35582
      case LIMIT:
35583
        return Integer.valueOf(getLimit());
35584
 
35585
      }
35586
      throw new IllegalStateException();
35587
    }
35588
 
35589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35590
    public boolean isSet(_Fields field) {
35591
      if (field == null) {
35592
        throw new IllegalArgumentException();
35593
      }
35594
 
35595
      switch (field) {
35596
      case OFFSET:
35597
        return isSetOffset();
35598
      case LIMIT:
35599
        return isSetLimit();
35600
      }
35601
      throw new IllegalStateException();
35602
    }
35603
 
35604
    @Override
35605
    public boolean equals(Object that) {
35606
      if (that == null)
35607
        return false;
35608
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
35609
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
35610
      return false;
35611
    }
35612
 
35613
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
35614
      if (that == null)
35615
        return false;
35616
 
35617
      boolean this_present_offset = true;
35618
      boolean that_present_offset = true;
35619
      if (this_present_offset || that_present_offset) {
35620
        if (!(this_present_offset && that_present_offset))
35621
          return false;
35622
        if (this.offset != that.offset)
35623
          return false;
35624
      }
35625
 
35626
      boolean this_present_limit = true;
35627
      boolean that_present_limit = true;
35628
      if (this_present_limit || that_present_limit) {
35629
        if (!(this_present_limit && that_present_limit))
35630
          return false;
35631
        if (this.limit != that.limit)
35632
          return false;
35633
      }
35634
 
35635
      return true;
35636
    }
35637
 
35638
    @Override
35639
    public int hashCode() {
35640
      return 0;
35641
    }
35642
 
35643
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
35644
      if (!getClass().equals(other.getClass())) {
35645
        return getClass().getName().compareTo(other.getClass().getName());
35646
      }
35647
 
35648
      int lastComparison = 0;
35649
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
35650
 
35651
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
35652
      if (lastComparison != 0) {
35653
        return lastComparison;
35654
      }
35655
      if (isSetOffset()) {
35656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
35657
        if (lastComparison != 0) {
35658
          return lastComparison;
35659
        }
35660
      }
35661
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
35662
      if (lastComparison != 0) {
35663
        return lastComparison;
35664
      }
35665
      if (isSetLimit()) {
35666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
35667
        if (lastComparison != 0) {
35668
          return lastComparison;
35669
        }
35670
      }
35671
      return 0;
35672
    }
35673
 
35674
    public _Fields fieldForId(int fieldId) {
35675
      return _Fields.findByThriftId(fieldId);
35676
    }
35677
 
35678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35679
      org.apache.thrift.protocol.TField field;
35680
      iprot.readStructBegin();
35681
      while (true)
35682
      {
35683
        field = iprot.readFieldBegin();
35684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35685
          break;
35686
        }
35687
        switch (field.id) {
35688
          case 1: // OFFSET
35689
            if (field.type == org.apache.thrift.protocol.TType.I32) {
35690
              this.offset = iprot.readI32();
35691
              setOffsetIsSet(true);
35692
            } else { 
35693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35694
            }
35695
            break;
35696
          case 2: // LIMIT
35697
            if (field.type == org.apache.thrift.protocol.TType.I32) {
35698
              this.limit = iprot.readI32();
35699
              setLimitIsSet(true);
35700
            } else { 
35701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35702
            }
35703
            break;
35704
          default:
35705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35706
        }
35707
        iprot.readFieldEnd();
35708
      }
35709
      iprot.readStructEnd();
35710
      validate();
35711
    }
35712
 
35713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35714
      validate();
35715
 
35716
      oprot.writeStructBegin(STRUCT_DESC);
35717
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
35718
      oprot.writeI32(this.offset);
35719
      oprot.writeFieldEnd();
35720
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
35721
      oprot.writeI32(this.limit);
35722
      oprot.writeFieldEnd();
35723
      oprot.writeFieldStop();
35724
      oprot.writeStructEnd();
35725
    }
35726
 
35727
    @Override
35728
    public String toString() {
35729
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
35730
      boolean first = true;
35731
 
35732
      sb.append("offset:");
35733
      sb.append(this.offset);
35734
      first = false;
35735
      if (!first) sb.append(", ");
35736
      sb.append("limit:");
35737
      sb.append(this.limit);
35738
      first = false;
35739
      sb.append(")");
35740
      return sb.toString();
35741
    }
35742
 
35743
    public void validate() throws org.apache.thrift.TException {
35744
      // check for required fields
35745
    }
35746
 
35747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35748
      try {
35749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35750
      } catch (org.apache.thrift.TException te) {
35751
        throw new java.io.IOException(te);
35752
      }
35753
    }
35754
 
35755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35756
      try {
35757
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35758
        __isset_bit_vector = new BitSet(1);
35759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35760
      } catch (org.apache.thrift.TException te) {
35761
        throw new java.io.IOException(te);
35762
      }
35763
    }
35764
 
35765
  }
35766
 
35767
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
35768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
35769
 
35770
    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);
35771
 
35772
    private List<Long> success; // required
35773
 
35774
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35775
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35776
      SUCCESS((short)0, "success");
35777
 
35778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35779
 
35780
      static {
35781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35782
          byName.put(field.getFieldName(), field);
35783
        }
35784
      }
35785
 
35786
      /**
35787
       * Find the _Fields constant that matches fieldId, or null if its not found.
35788
       */
35789
      public static _Fields findByThriftId(int fieldId) {
35790
        switch(fieldId) {
35791
          case 0: // SUCCESS
35792
            return SUCCESS;
35793
          default:
35794
            return null;
35795
        }
35796
      }
35797
 
35798
      /**
35799
       * Find the _Fields constant that matches fieldId, throwing an exception
35800
       * if it is not found.
35801
       */
35802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35803
        _Fields fields = findByThriftId(fieldId);
35804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35805
        return fields;
35806
      }
35807
 
35808
      /**
35809
       * Find the _Fields constant that matches name, or null if its not found.
35810
       */
35811
      public static _Fields findByName(String name) {
35812
        return byName.get(name);
35813
      }
35814
 
35815
      private final short _thriftId;
35816
      private final String _fieldName;
35817
 
35818
      _Fields(short thriftId, String fieldName) {
35819
        _thriftId = thriftId;
35820
        _fieldName = fieldName;
35821
      }
35822
 
35823
      public short getThriftFieldId() {
35824
        return _thriftId;
35825
      }
35826
 
35827
      public String getFieldName() {
35828
        return _fieldName;
35829
      }
35830
    }
35831
 
35832
    // isset id assignments
35833
 
35834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35835
    static {
35836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35837
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35838
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
35839
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
35840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
35842
    }
35843
 
35844
    public getIgnoredInventoryUpdateItemids_result() {
35845
    }
35846
 
35847
    public getIgnoredInventoryUpdateItemids_result(
35848
      List<Long> success)
35849
    {
35850
      this();
35851
      this.success = success;
35852
    }
35853
 
35854
    /**
35855
     * Performs a deep copy on <i>other</i>.
35856
     */
35857
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
35858
      if (other.isSetSuccess()) {
35859
        List<Long> __this__success = new ArrayList<Long>();
35860
        for (Long other_element : other.success) {
35861
          __this__success.add(other_element);
35862
        }
35863
        this.success = __this__success;
35864
      }
35865
    }
35866
 
35867
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
35868
      return new getIgnoredInventoryUpdateItemids_result(this);
35869
    }
35870
 
35871
    @Override
35872
    public void clear() {
35873
      this.success = null;
35874
    }
35875
 
35876
    public int getSuccessSize() {
35877
      return (this.success == null) ? 0 : this.success.size();
35878
    }
35879
 
35880
    public java.util.Iterator<Long> getSuccessIterator() {
35881
      return (this.success == null) ? null : this.success.iterator();
35882
    }
35883
 
35884
    public void addToSuccess(long elem) {
35885
      if (this.success == null) {
35886
        this.success = new ArrayList<Long>();
35887
      }
35888
      this.success.add(elem);
35889
    }
35890
 
35891
    public List<Long> getSuccess() {
35892
      return this.success;
35893
    }
35894
 
35895
    public void setSuccess(List<Long> success) {
35896
      this.success = success;
35897
    }
35898
 
35899
    public void unsetSuccess() {
35900
      this.success = null;
35901
    }
35902
 
35903
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35904
    public boolean isSetSuccess() {
35905
      return this.success != null;
35906
    }
35907
 
35908
    public void setSuccessIsSet(boolean value) {
35909
      if (!value) {
35910
        this.success = null;
35911
      }
35912
    }
35913
 
35914
    public void setFieldValue(_Fields field, Object value) {
35915
      switch (field) {
35916
      case SUCCESS:
35917
        if (value == null) {
35918
          unsetSuccess();
35919
        } else {
35920
          setSuccess((List<Long>)value);
35921
        }
35922
        break;
35923
 
35924
      }
35925
    }
35926
 
35927
    public Object getFieldValue(_Fields field) {
35928
      switch (field) {
35929
      case SUCCESS:
35930
        return getSuccess();
35931
 
35932
      }
35933
      throw new IllegalStateException();
35934
    }
35935
 
35936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35937
    public boolean isSet(_Fields field) {
35938
      if (field == null) {
35939
        throw new IllegalArgumentException();
35940
      }
35941
 
35942
      switch (field) {
35943
      case SUCCESS:
35944
        return isSetSuccess();
35945
      }
35946
      throw new IllegalStateException();
35947
    }
35948
 
35949
    @Override
35950
    public boolean equals(Object that) {
35951
      if (that == null)
35952
        return false;
35953
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
35954
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
35955
      return false;
35956
    }
35957
 
35958
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
35959
      if (that == null)
35960
        return false;
35961
 
35962
      boolean this_present_success = true && this.isSetSuccess();
35963
      boolean that_present_success = true && that.isSetSuccess();
35964
      if (this_present_success || that_present_success) {
35965
        if (!(this_present_success && that_present_success))
35966
          return false;
35967
        if (!this.success.equals(that.success))
35968
          return false;
35969
      }
35970
 
35971
      return true;
35972
    }
35973
 
35974
    @Override
35975
    public int hashCode() {
35976
      return 0;
35977
    }
35978
 
35979
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
35980
      if (!getClass().equals(other.getClass())) {
35981
        return getClass().getName().compareTo(other.getClass().getName());
35982
      }
35983
 
35984
      int lastComparison = 0;
35985
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
35986
 
35987
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35988
      if (lastComparison != 0) {
35989
        return lastComparison;
35990
      }
35991
      if (isSetSuccess()) {
35992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35993
        if (lastComparison != 0) {
35994
          return lastComparison;
35995
        }
35996
      }
35997
      return 0;
35998
    }
35999
 
36000
    public _Fields fieldForId(int fieldId) {
36001
      return _Fields.findByThriftId(fieldId);
36002
    }
36003
 
36004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36005
      org.apache.thrift.protocol.TField field;
36006
      iprot.readStructBegin();
36007
      while (true)
36008
      {
36009
        field = iprot.readFieldBegin();
36010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36011
          break;
36012
        }
36013
        switch (field.id) {
36014
          case 0: // SUCCESS
36015
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36016
              {
8182 amar.kumar 36017
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
36018
                this.success = new ArrayList<Long>(_list105.size);
36019
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
6531 vikram.rag 36020
                {
8182 amar.kumar 36021
                  long _elem107; // required
36022
                  _elem107 = iprot.readI64();
36023
                  this.success.add(_elem107);
6531 vikram.rag 36024
                }
36025
                iprot.readListEnd();
36026
              }
36027
            } else { 
36028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36029
            }
36030
            break;
36031
          default:
36032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36033
        }
36034
        iprot.readFieldEnd();
36035
      }
36036
      iprot.readStructEnd();
36037
      validate();
36038
    }
36039
 
36040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36041
      oprot.writeStructBegin(STRUCT_DESC);
36042
 
36043
      if (this.isSetSuccess()) {
36044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36045
        {
36046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 36047
          for (long _iter108 : this.success)
6531 vikram.rag 36048
          {
8182 amar.kumar 36049
            oprot.writeI64(_iter108);
6531 vikram.rag 36050
          }
36051
          oprot.writeListEnd();
36052
        }
36053
        oprot.writeFieldEnd();
36054
      }
36055
      oprot.writeFieldStop();
36056
      oprot.writeStructEnd();
36057
    }
36058
 
36059
    @Override
36060
    public String toString() {
36061
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
36062
      boolean first = true;
36063
 
36064
      sb.append("success:");
36065
      if (this.success == null) {
36066
        sb.append("null");
36067
      } else {
36068
        sb.append(this.success);
36069
      }
36070
      first = false;
36071
      sb.append(")");
36072
      return sb.toString();
36073
    }
36074
 
36075
    public void validate() throws org.apache.thrift.TException {
36076
      // check for required fields
36077
    }
36078
 
36079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36080
      try {
36081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36082
      } catch (org.apache.thrift.TException te) {
36083
        throw new java.io.IOException(te);
36084
      }
36085
    }
36086
 
36087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36088
      try {
36089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36090
      } catch (org.apache.thrift.TException te) {
36091
        throw new java.io.IOException(te);
36092
      }
36093
    }
36094
 
36095
  }
36096
 
6821 amar.kumar 36097
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
36098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
36099
 
36100
    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);
36101
    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);
36102
    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);
36103
 
36104
    private long item_id; // required
36105
    private int numOfDaysStock; // required
36106
    private long minStockLevel; // required
36107
 
36108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36109
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36110
      ITEM_ID((short)1, "item_id"),
36111
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
36112
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
36113
 
36114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36115
 
36116
      static {
36117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36118
          byName.put(field.getFieldName(), field);
36119
        }
36120
      }
36121
 
36122
      /**
36123
       * Find the _Fields constant that matches fieldId, or null if its not found.
36124
       */
36125
      public static _Fields findByThriftId(int fieldId) {
36126
        switch(fieldId) {
36127
          case 1: // ITEM_ID
36128
            return ITEM_ID;
36129
          case 2: // NUM_OF_DAYS_STOCK
36130
            return NUM_OF_DAYS_STOCK;
36131
          case 3: // MIN_STOCK_LEVEL
36132
            return MIN_STOCK_LEVEL;
36133
          default:
36134
            return null;
36135
        }
36136
      }
36137
 
36138
      /**
36139
       * Find the _Fields constant that matches fieldId, throwing an exception
36140
       * if it is not found.
36141
       */
36142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36143
        _Fields fields = findByThriftId(fieldId);
36144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36145
        return fields;
36146
      }
36147
 
36148
      /**
36149
       * Find the _Fields constant that matches name, or null if its not found.
36150
       */
36151
      public static _Fields findByName(String name) {
36152
        return byName.get(name);
36153
      }
36154
 
36155
      private final short _thriftId;
36156
      private final String _fieldName;
36157
 
36158
      _Fields(short thriftId, String fieldName) {
36159
        _thriftId = thriftId;
36160
        _fieldName = fieldName;
36161
      }
36162
 
36163
      public short getThriftFieldId() {
36164
        return _thriftId;
36165
      }
36166
 
36167
      public String getFieldName() {
36168
        return _fieldName;
36169
      }
36170
    }
36171
 
36172
    // isset id assignments
36173
    private static final int __ITEM_ID_ISSET_ID = 0;
36174
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
36175
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
36176
    private BitSet __isset_bit_vector = new BitSet(3);
36177
 
36178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36179
    static {
36180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36181
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36183
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
36185
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
36189
    }
36190
 
36191
    public updateItemStockPurchaseParams_args() {
36192
    }
36193
 
36194
    public updateItemStockPurchaseParams_args(
36195
      long item_id,
36196
      int numOfDaysStock,
36197
      long minStockLevel)
36198
    {
36199
      this();
36200
      this.item_id = item_id;
36201
      setItem_idIsSet(true);
36202
      this.numOfDaysStock = numOfDaysStock;
36203
      setNumOfDaysStockIsSet(true);
36204
      this.minStockLevel = minStockLevel;
36205
      setMinStockLevelIsSet(true);
36206
    }
36207
 
36208
    /**
36209
     * Performs a deep copy on <i>other</i>.
36210
     */
36211
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
36212
      __isset_bit_vector.clear();
36213
      __isset_bit_vector.or(other.__isset_bit_vector);
36214
      this.item_id = other.item_id;
36215
      this.numOfDaysStock = other.numOfDaysStock;
36216
      this.minStockLevel = other.minStockLevel;
36217
    }
36218
 
36219
    public updateItemStockPurchaseParams_args deepCopy() {
36220
      return new updateItemStockPurchaseParams_args(this);
36221
    }
36222
 
36223
    @Override
36224
    public void clear() {
36225
      setItem_idIsSet(false);
36226
      this.item_id = 0;
36227
      setNumOfDaysStockIsSet(false);
36228
      this.numOfDaysStock = 0;
36229
      setMinStockLevelIsSet(false);
36230
      this.minStockLevel = 0;
36231
    }
36232
 
36233
    public long getItem_id() {
36234
      return this.item_id;
36235
    }
36236
 
36237
    public void setItem_id(long item_id) {
36238
      this.item_id = item_id;
36239
      setItem_idIsSet(true);
36240
    }
36241
 
36242
    public void unsetItem_id() {
36243
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
36244
    }
36245
 
36246
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
36247
    public boolean isSetItem_id() {
36248
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
36249
    }
36250
 
36251
    public void setItem_idIsSet(boolean value) {
36252
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
36253
    }
36254
 
36255
    public int getNumOfDaysStock() {
36256
      return this.numOfDaysStock;
36257
    }
36258
 
36259
    public void setNumOfDaysStock(int numOfDaysStock) {
36260
      this.numOfDaysStock = numOfDaysStock;
36261
      setNumOfDaysStockIsSet(true);
36262
    }
36263
 
36264
    public void unsetNumOfDaysStock() {
36265
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
36266
    }
36267
 
36268
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
36269
    public boolean isSetNumOfDaysStock() {
36270
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
36271
    }
36272
 
36273
    public void setNumOfDaysStockIsSet(boolean value) {
36274
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
36275
    }
36276
 
36277
    public long getMinStockLevel() {
36278
      return this.minStockLevel;
36279
    }
36280
 
36281
    public void setMinStockLevel(long minStockLevel) {
36282
      this.minStockLevel = minStockLevel;
36283
      setMinStockLevelIsSet(true);
36284
    }
36285
 
36286
    public void unsetMinStockLevel() {
36287
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
36288
    }
36289
 
36290
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
36291
    public boolean isSetMinStockLevel() {
36292
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
36293
    }
36294
 
36295
    public void setMinStockLevelIsSet(boolean value) {
36296
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
36297
    }
36298
 
36299
    public void setFieldValue(_Fields field, Object value) {
36300
      switch (field) {
36301
      case ITEM_ID:
36302
        if (value == null) {
36303
          unsetItem_id();
36304
        } else {
36305
          setItem_id((Long)value);
36306
        }
36307
        break;
36308
 
36309
      case NUM_OF_DAYS_STOCK:
36310
        if (value == null) {
36311
          unsetNumOfDaysStock();
36312
        } else {
36313
          setNumOfDaysStock((Integer)value);
36314
        }
36315
        break;
36316
 
36317
      case MIN_STOCK_LEVEL:
36318
        if (value == null) {
36319
          unsetMinStockLevel();
36320
        } else {
36321
          setMinStockLevel((Long)value);
36322
        }
36323
        break;
36324
 
36325
      }
36326
    }
36327
 
36328
    public Object getFieldValue(_Fields field) {
36329
      switch (field) {
36330
      case ITEM_ID:
36331
        return Long.valueOf(getItem_id());
36332
 
36333
      case NUM_OF_DAYS_STOCK:
36334
        return Integer.valueOf(getNumOfDaysStock());
36335
 
36336
      case MIN_STOCK_LEVEL:
36337
        return Long.valueOf(getMinStockLevel());
36338
 
36339
      }
36340
      throw new IllegalStateException();
36341
    }
36342
 
36343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36344
    public boolean isSet(_Fields field) {
36345
      if (field == null) {
36346
        throw new IllegalArgumentException();
36347
      }
36348
 
36349
      switch (field) {
36350
      case ITEM_ID:
36351
        return isSetItem_id();
36352
      case NUM_OF_DAYS_STOCK:
36353
        return isSetNumOfDaysStock();
36354
      case MIN_STOCK_LEVEL:
36355
        return isSetMinStockLevel();
36356
      }
36357
      throw new IllegalStateException();
36358
    }
36359
 
36360
    @Override
36361
    public boolean equals(Object that) {
36362
      if (that == null)
36363
        return false;
36364
      if (that instanceof updateItemStockPurchaseParams_args)
36365
        return this.equals((updateItemStockPurchaseParams_args)that);
36366
      return false;
36367
    }
36368
 
36369
    public boolean equals(updateItemStockPurchaseParams_args that) {
36370
      if (that == null)
36371
        return false;
36372
 
36373
      boolean this_present_item_id = true;
36374
      boolean that_present_item_id = true;
36375
      if (this_present_item_id || that_present_item_id) {
36376
        if (!(this_present_item_id && that_present_item_id))
36377
          return false;
36378
        if (this.item_id != that.item_id)
36379
          return false;
36380
      }
36381
 
36382
      boolean this_present_numOfDaysStock = true;
36383
      boolean that_present_numOfDaysStock = true;
36384
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
36385
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
36386
          return false;
36387
        if (this.numOfDaysStock != that.numOfDaysStock)
36388
          return false;
36389
      }
36390
 
36391
      boolean this_present_minStockLevel = true;
36392
      boolean that_present_minStockLevel = true;
36393
      if (this_present_minStockLevel || that_present_minStockLevel) {
36394
        if (!(this_present_minStockLevel && that_present_minStockLevel))
36395
          return false;
36396
        if (this.minStockLevel != that.minStockLevel)
36397
          return false;
36398
      }
36399
 
36400
      return true;
36401
    }
36402
 
36403
    @Override
36404
    public int hashCode() {
36405
      return 0;
36406
    }
36407
 
36408
    public int compareTo(updateItemStockPurchaseParams_args other) {
36409
      if (!getClass().equals(other.getClass())) {
36410
        return getClass().getName().compareTo(other.getClass().getName());
36411
      }
36412
 
36413
      int lastComparison = 0;
36414
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
36415
 
36416
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
36417
      if (lastComparison != 0) {
36418
        return lastComparison;
36419
      }
36420
      if (isSetItem_id()) {
36421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
36422
        if (lastComparison != 0) {
36423
          return lastComparison;
36424
        }
36425
      }
36426
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
36427
      if (lastComparison != 0) {
36428
        return lastComparison;
36429
      }
36430
      if (isSetNumOfDaysStock()) {
36431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
36432
        if (lastComparison != 0) {
36433
          return lastComparison;
36434
        }
36435
      }
36436
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
36437
      if (lastComparison != 0) {
36438
        return lastComparison;
36439
      }
36440
      if (isSetMinStockLevel()) {
36441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
36442
        if (lastComparison != 0) {
36443
          return lastComparison;
36444
        }
36445
      }
36446
      return 0;
36447
    }
36448
 
36449
    public _Fields fieldForId(int fieldId) {
36450
      return _Fields.findByThriftId(fieldId);
36451
    }
36452
 
36453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36454
      org.apache.thrift.protocol.TField field;
36455
      iprot.readStructBegin();
36456
      while (true)
36457
      {
36458
        field = iprot.readFieldBegin();
36459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36460
          break;
36461
        }
36462
        switch (field.id) {
36463
          case 1: // ITEM_ID
36464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36465
              this.item_id = iprot.readI64();
36466
              setItem_idIsSet(true);
36467
            } else { 
36468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36469
            }
36470
            break;
36471
          case 2: // NUM_OF_DAYS_STOCK
36472
            if (field.type == org.apache.thrift.protocol.TType.I32) {
36473
              this.numOfDaysStock = iprot.readI32();
36474
              setNumOfDaysStockIsSet(true);
36475
            } else { 
36476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36477
            }
36478
            break;
36479
          case 3: // MIN_STOCK_LEVEL
36480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36481
              this.minStockLevel = iprot.readI64();
36482
              setMinStockLevelIsSet(true);
36483
            } else { 
36484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36485
            }
36486
            break;
36487
          default:
36488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36489
        }
36490
        iprot.readFieldEnd();
36491
      }
36492
      iprot.readStructEnd();
36493
      validate();
36494
    }
36495
 
36496
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36497
      validate();
36498
 
36499
      oprot.writeStructBegin(STRUCT_DESC);
36500
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
36501
      oprot.writeI64(this.item_id);
36502
      oprot.writeFieldEnd();
36503
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
36504
      oprot.writeI32(this.numOfDaysStock);
36505
      oprot.writeFieldEnd();
36506
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
36507
      oprot.writeI64(this.minStockLevel);
36508
      oprot.writeFieldEnd();
36509
      oprot.writeFieldStop();
36510
      oprot.writeStructEnd();
36511
    }
36512
 
36513
    @Override
36514
    public String toString() {
36515
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
36516
      boolean first = true;
36517
 
36518
      sb.append("item_id:");
36519
      sb.append(this.item_id);
36520
      first = false;
36521
      if (!first) sb.append(", ");
36522
      sb.append("numOfDaysStock:");
36523
      sb.append(this.numOfDaysStock);
36524
      first = false;
36525
      if (!first) sb.append(", ");
36526
      sb.append("minStockLevel:");
36527
      sb.append(this.minStockLevel);
36528
      first = false;
36529
      sb.append(")");
36530
      return sb.toString();
36531
    }
36532
 
36533
    public void validate() throws org.apache.thrift.TException {
36534
      // check for required fields
36535
    }
36536
 
36537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36538
      try {
36539
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36540
      } catch (org.apache.thrift.TException te) {
36541
        throw new java.io.IOException(te);
36542
      }
36543
    }
36544
 
36545
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36546
      try {
36547
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36548
        __isset_bit_vector = new BitSet(1);
36549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36550
      } catch (org.apache.thrift.TException te) {
36551
        throw new java.io.IOException(te);
36552
      }
36553
    }
36554
 
36555
  }
36556
 
36557
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
36558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
36559
 
36560
 
36561
 
36562
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36563
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36564
;
36565
 
36566
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36567
 
36568
      static {
36569
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36570
          byName.put(field.getFieldName(), field);
36571
        }
36572
      }
36573
 
36574
      /**
36575
       * Find the _Fields constant that matches fieldId, or null if its not found.
36576
       */
36577
      public static _Fields findByThriftId(int fieldId) {
36578
        switch(fieldId) {
36579
          default:
36580
            return null;
36581
        }
36582
      }
36583
 
36584
      /**
36585
       * Find the _Fields constant that matches fieldId, throwing an exception
36586
       * if it is not found.
36587
       */
36588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36589
        _Fields fields = findByThriftId(fieldId);
36590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36591
        return fields;
36592
      }
36593
 
36594
      /**
36595
       * Find the _Fields constant that matches name, or null if its not found.
36596
       */
36597
      public static _Fields findByName(String name) {
36598
        return byName.get(name);
36599
      }
36600
 
36601
      private final short _thriftId;
36602
      private final String _fieldName;
36603
 
36604
      _Fields(short thriftId, String fieldName) {
36605
        _thriftId = thriftId;
36606
        _fieldName = fieldName;
36607
      }
36608
 
36609
      public short getThriftFieldId() {
36610
        return _thriftId;
36611
      }
36612
 
36613
      public String getFieldName() {
36614
        return _fieldName;
36615
      }
36616
    }
36617
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36618
    static {
36619
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36620
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36621
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
36622
    }
36623
 
36624
    public updateItemStockPurchaseParams_result() {
36625
    }
36626
 
36627
    /**
36628
     * Performs a deep copy on <i>other</i>.
36629
     */
36630
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
36631
    }
36632
 
36633
    public updateItemStockPurchaseParams_result deepCopy() {
36634
      return new updateItemStockPurchaseParams_result(this);
36635
    }
36636
 
36637
    @Override
36638
    public void clear() {
36639
    }
36640
 
36641
    public void setFieldValue(_Fields field, Object value) {
36642
      switch (field) {
36643
      }
36644
    }
36645
 
36646
    public Object getFieldValue(_Fields field) {
36647
      switch (field) {
36648
      }
36649
      throw new IllegalStateException();
36650
    }
36651
 
36652
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36653
    public boolean isSet(_Fields field) {
36654
      if (field == null) {
36655
        throw new IllegalArgumentException();
36656
      }
36657
 
36658
      switch (field) {
36659
      }
36660
      throw new IllegalStateException();
36661
    }
36662
 
36663
    @Override
36664
    public boolean equals(Object that) {
36665
      if (that == null)
36666
        return false;
36667
      if (that instanceof updateItemStockPurchaseParams_result)
36668
        return this.equals((updateItemStockPurchaseParams_result)that);
36669
      return false;
36670
    }
36671
 
36672
    public boolean equals(updateItemStockPurchaseParams_result that) {
36673
      if (that == null)
36674
        return false;
36675
 
36676
      return true;
36677
    }
36678
 
36679
    @Override
36680
    public int hashCode() {
36681
      return 0;
36682
    }
36683
 
36684
    public int compareTo(updateItemStockPurchaseParams_result other) {
36685
      if (!getClass().equals(other.getClass())) {
36686
        return getClass().getName().compareTo(other.getClass().getName());
36687
      }
36688
 
36689
      int lastComparison = 0;
36690
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
36691
 
36692
      return 0;
36693
    }
36694
 
36695
    public _Fields fieldForId(int fieldId) {
36696
      return _Fields.findByThriftId(fieldId);
36697
    }
36698
 
36699
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36700
      org.apache.thrift.protocol.TField field;
36701
      iprot.readStructBegin();
36702
      while (true)
36703
      {
36704
        field = iprot.readFieldBegin();
36705
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36706
          break;
36707
        }
36708
        switch (field.id) {
36709
          default:
36710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36711
        }
36712
        iprot.readFieldEnd();
36713
      }
36714
      iprot.readStructEnd();
36715
      validate();
36716
    }
36717
 
36718
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36719
      oprot.writeStructBegin(STRUCT_DESC);
36720
 
36721
      oprot.writeFieldStop();
36722
      oprot.writeStructEnd();
36723
    }
36724
 
36725
    @Override
36726
    public String toString() {
36727
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
36728
      boolean first = true;
36729
 
36730
      sb.append(")");
36731
      return sb.toString();
36732
    }
36733
 
36734
    public void validate() throws org.apache.thrift.TException {
36735
      // check for required fields
36736
    }
36737
 
36738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36739
      try {
36740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36741
      } catch (org.apache.thrift.TException te) {
36742
        throw new java.io.IOException(te);
36743
      }
36744
    }
36745
 
36746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36747
      try {
36748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36749
      } catch (org.apache.thrift.TException te) {
36750
        throw new java.io.IOException(te);
36751
      }
36752
    }
36753
 
36754
  }
36755
 
36756
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
36757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
36758
 
36759
    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);
36760
 
36761
    private long itemId; // required
36762
 
36763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36765
      ITEM_ID((short)1, "itemId");
36766
 
36767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36768
 
36769
      static {
36770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36771
          byName.put(field.getFieldName(), field);
36772
        }
36773
      }
36774
 
36775
      /**
36776
       * Find the _Fields constant that matches fieldId, or null if its not found.
36777
       */
36778
      public static _Fields findByThriftId(int fieldId) {
36779
        switch(fieldId) {
36780
          case 1: // ITEM_ID
36781
            return ITEM_ID;
36782
          default:
36783
            return null;
36784
        }
36785
      }
36786
 
36787
      /**
36788
       * Find the _Fields constant that matches fieldId, throwing an exception
36789
       * if it is not found.
36790
       */
36791
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36792
        _Fields fields = findByThriftId(fieldId);
36793
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36794
        return fields;
36795
      }
36796
 
36797
      /**
36798
       * Find the _Fields constant that matches name, or null if its not found.
36799
       */
36800
      public static _Fields findByName(String name) {
36801
        return byName.get(name);
36802
      }
36803
 
36804
      private final short _thriftId;
36805
      private final String _fieldName;
36806
 
36807
      _Fields(short thriftId, String fieldName) {
36808
        _thriftId = thriftId;
36809
        _fieldName = fieldName;
36810
      }
36811
 
36812
      public short getThriftFieldId() {
36813
        return _thriftId;
36814
      }
36815
 
36816
      public String getFieldName() {
36817
        return _fieldName;
36818
      }
36819
    }
36820
 
36821
    // isset id assignments
36822
    private static final int __ITEMID_ISSET_ID = 0;
36823
    private BitSet __isset_bit_vector = new BitSet(1);
36824
 
36825
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36826
    static {
36827
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36828
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
36832
    }
36833
 
36834
    public getItemStockPurchaseParams_args() {
36835
    }
36836
 
36837
    public getItemStockPurchaseParams_args(
36838
      long itemId)
36839
    {
36840
      this();
36841
      this.itemId = itemId;
36842
      setItemIdIsSet(true);
36843
    }
36844
 
36845
    /**
36846
     * Performs a deep copy on <i>other</i>.
36847
     */
36848
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
36849
      __isset_bit_vector.clear();
36850
      __isset_bit_vector.or(other.__isset_bit_vector);
36851
      this.itemId = other.itemId;
36852
    }
36853
 
36854
    public getItemStockPurchaseParams_args deepCopy() {
36855
      return new getItemStockPurchaseParams_args(this);
36856
    }
36857
 
36858
    @Override
36859
    public void clear() {
36860
      setItemIdIsSet(false);
36861
      this.itemId = 0;
36862
    }
36863
 
36864
    public long getItemId() {
36865
      return this.itemId;
36866
    }
36867
 
36868
    public void setItemId(long itemId) {
36869
      this.itemId = itemId;
36870
      setItemIdIsSet(true);
36871
    }
36872
 
36873
    public void unsetItemId() {
36874
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
36875
    }
36876
 
36877
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
36878
    public boolean isSetItemId() {
36879
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
36880
    }
36881
 
36882
    public void setItemIdIsSet(boolean value) {
36883
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
36884
    }
36885
 
36886
    public void setFieldValue(_Fields field, Object value) {
36887
      switch (field) {
36888
      case ITEM_ID:
36889
        if (value == null) {
36890
          unsetItemId();
36891
        } else {
36892
          setItemId((Long)value);
36893
        }
36894
        break;
36895
 
36896
      }
36897
    }
36898
 
36899
    public Object getFieldValue(_Fields field) {
36900
      switch (field) {
36901
      case ITEM_ID:
36902
        return Long.valueOf(getItemId());
36903
 
36904
      }
36905
      throw new IllegalStateException();
36906
    }
36907
 
36908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36909
    public boolean isSet(_Fields field) {
36910
      if (field == null) {
36911
        throw new IllegalArgumentException();
36912
      }
36913
 
36914
      switch (field) {
36915
      case ITEM_ID:
36916
        return isSetItemId();
36917
      }
36918
      throw new IllegalStateException();
36919
    }
36920
 
36921
    @Override
36922
    public boolean equals(Object that) {
36923
      if (that == null)
36924
        return false;
36925
      if (that instanceof getItemStockPurchaseParams_args)
36926
        return this.equals((getItemStockPurchaseParams_args)that);
36927
      return false;
36928
    }
36929
 
36930
    public boolean equals(getItemStockPurchaseParams_args that) {
36931
      if (that == null)
36932
        return false;
36933
 
36934
      boolean this_present_itemId = true;
36935
      boolean that_present_itemId = true;
36936
      if (this_present_itemId || that_present_itemId) {
36937
        if (!(this_present_itemId && that_present_itemId))
36938
          return false;
36939
        if (this.itemId != that.itemId)
36940
          return false;
36941
      }
36942
 
36943
      return true;
36944
    }
36945
 
36946
    @Override
36947
    public int hashCode() {
36948
      return 0;
36949
    }
36950
 
36951
    public int compareTo(getItemStockPurchaseParams_args other) {
36952
      if (!getClass().equals(other.getClass())) {
36953
        return getClass().getName().compareTo(other.getClass().getName());
36954
      }
36955
 
36956
      int lastComparison = 0;
36957
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
36958
 
36959
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
36960
      if (lastComparison != 0) {
36961
        return lastComparison;
36962
      }
36963
      if (isSetItemId()) {
36964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
36965
        if (lastComparison != 0) {
36966
          return lastComparison;
36967
        }
36968
      }
36969
      return 0;
36970
    }
36971
 
36972
    public _Fields fieldForId(int fieldId) {
36973
      return _Fields.findByThriftId(fieldId);
36974
    }
36975
 
36976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36977
      org.apache.thrift.protocol.TField field;
36978
      iprot.readStructBegin();
36979
      while (true)
36980
      {
36981
        field = iprot.readFieldBegin();
36982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36983
          break;
36984
        }
36985
        switch (field.id) {
36986
          case 1: // ITEM_ID
36987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36988
              this.itemId = iprot.readI64();
36989
              setItemIdIsSet(true);
36990
            } else { 
36991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36992
            }
36993
            break;
36994
          default:
36995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36996
        }
36997
        iprot.readFieldEnd();
36998
      }
36999
      iprot.readStructEnd();
37000
      validate();
37001
    }
37002
 
37003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37004
      validate();
37005
 
37006
      oprot.writeStructBegin(STRUCT_DESC);
37007
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
37008
      oprot.writeI64(this.itemId);
37009
      oprot.writeFieldEnd();
37010
      oprot.writeFieldStop();
37011
      oprot.writeStructEnd();
37012
    }
37013
 
37014
    @Override
37015
    public String toString() {
37016
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
37017
      boolean first = true;
37018
 
37019
      sb.append("itemId:");
37020
      sb.append(this.itemId);
37021
      first = false;
37022
      sb.append(")");
37023
      return sb.toString();
37024
    }
37025
 
37026
    public void validate() throws org.apache.thrift.TException {
37027
      // check for required fields
37028
    }
37029
 
37030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37031
      try {
37032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37033
      } catch (org.apache.thrift.TException te) {
37034
        throw new java.io.IOException(te);
37035
      }
37036
    }
37037
 
37038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37039
      try {
37040
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37041
        __isset_bit_vector = new BitSet(1);
37042
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37043
      } catch (org.apache.thrift.TException te) {
37044
        throw new java.io.IOException(te);
37045
      }
37046
    }
37047
 
37048
  }
37049
 
37050
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
37051
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
37052
 
37053
    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);
37054
 
37055
    private ItemStockPurchaseParams success; // required
37056
 
37057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37059
      SUCCESS((short)0, "success");
37060
 
37061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37062
 
37063
      static {
37064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37065
          byName.put(field.getFieldName(), field);
37066
        }
37067
      }
37068
 
37069
      /**
37070
       * Find the _Fields constant that matches fieldId, or null if its not found.
37071
       */
37072
      public static _Fields findByThriftId(int fieldId) {
37073
        switch(fieldId) {
37074
          case 0: // SUCCESS
37075
            return SUCCESS;
37076
          default:
37077
            return null;
37078
        }
37079
      }
37080
 
37081
      /**
37082
       * Find the _Fields constant that matches fieldId, throwing an exception
37083
       * if it is not found.
37084
       */
37085
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37086
        _Fields fields = findByThriftId(fieldId);
37087
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37088
        return fields;
37089
      }
37090
 
37091
      /**
37092
       * Find the _Fields constant that matches name, or null if its not found.
37093
       */
37094
      public static _Fields findByName(String name) {
37095
        return byName.get(name);
37096
      }
37097
 
37098
      private final short _thriftId;
37099
      private final String _fieldName;
37100
 
37101
      _Fields(short thriftId, String fieldName) {
37102
        _thriftId = thriftId;
37103
        _fieldName = fieldName;
37104
      }
37105
 
37106
      public short getThriftFieldId() {
37107
        return _thriftId;
37108
      }
37109
 
37110
      public String getFieldName() {
37111
        return _fieldName;
37112
      }
37113
    }
37114
 
37115
    // isset id assignments
37116
 
37117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37118
    static {
37119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37120
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37121
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
37122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
37124
    }
37125
 
37126
    public getItemStockPurchaseParams_result() {
37127
    }
37128
 
37129
    public getItemStockPurchaseParams_result(
37130
      ItemStockPurchaseParams success)
37131
    {
37132
      this();
37133
      this.success = success;
37134
    }
37135
 
37136
    /**
37137
     * Performs a deep copy on <i>other</i>.
37138
     */
37139
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
37140
      if (other.isSetSuccess()) {
37141
        this.success = new ItemStockPurchaseParams(other.success);
37142
      }
37143
    }
37144
 
37145
    public getItemStockPurchaseParams_result deepCopy() {
37146
      return new getItemStockPurchaseParams_result(this);
37147
    }
37148
 
37149
    @Override
37150
    public void clear() {
37151
      this.success = null;
37152
    }
37153
 
37154
    public ItemStockPurchaseParams getSuccess() {
37155
      return this.success;
37156
    }
37157
 
37158
    public void setSuccess(ItemStockPurchaseParams success) {
37159
      this.success = success;
37160
    }
37161
 
37162
    public void unsetSuccess() {
37163
      this.success = null;
37164
    }
37165
 
37166
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37167
    public boolean isSetSuccess() {
37168
      return this.success != null;
37169
    }
37170
 
37171
    public void setSuccessIsSet(boolean value) {
37172
      if (!value) {
37173
        this.success = null;
37174
      }
37175
    }
37176
 
37177
    public void setFieldValue(_Fields field, Object value) {
37178
      switch (field) {
37179
      case SUCCESS:
37180
        if (value == null) {
37181
          unsetSuccess();
37182
        } else {
37183
          setSuccess((ItemStockPurchaseParams)value);
37184
        }
37185
        break;
37186
 
37187
      }
37188
    }
37189
 
37190
    public Object getFieldValue(_Fields field) {
37191
      switch (field) {
37192
      case SUCCESS:
37193
        return getSuccess();
37194
 
37195
      }
37196
      throw new IllegalStateException();
37197
    }
37198
 
37199
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37200
    public boolean isSet(_Fields field) {
37201
      if (field == null) {
37202
        throw new IllegalArgumentException();
37203
      }
37204
 
37205
      switch (field) {
37206
      case SUCCESS:
37207
        return isSetSuccess();
37208
      }
37209
      throw new IllegalStateException();
37210
    }
37211
 
37212
    @Override
37213
    public boolean equals(Object that) {
37214
      if (that == null)
37215
        return false;
37216
      if (that instanceof getItemStockPurchaseParams_result)
37217
        return this.equals((getItemStockPurchaseParams_result)that);
37218
      return false;
37219
    }
37220
 
37221
    public boolean equals(getItemStockPurchaseParams_result that) {
37222
      if (that == null)
37223
        return false;
37224
 
37225
      boolean this_present_success = true && this.isSetSuccess();
37226
      boolean that_present_success = true && that.isSetSuccess();
37227
      if (this_present_success || that_present_success) {
37228
        if (!(this_present_success && that_present_success))
37229
          return false;
37230
        if (!this.success.equals(that.success))
37231
          return false;
37232
      }
37233
 
37234
      return true;
37235
    }
37236
 
37237
    @Override
37238
    public int hashCode() {
37239
      return 0;
37240
    }
37241
 
37242
    public int compareTo(getItemStockPurchaseParams_result other) {
37243
      if (!getClass().equals(other.getClass())) {
37244
        return getClass().getName().compareTo(other.getClass().getName());
37245
      }
37246
 
37247
      int lastComparison = 0;
37248
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
37249
 
37250
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37251
      if (lastComparison != 0) {
37252
        return lastComparison;
37253
      }
37254
      if (isSetSuccess()) {
37255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37256
        if (lastComparison != 0) {
37257
          return lastComparison;
37258
        }
37259
      }
37260
      return 0;
37261
    }
37262
 
37263
    public _Fields fieldForId(int fieldId) {
37264
      return _Fields.findByThriftId(fieldId);
37265
    }
37266
 
37267
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37268
      org.apache.thrift.protocol.TField field;
37269
      iprot.readStructBegin();
37270
      while (true)
37271
      {
37272
        field = iprot.readFieldBegin();
37273
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37274
          break;
37275
        }
37276
        switch (field.id) {
37277
          case 0: // SUCCESS
37278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37279
              this.success = new ItemStockPurchaseParams();
37280
              this.success.read(iprot);
37281
            } else { 
37282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37283
            }
37284
            break;
37285
          default:
37286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37287
        }
37288
        iprot.readFieldEnd();
37289
      }
37290
      iprot.readStructEnd();
37291
      validate();
37292
    }
37293
 
37294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37295
      oprot.writeStructBegin(STRUCT_DESC);
37296
 
37297
      if (this.isSetSuccess()) {
37298
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37299
        this.success.write(oprot);
37300
        oprot.writeFieldEnd();
37301
      }
37302
      oprot.writeFieldStop();
37303
      oprot.writeStructEnd();
37304
    }
37305
 
37306
    @Override
37307
    public String toString() {
37308
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
37309
      boolean first = true;
37310
 
37311
      sb.append("success:");
37312
      if (this.success == null) {
37313
        sb.append("null");
37314
      } else {
37315
        sb.append(this.success);
37316
      }
37317
      first = false;
37318
      sb.append(")");
37319
      return sb.toString();
37320
    }
37321
 
37322
    public void validate() throws org.apache.thrift.TException {
37323
      // check for required fields
37324
    }
37325
 
37326
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37327
      try {
37328
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37329
      } catch (org.apache.thrift.TException te) {
37330
        throw new java.io.IOException(te);
37331
      }
37332
    }
37333
 
37334
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37335
      try {
37336
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37337
      } catch (org.apache.thrift.TException te) {
37338
        throw new java.io.IOException(te);
37339
      }
37340
    }
37341
 
37342
  }
37343
 
37344
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
37345
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
37346
 
37347
    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);
37348
    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);
37349
 
37350
    private Map<Long,Boolean> oosStatusMap; // required
37351
    private long date; // required
37352
 
37353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37355
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
37356
      DATE((short)2, "date");
37357
 
37358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37359
 
37360
      static {
37361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37362
          byName.put(field.getFieldName(), field);
37363
        }
37364
      }
37365
 
37366
      /**
37367
       * Find the _Fields constant that matches fieldId, or null if its not found.
37368
       */
37369
      public static _Fields findByThriftId(int fieldId) {
37370
        switch(fieldId) {
37371
          case 1: // OOS_STATUS_MAP
37372
            return OOS_STATUS_MAP;
37373
          case 2: // DATE
37374
            return DATE;
37375
          default:
37376
            return null;
37377
        }
37378
      }
37379
 
37380
      /**
37381
       * Find the _Fields constant that matches fieldId, throwing an exception
37382
       * if it is not found.
37383
       */
37384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37385
        _Fields fields = findByThriftId(fieldId);
37386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37387
        return fields;
37388
      }
37389
 
37390
      /**
37391
       * Find the _Fields constant that matches name, or null if its not found.
37392
       */
37393
      public static _Fields findByName(String name) {
37394
        return byName.get(name);
37395
      }
37396
 
37397
      private final short _thriftId;
37398
      private final String _fieldName;
37399
 
37400
      _Fields(short thriftId, String fieldName) {
37401
        _thriftId = thriftId;
37402
        _fieldName = fieldName;
37403
      }
37404
 
37405
      public short getThriftFieldId() {
37406
        return _thriftId;
37407
      }
37408
 
37409
      public String getFieldName() {
37410
        return _fieldName;
37411
      }
37412
    }
37413
 
37414
    // isset id assignments
37415
    private static final int __DATE_ISSET_ID = 0;
37416
    private BitSet __isset_bit_vector = new BitSet(1);
37417
 
37418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37419
    static {
37420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37421
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37422
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
37423
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
37424
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
37425
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
37429
    }
37430
 
37431
    public addOosStatusForItem_args() {
37432
    }
37433
 
37434
    public addOosStatusForItem_args(
37435
      Map<Long,Boolean> oosStatusMap,
37436
      long date)
37437
    {
37438
      this();
37439
      this.oosStatusMap = oosStatusMap;
37440
      this.date = date;
37441
      setDateIsSet(true);
37442
    }
37443
 
37444
    /**
37445
     * Performs a deep copy on <i>other</i>.
37446
     */
37447
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
37448
      __isset_bit_vector.clear();
37449
      __isset_bit_vector.or(other.__isset_bit_vector);
37450
      if (other.isSetOosStatusMap()) {
37451
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
37452
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
37453
 
37454
          Long other_element_key = other_element.getKey();
37455
          Boolean other_element_value = other_element.getValue();
37456
 
37457
          Long __this__oosStatusMap_copy_key = other_element_key;
37458
 
37459
          Boolean __this__oosStatusMap_copy_value = other_element_value;
37460
 
37461
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
37462
        }
37463
        this.oosStatusMap = __this__oosStatusMap;
37464
      }
37465
      this.date = other.date;
37466
    }
37467
 
37468
    public addOosStatusForItem_args deepCopy() {
37469
      return new addOosStatusForItem_args(this);
37470
    }
37471
 
37472
    @Override
37473
    public void clear() {
37474
      this.oosStatusMap = null;
37475
      setDateIsSet(false);
37476
      this.date = 0;
37477
    }
37478
 
37479
    public int getOosStatusMapSize() {
37480
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
37481
    }
37482
 
37483
    public void putToOosStatusMap(long key, boolean val) {
37484
      if (this.oosStatusMap == null) {
37485
        this.oosStatusMap = new HashMap<Long,Boolean>();
37486
      }
37487
      this.oosStatusMap.put(key, val);
37488
    }
37489
 
37490
    public Map<Long,Boolean> getOosStatusMap() {
37491
      return this.oosStatusMap;
37492
    }
37493
 
37494
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
37495
      this.oosStatusMap = oosStatusMap;
37496
    }
37497
 
37498
    public void unsetOosStatusMap() {
37499
      this.oosStatusMap = null;
37500
    }
37501
 
37502
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
37503
    public boolean isSetOosStatusMap() {
37504
      return this.oosStatusMap != null;
37505
    }
37506
 
37507
    public void setOosStatusMapIsSet(boolean value) {
37508
      if (!value) {
37509
        this.oosStatusMap = null;
37510
      }
37511
    }
37512
 
37513
    public long getDate() {
37514
      return this.date;
37515
    }
37516
 
37517
    public void setDate(long date) {
37518
      this.date = date;
37519
      setDateIsSet(true);
37520
    }
37521
 
37522
    public void unsetDate() {
37523
      __isset_bit_vector.clear(__DATE_ISSET_ID);
37524
    }
37525
 
37526
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
37527
    public boolean isSetDate() {
37528
      return __isset_bit_vector.get(__DATE_ISSET_ID);
37529
    }
37530
 
37531
    public void setDateIsSet(boolean value) {
37532
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
37533
    }
37534
 
37535
    public void setFieldValue(_Fields field, Object value) {
37536
      switch (field) {
37537
      case OOS_STATUS_MAP:
37538
        if (value == null) {
37539
          unsetOosStatusMap();
37540
        } else {
37541
          setOosStatusMap((Map<Long,Boolean>)value);
37542
        }
37543
        break;
37544
 
37545
      case DATE:
37546
        if (value == null) {
37547
          unsetDate();
37548
        } else {
37549
          setDate((Long)value);
37550
        }
37551
        break;
37552
 
37553
      }
37554
    }
37555
 
37556
    public Object getFieldValue(_Fields field) {
37557
      switch (field) {
37558
      case OOS_STATUS_MAP:
37559
        return getOosStatusMap();
37560
 
37561
      case DATE:
37562
        return Long.valueOf(getDate());
37563
 
37564
      }
37565
      throw new IllegalStateException();
37566
    }
37567
 
37568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37569
    public boolean isSet(_Fields field) {
37570
      if (field == null) {
37571
        throw new IllegalArgumentException();
37572
      }
37573
 
37574
      switch (field) {
37575
      case OOS_STATUS_MAP:
37576
        return isSetOosStatusMap();
37577
      case DATE:
37578
        return isSetDate();
37579
      }
37580
      throw new IllegalStateException();
37581
    }
37582
 
37583
    @Override
37584
    public boolean equals(Object that) {
37585
      if (that == null)
37586
        return false;
37587
      if (that instanceof addOosStatusForItem_args)
37588
        return this.equals((addOosStatusForItem_args)that);
37589
      return false;
37590
    }
37591
 
37592
    public boolean equals(addOosStatusForItem_args that) {
37593
      if (that == null)
37594
        return false;
37595
 
37596
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
37597
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
37598
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
37599
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
37600
          return false;
37601
        if (!this.oosStatusMap.equals(that.oosStatusMap))
37602
          return false;
37603
      }
37604
 
37605
      boolean this_present_date = true;
37606
      boolean that_present_date = true;
37607
      if (this_present_date || that_present_date) {
37608
        if (!(this_present_date && that_present_date))
37609
          return false;
37610
        if (this.date != that.date)
37611
          return false;
37612
      }
37613
 
37614
      return true;
37615
    }
37616
 
37617
    @Override
37618
    public int hashCode() {
37619
      return 0;
37620
    }
37621
 
37622
    public int compareTo(addOosStatusForItem_args other) {
37623
      if (!getClass().equals(other.getClass())) {
37624
        return getClass().getName().compareTo(other.getClass().getName());
37625
      }
37626
 
37627
      int lastComparison = 0;
37628
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
37629
 
37630
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
37631
      if (lastComparison != 0) {
37632
        return lastComparison;
37633
      }
37634
      if (isSetOosStatusMap()) {
37635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
37636
        if (lastComparison != 0) {
37637
          return lastComparison;
37638
        }
37639
      }
37640
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
37641
      if (lastComparison != 0) {
37642
        return lastComparison;
37643
      }
37644
      if (isSetDate()) {
37645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
37646
        if (lastComparison != 0) {
37647
          return lastComparison;
37648
        }
37649
      }
37650
      return 0;
37651
    }
37652
 
37653
    public _Fields fieldForId(int fieldId) {
37654
      return _Fields.findByThriftId(fieldId);
37655
    }
37656
 
37657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37658
      org.apache.thrift.protocol.TField field;
37659
      iprot.readStructBegin();
37660
      while (true)
37661
      {
37662
        field = iprot.readFieldBegin();
37663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37664
          break;
37665
        }
37666
        switch (field.id) {
37667
          case 1: // OOS_STATUS_MAP
37668
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
37669
              {
8182 amar.kumar 37670
                org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin();
37671
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map109.size);
37672
                for (int _i110 = 0; _i110 < _map109.size; ++_i110)
6821 amar.kumar 37673
                {
8182 amar.kumar 37674
                  long _key111; // required
37675
                  boolean _val112; // required
37676
                  _key111 = iprot.readI64();
37677
                  _val112 = iprot.readBool();
37678
                  this.oosStatusMap.put(_key111, _val112);
6821 amar.kumar 37679
                }
37680
                iprot.readMapEnd();
37681
              }
37682
            } else { 
37683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37684
            }
37685
            break;
37686
          case 2: // DATE
37687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37688
              this.date = iprot.readI64();
37689
              setDateIsSet(true);
37690
            } else { 
37691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37692
            }
37693
            break;
37694
          default:
37695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37696
        }
37697
        iprot.readFieldEnd();
37698
      }
37699
      iprot.readStructEnd();
37700
      validate();
37701
    }
37702
 
37703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37704
      validate();
37705
 
37706
      oprot.writeStructBegin(STRUCT_DESC);
37707
      if (this.oosStatusMap != null) {
37708
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
37709
        {
37710
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.oosStatusMap.size()));
8182 amar.kumar 37711
          for (Map.Entry<Long, Boolean> _iter113 : this.oosStatusMap.entrySet())
6821 amar.kumar 37712
          {
8182 amar.kumar 37713
            oprot.writeI64(_iter113.getKey());
37714
            oprot.writeBool(_iter113.getValue());
6821 amar.kumar 37715
          }
37716
          oprot.writeMapEnd();
37717
        }
37718
        oprot.writeFieldEnd();
37719
      }
37720
      oprot.writeFieldBegin(DATE_FIELD_DESC);
37721
      oprot.writeI64(this.date);
37722
      oprot.writeFieldEnd();
37723
      oprot.writeFieldStop();
37724
      oprot.writeStructEnd();
37725
    }
37726
 
37727
    @Override
37728
    public String toString() {
37729
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
37730
      boolean first = true;
37731
 
37732
      sb.append("oosStatusMap:");
37733
      if (this.oosStatusMap == null) {
37734
        sb.append("null");
37735
      } else {
37736
        sb.append(this.oosStatusMap);
37737
      }
37738
      first = false;
37739
      if (!first) sb.append(", ");
37740
      sb.append("date:");
37741
      sb.append(this.date);
37742
      first = false;
37743
      sb.append(")");
37744
      return sb.toString();
37745
    }
37746
 
37747
    public void validate() throws org.apache.thrift.TException {
37748
      // check for required fields
37749
    }
37750
 
37751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37752
      try {
37753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37754
      } catch (org.apache.thrift.TException te) {
37755
        throw new java.io.IOException(te);
37756
      }
37757
    }
37758
 
37759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37760
      try {
37761
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37762
        __isset_bit_vector = new BitSet(1);
37763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37764
      } catch (org.apache.thrift.TException te) {
37765
        throw new java.io.IOException(te);
37766
      }
37767
    }
37768
 
37769
  }
37770
 
37771
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
37772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
37773
 
37774
 
37775
 
37776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37778
;
37779
 
37780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37781
 
37782
      static {
37783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37784
          byName.put(field.getFieldName(), field);
37785
        }
37786
      }
37787
 
37788
      /**
37789
       * Find the _Fields constant that matches fieldId, or null if its not found.
37790
       */
37791
      public static _Fields findByThriftId(int fieldId) {
37792
        switch(fieldId) {
37793
          default:
37794
            return null;
37795
        }
37796
      }
37797
 
37798
      /**
37799
       * Find the _Fields constant that matches fieldId, throwing an exception
37800
       * if it is not found.
37801
       */
37802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37803
        _Fields fields = findByThriftId(fieldId);
37804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37805
        return fields;
37806
      }
37807
 
37808
      /**
37809
       * Find the _Fields constant that matches name, or null if its not found.
37810
       */
37811
      public static _Fields findByName(String name) {
37812
        return byName.get(name);
37813
      }
37814
 
37815
      private final short _thriftId;
37816
      private final String _fieldName;
37817
 
37818
      _Fields(short thriftId, String fieldName) {
37819
        _thriftId = thriftId;
37820
        _fieldName = fieldName;
37821
      }
37822
 
37823
      public short getThriftFieldId() {
37824
        return _thriftId;
37825
      }
37826
 
37827
      public String getFieldName() {
37828
        return _fieldName;
37829
      }
37830
    }
37831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37832
    static {
37833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
37836
    }
37837
 
37838
    public addOosStatusForItem_result() {
37839
    }
37840
 
37841
    /**
37842
     * Performs a deep copy on <i>other</i>.
37843
     */
37844
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
37845
    }
37846
 
37847
    public addOosStatusForItem_result deepCopy() {
37848
      return new addOosStatusForItem_result(this);
37849
    }
37850
 
37851
    @Override
37852
    public void clear() {
37853
    }
37854
 
37855
    public void setFieldValue(_Fields field, Object value) {
37856
      switch (field) {
37857
      }
37858
    }
37859
 
37860
    public Object getFieldValue(_Fields field) {
37861
      switch (field) {
37862
      }
37863
      throw new IllegalStateException();
37864
    }
37865
 
37866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37867
    public boolean isSet(_Fields field) {
37868
      if (field == null) {
37869
        throw new IllegalArgumentException();
37870
      }
37871
 
37872
      switch (field) {
37873
      }
37874
      throw new IllegalStateException();
37875
    }
37876
 
37877
    @Override
37878
    public boolean equals(Object that) {
37879
      if (that == null)
37880
        return false;
37881
      if (that instanceof addOosStatusForItem_result)
37882
        return this.equals((addOosStatusForItem_result)that);
37883
      return false;
37884
    }
37885
 
37886
    public boolean equals(addOosStatusForItem_result that) {
37887
      if (that == null)
37888
        return false;
37889
 
37890
      return true;
37891
    }
37892
 
37893
    @Override
37894
    public int hashCode() {
37895
      return 0;
37896
    }
37897
 
37898
    public int compareTo(addOosStatusForItem_result other) {
37899
      if (!getClass().equals(other.getClass())) {
37900
        return getClass().getName().compareTo(other.getClass().getName());
37901
      }
37902
 
37903
      int lastComparison = 0;
37904
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
37905
 
37906
      return 0;
37907
    }
37908
 
37909
    public _Fields fieldForId(int fieldId) {
37910
      return _Fields.findByThriftId(fieldId);
37911
    }
37912
 
37913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37914
      org.apache.thrift.protocol.TField field;
37915
      iprot.readStructBegin();
37916
      while (true)
37917
      {
37918
        field = iprot.readFieldBegin();
37919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37920
          break;
37921
        }
37922
        switch (field.id) {
37923
          default:
37924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37925
        }
37926
        iprot.readFieldEnd();
37927
      }
37928
      iprot.readStructEnd();
37929
      validate();
37930
    }
37931
 
37932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37933
      oprot.writeStructBegin(STRUCT_DESC);
37934
 
37935
      oprot.writeFieldStop();
37936
      oprot.writeStructEnd();
37937
    }
37938
 
37939
    @Override
37940
    public String toString() {
37941
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
37942
      boolean first = true;
37943
 
37944
      sb.append(")");
37945
      return sb.toString();
37946
    }
37947
 
37948
    public void validate() throws org.apache.thrift.TException {
37949
      // check for required fields
37950
    }
37951
 
37952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37953
      try {
37954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37955
      } catch (org.apache.thrift.TException te) {
37956
        throw new java.io.IOException(te);
37957
      }
37958
    }
37959
 
37960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37961
      try {
37962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37963
      } catch (org.apache.thrift.TException te) {
37964
        throw new java.io.IOException(te);
37965
      }
37966
    }
37967
 
37968
  }
37969
 
6832 amar.kumar 37970
  public static class getOosStatusesForXDaysForItem_args implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_args, getOosStatusesForXDaysForItem_args._Fields>, java.io.Serializable, Cloneable   {
37971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_args");
37972
 
37973
    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);
37974
    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);
37975
 
37976
    private long itemId; // required
37977
    private int days; // required
37978
 
37979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37981
      ITEM_ID((short)1, "itemId"),
37982
      DAYS((short)2, "days");
37983
 
37984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37985
 
37986
      static {
37987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37988
          byName.put(field.getFieldName(), field);
37989
        }
37990
      }
37991
 
37992
      /**
37993
       * Find the _Fields constant that matches fieldId, or null if its not found.
37994
       */
37995
      public static _Fields findByThriftId(int fieldId) {
37996
        switch(fieldId) {
37997
          case 1: // ITEM_ID
37998
            return ITEM_ID;
37999
          case 2: // DAYS
38000
            return DAYS;
38001
          default:
38002
            return null;
38003
        }
38004
      }
38005
 
38006
      /**
38007
       * Find the _Fields constant that matches fieldId, throwing an exception
38008
       * if it is not found.
38009
       */
38010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38011
        _Fields fields = findByThriftId(fieldId);
38012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38013
        return fields;
38014
      }
38015
 
38016
      /**
38017
       * Find the _Fields constant that matches name, or null if its not found.
38018
       */
38019
      public static _Fields findByName(String name) {
38020
        return byName.get(name);
38021
      }
38022
 
38023
      private final short _thriftId;
38024
      private final String _fieldName;
38025
 
38026
      _Fields(short thriftId, String fieldName) {
38027
        _thriftId = thriftId;
38028
        _fieldName = fieldName;
38029
      }
38030
 
38031
      public short getThriftFieldId() {
38032
        return _thriftId;
38033
      }
38034
 
38035
      public String getFieldName() {
38036
        return _fieldName;
38037
      }
38038
    }
38039
 
38040
    // isset id assignments
38041
    private static final int __ITEMID_ISSET_ID = 0;
38042
    private static final int __DAYS_ISSET_ID = 1;
38043
    private BitSet __isset_bit_vector = new BitSet(2);
38044
 
38045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38046
    static {
38047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38048
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38050
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
38052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_args.class, metaDataMap);
38054
    }
38055
 
38056
    public getOosStatusesForXDaysForItem_args() {
38057
    }
38058
 
38059
    public getOosStatusesForXDaysForItem_args(
38060
      long itemId,
38061
      int days)
38062
    {
38063
      this();
38064
      this.itemId = itemId;
38065
      setItemIdIsSet(true);
38066
      this.days = days;
38067
      setDaysIsSet(true);
38068
    }
38069
 
38070
    /**
38071
     * Performs a deep copy on <i>other</i>.
38072
     */
38073
    public getOosStatusesForXDaysForItem_args(getOosStatusesForXDaysForItem_args other) {
38074
      __isset_bit_vector.clear();
38075
      __isset_bit_vector.or(other.__isset_bit_vector);
38076
      this.itemId = other.itemId;
38077
      this.days = other.days;
38078
    }
38079
 
38080
    public getOosStatusesForXDaysForItem_args deepCopy() {
38081
      return new getOosStatusesForXDaysForItem_args(this);
38082
    }
38083
 
38084
    @Override
38085
    public void clear() {
38086
      setItemIdIsSet(false);
38087
      this.itemId = 0;
38088
      setDaysIsSet(false);
38089
      this.days = 0;
38090
    }
38091
 
38092
    public long getItemId() {
38093
      return this.itemId;
38094
    }
38095
 
38096
    public void setItemId(long itemId) {
38097
      this.itemId = itemId;
38098
      setItemIdIsSet(true);
38099
    }
38100
 
38101
    public void unsetItemId() {
38102
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
38103
    }
38104
 
38105
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
38106
    public boolean isSetItemId() {
38107
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
38108
    }
38109
 
38110
    public void setItemIdIsSet(boolean value) {
38111
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
38112
    }
38113
 
38114
    public int getDays() {
38115
      return this.days;
38116
    }
38117
 
38118
    public void setDays(int days) {
38119
      this.days = days;
38120
      setDaysIsSet(true);
38121
    }
38122
 
38123
    public void unsetDays() {
38124
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
38125
    }
38126
 
38127
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
38128
    public boolean isSetDays() {
38129
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
38130
    }
38131
 
38132
    public void setDaysIsSet(boolean value) {
38133
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
38134
    }
38135
 
38136
    public void setFieldValue(_Fields field, Object value) {
38137
      switch (field) {
38138
      case ITEM_ID:
38139
        if (value == null) {
38140
          unsetItemId();
38141
        } else {
38142
          setItemId((Long)value);
38143
        }
38144
        break;
38145
 
38146
      case DAYS:
38147
        if (value == null) {
38148
          unsetDays();
38149
        } else {
38150
          setDays((Integer)value);
38151
        }
38152
        break;
38153
 
38154
      }
38155
    }
38156
 
38157
    public Object getFieldValue(_Fields field) {
38158
      switch (field) {
38159
      case ITEM_ID:
38160
        return Long.valueOf(getItemId());
38161
 
38162
      case DAYS:
38163
        return Integer.valueOf(getDays());
38164
 
38165
      }
38166
      throw new IllegalStateException();
38167
    }
38168
 
38169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38170
    public boolean isSet(_Fields field) {
38171
      if (field == null) {
38172
        throw new IllegalArgumentException();
38173
      }
38174
 
38175
      switch (field) {
38176
      case ITEM_ID:
38177
        return isSetItemId();
38178
      case DAYS:
38179
        return isSetDays();
38180
      }
38181
      throw new IllegalStateException();
38182
    }
38183
 
38184
    @Override
38185
    public boolean equals(Object that) {
38186
      if (that == null)
38187
        return false;
38188
      if (that instanceof getOosStatusesForXDaysForItem_args)
38189
        return this.equals((getOosStatusesForXDaysForItem_args)that);
38190
      return false;
38191
    }
38192
 
38193
    public boolean equals(getOosStatusesForXDaysForItem_args that) {
38194
      if (that == null)
38195
        return false;
38196
 
38197
      boolean this_present_itemId = true;
38198
      boolean that_present_itemId = true;
38199
      if (this_present_itemId || that_present_itemId) {
38200
        if (!(this_present_itemId && that_present_itemId))
38201
          return false;
38202
        if (this.itemId != that.itemId)
38203
          return false;
38204
      }
38205
 
38206
      boolean this_present_days = true;
38207
      boolean that_present_days = true;
38208
      if (this_present_days || that_present_days) {
38209
        if (!(this_present_days && that_present_days))
38210
          return false;
38211
        if (this.days != that.days)
38212
          return false;
38213
      }
38214
 
38215
      return true;
38216
    }
38217
 
38218
    @Override
38219
    public int hashCode() {
38220
      return 0;
38221
    }
38222
 
38223
    public int compareTo(getOosStatusesForXDaysForItem_args other) {
38224
      if (!getClass().equals(other.getClass())) {
38225
        return getClass().getName().compareTo(other.getClass().getName());
38226
      }
38227
 
38228
      int lastComparison = 0;
38229
      getOosStatusesForXDaysForItem_args typedOther = (getOosStatusesForXDaysForItem_args)other;
38230
 
38231
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
38232
      if (lastComparison != 0) {
38233
        return lastComparison;
38234
      }
38235
      if (isSetItemId()) {
38236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
38237
        if (lastComparison != 0) {
38238
          return lastComparison;
38239
        }
38240
      }
38241
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
38242
      if (lastComparison != 0) {
38243
        return lastComparison;
38244
      }
38245
      if (isSetDays()) {
38246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
38247
        if (lastComparison != 0) {
38248
          return lastComparison;
38249
        }
38250
      }
38251
      return 0;
38252
    }
38253
 
38254
    public _Fields fieldForId(int fieldId) {
38255
      return _Fields.findByThriftId(fieldId);
38256
    }
38257
 
38258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38259
      org.apache.thrift.protocol.TField field;
38260
      iprot.readStructBegin();
38261
      while (true)
38262
      {
38263
        field = iprot.readFieldBegin();
38264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38265
          break;
38266
        }
38267
        switch (field.id) {
38268
          case 1: // ITEM_ID
38269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38270
              this.itemId = iprot.readI64();
38271
              setItemIdIsSet(true);
38272
            } else { 
38273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38274
            }
38275
            break;
38276
          case 2: // DAYS
38277
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38278
              this.days = iprot.readI32();
38279
              setDaysIsSet(true);
38280
            } else { 
38281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38282
            }
38283
            break;
38284
          default:
38285
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38286
        }
38287
        iprot.readFieldEnd();
38288
      }
38289
      iprot.readStructEnd();
38290
      validate();
38291
    }
38292
 
38293
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38294
      validate();
38295
 
38296
      oprot.writeStructBegin(STRUCT_DESC);
38297
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
38298
      oprot.writeI64(this.itemId);
38299
      oprot.writeFieldEnd();
38300
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
38301
      oprot.writeI32(this.days);
38302
      oprot.writeFieldEnd();
38303
      oprot.writeFieldStop();
38304
      oprot.writeStructEnd();
38305
    }
38306
 
38307
    @Override
38308
    public String toString() {
38309
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_args(");
38310
      boolean first = true;
38311
 
38312
      sb.append("itemId:");
38313
      sb.append(this.itemId);
38314
      first = false;
38315
      if (!first) sb.append(", ");
38316
      sb.append("days:");
38317
      sb.append(this.days);
38318
      first = false;
38319
      sb.append(")");
38320
      return sb.toString();
38321
    }
38322
 
38323
    public void validate() throws org.apache.thrift.TException {
38324
      // check for required fields
38325
    }
38326
 
38327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38328
      try {
38329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38330
      } catch (org.apache.thrift.TException te) {
38331
        throw new java.io.IOException(te);
38332
      }
38333
    }
38334
 
38335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38336
      try {
38337
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
38338
        __isset_bit_vector = new BitSet(1);
38339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38340
      } catch (org.apache.thrift.TException te) {
38341
        throw new java.io.IOException(te);
38342
      }
38343
    }
38344
 
38345
  }
38346
 
38347
  public static class getOosStatusesForXDaysForItem_result implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_result, getOosStatusesForXDaysForItem_result._Fields>, java.io.Serializable, Cloneable   {
38348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_result");
38349
 
38350
    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);
38351
 
38352
    private List<OOSStatus> success; // required
38353
 
38354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38356
      SUCCESS((short)0, "success");
38357
 
38358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38359
 
38360
      static {
38361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38362
          byName.put(field.getFieldName(), field);
38363
        }
38364
      }
38365
 
38366
      /**
38367
       * Find the _Fields constant that matches fieldId, or null if its not found.
38368
       */
38369
      public static _Fields findByThriftId(int fieldId) {
38370
        switch(fieldId) {
38371
          case 0: // SUCCESS
38372
            return SUCCESS;
38373
          default:
38374
            return null;
38375
        }
38376
      }
38377
 
38378
      /**
38379
       * Find the _Fields constant that matches fieldId, throwing an exception
38380
       * if it is not found.
38381
       */
38382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38383
        _Fields fields = findByThriftId(fieldId);
38384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38385
        return fields;
38386
      }
38387
 
38388
      /**
38389
       * Find the _Fields constant that matches name, or null if its not found.
38390
       */
38391
      public static _Fields findByName(String name) {
38392
        return byName.get(name);
38393
      }
38394
 
38395
      private final short _thriftId;
38396
      private final String _fieldName;
38397
 
38398
      _Fields(short thriftId, String fieldName) {
38399
        _thriftId = thriftId;
38400
        _fieldName = fieldName;
38401
      }
38402
 
38403
      public short getThriftFieldId() {
38404
        return _thriftId;
38405
      }
38406
 
38407
      public String getFieldName() {
38408
        return _fieldName;
38409
      }
38410
    }
38411
 
38412
    // isset id assignments
38413
 
38414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38415
    static {
38416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38417
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38418
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38419
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
38420
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38421
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_result.class, metaDataMap);
38422
    }
38423
 
38424
    public getOosStatusesForXDaysForItem_result() {
38425
    }
38426
 
38427
    public getOosStatusesForXDaysForItem_result(
38428
      List<OOSStatus> success)
38429
    {
38430
      this();
38431
      this.success = success;
38432
    }
38433
 
38434
    /**
38435
     * Performs a deep copy on <i>other</i>.
38436
     */
38437
    public getOosStatusesForXDaysForItem_result(getOosStatusesForXDaysForItem_result other) {
38438
      if (other.isSetSuccess()) {
38439
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
38440
        for (OOSStatus other_element : other.success) {
38441
          __this__success.add(new OOSStatus(other_element));
38442
        }
38443
        this.success = __this__success;
38444
      }
38445
    }
38446
 
38447
    public getOosStatusesForXDaysForItem_result deepCopy() {
38448
      return new getOosStatusesForXDaysForItem_result(this);
38449
    }
38450
 
38451
    @Override
38452
    public void clear() {
38453
      this.success = null;
38454
    }
38455
 
38456
    public int getSuccessSize() {
38457
      return (this.success == null) ? 0 : this.success.size();
38458
    }
38459
 
38460
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
38461
      return (this.success == null) ? null : this.success.iterator();
38462
    }
38463
 
38464
    public void addToSuccess(OOSStatus elem) {
38465
      if (this.success == null) {
38466
        this.success = new ArrayList<OOSStatus>();
38467
      }
38468
      this.success.add(elem);
38469
    }
38470
 
38471
    public List<OOSStatus> getSuccess() {
38472
      return this.success;
38473
    }
38474
 
38475
    public void setSuccess(List<OOSStatus> success) {
38476
      this.success = success;
38477
    }
38478
 
38479
    public void unsetSuccess() {
38480
      this.success = null;
38481
    }
38482
 
38483
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
38484
    public boolean isSetSuccess() {
38485
      return this.success != null;
38486
    }
38487
 
38488
    public void setSuccessIsSet(boolean value) {
38489
      if (!value) {
38490
        this.success = null;
38491
      }
38492
    }
38493
 
38494
    public void setFieldValue(_Fields field, Object value) {
38495
      switch (field) {
38496
      case SUCCESS:
38497
        if (value == null) {
38498
          unsetSuccess();
38499
        } else {
38500
          setSuccess((List<OOSStatus>)value);
38501
        }
38502
        break;
38503
 
38504
      }
38505
    }
38506
 
38507
    public Object getFieldValue(_Fields field) {
38508
      switch (field) {
38509
      case SUCCESS:
38510
        return getSuccess();
38511
 
38512
      }
38513
      throw new IllegalStateException();
38514
    }
38515
 
38516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38517
    public boolean isSet(_Fields field) {
38518
      if (field == null) {
38519
        throw new IllegalArgumentException();
38520
      }
38521
 
38522
      switch (field) {
38523
      case SUCCESS:
38524
        return isSetSuccess();
38525
      }
38526
      throw new IllegalStateException();
38527
    }
38528
 
38529
    @Override
38530
    public boolean equals(Object that) {
38531
      if (that == null)
38532
        return false;
38533
      if (that instanceof getOosStatusesForXDaysForItem_result)
38534
        return this.equals((getOosStatusesForXDaysForItem_result)that);
38535
      return false;
38536
    }
38537
 
38538
    public boolean equals(getOosStatusesForXDaysForItem_result that) {
38539
      if (that == null)
38540
        return false;
38541
 
38542
      boolean this_present_success = true && this.isSetSuccess();
38543
      boolean that_present_success = true && that.isSetSuccess();
38544
      if (this_present_success || that_present_success) {
38545
        if (!(this_present_success && that_present_success))
38546
          return false;
38547
        if (!this.success.equals(that.success))
38548
          return false;
38549
      }
38550
 
38551
      return true;
38552
    }
38553
 
38554
    @Override
38555
    public int hashCode() {
38556
      return 0;
38557
    }
38558
 
38559
    public int compareTo(getOosStatusesForXDaysForItem_result other) {
38560
      if (!getClass().equals(other.getClass())) {
38561
        return getClass().getName().compareTo(other.getClass().getName());
38562
      }
38563
 
38564
      int lastComparison = 0;
38565
      getOosStatusesForXDaysForItem_result typedOther = (getOosStatusesForXDaysForItem_result)other;
38566
 
38567
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
38568
      if (lastComparison != 0) {
38569
        return lastComparison;
38570
      }
38571
      if (isSetSuccess()) {
38572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38573
        if (lastComparison != 0) {
38574
          return lastComparison;
38575
        }
38576
      }
38577
      return 0;
38578
    }
38579
 
38580
    public _Fields fieldForId(int fieldId) {
38581
      return _Fields.findByThriftId(fieldId);
38582
    }
38583
 
38584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38585
      org.apache.thrift.protocol.TField field;
38586
      iprot.readStructBegin();
38587
      while (true)
38588
      {
38589
        field = iprot.readFieldBegin();
38590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38591
          break;
38592
        }
38593
        switch (field.id) {
38594
          case 0: // SUCCESS
38595
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38596
              {
8182 amar.kumar 38597
                org.apache.thrift.protocol.TList _list114 = iprot.readListBegin();
38598
                this.success = new ArrayList<OOSStatus>(_list114.size);
38599
                for (int _i115 = 0; _i115 < _list114.size; ++_i115)
6832 amar.kumar 38600
                {
8182 amar.kumar 38601
                  OOSStatus _elem116; // required
38602
                  _elem116 = new OOSStatus();
38603
                  _elem116.read(iprot);
38604
                  this.success.add(_elem116);
6832 amar.kumar 38605
                }
38606
                iprot.readListEnd();
38607
              }
38608
            } else { 
38609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38610
            }
38611
            break;
38612
          default:
38613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38614
        }
38615
        iprot.readFieldEnd();
38616
      }
38617
      iprot.readStructEnd();
38618
      validate();
38619
    }
38620
 
38621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38622
      oprot.writeStructBegin(STRUCT_DESC);
38623
 
38624
      if (this.isSetSuccess()) {
38625
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38626
        {
38627
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 38628
          for (OOSStatus _iter117 : this.success)
6832 amar.kumar 38629
          {
8182 amar.kumar 38630
            _iter117.write(oprot);
6832 amar.kumar 38631
          }
38632
          oprot.writeListEnd();
38633
        }
38634
        oprot.writeFieldEnd();
38635
      }
38636
      oprot.writeFieldStop();
38637
      oprot.writeStructEnd();
38638
    }
38639
 
38640
    @Override
38641
    public String toString() {
38642
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_result(");
38643
      boolean first = true;
38644
 
38645
      sb.append("success:");
38646
      if (this.success == null) {
38647
        sb.append("null");
38648
      } else {
38649
        sb.append(this.success);
38650
      }
38651
      first = false;
38652
      sb.append(")");
38653
      return sb.toString();
38654
    }
38655
 
38656
    public void validate() throws org.apache.thrift.TException {
38657
      // check for required fields
38658
    }
38659
 
38660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38661
      try {
38662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38663
      } catch (org.apache.thrift.TException te) {
38664
        throw new java.io.IOException(te);
38665
      }
38666
    }
38667
 
38668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38669
      try {
38670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38671
      } catch (org.apache.thrift.TException te) {
38672
        throw new java.io.IOException(te);
38673
      }
38674
    }
38675
 
38676
  }
38677
 
6857 amar.kumar 38678
  public static class getNonZeroItemStockPurchaseParams_args implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_args, getNonZeroItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
38679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_args");
38680
 
38681
 
38682
 
38683
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38684
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38685
;
38686
 
38687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38688
 
38689
      static {
38690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38691
          byName.put(field.getFieldName(), field);
38692
        }
38693
      }
38694
 
38695
      /**
38696
       * Find the _Fields constant that matches fieldId, or null if its not found.
38697
       */
38698
      public static _Fields findByThriftId(int fieldId) {
38699
        switch(fieldId) {
38700
          default:
38701
            return null;
38702
        }
38703
      }
38704
 
38705
      /**
38706
       * Find the _Fields constant that matches fieldId, throwing an exception
38707
       * if it is not found.
38708
       */
38709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38710
        _Fields fields = findByThriftId(fieldId);
38711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38712
        return fields;
38713
      }
38714
 
38715
      /**
38716
       * Find the _Fields constant that matches name, or null if its not found.
38717
       */
38718
      public static _Fields findByName(String name) {
38719
        return byName.get(name);
38720
      }
38721
 
38722
      private final short _thriftId;
38723
      private final String _fieldName;
38724
 
38725
      _Fields(short thriftId, String fieldName) {
38726
        _thriftId = thriftId;
38727
        _fieldName = fieldName;
38728
      }
38729
 
38730
      public short getThriftFieldId() {
38731
        return _thriftId;
38732
      }
38733
 
38734
      public String getFieldName() {
38735
        return _fieldName;
38736
      }
38737
    }
38738
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38739
    static {
38740
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38741
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38742
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_args.class, metaDataMap);
38743
    }
38744
 
38745
    public getNonZeroItemStockPurchaseParams_args() {
38746
    }
38747
 
38748
    /**
38749
     * Performs a deep copy on <i>other</i>.
38750
     */
38751
    public getNonZeroItemStockPurchaseParams_args(getNonZeroItemStockPurchaseParams_args other) {
38752
    }
38753
 
38754
    public getNonZeroItemStockPurchaseParams_args deepCopy() {
38755
      return new getNonZeroItemStockPurchaseParams_args(this);
38756
    }
38757
 
38758
    @Override
38759
    public void clear() {
38760
    }
38761
 
38762
    public void setFieldValue(_Fields field, Object value) {
38763
      switch (field) {
38764
      }
38765
    }
38766
 
38767
    public Object getFieldValue(_Fields field) {
38768
      switch (field) {
38769
      }
38770
      throw new IllegalStateException();
38771
    }
38772
 
38773
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38774
    public boolean isSet(_Fields field) {
38775
      if (field == null) {
38776
        throw new IllegalArgumentException();
38777
      }
38778
 
38779
      switch (field) {
38780
      }
38781
      throw new IllegalStateException();
38782
    }
38783
 
38784
    @Override
38785
    public boolean equals(Object that) {
38786
      if (that == null)
38787
        return false;
38788
      if (that instanceof getNonZeroItemStockPurchaseParams_args)
38789
        return this.equals((getNonZeroItemStockPurchaseParams_args)that);
38790
      return false;
38791
    }
38792
 
38793
    public boolean equals(getNonZeroItemStockPurchaseParams_args that) {
38794
      if (that == null)
38795
        return false;
38796
 
38797
      return true;
38798
    }
38799
 
38800
    @Override
38801
    public int hashCode() {
38802
      return 0;
38803
    }
38804
 
38805
    public int compareTo(getNonZeroItemStockPurchaseParams_args other) {
38806
      if (!getClass().equals(other.getClass())) {
38807
        return getClass().getName().compareTo(other.getClass().getName());
38808
      }
38809
 
38810
      int lastComparison = 0;
38811
      getNonZeroItemStockPurchaseParams_args typedOther = (getNonZeroItemStockPurchaseParams_args)other;
38812
 
38813
      return 0;
38814
    }
38815
 
38816
    public _Fields fieldForId(int fieldId) {
38817
      return _Fields.findByThriftId(fieldId);
38818
    }
38819
 
38820
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38821
      org.apache.thrift.protocol.TField field;
38822
      iprot.readStructBegin();
38823
      while (true)
38824
      {
38825
        field = iprot.readFieldBegin();
38826
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38827
          break;
38828
        }
38829
        switch (field.id) {
38830
          default:
38831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38832
        }
38833
        iprot.readFieldEnd();
38834
      }
38835
      iprot.readStructEnd();
38836
      validate();
38837
    }
38838
 
38839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38840
      validate();
38841
 
38842
      oprot.writeStructBegin(STRUCT_DESC);
38843
      oprot.writeFieldStop();
38844
      oprot.writeStructEnd();
38845
    }
38846
 
38847
    @Override
38848
    public String toString() {
38849
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_args(");
38850
      boolean first = true;
38851
 
38852
      sb.append(")");
38853
      return sb.toString();
38854
    }
38855
 
38856
    public void validate() throws org.apache.thrift.TException {
38857
      // check for required fields
38858
    }
38859
 
38860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38861
      try {
38862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38863
      } catch (org.apache.thrift.TException te) {
38864
        throw new java.io.IOException(te);
38865
      }
38866
    }
38867
 
38868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38869
      try {
38870
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38871
      } catch (org.apache.thrift.TException te) {
38872
        throw new java.io.IOException(te);
38873
      }
38874
    }
38875
 
38876
  }
38877
 
38878
  public static class getNonZeroItemStockPurchaseParams_result implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_result, getNonZeroItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
38879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_result");
38880
 
38881
    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);
38882
 
38883
    private List<ItemStockPurchaseParams> success; // required
38884
 
38885
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38886
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38887
      SUCCESS((short)0, "success");
38888
 
38889
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38890
 
38891
      static {
38892
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38893
          byName.put(field.getFieldName(), field);
38894
        }
38895
      }
38896
 
38897
      /**
38898
       * Find the _Fields constant that matches fieldId, or null if its not found.
38899
       */
38900
      public static _Fields findByThriftId(int fieldId) {
38901
        switch(fieldId) {
38902
          case 0: // SUCCESS
38903
            return SUCCESS;
38904
          default:
38905
            return null;
38906
        }
38907
      }
38908
 
38909
      /**
38910
       * Find the _Fields constant that matches fieldId, throwing an exception
38911
       * if it is not found.
38912
       */
38913
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38914
        _Fields fields = findByThriftId(fieldId);
38915
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38916
        return fields;
38917
      }
38918
 
38919
      /**
38920
       * Find the _Fields constant that matches name, or null if its not found.
38921
       */
38922
      public static _Fields findByName(String name) {
38923
        return byName.get(name);
38924
      }
38925
 
38926
      private final short _thriftId;
38927
      private final String _fieldName;
38928
 
38929
      _Fields(short thriftId, String fieldName) {
38930
        _thriftId = thriftId;
38931
        _fieldName = fieldName;
38932
      }
38933
 
38934
      public short getThriftFieldId() {
38935
        return _thriftId;
38936
      }
38937
 
38938
      public String getFieldName() {
38939
        return _fieldName;
38940
      }
38941
    }
38942
 
38943
    // isset id assignments
38944
 
38945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38946
    static {
38947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38948
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38949
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38950
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class))));
38951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_result.class, metaDataMap);
38953
    }
38954
 
38955
    public getNonZeroItemStockPurchaseParams_result() {
38956
    }
38957
 
38958
    public getNonZeroItemStockPurchaseParams_result(
38959
      List<ItemStockPurchaseParams> success)
38960
    {
38961
      this();
38962
      this.success = success;
38963
    }
38964
 
38965
    /**
38966
     * Performs a deep copy on <i>other</i>.
38967
     */
38968
    public getNonZeroItemStockPurchaseParams_result(getNonZeroItemStockPurchaseParams_result other) {
38969
      if (other.isSetSuccess()) {
38970
        List<ItemStockPurchaseParams> __this__success = new ArrayList<ItemStockPurchaseParams>();
38971
        for (ItemStockPurchaseParams other_element : other.success) {
38972
          __this__success.add(new ItemStockPurchaseParams(other_element));
38973
        }
38974
        this.success = __this__success;
38975
      }
38976
    }
38977
 
38978
    public getNonZeroItemStockPurchaseParams_result deepCopy() {
38979
      return new getNonZeroItemStockPurchaseParams_result(this);
38980
    }
38981
 
38982
    @Override
38983
    public void clear() {
38984
      this.success = null;
38985
    }
38986
 
38987
    public int getSuccessSize() {
38988
      return (this.success == null) ? 0 : this.success.size();
38989
    }
38990
 
38991
    public java.util.Iterator<ItemStockPurchaseParams> getSuccessIterator() {
38992
      return (this.success == null) ? null : this.success.iterator();
38993
    }
38994
 
38995
    public void addToSuccess(ItemStockPurchaseParams elem) {
38996
      if (this.success == null) {
38997
        this.success = new ArrayList<ItemStockPurchaseParams>();
38998
      }
38999
      this.success.add(elem);
39000
    }
39001
 
39002
    public List<ItemStockPurchaseParams> getSuccess() {
39003
      return this.success;
39004
    }
39005
 
39006
    public void setSuccess(List<ItemStockPurchaseParams> success) {
39007
      this.success = success;
39008
    }
39009
 
39010
    public void unsetSuccess() {
39011
      this.success = null;
39012
    }
39013
 
39014
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39015
    public boolean isSetSuccess() {
39016
      return this.success != null;
39017
    }
39018
 
39019
    public void setSuccessIsSet(boolean value) {
39020
      if (!value) {
39021
        this.success = null;
39022
      }
39023
    }
39024
 
39025
    public void setFieldValue(_Fields field, Object value) {
39026
      switch (field) {
39027
      case SUCCESS:
39028
        if (value == null) {
39029
          unsetSuccess();
39030
        } else {
39031
          setSuccess((List<ItemStockPurchaseParams>)value);
39032
        }
39033
        break;
39034
 
39035
      }
39036
    }
39037
 
39038
    public Object getFieldValue(_Fields field) {
39039
      switch (field) {
39040
      case SUCCESS:
39041
        return getSuccess();
39042
 
39043
      }
39044
      throw new IllegalStateException();
39045
    }
39046
 
39047
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39048
    public boolean isSet(_Fields field) {
39049
      if (field == null) {
39050
        throw new IllegalArgumentException();
39051
      }
39052
 
39053
      switch (field) {
39054
      case SUCCESS:
39055
        return isSetSuccess();
39056
      }
39057
      throw new IllegalStateException();
39058
    }
39059
 
39060
    @Override
39061
    public boolean equals(Object that) {
39062
      if (that == null)
39063
        return false;
39064
      if (that instanceof getNonZeroItemStockPurchaseParams_result)
39065
        return this.equals((getNonZeroItemStockPurchaseParams_result)that);
39066
      return false;
39067
    }
39068
 
39069
    public boolean equals(getNonZeroItemStockPurchaseParams_result that) {
39070
      if (that == null)
39071
        return false;
39072
 
39073
      boolean this_present_success = true && this.isSetSuccess();
39074
      boolean that_present_success = true && that.isSetSuccess();
39075
      if (this_present_success || that_present_success) {
39076
        if (!(this_present_success && that_present_success))
39077
          return false;
39078
        if (!this.success.equals(that.success))
39079
          return false;
39080
      }
39081
 
39082
      return true;
39083
    }
39084
 
39085
    @Override
39086
    public int hashCode() {
39087
      return 0;
39088
    }
39089
 
39090
    public int compareTo(getNonZeroItemStockPurchaseParams_result other) {
39091
      if (!getClass().equals(other.getClass())) {
39092
        return getClass().getName().compareTo(other.getClass().getName());
39093
      }
39094
 
39095
      int lastComparison = 0;
39096
      getNonZeroItemStockPurchaseParams_result typedOther = (getNonZeroItemStockPurchaseParams_result)other;
39097
 
39098
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39099
      if (lastComparison != 0) {
39100
        return lastComparison;
39101
      }
39102
      if (isSetSuccess()) {
39103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39104
        if (lastComparison != 0) {
39105
          return lastComparison;
39106
        }
39107
      }
39108
      return 0;
39109
    }
39110
 
39111
    public _Fields fieldForId(int fieldId) {
39112
      return _Fields.findByThriftId(fieldId);
39113
    }
39114
 
39115
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39116
      org.apache.thrift.protocol.TField field;
39117
      iprot.readStructBegin();
39118
      while (true)
39119
      {
39120
        field = iprot.readFieldBegin();
39121
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39122
          break;
39123
        }
39124
        switch (field.id) {
39125
          case 0: // SUCCESS
39126
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39127
              {
8182 amar.kumar 39128
                org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
39129
                this.success = new ArrayList<ItemStockPurchaseParams>(_list118.size);
39130
                for (int _i119 = 0; _i119 < _list118.size; ++_i119)
6857 amar.kumar 39131
                {
8182 amar.kumar 39132
                  ItemStockPurchaseParams _elem120; // required
39133
                  _elem120 = new ItemStockPurchaseParams();
39134
                  _elem120.read(iprot);
39135
                  this.success.add(_elem120);
6857 amar.kumar 39136
                }
39137
                iprot.readListEnd();
39138
              }
39139
            } else { 
39140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39141
            }
39142
            break;
39143
          default:
39144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39145
        }
39146
        iprot.readFieldEnd();
39147
      }
39148
      iprot.readStructEnd();
39149
      validate();
39150
    }
39151
 
39152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39153
      oprot.writeStructBegin(STRUCT_DESC);
39154
 
39155
      if (this.isSetSuccess()) {
39156
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39157
        {
39158
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 39159
          for (ItemStockPurchaseParams _iter121 : this.success)
6857 amar.kumar 39160
          {
8182 amar.kumar 39161
            _iter121.write(oprot);
6857 amar.kumar 39162
          }
39163
          oprot.writeListEnd();
39164
        }
39165
        oprot.writeFieldEnd();
39166
      }
39167
      oprot.writeFieldStop();
39168
      oprot.writeStructEnd();
39169
    }
39170
 
39171
    @Override
39172
    public String toString() {
39173
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_result(");
39174
      boolean first = true;
39175
 
39176
      sb.append("success:");
39177
      if (this.success == null) {
39178
        sb.append("null");
39179
      } else {
39180
        sb.append(this.success);
39181
      }
39182
      first = false;
39183
      sb.append(")");
39184
      return sb.toString();
39185
    }
39186
 
39187
    public void validate() throws org.apache.thrift.TException {
39188
      // check for required fields
39189
    }
39190
 
39191
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39192
      try {
39193
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39194
      } catch (org.apache.thrift.TException te) {
39195
        throw new java.io.IOException(te);
39196
      }
39197
    }
39198
 
39199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39200
      try {
39201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39202
      } catch (org.apache.thrift.TException te) {
39203
        throw new java.io.IOException(te);
39204
      }
39205
    }
39206
 
39207
  }
39208
 
7149 amar.kumar 39209
  public static class getBillableInventoryAndPendingOrders_args implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_args, getBillableInventoryAndPendingOrders_args._Fields>, java.io.Serializable, Cloneable   {
39210
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_args");
39211
 
39212
 
39213
 
39214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39216
;
39217
 
39218
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39219
 
39220
      static {
39221
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39222
          byName.put(field.getFieldName(), field);
39223
        }
39224
      }
39225
 
39226
      /**
39227
       * Find the _Fields constant that matches fieldId, or null if its not found.
39228
       */
39229
      public static _Fields findByThriftId(int fieldId) {
39230
        switch(fieldId) {
39231
          default:
39232
            return null;
39233
        }
39234
      }
39235
 
39236
      /**
39237
       * Find the _Fields constant that matches fieldId, throwing an exception
39238
       * if it is not found.
39239
       */
39240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39241
        _Fields fields = findByThriftId(fieldId);
39242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39243
        return fields;
39244
      }
39245
 
39246
      /**
39247
       * Find the _Fields constant that matches name, or null if its not found.
39248
       */
39249
      public static _Fields findByName(String name) {
39250
        return byName.get(name);
39251
      }
39252
 
39253
      private final short _thriftId;
39254
      private final String _fieldName;
39255
 
39256
      _Fields(short thriftId, String fieldName) {
39257
        _thriftId = thriftId;
39258
        _fieldName = fieldName;
39259
      }
39260
 
39261
      public short getThriftFieldId() {
39262
        return _thriftId;
39263
      }
39264
 
39265
      public String getFieldName() {
39266
        return _fieldName;
39267
      }
39268
    }
39269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39270
    static {
39271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39272
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39273
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_args.class, metaDataMap);
39274
    }
39275
 
39276
    public getBillableInventoryAndPendingOrders_args() {
39277
    }
39278
 
39279
    /**
39280
     * Performs a deep copy on <i>other</i>.
39281
     */
39282
    public getBillableInventoryAndPendingOrders_args(getBillableInventoryAndPendingOrders_args other) {
39283
    }
39284
 
39285
    public getBillableInventoryAndPendingOrders_args deepCopy() {
39286
      return new getBillableInventoryAndPendingOrders_args(this);
39287
    }
39288
 
39289
    @Override
39290
    public void clear() {
39291
    }
39292
 
39293
    public void setFieldValue(_Fields field, Object value) {
39294
      switch (field) {
39295
      }
39296
    }
39297
 
39298
    public Object getFieldValue(_Fields field) {
39299
      switch (field) {
39300
      }
39301
      throw new IllegalStateException();
39302
    }
39303
 
39304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39305
    public boolean isSet(_Fields field) {
39306
      if (field == null) {
39307
        throw new IllegalArgumentException();
39308
      }
39309
 
39310
      switch (field) {
39311
      }
39312
      throw new IllegalStateException();
39313
    }
39314
 
39315
    @Override
39316
    public boolean equals(Object that) {
39317
      if (that == null)
39318
        return false;
39319
      if (that instanceof getBillableInventoryAndPendingOrders_args)
39320
        return this.equals((getBillableInventoryAndPendingOrders_args)that);
39321
      return false;
39322
    }
39323
 
39324
    public boolean equals(getBillableInventoryAndPendingOrders_args that) {
39325
      if (that == null)
39326
        return false;
39327
 
39328
      return true;
39329
    }
39330
 
39331
    @Override
39332
    public int hashCode() {
39333
      return 0;
39334
    }
39335
 
39336
    public int compareTo(getBillableInventoryAndPendingOrders_args other) {
39337
      if (!getClass().equals(other.getClass())) {
39338
        return getClass().getName().compareTo(other.getClass().getName());
39339
      }
39340
 
39341
      int lastComparison = 0;
39342
      getBillableInventoryAndPendingOrders_args typedOther = (getBillableInventoryAndPendingOrders_args)other;
39343
 
39344
      return 0;
39345
    }
39346
 
39347
    public _Fields fieldForId(int fieldId) {
39348
      return _Fields.findByThriftId(fieldId);
39349
    }
39350
 
39351
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39352
      org.apache.thrift.protocol.TField field;
39353
      iprot.readStructBegin();
39354
      while (true)
39355
      {
39356
        field = iprot.readFieldBegin();
39357
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39358
          break;
39359
        }
39360
        switch (field.id) {
39361
          default:
39362
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39363
        }
39364
        iprot.readFieldEnd();
39365
      }
39366
      iprot.readStructEnd();
39367
      validate();
39368
    }
39369
 
39370
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39371
      validate();
39372
 
39373
      oprot.writeStructBegin(STRUCT_DESC);
39374
      oprot.writeFieldStop();
39375
      oprot.writeStructEnd();
39376
    }
39377
 
39378
    @Override
39379
    public String toString() {
39380
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_args(");
39381
      boolean first = true;
39382
 
39383
      sb.append(")");
39384
      return sb.toString();
39385
    }
39386
 
39387
    public void validate() throws org.apache.thrift.TException {
39388
      // check for required fields
39389
    }
39390
 
39391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39392
      try {
39393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39394
      } catch (org.apache.thrift.TException te) {
39395
        throw new java.io.IOException(te);
39396
      }
39397
    }
39398
 
39399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39400
      try {
39401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39402
      } catch (org.apache.thrift.TException te) {
39403
        throw new java.io.IOException(te);
39404
      }
39405
    }
39406
 
39407
  }
39408
 
39409
  public static class getBillableInventoryAndPendingOrders_result implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_result, getBillableInventoryAndPendingOrders_result._Fields>, java.io.Serializable, Cloneable   {
39410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_result");
39411
 
39412
    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);
39413
 
39414
    private List<AvailableAndReservedStock> success; // required
39415
 
39416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39418
      SUCCESS((short)0, "success");
39419
 
39420
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39421
 
39422
      static {
39423
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39424
          byName.put(field.getFieldName(), field);
39425
        }
39426
      }
39427
 
39428
      /**
39429
       * Find the _Fields constant that matches fieldId, or null if its not found.
39430
       */
39431
      public static _Fields findByThriftId(int fieldId) {
39432
        switch(fieldId) {
39433
          case 0: // SUCCESS
39434
            return SUCCESS;
39435
          default:
39436
            return null;
39437
        }
39438
      }
39439
 
39440
      /**
39441
       * Find the _Fields constant that matches fieldId, throwing an exception
39442
       * if it is not found.
39443
       */
39444
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39445
        _Fields fields = findByThriftId(fieldId);
39446
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39447
        return fields;
39448
      }
39449
 
39450
      /**
39451
       * Find the _Fields constant that matches name, or null if its not found.
39452
       */
39453
      public static _Fields findByName(String name) {
39454
        return byName.get(name);
39455
      }
39456
 
39457
      private final short _thriftId;
39458
      private final String _fieldName;
39459
 
39460
      _Fields(short thriftId, String fieldName) {
39461
        _thriftId = thriftId;
39462
        _fieldName = fieldName;
39463
      }
39464
 
39465
      public short getThriftFieldId() {
39466
        return _thriftId;
39467
      }
39468
 
39469
      public String getFieldName() {
39470
        return _fieldName;
39471
      }
39472
    }
39473
 
39474
    // isset id assignments
39475
 
39476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39477
    static {
39478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39479
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39480
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39481
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
39482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_result.class, metaDataMap);
39484
    }
39485
 
39486
    public getBillableInventoryAndPendingOrders_result() {
39487
    }
39488
 
39489
    public getBillableInventoryAndPendingOrders_result(
39490
      List<AvailableAndReservedStock> success)
39491
    {
39492
      this();
39493
      this.success = success;
39494
    }
39495
 
39496
    /**
39497
     * Performs a deep copy on <i>other</i>.
39498
     */
39499
    public getBillableInventoryAndPendingOrders_result(getBillableInventoryAndPendingOrders_result other) {
39500
      if (other.isSetSuccess()) {
39501
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
39502
        for (AvailableAndReservedStock other_element : other.success) {
39503
          __this__success.add(new AvailableAndReservedStock(other_element));
39504
        }
39505
        this.success = __this__success;
39506
      }
39507
    }
39508
 
39509
    public getBillableInventoryAndPendingOrders_result deepCopy() {
39510
      return new getBillableInventoryAndPendingOrders_result(this);
39511
    }
39512
 
39513
    @Override
39514
    public void clear() {
39515
      this.success = null;
39516
    }
39517
 
39518
    public int getSuccessSize() {
39519
      return (this.success == null) ? 0 : this.success.size();
39520
    }
39521
 
39522
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
39523
      return (this.success == null) ? null : this.success.iterator();
39524
    }
39525
 
39526
    public void addToSuccess(AvailableAndReservedStock elem) {
39527
      if (this.success == null) {
39528
        this.success = new ArrayList<AvailableAndReservedStock>();
39529
      }
39530
      this.success.add(elem);
39531
    }
39532
 
39533
    public List<AvailableAndReservedStock> getSuccess() {
39534
      return this.success;
39535
    }
39536
 
39537
    public void setSuccess(List<AvailableAndReservedStock> success) {
39538
      this.success = success;
39539
    }
39540
 
39541
    public void unsetSuccess() {
39542
      this.success = null;
39543
    }
39544
 
39545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39546
    public boolean isSetSuccess() {
39547
      return this.success != null;
39548
    }
39549
 
39550
    public void setSuccessIsSet(boolean value) {
39551
      if (!value) {
39552
        this.success = null;
39553
      }
39554
    }
39555
 
39556
    public void setFieldValue(_Fields field, Object value) {
39557
      switch (field) {
39558
      case SUCCESS:
39559
        if (value == null) {
39560
          unsetSuccess();
39561
        } else {
39562
          setSuccess((List<AvailableAndReservedStock>)value);
39563
        }
39564
        break;
39565
 
39566
      }
39567
    }
39568
 
39569
    public Object getFieldValue(_Fields field) {
39570
      switch (field) {
39571
      case SUCCESS:
39572
        return getSuccess();
39573
 
39574
      }
39575
      throw new IllegalStateException();
39576
    }
39577
 
39578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39579
    public boolean isSet(_Fields field) {
39580
      if (field == null) {
39581
        throw new IllegalArgumentException();
39582
      }
39583
 
39584
      switch (field) {
39585
      case SUCCESS:
39586
        return isSetSuccess();
39587
      }
39588
      throw new IllegalStateException();
39589
    }
39590
 
39591
    @Override
39592
    public boolean equals(Object that) {
39593
      if (that == null)
39594
        return false;
39595
      if (that instanceof getBillableInventoryAndPendingOrders_result)
39596
        return this.equals((getBillableInventoryAndPendingOrders_result)that);
39597
      return false;
39598
    }
39599
 
39600
    public boolean equals(getBillableInventoryAndPendingOrders_result that) {
39601
      if (that == null)
39602
        return false;
39603
 
39604
      boolean this_present_success = true && this.isSetSuccess();
39605
      boolean that_present_success = true && that.isSetSuccess();
39606
      if (this_present_success || that_present_success) {
39607
        if (!(this_present_success && that_present_success))
39608
          return false;
39609
        if (!this.success.equals(that.success))
39610
          return false;
39611
      }
39612
 
39613
      return true;
39614
    }
39615
 
39616
    @Override
39617
    public int hashCode() {
39618
      return 0;
39619
    }
39620
 
39621
    public int compareTo(getBillableInventoryAndPendingOrders_result other) {
39622
      if (!getClass().equals(other.getClass())) {
39623
        return getClass().getName().compareTo(other.getClass().getName());
39624
      }
39625
 
39626
      int lastComparison = 0;
39627
      getBillableInventoryAndPendingOrders_result typedOther = (getBillableInventoryAndPendingOrders_result)other;
39628
 
39629
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39630
      if (lastComparison != 0) {
39631
        return lastComparison;
39632
      }
39633
      if (isSetSuccess()) {
39634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39635
        if (lastComparison != 0) {
39636
          return lastComparison;
39637
        }
39638
      }
39639
      return 0;
39640
    }
39641
 
39642
    public _Fields fieldForId(int fieldId) {
39643
      return _Fields.findByThriftId(fieldId);
39644
    }
39645
 
39646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39647
      org.apache.thrift.protocol.TField field;
39648
      iprot.readStructBegin();
39649
      while (true)
39650
      {
39651
        field = iprot.readFieldBegin();
39652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39653
          break;
39654
        }
39655
        switch (field.id) {
39656
          case 0: // SUCCESS
39657
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39658
              {
8182 amar.kumar 39659
                org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
39660
                this.success = new ArrayList<AvailableAndReservedStock>(_list122.size);
39661
                for (int _i123 = 0; _i123 < _list122.size; ++_i123)
7149 amar.kumar 39662
                {
8182 amar.kumar 39663
                  AvailableAndReservedStock _elem124; // required
39664
                  _elem124 = new AvailableAndReservedStock();
39665
                  _elem124.read(iprot);
39666
                  this.success.add(_elem124);
7149 amar.kumar 39667
                }
39668
                iprot.readListEnd();
39669
              }
39670
            } else { 
39671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39672
            }
39673
            break;
39674
          default:
39675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39676
        }
39677
        iprot.readFieldEnd();
39678
      }
39679
      iprot.readStructEnd();
39680
      validate();
39681
    }
39682
 
39683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39684
      oprot.writeStructBegin(STRUCT_DESC);
39685
 
39686
      if (this.isSetSuccess()) {
39687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39688
        {
39689
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 39690
          for (AvailableAndReservedStock _iter125 : this.success)
7149 amar.kumar 39691
          {
8182 amar.kumar 39692
            _iter125.write(oprot);
7149 amar.kumar 39693
          }
39694
          oprot.writeListEnd();
39695
        }
39696
        oprot.writeFieldEnd();
39697
      }
39698
      oprot.writeFieldStop();
39699
      oprot.writeStructEnd();
39700
    }
39701
 
39702
    @Override
39703
    public String toString() {
39704
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_result(");
39705
      boolean first = true;
39706
 
39707
      sb.append("success:");
39708
      if (this.success == null) {
39709
        sb.append("null");
39710
      } else {
39711
        sb.append(this.success);
39712
      }
39713
      first = false;
39714
      sb.append(")");
39715
      return sb.toString();
39716
    }
39717
 
39718
    public void validate() throws org.apache.thrift.TException {
39719
      // check for required fields
39720
    }
39721
 
39722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39723
      try {
39724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39725
      } catch (org.apache.thrift.TException te) {
39726
        throw new java.io.IOException(te);
39727
      }
39728
    }
39729
 
39730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39731
      try {
39732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39733
      } catch (org.apache.thrift.TException te) {
39734
        throw new java.io.IOException(te);
39735
      }
39736
    }
39737
 
39738
  }
39739
 
7281 kshitij.so 39740
  public static class getWarehouseName_args implements org.apache.thrift.TBase<getWarehouseName_args, getWarehouseName_args._Fields>, java.io.Serializable, Cloneable   {
39741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_args");
39742
 
39743
    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);
39744
 
39745
    private long warehouse_id; // required
39746
 
39747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39749
      WAREHOUSE_ID((short)1, "warehouse_id");
39750
 
39751
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39752
 
39753
      static {
39754
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39755
          byName.put(field.getFieldName(), field);
39756
        }
39757
      }
39758
 
39759
      /**
39760
       * Find the _Fields constant that matches fieldId, or null if its not found.
39761
       */
39762
      public static _Fields findByThriftId(int fieldId) {
39763
        switch(fieldId) {
39764
          case 1: // WAREHOUSE_ID
39765
            return WAREHOUSE_ID;
39766
          default:
39767
            return null;
39768
        }
39769
      }
39770
 
39771
      /**
39772
       * Find the _Fields constant that matches fieldId, throwing an exception
39773
       * if it is not found.
39774
       */
39775
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39776
        _Fields fields = findByThriftId(fieldId);
39777
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39778
        return fields;
39779
      }
39780
 
39781
      /**
39782
       * Find the _Fields constant that matches name, or null if its not found.
39783
       */
39784
      public static _Fields findByName(String name) {
39785
        return byName.get(name);
39786
      }
39787
 
39788
      private final short _thriftId;
39789
      private final String _fieldName;
39790
 
39791
      _Fields(short thriftId, String fieldName) {
39792
        _thriftId = thriftId;
39793
        _fieldName = fieldName;
39794
      }
39795
 
39796
      public short getThriftFieldId() {
39797
        return _thriftId;
39798
      }
39799
 
39800
      public String getFieldName() {
39801
        return _fieldName;
39802
      }
39803
    }
39804
 
39805
    // isset id assignments
39806
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
39807
    private BitSet __isset_bit_vector = new BitSet(1);
39808
 
39809
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39810
    static {
39811
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39812
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39813
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_args.class, metaDataMap);
39816
    }
39817
 
39818
    public getWarehouseName_args() {
39819
    }
39820
 
39821
    public getWarehouseName_args(
39822
      long warehouse_id)
39823
    {
39824
      this();
39825
      this.warehouse_id = warehouse_id;
39826
      setWarehouse_idIsSet(true);
39827
    }
39828
 
39829
    /**
39830
     * Performs a deep copy on <i>other</i>.
39831
     */
39832
    public getWarehouseName_args(getWarehouseName_args other) {
39833
      __isset_bit_vector.clear();
39834
      __isset_bit_vector.or(other.__isset_bit_vector);
39835
      this.warehouse_id = other.warehouse_id;
39836
    }
39837
 
39838
    public getWarehouseName_args deepCopy() {
39839
      return new getWarehouseName_args(this);
39840
    }
39841
 
39842
    @Override
39843
    public void clear() {
39844
      setWarehouse_idIsSet(false);
39845
      this.warehouse_id = 0;
39846
    }
39847
 
39848
    public long getWarehouse_id() {
39849
      return this.warehouse_id;
39850
    }
39851
 
39852
    public void setWarehouse_id(long warehouse_id) {
39853
      this.warehouse_id = warehouse_id;
39854
      setWarehouse_idIsSet(true);
39855
    }
39856
 
39857
    public void unsetWarehouse_id() {
39858
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
39859
    }
39860
 
39861
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
39862
    public boolean isSetWarehouse_id() {
39863
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
39864
    }
39865
 
39866
    public void setWarehouse_idIsSet(boolean value) {
39867
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
39868
    }
39869
 
39870
    public void setFieldValue(_Fields field, Object value) {
39871
      switch (field) {
39872
      case WAREHOUSE_ID:
39873
        if (value == null) {
39874
          unsetWarehouse_id();
39875
        } else {
39876
          setWarehouse_id((Long)value);
39877
        }
39878
        break;
39879
 
39880
      }
39881
    }
39882
 
39883
    public Object getFieldValue(_Fields field) {
39884
      switch (field) {
39885
      case WAREHOUSE_ID:
39886
        return Long.valueOf(getWarehouse_id());
39887
 
39888
      }
39889
      throw new IllegalStateException();
39890
    }
39891
 
39892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39893
    public boolean isSet(_Fields field) {
39894
      if (field == null) {
39895
        throw new IllegalArgumentException();
39896
      }
39897
 
39898
      switch (field) {
39899
      case WAREHOUSE_ID:
39900
        return isSetWarehouse_id();
39901
      }
39902
      throw new IllegalStateException();
39903
    }
39904
 
39905
    @Override
39906
    public boolean equals(Object that) {
39907
      if (that == null)
39908
        return false;
39909
      if (that instanceof getWarehouseName_args)
39910
        return this.equals((getWarehouseName_args)that);
39911
      return false;
39912
    }
39913
 
39914
    public boolean equals(getWarehouseName_args that) {
39915
      if (that == null)
39916
        return false;
39917
 
39918
      boolean this_present_warehouse_id = true;
39919
      boolean that_present_warehouse_id = true;
39920
      if (this_present_warehouse_id || that_present_warehouse_id) {
39921
        if (!(this_present_warehouse_id && that_present_warehouse_id))
39922
          return false;
39923
        if (this.warehouse_id != that.warehouse_id)
39924
          return false;
39925
      }
39926
 
39927
      return true;
39928
    }
39929
 
39930
    @Override
39931
    public int hashCode() {
39932
      return 0;
39933
    }
39934
 
39935
    public int compareTo(getWarehouseName_args other) {
39936
      if (!getClass().equals(other.getClass())) {
39937
        return getClass().getName().compareTo(other.getClass().getName());
39938
      }
39939
 
39940
      int lastComparison = 0;
39941
      getWarehouseName_args typedOther = (getWarehouseName_args)other;
39942
 
39943
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
39944
      if (lastComparison != 0) {
39945
        return lastComparison;
39946
      }
39947
      if (isSetWarehouse_id()) {
39948
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
39949
        if (lastComparison != 0) {
39950
          return lastComparison;
39951
        }
39952
      }
39953
      return 0;
39954
    }
39955
 
39956
    public _Fields fieldForId(int fieldId) {
39957
      return _Fields.findByThriftId(fieldId);
39958
    }
39959
 
39960
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39961
      org.apache.thrift.protocol.TField field;
39962
      iprot.readStructBegin();
39963
      while (true)
39964
      {
39965
        field = iprot.readFieldBegin();
39966
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39967
          break;
39968
        }
39969
        switch (field.id) {
39970
          case 1: // WAREHOUSE_ID
39971
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39972
              this.warehouse_id = iprot.readI64();
39973
              setWarehouse_idIsSet(true);
39974
            } else { 
39975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39976
            }
39977
            break;
39978
          default:
39979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39980
        }
39981
        iprot.readFieldEnd();
39982
      }
39983
      iprot.readStructEnd();
39984
      validate();
39985
    }
39986
 
39987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39988
      validate();
39989
 
39990
      oprot.writeStructBegin(STRUCT_DESC);
39991
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
39992
      oprot.writeI64(this.warehouse_id);
39993
      oprot.writeFieldEnd();
39994
      oprot.writeFieldStop();
39995
      oprot.writeStructEnd();
39996
    }
39997
 
39998
    @Override
39999
    public String toString() {
40000
      StringBuilder sb = new StringBuilder("getWarehouseName_args(");
40001
      boolean first = true;
40002
 
40003
      sb.append("warehouse_id:");
40004
      sb.append(this.warehouse_id);
40005
      first = false;
40006
      sb.append(")");
40007
      return sb.toString();
40008
    }
40009
 
40010
    public void validate() throws org.apache.thrift.TException {
40011
      // check for required fields
40012
    }
40013
 
40014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40015
      try {
40016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40017
      } catch (org.apache.thrift.TException te) {
40018
        throw new java.io.IOException(te);
40019
      }
40020
    }
40021
 
40022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40023
      try {
40024
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40025
        __isset_bit_vector = new BitSet(1);
40026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40027
      } catch (org.apache.thrift.TException te) {
40028
        throw new java.io.IOException(te);
40029
      }
40030
    }
40031
 
40032
  }
40033
 
40034
  public static class getWarehouseName_result implements org.apache.thrift.TBase<getWarehouseName_result, getWarehouseName_result._Fields>, java.io.Serializable, Cloneable   {
40035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_result");
40036
 
40037
    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);
40038
 
40039
    private String success; // required
40040
 
40041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40043
      SUCCESS((short)0, "success");
40044
 
40045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40046
 
40047
      static {
40048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40049
          byName.put(field.getFieldName(), field);
40050
        }
40051
      }
40052
 
40053
      /**
40054
       * Find the _Fields constant that matches fieldId, or null if its not found.
40055
       */
40056
      public static _Fields findByThriftId(int fieldId) {
40057
        switch(fieldId) {
40058
          case 0: // SUCCESS
40059
            return SUCCESS;
40060
          default:
40061
            return null;
40062
        }
40063
      }
40064
 
40065
      /**
40066
       * Find the _Fields constant that matches fieldId, throwing an exception
40067
       * if it is not found.
40068
       */
40069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40070
        _Fields fields = findByThriftId(fieldId);
40071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40072
        return fields;
40073
      }
40074
 
40075
      /**
40076
       * Find the _Fields constant that matches name, or null if its not found.
40077
       */
40078
      public static _Fields findByName(String name) {
40079
        return byName.get(name);
40080
      }
40081
 
40082
      private final short _thriftId;
40083
      private final String _fieldName;
40084
 
40085
      _Fields(short thriftId, String fieldName) {
40086
        _thriftId = thriftId;
40087
        _fieldName = fieldName;
40088
      }
40089
 
40090
      public short getThriftFieldId() {
40091
        return _thriftId;
40092
      }
40093
 
40094
      public String getFieldName() {
40095
        return _fieldName;
40096
      }
40097
    }
40098
 
40099
    // isset id assignments
40100
 
40101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40102
    static {
40103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40104
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_result.class, metaDataMap);
40108
    }
40109
 
40110
    public getWarehouseName_result() {
40111
    }
40112
 
40113
    public getWarehouseName_result(
40114
      String success)
40115
    {
40116
      this();
40117
      this.success = success;
40118
    }
40119
 
40120
    /**
40121
     * Performs a deep copy on <i>other</i>.
40122
     */
40123
    public getWarehouseName_result(getWarehouseName_result other) {
40124
      if (other.isSetSuccess()) {
40125
        this.success = other.success;
40126
      }
40127
    }
40128
 
40129
    public getWarehouseName_result deepCopy() {
40130
      return new getWarehouseName_result(this);
40131
    }
40132
 
40133
    @Override
40134
    public void clear() {
40135
      this.success = null;
40136
    }
40137
 
40138
    public String getSuccess() {
40139
      return this.success;
40140
    }
40141
 
40142
    public void setSuccess(String success) {
40143
      this.success = success;
40144
    }
40145
 
40146
    public void unsetSuccess() {
40147
      this.success = null;
40148
    }
40149
 
40150
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40151
    public boolean isSetSuccess() {
40152
      return this.success != null;
40153
    }
40154
 
40155
    public void setSuccessIsSet(boolean value) {
40156
      if (!value) {
40157
        this.success = null;
40158
      }
40159
    }
40160
 
40161
    public void setFieldValue(_Fields field, Object value) {
40162
      switch (field) {
40163
      case SUCCESS:
40164
        if (value == null) {
40165
          unsetSuccess();
40166
        } else {
40167
          setSuccess((String)value);
40168
        }
40169
        break;
40170
 
40171
      }
40172
    }
40173
 
40174
    public Object getFieldValue(_Fields field) {
40175
      switch (field) {
40176
      case SUCCESS:
40177
        return getSuccess();
40178
 
40179
      }
40180
      throw new IllegalStateException();
40181
    }
40182
 
40183
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40184
    public boolean isSet(_Fields field) {
40185
      if (field == null) {
40186
        throw new IllegalArgumentException();
40187
      }
40188
 
40189
      switch (field) {
40190
      case SUCCESS:
40191
        return isSetSuccess();
40192
      }
40193
      throw new IllegalStateException();
40194
    }
40195
 
40196
    @Override
40197
    public boolean equals(Object that) {
40198
      if (that == null)
40199
        return false;
40200
      if (that instanceof getWarehouseName_result)
40201
        return this.equals((getWarehouseName_result)that);
40202
      return false;
40203
    }
40204
 
40205
    public boolean equals(getWarehouseName_result that) {
40206
      if (that == null)
40207
        return false;
40208
 
40209
      boolean this_present_success = true && this.isSetSuccess();
40210
      boolean that_present_success = true && that.isSetSuccess();
40211
      if (this_present_success || that_present_success) {
40212
        if (!(this_present_success && that_present_success))
40213
          return false;
40214
        if (!this.success.equals(that.success))
40215
          return false;
40216
      }
40217
 
40218
      return true;
40219
    }
40220
 
40221
    @Override
40222
    public int hashCode() {
40223
      return 0;
40224
    }
40225
 
40226
    public int compareTo(getWarehouseName_result other) {
40227
      if (!getClass().equals(other.getClass())) {
40228
        return getClass().getName().compareTo(other.getClass().getName());
40229
      }
40230
 
40231
      int lastComparison = 0;
40232
      getWarehouseName_result typedOther = (getWarehouseName_result)other;
40233
 
40234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40235
      if (lastComparison != 0) {
40236
        return lastComparison;
40237
      }
40238
      if (isSetSuccess()) {
40239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40240
        if (lastComparison != 0) {
40241
          return lastComparison;
40242
        }
40243
      }
40244
      return 0;
40245
    }
40246
 
40247
    public _Fields fieldForId(int fieldId) {
40248
      return _Fields.findByThriftId(fieldId);
40249
    }
40250
 
40251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40252
      org.apache.thrift.protocol.TField field;
40253
      iprot.readStructBegin();
40254
      while (true)
40255
      {
40256
        field = iprot.readFieldBegin();
40257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40258
          break;
40259
        }
40260
        switch (field.id) {
40261
          case 0: // SUCCESS
40262
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
40263
              this.success = iprot.readString();
40264
            } else { 
40265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40266
            }
40267
            break;
40268
          default:
40269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40270
        }
40271
        iprot.readFieldEnd();
40272
      }
40273
      iprot.readStructEnd();
40274
      validate();
40275
    }
40276
 
40277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40278
      oprot.writeStructBegin(STRUCT_DESC);
40279
 
40280
      if (this.isSetSuccess()) {
40281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40282
        oprot.writeString(this.success);
40283
        oprot.writeFieldEnd();
40284
      }
40285
      oprot.writeFieldStop();
40286
      oprot.writeStructEnd();
40287
    }
40288
 
40289
    @Override
40290
    public String toString() {
40291
      StringBuilder sb = new StringBuilder("getWarehouseName_result(");
40292
      boolean first = true;
40293
 
40294
      sb.append("success:");
40295
      if (this.success == null) {
40296
        sb.append("null");
40297
      } else {
40298
        sb.append(this.success);
40299
      }
40300
      first = false;
40301
      sb.append(")");
40302
      return sb.toString();
40303
    }
40304
 
40305
    public void validate() throws org.apache.thrift.TException {
40306
      // check for required fields
40307
    }
40308
 
40309
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40310
      try {
40311
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40312
      } catch (org.apache.thrift.TException te) {
40313
        throw new java.io.IOException(te);
40314
      }
40315
    }
40316
 
40317
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40318
      try {
40319
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40320
      } catch (org.apache.thrift.TException te) {
40321
        throw new java.io.IOException(te);
40322
      }
40323
    }
40324
 
40325
  }
40326
 
40327
  public static class getAmazonInventoryForItem_args implements org.apache.thrift.TBase<getAmazonInventoryForItem_args, getAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
40328
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_args");
40329
 
40330
    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);
40331
 
40332
    private long item_id; // required
40333
 
40334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40336
      ITEM_ID((short)1, "item_id");
40337
 
40338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40339
 
40340
      static {
40341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40342
          byName.put(field.getFieldName(), field);
40343
        }
40344
      }
40345
 
40346
      /**
40347
       * Find the _Fields constant that matches fieldId, or null if its not found.
40348
       */
40349
      public static _Fields findByThriftId(int fieldId) {
40350
        switch(fieldId) {
40351
          case 1: // ITEM_ID
40352
            return ITEM_ID;
40353
          default:
40354
            return null;
40355
        }
40356
      }
40357
 
40358
      /**
40359
       * Find the _Fields constant that matches fieldId, throwing an exception
40360
       * if it is not found.
40361
       */
40362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40363
        _Fields fields = findByThriftId(fieldId);
40364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40365
        return fields;
40366
      }
40367
 
40368
      /**
40369
       * Find the _Fields constant that matches name, or null if its not found.
40370
       */
40371
      public static _Fields findByName(String name) {
40372
        return byName.get(name);
40373
      }
40374
 
40375
      private final short _thriftId;
40376
      private final String _fieldName;
40377
 
40378
      _Fields(short thriftId, String fieldName) {
40379
        _thriftId = thriftId;
40380
        _fieldName = fieldName;
40381
      }
40382
 
40383
      public short getThriftFieldId() {
40384
        return _thriftId;
40385
      }
40386
 
40387
      public String getFieldName() {
40388
        return _fieldName;
40389
      }
40390
    }
40391
 
40392
    // isset id assignments
40393
    private static final int __ITEM_ID_ISSET_ID = 0;
40394
    private BitSet __isset_bit_vector = new BitSet(1);
40395
 
40396
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40397
    static {
40398
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40399
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_args.class, metaDataMap);
40403
    }
40404
 
40405
    public getAmazonInventoryForItem_args() {
40406
    }
40407
 
40408
    public getAmazonInventoryForItem_args(
40409
      long item_id)
40410
    {
40411
      this();
40412
      this.item_id = item_id;
40413
      setItem_idIsSet(true);
40414
    }
40415
 
40416
    /**
40417
     * Performs a deep copy on <i>other</i>.
40418
     */
40419
    public getAmazonInventoryForItem_args(getAmazonInventoryForItem_args other) {
40420
      __isset_bit_vector.clear();
40421
      __isset_bit_vector.or(other.__isset_bit_vector);
40422
      this.item_id = other.item_id;
40423
    }
40424
 
40425
    public getAmazonInventoryForItem_args deepCopy() {
40426
      return new getAmazonInventoryForItem_args(this);
40427
    }
40428
 
40429
    @Override
40430
    public void clear() {
40431
      setItem_idIsSet(false);
40432
      this.item_id = 0;
40433
    }
40434
 
40435
    public long getItem_id() {
40436
      return this.item_id;
40437
    }
40438
 
40439
    public void setItem_id(long item_id) {
40440
      this.item_id = item_id;
40441
      setItem_idIsSet(true);
40442
    }
40443
 
40444
    public void unsetItem_id() {
40445
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
40446
    }
40447
 
40448
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
40449
    public boolean isSetItem_id() {
40450
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
40451
    }
40452
 
40453
    public void setItem_idIsSet(boolean value) {
40454
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
40455
    }
40456
 
40457
    public void setFieldValue(_Fields field, Object value) {
40458
      switch (field) {
40459
      case ITEM_ID:
40460
        if (value == null) {
40461
          unsetItem_id();
40462
        } else {
40463
          setItem_id((Long)value);
40464
        }
40465
        break;
40466
 
40467
      }
40468
    }
40469
 
40470
    public Object getFieldValue(_Fields field) {
40471
      switch (field) {
40472
      case ITEM_ID:
40473
        return Long.valueOf(getItem_id());
40474
 
40475
      }
40476
      throw new IllegalStateException();
40477
    }
40478
 
40479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40480
    public boolean isSet(_Fields field) {
40481
      if (field == null) {
40482
        throw new IllegalArgumentException();
40483
      }
40484
 
40485
      switch (field) {
40486
      case ITEM_ID:
40487
        return isSetItem_id();
40488
      }
40489
      throw new IllegalStateException();
40490
    }
40491
 
40492
    @Override
40493
    public boolean equals(Object that) {
40494
      if (that == null)
40495
        return false;
40496
      if (that instanceof getAmazonInventoryForItem_args)
40497
        return this.equals((getAmazonInventoryForItem_args)that);
40498
      return false;
40499
    }
40500
 
40501
    public boolean equals(getAmazonInventoryForItem_args that) {
40502
      if (that == null)
40503
        return false;
40504
 
40505
      boolean this_present_item_id = true;
40506
      boolean that_present_item_id = true;
40507
      if (this_present_item_id || that_present_item_id) {
40508
        if (!(this_present_item_id && that_present_item_id))
40509
          return false;
40510
        if (this.item_id != that.item_id)
40511
          return false;
40512
      }
40513
 
40514
      return true;
40515
    }
40516
 
40517
    @Override
40518
    public int hashCode() {
40519
      return 0;
40520
    }
40521
 
40522
    public int compareTo(getAmazonInventoryForItem_args other) {
40523
      if (!getClass().equals(other.getClass())) {
40524
        return getClass().getName().compareTo(other.getClass().getName());
40525
      }
40526
 
40527
      int lastComparison = 0;
40528
      getAmazonInventoryForItem_args typedOther = (getAmazonInventoryForItem_args)other;
40529
 
40530
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
40531
      if (lastComparison != 0) {
40532
        return lastComparison;
40533
      }
40534
      if (isSetItem_id()) {
40535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
40536
        if (lastComparison != 0) {
40537
          return lastComparison;
40538
        }
40539
      }
40540
      return 0;
40541
    }
40542
 
40543
    public _Fields fieldForId(int fieldId) {
40544
      return _Fields.findByThriftId(fieldId);
40545
    }
40546
 
40547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40548
      org.apache.thrift.protocol.TField field;
40549
      iprot.readStructBegin();
40550
      while (true)
40551
      {
40552
        field = iprot.readFieldBegin();
40553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40554
          break;
40555
        }
40556
        switch (field.id) {
40557
          case 1: // ITEM_ID
40558
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40559
              this.item_id = iprot.readI64();
40560
              setItem_idIsSet(true);
40561
            } else { 
40562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40563
            }
40564
            break;
40565
          default:
40566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40567
        }
40568
        iprot.readFieldEnd();
40569
      }
40570
      iprot.readStructEnd();
40571
      validate();
40572
    }
40573
 
40574
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40575
      validate();
40576
 
40577
      oprot.writeStructBegin(STRUCT_DESC);
40578
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40579
      oprot.writeI64(this.item_id);
40580
      oprot.writeFieldEnd();
40581
      oprot.writeFieldStop();
40582
      oprot.writeStructEnd();
40583
    }
40584
 
40585
    @Override
40586
    public String toString() {
40587
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_args(");
40588
      boolean first = true;
40589
 
40590
      sb.append("item_id:");
40591
      sb.append(this.item_id);
40592
      first = false;
40593
      sb.append(")");
40594
      return sb.toString();
40595
    }
40596
 
40597
    public void validate() throws org.apache.thrift.TException {
40598
      // check for required fields
40599
    }
40600
 
40601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40602
      try {
40603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40604
      } catch (org.apache.thrift.TException te) {
40605
        throw new java.io.IOException(te);
40606
      }
40607
    }
40608
 
40609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40610
      try {
40611
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40612
        __isset_bit_vector = new BitSet(1);
40613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40614
      } catch (org.apache.thrift.TException te) {
40615
        throw new java.io.IOException(te);
40616
      }
40617
    }
40618
 
40619
  }
40620
 
40621
  public static class getAmazonInventoryForItem_result implements org.apache.thrift.TBase<getAmazonInventoryForItem_result, getAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
40622
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_result");
40623
 
40624
    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);
40625
 
40626
    private AmazonInventorySnapshot success; // required
40627
 
40628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40630
      SUCCESS((short)0, "success");
40631
 
40632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40633
 
40634
      static {
40635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40636
          byName.put(field.getFieldName(), field);
40637
        }
40638
      }
40639
 
40640
      /**
40641
       * Find the _Fields constant that matches fieldId, or null if its not found.
40642
       */
40643
      public static _Fields findByThriftId(int fieldId) {
40644
        switch(fieldId) {
40645
          case 0: // SUCCESS
40646
            return SUCCESS;
40647
          default:
40648
            return null;
40649
        }
40650
      }
40651
 
40652
      /**
40653
       * Find the _Fields constant that matches fieldId, throwing an exception
40654
       * if it is not found.
40655
       */
40656
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40657
        _Fields fields = findByThriftId(fieldId);
40658
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40659
        return fields;
40660
      }
40661
 
40662
      /**
40663
       * Find the _Fields constant that matches name, or null if its not found.
40664
       */
40665
      public static _Fields findByName(String name) {
40666
        return byName.get(name);
40667
      }
40668
 
40669
      private final short _thriftId;
40670
      private final String _fieldName;
40671
 
40672
      _Fields(short thriftId, String fieldName) {
40673
        _thriftId = thriftId;
40674
        _fieldName = fieldName;
40675
      }
40676
 
40677
      public short getThriftFieldId() {
40678
        return _thriftId;
40679
      }
40680
 
40681
      public String getFieldName() {
40682
        return _fieldName;
40683
      }
40684
    }
40685
 
40686
    // isset id assignments
40687
 
40688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40689
    static {
40690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40691
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40692
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
40693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_result.class, metaDataMap);
40695
    }
40696
 
40697
    public getAmazonInventoryForItem_result() {
40698
    }
40699
 
40700
    public getAmazonInventoryForItem_result(
40701
      AmazonInventorySnapshot success)
40702
    {
40703
      this();
40704
      this.success = success;
40705
    }
40706
 
40707
    /**
40708
     * Performs a deep copy on <i>other</i>.
40709
     */
40710
    public getAmazonInventoryForItem_result(getAmazonInventoryForItem_result other) {
40711
      if (other.isSetSuccess()) {
40712
        this.success = new AmazonInventorySnapshot(other.success);
40713
      }
40714
    }
40715
 
40716
    public getAmazonInventoryForItem_result deepCopy() {
40717
      return new getAmazonInventoryForItem_result(this);
40718
    }
40719
 
40720
    @Override
40721
    public void clear() {
40722
      this.success = null;
40723
    }
40724
 
40725
    public AmazonInventorySnapshot getSuccess() {
40726
      return this.success;
40727
    }
40728
 
40729
    public void setSuccess(AmazonInventorySnapshot success) {
40730
      this.success = success;
40731
    }
40732
 
40733
    public void unsetSuccess() {
40734
      this.success = null;
40735
    }
40736
 
40737
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40738
    public boolean isSetSuccess() {
40739
      return this.success != null;
40740
    }
40741
 
40742
    public void setSuccessIsSet(boolean value) {
40743
      if (!value) {
40744
        this.success = null;
40745
      }
40746
    }
40747
 
40748
    public void setFieldValue(_Fields field, Object value) {
40749
      switch (field) {
40750
      case SUCCESS:
40751
        if (value == null) {
40752
          unsetSuccess();
40753
        } else {
40754
          setSuccess((AmazonInventorySnapshot)value);
40755
        }
40756
        break;
40757
 
40758
      }
40759
    }
40760
 
40761
    public Object getFieldValue(_Fields field) {
40762
      switch (field) {
40763
      case SUCCESS:
40764
        return getSuccess();
40765
 
40766
      }
40767
      throw new IllegalStateException();
40768
    }
40769
 
40770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40771
    public boolean isSet(_Fields field) {
40772
      if (field == null) {
40773
        throw new IllegalArgumentException();
40774
      }
40775
 
40776
      switch (field) {
40777
      case SUCCESS:
40778
        return isSetSuccess();
40779
      }
40780
      throw new IllegalStateException();
40781
    }
40782
 
40783
    @Override
40784
    public boolean equals(Object that) {
40785
      if (that == null)
40786
        return false;
40787
      if (that instanceof getAmazonInventoryForItem_result)
40788
        return this.equals((getAmazonInventoryForItem_result)that);
40789
      return false;
40790
    }
40791
 
40792
    public boolean equals(getAmazonInventoryForItem_result that) {
40793
      if (that == null)
40794
        return false;
40795
 
40796
      boolean this_present_success = true && this.isSetSuccess();
40797
      boolean that_present_success = true && that.isSetSuccess();
40798
      if (this_present_success || that_present_success) {
40799
        if (!(this_present_success && that_present_success))
40800
          return false;
40801
        if (!this.success.equals(that.success))
40802
          return false;
40803
      }
40804
 
40805
      return true;
40806
    }
40807
 
40808
    @Override
40809
    public int hashCode() {
40810
      return 0;
40811
    }
40812
 
40813
    public int compareTo(getAmazonInventoryForItem_result other) {
40814
      if (!getClass().equals(other.getClass())) {
40815
        return getClass().getName().compareTo(other.getClass().getName());
40816
      }
40817
 
40818
      int lastComparison = 0;
40819
      getAmazonInventoryForItem_result typedOther = (getAmazonInventoryForItem_result)other;
40820
 
40821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40822
      if (lastComparison != 0) {
40823
        return lastComparison;
40824
      }
40825
      if (isSetSuccess()) {
40826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40827
        if (lastComparison != 0) {
40828
          return lastComparison;
40829
        }
40830
      }
40831
      return 0;
40832
    }
40833
 
40834
    public _Fields fieldForId(int fieldId) {
40835
      return _Fields.findByThriftId(fieldId);
40836
    }
40837
 
40838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40839
      org.apache.thrift.protocol.TField field;
40840
      iprot.readStructBegin();
40841
      while (true)
40842
      {
40843
        field = iprot.readFieldBegin();
40844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40845
          break;
40846
        }
40847
        switch (field.id) {
40848
          case 0: // SUCCESS
40849
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40850
              this.success = new AmazonInventorySnapshot();
40851
              this.success.read(iprot);
40852
            } else { 
40853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40854
            }
40855
            break;
40856
          default:
40857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40858
        }
40859
        iprot.readFieldEnd();
40860
      }
40861
      iprot.readStructEnd();
40862
      validate();
40863
    }
40864
 
40865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40866
      oprot.writeStructBegin(STRUCT_DESC);
40867
 
40868
      if (this.isSetSuccess()) {
40869
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40870
        this.success.write(oprot);
40871
        oprot.writeFieldEnd();
40872
      }
40873
      oprot.writeFieldStop();
40874
      oprot.writeStructEnd();
40875
    }
40876
 
40877
    @Override
40878
    public String toString() {
40879
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_result(");
40880
      boolean first = true;
40881
 
40882
      sb.append("success:");
40883
      if (this.success == null) {
40884
        sb.append("null");
40885
      } else {
40886
        sb.append(this.success);
40887
      }
40888
      first = false;
40889
      sb.append(")");
40890
      return sb.toString();
40891
    }
40892
 
40893
    public void validate() throws org.apache.thrift.TException {
40894
      // check for required fields
40895
    }
40896
 
40897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40898
      try {
40899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40900
      } catch (org.apache.thrift.TException te) {
40901
        throw new java.io.IOException(te);
40902
      }
40903
    }
40904
 
40905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40906
      try {
40907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40908
      } catch (org.apache.thrift.TException te) {
40909
        throw new java.io.IOException(te);
40910
      }
40911
    }
40912
 
40913
  }
40914
 
40915
  public static class getAllAmazonInventory_args implements org.apache.thrift.TBase<getAllAmazonInventory_args, getAllAmazonInventory_args._Fields>, java.io.Serializable, Cloneable   {
40916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_args");
40917
 
40918
 
40919
 
40920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40922
;
40923
 
40924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40925
 
40926
      static {
40927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40928
          byName.put(field.getFieldName(), field);
40929
        }
40930
      }
40931
 
40932
      /**
40933
       * Find the _Fields constant that matches fieldId, or null if its not found.
40934
       */
40935
      public static _Fields findByThriftId(int fieldId) {
40936
        switch(fieldId) {
40937
          default:
40938
            return null;
40939
        }
40940
      }
40941
 
40942
      /**
40943
       * Find the _Fields constant that matches fieldId, throwing an exception
40944
       * if it is not found.
40945
       */
40946
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40947
        _Fields fields = findByThriftId(fieldId);
40948
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40949
        return fields;
40950
      }
40951
 
40952
      /**
40953
       * Find the _Fields constant that matches name, or null if its not found.
40954
       */
40955
      public static _Fields findByName(String name) {
40956
        return byName.get(name);
40957
      }
40958
 
40959
      private final short _thriftId;
40960
      private final String _fieldName;
40961
 
40962
      _Fields(short thriftId, String fieldName) {
40963
        _thriftId = thriftId;
40964
        _fieldName = fieldName;
40965
      }
40966
 
40967
      public short getThriftFieldId() {
40968
        return _thriftId;
40969
      }
40970
 
40971
      public String getFieldName() {
40972
        return _fieldName;
40973
      }
40974
    }
40975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40976
    static {
40977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_args.class, metaDataMap);
40980
    }
40981
 
40982
    public getAllAmazonInventory_args() {
40983
    }
40984
 
40985
    /**
40986
     * Performs a deep copy on <i>other</i>.
40987
     */
40988
    public getAllAmazonInventory_args(getAllAmazonInventory_args other) {
40989
    }
40990
 
40991
    public getAllAmazonInventory_args deepCopy() {
40992
      return new getAllAmazonInventory_args(this);
40993
    }
40994
 
40995
    @Override
40996
    public void clear() {
40997
    }
40998
 
40999
    public void setFieldValue(_Fields field, Object value) {
41000
      switch (field) {
41001
      }
41002
    }
41003
 
41004
    public Object getFieldValue(_Fields field) {
41005
      switch (field) {
41006
      }
41007
      throw new IllegalStateException();
41008
    }
41009
 
41010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41011
    public boolean isSet(_Fields field) {
41012
      if (field == null) {
41013
        throw new IllegalArgumentException();
41014
      }
41015
 
41016
      switch (field) {
41017
      }
41018
      throw new IllegalStateException();
41019
    }
41020
 
41021
    @Override
41022
    public boolean equals(Object that) {
41023
      if (that == null)
41024
        return false;
41025
      if (that instanceof getAllAmazonInventory_args)
41026
        return this.equals((getAllAmazonInventory_args)that);
41027
      return false;
41028
    }
41029
 
41030
    public boolean equals(getAllAmazonInventory_args that) {
41031
      if (that == null)
41032
        return false;
41033
 
41034
      return true;
41035
    }
41036
 
41037
    @Override
41038
    public int hashCode() {
41039
      return 0;
41040
    }
41041
 
41042
    public int compareTo(getAllAmazonInventory_args other) {
41043
      if (!getClass().equals(other.getClass())) {
41044
        return getClass().getName().compareTo(other.getClass().getName());
41045
      }
41046
 
41047
      int lastComparison = 0;
41048
      getAllAmazonInventory_args typedOther = (getAllAmazonInventory_args)other;
41049
 
41050
      return 0;
41051
    }
41052
 
41053
    public _Fields fieldForId(int fieldId) {
41054
      return _Fields.findByThriftId(fieldId);
41055
    }
41056
 
41057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41058
      org.apache.thrift.protocol.TField field;
41059
      iprot.readStructBegin();
41060
      while (true)
41061
      {
41062
        field = iprot.readFieldBegin();
41063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41064
          break;
41065
        }
41066
        switch (field.id) {
41067
          default:
41068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41069
        }
41070
        iprot.readFieldEnd();
41071
      }
41072
      iprot.readStructEnd();
41073
      validate();
41074
    }
41075
 
41076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41077
      validate();
41078
 
41079
      oprot.writeStructBegin(STRUCT_DESC);
41080
      oprot.writeFieldStop();
41081
      oprot.writeStructEnd();
41082
    }
41083
 
41084
    @Override
41085
    public String toString() {
41086
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_args(");
41087
      boolean first = true;
41088
 
41089
      sb.append(")");
41090
      return sb.toString();
41091
    }
41092
 
41093
    public void validate() throws org.apache.thrift.TException {
41094
      // check for required fields
41095
    }
41096
 
41097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41098
      try {
41099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41100
      } catch (org.apache.thrift.TException te) {
41101
        throw new java.io.IOException(te);
41102
      }
41103
    }
41104
 
41105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41106
      try {
41107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41108
      } catch (org.apache.thrift.TException te) {
41109
        throw new java.io.IOException(te);
41110
      }
41111
    }
41112
 
41113
  }
41114
 
41115
  public static class getAllAmazonInventory_result implements org.apache.thrift.TBase<getAllAmazonInventory_result, getAllAmazonInventory_result._Fields>, java.io.Serializable, Cloneable   {
41116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_result");
41117
 
41118
    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);
41119
 
41120
    private List<AmazonInventorySnapshot> success; // required
41121
 
41122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41124
      SUCCESS((short)0, "success");
41125
 
41126
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41127
 
41128
      static {
41129
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41130
          byName.put(field.getFieldName(), field);
41131
        }
41132
      }
41133
 
41134
      /**
41135
       * Find the _Fields constant that matches fieldId, or null if its not found.
41136
       */
41137
      public static _Fields findByThriftId(int fieldId) {
41138
        switch(fieldId) {
41139
          case 0: // SUCCESS
41140
            return SUCCESS;
41141
          default:
41142
            return null;
41143
        }
41144
      }
41145
 
41146
      /**
41147
       * Find the _Fields constant that matches fieldId, throwing an exception
41148
       * if it is not found.
41149
       */
41150
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41151
        _Fields fields = findByThriftId(fieldId);
41152
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41153
        return fields;
41154
      }
41155
 
41156
      /**
41157
       * Find the _Fields constant that matches name, or null if its not found.
41158
       */
41159
      public static _Fields findByName(String name) {
41160
        return byName.get(name);
41161
      }
41162
 
41163
      private final short _thriftId;
41164
      private final String _fieldName;
41165
 
41166
      _Fields(short thriftId, String fieldName) {
41167
        _thriftId = thriftId;
41168
        _fieldName = fieldName;
41169
      }
41170
 
41171
      public short getThriftFieldId() {
41172
        return _thriftId;
41173
      }
41174
 
41175
      public String getFieldName() {
41176
        return _fieldName;
41177
      }
41178
    }
41179
 
41180
    // isset id assignments
41181
 
41182
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41183
    static {
41184
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41185
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41186
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
41187
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class))));
41188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_result.class, metaDataMap);
41190
    }
41191
 
41192
    public getAllAmazonInventory_result() {
41193
    }
41194
 
41195
    public getAllAmazonInventory_result(
41196
      List<AmazonInventorySnapshot> success)
41197
    {
41198
      this();
41199
      this.success = success;
41200
    }
41201
 
41202
    /**
41203
     * Performs a deep copy on <i>other</i>.
41204
     */
41205
    public getAllAmazonInventory_result(getAllAmazonInventory_result other) {
41206
      if (other.isSetSuccess()) {
41207
        List<AmazonInventorySnapshot> __this__success = new ArrayList<AmazonInventorySnapshot>();
41208
        for (AmazonInventorySnapshot other_element : other.success) {
41209
          __this__success.add(new AmazonInventorySnapshot(other_element));
41210
        }
41211
        this.success = __this__success;
41212
      }
41213
    }
41214
 
41215
    public getAllAmazonInventory_result deepCopy() {
41216
      return new getAllAmazonInventory_result(this);
41217
    }
41218
 
41219
    @Override
41220
    public void clear() {
41221
      this.success = null;
41222
    }
41223
 
41224
    public int getSuccessSize() {
41225
      return (this.success == null) ? 0 : this.success.size();
41226
    }
41227
 
41228
    public java.util.Iterator<AmazonInventorySnapshot> getSuccessIterator() {
41229
      return (this.success == null) ? null : this.success.iterator();
41230
    }
41231
 
41232
    public void addToSuccess(AmazonInventorySnapshot elem) {
41233
      if (this.success == null) {
41234
        this.success = new ArrayList<AmazonInventorySnapshot>();
41235
      }
41236
      this.success.add(elem);
41237
    }
41238
 
41239
    public List<AmazonInventorySnapshot> getSuccess() {
41240
      return this.success;
41241
    }
41242
 
41243
    public void setSuccess(List<AmazonInventorySnapshot> success) {
41244
      this.success = success;
41245
    }
41246
 
41247
    public void unsetSuccess() {
41248
      this.success = null;
41249
    }
41250
 
41251
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
41252
    public boolean isSetSuccess() {
41253
      return this.success != null;
41254
    }
41255
 
41256
    public void setSuccessIsSet(boolean value) {
41257
      if (!value) {
41258
        this.success = null;
41259
      }
41260
    }
41261
 
41262
    public void setFieldValue(_Fields field, Object value) {
41263
      switch (field) {
41264
      case SUCCESS:
41265
        if (value == null) {
41266
          unsetSuccess();
41267
        } else {
41268
          setSuccess((List<AmazonInventorySnapshot>)value);
41269
        }
41270
        break;
41271
 
41272
      }
41273
    }
41274
 
41275
    public Object getFieldValue(_Fields field) {
41276
      switch (field) {
41277
      case SUCCESS:
41278
        return getSuccess();
41279
 
41280
      }
41281
      throw new IllegalStateException();
41282
    }
41283
 
41284
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41285
    public boolean isSet(_Fields field) {
41286
      if (field == null) {
41287
        throw new IllegalArgumentException();
41288
      }
41289
 
41290
      switch (field) {
41291
      case SUCCESS:
41292
        return isSetSuccess();
41293
      }
41294
      throw new IllegalStateException();
41295
    }
41296
 
41297
    @Override
41298
    public boolean equals(Object that) {
41299
      if (that == null)
41300
        return false;
41301
      if (that instanceof getAllAmazonInventory_result)
41302
        return this.equals((getAllAmazonInventory_result)that);
41303
      return false;
41304
    }
41305
 
41306
    public boolean equals(getAllAmazonInventory_result that) {
41307
      if (that == null)
41308
        return false;
41309
 
41310
      boolean this_present_success = true && this.isSetSuccess();
41311
      boolean that_present_success = true && that.isSetSuccess();
41312
      if (this_present_success || that_present_success) {
41313
        if (!(this_present_success && that_present_success))
41314
          return false;
41315
        if (!this.success.equals(that.success))
41316
          return false;
41317
      }
41318
 
41319
      return true;
41320
    }
41321
 
41322
    @Override
41323
    public int hashCode() {
41324
      return 0;
41325
    }
41326
 
41327
    public int compareTo(getAllAmazonInventory_result other) {
41328
      if (!getClass().equals(other.getClass())) {
41329
        return getClass().getName().compareTo(other.getClass().getName());
41330
      }
41331
 
41332
      int lastComparison = 0;
41333
      getAllAmazonInventory_result typedOther = (getAllAmazonInventory_result)other;
41334
 
41335
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
41336
      if (lastComparison != 0) {
41337
        return lastComparison;
41338
      }
41339
      if (isSetSuccess()) {
41340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41341
        if (lastComparison != 0) {
41342
          return lastComparison;
41343
        }
41344
      }
41345
      return 0;
41346
    }
41347
 
41348
    public _Fields fieldForId(int fieldId) {
41349
      return _Fields.findByThriftId(fieldId);
41350
    }
41351
 
41352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41353
      org.apache.thrift.protocol.TField field;
41354
      iprot.readStructBegin();
41355
      while (true)
41356
      {
41357
        field = iprot.readFieldBegin();
41358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41359
          break;
41360
        }
41361
        switch (field.id) {
41362
          case 0: // SUCCESS
41363
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41364
              {
8182 amar.kumar 41365
                org.apache.thrift.protocol.TList _list126 = iprot.readListBegin();
41366
                this.success = new ArrayList<AmazonInventorySnapshot>(_list126.size);
41367
                for (int _i127 = 0; _i127 < _list126.size; ++_i127)
7281 kshitij.so 41368
                {
8182 amar.kumar 41369
                  AmazonInventorySnapshot _elem128; // required
41370
                  _elem128 = new AmazonInventorySnapshot();
41371
                  _elem128.read(iprot);
41372
                  this.success.add(_elem128);
7281 kshitij.so 41373
                }
41374
                iprot.readListEnd();
41375
              }
41376
            } else { 
41377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41378
            }
41379
            break;
41380
          default:
41381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41382
        }
41383
        iprot.readFieldEnd();
41384
      }
41385
      iprot.readStructEnd();
41386
      validate();
41387
    }
41388
 
41389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41390
      oprot.writeStructBegin(STRUCT_DESC);
41391
 
41392
      if (this.isSetSuccess()) {
41393
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41394
        {
41395
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 41396
          for (AmazonInventorySnapshot _iter129 : this.success)
7281 kshitij.so 41397
          {
8182 amar.kumar 41398
            _iter129.write(oprot);
7281 kshitij.so 41399
          }
41400
          oprot.writeListEnd();
41401
        }
41402
        oprot.writeFieldEnd();
41403
      }
41404
      oprot.writeFieldStop();
41405
      oprot.writeStructEnd();
41406
    }
41407
 
41408
    @Override
41409
    public String toString() {
41410
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_result(");
41411
      boolean first = true;
41412
 
41413
      sb.append("success:");
41414
      if (this.success == null) {
41415
        sb.append("null");
41416
      } else {
41417
        sb.append(this.success);
41418
      }
41419
      first = false;
41420
      sb.append(")");
41421
      return sb.toString();
41422
    }
41423
 
41424
    public void validate() throws org.apache.thrift.TException {
41425
      // check for required fields
41426
    }
41427
 
41428
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41429
      try {
41430
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41431
      } catch (org.apache.thrift.TException te) {
41432
        throw new java.io.IOException(te);
41433
      }
41434
    }
41435
 
41436
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41437
      try {
41438
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41439
      } catch (org.apache.thrift.TException te) {
41440
        throw new java.io.IOException(te);
41441
      }
41442
    }
41443
 
41444
  }
41445
 
41446
  public static class addOrUpdateAmazonInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_args, addOrUpdateAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
41447
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_args");
41448
 
41449
    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);
41450
 
41451
    private AmazonInventorySnapshot amazonInventorySnapshot; // required
41452
 
41453
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41454
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41455
      AMAZON_INVENTORY_SNAPSHOT((short)1, "amazonInventorySnapshot");
41456
 
41457
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41458
 
41459
      static {
41460
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41461
          byName.put(field.getFieldName(), field);
41462
        }
41463
      }
41464
 
41465
      /**
41466
       * Find the _Fields constant that matches fieldId, or null if its not found.
41467
       */
41468
      public static _Fields findByThriftId(int fieldId) {
41469
        switch(fieldId) {
41470
          case 1: // AMAZON_INVENTORY_SNAPSHOT
41471
            return AMAZON_INVENTORY_SNAPSHOT;
41472
          default:
41473
            return null;
41474
        }
41475
      }
41476
 
41477
      /**
41478
       * Find the _Fields constant that matches fieldId, throwing an exception
41479
       * if it is not found.
41480
       */
41481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41482
        _Fields fields = findByThriftId(fieldId);
41483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41484
        return fields;
41485
      }
41486
 
41487
      /**
41488
       * Find the _Fields constant that matches name, or null if its not found.
41489
       */
41490
      public static _Fields findByName(String name) {
41491
        return byName.get(name);
41492
      }
41493
 
41494
      private final short _thriftId;
41495
      private final String _fieldName;
41496
 
41497
      _Fields(short thriftId, String fieldName) {
41498
        _thriftId = thriftId;
41499
        _fieldName = fieldName;
41500
      }
41501
 
41502
      public short getThriftFieldId() {
41503
        return _thriftId;
41504
      }
41505
 
41506
      public String getFieldName() {
41507
        return _fieldName;
41508
      }
41509
    }
41510
 
41511
    // isset id assignments
41512
 
41513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41514
    static {
41515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41516
      tmpMap.put(_Fields.AMAZON_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41517
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
41518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_args.class, metaDataMap);
41520
    }
41521
 
41522
    public addOrUpdateAmazonInventoryForItem_args() {
41523
    }
41524
 
41525
    public addOrUpdateAmazonInventoryForItem_args(
41526
      AmazonInventorySnapshot amazonInventorySnapshot)
41527
    {
41528
      this();
41529
      this.amazonInventorySnapshot = amazonInventorySnapshot;
41530
    }
41531
 
41532
    /**
41533
     * Performs a deep copy on <i>other</i>.
41534
     */
41535
    public addOrUpdateAmazonInventoryForItem_args(addOrUpdateAmazonInventoryForItem_args other) {
41536
      if (other.isSetAmazonInventorySnapshot()) {
41537
        this.amazonInventorySnapshot = new AmazonInventorySnapshot(other.amazonInventorySnapshot);
41538
      }
41539
    }
41540
 
41541
    public addOrUpdateAmazonInventoryForItem_args deepCopy() {
41542
      return new addOrUpdateAmazonInventoryForItem_args(this);
41543
    }
41544
 
41545
    @Override
41546
    public void clear() {
41547
      this.amazonInventorySnapshot = null;
41548
    }
41549
 
41550
    public AmazonInventorySnapshot getAmazonInventorySnapshot() {
41551
      return this.amazonInventorySnapshot;
41552
    }
41553
 
41554
    public void setAmazonInventorySnapshot(AmazonInventorySnapshot amazonInventorySnapshot) {
41555
      this.amazonInventorySnapshot = amazonInventorySnapshot;
41556
    }
41557
 
41558
    public void unsetAmazonInventorySnapshot() {
41559
      this.amazonInventorySnapshot = null;
41560
    }
41561
 
41562
    /** Returns true if field amazonInventorySnapshot is set (has been assigned a value) and false otherwise */
41563
    public boolean isSetAmazonInventorySnapshot() {
41564
      return this.amazonInventorySnapshot != null;
41565
    }
41566
 
41567
    public void setAmazonInventorySnapshotIsSet(boolean value) {
41568
      if (!value) {
41569
        this.amazonInventorySnapshot = null;
41570
      }
41571
    }
41572
 
41573
    public void setFieldValue(_Fields field, Object value) {
41574
      switch (field) {
41575
      case AMAZON_INVENTORY_SNAPSHOT:
41576
        if (value == null) {
41577
          unsetAmazonInventorySnapshot();
41578
        } else {
41579
          setAmazonInventorySnapshot((AmazonInventorySnapshot)value);
41580
        }
41581
        break;
41582
 
41583
      }
41584
    }
41585
 
41586
    public Object getFieldValue(_Fields field) {
41587
      switch (field) {
41588
      case AMAZON_INVENTORY_SNAPSHOT:
41589
        return getAmazonInventorySnapshot();
41590
 
41591
      }
41592
      throw new IllegalStateException();
41593
    }
41594
 
41595
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41596
    public boolean isSet(_Fields field) {
41597
      if (field == null) {
41598
        throw new IllegalArgumentException();
41599
      }
41600
 
41601
      switch (field) {
41602
      case AMAZON_INVENTORY_SNAPSHOT:
41603
        return isSetAmazonInventorySnapshot();
41604
      }
41605
      throw new IllegalStateException();
41606
    }
41607
 
41608
    @Override
41609
    public boolean equals(Object that) {
41610
      if (that == null)
41611
        return false;
41612
      if (that instanceof addOrUpdateAmazonInventoryForItem_args)
41613
        return this.equals((addOrUpdateAmazonInventoryForItem_args)that);
41614
      return false;
41615
    }
41616
 
41617
    public boolean equals(addOrUpdateAmazonInventoryForItem_args that) {
41618
      if (that == null)
41619
        return false;
41620
 
41621
      boolean this_present_amazonInventorySnapshot = true && this.isSetAmazonInventorySnapshot();
41622
      boolean that_present_amazonInventorySnapshot = true && that.isSetAmazonInventorySnapshot();
41623
      if (this_present_amazonInventorySnapshot || that_present_amazonInventorySnapshot) {
41624
        if (!(this_present_amazonInventorySnapshot && that_present_amazonInventorySnapshot))
41625
          return false;
41626
        if (!this.amazonInventorySnapshot.equals(that.amazonInventorySnapshot))
41627
          return false;
41628
      }
41629
 
41630
      return true;
41631
    }
41632
 
41633
    @Override
41634
    public int hashCode() {
41635
      return 0;
41636
    }
41637
 
41638
    public int compareTo(addOrUpdateAmazonInventoryForItem_args other) {
41639
      if (!getClass().equals(other.getClass())) {
41640
        return getClass().getName().compareTo(other.getClass().getName());
41641
      }
41642
 
41643
      int lastComparison = 0;
41644
      addOrUpdateAmazonInventoryForItem_args typedOther = (addOrUpdateAmazonInventoryForItem_args)other;
41645
 
41646
      lastComparison = Boolean.valueOf(isSetAmazonInventorySnapshot()).compareTo(typedOther.isSetAmazonInventorySnapshot());
41647
      if (lastComparison != 0) {
41648
        return lastComparison;
41649
      }
41650
      if (isSetAmazonInventorySnapshot()) {
41651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonInventorySnapshot, typedOther.amazonInventorySnapshot);
41652
        if (lastComparison != 0) {
41653
          return lastComparison;
41654
        }
41655
      }
41656
      return 0;
41657
    }
41658
 
41659
    public _Fields fieldForId(int fieldId) {
41660
      return _Fields.findByThriftId(fieldId);
41661
    }
41662
 
41663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41664
      org.apache.thrift.protocol.TField field;
41665
      iprot.readStructBegin();
41666
      while (true)
41667
      {
41668
        field = iprot.readFieldBegin();
41669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41670
          break;
41671
        }
41672
        switch (field.id) {
41673
          case 1: // AMAZON_INVENTORY_SNAPSHOT
41674
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41675
              this.amazonInventorySnapshot = new AmazonInventorySnapshot();
41676
              this.amazonInventorySnapshot.read(iprot);
41677
            } else { 
41678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41679
            }
41680
            break;
41681
          default:
41682
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41683
        }
41684
        iprot.readFieldEnd();
41685
      }
41686
      iprot.readStructEnd();
41687
      validate();
41688
    }
41689
 
41690
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41691
      validate();
41692
 
41693
      oprot.writeStructBegin(STRUCT_DESC);
41694
      if (this.amazonInventorySnapshot != null) {
41695
        oprot.writeFieldBegin(AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC);
41696
        this.amazonInventorySnapshot.write(oprot);
41697
        oprot.writeFieldEnd();
41698
      }
41699
      oprot.writeFieldStop();
41700
      oprot.writeStructEnd();
41701
    }
41702
 
41703
    @Override
41704
    public String toString() {
41705
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_args(");
41706
      boolean first = true;
41707
 
41708
      sb.append("amazonInventorySnapshot:");
41709
      if (this.amazonInventorySnapshot == null) {
41710
        sb.append("null");
41711
      } else {
41712
        sb.append(this.amazonInventorySnapshot);
41713
      }
41714
      first = false;
41715
      sb.append(")");
41716
      return sb.toString();
41717
    }
41718
 
41719
    public void validate() throws org.apache.thrift.TException {
41720
      // check for required fields
41721
    }
41722
 
41723
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41724
      try {
41725
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41726
      } catch (org.apache.thrift.TException te) {
41727
        throw new java.io.IOException(te);
41728
      }
41729
    }
41730
 
41731
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41732
      try {
41733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41734
      } catch (org.apache.thrift.TException te) {
41735
        throw new java.io.IOException(te);
41736
      }
41737
    }
41738
 
41739
  }
41740
 
41741
  public static class addOrUpdateAmazonInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_result, addOrUpdateAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
41742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_result");
41743
 
41744
 
41745
 
41746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41748
;
41749
 
41750
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41751
 
41752
      static {
41753
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41754
          byName.put(field.getFieldName(), field);
41755
        }
41756
      }
41757
 
41758
      /**
41759
       * Find the _Fields constant that matches fieldId, or null if its not found.
41760
       */
41761
      public static _Fields findByThriftId(int fieldId) {
41762
        switch(fieldId) {
41763
          default:
41764
            return null;
41765
        }
41766
      }
41767
 
41768
      /**
41769
       * Find the _Fields constant that matches fieldId, throwing an exception
41770
       * if it is not found.
41771
       */
41772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41773
        _Fields fields = findByThriftId(fieldId);
41774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41775
        return fields;
41776
      }
41777
 
41778
      /**
41779
       * Find the _Fields constant that matches name, or null if its not found.
41780
       */
41781
      public static _Fields findByName(String name) {
41782
        return byName.get(name);
41783
      }
41784
 
41785
      private final short _thriftId;
41786
      private final String _fieldName;
41787
 
41788
      _Fields(short thriftId, String fieldName) {
41789
        _thriftId = thriftId;
41790
        _fieldName = fieldName;
41791
      }
41792
 
41793
      public short getThriftFieldId() {
41794
        return _thriftId;
41795
      }
41796
 
41797
      public String getFieldName() {
41798
        return _fieldName;
41799
      }
41800
    }
41801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41802
    static {
41803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_result.class, metaDataMap);
41806
    }
41807
 
41808
    public addOrUpdateAmazonInventoryForItem_result() {
41809
    }
41810
 
41811
    /**
41812
     * Performs a deep copy on <i>other</i>.
41813
     */
41814
    public addOrUpdateAmazonInventoryForItem_result(addOrUpdateAmazonInventoryForItem_result other) {
41815
    }
41816
 
41817
    public addOrUpdateAmazonInventoryForItem_result deepCopy() {
41818
      return new addOrUpdateAmazonInventoryForItem_result(this);
41819
    }
41820
 
41821
    @Override
41822
    public void clear() {
41823
    }
41824
 
41825
    public void setFieldValue(_Fields field, Object value) {
41826
      switch (field) {
41827
      }
41828
    }
41829
 
41830
    public Object getFieldValue(_Fields field) {
41831
      switch (field) {
41832
      }
41833
      throw new IllegalStateException();
41834
    }
41835
 
41836
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41837
    public boolean isSet(_Fields field) {
41838
      if (field == null) {
41839
        throw new IllegalArgumentException();
41840
      }
41841
 
41842
      switch (field) {
41843
      }
41844
      throw new IllegalStateException();
41845
    }
41846
 
41847
    @Override
41848
    public boolean equals(Object that) {
41849
      if (that == null)
41850
        return false;
41851
      if (that instanceof addOrUpdateAmazonInventoryForItem_result)
41852
        return this.equals((addOrUpdateAmazonInventoryForItem_result)that);
41853
      return false;
41854
    }
41855
 
41856
    public boolean equals(addOrUpdateAmazonInventoryForItem_result that) {
41857
      if (that == null)
41858
        return false;
41859
 
41860
      return true;
41861
    }
41862
 
41863
    @Override
41864
    public int hashCode() {
41865
      return 0;
41866
    }
41867
 
41868
    public int compareTo(addOrUpdateAmazonInventoryForItem_result other) {
41869
      if (!getClass().equals(other.getClass())) {
41870
        return getClass().getName().compareTo(other.getClass().getName());
41871
      }
41872
 
41873
      int lastComparison = 0;
41874
      addOrUpdateAmazonInventoryForItem_result typedOther = (addOrUpdateAmazonInventoryForItem_result)other;
41875
 
41876
      return 0;
41877
    }
41878
 
41879
    public _Fields fieldForId(int fieldId) {
41880
      return _Fields.findByThriftId(fieldId);
41881
    }
41882
 
41883
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41884
      org.apache.thrift.protocol.TField field;
41885
      iprot.readStructBegin();
41886
      while (true)
41887
      {
41888
        field = iprot.readFieldBegin();
41889
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41890
          break;
41891
        }
41892
        switch (field.id) {
41893
          default:
41894
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41895
        }
41896
        iprot.readFieldEnd();
41897
      }
41898
      iprot.readStructEnd();
41899
      validate();
41900
    }
41901
 
41902
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41903
      oprot.writeStructBegin(STRUCT_DESC);
41904
 
41905
      oprot.writeFieldStop();
41906
      oprot.writeStructEnd();
41907
    }
41908
 
41909
    @Override
41910
    public String toString() {
41911
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_result(");
41912
      boolean first = true;
41913
 
41914
      sb.append(")");
41915
      return sb.toString();
41916
    }
41917
 
41918
    public void validate() throws org.apache.thrift.TException {
41919
      // check for required fields
41920
    }
41921
 
41922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41923
      try {
41924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41925
      } catch (org.apache.thrift.TException te) {
41926
        throw new java.io.IOException(te);
41927
      }
41928
    }
41929
 
41930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41931
      try {
41932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41933
      } catch (org.apache.thrift.TException te) {
41934
        throw new java.io.IOException(te);
41935
      }
41936
    }
41937
 
41938
  }
41939
 
7972 amar.kumar 41940
  public static class getLastNdaySaleForItem_args implements org.apache.thrift.TBase<getLastNdaySaleForItem_args, getLastNdaySaleForItem_args._Fields>, java.io.Serializable, Cloneable   {
41941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_args");
41942
 
41943
    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);
41944
    private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDays", org.apache.thrift.protocol.TType.I64, (short)2);
41945
 
41946
    private long itemId; // required
41947
    private long numberOfDays; // required
41948
 
41949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41951
      ITEM_ID((short)1, "itemId"),
41952
      NUMBER_OF_DAYS((short)2, "numberOfDays");
41953
 
41954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41955
 
41956
      static {
41957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41958
          byName.put(field.getFieldName(), field);
41959
        }
41960
      }
41961
 
41962
      /**
41963
       * Find the _Fields constant that matches fieldId, or null if its not found.
41964
       */
41965
      public static _Fields findByThriftId(int fieldId) {
41966
        switch(fieldId) {
41967
          case 1: // ITEM_ID
41968
            return ITEM_ID;
41969
          case 2: // NUMBER_OF_DAYS
41970
            return NUMBER_OF_DAYS;
41971
          default:
41972
            return null;
41973
        }
41974
      }
41975
 
41976
      /**
41977
       * Find the _Fields constant that matches fieldId, throwing an exception
41978
       * if it is not found.
41979
       */
41980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41981
        _Fields fields = findByThriftId(fieldId);
41982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41983
        return fields;
41984
      }
41985
 
41986
      /**
41987
       * Find the _Fields constant that matches name, or null if its not found.
41988
       */
41989
      public static _Fields findByName(String name) {
41990
        return byName.get(name);
41991
      }
41992
 
41993
      private final short _thriftId;
41994
      private final String _fieldName;
41995
 
41996
      _Fields(short thriftId, String fieldName) {
41997
        _thriftId = thriftId;
41998
        _fieldName = fieldName;
41999
      }
42000
 
42001
      public short getThriftFieldId() {
42002
        return _thriftId;
42003
      }
42004
 
42005
      public String getFieldName() {
42006
        return _fieldName;
42007
      }
42008
    }
42009
 
42010
    // isset id assignments
42011
    private static final int __ITEMID_ISSET_ID = 0;
42012
    private static final int __NUMBEROFDAYS_ISSET_ID = 1;
42013
    private BitSet __isset_bit_vector = new BitSet(2);
42014
 
42015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42016
    static {
42017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42018
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42020
      tmpMap.put(_Fields.NUMBER_OF_DAYS, new org.apache.thrift.meta_data.FieldMetaData("numberOfDays", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_args.class, metaDataMap);
42024
    }
42025
 
42026
    public getLastNdaySaleForItem_args() {
42027
    }
42028
 
42029
    public getLastNdaySaleForItem_args(
42030
      long itemId,
42031
      long numberOfDays)
42032
    {
42033
      this();
42034
      this.itemId = itemId;
42035
      setItemIdIsSet(true);
42036
      this.numberOfDays = numberOfDays;
42037
      setNumberOfDaysIsSet(true);
42038
    }
42039
 
42040
    /**
42041
     * Performs a deep copy on <i>other</i>.
42042
     */
42043
    public getLastNdaySaleForItem_args(getLastNdaySaleForItem_args other) {
42044
      __isset_bit_vector.clear();
42045
      __isset_bit_vector.or(other.__isset_bit_vector);
42046
      this.itemId = other.itemId;
42047
      this.numberOfDays = other.numberOfDays;
42048
    }
42049
 
42050
    public getLastNdaySaleForItem_args deepCopy() {
42051
      return new getLastNdaySaleForItem_args(this);
42052
    }
42053
 
42054
    @Override
42055
    public void clear() {
42056
      setItemIdIsSet(false);
42057
      this.itemId = 0;
42058
      setNumberOfDaysIsSet(false);
42059
      this.numberOfDays = 0;
42060
    }
42061
 
42062
    public long getItemId() {
42063
      return this.itemId;
42064
    }
42065
 
42066
    public void setItemId(long itemId) {
42067
      this.itemId = itemId;
42068
      setItemIdIsSet(true);
42069
    }
42070
 
42071
    public void unsetItemId() {
42072
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
42073
    }
42074
 
42075
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
42076
    public boolean isSetItemId() {
42077
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
42078
    }
42079
 
42080
    public void setItemIdIsSet(boolean value) {
42081
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42082
    }
42083
 
42084
    public long getNumberOfDays() {
42085
      return this.numberOfDays;
42086
    }
42087
 
42088
    public void setNumberOfDays(long numberOfDays) {
42089
      this.numberOfDays = numberOfDays;
42090
      setNumberOfDaysIsSet(true);
42091
    }
42092
 
42093
    public void unsetNumberOfDays() {
42094
      __isset_bit_vector.clear(__NUMBEROFDAYS_ISSET_ID);
42095
    }
42096
 
42097
    /** Returns true if field numberOfDays is set (has been assigned a value) and false otherwise */
42098
    public boolean isSetNumberOfDays() {
42099
      return __isset_bit_vector.get(__NUMBEROFDAYS_ISSET_ID);
42100
    }
42101
 
42102
    public void setNumberOfDaysIsSet(boolean value) {
42103
      __isset_bit_vector.set(__NUMBEROFDAYS_ISSET_ID, value);
42104
    }
42105
 
42106
    public void setFieldValue(_Fields field, Object value) {
42107
      switch (field) {
42108
      case ITEM_ID:
42109
        if (value == null) {
42110
          unsetItemId();
42111
        } else {
42112
          setItemId((Long)value);
42113
        }
42114
        break;
42115
 
42116
      case NUMBER_OF_DAYS:
42117
        if (value == null) {
42118
          unsetNumberOfDays();
42119
        } else {
42120
          setNumberOfDays((Long)value);
42121
        }
42122
        break;
42123
 
42124
      }
42125
    }
42126
 
42127
    public Object getFieldValue(_Fields field) {
42128
      switch (field) {
42129
      case ITEM_ID:
42130
        return Long.valueOf(getItemId());
42131
 
42132
      case NUMBER_OF_DAYS:
42133
        return Long.valueOf(getNumberOfDays());
42134
 
42135
      }
42136
      throw new IllegalStateException();
42137
    }
42138
 
42139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42140
    public boolean isSet(_Fields field) {
42141
      if (field == null) {
42142
        throw new IllegalArgumentException();
42143
      }
42144
 
42145
      switch (field) {
42146
      case ITEM_ID:
42147
        return isSetItemId();
42148
      case NUMBER_OF_DAYS:
42149
        return isSetNumberOfDays();
42150
      }
42151
      throw new IllegalStateException();
42152
    }
42153
 
42154
    @Override
42155
    public boolean equals(Object that) {
42156
      if (that == null)
42157
        return false;
42158
      if (that instanceof getLastNdaySaleForItem_args)
42159
        return this.equals((getLastNdaySaleForItem_args)that);
42160
      return false;
42161
    }
42162
 
42163
    public boolean equals(getLastNdaySaleForItem_args that) {
42164
      if (that == null)
42165
        return false;
42166
 
42167
      boolean this_present_itemId = true;
42168
      boolean that_present_itemId = true;
42169
      if (this_present_itemId || that_present_itemId) {
42170
        if (!(this_present_itemId && that_present_itemId))
42171
          return false;
42172
        if (this.itemId != that.itemId)
42173
          return false;
42174
      }
42175
 
42176
      boolean this_present_numberOfDays = true;
42177
      boolean that_present_numberOfDays = true;
42178
      if (this_present_numberOfDays || that_present_numberOfDays) {
42179
        if (!(this_present_numberOfDays && that_present_numberOfDays))
42180
          return false;
42181
        if (this.numberOfDays != that.numberOfDays)
42182
          return false;
42183
      }
42184
 
42185
      return true;
42186
    }
42187
 
42188
    @Override
42189
    public int hashCode() {
42190
      return 0;
42191
    }
42192
 
42193
    public int compareTo(getLastNdaySaleForItem_args other) {
42194
      if (!getClass().equals(other.getClass())) {
42195
        return getClass().getName().compareTo(other.getClass().getName());
42196
      }
42197
 
42198
      int lastComparison = 0;
42199
      getLastNdaySaleForItem_args typedOther = (getLastNdaySaleForItem_args)other;
42200
 
42201
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
42202
      if (lastComparison != 0) {
42203
        return lastComparison;
42204
      }
42205
      if (isSetItemId()) {
42206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42207
        if (lastComparison != 0) {
42208
          return lastComparison;
42209
        }
42210
      }
42211
      lastComparison = Boolean.valueOf(isSetNumberOfDays()).compareTo(typedOther.isSetNumberOfDays());
42212
      if (lastComparison != 0) {
42213
        return lastComparison;
42214
      }
42215
      if (isSetNumberOfDays()) {
42216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDays, typedOther.numberOfDays);
42217
        if (lastComparison != 0) {
42218
          return lastComparison;
42219
        }
42220
      }
42221
      return 0;
42222
    }
42223
 
42224
    public _Fields fieldForId(int fieldId) {
42225
      return _Fields.findByThriftId(fieldId);
42226
    }
42227
 
42228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42229
      org.apache.thrift.protocol.TField field;
42230
      iprot.readStructBegin();
42231
      while (true)
42232
      {
42233
        field = iprot.readFieldBegin();
42234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42235
          break;
42236
        }
42237
        switch (field.id) {
42238
          case 1: // ITEM_ID
42239
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42240
              this.itemId = iprot.readI64();
42241
              setItemIdIsSet(true);
42242
            } else { 
42243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42244
            }
42245
            break;
42246
          case 2: // NUMBER_OF_DAYS
42247
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42248
              this.numberOfDays = iprot.readI64();
42249
              setNumberOfDaysIsSet(true);
42250
            } else { 
42251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42252
            }
42253
            break;
42254
          default:
42255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42256
        }
42257
        iprot.readFieldEnd();
42258
      }
42259
      iprot.readStructEnd();
42260
      validate();
42261
    }
42262
 
42263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42264
      validate();
42265
 
42266
      oprot.writeStructBegin(STRUCT_DESC);
42267
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42268
      oprot.writeI64(this.itemId);
42269
      oprot.writeFieldEnd();
42270
      oprot.writeFieldBegin(NUMBER_OF_DAYS_FIELD_DESC);
42271
      oprot.writeI64(this.numberOfDays);
42272
      oprot.writeFieldEnd();
42273
      oprot.writeFieldStop();
42274
      oprot.writeStructEnd();
42275
    }
42276
 
42277
    @Override
42278
    public String toString() {
42279
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_args(");
42280
      boolean first = true;
42281
 
42282
      sb.append("itemId:");
42283
      sb.append(this.itemId);
42284
      first = false;
42285
      if (!first) sb.append(", ");
42286
      sb.append("numberOfDays:");
42287
      sb.append(this.numberOfDays);
42288
      first = false;
42289
      sb.append(")");
42290
      return sb.toString();
42291
    }
42292
 
42293
    public void validate() throws org.apache.thrift.TException {
42294
      // check for required fields
42295
    }
42296
 
42297
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42298
      try {
42299
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42300
      } catch (org.apache.thrift.TException te) {
42301
        throw new java.io.IOException(te);
42302
      }
42303
    }
42304
 
42305
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42306
      try {
42307
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42308
        __isset_bit_vector = new BitSet(1);
42309
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42310
      } catch (org.apache.thrift.TException te) {
42311
        throw new java.io.IOException(te);
42312
      }
42313
    }
42314
 
42315
  }
42316
 
42317
  public static class getLastNdaySaleForItem_result implements org.apache.thrift.TBase<getLastNdaySaleForItem_result, getLastNdaySaleForItem_result._Fields>, java.io.Serializable, Cloneable   {
42318
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_result");
42319
 
42320
    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);
42321
 
42322
    private String success; // required
42323
 
42324
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42325
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42326
      SUCCESS((short)0, "success");
42327
 
42328
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42329
 
42330
      static {
42331
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42332
          byName.put(field.getFieldName(), field);
42333
        }
42334
      }
42335
 
42336
      /**
42337
       * Find the _Fields constant that matches fieldId, or null if its not found.
42338
       */
42339
      public static _Fields findByThriftId(int fieldId) {
42340
        switch(fieldId) {
42341
          case 0: // SUCCESS
42342
            return SUCCESS;
42343
          default:
42344
            return null;
42345
        }
42346
      }
42347
 
42348
      /**
42349
       * Find the _Fields constant that matches fieldId, throwing an exception
42350
       * if it is not found.
42351
       */
42352
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42353
        _Fields fields = findByThriftId(fieldId);
42354
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42355
        return fields;
42356
      }
42357
 
42358
      /**
42359
       * Find the _Fields constant that matches name, or null if its not found.
42360
       */
42361
      public static _Fields findByName(String name) {
42362
        return byName.get(name);
42363
      }
42364
 
42365
      private final short _thriftId;
42366
      private final String _fieldName;
42367
 
42368
      _Fields(short thriftId, String fieldName) {
42369
        _thriftId = thriftId;
42370
        _fieldName = fieldName;
42371
      }
42372
 
42373
      public short getThriftFieldId() {
42374
        return _thriftId;
42375
      }
42376
 
42377
      public String getFieldName() {
42378
        return _fieldName;
42379
      }
42380
    }
42381
 
42382
    // isset id assignments
42383
 
42384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42385
    static {
42386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42387
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
42389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_result.class, metaDataMap);
42391
    }
42392
 
42393
    public getLastNdaySaleForItem_result() {
42394
    }
42395
 
42396
    public getLastNdaySaleForItem_result(
42397
      String success)
42398
    {
42399
      this();
42400
      this.success = success;
42401
    }
42402
 
42403
    /**
42404
     * Performs a deep copy on <i>other</i>.
42405
     */
42406
    public getLastNdaySaleForItem_result(getLastNdaySaleForItem_result other) {
42407
      if (other.isSetSuccess()) {
42408
        this.success = other.success;
42409
      }
42410
    }
42411
 
42412
    public getLastNdaySaleForItem_result deepCopy() {
42413
      return new getLastNdaySaleForItem_result(this);
42414
    }
42415
 
42416
    @Override
42417
    public void clear() {
42418
      this.success = null;
42419
    }
42420
 
42421
    public String getSuccess() {
42422
      return this.success;
42423
    }
42424
 
42425
    public void setSuccess(String success) {
42426
      this.success = success;
42427
    }
42428
 
42429
    public void unsetSuccess() {
42430
      this.success = null;
42431
    }
42432
 
42433
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42434
    public boolean isSetSuccess() {
42435
      return this.success != null;
42436
    }
42437
 
42438
    public void setSuccessIsSet(boolean value) {
42439
      if (!value) {
42440
        this.success = null;
42441
      }
42442
    }
42443
 
42444
    public void setFieldValue(_Fields field, Object value) {
42445
      switch (field) {
42446
      case SUCCESS:
42447
        if (value == null) {
42448
          unsetSuccess();
42449
        } else {
42450
          setSuccess((String)value);
42451
        }
42452
        break;
42453
 
42454
      }
42455
    }
42456
 
42457
    public Object getFieldValue(_Fields field) {
42458
      switch (field) {
42459
      case SUCCESS:
42460
        return getSuccess();
42461
 
42462
      }
42463
      throw new IllegalStateException();
42464
    }
42465
 
42466
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42467
    public boolean isSet(_Fields field) {
42468
      if (field == null) {
42469
        throw new IllegalArgumentException();
42470
      }
42471
 
42472
      switch (field) {
42473
      case SUCCESS:
42474
        return isSetSuccess();
42475
      }
42476
      throw new IllegalStateException();
42477
    }
42478
 
42479
    @Override
42480
    public boolean equals(Object that) {
42481
      if (that == null)
42482
        return false;
42483
      if (that instanceof getLastNdaySaleForItem_result)
42484
        return this.equals((getLastNdaySaleForItem_result)that);
42485
      return false;
42486
    }
42487
 
42488
    public boolean equals(getLastNdaySaleForItem_result that) {
42489
      if (that == null)
42490
        return false;
42491
 
42492
      boolean this_present_success = true && this.isSetSuccess();
42493
      boolean that_present_success = true && that.isSetSuccess();
42494
      if (this_present_success || that_present_success) {
42495
        if (!(this_present_success && that_present_success))
42496
          return false;
42497
        if (!this.success.equals(that.success))
42498
          return false;
42499
      }
42500
 
42501
      return true;
42502
    }
42503
 
42504
    @Override
42505
    public int hashCode() {
42506
      return 0;
42507
    }
42508
 
42509
    public int compareTo(getLastNdaySaleForItem_result other) {
42510
      if (!getClass().equals(other.getClass())) {
42511
        return getClass().getName().compareTo(other.getClass().getName());
42512
      }
42513
 
42514
      int lastComparison = 0;
42515
      getLastNdaySaleForItem_result typedOther = (getLastNdaySaleForItem_result)other;
42516
 
42517
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42518
      if (lastComparison != 0) {
42519
        return lastComparison;
42520
      }
42521
      if (isSetSuccess()) {
42522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42523
        if (lastComparison != 0) {
42524
          return lastComparison;
42525
        }
42526
      }
42527
      return 0;
42528
    }
42529
 
42530
    public _Fields fieldForId(int fieldId) {
42531
      return _Fields.findByThriftId(fieldId);
42532
    }
42533
 
42534
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42535
      org.apache.thrift.protocol.TField field;
42536
      iprot.readStructBegin();
42537
      while (true)
42538
      {
42539
        field = iprot.readFieldBegin();
42540
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42541
          break;
42542
        }
42543
        switch (field.id) {
42544
          case 0: // SUCCESS
42545
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
42546
              this.success = iprot.readString();
42547
            } else { 
42548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42549
            }
42550
            break;
42551
          default:
42552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42553
        }
42554
        iprot.readFieldEnd();
42555
      }
42556
      iprot.readStructEnd();
42557
      validate();
42558
    }
42559
 
42560
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42561
      oprot.writeStructBegin(STRUCT_DESC);
42562
 
42563
      if (this.isSetSuccess()) {
42564
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42565
        oprot.writeString(this.success);
42566
        oprot.writeFieldEnd();
42567
      }
42568
      oprot.writeFieldStop();
42569
      oprot.writeStructEnd();
42570
    }
42571
 
42572
    @Override
42573
    public String toString() {
42574
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_result(");
42575
      boolean first = true;
42576
 
42577
      sb.append("success:");
42578
      if (this.success == null) {
42579
        sb.append("null");
42580
      } else {
42581
        sb.append(this.success);
42582
      }
42583
      first = false;
42584
      sb.append(")");
42585
      return sb.toString();
42586
    }
42587
 
42588
    public void validate() throws org.apache.thrift.TException {
42589
      // check for required fields
42590
    }
42591
 
42592
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42593
      try {
42594
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42595
      } catch (org.apache.thrift.TException te) {
42596
        throw new java.io.IOException(te);
42597
      }
42598
    }
42599
 
42600
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42601
      try {
42602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42603
      } catch (org.apache.thrift.TException te) {
42604
        throw new java.io.IOException(te);
42605
      }
42606
    }
42607
 
42608
  }
42609
 
8182 amar.kumar 42610
  public static class addUpdateHoldInventory_args implements org.apache.thrift.TBase<addUpdateHoldInventory_args, addUpdateHoldInventory_args._Fields>, java.io.Serializable, Cloneable   {
42611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_args");
42612
 
42613
    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);
42614
    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);
42615
    private static final org.apache.thrift.protocol.TField HOLD_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdQuantity", org.apache.thrift.protocol.TType.I64, (short)3);
42616
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)4);
42617
 
42618
    private long itemId; // required
42619
    private long warehouseId; // required
42620
    private long holdQuantity; // required
42621
    private long source; // required
42622
 
42623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42625
      ITEM_ID((short)1, "itemId"),
42626
      WAREHOUSE_ID((short)2, "warehouseId"),
42627
      HOLD_QUANTITY((short)3, "holdQuantity"),
42628
      SOURCE((short)4, "source");
42629
 
42630
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42631
 
42632
      static {
42633
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42634
          byName.put(field.getFieldName(), field);
42635
        }
42636
      }
42637
 
42638
      /**
42639
       * Find the _Fields constant that matches fieldId, or null if its not found.
42640
       */
42641
      public static _Fields findByThriftId(int fieldId) {
42642
        switch(fieldId) {
42643
          case 1: // ITEM_ID
42644
            return ITEM_ID;
42645
          case 2: // WAREHOUSE_ID
42646
            return WAREHOUSE_ID;
42647
          case 3: // HOLD_QUANTITY
42648
            return HOLD_QUANTITY;
42649
          case 4: // SOURCE
42650
            return SOURCE;
42651
          default:
42652
            return null;
42653
        }
42654
      }
42655
 
42656
      /**
42657
       * Find the _Fields constant that matches fieldId, throwing an exception
42658
       * if it is not found.
42659
       */
42660
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42661
        _Fields fields = findByThriftId(fieldId);
42662
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42663
        return fields;
42664
      }
42665
 
42666
      /**
42667
       * Find the _Fields constant that matches name, or null if its not found.
42668
       */
42669
      public static _Fields findByName(String name) {
42670
        return byName.get(name);
42671
      }
42672
 
42673
      private final short _thriftId;
42674
      private final String _fieldName;
42675
 
42676
      _Fields(short thriftId, String fieldName) {
42677
        _thriftId = thriftId;
42678
        _fieldName = fieldName;
42679
      }
42680
 
42681
      public short getThriftFieldId() {
42682
        return _thriftId;
42683
      }
42684
 
42685
      public String getFieldName() {
42686
        return _fieldName;
42687
      }
42688
    }
42689
 
42690
    // isset id assignments
42691
    private static final int __ITEMID_ISSET_ID = 0;
42692
    private static final int __WAREHOUSEID_ISSET_ID = 1;
42693
    private static final int __HOLDQUANTITY_ISSET_ID = 2;
42694
    private static final int __SOURCE_ISSET_ID = 3;
42695
    private BitSet __isset_bit_vector = new BitSet(4);
42696
 
42697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42698
    static {
42699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42700
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42702
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42703
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42704
      tmpMap.put(_Fields.HOLD_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("holdQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42706
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_args.class, metaDataMap);
42710
    }
42711
 
42712
    public addUpdateHoldInventory_args() {
42713
    }
42714
 
42715
    public addUpdateHoldInventory_args(
42716
      long itemId,
42717
      long warehouseId,
42718
      long holdQuantity,
42719
      long source)
42720
    {
42721
      this();
42722
      this.itemId = itemId;
42723
      setItemIdIsSet(true);
42724
      this.warehouseId = warehouseId;
42725
      setWarehouseIdIsSet(true);
42726
      this.holdQuantity = holdQuantity;
42727
      setHoldQuantityIsSet(true);
42728
      this.source = source;
42729
      setSourceIsSet(true);
42730
    }
42731
 
42732
    /**
42733
     * Performs a deep copy on <i>other</i>.
42734
     */
42735
    public addUpdateHoldInventory_args(addUpdateHoldInventory_args other) {
42736
      __isset_bit_vector.clear();
42737
      __isset_bit_vector.or(other.__isset_bit_vector);
42738
      this.itemId = other.itemId;
42739
      this.warehouseId = other.warehouseId;
42740
      this.holdQuantity = other.holdQuantity;
42741
      this.source = other.source;
42742
    }
42743
 
42744
    public addUpdateHoldInventory_args deepCopy() {
42745
      return new addUpdateHoldInventory_args(this);
42746
    }
42747
 
42748
    @Override
42749
    public void clear() {
42750
      setItemIdIsSet(false);
42751
      this.itemId = 0;
42752
      setWarehouseIdIsSet(false);
42753
      this.warehouseId = 0;
42754
      setHoldQuantityIsSet(false);
42755
      this.holdQuantity = 0;
42756
      setSourceIsSet(false);
42757
      this.source = 0;
42758
    }
42759
 
42760
    public long getItemId() {
42761
      return this.itemId;
42762
    }
42763
 
42764
    public void setItemId(long itemId) {
42765
      this.itemId = itemId;
42766
      setItemIdIsSet(true);
42767
    }
42768
 
42769
    public void unsetItemId() {
42770
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
42771
    }
42772
 
42773
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
42774
    public boolean isSetItemId() {
42775
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
42776
    }
42777
 
42778
    public void setItemIdIsSet(boolean value) {
42779
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42780
    }
42781
 
42782
    public long getWarehouseId() {
42783
      return this.warehouseId;
42784
    }
42785
 
42786
    public void setWarehouseId(long warehouseId) {
42787
      this.warehouseId = warehouseId;
42788
      setWarehouseIdIsSet(true);
42789
    }
42790
 
42791
    public void unsetWarehouseId() {
42792
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
42793
    }
42794
 
42795
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
42796
    public boolean isSetWarehouseId() {
42797
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
42798
    }
42799
 
42800
    public void setWarehouseIdIsSet(boolean value) {
42801
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
42802
    }
42803
 
42804
    public long getHoldQuantity() {
42805
      return this.holdQuantity;
42806
    }
42807
 
42808
    public void setHoldQuantity(long holdQuantity) {
42809
      this.holdQuantity = holdQuantity;
42810
      setHoldQuantityIsSet(true);
42811
    }
42812
 
42813
    public void unsetHoldQuantity() {
42814
      __isset_bit_vector.clear(__HOLDQUANTITY_ISSET_ID);
42815
    }
42816
 
42817
    /** Returns true if field holdQuantity is set (has been assigned a value) and false otherwise */
42818
    public boolean isSetHoldQuantity() {
42819
      return __isset_bit_vector.get(__HOLDQUANTITY_ISSET_ID);
42820
    }
42821
 
42822
    public void setHoldQuantityIsSet(boolean value) {
42823
      __isset_bit_vector.set(__HOLDQUANTITY_ISSET_ID, value);
42824
    }
42825
 
42826
    public long getSource() {
42827
      return this.source;
42828
    }
42829
 
42830
    public void setSource(long source) {
42831
      this.source = source;
42832
      setSourceIsSet(true);
42833
    }
42834
 
42835
    public void unsetSource() {
42836
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
42837
    }
42838
 
42839
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
42840
    public boolean isSetSource() {
42841
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
42842
    }
42843
 
42844
    public void setSourceIsSet(boolean value) {
42845
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
42846
    }
42847
 
42848
    public void setFieldValue(_Fields field, Object value) {
42849
      switch (field) {
42850
      case ITEM_ID:
42851
        if (value == null) {
42852
          unsetItemId();
42853
        } else {
42854
          setItemId((Long)value);
42855
        }
42856
        break;
42857
 
42858
      case WAREHOUSE_ID:
42859
        if (value == null) {
42860
          unsetWarehouseId();
42861
        } else {
42862
          setWarehouseId((Long)value);
42863
        }
42864
        break;
42865
 
42866
      case HOLD_QUANTITY:
42867
        if (value == null) {
42868
          unsetHoldQuantity();
42869
        } else {
42870
          setHoldQuantity((Long)value);
42871
        }
42872
        break;
42873
 
42874
      case SOURCE:
42875
        if (value == null) {
42876
          unsetSource();
42877
        } else {
42878
          setSource((Long)value);
42879
        }
42880
        break;
42881
 
42882
      }
42883
    }
42884
 
42885
    public Object getFieldValue(_Fields field) {
42886
      switch (field) {
42887
      case ITEM_ID:
42888
        return Long.valueOf(getItemId());
42889
 
42890
      case WAREHOUSE_ID:
42891
        return Long.valueOf(getWarehouseId());
42892
 
42893
      case HOLD_QUANTITY:
42894
        return Long.valueOf(getHoldQuantity());
42895
 
42896
      case SOURCE:
42897
        return Long.valueOf(getSource());
42898
 
42899
      }
42900
      throw new IllegalStateException();
42901
    }
42902
 
42903
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42904
    public boolean isSet(_Fields field) {
42905
      if (field == null) {
42906
        throw new IllegalArgumentException();
42907
      }
42908
 
42909
      switch (field) {
42910
      case ITEM_ID:
42911
        return isSetItemId();
42912
      case WAREHOUSE_ID:
42913
        return isSetWarehouseId();
42914
      case HOLD_QUANTITY:
42915
        return isSetHoldQuantity();
42916
      case SOURCE:
42917
        return isSetSource();
42918
      }
42919
      throw new IllegalStateException();
42920
    }
42921
 
42922
    @Override
42923
    public boolean equals(Object that) {
42924
      if (that == null)
42925
        return false;
42926
      if (that instanceof addUpdateHoldInventory_args)
42927
        return this.equals((addUpdateHoldInventory_args)that);
42928
      return false;
42929
    }
42930
 
42931
    public boolean equals(addUpdateHoldInventory_args that) {
42932
      if (that == null)
42933
        return false;
42934
 
42935
      boolean this_present_itemId = true;
42936
      boolean that_present_itemId = true;
42937
      if (this_present_itemId || that_present_itemId) {
42938
        if (!(this_present_itemId && that_present_itemId))
42939
          return false;
42940
        if (this.itemId != that.itemId)
42941
          return false;
42942
      }
42943
 
42944
      boolean this_present_warehouseId = true;
42945
      boolean that_present_warehouseId = true;
42946
      if (this_present_warehouseId || that_present_warehouseId) {
42947
        if (!(this_present_warehouseId && that_present_warehouseId))
42948
          return false;
42949
        if (this.warehouseId != that.warehouseId)
42950
          return false;
42951
      }
42952
 
42953
      boolean this_present_holdQuantity = true;
42954
      boolean that_present_holdQuantity = true;
42955
      if (this_present_holdQuantity || that_present_holdQuantity) {
42956
        if (!(this_present_holdQuantity && that_present_holdQuantity))
42957
          return false;
42958
        if (this.holdQuantity != that.holdQuantity)
42959
          return false;
42960
      }
42961
 
42962
      boolean this_present_source = true;
42963
      boolean that_present_source = true;
42964
      if (this_present_source || that_present_source) {
42965
        if (!(this_present_source && that_present_source))
42966
          return false;
42967
        if (this.source != that.source)
42968
          return false;
42969
      }
42970
 
42971
      return true;
42972
    }
42973
 
42974
    @Override
42975
    public int hashCode() {
42976
      return 0;
42977
    }
42978
 
42979
    public int compareTo(addUpdateHoldInventory_args other) {
42980
      if (!getClass().equals(other.getClass())) {
42981
        return getClass().getName().compareTo(other.getClass().getName());
42982
      }
42983
 
42984
      int lastComparison = 0;
42985
      addUpdateHoldInventory_args typedOther = (addUpdateHoldInventory_args)other;
42986
 
42987
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
42988
      if (lastComparison != 0) {
42989
        return lastComparison;
42990
      }
42991
      if (isSetItemId()) {
42992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42993
        if (lastComparison != 0) {
42994
          return lastComparison;
42995
        }
42996
      }
42997
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
42998
      if (lastComparison != 0) {
42999
        return lastComparison;
43000
      }
43001
      if (isSetWarehouseId()) {
43002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
43003
        if (lastComparison != 0) {
43004
          return lastComparison;
43005
        }
43006
      }
43007
      lastComparison = Boolean.valueOf(isSetHoldQuantity()).compareTo(typedOther.isSetHoldQuantity());
43008
      if (lastComparison != 0) {
43009
        return lastComparison;
43010
      }
43011
      if (isSetHoldQuantity()) {
43012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdQuantity, typedOther.holdQuantity);
43013
        if (lastComparison != 0) {
43014
          return lastComparison;
43015
        }
43016
      }
43017
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
43018
      if (lastComparison != 0) {
43019
        return lastComparison;
43020
      }
43021
      if (isSetSource()) {
43022
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
43023
        if (lastComparison != 0) {
43024
          return lastComparison;
43025
        }
43026
      }
43027
      return 0;
43028
    }
43029
 
43030
    public _Fields fieldForId(int fieldId) {
43031
      return _Fields.findByThriftId(fieldId);
43032
    }
43033
 
43034
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43035
      org.apache.thrift.protocol.TField field;
43036
      iprot.readStructBegin();
43037
      while (true)
43038
      {
43039
        field = iprot.readFieldBegin();
43040
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43041
          break;
43042
        }
43043
        switch (field.id) {
43044
          case 1: // ITEM_ID
43045
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43046
              this.itemId = iprot.readI64();
43047
              setItemIdIsSet(true);
43048
            } else { 
43049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43050
            }
43051
            break;
43052
          case 2: // WAREHOUSE_ID
43053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43054
              this.warehouseId = iprot.readI64();
43055
              setWarehouseIdIsSet(true);
43056
            } else { 
43057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43058
            }
43059
            break;
43060
          case 3: // HOLD_QUANTITY
43061
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43062
              this.holdQuantity = iprot.readI64();
43063
              setHoldQuantityIsSet(true);
43064
            } else { 
43065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43066
            }
43067
            break;
43068
          case 4: // SOURCE
43069
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43070
              this.source = iprot.readI64();
43071
              setSourceIsSet(true);
43072
            } else { 
43073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43074
            }
43075
            break;
43076
          default:
43077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43078
        }
43079
        iprot.readFieldEnd();
43080
      }
43081
      iprot.readStructEnd();
43082
      validate();
43083
    }
43084
 
43085
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43086
      validate();
43087
 
43088
      oprot.writeStructBegin(STRUCT_DESC);
43089
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
43090
      oprot.writeI64(this.itemId);
43091
      oprot.writeFieldEnd();
43092
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
43093
      oprot.writeI64(this.warehouseId);
43094
      oprot.writeFieldEnd();
43095
      oprot.writeFieldBegin(HOLD_QUANTITY_FIELD_DESC);
43096
      oprot.writeI64(this.holdQuantity);
43097
      oprot.writeFieldEnd();
43098
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
43099
      oprot.writeI64(this.source);
43100
      oprot.writeFieldEnd();
43101
      oprot.writeFieldStop();
43102
      oprot.writeStructEnd();
43103
    }
43104
 
43105
    @Override
43106
    public String toString() {
43107
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_args(");
43108
      boolean first = true;
43109
 
43110
      sb.append("itemId:");
43111
      sb.append(this.itemId);
43112
      first = false;
43113
      if (!first) sb.append(", ");
43114
      sb.append("warehouseId:");
43115
      sb.append(this.warehouseId);
43116
      first = false;
43117
      if (!first) sb.append(", ");
43118
      sb.append("holdQuantity:");
43119
      sb.append(this.holdQuantity);
43120
      first = false;
43121
      if (!first) sb.append(", ");
43122
      sb.append("source:");
43123
      sb.append(this.source);
43124
      first = false;
43125
      sb.append(")");
43126
      return sb.toString();
43127
    }
43128
 
43129
    public void validate() throws org.apache.thrift.TException {
43130
      // check for required fields
43131
    }
43132
 
43133
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43134
      try {
43135
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43136
      } catch (org.apache.thrift.TException te) {
43137
        throw new java.io.IOException(te);
43138
      }
43139
    }
43140
 
43141
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43142
      try {
43143
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43144
        __isset_bit_vector = new BitSet(1);
43145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43146
      } catch (org.apache.thrift.TException te) {
43147
        throw new java.io.IOException(te);
43148
      }
43149
    }
43150
 
43151
  }
43152
 
43153
  public static class addUpdateHoldInventory_result implements org.apache.thrift.TBase<addUpdateHoldInventory_result, addUpdateHoldInventory_result._Fields>, java.io.Serializable, Cloneable   {
43154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_result");
43155
 
43156
 
43157
 
43158
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43159
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43160
;
43161
 
43162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43163
 
43164
      static {
43165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43166
          byName.put(field.getFieldName(), field);
43167
        }
43168
      }
43169
 
43170
      /**
43171
       * Find the _Fields constant that matches fieldId, or null if its not found.
43172
       */
43173
      public static _Fields findByThriftId(int fieldId) {
43174
        switch(fieldId) {
43175
          default:
43176
            return null;
43177
        }
43178
      }
43179
 
43180
      /**
43181
       * Find the _Fields constant that matches fieldId, throwing an exception
43182
       * if it is not found.
43183
       */
43184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43185
        _Fields fields = findByThriftId(fieldId);
43186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43187
        return fields;
43188
      }
43189
 
43190
      /**
43191
       * Find the _Fields constant that matches name, or null if its not found.
43192
       */
43193
      public static _Fields findByName(String name) {
43194
        return byName.get(name);
43195
      }
43196
 
43197
      private final short _thriftId;
43198
      private final String _fieldName;
43199
 
43200
      _Fields(short thriftId, String fieldName) {
43201
        _thriftId = thriftId;
43202
        _fieldName = fieldName;
43203
      }
43204
 
43205
      public short getThriftFieldId() {
43206
        return _thriftId;
43207
      }
43208
 
43209
      public String getFieldName() {
43210
        return _fieldName;
43211
      }
43212
    }
43213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43214
    static {
43215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_result.class, metaDataMap);
43218
    }
43219
 
43220
    public addUpdateHoldInventory_result() {
43221
    }
43222
 
43223
    /**
43224
     * Performs a deep copy on <i>other</i>.
43225
     */
43226
    public addUpdateHoldInventory_result(addUpdateHoldInventory_result other) {
43227
    }
43228
 
43229
    public addUpdateHoldInventory_result deepCopy() {
43230
      return new addUpdateHoldInventory_result(this);
43231
    }
43232
 
43233
    @Override
43234
    public void clear() {
43235
    }
43236
 
43237
    public void setFieldValue(_Fields field, Object value) {
43238
      switch (field) {
43239
      }
43240
    }
43241
 
43242
    public Object getFieldValue(_Fields field) {
43243
      switch (field) {
43244
      }
43245
      throw new IllegalStateException();
43246
    }
43247
 
43248
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43249
    public boolean isSet(_Fields field) {
43250
      if (field == null) {
43251
        throw new IllegalArgumentException();
43252
      }
43253
 
43254
      switch (field) {
43255
      }
43256
      throw new IllegalStateException();
43257
    }
43258
 
43259
    @Override
43260
    public boolean equals(Object that) {
43261
      if (that == null)
43262
        return false;
43263
      if (that instanceof addUpdateHoldInventory_result)
43264
        return this.equals((addUpdateHoldInventory_result)that);
43265
      return false;
43266
    }
43267
 
43268
    public boolean equals(addUpdateHoldInventory_result that) {
43269
      if (that == null)
43270
        return false;
43271
 
43272
      return true;
43273
    }
43274
 
43275
    @Override
43276
    public int hashCode() {
43277
      return 0;
43278
    }
43279
 
43280
    public int compareTo(addUpdateHoldInventory_result other) {
43281
      if (!getClass().equals(other.getClass())) {
43282
        return getClass().getName().compareTo(other.getClass().getName());
43283
      }
43284
 
43285
      int lastComparison = 0;
43286
      addUpdateHoldInventory_result typedOther = (addUpdateHoldInventory_result)other;
43287
 
43288
      return 0;
43289
    }
43290
 
43291
    public _Fields fieldForId(int fieldId) {
43292
      return _Fields.findByThriftId(fieldId);
43293
    }
43294
 
43295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43296
      org.apache.thrift.protocol.TField field;
43297
      iprot.readStructBegin();
43298
      while (true)
43299
      {
43300
        field = iprot.readFieldBegin();
43301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43302
          break;
43303
        }
43304
        switch (field.id) {
43305
          default:
43306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43307
        }
43308
        iprot.readFieldEnd();
43309
      }
43310
      iprot.readStructEnd();
43311
      validate();
43312
    }
43313
 
43314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43315
      oprot.writeStructBegin(STRUCT_DESC);
43316
 
43317
      oprot.writeFieldStop();
43318
      oprot.writeStructEnd();
43319
    }
43320
 
43321
    @Override
43322
    public String toString() {
43323
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_result(");
43324
      boolean first = true;
43325
 
43326
      sb.append(")");
43327
      return sb.toString();
43328
    }
43329
 
43330
    public void validate() throws org.apache.thrift.TException {
43331
      // check for required fields
43332
    }
43333
 
43334
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43335
      try {
43336
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43337
      } catch (org.apache.thrift.TException te) {
43338
        throw new java.io.IOException(te);
43339
      }
43340
    }
43341
 
43342
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43343
      try {
43344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43345
      } catch (org.apache.thrift.TException te) {
43346
        throw new java.io.IOException(te);
43347
      }
43348
    }
43349
 
43350
  }
43351
 
5945 mandeep.dh 43352
}