Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5945 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.inventory;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class InventoryService {
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
27
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException;
28
 
29
    /**
30
     * add a new vendor
31
     * 
32
     * @param vendor
33
     */
34
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException;
35
 
36
    /**
37
     * Stores the incremental warehouse updates of items.
38
     * 
39
     * @param warehouse_id
40
     * @param timestamp
41
     * @param availability
42
     */
43
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
44
 
45
    /**
46
     * Stores the final inventory stocks of items.
47
     * 
48
     * @param warehouse_id
49
     * @param timestamp
50
     * @param availability
51
     */
52
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
53
 
54
    /**
55
     * Add the inventory to existing stock.
56
     * 
57
     * @param itemId
58
     * @param warehouseId
59
     * @param quantity
60
     */
61
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
62
 
63
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
64
 
65
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
66
 
67
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException;
68
 
69
    /**
70
     * Determines the warehouse that should be used to fulfil an order for the given item.
71
     * It first checks all the warehouses which are in the logistics location given by the
72
     * warehouse_loc parameter. If none of the warehouses there have any inventory, then the
73
     * preferred warehouse for the item is used.
74
     * 
75
     * Returns an ordered list of size 4 with following elements in the given order:
76
     * 1. Id of the fulfillment warehouse which was finally picked up.
77
     * 2. Expected delay added by the category manager.
78
     * 3. Id of the billing warehouse which was finally picked up.
79
     * 
80
     * @param itemId
5978 rajveer 81
     * @param sourceId
5945 mandeep.dh 82
     */
5978 rajveer 83
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 84
 
85
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
86
 
87
    /**
88
     * Returns the warehouse with the given id.
89
     * 
90
     * @param warehouse_id
91
     */
92
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
93
 
94
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
95
 
96
    /**
5978 rajveer 97
     * Depending on reservation in the table, verify if we can bill this order or not.
5967 rajveer 98
     * 
99
     * @param itemId
100
     * @param warehouseId
101
     * @param sourceId
102
     * @param orderId
103
     */
104
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException;
105
 
106
    /**
5945 mandeep.dh 107
     * Increases the reservation count for an item in a warehouse. Should always succeed normally.
108
     * 
109
     * @param itemId
110
     * @param warehouseId
5967 rajveer 111
     * @param sourceId
112
     * @param orderId
113
     * @param createdTimestamp
114
     * @param promisedShippingTimestamp
5945 mandeep.dh 115
     * @param quantity
116
     */
5967 rajveer 117
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 118
 
119
    /**
120
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
121
     * 
122
     * @param itemId
123
     * @param warehouseId
5967 rajveer 124
     * @param sourceId
125
     * @param orderId
5945 mandeep.dh 126
     * @param quantity
127
     */
5967 rajveer 128
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 129
 
130
    /**
131
     * Returns the pricing information of an item associated with the vendor of the given warehouse.
132
     * Raises an exception if either the item, vendor or the associated pricing information can't be found.
133
     * 
134
     * @param itemId
135
     * @param vendorId
136
     */
137
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException;
138
 
139
    /**
140
     * Returns the list of vendor pricing information of an item.
141
     * Raises an exception if item not found corresponding to itemId
142
     * 
143
     * @param itemId
144
     */
145
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
146
 
147
    /**
148
     * Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
149
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
150
     * 
151
     * @param vendorItemPricing
152
     */
153
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException;
154
 
155
    /**
156
     * Returns a vendor given its id
157
     * 
158
     * @param vendorId
159
     */
160
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException;
161
 
162
    /**
163
     * Return list of all vendors
164
     */
165
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
166
 
167
    /**
168
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
169
     * 
170
     * @param key
171
     * @param vendorItemMapping
172
     */
173
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException;
174
 
175
    /**
176
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
177
     * Raises an exception if item not found corresponding to itemId
178
     * 
179
     * @param itemId
180
     */
181
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
182
 
183
    /**
184
     * Returns a list of inventory stock for items for which there are pending orders for the given vendor.
185
     * 
186
     * @param vendorid
187
     */
188
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
189
 
190
    /**
191
     * This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
192
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
193
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
194
     *    getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
195
     *    getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
196
     * 
197
     * @param warehouseType
198
     * @param inventoryType
199
     * @param vendorId
200
     * @param billingWarehouseId
201
     * @param shippingWarehouseId
202
     */
203
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException;
204
 
205
    /**
206
     * Resets availability of an item to the quantity mentioned in a warehouse.
207
     * 
208
     * @param itemKey
209
     * @param vendorId
210
     * @param quantity
211
     * @param warehouseId
212
     */
213
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
214
 
215
    /**
216
     * Resets availability of a warehouse to zero.
217
     * 
218
     * @param warehouseId
219
     */
220
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
221
 
222
    /**
223
     * Returns the list of item keys which need to be processed for a given warehouse.
224
     * This is currently used by Support application to send item keys whose inventory needs
225
     * to be updated from PLB
226
     * 
227
     * @param warehouseId
228
     */
229
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException;
230
 
231
    /**
232
     * Marks/Deletes missed inventory updates for a given key and warehouse.
233
     * This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
234
     * 
235
     * @param itemKey
236
     * @param warehouseId
237
     */
238
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
239
 
240
    /**
241
     * Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
242
     * and the timestamp from where alert was raised.
243
     */
244
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException;
245
 
246
    /**
247
     * Add the BAD type inventory to existing stock.
248
     * 
249
     * @param itemId
250
     * @param warehouseId
251
     * @param quantity
252
     */
253
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
254
 
255
    /**
256
     * Returns all shipping locations
257
     */
258
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException;
259
 
260
    /**
261
     * Fetches all the vendor item mappings present.
262
     */
263
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException;
264
 
265
    /**
266
     * Gets items' inventory for a warehouse
267
     * If warehouse is passed as zero, items' inventory across all warehouses is sent
268
     * 
269
     * @param warehouseId
270
     */
271
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException;
272
 
273
    /**
274
     * Clear item availability cache.
275
     */
276
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
277
 
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
279
 
6096 amit.gupta 280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
281
 
6467 amar.kumar 282
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException;
283
 
6484 amar.kumar 284
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException;
285
 
6531 vikram.rag 286
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException;
287
 
288
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException;
289
 
290
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException;
291
 
292
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException;
293
 
294
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
295
 
296
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
297
 
6821 amar.kumar 298
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException;
299
 
300
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
301
 
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
303
 
5945 mandeep.dh 304
  }
305
 
306
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
307
 
308
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
309
 
310
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
311
 
312
    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;
313
 
314
    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;
315
 
316
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
317
 
318
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
319
 
320
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
323
 
5978 rajveer 324
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 325
 
326
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
327
 
328
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
329
 
330
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
331
 
5967 rajveer 332
    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 333
 
5967 rajveer 334
    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 335
 
5967 rajveer 336
    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;
337
 
5945 mandeep.dh 338
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
347
 
348
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
349
 
350
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
351
 
352
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    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;
355
 
356
    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;
357
 
358
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
359
 
360
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
361
 
362
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
363
 
364
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
365
 
366
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
367
 
368
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
369
 
370
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
371
 
372
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
373
 
374
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
375
 
376
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
377
 
6096 amit.gupta 378
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
379
 
6467 amar.kumar 380
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
381
 
6484 amar.kumar 382
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
383
 
6531 vikram.rag 384
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
385
 
386
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
387
 
388
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
389
 
390
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
391
 
392
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
393
 
394
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
395
 
6821 amar.kumar 396
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
397
 
398
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
399
 
400
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
401
 
5945 mandeep.dh 402
  }
403
 
404
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
405
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
406
      public Factory() {}
407
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
408
        return new Client(prot);
409
      }
410
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
411
        return new Client(iprot, oprot);
412
      }
413
    }
414
 
415
    public Client(org.apache.thrift.protocol.TProtocol prot)
416
    {
417
      super(prot, prot);
418
    }
419
 
420
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
421
      super(iprot, oprot);
422
    }
423
 
424
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
425
    {
426
      send_addWarehouse(warehouse);
427
      return recv_addWarehouse();
428
    }
429
 
430
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
431
    {
432
      addWarehouse_args args = new addWarehouse_args();
433
      args.setWarehouse(warehouse);
434
      sendBase("addWarehouse", args);
435
    }
436
 
437
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
438
    {
439
      addWarehouse_result result = new addWarehouse_result();
440
      receiveBase(result, "addWarehouse");
441
      if (result.isSetSuccess()) {
442
        return result.success;
443
      }
444
      if (result.cex != null) {
445
        throw result.cex;
446
      }
447
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
448
    }
449
 
450
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
451
    {
452
      send_addVendor(vendor);
453
      return recv_addVendor();
454
    }
455
 
456
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
457
    {
458
      addVendor_args args = new addVendor_args();
459
      args.setVendor(vendor);
460
      sendBase("addVendor", args);
461
    }
462
 
463
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
464
    {
465
      addVendor_result result = new addVendor_result();
466
      receiveBase(result, "addVendor");
467
      if (result.isSetSuccess()) {
468
        return result.success;
469
      }
470
      if (result.cex != null) {
471
        throw result.cex;
472
      }
473
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
474
    }
475
 
476
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
477
    {
478
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
479
      recv_updateInventoryHistory();
480
    }
481
 
482
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
483
    {
484
      updateInventoryHistory_args args = new updateInventoryHistory_args();
485
      args.setWarehouse_id(warehouse_id);
486
      args.setTimestamp(timestamp);
487
      args.setAvailability(availability);
488
      sendBase("updateInventoryHistory", args);
489
    }
490
 
491
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
492
    {
493
      updateInventoryHistory_result result = new updateInventoryHistory_result();
494
      receiveBase(result, "updateInventoryHistory");
495
      if (result.cex != null) {
496
        throw result.cex;
497
      }
498
      return;
499
    }
500
 
501
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
502
    {
503
      send_updateInventory(warehouse_id, timestamp, availability);
504
      recv_updateInventory();
505
    }
506
 
507
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
508
    {
509
      updateInventory_args args = new updateInventory_args();
510
      args.setWarehouse_id(warehouse_id);
511
      args.setTimestamp(timestamp);
512
      args.setAvailability(availability);
513
      sendBase("updateInventory", args);
514
    }
515
 
516
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
517
    {
518
      updateInventory_result result = new updateInventory_result();
519
      receiveBase(result, "updateInventory");
520
      if (result.cex != null) {
521
        throw result.cex;
522
      }
523
      return;
524
    }
525
 
526
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
527
    {
528
      send_addInventory(itemId, warehouseId, quantity);
529
      recv_addInventory();
530
    }
531
 
532
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
533
    {
534
      addInventory_args args = new addInventory_args();
535
      args.setItemId(itemId);
536
      args.setWarehouseId(warehouseId);
537
      args.setQuantity(quantity);
538
      sendBase("addInventory", args);
539
    }
540
 
541
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
542
    {
543
      addInventory_result result = new addInventory_result();
544
      receiveBase(result, "addInventory");
545
      if (result.cex != null) {
546
        throw result.cex;
547
      }
548
      return;
549
    }
550
 
551
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
552
    {
553
      send_retireWarehouse(warehouse_id);
554
      recv_retireWarehouse();
555
    }
556
 
557
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
558
    {
559
      retireWarehouse_args args = new retireWarehouse_args();
560
      args.setWarehouse_id(warehouse_id);
561
      sendBase("retireWarehouse", args);
562
    }
563
 
564
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
565
    {
566
      retireWarehouse_result result = new retireWarehouse_result();
567
      receiveBase(result, "retireWarehouse");
568
      if (result.cex != null) {
569
        throw result.cex;
570
      }
571
      return;
572
    }
573
 
574
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
575
    {
576
      send_getItemInventoryByItemId(item_id);
577
      return recv_getItemInventoryByItemId();
578
    }
579
 
580
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
581
    {
582
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
583
      args.setItem_id(item_id);
584
      sendBase("getItemInventoryByItemId", args);
585
    }
586
 
587
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
588
    {
589
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
590
      receiveBase(result, "getItemInventoryByItemId");
591
      if (result.isSetSuccess()) {
592
        return result.success;
593
      }
594
      if (result.cex != null) {
595
        throw result.cex;
596
      }
597
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
598
    }
599
 
600
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
601
    {
602
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
603
      return recv_getItemAvailibilityAtWarehouse();
604
    }
605
 
606
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
607
    {
608
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
609
      args.setWarehouse_id(warehouse_id);
610
      args.setItem_id(item_id);
611
      sendBase("getItemAvailibilityAtWarehouse", args);
612
    }
613
 
614
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
615
    {
616
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
617
      receiveBase(result, "getItemAvailibilityAtWarehouse");
618
      if (result.isSetSuccess()) {
619
        return result.success;
620
      }
621
      if (result.cex != null) {
622
        throw result.cex;
623
      }
624
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
625
    }
626
 
5978 rajveer 627
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 628
    {
5978 rajveer 629
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 630
      return recv_getItemAvailabilityAtLocation();
631
    }
632
 
5978 rajveer 633
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 634
    {
635
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
636
      args.setItemId(itemId);
5978 rajveer 637
      args.setSourceId(sourceId);
5945 mandeep.dh 638
      sendBase("getItemAvailabilityAtLocation", args);
639
    }
640
 
641
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
642
    {
643
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
644
      receiveBase(result, "getItemAvailabilityAtLocation");
645
      if (result.isSetSuccess()) {
646
        return result.success;
647
      }
648
      if (result.isex != null) {
649
        throw result.isex;
650
      }
651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
652
    }
653
 
654
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
655
    {
656
      send_getAllWarehouses(isActive);
657
      return recv_getAllWarehouses();
658
    }
659
 
660
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
661
    {
662
      getAllWarehouses_args args = new getAllWarehouses_args();
663
      args.setIsActive(isActive);
664
      sendBase("getAllWarehouses", args);
665
    }
666
 
667
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
668
    {
669
      getAllWarehouses_result result = new getAllWarehouses_result();
670
      receiveBase(result, "getAllWarehouses");
671
      if (result.isSetSuccess()) {
672
        return result.success;
673
      }
674
      if (result.cex != null) {
675
        throw result.cex;
676
      }
677
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
678
    }
679
 
680
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
681
    {
682
      send_getWarehouse(warehouse_id);
683
      return recv_getWarehouse();
684
    }
685
 
686
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
687
    {
688
      getWarehouse_args args = new getWarehouse_args();
689
      args.setWarehouse_id(warehouse_id);
690
      sendBase("getWarehouse", args);
691
    }
692
 
693
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
694
    {
695
      getWarehouse_result result = new getWarehouse_result();
696
      receiveBase(result, "getWarehouse");
697
      if (result.isSetSuccess()) {
698
        return result.success;
699
      }
700
      if (result.cex != null) {
701
        throw result.cex;
702
      }
703
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
704
    }
705
 
706
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
707
    {
708
      send_getAllItemsForWarehouse(warehouse_id);
709
      return recv_getAllItemsForWarehouse();
710
    }
711
 
712
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
713
    {
714
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
715
      args.setWarehouse_id(warehouse_id);
716
      sendBase("getAllItemsForWarehouse", args);
717
    }
718
 
719
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
720
    {
721
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
722
      receiveBase(result, "getAllItemsForWarehouse");
723
      if (result.isSetSuccess()) {
724
        return result.success;
725
      }
726
      if (result.cex != null) {
727
        throw result.cex;
728
      }
729
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
730
    }
731
 
5967 rajveer 732
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 733
    {
5967 rajveer 734
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
735
      return recv_isOrderBillable();
736
    }
737
 
738
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
739
    {
740
      isOrderBillable_args args = new isOrderBillable_args();
741
      args.setItemId(itemId);
742
      args.setWarehouseId(warehouseId);
743
      args.setSourceId(sourceId);
744
      args.setOrderId(orderId);
745
      sendBase("isOrderBillable", args);
746
    }
747
 
748
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
749
    {
750
      isOrderBillable_result result = new isOrderBillable_result();
751
      receiveBase(result, "isOrderBillable");
752
      if (result.isSetSuccess()) {
753
        return result.success;
754
      }
755
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
756
    }
757
 
758
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
759
    {
760
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 761
      return recv_reserveItemInWarehouse();
762
    }
763
 
5967 rajveer 764
    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 765
    {
766
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
767
      args.setItemId(itemId);
768
      args.setWarehouseId(warehouseId);
5967 rajveer 769
      args.setSourceId(sourceId);
770
      args.setOrderId(orderId);
771
      args.setCreatedTimestamp(createdTimestamp);
772
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 773
      args.setQuantity(quantity);
774
      sendBase("reserveItemInWarehouse", args);
775
    }
776
 
777
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
778
    {
779
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
780
      receiveBase(result, "reserveItemInWarehouse");
781
      if (result.isSetSuccess()) {
782
        return result.success;
783
      }
784
      if (result.cex != null) {
785
        throw result.cex;
786
      }
787
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
788
    }
789
 
5967 rajveer 790
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 791
    {
5967 rajveer 792
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 793
      return recv_reduceReservationCount();
794
    }
795
 
5967 rajveer 796
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 797
    {
798
      reduceReservationCount_args args = new reduceReservationCount_args();
799
      args.setItemId(itemId);
800
      args.setWarehouseId(warehouseId);
5967 rajveer 801
      args.setSourceId(sourceId);
802
      args.setOrderId(orderId);
5945 mandeep.dh 803
      args.setQuantity(quantity);
804
      sendBase("reduceReservationCount", args);
805
    }
806
 
807
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
808
    {
809
      reduceReservationCount_result result = new reduceReservationCount_result();
810
      receiveBase(result, "reduceReservationCount");
811
      if (result.isSetSuccess()) {
812
        return result.success;
813
      }
814
      if (result.cex != null) {
815
        throw result.cex;
816
      }
817
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
818
    }
819
 
820
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
821
    {
822
      send_getItemPricing(itemId, vendorId);
823
      return recv_getItemPricing();
824
    }
825
 
826
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
827
    {
828
      getItemPricing_args args = new getItemPricing_args();
829
      args.setItemId(itemId);
830
      args.setVendorId(vendorId);
831
      sendBase("getItemPricing", args);
832
    }
833
 
834
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
835
    {
836
      getItemPricing_result result = new getItemPricing_result();
837
      receiveBase(result, "getItemPricing");
838
      if (result.isSetSuccess()) {
839
        return result.success;
840
      }
841
      if (result.cex != null) {
842
        throw result.cex;
843
      }
844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
845
    }
846
 
847
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
848
    {
849
      send_getAllItemPricing(itemId);
850
      return recv_getAllItemPricing();
851
    }
852
 
853
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
854
    {
855
      getAllItemPricing_args args = new getAllItemPricing_args();
856
      args.setItemId(itemId);
857
      sendBase("getAllItemPricing", args);
858
    }
859
 
860
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
861
    {
862
      getAllItemPricing_result result = new getAllItemPricing_result();
863
      receiveBase(result, "getAllItemPricing");
864
      if (result.isSetSuccess()) {
865
        return result.success;
866
      }
867
      if (result.cex != null) {
868
        throw result.cex;
869
      }
870
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
871
    }
872
 
873
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
874
    {
875
      send_addVendorItemPricing(vendorItemPricing);
876
      recv_addVendorItemPricing();
877
    }
878
 
879
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
880
    {
881
      addVendorItemPricing_args args = new addVendorItemPricing_args();
882
      args.setVendorItemPricing(vendorItemPricing);
883
      sendBase("addVendorItemPricing", args);
884
    }
885
 
886
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
887
    {
888
      addVendorItemPricing_result result = new addVendorItemPricing_result();
889
      receiveBase(result, "addVendorItemPricing");
890
      if (result.cex != null) {
891
        throw result.cex;
892
      }
893
      return;
894
    }
895
 
896
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
897
    {
898
      send_getVendor(vendorId);
899
      return recv_getVendor();
900
    }
901
 
902
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
903
    {
904
      getVendor_args args = new getVendor_args();
905
      args.setVendorId(vendorId);
906
      sendBase("getVendor", args);
907
    }
908
 
909
    public Vendor recv_getVendor() throws org.apache.thrift.TException
910
    {
911
      getVendor_result result = new getVendor_result();
912
      receiveBase(result, "getVendor");
913
      if (result.isSetSuccess()) {
914
        return result.success;
915
      }
916
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
917
    }
918
 
919
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
920
    {
921
      send_getAllVendors();
922
      return recv_getAllVendors();
923
    }
924
 
925
    public void send_getAllVendors() throws org.apache.thrift.TException
926
    {
927
      getAllVendors_args args = new getAllVendors_args();
928
      sendBase("getAllVendors", args);
929
    }
930
 
931
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
932
    {
933
      getAllVendors_result result = new getAllVendors_result();
934
      receiveBase(result, "getAllVendors");
935
      if (result.isSetSuccess()) {
936
        return result.success;
937
      }
938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
939
    }
940
 
941
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
942
    {
943
      send_addVendorItemMapping(key, vendorItemMapping);
944
      recv_addVendorItemMapping();
945
    }
946
 
947
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
948
    {
949
      addVendorItemMapping_args args = new addVendorItemMapping_args();
950
      args.setKey(key);
951
      args.setVendorItemMapping(vendorItemMapping);
952
      sendBase("addVendorItemMapping", args);
953
    }
954
 
955
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
956
    {
957
      addVendorItemMapping_result result = new addVendorItemMapping_result();
958
      receiveBase(result, "addVendorItemMapping");
959
      if (result.cex != null) {
960
        throw result.cex;
961
      }
962
      return;
963
    }
964
 
965
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
966
    {
967
      send_getVendorItemMappings(itemId);
968
      return recv_getVendorItemMappings();
969
    }
970
 
971
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
972
    {
973
      getVendorItemMappings_args args = new getVendorItemMappings_args();
974
      args.setItemId(itemId);
975
      sendBase("getVendorItemMappings", args);
976
    }
977
 
978
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
979
    {
980
      getVendorItemMappings_result result = new getVendorItemMappings_result();
981
      receiveBase(result, "getVendorItemMappings");
982
      if (result.isSetSuccess()) {
983
        return result.success;
984
      }
985
      if (result.cex != null) {
986
        throw result.cex;
987
      }
988
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
989
    }
990
 
991
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
992
    {
993
      send_getPendingOrdersInventory(vendorid);
994
      return recv_getPendingOrdersInventory();
995
    }
996
 
997
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
998
    {
999
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
1000
      args.setVendorid(vendorid);
1001
      sendBase("getPendingOrdersInventory", args);
1002
    }
1003
 
1004
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
1005
    {
1006
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
1007
      receiveBase(result, "getPendingOrdersInventory");
1008
      if (result.isSetSuccess()) {
1009
        return result.success;
1010
      }
1011
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1012
    }
1013
 
1014
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1015
    {
1016
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1017
      return recv_getWarehouses();
1018
    }
1019
 
1020
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1021
    {
1022
      getWarehouses_args args = new getWarehouses_args();
1023
      args.setWarehouseType(warehouseType);
1024
      args.setInventoryType(inventoryType);
1025
      args.setVendorId(vendorId);
1026
      args.setBillingWarehouseId(billingWarehouseId);
1027
      args.setShippingWarehouseId(shippingWarehouseId);
1028
      sendBase("getWarehouses", args);
1029
    }
1030
 
1031
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1032
    {
1033
      getWarehouses_result result = new getWarehouses_result();
1034
      receiveBase(result, "getWarehouses");
1035
      if (result.isSetSuccess()) {
1036
        return result.success;
1037
      }
1038
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1039
    }
1040
 
1041
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1042
    {
1043
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1044
      recv_resetAvailability();
1045
    }
1046
 
1047
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1048
    {
1049
      resetAvailability_args args = new resetAvailability_args();
1050
      args.setItemKey(itemKey);
1051
      args.setVendorId(vendorId);
1052
      args.setQuantity(quantity);
1053
      args.setWarehouseId(warehouseId);
1054
      sendBase("resetAvailability", args);
1055
    }
1056
 
1057
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1058
    {
1059
      resetAvailability_result result = new resetAvailability_result();
1060
      receiveBase(result, "resetAvailability");
1061
      if (result.cex != null) {
1062
        throw result.cex;
1063
      }
1064
      return;
1065
    }
1066
 
1067
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1068
    {
1069
      send_resetAvailabilityForWarehouse(warehouseId);
1070
      recv_resetAvailabilityForWarehouse();
1071
    }
1072
 
1073
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1074
    {
1075
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1076
      args.setWarehouseId(warehouseId);
1077
      sendBase("resetAvailabilityForWarehouse", args);
1078
    }
1079
 
1080
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1081
    {
1082
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1083
      receiveBase(result, "resetAvailabilityForWarehouse");
1084
      if (result.cex != null) {
1085
        throw result.cex;
1086
      }
1087
      return;
1088
    }
1089
 
1090
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1091
    {
1092
      send_getItemKeysToBeProcessed(warehouseId);
1093
      return recv_getItemKeysToBeProcessed();
1094
    }
1095
 
1096
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1097
    {
1098
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1099
      args.setWarehouseId(warehouseId);
1100
      sendBase("getItemKeysToBeProcessed", args);
1101
    }
1102
 
1103
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1104
    {
1105
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1106
      receiveBase(result, "getItemKeysToBeProcessed");
1107
      if (result.isSetSuccess()) {
1108
        return result.success;
1109
      }
1110
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1111
    }
1112
 
1113
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1114
    {
1115
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1116
      recv_markMissedInventoryUpdatesAsProcessed();
1117
    }
1118
 
1119
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1120
    {
1121
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1122
      args.setItemKey(itemKey);
1123
      args.setWarehouseId(warehouseId);
1124
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1125
    }
1126
 
1127
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1128
    {
1129
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1130
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1131
      return;
1132
    }
1133
 
1134
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1135
    {
1136
      send_getIgnoredItemKeys();
1137
      return recv_getIgnoredItemKeys();
1138
    }
1139
 
1140
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1141
    {
1142
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1143
      sendBase("getIgnoredItemKeys", args);
1144
    }
1145
 
1146
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1147
    {
1148
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1149
      receiveBase(result, "getIgnoredItemKeys");
1150
      if (result.isSetSuccess()) {
1151
        return result.success;
1152
      }
1153
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1154
    }
1155
 
1156
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1157
    {
1158
      send_addBadInventory(itemId, warehouseId, quantity);
1159
      recv_addBadInventory();
1160
    }
1161
 
1162
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1163
    {
1164
      addBadInventory_args args = new addBadInventory_args();
1165
      args.setItemId(itemId);
1166
      args.setWarehouseId(warehouseId);
1167
      args.setQuantity(quantity);
1168
      sendBase("addBadInventory", args);
1169
    }
1170
 
1171
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1172
    {
1173
      addBadInventory_result result = new addBadInventory_result();
1174
      receiveBase(result, "addBadInventory");
1175
      if (result.cex != null) {
1176
        throw result.cex;
1177
      }
1178
      return;
1179
    }
1180
 
1181
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1182
    {
1183
      send_getShippingLocations();
1184
      return recv_getShippingLocations();
1185
    }
1186
 
1187
    public void send_getShippingLocations() throws org.apache.thrift.TException
1188
    {
1189
      getShippingLocations_args args = new getShippingLocations_args();
1190
      sendBase("getShippingLocations", args);
1191
    }
1192
 
1193
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1194
    {
1195
      getShippingLocations_result result = new getShippingLocations_result();
1196
      receiveBase(result, "getShippingLocations");
1197
      if (result.isSetSuccess()) {
1198
        return result.success;
1199
      }
1200
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1201
    }
1202
 
1203
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1204
    {
1205
      send_getAllVendorItemMappings();
1206
      return recv_getAllVendorItemMappings();
1207
    }
1208
 
1209
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1210
    {
1211
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1212
      sendBase("getAllVendorItemMappings", args);
1213
    }
1214
 
1215
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1216
    {
1217
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1218
      receiveBase(result, "getAllVendorItemMappings");
1219
      if (result.isSetSuccess()) {
1220
        return result.success;
1221
      }
1222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1223
    }
1224
 
1225
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1226
    {
1227
      send_getInventorySnapshot(warehouseId);
1228
      return recv_getInventorySnapshot();
1229
    }
1230
 
1231
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1232
    {
1233
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1234
      args.setWarehouseId(warehouseId);
1235
      sendBase("getInventorySnapshot", args);
1236
    }
1237
 
1238
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1239
    {
1240
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1241
      receiveBase(result, "getInventorySnapshot");
1242
      if (result.isSetSuccess()) {
1243
        return result.success;
1244
      }
1245
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1246
    }
1247
 
1248
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1249
    {
1250
      send_clearItemAvailabilityCache();
1251
      recv_clearItemAvailabilityCache();
1252
    }
1253
 
1254
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1255
    {
1256
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1257
      sendBase("clearItemAvailabilityCache", args);
1258
    }
1259
 
1260
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1261
    {
1262
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1263
      receiveBase(result, "clearItemAvailabilityCache");
1264
      return;
1265
    }
1266
 
1267
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1268
    {
1269
      send_updateVendorString(warehouseId, vendorString);
1270
      recv_updateVendorString();
1271
    }
1272
 
1273
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1274
    {
1275
      updateVendorString_args args = new updateVendorString_args();
1276
      args.setWarehouseId(warehouseId);
1277
      args.setVendorString(vendorString);
1278
      sendBase("updateVendorString", args);
1279
    }
1280
 
1281
    public void recv_updateVendorString() throws org.apache.thrift.TException
1282
    {
1283
      updateVendorString_result result = new updateVendorString_result();
1284
      receiveBase(result, "updateVendorString");
1285
      return;
1286
    }
1287
 
6096 amit.gupta 1288
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1289
    {
1290
      send_clearItemAvailabilityCacheForItem(item_id);
1291
      recv_clearItemAvailabilityCacheForItem();
1292
    }
1293
 
1294
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1295
    {
1296
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1297
      args.setItem_id(item_id);
1298
      sendBase("clearItemAvailabilityCacheForItem", args);
1299
    }
1300
 
1301
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1302
    {
1303
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1304
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1305
      return;
1306
    }
1307
 
6467 amar.kumar 1308
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1309
    {
1310
      send_getOurWarehouseIdForVendor(vendorId);
1311
      return recv_getOurWarehouseIdForVendor();
1312
    }
1313
 
1314
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1315
    {
1316
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1317
      args.setVendorId(vendorId);
1318
      sendBase("getOurWarehouseIdForVendor", args);
1319
    }
1320
 
1321
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1322
    {
1323
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1324
      receiveBase(result, "getOurWarehouseIdForVendor");
1325
      if (result.isSetSuccess()) {
1326
        return result.success;
1327
      }
1328
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1329
    }
1330
 
6484 amar.kumar 1331
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1332
    {
1333
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1334
      return recv_getItemAvailabilitiesAtOurWarehouses();
1335
    }
1336
 
1337
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1338
    {
1339
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1340
      args.setItem_ids(item_ids);
1341
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1342
    }
1343
 
1344
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1345
    {
1346
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1347
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1348
      if (result.isSetSuccess()) {
1349
        return result.success;
1350
      }
1351
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1352
    }
1353
 
6531 vikram.rag 1354
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1355
    {
1356
      send_getMonitoredWarehouseForVendors(vendorIds);
1357
      return recv_getMonitoredWarehouseForVendors();
1358
    }
1359
 
1360
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1361
    {
1362
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1363
      args.setVendorIds(vendorIds);
1364
      sendBase("getMonitoredWarehouseForVendors", args);
1365
    }
1366
 
1367
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1368
    {
1369
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1370
      receiveBase(result, "getMonitoredWarehouseForVendors");
1371
      if (result.isSetSuccess()) {
1372
        return result.success;
1373
      }
1374
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1375
    }
1376
 
1377
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1378
    {
1379
      send_getIgnoredWarehouseidsAndItemids();
1380
      return recv_getIgnoredWarehouseidsAndItemids();
1381
    }
1382
 
1383
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1384
    {
1385
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1386
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1387
    }
1388
 
1389
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1390
    {
1391
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1392
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1393
      if (result.isSetSuccess()) {
1394
        return result.success;
1395
      }
1396
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1397
    }
1398
 
1399
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1400
    {
1401
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1402
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1403
    }
1404
 
1405
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1406
    {
1407
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1408
      args.setItem_id(item_id);
1409
      args.setWarehouse_id(warehouse_id);
1410
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1411
    }
1412
 
1413
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1414
    {
1415
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1416
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1417
      if (result.isSetSuccess()) {
1418
        return result.success;
1419
      }
1420
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1421
    }
1422
 
1423
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1424
    {
1425
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1426
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1427
    }
1428
 
1429
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1430
    {
1431
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1432
      args.setItem_id(item_id);
1433
      args.setWarehouse_id(warehouse_id);
1434
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1435
    }
1436
 
1437
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1438
    {
1439
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1440
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1441
      if (result.isSetSuccess()) {
1442
        return result.success;
1443
      }
1444
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1445
    }
1446
 
1447
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1448
    {
1449
      send_getAllIgnoredInventoryupdateItemsCount();
1450
      return recv_getAllIgnoredInventoryupdateItemsCount();
1451
    }
1452
 
1453
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1454
    {
1455
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1456
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1457
    }
1458
 
1459
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1460
    {
1461
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1462
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1463
      if (result.isSetSuccess()) {
1464
        return result.success;
1465
      }
1466
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1467
    }
1468
 
1469
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1470
    {
1471
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1472
      return recv_getIgnoredInventoryUpdateItemids();
1473
    }
1474
 
1475
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1476
    {
1477
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1478
      args.setOffset(offset);
1479
      args.setLimit(limit);
1480
      sendBase("getIgnoredInventoryUpdateItemids", args);
1481
    }
1482
 
1483
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1484
    {
1485
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1486
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1487
      if (result.isSetSuccess()) {
1488
        return result.success;
1489
      }
1490
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1491
    }
1492
 
6821 amar.kumar 1493
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1494
    {
1495
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
1496
      recv_updateItemStockPurchaseParams();
1497
    }
1498
 
1499
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1500
    {
1501
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
1502
      args.setItem_id(item_id);
1503
      args.setNumOfDaysStock(numOfDaysStock);
1504
      args.setMinStockLevel(minStockLevel);
1505
      sendBase("updateItemStockPurchaseParams", args);
1506
    }
1507
 
1508
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
1509
    {
1510
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
1511
      receiveBase(result, "updateItemStockPurchaseParams");
1512
      return;
1513
    }
1514
 
1515
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1516
    {
1517
      send_getItemStockPurchaseParams(itemId);
1518
      return recv_getItemStockPurchaseParams();
1519
    }
1520
 
1521
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1522
    {
1523
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
1524
      args.setItemId(itemId);
1525
      sendBase("getItemStockPurchaseParams", args);
1526
    }
1527
 
1528
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
1529
    {
1530
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
1531
      receiveBase(result, "getItemStockPurchaseParams");
1532
      if (result.isSetSuccess()) {
1533
        return result.success;
1534
      }
1535
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
1536
    }
1537
 
1538
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1539
    {
1540
      send_addOosStatusForItem(oosStatusMap, date);
1541
      recv_addOosStatusForItem();
1542
    }
1543
 
1544
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1545
    {
1546
      addOosStatusForItem_args args = new addOosStatusForItem_args();
1547
      args.setOosStatusMap(oosStatusMap);
1548
      args.setDate(date);
1549
      sendBase("addOosStatusForItem", args);
1550
    }
1551
 
1552
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
1553
    {
1554
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1555
      receiveBase(result, "addOosStatusForItem");
1556
      return;
1557
    }
1558
 
5945 mandeep.dh 1559
  }
1560
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1561
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1562
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1563
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1564
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1565
        this.clientManager = clientManager;
1566
        this.protocolFactory = protocolFactory;
1567
      }
1568
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1569
        return new AsyncClient(protocolFactory, clientManager, transport);
1570
      }
1571
    }
1572
 
1573
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1574
      super(protocolFactory, clientManager, transport);
1575
    }
1576
 
1577
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1578
      checkReady();
1579
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1580
      this.___currentMethod = method_call;
1581
      ___manager.call(method_call);
1582
    }
1583
 
1584
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1585
      private Warehouse warehouse;
1586
      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 {
1587
        super(client, protocolFactory, transport, resultHandler, false);
1588
        this.warehouse = warehouse;
1589
      }
1590
 
1591
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1592
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1593
        addWarehouse_args args = new addWarehouse_args();
1594
        args.setWarehouse(warehouse);
1595
        args.write(prot);
1596
        prot.writeMessageEnd();
1597
      }
1598
 
1599
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1600
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1601
          throw new IllegalStateException("Method call not finished!");
1602
        }
1603
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1605
        return (new Client(prot)).recv_addWarehouse();
1606
      }
1607
    }
1608
 
1609
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1610
      checkReady();
1611
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1612
      this.___currentMethod = method_call;
1613
      ___manager.call(method_call);
1614
    }
1615
 
1616
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1617
      private Vendor vendor;
1618
      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 {
1619
        super(client, protocolFactory, transport, resultHandler, false);
1620
        this.vendor = vendor;
1621
      }
1622
 
1623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1625
        addVendor_args args = new addVendor_args();
1626
        args.setVendor(vendor);
1627
        args.write(prot);
1628
        prot.writeMessageEnd();
1629
      }
1630
 
1631
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1632
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1633
          throw new IllegalStateException("Method call not finished!");
1634
        }
1635
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1636
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1637
        return (new Client(prot)).recv_addVendor();
1638
      }
1639
    }
1640
 
1641
    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 {
1642
      checkReady();
1643
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1644
      this.___currentMethod = method_call;
1645
      ___manager.call(method_call);
1646
    }
1647
 
1648
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1649
      private long warehouse_id;
1650
      private String timestamp;
1651
      private Map<String,Long> availability;
1652
      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 {
1653
        super(client, protocolFactory, transport, resultHandler, false);
1654
        this.warehouse_id = warehouse_id;
1655
        this.timestamp = timestamp;
1656
        this.availability = availability;
1657
      }
1658
 
1659
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1660
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1661
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1662
        args.setWarehouse_id(warehouse_id);
1663
        args.setTimestamp(timestamp);
1664
        args.setAvailability(availability);
1665
        args.write(prot);
1666
        prot.writeMessageEnd();
1667
      }
1668
 
1669
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1670
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1671
          throw new IllegalStateException("Method call not finished!");
1672
        }
1673
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1674
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1675
        (new Client(prot)).recv_updateInventoryHistory();
1676
      }
1677
    }
1678
 
1679
    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 {
1680
      checkReady();
1681
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1682
      this.___currentMethod = method_call;
1683
      ___manager.call(method_call);
1684
    }
1685
 
1686
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1687
      private long warehouse_id;
1688
      private String timestamp;
1689
      private Map<String,Long> availability;
1690
      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 {
1691
        super(client, protocolFactory, transport, resultHandler, false);
1692
        this.warehouse_id = warehouse_id;
1693
        this.timestamp = timestamp;
1694
        this.availability = availability;
1695
      }
1696
 
1697
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1698
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1699
        updateInventory_args args = new updateInventory_args();
1700
        args.setWarehouse_id(warehouse_id);
1701
        args.setTimestamp(timestamp);
1702
        args.setAvailability(availability);
1703
        args.write(prot);
1704
        prot.writeMessageEnd();
1705
      }
1706
 
1707
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1708
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1709
          throw new IllegalStateException("Method call not finished!");
1710
        }
1711
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1712
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1713
        (new Client(prot)).recv_updateInventory();
1714
      }
1715
    }
1716
 
1717
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
1718
      checkReady();
1719
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1720
      this.___currentMethod = method_call;
1721
      ___manager.call(method_call);
1722
    }
1723
 
1724
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1725
      private long itemId;
1726
      private long warehouseId;
1727
      private long quantity;
1728
      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 {
1729
        super(client, protocolFactory, transport, resultHandler, false);
1730
        this.itemId = itemId;
1731
        this.warehouseId = warehouseId;
1732
        this.quantity = quantity;
1733
      }
1734
 
1735
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1736
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1737
        addInventory_args args = new addInventory_args();
1738
        args.setItemId(itemId);
1739
        args.setWarehouseId(warehouseId);
1740
        args.setQuantity(quantity);
1741
        args.write(prot);
1742
        prot.writeMessageEnd();
1743
      }
1744
 
1745
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1746
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1747
          throw new IllegalStateException("Method call not finished!");
1748
        }
1749
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1750
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1751
        (new Client(prot)).recv_addInventory();
1752
      }
1753
    }
1754
 
1755
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1756
      checkReady();
1757
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1758
      this.___currentMethod = method_call;
1759
      ___manager.call(method_call);
1760
    }
1761
 
1762
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1763
      private long warehouse_id;
1764
      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 {
1765
        super(client, protocolFactory, transport, resultHandler, false);
1766
        this.warehouse_id = warehouse_id;
1767
      }
1768
 
1769
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1770
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1771
        retireWarehouse_args args = new retireWarehouse_args();
1772
        args.setWarehouse_id(warehouse_id);
1773
        args.write(prot);
1774
        prot.writeMessageEnd();
1775
      }
1776
 
1777
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1779
          throw new IllegalStateException("Method call not finished!");
1780
        }
1781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1783
        (new Client(prot)).recv_retireWarehouse();
1784
      }
1785
    }
1786
 
1787
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
1788
      checkReady();
1789
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
1790
      this.___currentMethod = method_call;
1791
      ___manager.call(method_call);
1792
    }
1793
 
1794
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
1795
      private long item_id;
1796
      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 {
1797
        super(client, protocolFactory, transport, resultHandler, false);
1798
        this.item_id = item_id;
1799
      }
1800
 
1801
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1802
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1803
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
1804
        args.setItem_id(item_id);
1805
        args.write(prot);
1806
        prot.writeMessageEnd();
1807
      }
1808
 
1809
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
1810
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1811
          throw new IllegalStateException("Method call not finished!");
1812
        }
1813
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1814
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1815
        return (new Client(prot)).recv_getItemInventoryByItemId();
1816
      }
1817
    }
1818
 
1819
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1820
      checkReady();
1821
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
1822
      this.___currentMethod = method_call;
1823
      ___manager.call(method_call);
1824
    }
1825
 
1826
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1827
      private long warehouse_id;
1828
      private long item_id;
1829
      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 {
1830
        super(client, protocolFactory, transport, resultHandler, false);
1831
        this.warehouse_id = warehouse_id;
1832
        this.item_id = item_id;
1833
      }
1834
 
1835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1837
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
1838
        args.setWarehouse_id(warehouse_id);
1839
        args.setItem_id(item_id);
1840
        args.write(prot);
1841
        prot.writeMessageEnd();
1842
      }
1843
 
1844
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1845
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1846
          throw new IllegalStateException("Method call not finished!");
1847
        }
1848
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1850
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
1851
      }
1852
    }
1853
 
5978 rajveer 1854
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 1855
      checkReady();
5978 rajveer 1856
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1857
      this.___currentMethod = method_call;
1858
      ___manager.call(method_call);
1859
    }
1860
 
1861
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1862
      private long itemId;
5978 rajveer 1863
      private long sourceId;
1864
      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 1865
        super(client, protocolFactory, transport, resultHandler, false);
1866
        this.itemId = itemId;
5978 rajveer 1867
        this.sourceId = sourceId;
5945 mandeep.dh 1868
      }
1869
 
1870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1872
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
1873
        args.setItemId(itemId);
5978 rajveer 1874
        args.setSourceId(sourceId);
5945 mandeep.dh 1875
        args.write(prot);
1876
        prot.writeMessageEnd();
1877
      }
1878
 
1879
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1881
          throw new IllegalStateException("Method call not finished!");
1882
        }
1883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1885
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
1886
      }
1887
    }
1888
 
1889
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
1890
      checkReady();
1891
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
1892
      this.___currentMethod = method_call;
1893
      ___manager.call(method_call);
1894
    }
1895
 
1896
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
1897
      private boolean isActive;
1898
      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 {
1899
        super(client, protocolFactory, transport, resultHandler, false);
1900
        this.isActive = isActive;
1901
      }
1902
 
1903
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1904
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
1905
        getAllWarehouses_args args = new getAllWarehouses_args();
1906
        args.setIsActive(isActive);
1907
        args.write(prot);
1908
        prot.writeMessageEnd();
1909
      }
1910
 
1911
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1912
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1913
          throw new IllegalStateException("Method call not finished!");
1914
        }
1915
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1916
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1917
        return (new Client(prot)).recv_getAllWarehouses();
1918
      }
1919
    }
1920
 
1921
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1922
      checkReady();
1923
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1924
      this.___currentMethod = method_call;
1925
      ___manager.call(method_call);
1926
    }
1927
 
1928
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1929
      private long warehouse_id;
1930
      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 {
1931
        super(client, protocolFactory, transport, resultHandler, false);
1932
        this.warehouse_id = warehouse_id;
1933
      }
1934
 
1935
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1936
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1937
        getWarehouse_args args = new getWarehouse_args();
1938
        args.setWarehouse_id(warehouse_id);
1939
        args.write(prot);
1940
        prot.writeMessageEnd();
1941
      }
1942
 
1943
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
1944
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1945
          throw new IllegalStateException("Method call not finished!");
1946
        }
1947
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1948
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1949
        return (new Client(prot)).recv_getWarehouse();
1950
      }
1951
    }
1952
 
1953
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1954
      checkReady();
1955
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1956
      this.___currentMethod = method_call;
1957
      ___manager.call(method_call);
1958
    }
1959
 
1960
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1961
      private long warehouse_id;
1962
      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 {
1963
        super(client, protocolFactory, transport, resultHandler, false);
1964
        this.warehouse_id = warehouse_id;
1965
      }
1966
 
1967
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1968
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1969
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
1970
        args.setWarehouse_id(warehouse_id);
1971
        args.write(prot);
1972
        prot.writeMessageEnd();
1973
      }
1974
 
1975
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1976
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1977
          throw new IllegalStateException("Method call not finished!");
1978
        }
1979
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1981
        return (new Client(prot)).recv_getAllItemsForWarehouse();
1982
      }
1983
    }
1984
 
5967 rajveer 1985
    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 1986
      checkReady();
5967 rajveer 1987
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1988
      this.___currentMethod = method_call;
1989
      ___manager.call(method_call);
1990
    }
1991
 
5967 rajveer 1992
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
1993
      private long itemId;
1994
      private long warehouseId;
1995
      private long sourceId;
1996
      private long orderId;
1997
      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 {
1998
        super(client, protocolFactory, transport, resultHandler, false);
1999
        this.itemId = itemId;
2000
        this.warehouseId = warehouseId;
2001
        this.sourceId = sourceId;
2002
        this.orderId = orderId;
2003
      }
2004
 
2005
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2006
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2007
        isOrderBillable_args args = new isOrderBillable_args();
2008
        args.setItemId(itemId);
2009
        args.setWarehouseId(warehouseId);
2010
        args.setSourceId(sourceId);
2011
        args.setOrderId(orderId);
2012
        args.write(prot);
2013
        prot.writeMessageEnd();
2014
      }
2015
 
2016
      public boolean getResult() throws org.apache.thrift.TException {
2017
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2018
          throw new IllegalStateException("Method call not finished!");
2019
        }
2020
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2021
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2022
        return (new Client(prot)).recv_isOrderBillable();
2023
      }
2024
    }
2025
 
2026
    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 {
2027
      checkReady();
2028
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2029
      this.___currentMethod = method_call;
2030
      ___manager.call(method_call);
2031
    }
2032
 
5945 mandeep.dh 2033
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2034
      private long itemId;
2035
      private long warehouseId;
5967 rajveer 2036
      private long sourceId;
2037
      private long orderId;
2038
      private long createdTimestamp;
2039
      private long promisedShippingTimestamp;
5945 mandeep.dh 2040
      private double quantity;
5967 rajveer 2041
      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 2042
        super(client, protocolFactory, transport, resultHandler, false);
2043
        this.itemId = itemId;
2044
        this.warehouseId = warehouseId;
5967 rajveer 2045
        this.sourceId = sourceId;
2046
        this.orderId = orderId;
2047
        this.createdTimestamp = createdTimestamp;
2048
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 2049
        this.quantity = quantity;
2050
      }
2051
 
2052
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2053
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2054
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
2055
        args.setItemId(itemId);
2056
        args.setWarehouseId(warehouseId);
5967 rajveer 2057
        args.setSourceId(sourceId);
2058
        args.setOrderId(orderId);
2059
        args.setCreatedTimestamp(createdTimestamp);
2060
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 2061
        args.setQuantity(quantity);
2062
        args.write(prot);
2063
        prot.writeMessageEnd();
2064
      }
2065
 
2066
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2067
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2068
          throw new IllegalStateException("Method call not finished!");
2069
        }
2070
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2071
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2072
        return (new Client(prot)).recv_reserveItemInWarehouse();
2073
      }
2074
    }
2075
 
5967 rajveer 2076
    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 2077
      checkReady();
5967 rajveer 2078
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2079
      this.___currentMethod = method_call;
2080
      ___manager.call(method_call);
2081
    }
2082
 
2083
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2084
      private long itemId;
2085
      private long warehouseId;
5967 rajveer 2086
      private long sourceId;
2087
      private long orderId;
5945 mandeep.dh 2088
      private double quantity;
5967 rajveer 2089
      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 2090
        super(client, protocolFactory, transport, resultHandler, false);
2091
        this.itemId = itemId;
2092
        this.warehouseId = warehouseId;
5967 rajveer 2093
        this.sourceId = sourceId;
2094
        this.orderId = orderId;
5945 mandeep.dh 2095
        this.quantity = quantity;
2096
      }
2097
 
2098
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2099
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2100
        reduceReservationCount_args args = new reduceReservationCount_args();
2101
        args.setItemId(itemId);
2102
        args.setWarehouseId(warehouseId);
5967 rajveer 2103
        args.setSourceId(sourceId);
2104
        args.setOrderId(orderId);
5945 mandeep.dh 2105
        args.setQuantity(quantity);
2106
        args.write(prot);
2107
        prot.writeMessageEnd();
2108
      }
2109
 
2110
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2111
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2112
          throw new IllegalStateException("Method call not finished!");
2113
        }
2114
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2115
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2116
        return (new Client(prot)).recv_reduceReservationCount();
2117
      }
2118
    }
2119
 
2120
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2121
      checkReady();
2122
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2123
      this.___currentMethod = method_call;
2124
      ___manager.call(method_call);
2125
    }
2126
 
2127
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2128
      private long itemId;
2129
      private long vendorId;
2130
      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 {
2131
        super(client, protocolFactory, transport, resultHandler, false);
2132
        this.itemId = itemId;
2133
        this.vendorId = vendorId;
2134
      }
2135
 
2136
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2137
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2138
        getItemPricing_args args = new getItemPricing_args();
2139
        args.setItemId(itemId);
2140
        args.setVendorId(vendorId);
2141
        args.write(prot);
2142
        prot.writeMessageEnd();
2143
      }
2144
 
2145
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
2146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2147
          throw new IllegalStateException("Method call not finished!");
2148
        }
2149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2151
        return (new Client(prot)).recv_getItemPricing();
2152
      }
2153
    }
2154
 
2155
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2156
      checkReady();
2157
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2158
      this.___currentMethod = method_call;
2159
      ___manager.call(method_call);
2160
    }
2161
 
2162
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2163
      private long itemId;
2164
      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 {
2165
        super(client, protocolFactory, transport, resultHandler, false);
2166
        this.itemId = itemId;
2167
      }
2168
 
2169
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2170
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2171
        getAllItemPricing_args args = new getAllItemPricing_args();
2172
        args.setItemId(itemId);
2173
        args.write(prot);
2174
        prot.writeMessageEnd();
2175
      }
2176
 
2177
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2178
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2179
          throw new IllegalStateException("Method call not finished!");
2180
        }
2181
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2182
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2183
        return (new Client(prot)).recv_getAllItemPricing();
2184
      }
2185
    }
2186
 
2187
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2188
      checkReady();
2189
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
2190
      this.___currentMethod = method_call;
2191
      ___manager.call(method_call);
2192
    }
2193
 
2194
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2195
      private VendorItemPricing vendorItemPricing;
2196
      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 {
2197
        super(client, protocolFactory, transport, resultHandler, false);
2198
        this.vendorItemPricing = vendorItemPricing;
2199
      }
2200
 
2201
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2202
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2203
        addVendorItemPricing_args args = new addVendorItemPricing_args();
2204
        args.setVendorItemPricing(vendorItemPricing);
2205
        args.write(prot);
2206
        prot.writeMessageEnd();
2207
      }
2208
 
2209
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2210
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2211
          throw new IllegalStateException("Method call not finished!");
2212
        }
2213
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2214
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2215
        (new Client(prot)).recv_addVendorItemPricing();
2216
      }
2217
    }
2218
 
2219
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
2220
      checkReady();
2221
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2222
      this.___currentMethod = method_call;
2223
      ___manager.call(method_call);
2224
    }
2225
 
2226
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2227
      private long vendorId;
2228
      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 {
2229
        super(client, protocolFactory, transport, resultHandler, false);
2230
        this.vendorId = vendorId;
2231
      }
2232
 
2233
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2234
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2235
        getVendor_args args = new getVendor_args();
2236
        args.setVendorId(vendorId);
2237
        args.write(prot);
2238
        prot.writeMessageEnd();
2239
      }
2240
 
2241
      public Vendor getResult() throws org.apache.thrift.TException {
2242
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2243
          throw new IllegalStateException("Method call not finished!");
2244
        }
2245
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2246
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2247
        return (new Client(prot)).recv_getVendor();
2248
      }
2249
    }
2250
 
2251
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
2252
      checkReady();
2253
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
2254
      this.___currentMethod = method_call;
2255
      ___manager.call(method_call);
2256
    }
2257
 
2258
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2259
      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 {
2260
        super(client, protocolFactory, transport, resultHandler, false);
2261
      }
2262
 
2263
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2264
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2265
        getAllVendors_args args = new getAllVendors_args();
2266
        args.write(prot);
2267
        prot.writeMessageEnd();
2268
      }
2269
 
2270
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2271
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2272
          throw new IllegalStateException("Method call not finished!");
2273
        }
2274
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2275
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2276
        return (new Client(prot)).recv_getAllVendors();
2277
      }
2278
    }
2279
 
2280
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2281
      checkReady();
2282
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2283
      this.___currentMethod = method_call;
2284
      ___manager.call(method_call);
2285
    }
2286
 
2287
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2288
      private String key;
2289
      private VendorItemMapping vendorItemMapping;
2290
      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 {
2291
        super(client, protocolFactory, transport, resultHandler, false);
2292
        this.key = key;
2293
        this.vendorItemMapping = vendorItemMapping;
2294
      }
2295
 
2296
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2297
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2298
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2299
        args.setKey(key);
2300
        args.setVendorItemMapping(vendorItemMapping);
2301
        args.write(prot);
2302
        prot.writeMessageEnd();
2303
      }
2304
 
2305
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2306
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2307
          throw new IllegalStateException("Method call not finished!");
2308
        }
2309
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2310
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2311
        (new Client(prot)).recv_addVendorItemMapping();
2312
      }
2313
    }
2314
 
2315
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2316
      checkReady();
2317
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2318
      this.___currentMethod = method_call;
2319
      ___manager.call(method_call);
2320
    }
2321
 
2322
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2323
      private long itemId;
2324
      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 {
2325
        super(client, protocolFactory, transport, resultHandler, false);
2326
        this.itemId = itemId;
2327
      }
2328
 
2329
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2330
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2331
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2332
        args.setItemId(itemId);
2333
        args.write(prot);
2334
        prot.writeMessageEnd();
2335
      }
2336
 
2337
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2338
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2339
          throw new IllegalStateException("Method call not finished!");
2340
        }
2341
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2342
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2343
        return (new Client(prot)).recv_getVendorItemMappings();
2344
      }
2345
    }
2346
 
2347
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2348
      checkReady();
2349
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2350
      this.___currentMethod = method_call;
2351
      ___manager.call(method_call);
2352
    }
2353
 
2354
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2355
      private long vendorid;
2356
      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 {
2357
        super(client, protocolFactory, transport, resultHandler, false);
2358
        this.vendorid = vendorid;
2359
      }
2360
 
2361
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2362
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2363
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2364
        args.setVendorid(vendorid);
2365
        args.write(prot);
2366
        prot.writeMessageEnd();
2367
      }
2368
 
2369
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2370
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2371
          throw new IllegalStateException("Method call not finished!");
2372
        }
2373
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2374
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2375
        return (new Client(prot)).recv_getPendingOrdersInventory();
2376
      }
2377
    }
2378
 
2379
    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 {
2380
      checkReady();
2381
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2382
      this.___currentMethod = method_call;
2383
      ___manager.call(method_call);
2384
    }
2385
 
2386
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2387
      private WarehouseType warehouseType;
2388
      private InventoryType inventoryType;
2389
      private long vendorId;
2390
      private long billingWarehouseId;
2391
      private long shippingWarehouseId;
2392
      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 {
2393
        super(client, protocolFactory, transport, resultHandler, false);
2394
        this.warehouseType = warehouseType;
2395
        this.inventoryType = inventoryType;
2396
        this.vendorId = vendorId;
2397
        this.billingWarehouseId = billingWarehouseId;
2398
        this.shippingWarehouseId = shippingWarehouseId;
2399
      }
2400
 
2401
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2402
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2403
        getWarehouses_args args = new getWarehouses_args();
2404
        args.setWarehouseType(warehouseType);
2405
        args.setInventoryType(inventoryType);
2406
        args.setVendorId(vendorId);
2407
        args.setBillingWarehouseId(billingWarehouseId);
2408
        args.setShippingWarehouseId(shippingWarehouseId);
2409
        args.write(prot);
2410
        prot.writeMessageEnd();
2411
      }
2412
 
2413
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2414
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2415
          throw new IllegalStateException("Method call not finished!");
2416
        }
2417
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2418
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2419
        return (new Client(prot)).recv_getWarehouses();
2420
      }
2421
    }
2422
 
2423
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2424
      checkReady();
2425
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2426
      this.___currentMethod = method_call;
2427
      ___manager.call(method_call);
2428
    }
2429
 
2430
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2431
      private String itemKey;
2432
      private long vendorId;
2433
      private long quantity;
2434
      private long warehouseId;
2435
      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 {
2436
        super(client, protocolFactory, transport, resultHandler, false);
2437
        this.itemKey = itemKey;
2438
        this.vendorId = vendorId;
2439
        this.quantity = quantity;
2440
        this.warehouseId = warehouseId;
2441
      }
2442
 
2443
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2444
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2445
        resetAvailability_args args = new resetAvailability_args();
2446
        args.setItemKey(itemKey);
2447
        args.setVendorId(vendorId);
2448
        args.setQuantity(quantity);
2449
        args.setWarehouseId(warehouseId);
2450
        args.write(prot);
2451
        prot.writeMessageEnd();
2452
      }
2453
 
2454
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2455
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2456
          throw new IllegalStateException("Method call not finished!");
2457
        }
2458
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2459
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2460
        (new Client(prot)).recv_resetAvailability();
2461
      }
2462
    }
2463
 
2464
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2465
      checkReady();
2466
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2467
      this.___currentMethod = method_call;
2468
      ___manager.call(method_call);
2469
    }
2470
 
2471
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2472
      private long warehouseId;
2473
      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 {
2474
        super(client, protocolFactory, transport, resultHandler, false);
2475
        this.warehouseId = warehouseId;
2476
      }
2477
 
2478
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2479
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2480
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2481
        args.setWarehouseId(warehouseId);
2482
        args.write(prot);
2483
        prot.writeMessageEnd();
2484
      }
2485
 
2486
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2487
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2488
          throw new IllegalStateException("Method call not finished!");
2489
        }
2490
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2491
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2492
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2493
      }
2494
    }
2495
 
2496
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2497
      checkReady();
2498
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2499
      this.___currentMethod = method_call;
2500
      ___manager.call(method_call);
2501
    }
2502
 
2503
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2504
      private long warehouseId;
2505
      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 {
2506
        super(client, protocolFactory, transport, resultHandler, false);
2507
        this.warehouseId = warehouseId;
2508
      }
2509
 
2510
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2511
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2512
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2513
        args.setWarehouseId(warehouseId);
2514
        args.write(prot);
2515
        prot.writeMessageEnd();
2516
      }
2517
 
2518
      public List<String> getResult() throws org.apache.thrift.TException {
2519
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2520
          throw new IllegalStateException("Method call not finished!");
2521
        }
2522
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2523
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2524
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2525
      }
2526
    }
2527
 
2528
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2529
      checkReady();
2530
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2531
      this.___currentMethod = method_call;
2532
      ___manager.call(method_call);
2533
    }
2534
 
2535
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2536
      private String itemKey;
2537
      private long warehouseId;
2538
      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 {
2539
        super(client, protocolFactory, transport, resultHandler, false);
2540
        this.itemKey = itemKey;
2541
        this.warehouseId = warehouseId;
2542
      }
2543
 
2544
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2545
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2546
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2547
        args.setItemKey(itemKey);
2548
        args.setWarehouseId(warehouseId);
2549
        args.write(prot);
2550
        prot.writeMessageEnd();
2551
      }
2552
 
2553
      public void getResult() throws org.apache.thrift.TException {
2554
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2555
          throw new IllegalStateException("Method call not finished!");
2556
        }
2557
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2558
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2559
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2560
      }
2561
    }
2562
 
2563
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2564
      checkReady();
2565
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2566
      this.___currentMethod = method_call;
2567
      ___manager.call(method_call);
2568
    }
2569
 
2570
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2571
      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 {
2572
        super(client, protocolFactory, transport, resultHandler, false);
2573
      }
2574
 
2575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2577
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2578
        args.write(prot);
2579
        prot.writeMessageEnd();
2580
      }
2581
 
2582
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2583
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2584
          throw new IllegalStateException("Method call not finished!");
2585
        }
2586
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2587
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2588
        return (new Client(prot)).recv_getIgnoredItemKeys();
2589
      }
2590
    }
2591
 
2592
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2593
      checkReady();
2594
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2595
      this.___currentMethod = method_call;
2596
      ___manager.call(method_call);
2597
    }
2598
 
2599
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2600
      private long itemId;
2601
      private long warehouseId;
2602
      private long quantity;
2603
      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 {
2604
        super(client, protocolFactory, transport, resultHandler, false);
2605
        this.itemId = itemId;
2606
        this.warehouseId = warehouseId;
2607
        this.quantity = quantity;
2608
      }
2609
 
2610
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2611
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2612
        addBadInventory_args args = new addBadInventory_args();
2613
        args.setItemId(itemId);
2614
        args.setWarehouseId(warehouseId);
2615
        args.setQuantity(quantity);
2616
        args.write(prot);
2617
        prot.writeMessageEnd();
2618
      }
2619
 
2620
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2621
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2622
          throw new IllegalStateException("Method call not finished!");
2623
        }
2624
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2625
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2626
        (new Client(prot)).recv_addBadInventory();
2627
      }
2628
    }
2629
 
2630
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2631
      checkReady();
2632
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2633
      this.___currentMethod = method_call;
2634
      ___manager.call(method_call);
2635
    }
2636
 
2637
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2638
      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 {
2639
        super(client, protocolFactory, transport, resultHandler, false);
2640
      }
2641
 
2642
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2643
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2644
        getShippingLocations_args args = new getShippingLocations_args();
2645
        args.write(prot);
2646
        prot.writeMessageEnd();
2647
      }
2648
 
2649
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2650
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2651
          throw new IllegalStateException("Method call not finished!");
2652
        }
2653
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2654
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2655
        return (new Client(prot)).recv_getShippingLocations();
2656
      }
2657
    }
2658
 
2659
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2660
      checkReady();
2661
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
2662
      this.___currentMethod = method_call;
2663
      ___manager.call(method_call);
2664
    }
2665
 
2666
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2667
      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 {
2668
        super(client, protocolFactory, transport, resultHandler, false);
2669
      }
2670
 
2671
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2672
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2673
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
2674
        args.write(prot);
2675
        prot.writeMessageEnd();
2676
      }
2677
 
2678
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
2679
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2680
          throw new IllegalStateException("Method call not finished!");
2681
        }
2682
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2683
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2684
        return (new Client(prot)).recv_getAllVendorItemMappings();
2685
      }
2686
    }
2687
 
2688
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
2689
      checkReady();
2690
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2691
      this.___currentMethod = method_call;
2692
      ___manager.call(method_call);
2693
    }
2694
 
2695
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
2696
      private long warehouseId;
2697
      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 {
2698
        super(client, protocolFactory, transport, resultHandler, false);
2699
        this.warehouseId = warehouseId;
2700
      }
2701
 
2702
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2703
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2704
        getInventorySnapshot_args args = new getInventorySnapshot_args();
2705
        args.setWarehouseId(warehouseId);
2706
        args.write(prot);
2707
        prot.writeMessageEnd();
2708
      }
2709
 
2710
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
2711
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2712
          throw new IllegalStateException("Method call not finished!");
2713
        }
2714
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2715
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2716
        return (new Client(prot)).recv_getInventorySnapshot();
2717
      }
2718
    }
2719
 
2720
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
2721
      checkReady();
2722
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
2723
      this.___currentMethod = method_call;
2724
      ___manager.call(method_call);
2725
    }
2726
 
2727
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
2728
      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 {
2729
        super(client, protocolFactory, transport, resultHandler, false);
2730
      }
2731
 
2732
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2733
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
2734
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
2735
        args.write(prot);
2736
        prot.writeMessageEnd();
2737
      }
2738
 
2739
      public void getResult() throws org.apache.thrift.TException {
2740
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2741
          throw new IllegalStateException("Method call not finished!");
2742
        }
2743
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2744
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2745
        (new Client(prot)).recv_clearItemAvailabilityCache();
2746
      }
2747
    }
2748
 
2749
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
2750
      checkReady();
2751
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
2752
      this.___currentMethod = method_call;
2753
      ___manager.call(method_call);
2754
    }
2755
 
2756
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
2757
      private long warehouseId;
2758
      private String vendorString;
2759
      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 {
2760
        super(client, protocolFactory, transport, resultHandler, false);
2761
        this.warehouseId = warehouseId;
2762
        this.vendorString = vendorString;
2763
      }
2764
 
2765
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2766
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
2767
        updateVendorString_args args = new updateVendorString_args();
2768
        args.setWarehouseId(warehouseId);
2769
        args.setVendorString(vendorString);
2770
        args.write(prot);
2771
        prot.writeMessageEnd();
2772
      }
2773
 
2774
      public void getResult() throws org.apache.thrift.TException {
2775
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2776
          throw new IllegalStateException("Method call not finished!");
2777
        }
2778
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2779
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2780
        (new Client(prot)).recv_updateVendorString();
2781
      }
2782
    }
2783
 
6096 amit.gupta 2784
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
2785
      checkReady();
2786
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2787
      this.___currentMethod = method_call;
2788
      ___manager.call(method_call);
2789
    }
2790
 
2791
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2792
      private long item_id;
2793
      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 {
2794
        super(client, protocolFactory, transport, resultHandler, false);
2795
        this.item_id = item_id;
2796
      }
2797
 
2798
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2799
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2800
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
2801
        args.setItem_id(item_id);
2802
        args.write(prot);
2803
        prot.writeMessageEnd();
2804
      }
2805
 
2806
      public void getResult() throws org.apache.thrift.TException {
2807
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2808
          throw new IllegalStateException("Method call not finished!");
2809
        }
2810
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2812
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2813
      }
2814
    }
2815
 
6467 amar.kumar 2816
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
2817
      checkReady();
2818
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2819
      this.___currentMethod = method_call;
2820
      ___manager.call(method_call);
2821
    }
2822
 
2823
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2824
      private long vendorId;
2825
      public getOurWarehouseIdForVendor_call(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2826
        super(client, protocolFactory, transport, resultHandler, false);
2827
        this.vendorId = vendorId;
2828
      }
2829
 
2830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2832
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
2833
        args.setVendorId(vendorId);
2834
        args.write(prot);
2835
        prot.writeMessageEnd();
2836
      }
2837
 
2838
      public long getResult() throws org.apache.thrift.TException {
2839
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2840
          throw new IllegalStateException("Method call not finished!");
2841
        }
2842
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2843
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2844
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2845
      }
2846
    }
2847
 
6484 amar.kumar 2848
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2849
      checkReady();
2850
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
2851
      this.___currentMethod = method_call;
2852
      ___manager.call(method_call);
2853
    }
2854
 
2855
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2856
      private List<Long> item_ids;
2857
      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 {
2858
        super(client, protocolFactory, transport, resultHandler, false);
2859
        this.item_ids = item_ids;
2860
      }
2861
 
2862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2864
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
2865
        args.setItem_ids(item_ids);
2866
        args.write(prot);
2867
        prot.writeMessageEnd();
2868
      }
2869
 
2870
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2871
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2872
          throw new IllegalStateException("Method call not finished!");
2873
        }
2874
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2875
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2876
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
2877
      }
2878
    }
2879
 
6531 vikram.rag 2880
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
2881
      checkReady();
2882
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
2883
      this.___currentMethod = method_call;
2884
      ___manager.call(method_call);
2885
    }
2886
 
2887
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2888
      private List<Long> vendorIds;
2889
      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 {
2890
        super(client, protocolFactory, transport, resultHandler, false);
2891
        this.vendorIds = vendorIds;
2892
      }
2893
 
2894
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2895
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2896
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
2897
        args.setVendorIds(vendorIds);
2898
        args.write(prot);
2899
        prot.writeMessageEnd();
2900
      }
2901
 
2902
      public List<Long> getResult() throws org.apache.thrift.TException {
2903
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2904
          throw new IllegalStateException("Method call not finished!");
2905
        }
2906
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2907
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2908
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
2909
      }
2910
    }
2911
 
2912
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
2913
      checkReady();
2914
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
2915
      this.___currentMethod = method_call;
2916
      ___manager.call(method_call);
2917
    }
2918
 
2919
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
2920
      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 {
2921
        super(client, protocolFactory, transport, resultHandler, false);
2922
      }
2923
 
2924
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2925
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
2926
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
2927
        args.write(prot);
2928
        prot.writeMessageEnd();
2929
      }
2930
 
2931
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
2932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2933
          throw new IllegalStateException("Method call not finished!");
2934
        }
2935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2937
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
2938
      }
2939
    }
2940
 
2941
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
2942
      checkReady();
2943
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2944
      this.___currentMethod = method_call;
2945
      ___manager.call(method_call);
2946
    }
2947
 
2948
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
2949
      private long item_id;
2950
      private long warehouse_id;
2951
      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 {
2952
        super(client, protocolFactory, transport, resultHandler, false);
2953
        this.item_id = item_id;
2954
        this.warehouse_id = warehouse_id;
2955
      }
2956
 
2957
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2958
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
2959
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
2960
        args.setItem_id(item_id);
2961
        args.setWarehouse_id(warehouse_id);
2962
        args.write(prot);
2963
        prot.writeMessageEnd();
2964
      }
2965
 
2966
      public boolean getResult() throws org.apache.thrift.TException {
2967
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2968
          throw new IllegalStateException("Method call not finished!");
2969
        }
2970
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2971
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2972
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
2973
      }
2974
    }
2975
 
2976
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
2977
      checkReady();
2978
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2979
      this.___currentMethod = method_call;
2980
      ___manager.call(method_call);
2981
    }
2982
 
2983
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
2984
      private long item_id;
2985
      private long warehouse_id;
2986
      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 {
2987
        super(client, protocolFactory, transport, resultHandler, false);
2988
        this.item_id = item_id;
2989
        this.warehouse_id = warehouse_id;
2990
      }
2991
 
2992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
2994
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
2995
        args.setItem_id(item_id);
2996
        args.setWarehouse_id(warehouse_id);
2997
        args.write(prot);
2998
        prot.writeMessageEnd();
2999
      }
3000
 
3001
      public boolean getResult() throws org.apache.thrift.TException {
3002
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3003
          throw new IllegalStateException("Method call not finished!");
3004
        }
3005
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3006
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3007
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
3008
      }
3009
    }
3010
 
3011
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
3012
      checkReady();
3013
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3014
      this.___currentMethod = method_call;
3015
      ___manager.call(method_call);
3016
    }
3017
 
3018
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3019
      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 {
3020
        super(client, protocolFactory, transport, resultHandler, false);
3021
      }
3022
 
3023
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3024
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3025
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
3026
        args.write(prot);
3027
        prot.writeMessageEnd();
3028
      }
3029
 
3030
      public int getResult() throws org.apache.thrift.TException {
3031
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3032
          throw new IllegalStateException("Method call not finished!");
3033
        }
3034
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3035
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3036
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
3037
      }
3038
    }
3039
 
3040
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
3041
      checkReady();
3042
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3043
      this.___currentMethod = method_call;
3044
      ___manager.call(method_call);
3045
    }
3046
 
3047
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3048
      private int offset;
3049
      private int limit;
3050
      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 {
3051
        super(client, protocolFactory, transport, resultHandler, false);
3052
        this.offset = offset;
3053
        this.limit = limit;
3054
      }
3055
 
3056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3058
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
3059
        args.setOffset(offset);
3060
        args.setLimit(limit);
3061
        args.write(prot);
3062
        prot.writeMessageEnd();
3063
      }
3064
 
3065
      public List<Long> getResult() throws org.apache.thrift.TException {
3066
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3067
          throw new IllegalStateException("Method call not finished!");
3068
        }
3069
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3071
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
3072
      }
3073
    }
3074
 
6821 amar.kumar 3075
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3076
      checkReady();
3077
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
3078
      this.___currentMethod = method_call;
3079
      ___manager.call(method_call);
3080
    }
3081
 
3082
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3083
      private long item_id;
3084
      private int numOfDaysStock;
3085
      private long minStockLevel;
3086
      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 {
3087
        super(client, protocolFactory, transport, resultHandler, false);
3088
        this.item_id = item_id;
3089
        this.numOfDaysStock = numOfDaysStock;
3090
        this.minStockLevel = minStockLevel;
3091
      }
3092
 
3093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3095
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
3096
        args.setItem_id(item_id);
3097
        args.setNumOfDaysStock(numOfDaysStock);
3098
        args.setMinStockLevel(minStockLevel);
3099
        args.write(prot);
3100
        prot.writeMessageEnd();
3101
      }
3102
 
3103
      public void getResult() throws org.apache.thrift.TException {
3104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3105
          throw new IllegalStateException("Method call not finished!");
3106
        }
3107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3109
        (new Client(prot)).recv_updateItemStockPurchaseParams();
3110
      }
3111
    }
3112
 
3113
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3114
      checkReady();
3115
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3116
      this.___currentMethod = method_call;
3117
      ___manager.call(method_call);
3118
    }
3119
 
3120
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3121
      private long itemId;
3122
      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 {
3123
        super(client, protocolFactory, transport, resultHandler, false);
3124
        this.itemId = itemId;
3125
      }
3126
 
3127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3129
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
3130
        args.setItemId(itemId);
3131
        args.write(prot);
3132
        prot.writeMessageEnd();
3133
      }
3134
 
3135
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
3136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3137
          throw new IllegalStateException("Method call not finished!");
3138
        }
3139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3141
        return (new Client(prot)).recv_getItemStockPurchaseParams();
3142
      }
3143
    }
3144
 
3145
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
3146
      checkReady();
3147
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
3148
      this.___currentMethod = method_call;
3149
      ___manager.call(method_call);
3150
    }
3151
 
3152
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3153
      private Map<Long,Boolean> oosStatusMap;
3154
      private long date;
3155
      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 {
3156
        super(client, protocolFactory, transport, resultHandler, false);
3157
        this.oosStatusMap = oosStatusMap;
3158
        this.date = date;
3159
      }
3160
 
3161
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3162
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3163
        addOosStatusForItem_args args = new addOosStatusForItem_args();
3164
        args.setOosStatusMap(oosStatusMap);
3165
        args.setDate(date);
3166
        args.write(prot);
3167
        prot.writeMessageEnd();
3168
      }
3169
 
3170
      public void getResult() throws org.apache.thrift.TException {
3171
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3172
          throw new IllegalStateException("Method call not finished!");
3173
        }
3174
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3176
        (new Client(prot)).recv_addOosStatusForItem();
3177
      }
3178
    }
3179
 
5945 mandeep.dh 3180
  }
3181
 
3182
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3183
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3184
    public Processor(I iface) {
3185
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3186
    }
3187
 
3188
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3189
      super(iface, getProcessMap(processMap));
3190
    }
3191
 
3192
    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) {
3193
      processMap.put("addWarehouse", new addWarehouse());
3194
      processMap.put("addVendor", new addVendor());
3195
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
3196
      processMap.put("updateInventory", new updateInventory());
3197
      processMap.put("addInventory", new addInventory());
3198
      processMap.put("retireWarehouse", new retireWarehouse());
3199
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
3200
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
3201
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
3202
      processMap.put("getAllWarehouses", new getAllWarehouses());
3203
      processMap.put("getWarehouse", new getWarehouse());
3204
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 3205
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 3206
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
3207
      processMap.put("reduceReservationCount", new reduceReservationCount());
3208
      processMap.put("getItemPricing", new getItemPricing());
3209
      processMap.put("getAllItemPricing", new getAllItemPricing());
3210
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3211
      processMap.put("getVendor", new getVendor());
3212
      processMap.put("getAllVendors", new getAllVendors());
3213
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
3214
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
3215
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
3216
      processMap.put("getWarehouses", new getWarehouses());
3217
      processMap.put("resetAvailability", new resetAvailability());
3218
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
3219
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
3220
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
3221
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
3222
      processMap.put("addBadInventory", new addBadInventory());
3223
      processMap.put("getShippingLocations", new getShippingLocations());
3224
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
3225
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
3226
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
3227
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 3228
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 3229
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 3230
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 3231
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
3232
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3233
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3234
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3235
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3236
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
6821 amar.kumar 3237
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3238
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3239
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
5945 mandeep.dh 3240
      return processMap;
3241
    }
3242
 
3243
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3244
      public addWarehouse() {
3245
        super("addWarehouse");
3246
      }
3247
 
3248
      protected addWarehouse_args getEmptyArgsInstance() {
3249
        return new addWarehouse_args();
3250
      }
3251
 
3252
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
3253
        addWarehouse_result result = new addWarehouse_result();
3254
        try {
3255
          result.success = iface.addWarehouse(args.warehouse);
3256
          result.setSuccessIsSet(true);
3257
        } catch (InventoryServiceException cex) {
3258
          result.cex = cex;
3259
        }
3260
        return result;
3261
      }
3262
    }
3263
 
3264
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
3265
      public addVendor() {
3266
        super("addVendor");
3267
      }
3268
 
3269
      protected addVendor_args getEmptyArgsInstance() {
3270
        return new addVendor_args();
3271
      }
3272
 
3273
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
3274
        addVendor_result result = new addVendor_result();
3275
        try {
3276
          result.success = iface.addVendor(args.vendor);
3277
          result.setSuccessIsSet(true);
3278
        } catch (InventoryServiceException cex) {
3279
          result.cex = cex;
3280
        }
3281
        return result;
3282
      }
3283
    }
3284
 
3285
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
3286
      public updateInventoryHistory() {
3287
        super("updateInventoryHistory");
3288
      }
3289
 
3290
      protected updateInventoryHistory_args getEmptyArgsInstance() {
3291
        return new updateInventoryHistory_args();
3292
      }
3293
 
3294
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
3295
        updateInventoryHistory_result result = new updateInventoryHistory_result();
3296
        try {
3297
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
3298
        } catch (InventoryServiceException cex) {
3299
          result.cex = cex;
3300
        }
3301
        return result;
3302
      }
3303
    }
3304
 
3305
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
3306
      public updateInventory() {
3307
        super("updateInventory");
3308
      }
3309
 
3310
      protected updateInventory_args getEmptyArgsInstance() {
3311
        return new updateInventory_args();
3312
      }
3313
 
3314
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
3315
        updateInventory_result result = new updateInventory_result();
3316
        try {
3317
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
3318
        } catch (InventoryServiceException cex) {
3319
          result.cex = cex;
3320
        }
3321
        return result;
3322
      }
3323
    }
3324
 
3325
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
3326
      public addInventory() {
3327
        super("addInventory");
3328
      }
3329
 
3330
      protected addInventory_args getEmptyArgsInstance() {
3331
        return new addInventory_args();
3332
      }
3333
 
3334
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
3335
        addInventory_result result = new addInventory_result();
3336
        try {
3337
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
3338
        } catch (InventoryServiceException cex) {
3339
          result.cex = cex;
3340
        }
3341
        return result;
3342
      }
3343
    }
3344
 
3345
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
3346
      public retireWarehouse() {
3347
        super("retireWarehouse");
3348
      }
3349
 
3350
      protected retireWarehouse_args getEmptyArgsInstance() {
3351
        return new retireWarehouse_args();
3352
      }
3353
 
3354
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
3355
        retireWarehouse_result result = new retireWarehouse_result();
3356
        try {
3357
          iface.retireWarehouse(args.warehouse_id);
3358
        } catch (InventoryServiceException cex) {
3359
          result.cex = cex;
3360
        }
3361
        return result;
3362
      }
3363
    }
3364
 
3365
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
3366
      public getItemInventoryByItemId() {
3367
        super("getItemInventoryByItemId");
3368
      }
3369
 
3370
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
3371
        return new getItemInventoryByItemId_args();
3372
      }
3373
 
3374
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
3375
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
3376
        try {
3377
          result.success = iface.getItemInventoryByItemId(args.item_id);
3378
        } catch (InventoryServiceException cex) {
3379
          result.cex = cex;
3380
        }
3381
        return result;
3382
      }
3383
    }
3384
 
3385
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
3386
      public getItemAvailibilityAtWarehouse() {
3387
        super("getItemAvailibilityAtWarehouse");
3388
      }
3389
 
3390
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
3391
        return new getItemAvailibilityAtWarehouse_args();
3392
      }
3393
 
3394
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
3395
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
3396
        try {
3397
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
3398
          result.setSuccessIsSet(true);
3399
        } catch (InventoryServiceException cex) {
3400
          result.cex = cex;
3401
        }
3402
        return result;
3403
      }
3404
    }
3405
 
3406
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
3407
      public getItemAvailabilityAtLocation() {
3408
        super("getItemAvailabilityAtLocation");
3409
      }
3410
 
3411
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
3412
        return new getItemAvailabilityAtLocation_args();
3413
      }
3414
 
3415
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
3416
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
3417
        try {
5978 rajveer 3418
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 3419
        } catch (InventoryServiceException isex) {
3420
          result.isex = isex;
3421
        }
3422
        return result;
3423
      }
3424
    }
3425
 
3426
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
3427
      public getAllWarehouses() {
3428
        super("getAllWarehouses");
3429
      }
3430
 
3431
      protected getAllWarehouses_args getEmptyArgsInstance() {
3432
        return new getAllWarehouses_args();
3433
      }
3434
 
3435
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
3436
        getAllWarehouses_result result = new getAllWarehouses_result();
3437
        try {
3438
          result.success = iface.getAllWarehouses(args.isActive);
3439
        } catch (InventoryServiceException cex) {
3440
          result.cex = cex;
3441
        }
3442
        return result;
3443
      }
3444
    }
3445
 
3446
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
3447
      public getWarehouse() {
3448
        super("getWarehouse");
3449
      }
3450
 
3451
      protected getWarehouse_args getEmptyArgsInstance() {
3452
        return new getWarehouse_args();
3453
      }
3454
 
3455
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
3456
        getWarehouse_result result = new getWarehouse_result();
3457
        try {
3458
          result.success = iface.getWarehouse(args.warehouse_id);
3459
        } catch (InventoryServiceException cex) {
3460
          result.cex = cex;
3461
        }
3462
        return result;
3463
      }
3464
    }
3465
 
3466
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
3467
      public getAllItemsForWarehouse() {
3468
        super("getAllItemsForWarehouse");
3469
      }
3470
 
3471
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
3472
        return new getAllItemsForWarehouse_args();
3473
      }
3474
 
3475
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
3476
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
3477
        try {
3478
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
3479
        } catch (InventoryServiceException cex) {
3480
          result.cex = cex;
3481
        }
3482
        return result;
3483
      }
3484
    }
3485
 
5967 rajveer 3486
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
3487
      public isOrderBillable() {
3488
        super("isOrderBillable");
3489
      }
3490
 
3491
      protected isOrderBillable_args getEmptyArgsInstance() {
3492
        return new isOrderBillable_args();
3493
      }
3494
 
3495
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
3496
        isOrderBillable_result result = new isOrderBillable_result();
3497
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
3498
        result.setSuccessIsSet(true);
3499
        return result;
3500
      }
3501
    }
3502
 
5945 mandeep.dh 3503
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
3504
      public reserveItemInWarehouse() {
3505
        super("reserveItemInWarehouse");
3506
      }
3507
 
3508
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
3509
        return new reserveItemInWarehouse_args();
3510
      }
3511
 
3512
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
3513
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
3514
        try {
5967 rajveer 3515
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 3516
          result.setSuccessIsSet(true);
3517
        } catch (InventoryServiceException cex) {
3518
          result.cex = cex;
3519
        }
3520
        return result;
3521
      }
3522
    }
3523
 
3524
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
3525
      public reduceReservationCount() {
3526
        super("reduceReservationCount");
3527
      }
3528
 
3529
      protected reduceReservationCount_args getEmptyArgsInstance() {
3530
        return new reduceReservationCount_args();
3531
      }
3532
 
3533
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
3534
        reduceReservationCount_result result = new reduceReservationCount_result();
3535
        try {
5967 rajveer 3536
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 3537
          result.setSuccessIsSet(true);
3538
        } catch (InventoryServiceException cex) {
3539
          result.cex = cex;
3540
        }
3541
        return result;
3542
      }
3543
    }
3544
 
3545
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
3546
      public getItemPricing() {
3547
        super("getItemPricing");
3548
      }
3549
 
3550
      protected getItemPricing_args getEmptyArgsInstance() {
3551
        return new getItemPricing_args();
3552
      }
3553
 
3554
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
3555
        getItemPricing_result result = new getItemPricing_result();
3556
        try {
3557
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
3558
        } catch (InventoryServiceException cex) {
3559
          result.cex = cex;
3560
        }
3561
        return result;
3562
      }
3563
    }
3564
 
3565
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
3566
      public getAllItemPricing() {
3567
        super("getAllItemPricing");
3568
      }
3569
 
3570
      protected getAllItemPricing_args getEmptyArgsInstance() {
3571
        return new getAllItemPricing_args();
3572
      }
3573
 
3574
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
3575
        getAllItemPricing_result result = new getAllItemPricing_result();
3576
        try {
3577
          result.success = iface.getAllItemPricing(args.itemId);
3578
        } catch (InventoryServiceException cex) {
3579
          result.cex = cex;
3580
        }
3581
        return result;
3582
      }
3583
    }
3584
 
3585
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
3586
      public addVendorItemPricing() {
3587
        super("addVendorItemPricing");
3588
      }
3589
 
3590
      protected addVendorItemPricing_args getEmptyArgsInstance() {
3591
        return new addVendorItemPricing_args();
3592
      }
3593
 
3594
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
3595
        addVendorItemPricing_result result = new addVendorItemPricing_result();
3596
        try {
3597
          iface.addVendorItemPricing(args.vendorItemPricing);
3598
        } catch (InventoryServiceException cex) {
3599
          result.cex = cex;
3600
        }
3601
        return result;
3602
      }
3603
    }
3604
 
3605
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
3606
      public getVendor() {
3607
        super("getVendor");
3608
      }
3609
 
3610
      protected getVendor_args getEmptyArgsInstance() {
3611
        return new getVendor_args();
3612
      }
3613
 
3614
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
3615
        getVendor_result result = new getVendor_result();
3616
        result.success = iface.getVendor(args.vendorId);
3617
        return result;
3618
      }
3619
    }
3620
 
3621
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
3622
      public getAllVendors() {
3623
        super("getAllVendors");
3624
      }
3625
 
3626
      protected getAllVendors_args getEmptyArgsInstance() {
3627
        return new getAllVendors_args();
3628
      }
3629
 
3630
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
3631
        getAllVendors_result result = new getAllVendors_result();
3632
        result.success = iface.getAllVendors();
3633
        return result;
3634
      }
3635
    }
3636
 
3637
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
3638
      public addVendorItemMapping() {
3639
        super("addVendorItemMapping");
3640
      }
3641
 
3642
      protected addVendorItemMapping_args getEmptyArgsInstance() {
3643
        return new addVendorItemMapping_args();
3644
      }
3645
 
3646
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
3647
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3648
        try {
3649
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
3650
        } catch (InventoryServiceException cex) {
3651
          result.cex = cex;
3652
        }
3653
        return result;
3654
      }
3655
    }
3656
 
3657
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
3658
      public getVendorItemMappings() {
3659
        super("getVendorItemMappings");
3660
      }
3661
 
3662
      protected getVendorItemMappings_args getEmptyArgsInstance() {
3663
        return new getVendorItemMappings_args();
3664
      }
3665
 
3666
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
3667
        getVendorItemMappings_result result = new getVendorItemMappings_result();
3668
        try {
3669
          result.success = iface.getVendorItemMappings(args.itemId);
3670
        } catch (InventoryServiceException cex) {
3671
          result.cex = cex;
3672
        }
3673
        return result;
3674
      }
3675
    }
3676
 
3677
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
3678
      public getPendingOrdersInventory() {
3679
        super("getPendingOrdersInventory");
3680
      }
3681
 
3682
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
3683
        return new getPendingOrdersInventory_args();
3684
      }
3685
 
3686
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
3687
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
3688
        result.success = iface.getPendingOrdersInventory(args.vendorid);
3689
        return result;
3690
      }
3691
    }
3692
 
3693
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
3694
      public getWarehouses() {
3695
        super("getWarehouses");
3696
      }
3697
 
3698
      protected getWarehouses_args getEmptyArgsInstance() {
3699
        return new getWarehouses_args();
3700
      }
3701
 
3702
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
3703
        getWarehouses_result result = new getWarehouses_result();
3704
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
3705
        return result;
3706
      }
3707
    }
3708
 
3709
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
3710
      public resetAvailability() {
3711
        super("resetAvailability");
3712
      }
3713
 
3714
      protected resetAvailability_args getEmptyArgsInstance() {
3715
        return new resetAvailability_args();
3716
      }
3717
 
3718
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
3719
        resetAvailability_result result = new resetAvailability_result();
3720
        try {
3721
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
3722
        } catch (InventoryServiceException cex) {
3723
          result.cex = cex;
3724
        }
3725
        return result;
3726
      }
3727
    }
3728
 
3729
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
3730
      public resetAvailabilityForWarehouse() {
3731
        super("resetAvailabilityForWarehouse");
3732
      }
3733
 
3734
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
3735
        return new resetAvailabilityForWarehouse_args();
3736
      }
3737
 
3738
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
3739
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
3740
        try {
3741
          iface.resetAvailabilityForWarehouse(args.warehouseId);
3742
        } catch (InventoryServiceException cex) {
3743
          result.cex = cex;
3744
        }
3745
        return result;
3746
      }
3747
    }
3748
 
3749
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
3750
      public getItemKeysToBeProcessed() {
3751
        super("getItemKeysToBeProcessed");
3752
      }
3753
 
3754
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
3755
        return new getItemKeysToBeProcessed_args();
3756
      }
3757
 
3758
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
3759
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
3760
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
3761
        return result;
3762
      }
3763
    }
3764
 
3765
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
3766
      public markMissedInventoryUpdatesAsProcessed() {
3767
        super("markMissedInventoryUpdatesAsProcessed");
3768
      }
3769
 
3770
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
3771
        return new markMissedInventoryUpdatesAsProcessed_args();
3772
      }
3773
 
3774
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
3775
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
3776
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
3777
        return result;
3778
      }
3779
    }
3780
 
3781
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
3782
      public getIgnoredItemKeys() {
3783
        super("getIgnoredItemKeys");
3784
      }
3785
 
3786
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
3787
        return new getIgnoredItemKeys_args();
3788
      }
3789
 
3790
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
3791
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
3792
        result.success = iface.getIgnoredItemKeys();
3793
        return result;
3794
      }
3795
    }
3796
 
3797
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
3798
      public addBadInventory() {
3799
        super("addBadInventory");
3800
      }
3801
 
3802
      protected addBadInventory_args getEmptyArgsInstance() {
3803
        return new addBadInventory_args();
3804
      }
3805
 
3806
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
3807
        addBadInventory_result result = new addBadInventory_result();
3808
        try {
3809
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
3810
        } catch (InventoryServiceException cex) {
3811
          result.cex = cex;
3812
        }
3813
        return result;
3814
      }
3815
    }
3816
 
3817
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
3818
      public getShippingLocations() {
3819
        super("getShippingLocations");
3820
      }
3821
 
3822
      protected getShippingLocations_args getEmptyArgsInstance() {
3823
        return new getShippingLocations_args();
3824
      }
3825
 
3826
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
3827
        getShippingLocations_result result = new getShippingLocations_result();
3828
        result.success = iface.getShippingLocations();
3829
        return result;
3830
      }
3831
    }
3832
 
3833
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
3834
      public getAllVendorItemMappings() {
3835
        super("getAllVendorItemMappings");
3836
      }
3837
 
3838
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
3839
        return new getAllVendorItemMappings_args();
3840
      }
3841
 
3842
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
3843
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
3844
        result.success = iface.getAllVendorItemMappings();
3845
        return result;
3846
      }
3847
    }
3848
 
3849
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
3850
      public getInventorySnapshot() {
3851
        super("getInventorySnapshot");
3852
      }
3853
 
3854
      protected getInventorySnapshot_args getEmptyArgsInstance() {
3855
        return new getInventorySnapshot_args();
3856
      }
3857
 
3858
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
3859
        getInventorySnapshot_result result = new getInventorySnapshot_result();
3860
        result.success = iface.getInventorySnapshot(args.warehouseId);
3861
        return result;
3862
      }
3863
    }
3864
 
3865
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
3866
      public clearItemAvailabilityCache() {
3867
        super("clearItemAvailabilityCache");
3868
      }
3869
 
3870
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
3871
        return new clearItemAvailabilityCache_args();
3872
      }
3873
 
3874
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
3875
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
3876
        iface.clearItemAvailabilityCache();
3877
        return result;
3878
      }
3879
    }
3880
 
3881
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
3882
      public updateVendorString() {
3883
        super("updateVendorString");
3884
      }
3885
 
3886
      protected updateVendorString_args getEmptyArgsInstance() {
3887
        return new updateVendorString_args();
3888
      }
3889
 
3890
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
3891
        updateVendorString_result result = new updateVendorString_result();
3892
        iface.updateVendorString(args.warehouseId, args.vendorString);
3893
        return result;
3894
      }
3895
    }
3896
 
6096 amit.gupta 3897
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
3898
      public clearItemAvailabilityCacheForItem() {
3899
        super("clearItemAvailabilityCacheForItem");
3900
      }
3901
 
3902
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
3903
        return new clearItemAvailabilityCacheForItem_args();
3904
      }
3905
 
3906
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
3907
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
3908
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3909
        return result;
3910
      }
3911
    }
3912
 
6467 amar.kumar 3913
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
3914
      public getOurWarehouseIdForVendor() {
3915
        super("getOurWarehouseIdForVendor");
3916
      }
3917
 
3918
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
3919
        return new getOurWarehouseIdForVendor_args();
3920
      }
3921
 
3922
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
3923
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
3924
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
3925
        result.setSuccessIsSet(true);
3926
        return result;
3927
      }
3928
    }
3929
 
6484 amar.kumar 3930
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
3931
      public getItemAvailabilitiesAtOurWarehouses() {
3932
        super("getItemAvailabilitiesAtOurWarehouses");
3933
      }
3934
 
3935
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
3936
        return new getItemAvailabilitiesAtOurWarehouses_args();
3937
      }
3938
 
3939
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
3940
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
3941
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
3942
        return result;
3943
      }
3944
    }
3945
 
6531 vikram.rag 3946
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
3947
      public getMonitoredWarehouseForVendors() {
3948
        super("getMonitoredWarehouseForVendors");
3949
      }
3950
 
3951
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
3952
        return new getMonitoredWarehouseForVendors_args();
3953
      }
3954
 
3955
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
3956
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
3957
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
3958
        return result;
3959
      }
3960
    }
3961
 
3962
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
3963
      public getIgnoredWarehouseidsAndItemids() {
3964
        super("getIgnoredWarehouseidsAndItemids");
3965
      }
3966
 
3967
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
3968
        return new getIgnoredWarehouseidsAndItemids_args();
3969
      }
3970
 
3971
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
3972
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
3973
        result.success = iface.getIgnoredWarehouseidsAndItemids();
3974
        return result;
3975
      }
3976
    }
3977
 
3978
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
3979
      public insertItemtoIgnoreInventoryUpdatelist() {
3980
        super("insertItemtoIgnoreInventoryUpdatelist");
3981
      }
3982
 
3983
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
3984
        return new insertItemtoIgnoreInventoryUpdatelist_args();
3985
      }
3986
 
3987
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
3988
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
3989
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
3990
        result.setSuccessIsSet(true);
3991
        return result;
3992
      }
3993
    }
3994
 
3995
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
3996
      public deleteItemFromIgnoredInventoryUpdateList() {
3997
        super("deleteItemFromIgnoredInventoryUpdateList");
3998
      }
3999
 
4000
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
4001
        return new deleteItemFromIgnoredInventoryUpdateList_args();
4002
      }
4003
 
4004
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
4005
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
4006
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
4007
        result.setSuccessIsSet(true);
4008
        return result;
4009
      }
4010
    }
4011
 
4012
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
4013
      public getAllIgnoredInventoryupdateItemsCount() {
4014
        super("getAllIgnoredInventoryupdateItemsCount");
4015
      }
4016
 
4017
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
4018
        return new getAllIgnoredInventoryupdateItemsCount_args();
4019
      }
4020
 
4021
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
4022
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
4023
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
4024
        result.setSuccessIsSet(true);
4025
        return result;
4026
      }
4027
    }
4028
 
4029
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
4030
      public getIgnoredInventoryUpdateItemids() {
4031
        super("getIgnoredInventoryUpdateItemids");
4032
      }
4033
 
4034
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
4035
        return new getIgnoredInventoryUpdateItemids_args();
4036
      }
4037
 
4038
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
4039
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
4040
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
4041
        return result;
4042
      }
4043
    }
4044
 
6821 amar.kumar 4045
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
4046
      public updateItemStockPurchaseParams() {
4047
        super("updateItemStockPurchaseParams");
4048
      }
4049
 
4050
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
4051
        return new updateItemStockPurchaseParams_args();
4052
      }
4053
 
4054
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4055
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
4056
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
4057
        return result;
4058
      }
4059
    }
4060
 
4061
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
4062
      public getItemStockPurchaseParams() {
4063
        super("getItemStockPurchaseParams");
4064
      }
4065
 
4066
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
4067
        return new getItemStockPurchaseParams_args();
4068
      }
4069
 
4070
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4071
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
4072
        result.success = iface.getItemStockPurchaseParams(args.itemId);
4073
        return result;
4074
      }
4075
    }
4076
 
4077
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
4078
      public addOosStatusForItem() {
4079
        super("addOosStatusForItem");
4080
      }
4081
 
4082
      protected addOosStatusForItem_args getEmptyArgsInstance() {
4083
        return new addOosStatusForItem_args();
4084
      }
4085
 
4086
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
4087
        addOosStatusForItem_result result = new addOosStatusForItem_result();
4088
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
4089
        return result;
4090
      }
4091
    }
4092
 
5945 mandeep.dh 4093
  }
4094
 
4095
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4097
 
4098
    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);
4099
 
4100
    private Warehouse warehouse; // required
4101
 
4102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4104
      WAREHOUSE((short)1, "warehouse");
4105
 
4106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4107
 
4108
      static {
4109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4110
          byName.put(field.getFieldName(), field);
4111
        }
4112
      }
4113
 
4114
      /**
4115
       * Find the _Fields constant that matches fieldId, or null if its not found.
4116
       */
4117
      public static _Fields findByThriftId(int fieldId) {
4118
        switch(fieldId) {
4119
          case 1: // WAREHOUSE
4120
            return WAREHOUSE;
4121
          default:
4122
            return null;
4123
        }
4124
      }
4125
 
4126
      /**
4127
       * Find the _Fields constant that matches fieldId, throwing an exception
4128
       * if it is not found.
4129
       */
4130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4131
        _Fields fields = findByThriftId(fieldId);
4132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4133
        return fields;
4134
      }
4135
 
4136
      /**
4137
       * Find the _Fields constant that matches name, or null if its not found.
4138
       */
4139
      public static _Fields findByName(String name) {
4140
        return byName.get(name);
4141
      }
4142
 
4143
      private final short _thriftId;
4144
      private final String _fieldName;
4145
 
4146
      _Fields(short thriftId, String fieldName) {
4147
        _thriftId = thriftId;
4148
        _fieldName = fieldName;
4149
      }
4150
 
4151
      public short getThriftFieldId() {
4152
        return _thriftId;
4153
      }
4154
 
4155
      public String getFieldName() {
4156
        return _fieldName;
4157
      }
4158
    }
4159
 
4160
    // isset id assignments
4161
 
4162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4163
    static {
4164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4165
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4166
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
4167
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4168
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
4169
    }
4170
 
4171
    public addWarehouse_args() {
4172
    }
4173
 
4174
    public addWarehouse_args(
4175
      Warehouse warehouse)
4176
    {
4177
      this();
4178
      this.warehouse = warehouse;
4179
    }
4180
 
4181
    /**
4182
     * Performs a deep copy on <i>other</i>.
4183
     */
4184
    public addWarehouse_args(addWarehouse_args other) {
4185
      if (other.isSetWarehouse()) {
4186
        this.warehouse = new Warehouse(other.warehouse);
4187
      }
4188
    }
4189
 
4190
    public addWarehouse_args deepCopy() {
4191
      return new addWarehouse_args(this);
4192
    }
4193
 
4194
    @Override
4195
    public void clear() {
4196
      this.warehouse = null;
4197
    }
4198
 
4199
    public Warehouse getWarehouse() {
4200
      return this.warehouse;
4201
    }
4202
 
4203
    public void setWarehouse(Warehouse warehouse) {
4204
      this.warehouse = warehouse;
4205
    }
4206
 
4207
    public void unsetWarehouse() {
4208
      this.warehouse = null;
4209
    }
4210
 
4211
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
4212
    public boolean isSetWarehouse() {
4213
      return this.warehouse != null;
4214
    }
4215
 
4216
    public void setWarehouseIsSet(boolean value) {
4217
      if (!value) {
4218
        this.warehouse = null;
4219
      }
4220
    }
4221
 
4222
    public void setFieldValue(_Fields field, Object value) {
4223
      switch (field) {
4224
      case WAREHOUSE:
4225
        if (value == null) {
4226
          unsetWarehouse();
4227
        } else {
4228
          setWarehouse((Warehouse)value);
4229
        }
4230
        break;
4231
 
4232
      }
4233
    }
4234
 
4235
    public Object getFieldValue(_Fields field) {
4236
      switch (field) {
4237
      case WAREHOUSE:
4238
        return getWarehouse();
4239
 
4240
      }
4241
      throw new IllegalStateException();
4242
    }
4243
 
4244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4245
    public boolean isSet(_Fields field) {
4246
      if (field == null) {
4247
        throw new IllegalArgumentException();
4248
      }
4249
 
4250
      switch (field) {
4251
      case WAREHOUSE:
4252
        return isSetWarehouse();
4253
      }
4254
      throw new IllegalStateException();
4255
    }
4256
 
4257
    @Override
4258
    public boolean equals(Object that) {
4259
      if (that == null)
4260
        return false;
4261
      if (that instanceof addWarehouse_args)
4262
        return this.equals((addWarehouse_args)that);
4263
      return false;
4264
    }
4265
 
4266
    public boolean equals(addWarehouse_args that) {
4267
      if (that == null)
4268
        return false;
4269
 
4270
      boolean this_present_warehouse = true && this.isSetWarehouse();
4271
      boolean that_present_warehouse = true && that.isSetWarehouse();
4272
      if (this_present_warehouse || that_present_warehouse) {
4273
        if (!(this_present_warehouse && that_present_warehouse))
4274
          return false;
4275
        if (!this.warehouse.equals(that.warehouse))
4276
          return false;
4277
      }
4278
 
4279
      return true;
4280
    }
4281
 
4282
    @Override
4283
    public int hashCode() {
4284
      return 0;
4285
    }
4286
 
4287
    public int compareTo(addWarehouse_args other) {
4288
      if (!getClass().equals(other.getClass())) {
4289
        return getClass().getName().compareTo(other.getClass().getName());
4290
      }
4291
 
4292
      int lastComparison = 0;
4293
      addWarehouse_args typedOther = (addWarehouse_args)other;
4294
 
4295
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
4296
      if (lastComparison != 0) {
4297
        return lastComparison;
4298
      }
4299
      if (isSetWarehouse()) {
4300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
4301
        if (lastComparison != 0) {
4302
          return lastComparison;
4303
        }
4304
      }
4305
      return 0;
4306
    }
4307
 
4308
    public _Fields fieldForId(int fieldId) {
4309
      return _Fields.findByThriftId(fieldId);
4310
    }
4311
 
4312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4313
      org.apache.thrift.protocol.TField field;
4314
      iprot.readStructBegin();
4315
      while (true)
4316
      {
4317
        field = iprot.readFieldBegin();
4318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4319
          break;
4320
        }
4321
        switch (field.id) {
4322
          case 1: // WAREHOUSE
4323
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4324
              this.warehouse = new Warehouse();
4325
              this.warehouse.read(iprot);
4326
            } else { 
4327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4328
            }
4329
            break;
4330
          default:
4331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4332
        }
4333
        iprot.readFieldEnd();
4334
      }
4335
      iprot.readStructEnd();
4336
      validate();
4337
    }
4338
 
4339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4340
      validate();
4341
 
4342
      oprot.writeStructBegin(STRUCT_DESC);
4343
      if (this.warehouse != null) {
4344
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
4345
        this.warehouse.write(oprot);
4346
        oprot.writeFieldEnd();
4347
      }
4348
      oprot.writeFieldStop();
4349
      oprot.writeStructEnd();
4350
    }
4351
 
4352
    @Override
4353
    public String toString() {
4354
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
4355
      boolean first = true;
4356
 
4357
      sb.append("warehouse:");
4358
      if (this.warehouse == null) {
4359
        sb.append("null");
4360
      } else {
4361
        sb.append(this.warehouse);
4362
      }
4363
      first = false;
4364
      sb.append(")");
4365
      return sb.toString();
4366
    }
4367
 
4368
    public void validate() throws org.apache.thrift.TException {
4369
      // check for required fields
4370
    }
4371
 
4372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4373
      try {
4374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4375
      } catch (org.apache.thrift.TException te) {
4376
        throw new java.io.IOException(te);
4377
      }
4378
    }
4379
 
4380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4381
      try {
4382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4383
      } catch (org.apache.thrift.TException te) {
4384
        throw new java.io.IOException(te);
4385
      }
4386
    }
4387
 
4388
  }
4389
 
4390
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
4391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
4392
 
4393
    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);
4394
    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);
4395
 
4396
    private long success; // required
4397
    private InventoryServiceException cex; // required
4398
 
4399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4401
      SUCCESS((short)0, "success"),
4402
      CEX((short)1, "cex");
4403
 
4404
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4405
 
4406
      static {
4407
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4408
          byName.put(field.getFieldName(), field);
4409
        }
4410
      }
4411
 
4412
      /**
4413
       * Find the _Fields constant that matches fieldId, or null if its not found.
4414
       */
4415
      public static _Fields findByThriftId(int fieldId) {
4416
        switch(fieldId) {
4417
          case 0: // SUCCESS
4418
            return SUCCESS;
4419
          case 1: // CEX
4420
            return CEX;
4421
          default:
4422
            return null;
4423
        }
4424
      }
4425
 
4426
      /**
4427
       * Find the _Fields constant that matches fieldId, throwing an exception
4428
       * if it is not found.
4429
       */
4430
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4431
        _Fields fields = findByThriftId(fieldId);
4432
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4433
        return fields;
4434
      }
4435
 
4436
      /**
4437
       * Find the _Fields constant that matches name, or null if its not found.
4438
       */
4439
      public static _Fields findByName(String name) {
4440
        return byName.get(name);
4441
      }
4442
 
4443
      private final short _thriftId;
4444
      private final String _fieldName;
4445
 
4446
      _Fields(short thriftId, String fieldName) {
4447
        _thriftId = thriftId;
4448
        _fieldName = fieldName;
4449
      }
4450
 
4451
      public short getThriftFieldId() {
4452
        return _thriftId;
4453
      }
4454
 
4455
      public String getFieldName() {
4456
        return _fieldName;
4457
      }
4458
    }
4459
 
4460
    // isset id assignments
4461
    private static final int __SUCCESS_ISSET_ID = 0;
4462
    private BitSet __isset_bit_vector = new BitSet(1);
4463
 
4464
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4465
    static {
4466
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4467
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4468
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4469
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4470
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4471
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4472
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
4473
    }
4474
 
4475
    public addWarehouse_result() {
4476
    }
4477
 
4478
    public addWarehouse_result(
4479
      long success,
4480
      InventoryServiceException cex)
4481
    {
4482
      this();
4483
      this.success = success;
4484
      setSuccessIsSet(true);
4485
      this.cex = cex;
4486
    }
4487
 
4488
    /**
4489
     * Performs a deep copy on <i>other</i>.
4490
     */
4491
    public addWarehouse_result(addWarehouse_result other) {
4492
      __isset_bit_vector.clear();
4493
      __isset_bit_vector.or(other.__isset_bit_vector);
4494
      this.success = other.success;
4495
      if (other.isSetCex()) {
4496
        this.cex = new InventoryServiceException(other.cex);
4497
      }
4498
    }
4499
 
4500
    public addWarehouse_result deepCopy() {
4501
      return new addWarehouse_result(this);
4502
    }
4503
 
4504
    @Override
4505
    public void clear() {
4506
      setSuccessIsSet(false);
4507
      this.success = 0;
4508
      this.cex = null;
4509
    }
4510
 
4511
    public long getSuccess() {
4512
      return this.success;
4513
    }
4514
 
4515
    public void setSuccess(long success) {
4516
      this.success = success;
4517
      setSuccessIsSet(true);
4518
    }
4519
 
4520
    public void unsetSuccess() {
4521
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4522
    }
4523
 
4524
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4525
    public boolean isSetSuccess() {
4526
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4527
    }
4528
 
4529
    public void setSuccessIsSet(boolean value) {
4530
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4531
    }
4532
 
4533
    public InventoryServiceException getCex() {
4534
      return this.cex;
4535
    }
4536
 
4537
    public void setCex(InventoryServiceException cex) {
4538
      this.cex = cex;
4539
    }
4540
 
4541
    public void unsetCex() {
4542
      this.cex = null;
4543
    }
4544
 
4545
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
4546
    public boolean isSetCex() {
4547
      return this.cex != null;
4548
    }
4549
 
4550
    public void setCexIsSet(boolean value) {
4551
      if (!value) {
4552
        this.cex = null;
4553
      }
4554
    }
4555
 
4556
    public void setFieldValue(_Fields field, Object value) {
4557
      switch (field) {
4558
      case SUCCESS:
4559
        if (value == null) {
4560
          unsetSuccess();
4561
        } else {
4562
          setSuccess((Long)value);
4563
        }
4564
        break;
4565
 
4566
      case CEX:
4567
        if (value == null) {
4568
          unsetCex();
4569
        } else {
4570
          setCex((InventoryServiceException)value);
4571
        }
4572
        break;
4573
 
4574
      }
4575
    }
4576
 
4577
    public Object getFieldValue(_Fields field) {
4578
      switch (field) {
4579
      case SUCCESS:
4580
        return Long.valueOf(getSuccess());
4581
 
4582
      case CEX:
4583
        return getCex();
4584
 
4585
      }
4586
      throw new IllegalStateException();
4587
    }
4588
 
4589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4590
    public boolean isSet(_Fields field) {
4591
      if (field == null) {
4592
        throw new IllegalArgumentException();
4593
      }
4594
 
4595
      switch (field) {
4596
      case SUCCESS:
4597
        return isSetSuccess();
4598
      case CEX:
4599
        return isSetCex();
4600
      }
4601
      throw new IllegalStateException();
4602
    }
4603
 
4604
    @Override
4605
    public boolean equals(Object that) {
4606
      if (that == null)
4607
        return false;
4608
      if (that instanceof addWarehouse_result)
4609
        return this.equals((addWarehouse_result)that);
4610
      return false;
4611
    }
4612
 
4613
    public boolean equals(addWarehouse_result that) {
4614
      if (that == null)
4615
        return false;
4616
 
4617
      boolean this_present_success = true;
4618
      boolean that_present_success = true;
4619
      if (this_present_success || that_present_success) {
4620
        if (!(this_present_success && that_present_success))
4621
          return false;
4622
        if (this.success != that.success)
4623
          return false;
4624
      }
4625
 
4626
      boolean this_present_cex = true && this.isSetCex();
4627
      boolean that_present_cex = true && that.isSetCex();
4628
      if (this_present_cex || that_present_cex) {
4629
        if (!(this_present_cex && that_present_cex))
4630
          return false;
4631
        if (!this.cex.equals(that.cex))
4632
          return false;
4633
      }
4634
 
4635
      return true;
4636
    }
4637
 
4638
    @Override
4639
    public int hashCode() {
4640
      return 0;
4641
    }
4642
 
4643
    public int compareTo(addWarehouse_result other) {
4644
      if (!getClass().equals(other.getClass())) {
4645
        return getClass().getName().compareTo(other.getClass().getName());
4646
      }
4647
 
4648
      int lastComparison = 0;
4649
      addWarehouse_result typedOther = (addWarehouse_result)other;
4650
 
4651
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4652
      if (lastComparison != 0) {
4653
        return lastComparison;
4654
      }
4655
      if (isSetSuccess()) {
4656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4657
        if (lastComparison != 0) {
4658
          return lastComparison;
4659
        }
4660
      }
4661
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
4662
      if (lastComparison != 0) {
4663
        return lastComparison;
4664
      }
4665
      if (isSetCex()) {
4666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
4667
        if (lastComparison != 0) {
4668
          return lastComparison;
4669
        }
4670
      }
4671
      return 0;
4672
    }
4673
 
4674
    public _Fields fieldForId(int fieldId) {
4675
      return _Fields.findByThriftId(fieldId);
4676
    }
4677
 
4678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4679
      org.apache.thrift.protocol.TField field;
4680
      iprot.readStructBegin();
4681
      while (true)
4682
      {
4683
        field = iprot.readFieldBegin();
4684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4685
          break;
4686
        }
4687
        switch (field.id) {
4688
          case 0: // SUCCESS
4689
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4690
              this.success = iprot.readI64();
4691
              setSuccessIsSet(true);
4692
            } else { 
4693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4694
            }
4695
            break;
4696
          case 1: // CEX
4697
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4698
              this.cex = new InventoryServiceException();
4699
              this.cex.read(iprot);
4700
            } else { 
4701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4702
            }
4703
            break;
4704
          default:
4705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4706
        }
4707
        iprot.readFieldEnd();
4708
      }
4709
      iprot.readStructEnd();
4710
      validate();
4711
    }
4712
 
4713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4714
      oprot.writeStructBegin(STRUCT_DESC);
4715
 
4716
      if (this.isSetSuccess()) {
4717
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4718
        oprot.writeI64(this.success);
4719
        oprot.writeFieldEnd();
4720
      } else if (this.isSetCex()) {
4721
        oprot.writeFieldBegin(CEX_FIELD_DESC);
4722
        this.cex.write(oprot);
4723
        oprot.writeFieldEnd();
4724
      }
4725
      oprot.writeFieldStop();
4726
      oprot.writeStructEnd();
4727
    }
4728
 
4729
    @Override
4730
    public String toString() {
4731
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
4732
      boolean first = true;
4733
 
4734
      sb.append("success:");
4735
      sb.append(this.success);
4736
      first = false;
4737
      if (!first) sb.append(", ");
4738
      sb.append("cex:");
4739
      if (this.cex == null) {
4740
        sb.append("null");
4741
      } else {
4742
        sb.append(this.cex);
4743
      }
4744
      first = false;
4745
      sb.append(")");
4746
      return sb.toString();
4747
    }
4748
 
4749
    public void validate() throws org.apache.thrift.TException {
4750
      // check for required fields
4751
    }
4752
 
4753
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4754
      try {
4755
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4756
      } catch (org.apache.thrift.TException te) {
4757
        throw new java.io.IOException(te);
4758
      }
4759
    }
4760
 
4761
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4762
      try {
4763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4764
      } catch (org.apache.thrift.TException te) {
4765
        throw new java.io.IOException(te);
4766
      }
4767
    }
4768
 
4769
  }
4770
 
4771
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
4772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
4773
 
4774
    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);
4775
 
4776
    private Vendor vendor; // required
4777
 
4778
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4779
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4780
      VENDOR((short)1, "vendor");
4781
 
4782
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4783
 
4784
      static {
4785
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4786
          byName.put(field.getFieldName(), field);
4787
        }
4788
      }
4789
 
4790
      /**
4791
       * Find the _Fields constant that matches fieldId, or null if its not found.
4792
       */
4793
      public static _Fields findByThriftId(int fieldId) {
4794
        switch(fieldId) {
4795
          case 1: // VENDOR
4796
            return VENDOR;
4797
          default:
4798
            return null;
4799
        }
4800
      }
4801
 
4802
      /**
4803
       * Find the _Fields constant that matches fieldId, throwing an exception
4804
       * if it is not found.
4805
       */
4806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4807
        _Fields fields = findByThriftId(fieldId);
4808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4809
        return fields;
4810
      }
4811
 
4812
      /**
4813
       * Find the _Fields constant that matches name, or null if its not found.
4814
       */
4815
      public static _Fields findByName(String name) {
4816
        return byName.get(name);
4817
      }
4818
 
4819
      private final short _thriftId;
4820
      private final String _fieldName;
4821
 
4822
      _Fields(short thriftId, String fieldName) {
4823
        _thriftId = thriftId;
4824
        _fieldName = fieldName;
4825
      }
4826
 
4827
      public short getThriftFieldId() {
4828
        return _thriftId;
4829
      }
4830
 
4831
      public String getFieldName() {
4832
        return _fieldName;
4833
      }
4834
    }
4835
 
4836
    // isset id assignments
4837
 
4838
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4839
    static {
4840
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4841
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4842
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
4843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
4845
    }
4846
 
4847
    public addVendor_args() {
4848
    }
4849
 
4850
    public addVendor_args(
4851
      Vendor vendor)
4852
    {
4853
      this();
4854
      this.vendor = vendor;
4855
    }
4856
 
4857
    /**
4858
     * Performs a deep copy on <i>other</i>.
4859
     */
4860
    public addVendor_args(addVendor_args other) {
4861
      if (other.isSetVendor()) {
4862
        this.vendor = new Vendor(other.vendor);
4863
      }
4864
    }
4865
 
4866
    public addVendor_args deepCopy() {
4867
      return new addVendor_args(this);
4868
    }
4869
 
4870
    @Override
4871
    public void clear() {
4872
      this.vendor = null;
4873
    }
4874
 
4875
    public Vendor getVendor() {
4876
      return this.vendor;
4877
    }
4878
 
4879
    public void setVendor(Vendor vendor) {
4880
      this.vendor = vendor;
4881
    }
4882
 
4883
    public void unsetVendor() {
4884
      this.vendor = null;
4885
    }
4886
 
4887
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
4888
    public boolean isSetVendor() {
4889
      return this.vendor != null;
4890
    }
4891
 
4892
    public void setVendorIsSet(boolean value) {
4893
      if (!value) {
4894
        this.vendor = null;
4895
      }
4896
    }
4897
 
4898
    public void setFieldValue(_Fields field, Object value) {
4899
      switch (field) {
4900
      case VENDOR:
4901
        if (value == null) {
4902
          unsetVendor();
4903
        } else {
4904
          setVendor((Vendor)value);
4905
        }
4906
        break;
4907
 
4908
      }
4909
    }
4910
 
4911
    public Object getFieldValue(_Fields field) {
4912
      switch (field) {
4913
      case VENDOR:
4914
        return getVendor();
4915
 
4916
      }
4917
      throw new IllegalStateException();
4918
    }
4919
 
4920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4921
    public boolean isSet(_Fields field) {
4922
      if (field == null) {
4923
        throw new IllegalArgumentException();
4924
      }
4925
 
4926
      switch (field) {
4927
      case VENDOR:
4928
        return isSetVendor();
4929
      }
4930
      throw new IllegalStateException();
4931
    }
4932
 
4933
    @Override
4934
    public boolean equals(Object that) {
4935
      if (that == null)
4936
        return false;
4937
      if (that instanceof addVendor_args)
4938
        return this.equals((addVendor_args)that);
4939
      return false;
4940
    }
4941
 
4942
    public boolean equals(addVendor_args that) {
4943
      if (that == null)
4944
        return false;
4945
 
4946
      boolean this_present_vendor = true && this.isSetVendor();
4947
      boolean that_present_vendor = true && that.isSetVendor();
4948
      if (this_present_vendor || that_present_vendor) {
4949
        if (!(this_present_vendor && that_present_vendor))
4950
          return false;
4951
        if (!this.vendor.equals(that.vendor))
4952
          return false;
4953
      }
4954
 
4955
      return true;
4956
    }
4957
 
4958
    @Override
4959
    public int hashCode() {
4960
      return 0;
4961
    }
4962
 
4963
    public int compareTo(addVendor_args other) {
4964
      if (!getClass().equals(other.getClass())) {
4965
        return getClass().getName().compareTo(other.getClass().getName());
4966
      }
4967
 
4968
      int lastComparison = 0;
4969
      addVendor_args typedOther = (addVendor_args)other;
4970
 
4971
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
4972
      if (lastComparison != 0) {
4973
        return lastComparison;
4974
      }
4975
      if (isSetVendor()) {
4976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
4977
        if (lastComparison != 0) {
4978
          return lastComparison;
4979
        }
4980
      }
4981
      return 0;
4982
    }
4983
 
4984
    public _Fields fieldForId(int fieldId) {
4985
      return _Fields.findByThriftId(fieldId);
4986
    }
4987
 
4988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4989
      org.apache.thrift.protocol.TField field;
4990
      iprot.readStructBegin();
4991
      while (true)
4992
      {
4993
        field = iprot.readFieldBegin();
4994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4995
          break;
4996
        }
4997
        switch (field.id) {
4998
          case 1: // VENDOR
4999
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5000
              this.vendor = new Vendor();
5001
              this.vendor.read(iprot);
5002
            } else { 
5003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5004
            }
5005
            break;
5006
          default:
5007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5008
        }
5009
        iprot.readFieldEnd();
5010
      }
5011
      iprot.readStructEnd();
5012
      validate();
5013
    }
5014
 
5015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5016
      validate();
5017
 
5018
      oprot.writeStructBegin(STRUCT_DESC);
5019
      if (this.vendor != null) {
5020
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
5021
        this.vendor.write(oprot);
5022
        oprot.writeFieldEnd();
5023
      }
5024
      oprot.writeFieldStop();
5025
      oprot.writeStructEnd();
5026
    }
5027
 
5028
    @Override
5029
    public String toString() {
5030
      StringBuilder sb = new StringBuilder("addVendor_args(");
5031
      boolean first = true;
5032
 
5033
      sb.append("vendor:");
5034
      if (this.vendor == null) {
5035
        sb.append("null");
5036
      } else {
5037
        sb.append(this.vendor);
5038
      }
5039
      first = false;
5040
      sb.append(")");
5041
      return sb.toString();
5042
    }
5043
 
5044
    public void validate() throws org.apache.thrift.TException {
5045
      // check for required fields
5046
    }
5047
 
5048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5049
      try {
5050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5051
      } catch (org.apache.thrift.TException te) {
5052
        throw new java.io.IOException(te);
5053
      }
5054
    }
5055
 
5056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5057
      try {
5058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5059
      } catch (org.apache.thrift.TException te) {
5060
        throw new java.io.IOException(te);
5061
      }
5062
    }
5063
 
5064
  }
5065
 
5066
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
5067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
5068
 
5069
    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);
5070
    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);
5071
 
5072
    private long success; // required
5073
    private InventoryServiceException cex; // required
5074
 
5075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5077
      SUCCESS((short)0, "success"),
5078
      CEX((short)1, "cex");
5079
 
5080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5081
 
5082
      static {
5083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5084
          byName.put(field.getFieldName(), field);
5085
        }
5086
      }
5087
 
5088
      /**
5089
       * Find the _Fields constant that matches fieldId, or null if its not found.
5090
       */
5091
      public static _Fields findByThriftId(int fieldId) {
5092
        switch(fieldId) {
5093
          case 0: // SUCCESS
5094
            return SUCCESS;
5095
          case 1: // CEX
5096
            return CEX;
5097
          default:
5098
            return null;
5099
        }
5100
      }
5101
 
5102
      /**
5103
       * Find the _Fields constant that matches fieldId, throwing an exception
5104
       * if it is not found.
5105
       */
5106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5107
        _Fields fields = findByThriftId(fieldId);
5108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5109
        return fields;
5110
      }
5111
 
5112
      /**
5113
       * Find the _Fields constant that matches name, or null if its not found.
5114
       */
5115
      public static _Fields findByName(String name) {
5116
        return byName.get(name);
5117
      }
5118
 
5119
      private final short _thriftId;
5120
      private final String _fieldName;
5121
 
5122
      _Fields(short thriftId, String fieldName) {
5123
        _thriftId = thriftId;
5124
        _fieldName = fieldName;
5125
      }
5126
 
5127
      public short getThriftFieldId() {
5128
        return _thriftId;
5129
      }
5130
 
5131
      public String getFieldName() {
5132
        return _fieldName;
5133
      }
5134
    }
5135
 
5136
    // isset id assignments
5137
    private static final int __SUCCESS_ISSET_ID = 0;
5138
    private BitSet __isset_bit_vector = new BitSet(1);
5139
 
5140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5141
    static {
5142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5143
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5145
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
5149
    }
5150
 
5151
    public addVendor_result() {
5152
    }
5153
 
5154
    public addVendor_result(
5155
      long success,
5156
      InventoryServiceException cex)
5157
    {
5158
      this();
5159
      this.success = success;
5160
      setSuccessIsSet(true);
5161
      this.cex = cex;
5162
    }
5163
 
5164
    /**
5165
     * Performs a deep copy on <i>other</i>.
5166
     */
5167
    public addVendor_result(addVendor_result other) {
5168
      __isset_bit_vector.clear();
5169
      __isset_bit_vector.or(other.__isset_bit_vector);
5170
      this.success = other.success;
5171
      if (other.isSetCex()) {
5172
        this.cex = new InventoryServiceException(other.cex);
5173
      }
5174
    }
5175
 
5176
    public addVendor_result deepCopy() {
5177
      return new addVendor_result(this);
5178
    }
5179
 
5180
    @Override
5181
    public void clear() {
5182
      setSuccessIsSet(false);
5183
      this.success = 0;
5184
      this.cex = null;
5185
    }
5186
 
5187
    public long getSuccess() {
5188
      return this.success;
5189
    }
5190
 
5191
    public void setSuccess(long success) {
5192
      this.success = success;
5193
      setSuccessIsSet(true);
5194
    }
5195
 
5196
    public void unsetSuccess() {
5197
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5198
    }
5199
 
5200
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5201
    public boolean isSetSuccess() {
5202
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5203
    }
5204
 
5205
    public void setSuccessIsSet(boolean value) {
5206
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5207
    }
5208
 
5209
    public InventoryServiceException getCex() {
5210
      return this.cex;
5211
    }
5212
 
5213
    public void setCex(InventoryServiceException cex) {
5214
      this.cex = cex;
5215
    }
5216
 
5217
    public void unsetCex() {
5218
      this.cex = null;
5219
    }
5220
 
5221
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5222
    public boolean isSetCex() {
5223
      return this.cex != null;
5224
    }
5225
 
5226
    public void setCexIsSet(boolean value) {
5227
      if (!value) {
5228
        this.cex = null;
5229
      }
5230
    }
5231
 
5232
    public void setFieldValue(_Fields field, Object value) {
5233
      switch (field) {
5234
      case SUCCESS:
5235
        if (value == null) {
5236
          unsetSuccess();
5237
        } else {
5238
          setSuccess((Long)value);
5239
        }
5240
        break;
5241
 
5242
      case CEX:
5243
        if (value == null) {
5244
          unsetCex();
5245
        } else {
5246
          setCex((InventoryServiceException)value);
5247
        }
5248
        break;
5249
 
5250
      }
5251
    }
5252
 
5253
    public Object getFieldValue(_Fields field) {
5254
      switch (field) {
5255
      case SUCCESS:
5256
        return Long.valueOf(getSuccess());
5257
 
5258
      case CEX:
5259
        return getCex();
5260
 
5261
      }
5262
      throw new IllegalStateException();
5263
    }
5264
 
5265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5266
    public boolean isSet(_Fields field) {
5267
      if (field == null) {
5268
        throw new IllegalArgumentException();
5269
      }
5270
 
5271
      switch (field) {
5272
      case SUCCESS:
5273
        return isSetSuccess();
5274
      case CEX:
5275
        return isSetCex();
5276
      }
5277
      throw new IllegalStateException();
5278
    }
5279
 
5280
    @Override
5281
    public boolean equals(Object that) {
5282
      if (that == null)
5283
        return false;
5284
      if (that instanceof addVendor_result)
5285
        return this.equals((addVendor_result)that);
5286
      return false;
5287
    }
5288
 
5289
    public boolean equals(addVendor_result that) {
5290
      if (that == null)
5291
        return false;
5292
 
5293
      boolean this_present_success = true;
5294
      boolean that_present_success = true;
5295
      if (this_present_success || that_present_success) {
5296
        if (!(this_present_success && that_present_success))
5297
          return false;
5298
        if (this.success != that.success)
5299
          return false;
5300
      }
5301
 
5302
      boolean this_present_cex = true && this.isSetCex();
5303
      boolean that_present_cex = true && that.isSetCex();
5304
      if (this_present_cex || that_present_cex) {
5305
        if (!(this_present_cex && that_present_cex))
5306
          return false;
5307
        if (!this.cex.equals(that.cex))
5308
          return false;
5309
      }
5310
 
5311
      return true;
5312
    }
5313
 
5314
    @Override
5315
    public int hashCode() {
5316
      return 0;
5317
    }
5318
 
5319
    public int compareTo(addVendor_result other) {
5320
      if (!getClass().equals(other.getClass())) {
5321
        return getClass().getName().compareTo(other.getClass().getName());
5322
      }
5323
 
5324
      int lastComparison = 0;
5325
      addVendor_result typedOther = (addVendor_result)other;
5326
 
5327
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5328
      if (lastComparison != 0) {
5329
        return lastComparison;
5330
      }
5331
      if (isSetSuccess()) {
5332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5333
        if (lastComparison != 0) {
5334
          return lastComparison;
5335
        }
5336
      }
5337
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5338
      if (lastComparison != 0) {
5339
        return lastComparison;
5340
      }
5341
      if (isSetCex()) {
5342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5343
        if (lastComparison != 0) {
5344
          return lastComparison;
5345
        }
5346
      }
5347
      return 0;
5348
    }
5349
 
5350
    public _Fields fieldForId(int fieldId) {
5351
      return _Fields.findByThriftId(fieldId);
5352
    }
5353
 
5354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5355
      org.apache.thrift.protocol.TField field;
5356
      iprot.readStructBegin();
5357
      while (true)
5358
      {
5359
        field = iprot.readFieldBegin();
5360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5361
          break;
5362
        }
5363
        switch (field.id) {
5364
          case 0: // SUCCESS
5365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5366
              this.success = iprot.readI64();
5367
              setSuccessIsSet(true);
5368
            } else { 
5369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5370
            }
5371
            break;
5372
          case 1: // CEX
5373
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5374
              this.cex = new InventoryServiceException();
5375
              this.cex.read(iprot);
5376
            } else { 
5377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5378
            }
5379
            break;
5380
          default:
5381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5382
        }
5383
        iprot.readFieldEnd();
5384
      }
5385
      iprot.readStructEnd();
5386
      validate();
5387
    }
5388
 
5389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5390
      oprot.writeStructBegin(STRUCT_DESC);
5391
 
5392
      if (this.isSetSuccess()) {
5393
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5394
        oprot.writeI64(this.success);
5395
        oprot.writeFieldEnd();
5396
      } else if (this.isSetCex()) {
5397
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5398
        this.cex.write(oprot);
5399
        oprot.writeFieldEnd();
5400
      }
5401
      oprot.writeFieldStop();
5402
      oprot.writeStructEnd();
5403
    }
5404
 
5405
    @Override
5406
    public String toString() {
5407
      StringBuilder sb = new StringBuilder("addVendor_result(");
5408
      boolean first = true;
5409
 
5410
      sb.append("success:");
5411
      sb.append(this.success);
5412
      first = false;
5413
      if (!first) sb.append(", ");
5414
      sb.append("cex:");
5415
      if (this.cex == null) {
5416
        sb.append("null");
5417
      } else {
5418
        sb.append(this.cex);
5419
      }
5420
      first = false;
5421
      sb.append(")");
5422
      return sb.toString();
5423
    }
5424
 
5425
    public void validate() throws org.apache.thrift.TException {
5426
      // check for required fields
5427
    }
5428
 
5429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5430
      try {
5431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5432
      } catch (org.apache.thrift.TException te) {
5433
        throw new java.io.IOException(te);
5434
      }
5435
    }
5436
 
5437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5438
      try {
5439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5440
      } catch (org.apache.thrift.TException te) {
5441
        throw new java.io.IOException(te);
5442
      }
5443
    }
5444
 
5445
  }
5446
 
5447
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
5448
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
5449
 
5450
    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);
5451
    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);
5452
    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);
5453
 
5454
    private long warehouse_id; // required
5455
    private String timestamp; // required
5456
    private Map<String,Long> availability; // required
5457
 
5458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5460
      WAREHOUSE_ID((short)1, "warehouse_id"),
5461
      TIMESTAMP((short)2, "timestamp"),
5462
      AVAILABILITY((short)3, "availability");
5463
 
5464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5465
 
5466
      static {
5467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5468
          byName.put(field.getFieldName(), field);
5469
        }
5470
      }
5471
 
5472
      /**
5473
       * Find the _Fields constant that matches fieldId, or null if its not found.
5474
       */
5475
      public static _Fields findByThriftId(int fieldId) {
5476
        switch(fieldId) {
5477
          case 1: // WAREHOUSE_ID
5478
            return WAREHOUSE_ID;
5479
          case 2: // TIMESTAMP
5480
            return TIMESTAMP;
5481
          case 3: // AVAILABILITY
5482
            return AVAILABILITY;
5483
          default:
5484
            return null;
5485
        }
5486
      }
5487
 
5488
      /**
5489
       * Find the _Fields constant that matches fieldId, throwing an exception
5490
       * if it is not found.
5491
       */
5492
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5493
        _Fields fields = findByThriftId(fieldId);
5494
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5495
        return fields;
5496
      }
5497
 
5498
      /**
5499
       * Find the _Fields constant that matches name, or null if its not found.
5500
       */
5501
      public static _Fields findByName(String name) {
5502
        return byName.get(name);
5503
      }
5504
 
5505
      private final short _thriftId;
5506
      private final String _fieldName;
5507
 
5508
      _Fields(short thriftId, String fieldName) {
5509
        _thriftId = thriftId;
5510
        _fieldName = fieldName;
5511
      }
5512
 
5513
      public short getThriftFieldId() {
5514
        return _thriftId;
5515
      }
5516
 
5517
      public String getFieldName() {
5518
        return _fieldName;
5519
      }
5520
    }
5521
 
5522
    // isset id assignments
5523
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
5524
    private BitSet __isset_bit_vector = new BitSet(1);
5525
 
5526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5527
    static {
5528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5529
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5531
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5533
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5534
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
5535
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
5536
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
5537
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5538
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
5539
    }
5540
 
5541
    public updateInventoryHistory_args() {
5542
    }
5543
 
5544
    public updateInventoryHistory_args(
5545
      long warehouse_id,
5546
      String timestamp,
5547
      Map<String,Long> availability)
5548
    {
5549
      this();
5550
      this.warehouse_id = warehouse_id;
5551
      setWarehouse_idIsSet(true);
5552
      this.timestamp = timestamp;
5553
      this.availability = availability;
5554
    }
5555
 
5556
    /**
5557
     * Performs a deep copy on <i>other</i>.
5558
     */
5559
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
5560
      __isset_bit_vector.clear();
5561
      __isset_bit_vector.or(other.__isset_bit_vector);
5562
      this.warehouse_id = other.warehouse_id;
5563
      if (other.isSetTimestamp()) {
5564
        this.timestamp = other.timestamp;
5565
      }
5566
      if (other.isSetAvailability()) {
5567
        Map<String,Long> __this__availability = new HashMap<String,Long>();
5568
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
5569
 
5570
          String other_element_key = other_element.getKey();
5571
          Long other_element_value = other_element.getValue();
5572
 
5573
          String __this__availability_copy_key = other_element_key;
5574
 
5575
          Long __this__availability_copy_value = other_element_value;
5576
 
5577
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
5578
        }
5579
        this.availability = __this__availability;
5580
      }
5581
    }
5582
 
5583
    public updateInventoryHistory_args deepCopy() {
5584
      return new updateInventoryHistory_args(this);
5585
    }
5586
 
5587
    @Override
5588
    public void clear() {
5589
      setWarehouse_idIsSet(false);
5590
      this.warehouse_id = 0;
5591
      this.timestamp = null;
5592
      this.availability = null;
5593
    }
5594
 
5595
    public long getWarehouse_id() {
5596
      return this.warehouse_id;
5597
    }
5598
 
5599
    public void setWarehouse_id(long warehouse_id) {
5600
      this.warehouse_id = warehouse_id;
5601
      setWarehouse_idIsSet(true);
5602
    }
5603
 
5604
    public void unsetWarehouse_id() {
5605
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
5606
    }
5607
 
5608
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
5609
    public boolean isSetWarehouse_id() {
5610
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
5611
    }
5612
 
5613
    public void setWarehouse_idIsSet(boolean value) {
5614
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
5615
    }
5616
 
5617
    public String getTimestamp() {
5618
      return this.timestamp;
5619
    }
5620
 
5621
    public void setTimestamp(String timestamp) {
5622
      this.timestamp = timestamp;
5623
    }
5624
 
5625
    public void unsetTimestamp() {
5626
      this.timestamp = null;
5627
    }
5628
 
5629
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
5630
    public boolean isSetTimestamp() {
5631
      return this.timestamp != null;
5632
    }
5633
 
5634
    public void setTimestampIsSet(boolean value) {
5635
      if (!value) {
5636
        this.timestamp = null;
5637
      }
5638
    }
5639
 
5640
    public int getAvailabilitySize() {
5641
      return (this.availability == null) ? 0 : this.availability.size();
5642
    }
5643
 
5644
    public void putToAvailability(String key, long val) {
5645
      if (this.availability == null) {
5646
        this.availability = new HashMap<String,Long>();
5647
      }
5648
      this.availability.put(key, val);
5649
    }
5650
 
5651
    public Map<String,Long> getAvailability() {
5652
      return this.availability;
5653
    }
5654
 
5655
    public void setAvailability(Map<String,Long> availability) {
5656
      this.availability = availability;
5657
    }
5658
 
5659
    public void unsetAvailability() {
5660
      this.availability = null;
5661
    }
5662
 
5663
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
5664
    public boolean isSetAvailability() {
5665
      return this.availability != null;
5666
    }
5667
 
5668
    public void setAvailabilityIsSet(boolean value) {
5669
      if (!value) {
5670
        this.availability = null;
5671
      }
5672
    }
5673
 
5674
    public void setFieldValue(_Fields field, Object value) {
5675
      switch (field) {
5676
      case WAREHOUSE_ID:
5677
        if (value == null) {
5678
          unsetWarehouse_id();
5679
        } else {
5680
          setWarehouse_id((Long)value);
5681
        }
5682
        break;
5683
 
5684
      case TIMESTAMP:
5685
        if (value == null) {
5686
          unsetTimestamp();
5687
        } else {
5688
          setTimestamp((String)value);
5689
        }
5690
        break;
5691
 
5692
      case AVAILABILITY:
5693
        if (value == null) {
5694
          unsetAvailability();
5695
        } else {
5696
          setAvailability((Map<String,Long>)value);
5697
        }
5698
        break;
5699
 
5700
      }
5701
    }
5702
 
5703
    public Object getFieldValue(_Fields field) {
5704
      switch (field) {
5705
      case WAREHOUSE_ID:
5706
        return Long.valueOf(getWarehouse_id());
5707
 
5708
      case TIMESTAMP:
5709
        return getTimestamp();
5710
 
5711
      case AVAILABILITY:
5712
        return getAvailability();
5713
 
5714
      }
5715
      throw new IllegalStateException();
5716
    }
5717
 
5718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5719
    public boolean isSet(_Fields field) {
5720
      if (field == null) {
5721
        throw new IllegalArgumentException();
5722
      }
5723
 
5724
      switch (field) {
5725
      case WAREHOUSE_ID:
5726
        return isSetWarehouse_id();
5727
      case TIMESTAMP:
5728
        return isSetTimestamp();
5729
      case AVAILABILITY:
5730
        return isSetAvailability();
5731
      }
5732
      throw new IllegalStateException();
5733
    }
5734
 
5735
    @Override
5736
    public boolean equals(Object that) {
5737
      if (that == null)
5738
        return false;
5739
      if (that instanceof updateInventoryHistory_args)
5740
        return this.equals((updateInventoryHistory_args)that);
5741
      return false;
5742
    }
5743
 
5744
    public boolean equals(updateInventoryHistory_args that) {
5745
      if (that == null)
5746
        return false;
5747
 
5748
      boolean this_present_warehouse_id = true;
5749
      boolean that_present_warehouse_id = true;
5750
      if (this_present_warehouse_id || that_present_warehouse_id) {
5751
        if (!(this_present_warehouse_id && that_present_warehouse_id))
5752
          return false;
5753
        if (this.warehouse_id != that.warehouse_id)
5754
          return false;
5755
      }
5756
 
5757
      boolean this_present_timestamp = true && this.isSetTimestamp();
5758
      boolean that_present_timestamp = true && that.isSetTimestamp();
5759
      if (this_present_timestamp || that_present_timestamp) {
5760
        if (!(this_present_timestamp && that_present_timestamp))
5761
          return false;
5762
        if (!this.timestamp.equals(that.timestamp))
5763
          return false;
5764
      }
5765
 
5766
      boolean this_present_availability = true && this.isSetAvailability();
5767
      boolean that_present_availability = true && that.isSetAvailability();
5768
      if (this_present_availability || that_present_availability) {
5769
        if (!(this_present_availability && that_present_availability))
5770
          return false;
5771
        if (!this.availability.equals(that.availability))
5772
          return false;
5773
      }
5774
 
5775
      return true;
5776
    }
5777
 
5778
    @Override
5779
    public int hashCode() {
5780
      return 0;
5781
    }
5782
 
5783
    public int compareTo(updateInventoryHistory_args other) {
5784
      if (!getClass().equals(other.getClass())) {
5785
        return getClass().getName().compareTo(other.getClass().getName());
5786
      }
5787
 
5788
      int lastComparison = 0;
5789
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
5790
 
5791
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5792
      if (lastComparison != 0) {
5793
        return lastComparison;
5794
      }
5795
      if (isSetWarehouse_id()) {
5796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5797
        if (lastComparison != 0) {
5798
          return lastComparison;
5799
        }
5800
      }
5801
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5802
      if (lastComparison != 0) {
5803
        return lastComparison;
5804
      }
5805
      if (isSetTimestamp()) {
5806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5807
        if (lastComparison != 0) {
5808
          return lastComparison;
5809
        }
5810
      }
5811
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5812
      if (lastComparison != 0) {
5813
        return lastComparison;
5814
      }
5815
      if (isSetAvailability()) {
5816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5817
        if (lastComparison != 0) {
5818
          return lastComparison;
5819
        }
5820
      }
5821
      return 0;
5822
    }
5823
 
5824
    public _Fields fieldForId(int fieldId) {
5825
      return _Fields.findByThriftId(fieldId);
5826
    }
5827
 
5828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5829
      org.apache.thrift.protocol.TField field;
5830
      iprot.readStructBegin();
5831
      while (true)
5832
      {
5833
        field = iprot.readFieldBegin();
5834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5835
          break;
5836
        }
5837
        switch (field.id) {
5838
          case 1: // WAREHOUSE_ID
5839
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5840
              this.warehouse_id = iprot.readI64();
5841
              setWarehouse_idIsSet(true);
5842
            } else { 
5843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5844
            }
5845
            break;
5846
          case 2: // TIMESTAMP
5847
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5848
              this.timestamp = iprot.readString();
5849
            } else { 
5850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5851
            }
5852
            break;
5853
          case 3: // AVAILABILITY
5854
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5855
              {
5856
                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
5857
                this.availability = new HashMap<String,Long>(2*_map10.size);
5858
                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
5859
                {
5860
                  String _key12; // required
5861
                  long _val13; // required
5862
                  _key12 = iprot.readString();
5863
                  _val13 = iprot.readI64();
5864
                  this.availability.put(_key12, _val13);
5865
                }
5866
                iprot.readMapEnd();
5867
              }
5868
            } else { 
5869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5870
            }
5871
            break;
5872
          default:
5873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5874
        }
5875
        iprot.readFieldEnd();
5876
      }
5877
      iprot.readStructEnd();
5878
      validate();
5879
    }
5880
 
5881
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5882
      validate();
5883
 
5884
      oprot.writeStructBegin(STRUCT_DESC);
5885
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5886
      oprot.writeI64(this.warehouse_id);
5887
      oprot.writeFieldEnd();
5888
      if (this.timestamp != null) {
5889
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
5890
        oprot.writeString(this.timestamp);
5891
        oprot.writeFieldEnd();
5892
      }
5893
      if (this.availability != null) {
5894
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5895
        {
5896
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
5897
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
5898
          {
5899
            oprot.writeString(_iter14.getKey());
5900
            oprot.writeI64(_iter14.getValue());
5901
          }
5902
          oprot.writeMapEnd();
5903
        }
5904
        oprot.writeFieldEnd();
5905
      }
5906
      oprot.writeFieldStop();
5907
      oprot.writeStructEnd();
5908
    }
5909
 
5910
    @Override
5911
    public String toString() {
5912
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
5913
      boolean first = true;
5914
 
5915
      sb.append("warehouse_id:");
5916
      sb.append(this.warehouse_id);
5917
      first = false;
5918
      if (!first) sb.append(", ");
5919
      sb.append("timestamp:");
5920
      if (this.timestamp == null) {
5921
        sb.append("null");
5922
      } else {
5923
        sb.append(this.timestamp);
5924
      }
5925
      first = false;
5926
      if (!first) sb.append(", ");
5927
      sb.append("availability:");
5928
      if (this.availability == null) {
5929
        sb.append("null");
5930
      } else {
5931
        sb.append(this.availability);
5932
      }
5933
      first = false;
5934
      sb.append(")");
5935
      return sb.toString();
5936
    }
5937
 
5938
    public void validate() throws org.apache.thrift.TException {
5939
      // check for required fields
5940
    }
5941
 
5942
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5943
      try {
5944
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5945
      } catch (org.apache.thrift.TException te) {
5946
        throw new java.io.IOException(te);
5947
      }
5948
    }
5949
 
5950
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5951
      try {
5952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5953
      } catch (org.apache.thrift.TException te) {
5954
        throw new java.io.IOException(te);
5955
      }
5956
    }
5957
 
5958
  }
5959
 
5960
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
5961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
5962
 
5963
    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);
5964
 
5965
    private InventoryServiceException cex; // required
5966
 
5967
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5968
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5969
      CEX((short)1, "cex");
5970
 
5971
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5972
 
5973
      static {
5974
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5975
          byName.put(field.getFieldName(), field);
5976
        }
5977
      }
5978
 
5979
      /**
5980
       * Find the _Fields constant that matches fieldId, or null if its not found.
5981
       */
5982
      public static _Fields findByThriftId(int fieldId) {
5983
        switch(fieldId) {
5984
          case 1: // CEX
5985
            return CEX;
5986
          default:
5987
            return null;
5988
        }
5989
      }
5990
 
5991
      /**
5992
       * Find the _Fields constant that matches fieldId, throwing an exception
5993
       * if it is not found.
5994
       */
5995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5996
        _Fields fields = findByThriftId(fieldId);
5997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5998
        return fields;
5999
      }
6000
 
6001
      /**
6002
       * Find the _Fields constant that matches name, or null if its not found.
6003
       */
6004
      public static _Fields findByName(String name) {
6005
        return byName.get(name);
6006
      }
6007
 
6008
      private final short _thriftId;
6009
      private final String _fieldName;
6010
 
6011
      _Fields(short thriftId, String fieldName) {
6012
        _thriftId = thriftId;
6013
        _fieldName = fieldName;
6014
      }
6015
 
6016
      public short getThriftFieldId() {
6017
        return _thriftId;
6018
      }
6019
 
6020
      public String getFieldName() {
6021
        return _fieldName;
6022
      }
6023
    }
6024
 
6025
    // isset id assignments
6026
 
6027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6028
    static {
6029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6030
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6031
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6032
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6033
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
6034
    }
6035
 
6036
    public updateInventoryHistory_result() {
6037
    }
6038
 
6039
    public updateInventoryHistory_result(
6040
      InventoryServiceException cex)
6041
    {
6042
      this();
6043
      this.cex = cex;
6044
    }
6045
 
6046
    /**
6047
     * Performs a deep copy on <i>other</i>.
6048
     */
6049
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
6050
      if (other.isSetCex()) {
6051
        this.cex = new InventoryServiceException(other.cex);
6052
      }
6053
    }
6054
 
6055
    public updateInventoryHistory_result deepCopy() {
6056
      return new updateInventoryHistory_result(this);
6057
    }
6058
 
6059
    @Override
6060
    public void clear() {
6061
      this.cex = null;
6062
    }
6063
 
6064
    public InventoryServiceException getCex() {
6065
      return this.cex;
6066
    }
6067
 
6068
    public void setCex(InventoryServiceException cex) {
6069
      this.cex = cex;
6070
    }
6071
 
6072
    public void unsetCex() {
6073
      this.cex = null;
6074
    }
6075
 
6076
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6077
    public boolean isSetCex() {
6078
      return this.cex != null;
6079
    }
6080
 
6081
    public void setCexIsSet(boolean value) {
6082
      if (!value) {
6083
        this.cex = null;
6084
      }
6085
    }
6086
 
6087
    public void setFieldValue(_Fields field, Object value) {
6088
      switch (field) {
6089
      case CEX:
6090
        if (value == null) {
6091
          unsetCex();
6092
        } else {
6093
          setCex((InventoryServiceException)value);
6094
        }
6095
        break;
6096
 
6097
      }
6098
    }
6099
 
6100
    public Object getFieldValue(_Fields field) {
6101
      switch (field) {
6102
      case CEX:
6103
        return getCex();
6104
 
6105
      }
6106
      throw new IllegalStateException();
6107
    }
6108
 
6109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6110
    public boolean isSet(_Fields field) {
6111
      if (field == null) {
6112
        throw new IllegalArgumentException();
6113
      }
6114
 
6115
      switch (field) {
6116
      case CEX:
6117
        return isSetCex();
6118
      }
6119
      throw new IllegalStateException();
6120
    }
6121
 
6122
    @Override
6123
    public boolean equals(Object that) {
6124
      if (that == null)
6125
        return false;
6126
      if (that instanceof updateInventoryHistory_result)
6127
        return this.equals((updateInventoryHistory_result)that);
6128
      return false;
6129
    }
6130
 
6131
    public boolean equals(updateInventoryHistory_result that) {
6132
      if (that == null)
6133
        return false;
6134
 
6135
      boolean this_present_cex = true && this.isSetCex();
6136
      boolean that_present_cex = true && that.isSetCex();
6137
      if (this_present_cex || that_present_cex) {
6138
        if (!(this_present_cex && that_present_cex))
6139
          return false;
6140
        if (!this.cex.equals(that.cex))
6141
          return false;
6142
      }
6143
 
6144
      return true;
6145
    }
6146
 
6147
    @Override
6148
    public int hashCode() {
6149
      return 0;
6150
    }
6151
 
6152
    public int compareTo(updateInventoryHistory_result other) {
6153
      if (!getClass().equals(other.getClass())) {
6154
        return getClass().getName().compareTo(other.getClass().getName());
6155
      }
6156
 
6157
      int lastComparison = 0;
6158
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
6159
 
6160
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6161
      if (lastComparison != 0) {
6162
        return lastComparison;
6163
      }
6164
      if (isSetCex()) {
6165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6166
        if (lastComparison != 0) {
6167
          return lastComparison;
6168
        }
6169
      }
6170
      return 0;
6171
    }
6172
 
6173
    public _Fields fieldForId(int fieldId) {
6174
      return _Fields.findByThriftId(fieldId);
6175
    }
6176
 
6177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6178
      org.apache.thrift.protocol.TField field;
6179
      iprot.readStructBegin();
6180
      while (true)
6181
      {
6182
        field = iprot.readFieldBegin();
6183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6184
          break;
6185
        }
6186
        switch (field.id) {
6187
          case 1: // CEX
6188
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6189
              this.cex = new InventoryServiceException();
6190
              this.cex.read(iprot);
6191
            } else { 
6192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6193
            }
6194
            break;
6195
          default:
6196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6197
        }
6198
        iprot.readFieldEnd();
6199
      }
6200
      iprot.readStructEnd();
6201
      validate();
6202
    }
6203
 
6204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6205
      oprot.writeStructBegin(STRUCT_DESC);
6206
 
6207
      if (this.isSetCex()) {
6208
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6209
        this.cex.write(oprot);
6210
        oprot.writeFieldEnd();
6211
      }
6212
      oprot.writeFieldStop();
6213
      oprot.writeStructEnd();
6214
    }
6215
 
6216
    @Override
6217
    public String toString() {
6218
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
6219
      boolean first = true;
6220
 
6221
      sb.append("cex:");
6222
      if (this.cex == null) {
6223
        sb.append("null");
6224
      } else {
6225
        sb.append(this.cex);
6226
      }
6227
      first = false;
6228
      sb.append(")");
6229
      return sb.toString();
6230
    }
6231
 
6232
    public void validate() throws org.apache.thrift.TException {
6233
      // check for required fields
6234
    }
6235
 
6236
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6237
      try {
6238
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6239
      } catch (org.apache.thrift.TException te) {
6240
        throw new java.io.IOException(te);
6241
      }
6242
    }
6243
 
6244
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6245
      try {
6246
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6247
      } catch (org.apache.thrift.TException te) {
6248
        throw new java.io.IOException(te);
6249
      }
6250
    }
6251
 
6252
  }
6253
 
6254
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
6255
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
6256
 
6257
    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);
6258
    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);
6259
    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);
6260
 
6261
    private long warehouse_id; // required
6262
    private String timestamp; // required
6263
    private Map<String,Long> availability; // required
6264
 
6265
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6266
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6267
      WAREHOUSE_ID((short)1, "warehouse_id"),
6268
      TIMESTAMP((short)2, "timestamp"),
6269
      AVAILABILITY((short)3, "availability");
6270
 
6271
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6272
 
6273
      static {
6274
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6275
          byName.put(field.getFieldName(), field);
6276
        }
6277
      }
6278
 
6279
      /**
6280
       * Find the _Fields constant that matches fieldId, or null if its not found.
6281
       */
6282
      public static _Fields findByThriftId(int fieldId) {
6283
        switch(fieldId) {
6284
          case 1: // WAREHOUSE_ID
6285
            return WAREHOUSE_ID;
6286
          case 2: // TIMESTAMP
6287
            return TIMESTAMP;
6288
          case 3: // AVAILABILITY
6289
            return AVAILABILITY;
6290
          default:
6291
            return null;
6292
        }
6293
      }
6294
 
6295
      /**
6296
       * Find the _Fields constant that matches fieldId, throwing an exception
6297
       * if it is not found.
6298
       */
6299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6300
        _Fields fields = findByThriftId(fieldId);
6301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6302
        return fields;
6303
      }
6304
 
6305
      /**
6306
       * Find the _Fields constant that matches name, or null if its not found.
6307
       */
6308
      public static _Fields findByName(String name) {
6309
        return byName.get(name);
6310
      }
6311
 
6312
      private final short _thriftId;
6313
      private final String _fieldName;
6314
 
6315
      _Fields(short thriftId, String fieldName) {
6316
        _thriftId = thriftId;
6317
        _fieldName = fieldName;
6318
      }
6319
 
6320
      public short getThriftFieldId() {
6321
        return _thriftId;
6322
      }
6323
 
6324
      public String getFieldName() {
6325
        return _fieldName;
6326
      }
6327
    }
6328
 
6329
    // isset id assignments
6330
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6331
    private BitSet __isset_bit_vector = new BitSet(1);
6332
 
6333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6334
    static {
6335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6336
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6338
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6340
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6341
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6342
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6343
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
6346
    }
6347
 
6348
    public updateInventory_args() {
6349
    }
6350
 
6351
    public updateInventory_args(
6352
      long warehouse_id,
6353
      String timestamp,
6354
      Map<String,Long> availability)
6355
    {
6356
      this();
6357
      this.warehouse_id = warehouse_id;
6358
      setWarehouse_idIsSet(true);
6359
      this.timestamp = timestamp;
6360
      this.availability = availability;
6361
    }
6362
 
6363
    /**
6364
     * Performs a deep copy on <i>other</i>.
6365
     */
6366
    public updateInventory_args(updateInventory_args other) {
6367
      __isset_bit_vector.clear();
6368
      __isset_bit_vector.or(other.__isset_bit_vector);
6369
      this.warehouse_id = other.warehouse_id;
6370
      if (other.isSetTimestamp()) {
6371
        this.timestamp = other.timestamp;
6372
      }
6373
      if (other.isSetAvailability()) {
6374
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6375
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6376
 
6377
          String other_element_key = other_element.getKey();
6378
          Long other_element_value = other_element.getValue();
6379
 
6380
          String __this__availability_copy_key = other_element_key;
6381
 
6382
          Long __this__availability_copy_value = other_element_value;
6383
 
6384
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6385
        }
6386
        this.availability = __this__availability;
6387
      }
6388
    }
6389
 
6390
    public updateInventory_args deepCopy() {
6391
      return new updateInventory_args(this);
6392
    }
6393
 
6394
    @Override
6395
    public void clear() {
6396
      setWarehouse_idIsSet(false);
6397
      this.warehouse_id = 0;
6398
      this.timestamp = null;
6399
      this.availability = null;
6400
    }
6401
 
6402
    public long getWarehouse_id() {
6403
      return this.warehouse_id;
6404
    }
6405
 
6406
    public void setWarehouse_id(long warehouse_id) {
6407
      this.warehouse_id = warehouse_id;
6408
      setWarehouse_idIsSet(true);
6409
    }
6410
 
6411
    public void unsetWarehouse_id() {
6412
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6413
    }
6414
 
6415
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6416
    public boolean isSetWarehouse_id() {
6417
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6418
    }
6419
 
6420
    public void setWarehouse_idIsSet(boolean value) {
6421
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6422
    }
6423
 
6424
    public String getTimestamp() {
6425
      return this.timestamp;
6426
    }
6427
 
6428
    public void setTimestamp(String timestamp) {
6429
      this.timestamp = timestamp;
6430
    }
6431
 
6432
    public void unsetTimestamp() {
6433
      this.timestamp = null;
6434
    }
6435
 
6436
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6437
    public boolean isSetTimestamp() {
6438
      return this.timestamp != null;
6439
    }
6440
 
6441
    public void setTimestampIsSet(boolean value) {
6442
      if (!value) {
6443
        this.timestamp = null;
6444
      }
6445
    }
6446
 
6447
    public int getAvailabilitySize() {
6448
      return (this.availability == null) ? 0 : this.availability.size();
6449
    }
6450
 
6451
    public void putToAvailability(String key, long val) {
6452
      if (this.availability == null) {
6453
        this.availability = new HashMap<String,Long>();
6454
      }
6455
      this.availability.put(key, val);
6456
    }
6457
 
6458
    public Map<String,Long> getAvailability() {
6459
      return this.availability;
6460
    }
6461
 
6462
    public void setAvailability(Map<String,Long> availability) {
6463
      this.availability = availability;
6464
    }
6465
 
6466
    public void unsetAvailability() {
6467
      this.availability = null;
6468
    }
6469
 
6470
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
6471
    public boolean isSetAvailability() {
6472
      return this.availability != null;
6473
    }
6474
 
6475
    public void setAvailabilityIsSet(boolean value) {
6476
      if (!value) {
6477
        this.availability = null;
6478
      }
6479
    }
6480
 
6481
    public void setFieldValue(_Fields field, Object value) {
6482
      switch (field) {
6483
      case WAREHOUSE_ID:
6484
        if (value == null) {
6485
          unsetWarehouse_id();
6486
        } else {
6487
          setWarehouse_id((Long)value);
6488
        }
6489
        break;
6490
 
6491
      case TIMESTAMP:
6492
        if (value == null) {
6493
          unsetTimestamp();
6494
        } else {
6495
          setTimestamp((String)value);
6496
        }
6497
        break;
6498
 
6499
      case AVAILABILITY:
6500
        if (value == null) {
6501
          unsetAvailability();
6502
        } else {
6503
          setAvailability((Map<String,Long>)value);
6504
        }
6505
        break;
6506
 
6507
      }
6508
    }
6509
 
6510
    public Object getFieldValue(_Fields field) {
6511
      switch (field) {
6512
      case WAREHOUSE_ID:
6513
        return Long.valueOf(getWarehouse_id());
6514
 
6515
      case TIMESTAMP:
6516
        return getTimestamp();
6517
 
6518
      case AVAILABILITY:
6519
        return getAvailability();
6520
 
6521
      }
6522
      throw new IllegalStateException();
6523
    }
6524
 
6525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6526
    public boolean isSet(_Fields field) {
6527
      if (field == null) {
6528
        throw new IllegalArgumentException();
6529
      }
6530
 
6531
      switch (field) {
6532
      case WAREHOUSE_ID:
6533
        return isSetWarehouse_id();
6534
      case TIMESTAMP:
6535
        return isSetTimestamp();
6536
      case AVAILABILITY:
6537
        return isSetAvailability();
6538
      }
6539
      throw new IllegalStateException();
6540
    }
6541
 
6542
    @Override
6543
    public boolean equals(Object that) {
6544
      if (that == null)
6545
        return false;
6546
      if (that instanceof updateInventory_args)
6547
        return this.equals((updateInventory_args)that);
6548
      return false;
6549
    }
6550
 
6551
    public boolean equals(updateInventory_args that) {
6552
      if (that == null)
6553
        return false;
6554
 
6555
      boolean this_present_warehouse_id = true;
6556
      boolean that_present_warehouse_id = true;
6557
      if (this_present_warehouse_id || that_present_warehouse_id) {
6558
        if (!(this_present_warehouse_id && that_present_warehouse_id))
6559
          return false;
6560
        if (this.warehouse_id != that.warehouse_id)
6561
          return false;
6562
      }
6563
 
6564
      boolean this_present_timestamp = true && this.isSetTimestamp();
6565
      boolean that_present_timestamp = true && that.isSetTimestamp();
6566
      if (this_present_timestamp || that_present_timestamp) {
6567
        if (!(this_present_timestamp && that_present_timestamp))
6568
          return false;
6569
        if (!this.timestamp.equals(that.timestamp))
6570
          return false;
6571
      }
6572
 
6573
      boolean this_present_availability = true && this.isSetAvailability();
6574
      boolean that_present_availability = true && that.isSetAvailability();
6575
      if (this_present_availability || that_present_availability) {
6576
        if (!(this_present_availability && that_present_availability))
6577
          return false;
6578
        if (!this.availability.equals(that.availability))
6579
          return false;
6580
      }
6581
 
6582
      return true;
6583
    }
6584
 
6585
    @Override
6586
    public int hashCode() {
6587
      return 0;
6588
    }
6589
 
6590
    public int compareTo(updateInventory_args other) {
6591
      if (!getClass().equals(other.getClass())) {
6592
        return getClass().getName().compareTo(other.getClass().getName());
6593
      }
6594
 
6595
      int lastComparison = 0;
6596
      updateInventory_args typedOther = (updateInventory_args)other;
6597
 
6598
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
6599
      if (lastComparison != 0) {
6600
        return lastComparison;
6601
      }
6602
      if (isSetWarehouse_id()) {
6603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
6604
        if (lastComparison != 0) {
6605
          return lastComparison;
6606
        }
6607
      }
6608
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
6609
      if (lastComparison != 0) {
6610
        return lastComparison;
6611
      }
6612
      if (isSetTimestamp()) {
6613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
6614
        if (lastComparison != 0) {
6615
          return lastComparison;
6616
        }
6617
      }
6618
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
6619
      if (lastComparison != 0) {
6620
        return lastComparison;
6621
      }
6622
      if (isSetAvailability()) {
6623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
6624
        if (lastComparison != 0) {
6625
          return lastComparison;
6626
        }
6627
      }
6628
      return 0;
6629
    }
6630
 
6631
    public _Fields fieldForId(int fieldId) {
6632
      return _Fields.findByThriftId(fieldId);
6633
    }
6634
 
6635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6636
      org.apache.thrift.protocol.TField field;
6637
      iprot.readStructBegin();
6638
      while (true)
6639
      {
6640
        field = iprot.readFieldBegin();
6641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6642
          break;
6643
        }
6644
        switch (field.id) {
6645
          case 1: // WAREHOUSE_ID
6646
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6647
              this.warehouse_id = iprot.readI64();
6648
              setWarehouse_idIsSet(true);
6649
            } else { 
6650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6651
            }
6652
            break;
6653
          case 2: // TIMESTAMP
6654
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6655
              this.timestamp = iprot.readString();
6656
            } else { 
6657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6658
            }
6659
            break;
6660
          case 3: // AVAILABILITY
6661
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
6662
              {
6663
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
6664
                this.availability = new HashMap<String,Long>(2*_map15.size);
6665
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
6666
                {
6667
                  String _key17; // required
6668
                  long _val18; // required
6669
                  _key17 = iprot.readString();
6670
                  _val18 = iprot.readI64();
6671
                  this.availability.put(_key17, _val18);
6672
                }
6673
                iprot.readMapEnd();
6674
              }
6675
            } else { 
6676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6677
            }
6678
            break;
6679
          default:
6680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6681
        }
6682
        iprot.readFieldEnd();
6683
      }
6684
      iprot.readStructEnd();
6685
      validate();
6686
    }
6687
 
6688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6689
      validate();
6690
 
6691
      oprot.writeStructBegin(STRUCT_DESC);
6692
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6693
      oprot.writeI64(this.warehouse_id);
6694
      oprot.writeFieldEnd();
6695
      if (this.timestamp != null) {
6696
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6697
        oprot.writeString(this.timestamp);
6698
        oprot.writeFieldEnd();
6699
      }
6700
      if (this.availability != null) {
6701
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6702
        {
6703
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
6704
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
6705
          {
6706
            oprot.writeString(_iter19.getKey());
6707
            oprot.writeI64(_iter19.getValue());
6708
          }
6709
          oprot.writeMapEnd();
6710
        }
6711
        oprot.writeFieldEnd();
6712
      }
6713
      oprot.writeFieldStop();
6714
      oprot.writeStructEnd();
6715
    }
6716
 
6717
    @Override
6718
    public String toString() {
6719
      StringBuilder sb = new StringBuilder("updateInventory_args(");
6720
      boolean first = true;
6721
 
6722
      sb.append("warehouse_id:");
6723
      sb.append(this.warehouse_id);
6724
      first = false;
6725
      if (!first) sb.append(", ");
6726
      sb.append("timestamp:");
6727
      if (this.timestamp == null) {
6728
        sb.append("null");
6729
      } else {
6730
        sb.append(this.timestamp);
6731
      }
6732
      first = false;
6733
      if (!first) sb.append(", ");
6734
      sb.append("availability:");
6735
      if (this.availability == null) {
6736
        sb.append("null");
6737
      } else {
6738
        sb.append(this.availability);
6739
      }
6740
      first = false;
6741
      sb.append(")");
6742
      return sb.toString();
6743
    }
6744
 
6745
    public void validate() throws org.apache.thrift.TException {
6746
      // check for required fields
6747
    }
6748
 
6749
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6750
      try {
6751
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6752
      } catch (org.apache.thrift.TException te) {
6753
        throw new java.io.IOException(te);
6754
      }
6755
    }
6756
 
6757
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6758
      try {
6759
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6760
        __isset_bit_vector = new BitSet(1);
6761
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6762
      } catch (org.apache.thrift.TException te) {
6763
        throw new java.io.IOException(te);
6764
      }
6765
    }
6766
 
6767
  }
6768
 
6769
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
6770
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
6771
 
6772
    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);
6773
 
6774
    private InventoryServiceException cex; // required
6775
 
6776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6778
      CEX((short)1, "cex");
6779
 
6780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6781
 
6782
      static {
6783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6784
          byName.put(field.getFieldName(), field);
6785
        }
6786
      }
6787
 
6788
      /**
6789
       * Find the _Fields constant that matches fieldId, or null if its not found.
6790
       */
6791
      public static _Fields findByThriftId(int fieldId) {
6792
        switch(fieldId) {
6793
          case 1: // CEX
6794
            return CEX;
6795
          default:
6796
            return null;
6797
        }
6798
      }
6799
 
6800
      /**
6801
       * Find the _Fields constant that matches fieldId, throwing an exception
6802
       * if it is not found.
6803
       */
6804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6805
        _Fields fields = findByThriftId(fieldId);
6806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6807
        return fields;
6808
      }
6809
 
6810
      /**
6811
       * Find the _Fields constant that matches name, or null if its not found.
6812
       */
6813
      public static _Fields findByName(String name) {
6814
        return byName.get(name);
6815
      }
6816
 
6817
      private final short _thriftId;
6818
      private final String _fieldName;
6819
 
6820
      _Fields(short thriftId, String fieldName) {
6821
        _thriftId = thriftId;
6822
        _fieldName = fieldName;
6823
      }
6824
 
6825
      public short getThriftFieldId() {
6826
        return _thriftId;
6827
      }
6828
 
6829
      public String getFieldName() {
6830
        return _fieldName;
6831
      }
6832
    }
6833
 
6834
    // isset id assignments
6835
 
6836
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6837
    static {
6838
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6839
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
6843
    }
6844
 
6845
    public updateInventory_result() {
6846
    }
6847
 
6848
    public updateInventory_result(
6849
      InventoryServiceException cex)
6850
    {
6851
      this();
6852
      this.cex = cex;
6853
    }
6854
 
6855
    /**
6856
     * Performs a deep copy on <i>other</i>.
6857
     */
6858
    public updateInventory_result(updateInventory_result other) {
6859
      if (other.isSetCex()) {
6860
        this.cex = new InventoryServiceException(other.cex);
6861
      }
6862
    }
6863
 
6864
    public updateInventory_result deepCopy() {
6865
      return new updateInventory_result(this);
6866
    }
6867
 
6868
    @Override
6869
    public void clear() {
6870
      this.cex = null;
6871
    }
6872
 
6873
    public InventoryServiceException getCex() {
6874
      return this.cex;
6875
    }
6876
 
6877
    public void setCex(InventoryServiceException cex) {
6878
      this.cex = cex;
6879
    }
6880
 
6881
    public void unsetCex() {
6882
      this.cex = null;
6883
    }
6884
 
6885
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6886
    public boolean isSetCex() {
6887
      return this.cex != null;
6888
    }
6889
 
6890
    public void setCexIsSet(boolean value) {
6891
      if (!value) {
6892
        this.cex = null;
6893
      }
6894
    }
6895
 
6896
    public void setFieldValue(_Fields field, Object value) {
6897
      switch (field) {
6898
      case CEX:
6899
        if (value == null) {
6900
          unsetCex();
6901
        } else {
6902
          setCex((InventoryServiceException)value);
6903
        }
6904
        break;
6905
 
6906
      }
6907
    }
6908
 
6909
    public Object getFieldValue(_Fields field) {
6910
      switch (field) {
6911
      case CEX:
6912
        return getCex();
6913
 
6914
      }
6915
      throw new IllegalStateException();
6916
    }
6917
 
6918
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6919
    public boolean isSet(_Fields field) {
6920
      if (field == null) {
6921
        throw new IllegalArgumentException();
6922
      }
6923
 
6924
      switch (field) {
6925
      case CEX:
6926
        return isSetCex();
6927
      }
6928
      throw new IllegalStateException();
6929
    }
6930
 
6931
    @Override
6932
    public boolean equals(Object that) {
6933
      if (that == null)
6934
        return false;
6935
      if (that instanceof updateInventory_result)
6936
        return this.equals((updateInventory_result)that);
6937
      return false;
6938
    }
6939
 
6940
    public boolean equals(updateInventory_result that) {
6941
      if (that == null)
6942
        return false;
6943
 
6944
      boolean this_present_cex = true && this.isSetCex();
6945
      boolean that_present_cex = true && that.isSetCex();
6946
      if (this_present_cex || that_present_cex) {
6947
        if (!(this_present_cex && that_present_cex))
6948
          return false;
6949
        if (!this.cex.equals(that.cex))
6950
          return false;
6951
      }
6952
 
6953
      return true;
6954
    }
6955
 
6956
    @Override
6957
    public int hashCode() {
6958
      return 0;
6959
    }
6960
 
6961
    public int compareTo(updateInventory_result other) {
6962
      if (!getClass().equals(other.getClass())) {
6963
        return getClass().getName().compareTo(other.getClass().getName());
6964
      }
6965
 
6966
      int lastComparison = 0;
6967
      updateInventory_result typedOther = (updateInventory_result)other;
6968
 
6969
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6970
      if (lastComparison != 0) {
6971
        return lastComparison;
6972
      }
6973
      if (isSetCex()) {
6974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6975
        if (lastComparison != 0) {
6976
          return lastComparison;
6977
        }
6978
      }
6979
      return 0;
6980
    }
6981
 
6982
    public _Fields fieldForId(int fieldId) {
6983
      return _Fields.findByThriftId(fieldId);
6984
    }
6985
 
6986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6987
      org.apache.thrift.protocol.TField field;
6988
      iprot.readStructBegin();
6989
      while (true)
6990
      {
6991
        field = iprot.readFieldBegin();
6992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6993
          break;
6994
        }
6995
        switch (field.id) {
6996
          case 1: // CEX
6997
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6998
              this.cex = new InventoryServiceException();
6999
              this.cex.read(iprot);
7000
            } else { 
7001
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7002
            }
7003
            break;
7004
          default:
7005
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7006
        }
7007
        iprot.readFieldEnd();
7008
      }
7009
      iprot.readStructEnd();
7010
      validate();
7011
    }
7012
 
7013
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7014
      oprot.writeStructBegin(STRUCT_DESC);
7015
 
7016
      if (this.isSetCex()) {
7017
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7018
        this.cex.write(oprot);
7019
        oprot.writeFieldEnd();
7020
      }
7021
      oprot.writeFieldStop();
7022
      oprot.writeStructEnd();
7023
    }
7024
 
7025
    @Override
7026
    public String toString() {
7027
      StringBuilder sb = new StringBuilder("updateInventory_result(");
7028
      boolean first = true;
7029
 
7030
      sb.append("cex:");
7031
      if (this.cex == null) {
7032
        sb.append("null");
7033
      } else {
7034
        sb.append(this.cex);
7035
      }
7036
      first = false;
7037
      sb.append(")");
7038
      return sb.toString();
7039
    }
7040
 
7041
    public void validate() throws org.apache.thrift.TException {
7042
      // check for required fields
7043
    }
7044
 
7045
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7046
      try {
7047
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7048
      } catch (org.apache.thrift.TException te) {
7049
        throw new java.io.IOException(te);
7050
      }
7051
    }
7052
 
7053
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7054
      try {
7055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7056
      } catch (org.apache.thrift.TException te) {
7057
        throw new java.io.IOException(te);
7058
      }
7059
    }
7060
 
7061
  }
7062
 
7063
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
7064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
7065
 
7066
    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);
7067
    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);
7068
    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);
7069
 
7070
    private long itemId; // required
7071
    private long warehouseId; // required
7072
    private long quantity; // required
7073
 
7074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7076
      ITEM_ID((short)1, "itemId"),
7077
      WAREHOUSE_ID((short)2, "warehouseId"),
7078
      QUANTITY((short)3, "quantity");
7079
 
7080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7081
 
7082
      static {
7083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7084
          byName.put(field.getFieldName(), field);
7085
        }
7086
      }
7087
 
7088
      /**
7089
       * Find the _Fields constant that matches fieldId, or null if its not found.
7090
       */
7091
      public static _Fields findByThriftId(int fieldId) {
7092
        switch(fieldId) {
7093
          case 1: // ITEM_ID
7094
            return ITEM_ID;
7095
          case 2: // WAREHOUSE_ID
7096
            return WAREHOUSE_ID;
7097
          case 3: // QUANTITY
7098
            return QUANTITY;
7099
          default:
7100
            return null;
7101
        }
7102
      }
7103
 
7104
      /**
7105
       * Find the _Fields constant that matches fieldId, throwing an exception
7106
       * if it is not found.
7107
       */
7108
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7109
        _Fields fields = findByThriftId(fieldId);
7110
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7111
        return fields;
7112
      }
7113
 
7114
      /**
7115
       * Find the _Fields constant that matches name, or null if its not found.
7116
       */
7117
      public static _Fields findByName(String name) {
7118
        return byName.get(name);
7119
      }
7120
 
7121
      private final short _thriftId;
7122
      private final String _fieldName;
7123
 
7124
      _Fields(short thriftId, String fieldName) {
7125
        _thriftId = thriftId;
7126
        _fieldName = fieldName;
7127
      }
7128
 
7129
      public short getThriftFieldId() {
7130
        return _thriftId;
7131
      }
7132
 
7133
      public String getFieldName() {
7134
        return _fieldName;
7135
      }
7136
    }
7137
 
7138
    // isset id assignments
7139
    private static final int __ITEMID_ISSET_ID = 0;
7140
    private static final int __WAREHOUSEID_ISSET_ID = 1;
7141
    private static final int __QUANTITY_ISSET_ID = 2;
7142
    private BitSet __isset_bit_vector = new BitSet(3);
7143
 
7144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7145
    static {
7146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7147
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7148
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7149
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7150
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7151
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7152
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7153
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7154
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
7155
    }
7156
 
7157
    public addInventory_args() {
7158
    }
7159
 
7160
    public addInventory_args(
7161
      long itemId,
7162
      long warehouseId,
7163
      long quantity)
7164
    {
7165
      this();
7166
      this.itemId = itemId;
7167
      setItemIdIsSet(true);
7168
      this.warehouseId = warehouseId;
7169
      setWarehouseIdIsSet(true);
7170
      this.quantity = quantity;
7171
      setQuantityIsSet(true);
7172
    }
7173
 
7174
    /**
7175
     * Performs a deep copy on <i>other</i>.
7176
     */
7177
    public addInventory_args(addInventory_args other) {
7178
      __isset_bit_vector.clear();
7179
      __isset_bit_vector.or(other.__isset_bit_vector);
7180
      this.itemId = other.itemId;
7181
      this.warehouseId = other.warehouseId;
7182
      this.quantity = other.quantity;
7183
    }
7184
 
7185
    public addInventory_args deepCopy() {
7186
      return new addInventory_args(this);
7187
    }
7188
 
7189
    @Override
7190
    public void clear() {
7191
      setItemIdIsSet(false);
7192
      this.itemId = 0;
7193
      setWarehouseIdIsSet(false);
7194
      this.warehouseId = 0;
7195
      setQuantityIsSet(false);
7196
      this.quantity = 0;
7197
    }
7198
 
7199
    public long getItemId() {
7200
      return this.itemId;
7201
    }
7202
 
7203
    public void setItemId(long itemId) {
7204
      this.itemId = itemId;
7205
      setItemIdIsSet(true);
7206
    }
7207
 
7208
    public void unsetItemId() {
7209
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
7210
    }
7211
 
7212
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
7213
    public boolean isSetItemId() {
7214
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
7215
    }
7216
 
7217
    public void setItemIdIsSet(boolean value) {
7218
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
7219
    }
7220
 
7221
    public long getWarehouseId() {
7222
      return this.warehouseId;
7223
    }
7224
 
7225
    public void setWarehouseId(long warehouseId) {
7226
      this.warehouseId = warehouseId;
7227
      setWarehouseIdIsSet(true);
7228
    }
7229
 
7230
    public void unsetWarehouseId() {
7231
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
7232
    }
7233
 
7234
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
7235
    public boolean isSetWarehouseId() {
7236
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
7237
    }
7238
 
7239
    public void setWarehouseIdIsSet(boolean value) {
7240
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
7241
    }
7242
 
7243
    public long getQuantity() {
7244
      return this.quantity;
7245
    }
7246
 
7247
    public void setQuantity(long quantity) {
7248
      this.quantity = quantity;
7249
      setQuantityIsSet(true);
7250
    }
7251
 
7252
    public void unsetQuantity() {
7253
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7254
    }
7255
 
7256
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7257
    public boolean isSetQuantity() {
7258
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7259
    }
7260
 
7261
    public void setQuantityIsSet(boolean value) {
7262
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7263
    }
7264
 
7265
    public void setFieldValue(_Fields field, Object value) {
7266
      switch (field) {
7267
      case ITEM_ID:
7268
        if (value == null) {
7269
          unsetItemId();
7270
        } else {
7271
          setItemId((Long)value);
7272
        }
7273
        break;
7274
 
7275
      case WAREHOUSE_ID:
7276
        if (value == null) {
7277
          unsetWarehouseId();
7278
        } else {
7279
          setWarehouseId((Long)value);
7280
        }
7281
        break;
7282
 
7283
      case QUANTITY:
7284
        if (value == null) {
7285
          unsetQuantity();
7286
        } else {
7287
          setQuantity((Long)value);
7288
        }
7289
        break;
7290
 
7291
      }
7292
    }
7293
 
7294
    public Object getFieldValue(_Fields field) {
7295
      switch (field) {
7296
      case ITEM_ID:
7297
        return Long.valueOf(getItemId());
7298
 
7299
      case WAREHOUSE_ID:
7300
        return Long.valueOf(getWarehouseId());
7301
 
7302
      case QUANTITY:
7303
        return Long.valueOf(getQuantity());
7304
 
7305
      }
7306
      throw new IllegalStateException();
7307
    }
7308
 
7309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7310
    public boolean isSet(_Fields field) {
7311
      if (field == null) {
7312
        throw new IllegalArgumentException();
7313
      }
7314
 
7315
      switch (field) {
7316
      case ITEM_ID:
7317
        return isSetItemId();
7318
      case WAREHOUSE_ID:
7319
        return isSetWarehouseId();
7320
      case QUANTITY:
7321
        return isSetQuantity();
7322
      }
7323
      throw new IllegalStateException();
7324
    }
7325
 
7326
    @Override
7327
    public boolean equals(Object that) {
7328
      if (that == null)
7329
        return false;
7330
      if (that instanceof addInventory_args)
7331
        return this.equals((addInventory_args)that);
7332
      return false;
7333
    }
7334
 
7335
    public boolean equals(addInventory_args that) {
7336
      if (that == null)
7337
        return false;
7338
 
7339
      boolean this_present_itemId = true;
7340
      boolean that_present_itemId = true;
7341
      if (this_present_itemId || that_present_itemId) {
7342
        if (!(this_present_itemId && that_present_itemId))
7343
          return false;
7344
        if (this.itemId != that.itemId)
7345
          return false;
7346
      }
7347
 
7348
      boolean this_present_warehouseId = true;
7349
      boolean that_present_warehouseId = true;
7350
      if (this_present_warehouseId || that_present_warehouseId) {
7351
        if (!(this_present_warehouseId && that_present_warehouseId))
7352
          return false;
7353
        if (this.warehouseId != that.warehouseId)
7354
          return false;
7355
      }
7356
 
7357
      boolean this_present_quantity = true;
7358
      boolean that_present_quantity = true;
7359
      if (this_present_quantity || that_present_quantity) {
7360
        if (!(this_present_quantity && that_present_quantity))
7361
          return false;
7362
        if (this.quantity != that.quantity)
7363
          return false;
7364
      }
7365
 
7366
      return true;
7367
    }
7368
 
7369
    @Override
7370
    public int hashCode() {
7371
      return 0;
7372
    }
7373
 
7374
    public int compareTo(addInventory_args other) {
7375
      if (!getClass().equals(other.getClass())) {
7376
        return getClass().getName().compareTo(other.getClass().getName());
7377
      }
7378
 
7379
      int lastComparison = 0;
7380
      addInventory_args typedOther = (addInventory_args)other;
7381
 
7382
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
7383
      if (lastComparison != 0) {
7384
        return lastComparison;
7385
      }
7386
      if (isSetItemId()) {
7387
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
7388
        if (lastComparison != 0) {
7389
          return lastComparison;
7390
        }
7391
      }
7392
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
7393
      if (lastComparison != 0) {
7394
        return lastComparison;
7395
      }
7396
      if (isSetWarehouseId()) {
7397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7398
        if (lastComparison != 0) {
7399
          return lastComparison;
7400
        }
7401
      }
7402
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
7403
      if (lastComparison != 0) {
7404
        return lastComparison;
7405
      }
7406
      if (isSetQuantity()) {
7407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
7408
        if (lastComparison != 0) {
7409
          return lastComparison;
7410
        }
7411
      }
7412
      return 0;
7413
    }
7414
 
7415
    public _Fields fieldForId(int fieldId) {
7416
      return _Fields.findByThriftId(fieldId);
7417
    }
7418
 
7419
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7420
      org.apache.thrift.protocol.TField field;
7421
      iprot.readStructBegin();
7422
      while (true)
7423
      {
7424
        field = iprot.readFieldBegin();
7425
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7426
          break;
7427
        }
7428
        switch (field.id) {
7429
          case 1: // ITEM_ID
7430
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7431
              this.itemId = iprot.readI64();
7432
              setItemIdIsSet(true);
7433
            } else { 
7434
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7435
            }
7436
            break;
7437
          case 2: // WAREHOUSE_ID
7438
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7439
              this.warehouseId = iprot.readI64();
7440
              setWarehouseIdIsSet(true);
7441
            } else { 
7442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7443
            }
7444
            break;
7445
          case 3: // QUANTITY
7446
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7447
              this.quantity = iprot.readI64();
7448
              setQuantityIsSet(true);
7449
            } else { 
7450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7451
            }
7452
            break;
7453
          default:
7454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7455
        }
7456
        iprot.readFieldEnd();
7457
      }
7458
      iprot.readStructEnd();
7459
      validate();
7460
    }
7461
 
7462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7463
      validate();
7464
 
7465
      oprot.writeStructBegin(STRUCT_DESC);
7466
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7467
      oprot.writeI64(this.itemId);
7468
      oprot.writeFieldEnd();
7469
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7470
      oprot.writeI64(this.warehouseId);
7471
      oprot.writeFieldEnd();
7472
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7473
      oprot.writeI64(this.quantity);
7474
      oprot.writeFieldEnd();
7475
      oprot.writeFieldStop();
7476
      oprot.writeStructEnd();
7477
    }
7478
 
7479
    @Override
7480
    public String toString() {
7481
      StringBuilder sb = new StringBuilder("addInventory_args(");
7482
      boolean first = true;
7483
 
7484
      sb.append("itemId:");
7485
      sb.append(this.itemId);
7486
      first = false;
7487
      if (!first) sb.append(", ");
7488
      sb.append("warehouseId:");
7489
      sb.append(this.warehouseId);
7490
      first = false;
7491
      if (!first) sb.append(", ");
7492
      sb.append("quantity:");
7493
      sb.append(this.quantity);
7494
      first = false;
7495
      sb.append(")");
7496
      return sb.toString();
7497
    }
7498
 
7499
    public void validate() throws org.apache.thrift.TException {
7500
      // check for required fields
7501
    }
7502
 
7503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7504
      try {
7505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7506
      } catch (org.apache.thrift.TException te) {
7507
        throw new java.io.IOException(te);
7508
      }
7509
    }
7510
 
7511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7512
      try {
7513
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7514
        __isset_bit_vector = new BitSet(1);
7515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7516
      } catch (org.apache.thrift.TException te) {
7517
        throw new java.io.IOException(te);
7518
      }
7519
    }
7520
 
7521
  }
7522
 
7523
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
7524
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
7525
 
7526
    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);
7527
 
7528
    private InventoryServiceException cex; // required
7529
 
7530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7532
      CEX((short)1, "cex");
7533
 
7534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7535
 
7536
      static {
7537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7538
          byName.put(field.getFieldName(), field);
7539
        }
7540
      }
7541
 
7542
      /**
7543
       * Find the _Fields constant that matches fieldId, or null if its not found.
7544
       */
7545
      public static _Fields findByThriftId(int fieldId) {
7546
        switch(fieldId) {
7547
          case 1: // CEX
7548
            return CEX;
7549
          default:
7550
            return null;
7551
        }
7552
      }
7553
 
7554
      /**
7555
       * Find the _Fields constant that matches fieldId, throwing an exception
7556
       * if it is not found.
7557
       */
7558
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7559
        _Fields fields = findByThriftId(fieldId);
7560
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7561
        return fields;
7562
      }
7563
 
7564
      /**
7565
       * Find the _Fields constant that matches name, or null if its not found.
7566
       */
7567
      public static _Fields findByName(String name) {
7568
        return byName.get(name);
7569
      }
7570
 
7571
      private final short _thriftId;
7572
      private final String _fieldName;
7573
 
7574
      _Fields(short thriftId, String fieldName) {
7575
        _thriftId = thriftId;
7576
        _fieldName = fieldName;
7577
      }
7578
 
7579
      public short getThriftFieldId() {
7580
        return _thriftId;
7581
      }
7582
 
7583
      public String getFieldName() {
7584
        return _fieldName;
7585
      }
7586
    }
7587
 
7588
    // isset id assignments
7589
 
7590
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7591
    static {
7592
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7593
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
7597
    }
7598
 
7599
    public addInventory_result() {
7600
    }
7601
 
7602
    public addInventory_result(
7603
      InventoryServiceException cex)
7604
    {
7605
      this();
7606
      this.cex = cex;
7607
    }
7608
 
7609
    /**
7610
     * Performs a deep copy on <i>other</i>.
7611
     */
7612
    public addInventory_result(addInventory_result other) {
7613
      if (other.isSetCex()) {
7614
        this.cex = new InventoryServiceException(other.cex);
7615
      }
7616
    }
7617
 
7618
    public addInventory_result deepCopy() {
7619
      return new addInventory_result(this);
7620
    }
7621
 
7622
    @Override
7623
    public void clear() {
7624
      this.cex = null;
7625
    }
7626
 
7627
    public InventoryServiceException getCex() {
7628
      return this.cex;
7629
    }
7630
 
7631
    public void setCex(InventoryServiceException cex) {
7632
      this.cex = cex;
7633
    }
7634
 
7635
    public void unsetCex() {
7636
      this.cex = null;
7637
    }
7638
 
7639
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7640
    public boolean isSetCex() {
7641
      return this.cex != null;
7642
    }
7643
 
7644
    public void setCexIsSet(boolean value) {
7645
      if (!value) {
7646
        this.cex = null;
7647
      }
7648
    }
7649
 
7650
    public void setFieldValue(_Fields field, Object value) {
7651
      switch (field) {
7652
      case CEX:
7653
        if (value == null) {
7654
          unsetCex();
7655
        } else {
7656
          setCex((InventoryServiceException)value);
7657
        }
7658
        break;
7659
 
7660
      }
7661
    }
7662
 
7663
    public Object getFieldValue(_Fields field) {
7664
      switch (field) {
7665
      case CEX:
7666
        return getCex();
7667
 
7668
      }
7669
      throw new IllegalStateException();
7670
    }
7671
 
7672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7673
    public boolean isSet(_Fields field) {
7674
      if (field == null) {
7675
        throw new IllegalArgumentException();
7676
      }
7677
 
7678
      switch (field) {
7679
      case CEX:
7680
        return isSetCex();
7681
      }
7682
      throw new IllegalStateException();
7683
    }
7684
 
7685
    @Override
7686
    public boolean equals(Object that) {
7687
      if (that == null)
7688
        return false;
7689
      if (that instanceof addInventory_result)
7690
        return this.equals((addInventory_result)that);
7691
      return false;
7692
    }
7693
 
7694
    public boolean equals(addInventory_result that) {
7695
      if (that == null)
7696
        return false;
7697
 
7698
      boolean this_present_cex = true && this.isSetCex();
7699
      boolean that_present_cex = true && that.isSetCex();
7700
      if (this_present_cex || that_present_cex) {
7701
        if (!(this_present_cex && that_present_cex))
7702
          return false;
7703
        if (!this.cex.equals(that.cex))
7704
          return false;
7705
      }
7706
 
7707
      return true;
7708
    }
7709
 
7710
    @Override
7711
    public int hashCode() {
7712
      return 0;
7713
    }
7714
 
7715
    public int compareTo(addInventory_result other) {
7716
      if (!getClass().equals(other.getClass())) {
7717
        return getClass().getName().compareTo(other.getClass().getName());
7718
      }
7719
 
7720
      int lastComparison = 0;
7721
      addInventory_result typedOther = (addInventory_result)other;
7722
 
7723
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7724
      if (lastComparison != 0) {
7725
        return lastComparison;
7726
      }
7727
      if (isSetCex()) {
7728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7729
        if (lastComparison != 0) {
7730
          return lastComparison;
7731
        }
7732
      }
7733
      return 0;
7734
    }
7735
 
7736
    public _Fields fieldForId(int fieldId) {
7737
      return _Fields.findByThriftId(fieldId);
7738
    }
7739
 
7740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7741
      org.apache.thrift.protocol.TField field;
7742
      iprot.readStructBegin();
7743
      while (true)
7744
      {
7745
        field = iprot.readFieldBegin();
7746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7747
          break;
7748
        }
7749
        switch (field.id) {
7750
          case 1: // CEX
7751
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7752
              this.cex = new InventoryServiceException();
7753
              this.cex.read(iprot);
7754
            } else { 
7755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7756
            }
7757
            break;
7758
          default:
7759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7760
        }
7761
        iprot.readFieldEnd();
7762
      }
7763
      iprot.readStructEnd();
7764
      validate();
7765
    }
7766
 
7767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7768
      oprot.writeStructBegin(STRUCT_DESC);
7769
 
7770
      if (this.isSetCex()) {
7771
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7772
        this.cex.write(oprot);
7773
        oprot.writeFieldEnd();
7774
      }
7775
      oprot.writeFieldStop();
7776
      oprot.writeStructEnd();
7777
    }
7778
 
7779
    @Override
7780
    public String toString() {
7781
      StringBuilder sb = new StringBuilder("addInventory_result(");
7782
      boolean first = true;
7783
 
7784
      sb.append("cex:");
7785
      if (this.cex == null) {
7786
        sb.append("null");
7787
      } else {
7788
        sb.append(this.cex);
7789
      }
7790
      first = false;
7791
      sb.append(")");
7792
      return sb.toString();
7793
    }
7794
 
7795
    public void validate() throws org.apache.thrift.TException {
7796
      // check for required fields
7797
    }
7798
 
7799
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7800
      try {
7801
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7802
      } catch (org.apache.thrift.TException te) {
7803
        throw new java.io.IOException(te);
7804
      }
7805
    }
7806
 
7807
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7808
      try {
7809
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7810
      } catch (org.apache.thrift.TException te) {
7811
        throw new java.io.IOException(te);
7812
      }
7813
    }
7814
 
7815
  }
7816
 
7817
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
7819
 
7820
    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);
7821
 
7822
    private long warehouse_id; // required
7823
 
7824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7826
      WAREHOUSE_ID((short)1, "warehouse_id");
7827
 
7828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7829
 
7830
      static {
7831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7832
          byName.put(field.getFieldName(), field);
7833
        }
7834
      }
7835
 
7836
      /**
7837
       * Find the _Fields constant that matches fieldId, or null if its not found.
7838
       */
7839
      public static _Fields findByThriftId(int fieldId) {
7840
        switch(fieldId) {
7841
          case 1: // WAREHOUSE_ID
7842
            return WAREHOUSE_ID;
7843
          default:
7844
            return null;
7845
        }
7846
      }
7847
 
7848
      /**
7849
       * Find the _Fields constant that matches fieldId, throwing an exception
7850
       * if it is not found.
7851
       */
7852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7853
        _Fields fields = findByThriftId(fieldId);
7854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7855
        return fields;
7856
      }
7857
 
7858
      /**
7859
       * Find the _Fields constant that matches name, or null if its not found.
7860
       */
7861
      public static _Fields findByName(String name) {
7862
        return byName.get(name);
7863
      }
7864
 
7865
      private final short _thriftId;
7866
      private final String _fieldName;
7867
 
7868
      _Fields(short thriftId, String fieldName) {
7869
        _thriftId = thriftId;
7870
        _fieldName = fieldName;
7871
      }
7872
 
7873
      public short getThriftFieldId() {
7874
        return _thriftId;
7875
      }
7876
 
7877
      public String getFieldName() {
7878
        return _fieldName;
7879
      }
7880
    }
7881
 
7882
    // isset id assignments
7883
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7884
    private BitSet __isset_bit_vector = new BitSet(1);
7885
 
7886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7887
    static {
7888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7889
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7891
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7892
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
7893
    }
7894
 
7895
    public retireWarehouse_args() {
7896
    }
7897
 
7898
    public retireWarehouse_args(
7899
      long warehouse_id)
7900
    {
7901
      this();
7902
      this.warehouse_id = warehouse_id;
7903
      setWarehouse_idIsSet(true);
7904
    }
7905
 
7906
    /**
7907
     * Performs a deep copy on <i>other</i>.
7908
     */
7909
    public retireWarehouse_args(retireWarehouse_args other) {
7910
      __isset_bit_vector.clear();
7911
      __isset_bit_vector.or(other.__isset_bit_vector);
7912
      this.warehouse_id = other.warehouse_id;
7913
    }
7914
 
7915
    public retireWarehouse_args deepCopy() {
7916
      return new retireWarehouse_args(this);
7917
    }
7918
 
7919
    @Override
7920
    public void clear() {
7921
      setWarehouse_idIsSet(false);
7922
      this.warehouse_id = 0;
7923
    }
7924
 
7925
    public long getWarehouse_id() {
7926
      return this.warehouse_id;
7927
    }
7928
 
7929
    public void setWarehouse_id(long warehouse_id) {
7930
      this.warehouse_id = warehouse_id;
7931
      setWarehouse_idIsSet(true);
7932
    }
7933
 
7934
    public void unsetWarehouse_id() {
7935
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7936
    }
7937
 
7938
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7939
    public boolean isSetWarehouse_id() {
7940
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7941
    }
7942
 
7943
    public void setWarehouse_idIsSet(boolean value) {
7944
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7945
    }
7946
 
7947
    public void setFieldValue(_Fields field, Object value) {
7948
      switch (field) {
7949
      case WAREHOUSE_ID:
7950
        if (value == null) {
7951
          unsetWarehouse_id();
7952
        } else {
7953
          setWarehouse_id((Long)value);
7954
        }
7955
        break;
7956
 
7957
      }
7958
    }
7959
 
7960
    public Object getFieldValue(_Fields field) {
7961
      switch (field) {
7962
      case WAREHOUSE_ID:
7963
        return Long.valueOf(getWarehouse_id());
7964
 
7965
      }
7966
      throw new IllegalStateException();
7967
    }
7968
 
7969
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7970
    public boolean isSet(_Fields field) {
7971
      if (field == null) {
7972
        throw new IllegalArgumentException();
7973
      }
7974
 
7975
      switch (field) {
7976
      case WAREHOUSE_ID:
7977
        return isSetWarehouse_id();
7978
      }
7979
      throw new IllegalStateException();
7980
    }
7981
 
7982
    @Override
7983
    public boolean equals(Object that) {
7984
      if (that == null)
7985
        return false;
7986
      if (that instanceof retireWarehouse_args)
7987
        return this.equals((retireWarehouse_args)that);
7988
      return false;
7989
    }
7990
 
7991
    public boolean equals(retireWarehouse_args that) {
7992
      if (that == null)
7993
        return false;
7994
 
7995
      boolean this_present_warehouse_id = true;
7996
      boolean that_present_warehouse_id = true;
7997
      if (this_present_warehouse_id || that_present_warehouse_id) {
7998
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7999
          return false;
8000
        if (this.warehouse_id != that.warehouse_id)
8001
          return false;
8002
      }
8003
 
8004
      return true;
8005
    }
8006
 
8007
    @Override
8008
    public int hashCode() {
8009
      return 0;
8010
    }
8011
 
8012
    public int compareTo(retireWarehouse_args other) {
8013
      if (!getClass().equals(other.getClass())) {
8014
        return getClass().getName().compareTo(other.getClass().getName());
8015
      }
8016
 
8017
      int lastComparison = 0;
8018
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
8019
 
8020
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8021
      if (lastComparison != 0) {
8022
        return lastComparison;
8023
      }
8024
      if (isSetWarehouse_id()) {
8025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8026
        if (lastComparison != 0) {
8027
          return lastComparison;
8028
        }
8029
      }
8030
      return 0;
8031
    }
8032
 
8033
    public _Fields fieldForId(int fieldId) {
8034
      return _Fields.findByThriftId(fieldId);
8035
    }
8036
 
8037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8038
      org.apache.thrift.protocol.TField field;
8039
      iprot.readStructBegin();
8040
      while (true)
8041
      {
8042
        field = iprot.readFieldBegin();
8043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8044
          break;
8045
        }
8046
        switch (field.id) {
8047
          case 1: // WAREHOUSE_ID
8048
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8049
              this.warehouse_id = iprot.readI64();
8050
              setWarehouse_idIsSet(true);
8051
            } else { 
8052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8053
            }
8054
            break;
8055
          default:
8056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8057
        }
8058
        iprot.readFieldEnd();
8059
      }
8060
      iprot.readStructEnd();
8061
      validate();
8062
    }
8063
 
8064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8065
      validate();
8066
 
8067
      oprot.writeStructBegin(STRUCT_DESC);
8068
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8069
      oprot.writeI64(this.warehouse_id);
8070
      oprot.writeFieldEnd();
8071
      oprot.writeFieldStop();
8072
      oprot.writeStructEnd();
8073
    }
8074
 
8075
    @Override
8076
    public String toString() {
8077
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
8078
      boolean first = true;
8079
 
8080
      sb.append("warehouse_id:");
8081
      sb.append(this.warehouse_id);
8082
      first = false;
8083
      sb.append(")");
8084
      return sb.toString();
8085
    }
8086
 
8087
    public void validate() throws org.apache.thrift.TException {
8088
      // check for required fields
8089
    }
8090
 
8091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8092
      try {
8093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8094
      } catch (org.apache.thrift.TException te) {
8095
        throw new java.io.IOException(te);
8096
      }
8097
    }
8098
 
8099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8100
      try {
8101
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8102
        __isset_bit_vector = new BitSet(1);
8103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8104
      } catch (org.apache.thrift.TException te) {
8105
        throw new java.io.IOException(te);
8106
      }
8107
    }
8108
 
8109
  }
8110
 
8111
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
8112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
8113
 
8114
    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);
8115
 
8116
    private InventoryServiceException cex; // required
8117
 
8118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8120
      CEX((short)1, "cex");
8121
 
8122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8123
 
8124
      static {
8125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8126
          byName.put(field.getFieldName(), field);
8127
        }
8128
      }
8129
 
8130
      /**
8131
       * Find the _Fields constant that matches fieldId, or null if its not found.
8132
       */
8133
      public static _Fields findByThriftId(int fieldId) {
8134
        switch(fieldId) {
8135
          case 1: // CEX
8136
            return CEX;
8137
          default:
8138
            return null;
8139
        }
8140
      }
8141
 
8142
      /**
8143
       * Find the _Fields constant that matches fieldId, throwing an exception
8144
       * if it is not found.
8145
       */
8146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8147
        _Fields fields = findByThriftId(fieldId);
8148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8149
        return fields;
8150
      }
8151
 
8152
      /**
8153
       * Find the _Fields constant that matches name, or null if its not found.
8154
       */
8155
      public static _Fields findByName(String name) {
8156
        return byName.get(name);
8157
      }
8158
 
8159
      private final short _thriftId;
8160
      private final String _fieldName;
8161
 
8162
      _Fields(short thriftId, String fieldName) {
8163
        _thriftId = thriftId;
8164
        _fieldName = fieldName;
8165
      }
8166
 
8167
      public short getThriftFieldId() {
8168
        return _thriftId;
8169
      }
8170
 
8171
      public String getFieldName() {
8172
        return _fieldName;
8173
      }
8174
    }
8175
 
8176
    // isset id assignments
8177
 
8178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8179
    static {
8180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8181
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
8185
    }
8186
 
8187
    public retireWarehouse_result() {
8188
    }
8189
 
8190
    public retireWarehouse_result(
8191
      InventoryServiceException cex)
8192
    {
8193
      this();
8194
      this.cex = cex;
8195
    }
8196
 
8197
    /**
8198
     * Performs a deep copy on <i>other</i>.
8199
     */
8200
    public retireWarehouse_result(retireWarehouse_result other) {
8201
      if (other.isSetCex()) {
8202
        this.cex = new InventoryServiceException(other.cex);
8203
      }
8204
    }
8205
 
8206
    public retireWarehouse_result deepCopy() {
8207
      return new retireWarehouse_result(this);
8208
    }
8209
 
8210
    @Override
8211
    public void clear() {
8212
      this.cex = null;
8213
    }
8214
 
8215
    public InventoryServiceException getCex() {
8216
      return this.cex;
8217
    }
8218
 
8219
    public void setCex(InventoryServiceException cex) {
8220
      this.cex = cex;
8221
    }
8222
 
8223
    public void unsetCex() {
8224
      this.cex = null;
8225
    }
8226
 
8227
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8228
    public boolean isSetCex() {
8229
      return this.cex != null;
8230
    }
8231
 
8232
    public void setCexIsSet(boolean value) {
8233
      if (!value) {
8234
        this.cex = null;
8235
      }
8236
    }
8237
 
8238
    public void setFieldValue(_Fields field, Object value) {
8239
      switch (field) {
8240
      case CEX:
8241
        if (value == null) {
8242
          unsetCex();
8243
        } else {
8244
          setCex((InventoryServiceException)value);
8245
        }
8246
        break;
8247
 
8248
      }
8249
    }
8250
 
8251
    public Object getFieldValue(_Fields field) {
8252
      switch (field) {
8253
      case CEX:
8254
        return getCex();
8255
 
8256
      }
8257
      throw new IllegalStateException();
8258
    }
8259
 
8260
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8261
    public boolean isSet(_Fields field) {
8262
      if (field == null) {
8263
        throw new IllegalArgumentException();
8264
      }
8265
 
8266
      switch (field) {
8267
      case CEX:
8268
        return isSetCex();
8269
      }
8270
      throw new IllegalStateException();
8271
    }
8272
 
8273
    @Override
8274
    public boolean equals(Object that) {
8275
      if (that == null)
8276
        return false;
8277
      if (that instanceof retireWarehouse_result)
8278
        return this.equals((retireWarehouse_result)that);
8279
      return false;
8280
    }
8281
 
8282
    public boolean equals(retireWarehouse_result that) {
8283
      if (that == null)
8284
        return false;
8285
 
8286
      boolean this_present_cex = true && this.isSetCex();
8287
      boolean that_present_cex = true && that.isSetCex();
8288
      if (this_present_cex || that_present_cex) {
8289
        if (!(this_present_cex && that_present_cex))
8290
          return false;
8291
        if (!this.cex.equals(that.cex))
8292
          return false;
8293
      }
8294
 
8295
      return true;
8296
    }
8297
 
8298
    @Override
8299
    public int hashCode() {
8300
      return 0;
8301
    }
8302
 
8303
    public int compareTo(retireWarehouse_result other) {
8304
      if (!getClass().equals(other.getClass())) {
8305
        return getClass().getName().compareTo(other.getClass().getName());
8306
      }
8307
 
8308
      int lastComparison = 0;
8309
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
8310
 
8311
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8312
      if (lastComparison != 0) {
8313
        return lastComparison;
8314
      }
8315
      if (isSetCex()) {
8316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8317
        if (lastComparison != 0) {
8318
          return lastComparison;
8319
        }
8320
      }
8321
      return 0;
8322
    }
8323
 
8324
    public _Fields fieldForId(int fieldId) {
8325
      return _Fields.findByThriftId(fieldId);
8326
    }
8327
 
8328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8329
      org.apache.thrift.protocol.TField field;
8330
      iprot.readStructBegin();
8331
      while (true)
8332
      {
8333
        field = iprot.readFieldBegin();
8334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8335
          break;
8336
        }
8337
        switch (field.id) {
8338
          case 1: // CEX
8339
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8340
              this.cex = new InventoryServiceException();
8341
              this.cex.read(iprot);
8342
            } else { 
8343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8344
            }
8345
            break;
8346
          default:
8347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8348
        }
8349
        iprot.readFieldEnd();
8350
      }
8351
      iprot.readStructEnd();
8352
      validate();
8353
    }
8354
 
8355
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8356
      oprot.writeStructBegin(STRUCT_DESC);
8357
 
8358
      if (this.isSetCex()) {
8359
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8360
        this.cex.write(oprot);
8361
        oprot.writeFieldEnd();
8362
      }
8363
      oprot.writeFieldStop();
8364
      oprot.writeStructEnd();
8365
    }
8366
 
8367
    @Override
8368
    public String toString() {
8369
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
8370
      boolean first = true;
8371
 
8372
      sb.append("cex:");
8373
      if (this.cex == null) {
8374
        sb.append("null");
8375
      } else {
8376
        sb.append(this.cex);
8377
      }
8378
      first = false;
8379
      sb.append(")");
8380
      return sb.toString();
8381
    }
8382
 
8383
    public void validate() throws org.apache.thrift.TException {
8384
      // check for required fields
8385
    }
8386
 
8387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8388
      try {
8389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8390
      } catch (org.apache.thrift.TException te) {
8391
        throw new java.io.IOException(te);
8392
      }
8393
    }
8394
 
8395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8396
      try {
8397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8398
      } catch (org.apache.thrift.TException te) {
8399
        throw new java.io.IOException(te);
8400
      }
8401
    }
8402
 
8403
  }
8404
 
8405
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
8406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
8407
 
8408
    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);
8409
 
8410
    private long item_id; // required
8411
 
8412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8414
      ITEM_ID((short)1, "item_id");
8415
 
8416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8417
 
8418
      static {
8419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8420
          byName.put(field.getFieldName(), field);
8421
        }
8422
      }
8423
 
8424
      /**
8425
       * Find the _Fields constant that matches fieldId, or null if its not found.
8426
       */
8427
      public static _Fields findByThriftId(int fieldId) {
8428
        switch(fieldId) {
8429
          case 1: // ITEM_ID
8430
            return ITEM_ID;
8431
          default:
8432
            return null;
8433
        }
8434
      }
8435
 
8436
      /**
8437
       * Find the _Fields constant that matches fieldId, throwing an exception
8438
       * if it is not found.
8439
       */
8440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8441
        _Fields fields = findByThriftId(fieldId);
8442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8443
        return fields;
8444
      }
8445
 
8446
      /**
8447
       * Find the _Fields constant that matches name, or null if its not found.
8448
       */
8449
      public static _Fields findByName(String name) {
8450
        return byName.get(name);
8451
      }
8452
 
8453
      private final short _thriftId;
8454
      private final String _fieldName;
8455
 
8456
      _Fields(short thriftId, String fieldName) {
8457
        _thriftId = thriftId;
8458
        _fieldName = fieldName;
8459
      }
8460
 
8461
      public short getThriftFieldId() {
8462
        return _thriftId;
8463
      }
8464
 
8465
      public String getFieldName() {
8466
        return _fieldName;
8467
      }
8468
    }
8469
 
8470
    // isset id assignments
8471
    private static final int __ITEM_ID_ISSET_ID = 0;
8472
    private BitSet __isset_bit_vector = new BitSet(1);
8473
 
8474
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8475
    static {
8476
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8477
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8478
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8479
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8480
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
8481
    }
8482
 
8483
    public getItemInventoryByItemId_args() {
8484
    }
8485
 
8486
    public getItemInventoryByItemId_args(
8487
      long item_id)
8488
    {
8489
      this();
8490
      this.item_id = item_id;
8491
      setItem_idIsSet(true);
8492
    }
8493
 
8494
    /**
8495
     * Performs a deep copy on <i>other</i>.
8496
     */
8497
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
8498
      __isset_bit_vector.clear();
8499
      __isset_bit_vector.or(other.__isset_bit_vector);
8500
      this.item_id = other.item_id;
8501
    }
8502
 
8503
    public getItemInventoryByItemId_args deepCopy() {
8504
      return new getItemInventoryByItemId_args(this);
8505
    }
8506
 
8507
    @Override
8508
    public void clear() {
8509
      setItem_idIsSet(false);
8510
      this.item_id = 0;
8511
    }
8512
 
8513
    public long getItem_id() {
8514
      return this.item_id;
8515
    }
8516
 
8517
    public void setItem_id(long item_id) {
8518
      this.item_id = item_id;
8519
      setItem_idIsSet(true);
8520
    }
8521
 
8522
    public void unsetItem_id() {
8523
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
8524
    }
8525
 
8526
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
8527
    public boolean isSetItem_id() {
8528
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
8529
    }
8530
 
8531
    public void setItem_idIsSet(boolean value) {
8532
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
8533
    }
8534
 
8535
    public void setFieldValue(_Fields field, Object value) {
8536
      switch (field) {
8537
      case ITEM_ID:
8538
        if (value == null) {
8539
          unsetItem_id();
8540
        } else {
8541
          setItem_id((Long)value);
8542
        }
8543
        break;
8544
 
8545
      }
8546
    }
8547
 
8548
    public Object getFieldValue(_Fields field) {
8549
      switch (field) {
8550
      case ITEM_ID:
8551
        return Long.valueOf(getItem_id());
8552
 
8553
      }
8554
      throw new IllegalStateException();
8555
    }
8556
 
8557
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8558
    public boolean isSet(_Fields field) {
8559
      if (field == null) {
8560
        throw new IllegalArgumentException();
8561
      }
8562
 
8563
      switch (field) {
8564
      case ITEM_ID:
8565
        return isSetItem_id();
8566
      }
8567
      throw new IllegalStateException();
8568
    }
8569
 
8570
    @Override
8571
    public boolean equals(Object that) {
8572
      if (that == null)
8573
        return false;
8574
      if (that instanceof getItemInventoryByItemId_args)
8575
        return this.equals((getItemInventoryByItemId_args)that);
8576
      return false;
8577
    }
8578
 
8579
    public boolean equals(getItemInventoryByItemId_args that) {
8580
      if (that == null)
8581
        return false;
8582
 
8583
      boolean this_present_item_id = true;
8584
      boolean that_present_item_id = true;
8585
      if (this_present_item_id || that_present_item_id) {
8586
        if (!(this_present_item_id && that_present_item_id))
8587
          return false;
8588
        if (this.item_id != that.item_id)
8589
          return false;
8590
      }
8591
 
8592
      return true;
8593
    }
8594
 
8595
    @Override
8596
    public int hashCode() {
8597
      return 0;
8598
    }
8599
 
8600
    public int compareTo(getItemInventoryByItemId_args other) {
8601
      if (!getClass().equals(other.getClass())) {
8602
        return getClass().getName().compareTo(other.getClass().getName());
8603
      }
8604
 
8605
      int lastComparison = 0;
8606
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
8607
 
8608
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
8609
      if (lastComparison != 0) {
8610
        return lastComparison;
8611
      }
8612
      if (isSetItem_id()) {
8613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
8614
        if (lastComparison != 0) {
8615
          return lastComparison;
8616
        }
8617
      }
8618
      return 0;
8619
    }
8620
 
8621
    public _Fields fieldForId(int fieldId) {
8622
      return _Fields.findByThriftId(fieldId);
8623
    }
8624
 
8625
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8626
      org.apache.thrift.protocol.TField field;
8627
      iprot.readStructBegin();
8628
      while (true)
8629
      {
8630
        field = iprot.readFieldBegin();
8631
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8632
          break;
8633
        }
8634
        switch (field.id) {
8635
          case 1: // ITEM_ID
8636
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8637
              this.item_id = iprot.readI64();
8638
              setItem_idIsSet(true);
8639
            } else { 
8640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8641
            }
8642
            break;
8643
          default:
8644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8645
        }
8646
        iprot.readFieldEnd();
8647
      }
8648
      iprot.readStructEnd();
8649
      validate();
8650
    }
8651
 
8652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8653
      validate();
8654
 
8655
      oprot.writeStructBegin(STRUCT_DESC);
8656
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8657
      oprot.writeI64(this.item_id);
8658
      oprot.writeFieldEnd();
8659
      oprot.writeFieldStop();
8660
      oprot.writeStructEnd();
8661
    }
8662
 
8663
    @Override
8664
    public String toString() {
8665
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
8666
      boolean first = true;
8667
 
8668
      sb.append("item_id:");
8669
      sb.append(this.item_id);
8670
      first = false;
8671
      sb.append(")");
8672
      return sb.toString();
8673
    }
8674
 
8675
    public void validate() throws org.apache.thrift.TException {
8676
      // check for required fields
8677
    }
8678
 
8679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8680
      try {
8681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8682
      } catch (org.apache.thrift.TException te) {
8683
        throw new java.io.IOException(te);
8684
      }
8685
    }
8686
 
8687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8688
      try {
8689
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8690
        __isset_bit_vector = new BitSet(1);
8691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8692
      } catch (org.apache.thrift.TException te) {
8693
        throw new java.io.IOException(te);
8694
      }
8695
    }
8696
 
8697
  }
8698
 
8699
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
8700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
8701
 
8702
    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);
8703
    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);
8704
 
8705
    private ItemInventory success; // required
8706
    private InventoryServiceException cex; // required
8707
 
8708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8710
      SUCCESS((short)0, "success"),
8711
      CEX((short)1, "cex");
8712
 
8713
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8714
 
8715
      static {
8716
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8717
          byName.put(field.getFieldName(), field);
8718
        }
8719
      }
8720
 
8721
      /**
8722
       * Find the _Fields constant that matches fieldId, or null if its not found.
8723
       */
8724
      public static _Fields findByThriftId(int fieldId) {
8725
        switch(fieldId) {
8726
          case 0: // SUCCESS
8727
            return SUCCESS;
8728
          case 1: // CEX
8729
            return CEX;
8730
          default:
8731
            return null;
8732
        }
8733
      }
8734
 
8735
      /**
8736
       * Find the _Fields constant that matches fieldId, throwing an exception
8737
       * if it is not found.
8738
       */
8739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8740
        _Fields fields = findByThriftId(fieldId);
8741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8742
        return fields;
8743
      }
8744
 
8745
      /**
8746
       * Find the _Fields constant that matches name, or null if its not found.
8747
       */
8748
      public static _Fields findByName(String name) {
8749
        return byName.get(name);
8750
      }
8751
 
8752
      private final short _thriftId;
8753
      private final String _fieldName;
8754
 
8755
      _Fields(short thriftId, String fieldName) {
8756
        _thriftId = thriftId;
8757
        _fieldName = fieldName;
8758
      }
8759
 
8760
      public short getThriftFieldId() {
8761
        return _thriftId;
8762
      }
8763
 
8764
      public String getFieldName() {
8765
        return _fieldName;
8766
      }
8767
    }
8768
 
8769
    // isset id assignments
8770
 
8771
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8772
    static {
8773
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8774
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8775
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
8776
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
8780
    }
8781
 
8782
    public getItemInventoryByItemId_result() {
8783
    }
8784
 
8785
    public getItemInventoryByItemId_result(
8786
      ItemInventory success,
8787
      InventoryServiceException cex)
8788
    {
8789
      this();
8790
      this.success = success;
8791
      this.cex = cex;
8792
    }
8793
 
8794
    /**
8795
     * Performs a deep copy on <i>other</i>.
8796
     */
8797
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
8798
      if (other.isSetSuccess()) {
8799
        this.success = new ItemInventory(other.success);
8800
      }
8801
      if (other.isSetCex()) {
8802
        this.cex = new InventoryServiceException(other.cex);
8803
      }
8804
    }
8805
 
8806
    public getItemInventoryByItemId_result deepCopy() {
8807
      return new getItemInventoryByItemId_result(this);
8808
    }
8809
 
8810
    @Override
8811
    public void clear() {
8812
      this.success = null;
8813
      this.cex = null;
8814
    }
8815
 
8816
    public ItemInventory getSuccess() {
8817
      return this.success;
8818
    }
8819
 
8820
    public void setSuccess(ItemInventory success) {
8821
      this.success = success;
8822
    }
8823
 
8824
    public void unsetSuccess() {
8825
      this.success = null;
8826
    }
8827
 
8828
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8829
    public boolean isSetSuccess() {
8830
      return this.success != null;
8831
    }
8832
 
8833
    public void setSuccessIsSet(boolean value) {
8834
      if (!value) {
8835
        this.success = null;
8836
      }
8837
    }
8838
 
8839
    public InventoryServiceException getCex() {
8840
      return this.cex;
8841
    }
8842
 
8843
    public void setCex(InventoryServiceException cex) {
8844
      this.cex = cex;
8845
    }
8846
 
8847
    public void unsetCex() {
8848
      this.cex = null;
8849
    }
8850
 
8851
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8852
    public boolean isSetCex() {
8853
      return this.cex != null;
8854
    }
8855
 
8856
    public void setCexIsSet(boolean value) {
8857
      if (!value) {
8858
        this.cex = null;
8859
      }
8860
    }
8861
 
8862
    public void setFieldValue(_Fields field, Object value) {
8863
      switch (field) {
8864
      case SUCCESS:
8865
        if (value == null) {
8866
          unsetSuccess();
8867
        } else {
8868
          setSuccess((ItemInventory)value);
8869
        }
8870
        break;
8871
 
8872
      case CEX:
8873
        if (value == null) {
8874
          unsetCex();
8875
        } else {
8876
          setCex((InventoryServiceException)value);
8877
        }
8878
        break;
8879
 
8880
      }
8881
    }
8882
 
8883
    public Object getFieldValue(_Fields field) {
8884
      switch (field) {
8885
      case SUCCESS:
8886
        return getSuccess();
8887
 
8888
      case CEX:
8889
        return getCex();
8890
 
8891
      }
8892
      throw new IllegalStateException();
8893
    }
8894
 
8895
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8896
    public boolean isSet(_Fields field) {
8897
      if (field == null) {
8898
        throw new IllegalArgumentException();
8899
      }
8900
 
8901
      switch (field) {
8902
      case SUCCESS:
8903
        return isSetSuccess();
8904
      case CEX:
8905
        return isSetCex();
8906
      }
8907
      throw new IllegalStateException();
8908
    }
8909
 
8910
    @Override
8911
    public boolean equals(Object that) {
8912
      if (that == null)
8913
        return false;
8914
      if (that instanceof getItemInventoryByItemId_result)
8915
        return this.equals((getItemInventoryByItemId_result)that);
8916
      return false;
8917
    }
8918
 
8919
    public boolean equals(getItemInventoryByItemId_result that) {
8920
      if (that == null)
8921
        return false;
8922
 
8923
      boolean this_present_success = true && this.isSetSuccess();
8924
      boolean that_present_success = true && that.isSetSuccess();
8925
      if (this_present_success || that_present_success) {
8926
        if (!(this_present_success && that_present_success))
8927
          return false;
8928
        if (!this.success.equals(that.success))
8929
          return false;
8930
      }
8931
 
8932
      boolean this_present_cex = true && this.isSetCex();
8933
      boolean that_present_cex = true && that.isSetCex();
8934
      if (this_present_cex || that_present_cex) {
8935
        if (!(this_present_cex && that_present_cex))
8936
          return false;
8937
        if (!this.cex.equals(that.cex))
8938
          return false;
8939
      }
8940
 
8941
      return true;
8942
    }
8943
 
8944
    @Override
8945
    public int hashCode() {
8946
      return 0;
8947
    }
8948
 
8949
    public int compareTo(getItemInventoryByItemId_result other) {
8950
      if (!getClass().equals(other.getClass())) {
8951
        return getClass().getName().compareTo(other.getClass().getName());
8952
      }
8953
 
8954
      int lastComparison = 0;
8955
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
8956
 
8957
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8958
      if (lastComparison != 0) {
8959
        return lastComparison;
8960
      }
8961
      if (isSetSuccess()) {
8962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8963
        if (lastComparison != 0) {
8964
          return lastComparison;
8965
        }
8966
      }
8967
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8968
      if (lastComparison != 0) {
8969
        return lastComparison;
8970
      }
8971
      if (isSetCex()) {
8972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8973
        if (lastComparison != 0) {
8974
          return lastComparison;
8975
        }
8976
      }
8977
      return 0;
8978
    }
8979
 
8980
    public _Fields fieldForId(int fieldId) {
8981
      return _Fields.findByThriftId(fieldId);
8982
    }
8983
 
8984
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8985
      org.apache.thrift.protocol.TField field;
8986
      iprot.readStructBegin();
8987
      while (true)
8988
      {
8989
        field = iprot.readFieldBegin();
8990
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8991
          break;
8992
        }
8993
        switch (field.id) {
8994
          case 0: // SUCCESS
8995
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8996
              this.success = new ItemInventory();
8997
              this.success.read(iprot);
8998
            } else { 
8999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9000
            }
9001
            break;
9002
          case 1: // CEX
9003
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9004
              this.cex = new InventoryServiceException();
9005
              this.cex.read(iprot);
9006
            } else { 
9007
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9008
            }
9009
            break;
9010
          default:
9011
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9012
        }
9013
        iprot.readFieldEnd();
9014
      }
9015
      iprot.readStructEnd();
9016
      validate();
9017
    }
9018
 
9019
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9020
      oprot.writeStructBegin(STRUCT_DESC);
9021
 
9022
      if (this.isSetSuccess()) {
9023
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9024
        this.success.write(oprot);
9025
        oprot.writeFieldEnd();
9026
      } else if (this.isSetCex()) {
9027
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9028
        this.cex.write(oprot);
9029
        oprot.writeFieldEnd();
9030
      }
9031
      oprot.writeFieldStop();
9032
      oprot.writeStructEnd();
9033
    }
9034
 
9035
    @Override
9036
    public String toString() {
9037
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
9038
      boolean first = true;
9039
 
9040
      sb.append("success:");
9041
      if (this.success == null) {
9042
        sb.append("null");
9043
      } else {
9044
        sb.append(this.success);
9045
      }
9046
      first = false;
9047
      if (!first) sb.append(", ");
9048
      sb.append("cex:");
9049
      if (this.cex == null) {
9050
        sb.append("null");
9051
      } else {
9052
        sb.append(this.cex);
9053
      }
9054
      first = false;
9055
      sb.append(")");
9056
      return sb.toString();
9057
    }
9058
 
9059
    public void validate() throws org.apache.thrift.TException {
9060
      // check for required fields
9061
    }
9062
 
9063
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9064
      try {
9065
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9066
      } catch (org.apache.thrift.TException te) {
9067
        throw new java.io.IOException(te);
9068
      }
9069
    }
9070
 
9071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9072
      try {
9073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9074
      } catch (org.apache.thrift.TException te) {
9075
        throw new java.io.IOException(te);
9076
      }
9077
    }
9078
 
9079
  }
9080
 
9081
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
9082
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
9083
 
9084
    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);
9085
    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);
9086
 
9087
    private long warehouse_id; // required
9088
    private long item_id; // required
9089
 
9090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9092
      WAREHOUSE_ID((short)1, "warehouse_id"),
9093
      ITEM_ID((short)2, "item_id");
9094
 
9095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9096
 
9097
      static {
9098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9099
          byName.put(field.getFieldName(), field);
9100
        }
9101
      }
9102
 
9103
      /**
9104
       * Find the _Fields constant that matches fieldId, or null if its not found.
9105
       */
9106
      public static _Fields findByThriftId(int fieldId) {
9107
        switch(fieldId) {
9108
          case 1: // WAREHOUSE_ID
9109
            return WAREHOUSE_ID;
9110
          case 2: // ITEM_ID
9111
            return ITEM_ID;
9112
          default:
9113
            return null;
9114
        }
9115
      }
9116
 
9117
      /**
9118
       * Find the _Fields constant that matches fieldId, throwing an exception
9119
       * if it is not found.
9120
       */
9121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9122
        _Fields fields = findByThriftId(fieldId);
9123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9124
        return fields;
9125
      }
9126
 
9127
      /**
9128
       * Find the _Fields constant that matches name, or null if its not found.
9129
       */
9130
      public static _Fields findByName(String name) {
9131
        return byName.get(name);
9132
      }
9133
 
9134
      private final short _thriftId;
9135
      private final String _fieldName;
9136
 
9137
      _Fields(short thriftId, String fieldName) {
9138
        _thriftId = thriftId;
9139
        _fieldName = fieldName;
9140
      }
9141
 
9142
      public short getThriftFieldId() {
9143
        return _thriftId;
9144
      }
9145
 
9146
      public String getFieldName() {
9147
        return _fieldName;
9148
      }
9149
    }
9150
 
9151
    // isset id assignments
9152
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
9153
    private static final int __ITEM_ID_ISSET_ID = 1;
9154
    private BitSet __isset_bit_vector = new BitSet(2);
9155
 
9156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9157
    static {
9158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9159
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9161
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9163
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9164
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
9165
    }
9166
 
9167
    public getItemAvailibilityAtWarehouse_args() {
9168
    }
9169
 
9170
    public getItemAvailibilityAtWarehouse_args(
9171
      long warehouse_id,
9172
      long item_id)
9173
    {
9174
      this();
9175
      this.warehouse_id = warehouse_id;
9176
      setWarehouse_idIsSet(true);
9177
      this.item_id = item_id;
9178
      setItem_idIsSet(true);
9179
    }
9180
 
9181
    /**
9182
     * Performs a deep copy on <i>other</i>.
9183
     */
9184
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
9185
      __isset_bit_vector.clear();
9186
      __isset_bit_vector.or(other.__isset_bit_vector);
9187
      this.warehouse_id = other.warehouse_id;
9188
      this.item_id = other.item_id;
9189
    }
9190
 
9191
    public getItemAvailibilityAtWarehouse_args deepCopy() {
9192
      return new getItemAvailibilityAtWarehouse_args(this);
9193
    }
9194
 
9195
    @Override
9196
    public void clear() {
9197
      setWarehouse_idIsSet(false);
9198
      this.warehouse_id = 0;
9199
      setItem_idIsSet(false);
9200
      this.item_id = 0;
9201
    }
9202
 
9203
    public long getWarehouse_id() {
9204
      return this.warehouse_id;
9205
    }
9206
 
9207
    public void setWarehouse_id(long warehouse_id) {
9208
      this.warehouse_id = warehouse_id;
9209
      setWarehouse_idIsSet(true);
9210
    }
9211
 
9212
    public void unsetWarehouse_id() {
9213
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
9214
    }
9215
 
9216
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
9217
    public boolean isSetWarehouse_id() {
9218
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
9219
    }
9220
 
9221
    public void setWarehouse_idIsSet(boolean value) {
9222
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
9223
    }
9224
 
9225
    public long getItem_id() {
9226
      return this.item_id;
9227
    }
9228
 
9229
    public void setItem_id(long item_id) {
9230
      this.item_id = item_id;
9231
      setItem_idIsSet(true);
9232
    }
9233
 
9234
    public void unsetItem_id() {
9235
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9236
    }
9237
 
9238
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9239
    public boolean isSetItem_id() {
9240
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9241
    }
9242
 
9243
    public void setItem_idIsSet(boolean value) {
9244
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9245
    }
9246
 
9247
    public void setFieldValue(_Fields field, Object value) {
9248
      switch (field) {
9249
      case WAREHOUSE_ID:
9250
        if (value == null) {
9251
          unsetWarehouse_id();
9252
        } else {
9253
          setWarehouse_id((Long)value);
9254
        }
9255
        break;
9256
 
9257
      case ITEM_ID:
9258
        if (value == null) {
9259
          unsetItem_id();
9260
        } else {
9261
          setItem_id((Long)value);
9262
        }
9263
        break;
9264
 
9265
      }
9266
    }
9267
 
9268
    public Object getFieldValue(_Fields field) {
9269
      switch (field) {
9270
      case WAREHOUSE_ID:
9271
        return Long.valueOf(getWarehouse_id());
9272
 
9273
      case ITEM_ID:
9274
        return Long.valueOf(getItem_id());
9275
 
9276
      }
9277
      throw new IllegalStateException();
9278
    }
9279
 
9280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9281
    public boolean isSet(_Fields field) {
9282
      if (field == null) {
9283
        throw new IllegalArgumentException();
9284
      }
9285
 
9286
      switch (field) {
9287
      case WAREHOUSE_ID:
9288
        return isSetWarehouse_id();
9289
      case ITEM_ID:
9290
        return isSetItem_id();
9291
      }
9292
      throw new IllegalStateException();
9293
    }
9294
 
9295
    @Override
9296
    public boolean equals(Object that) {
9297
      if (that == null)
9298
        return false;
9299
      if (that instanceof getItemAvailibilityAtWarehouse_args)
9300
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
9301
      return false;
9302
    }
9303
 
9304
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
9305
      if (that == null)
9306
        return false;
9307
 
9308
      boolean this_present_warehouse_id = true;
9309
      boolean that_present_warehouse_id = true;
9310
      if (this_present_warehouse_id || that_present_warehouse_id) {
9311
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9312
          return false;
9313
        if (this.warehouse_id != that.warehouse_id)
9314
          return false;
9315
      }
9316
 
9317
      boolean this_present_item_id = true;
9318
      boolean that_present_item_id = true;
9319
      if (this_present_item_id || that_present_item_id) {
9320
        if (!(this_present_item_id && that_present_item_id))
9321
          return false;
9322
        if (this.item_id != that.item_id)
9323
          return false;
9324
      }
9325
 
9326
      return true;
9327
    }
9328
 
9329
    @Override
9330
    public int hashCode() {
9331
      return 0;
9332
    }
9333
 
9334
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
9335
      if (!getClass().equals(other.getClass())) {
9336
        return getClass().getName().compareTo(other.getClass().getName());
9337
      }
9338
 
9339
      int lastComparison = 0;
9340
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
9341
 
9342
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9343
      if (lastComparison != 0) {
9344
        return lastComparison;
9345
      }
9346
      if (isSetWarehouse_id()) {
9347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9348
        if (lastComparison != 0) {
9349
          return lastComparison;
9350
        }
9351
      }
9352
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9353
      if (lastComparison != 0) {
9354
        return lastComparison;
9355
      }
9356
      if (isSetItem_id()) {
9357
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9358
        if (lastComparison != 0) {
9359
          return lastComparison;
9360
        }
9361
      }
9362
      return 0;
9363
    }
9364
 
9365
    public _Fields fieldForId(int fieldId) {
9366
      return _Fields.findByThriftId(fieldId);
9367
    }
9368
 
9369
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9370
      org.apache.thrift.protocol.TField field;
9371
      iprot.readStructBegin();
9372
      while (true)
9373
      {
9374
        field = iprot.readFieldBegin();
9375
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9376
          break;
9377
        }
9378
        switch (field.id) {
9379
          case 1: // WAREHOUSE_ID
9380
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9381
              this.warehouse_id = iprot.readI64();
9382
              setWarehouse_idIsSet(true);
9383
            } else { 
9384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9385
            }
9386
            break;
9387
          case 2: // ITEM_ID
9388
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9389
              this.item_id = iprot.readI64();
9390
              setItem_idIsSet(true);
9391
            } else { 
9392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9393
            }
9394
            break;
9395
          default:
9396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9397
        }
9398
        iprot.readFieldEnd();
9399
      }
9400
      iprot.readStructEnd();
9401
      validate();
9402
    }
9403
 
9404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9405
      validate();
9406
 
9407
      oprot.writeStructBegin(STRUCT_DESC);
9408
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9409
      oprot.writeI64(this.warehouse_id);
9410
      oprot.writeFieldEnd();
9411
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9412
      oprot.writeI64(this.item_id);
9413
      oprot.writeFieldEnd();
9414
      oprot.writeFieldStop();
9415
      oprot.writeStructEnd();
9416
    }
9417
 
9418
    @Override
9419
    public String toString() {
9420
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
9421
      boolean first = true;
9422
 
9423
      sb.append("warehouse_id:");
9424
      sb.append(this.warehouse_id);
9425
      first = false;
9426
      if (!first) sb.append(", ");
9427
      sb.append("item_id:");
9428
      sb.append(this.item_id);
9429
      first = false;
9430
      sb.append(")");
9431
      return sb.toString();
9432
    }
9433
 
9434
    public void validate() throws org.apache.thrift.TException {
9435
      // check for required fields
9436
    }
9437
 
9438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9439
      try {
9440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9441
      } catch (org.apache.thrift.TException te) {
9442
        throw new java.io.IOException(te);
9443
      }
9444
    }
9445
 
9446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9447
      try {
9448
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9449
        __isset_bit_vector = new BitSet(1);
9450
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9451
      } catch (org.apache.thrift.TException te) {
9452
        throw new java.io.IOException(te);
9453
      }
9454
    }
9455
 
9456
  }
9457
 
9458
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
9459
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
9460
 
9461
    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);
9462
    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);
9463
 
9464
    private long success; // required
9465
    private InventoryServiceException cex; // required
9466
 
9467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9469
      SUCCESS((short)0, "success"),
9470
      CEX((short)1, "cex");
9471
 
9472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9473
 
9474
      static {
9475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9476
          byName.put(field.getFieldName(), field);
9477
        }
9478
      }
9479
 
9480
      /**
9481
       * Find the _Fields constant that matches fieldId, or null if its not found.
9482
       */
9483
      public static _Fields findByThriftId(int fieldId) {
9484
        switch(fieldId) {
9485
          case 0: // SUCCESS
9486
            return SUCCESS;
9487
          case 1: // CEX
9488
            return CEX;
9489
          default:
9490
            return null;
9491
        }
9492
      }
9493
 
9494
      /**
9495
       * Find the _Fields constant that matches fieldId, throwing an exception
9496
       * if it is not found.
9497
       */
9498
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9499
        _Fields fields = findByThriftId(fieldId);
9500
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9501
        return fields;
9502
      }
9503
 
9504
      /**
9505
       * Find the _Fields constant that matches name, or null if its not found.
9506
       */
9507
      public static _Fields findByName(String name) {
9508
        return byName.get(name);
9509
      }
9510
 
9511
      private final short _thriftId;
9512
      private final String _fieldName;
9513
 
9514
      _Fields(short thriftId, String fieldName) {
9515
        _thriftId = thriftId;
9516
        _fieldName = fieldName;
9517
      }
9518
 
9519
      public short getThriftFieldId() {
9520
        return _thriftId;
9521
      }
9522
 
9523
      public String getFieldName() {
9524
        return _fieldName;
9525
      }
9526
    }
9527
 
9528
    // isset id assignments
9529
    private static final int __SUCCESS_ISSET_ID = 0;
9530
    private BitSet __isset_bit_vector = new BitSet(1);
9531
 
9532
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9533
    static {
9534
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9535
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9537
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9538
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9539
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9540
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
9541
    }
9542
 
9543
    public getItemAvailibilityAtWarehouse_result() {
9544
    }
9545
 
9546
    public getItemAvailibilityAtWarehouse_result(
9547
      long success,
9548
      InventoryServiceException cex)
9549
    {
9550
      this();
9551
      this.success = success;
9552
      setSuccessIsSet(true);
9553
      this.cex = cex;
9554
    }
9555
 
9556
    /**
9557
     * Performs a deep copy on <i>other</i>.
9558
     */
9559
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
9560
      __isset_bit_vector.clear();
9561
      __isset_bit_vector.or(other.__isset_bit_vector);
9562
      this.success = other.success;
9563
      if (other.isSetCex()) {
9564
        this.cex = new InventoryServiceException(other.cex);
9565
      }
9566
    }
9567
 
9568
    public getItemAvailibilityAtWarehouse_result deepCopy() {
9569
      return new getItemAvailibilityAtWarehouse_result(this);
9570
    }
9571
 
9572
    @Override
9573
    public void clear() {
9574
      setSuccessIsSet(false);
9575
      this.success = 0;
9576
      this.cex = null;
9577
    }
9578
 
9579
    public long getSuccess() {
9580
      return this.success;
9581
    }
9582
 
9583
    public void setSuccess(long success) {
9584
      this.success = success;
9585
      setSuccessIsSet(true);
9586
    }
9587
 
9588
    public void unsetSuccess() {
9589
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9590
    }
9591
 
9592
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9593
    public boolean isSetSuccess() {
9594
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9595
    }
9596
 
9597
    public void setSuccessIsSet(boolean value) {
9598
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9599
    }
9600
 
9601
    public InventoryServiceException getCex() {
9602
      return this.cex;
9603
    }
9604
 
9605
    public void setCex(InventoryServiceException cex) {
9606
      this.cex = cex;
9607
    }
9608
 
9609
    public void unsetCex() {
9610
      this.cex = null;
9611
    }
9612
 
9613
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9614
    public boolean isSetCex() {
9615
      return this.cex != null;
9616
    }
9617
 
9618
    public void setCexIsSet(boolean value) {
9619
      if (!value) {
9620
        this.cex = null;
9621
      }
9622
    }
9623
 
9624
    public void setFieldValue(_Fields field, Object value) {
9625
      switch (field) {
9626
      case SUCCESS:
9627
        if (value == null) {
9628
          unsetSuccess();
9629
        } else {
9630
          setSuccess((Long)value);
9631
        }
9632
        break;
9633
 
9634
      case CEX:
9635
        if (value == null) {
9636
          unsetCex();
9637
        } else {
9638
          setCex((InventoryServiceException)value);
9639
        }
9640
        break;
9641
 
9642
      }
9643
    }
9644
 
9645
    public Object getFieldValue(_Fields field) {
9646
      switch (field) {
9647
      case SUCCESS:
9648
        return Long.valueOf(getSuccess());
9649
 
9650
      case CEX:
9651
        return getCex();
9652
 
9653
      }
9654
      throw new IllegalStateException();
9655
    }
9656
 
9657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9658
    public boolean isSet(_Fields field) {
9659
      if (field == null) {
9660
        throw new IllegalArgumentException();
9661
      }
9662
 
9663
      switch (field) {
9664
      case SUCCESS:
9665
        return isSetSuccess();
9666
      case CEX:
9667
        return isSetCex();
9668
      }
9669
      throw new IllegalStateException();
9670
    }
9671
 
9672
    @Override
9673
    public boolean equals(Object that) {
9674
      if (that == null)
9675
        return false;
9676
      if (that instanceof getItemAvailibilityAtWarehouse_result)
9677
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
9678
      return false;
9679
    }
9680
 
9681
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
9682
      if (that == null)
9683
        return false;
9684
 
9685
      boolean this_present_success = true;
9686
      boolean that_present_success = true;
9687
      if (this_present_success || that_present_success) {
9688
        if (!(this_present_success && that_present_success))
9689
          return false;
9690
        if (this.success != that.success)
9691
          return false;
9692
      }
9693
 
9694
      boolean this_present_cex = true && this.isSetCex();
9695
      boolean that_present_cex = true && that.isSetCex();
9696
      if (this_present_cex || that_present_cex) {
9697
        if (!(this_present_cex && that_present_cex))
9698
          return false;
9699
        if (!this.cex.equals(that.cex))
9700
          return false;
9701
      }
9702
 
9703
      return true;
9704
    }
9705
 
9706
    @Override
9707
    public int hashCode() {
9708
      return 0;
9709
    }
9710
 
9711
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
9712
      if (!getClass().equals(other.getClass())) {
9713
        return getClass().getName().compareTo(other.getClass().getName());
9714
      }
9715
 
9716
      int lastComparison = 0;
9717
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
9718
 
9719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9720
      if (lastComparison != 0) {
9721
        return lastComparison;
9722
      }
9723
      if (isSetSuccess()) {
9724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9725
        if (lastComparison != 0) {
9726
          return lastComparison;
9727
        }
9728
      }
9729
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9730
      if (lastComparison != 0) {
9731
        return lastComparison;
9732
      }
9733
      if (isSetCex()) {
9734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9735
        if (lastComparison != 0) {
9736
          return lastComparison;
9737
        }
9738
      }
9739
      return 0;
9740
    }
9741
 
9742
    public _Fields fieldForId(int fieldId) {
9743
      return _Fields.findByThriftId(fieldId);
9744
    }
9745
 
9746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9747
      org.apache.thrift.protocol.TField field;
9748
      iprot.readStructBegin();
9749
      while (true)
9750
      {
9751
        field = iprot.readFieldBegin();
9752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9753
          break;
9754
        }
9755
        switch (field.id) {
9756
          case 0: // SUCCESS
9757
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9758
              this.success = iprot.readI64();
9759
              setSuccessIsSet(true);
9760
            } else { 
9761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9762
            }
9763
            break;
9764
          case 1: // CEX
9765
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9766
              this.cex = new InventoryServiceException();
9767
              this.cex.read(iprot);
9768
            } else { 
9769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9770
            }
9771
            break;
9772
          default:
9773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9774
        }
9775
        iprot.readFieldEnd();
9776
      }
9777
      iprot.readStructEnd();
9778
      validate();
9779
    }
9780
 
9781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9782
      oprot.writeStructBegin(STRUCT_DESC);
9783
 
9784
      if (this.isSetSuccess()) {
9785
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9786
        oprot.writeI64(this.success);
9787
        oprot.writeFieldEnd();
9788
      } else if (this.isSetCex()) {
9789
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9790
        this.cex.write(oprot);
9791
        oprot.writeFieldEnd();
9792
      }
9793
      oprot.writeFieldStop();
9794
      oprot.writeStructEnd();
9795
    }
9796
 
9797
    @Override
9798
    public String toString() {
9799
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
9800
      boolean first = true;
9801
 
9802
      sb.append("success:");
9803
      sb.append(this.success);
9804
      first = false;
9805
      if (!first) sb.append(", ");
9806
      sb.append("cex:");
9807
      if (this.cex == null) {
9808
        sb.append("null");
9809
      } else {
9810
        sb.append(this.cex);
9811
      }
9812
      first = false;
9813
      sb.append(")");
9814
      return sb.toString();
9815
    }
9816
 
9817
    public void validate() throws org.apache.thrift.TException {
9818
      // check for required fields
9819
    }
9820
 
9821
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9822
      try {
9823
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9824
      } catch (org.apache.thrift.TException te) {
9825
        throw new java.io.IOException(te);
9826
      }
9827
    }
9828
 
9829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9830
      try {
9831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9832
      } catch (org.apache.thrift.TException te) {
9833
        throw new java.io.IOException(te);
9834
      }
9835
    }
9836
 
9837
  }
9838
 
9839
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
9840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
9841
 
9842
    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 9843
    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 9844
 
9845
    private long itemId; // required
5978 rajveer 9846
    private long sourceId; // required
5945 mandeep.dh 9847
 
9848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9849
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 9850
      ITEM_ID((short)1, "itemId"),
9851
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 9852
 
9853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9854
 
9855
      static {
9856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9857
          byName.put(field.getFieldName(), field);
9858
        }
9859
      }
9860
 
9861
      /**
9862
       * Find the _Fields constant that matches fieldId, or null if its not found.
9863
       */
9864
      public static _Fields findByThriftId(int fieldId) {
9865
        switch(fieldId) {
9866
          case 1: // ITEM_ID
9867
            return ITEM_ID;
5978 rajveer 9868
          case 2: // SOURCE_ID
9869
            return SOURCE_ID;
5945 mandeep.dh 9870
          default:
9871
            return null;
9872
        }
9873
      }
9874
 
9875
      /**
9876
       * Find the _Fields constant that matches fieldId, throwing an exception
9877
       * if it is not found.
9878
       */
9879
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9880
        _Fields fields = findByThriftId(fieldId);
9881
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9882
        return fields;
9883
      }
9884
 
9885
      /**
9886
       * Find the _Fields constant that matches name, or null if its not found.
9887
       */
9888
      public static _Fields findByName(String name) {
9889
        return byName.get(name);
9890
      }
9891
 
9892
      private final short _thriftId;
9893
      private final String _fieldName;
9894
 
9895
      _Fields(short thriftId, String fieldName) {
9896
        _thriftId = thriftId;
9897
        _fieldName = fieldName;
9898
      }
9899
 
9900
      public short getThriftFieldId() {
9901
        return _thriftId;
9902
      }
9903
 
9904
      public String getFieldName() {
9905
        return _fieldName;
9906
      }
9907
    }
9908
 
9909
    // isset id assignments
9910
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 9911
    private static final int __SOURCEID_ISSET_ID = 1;
9912
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 9913
 
9914
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9915
    static {
9916
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9917
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 9919
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 9921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
9923
    }
9924
 
9925
    public getItemAvailabilityAtLocation_args() {
9926
    }
9927
 
9928
    public getItemAvailabilityAtLocation_args(
5978 rajveer 9929
      long itemId,
9930
      long sourceId)
5945 mandeep.dh 9931
    {
9932
      this();
9933
      this.itemId = itemId;
9934
      setItemIdIsSet(true);
5978 rajveer 9935
      this.sourceId = sourceId;
9936
      setSourceIdIsSet(true);
5945 mandeep.dh 9937
    }
9938
 
9939
    /**
9940
     * Performs a deep copy on <i>other</i>.
9941
     */
9942
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
9943
      __isset_bit_vector.clear();
9944
      __isset_bit_vector.or(other.__isset_bit_vector);
9945
      this.itemId = other.itemId;
5978 rajveer 9946
      this.sourceId = other.sourceId;
5945 mandeep.dh 9947
    }
9948
 
9949
    public getItemAvailabilityAtLocation_args deepCopy() {
9950
      return new getItemAvailabilityAtLocation_args(this);
9951
    }
9952
 
9953
    @Override
9954
    public void clear() {
9955
      setItemIdIsSet(false);
9956
      this.itemId = 0;
5978 rajveer 9957
      setSourceIdIsSet(false);
9958
      this.sourceId = 0;
5945 mandeep.dh 9959
    }
9960
 
9961
    public long getItemId() {
9962
      return this.itemId;
9963
    }
9964
 
9965
    public void setItemId(long itemId) {
9966
      this.itemId = itemId;
9967
      setItemIdIsSet(true);
9968
    }
9969
 
9970
    public void unsetItemId() {
9971
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9972
    }
9973
 
9974
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9975
    public boolean isSetItemId() {
9976
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9977
    }
9978
 
9979
    public void setItemIdIsSet(boolean value) {
9980
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9981
    }
9982
 
5978 rajveer 9983
    public long getSourceId() {
9984
      return this.sourceId;
9985
    }
9986
 
9987
    public void setSourceId(long sourceId) {
9988
      this.sourceId = sourceId;
9989
      setSourceIdIsSet(true);
9990
    }
9991
 
9992
    public void unsetSourceId() {
9993
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
9994
    }
9995
 
9996
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
9997
    public boolean isSetSourceId() {
9998
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
9999
    }
10000
 
10001
    public void setSourceIdIsSet(boolean value) {
10002
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
10003
    }
10004
 
5945 mandeep.dh 10005
    public void setFieldValue(_Fields field, Object value) {
10006
      switch (field) {
10007
      case ITEM_ID:
10008
        if (value == null) {
10009
          unsetItemId();
10010
        } else {
10011
          setItemId((Long)value);
10012
        }
10013
        break;
10014
 
5978 rajveer 10015
      case SOURCE_ID:
10016
        if (value == null) {
10017
          unsetSourceId();
10018
        } else {
10019
          setSourceId((Long)value);
10020
        }
10021
        break;
10022
 
5945 mandeep.dh 10023
      }
10024
    }
10025
 
10026
    public Object getFieldValue(_Fields field) {
10027
      switch (field) {
10028
      case ITEM_ID:
10029
        return Long.valueOf(getItemId());
10030
 
5978 rajveer 10031
      case SOURCE_ID:
10032
        return Long.valueOf(getSourceId());
10033
 
5945 mandeep.dh 10034
      }
10035
      throw new IllegalStateException();
10036
    }
10037
 
10038
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10039
    public boolean isSet(_Fields field) {
10040
      if (field == null) {
10041
        throw new IllegalArgumentException();
10042
      }
10043
 
10044
      switch (field) {
10045
      case ITEM_ID:
10046
        return isSetItemId();
5978 rajveer 10047
      case SOURCE_ID:
10048
        return isSetSourceId();
5945 mandeep.dh 10049
      }
10050
      throw new IllegalStateException();
10051
    }
10052
 
10053
    @Override
10054
    public boolean equals(Object that) {
10055
      if (that == null)
10056
        return false;
10057
      if (that instanceof getItemAvailabilityAtLocation_args)
10058
        return this.equals((getItemAvailabilityAtLocation_args)that);
10059
      return false;
10060
    }
10061
 
10062
    public boolean equals(getItemAvailabilityAtLocation_args that) {
10063
      if (that == null)
10064
        return false;
10065
 
10066
      boolean this_present_itemId = true;
10067
      boolean that_present_itemId = true;
10068
      if (this_present_itemId || that_present_itemId) {
10069
        if (!(this_present_itemId && that_present_itemId))
10070
          return false;
10071
        if (this.itemId != that.itemId)
10072
          return false;
10073
      }
10074
 
5978 rajveer 10075
      boolean this_present_sourceId = true;
10076
      boolean that_present_sourceId = true;
10077
      if (this_present_sourceId || that_present_sourceId) {
10078
        if (!(this_present_sourceId && that_present_sourceId))
10079
          return false;
10080
        if (this.sourceId != that.sourceId)
10081
          return false;
10082
      }
10083
 
5945 mandeep.dh 10084
      return true;
10085
    }
10086
 
10087
    @Override
10088
    public int hashCode() {
10089
      return 0;
10090
    }
10091
 
10092
    public int compareTo(getItemAvailabilityAtLocation_args other) {
10093
      if (!getClass().equals(other.getClass())) {
10094
        return getClass().getName().compareTo(other.getClass().getName());
10095
      }
10096
 
10097
      int lastComparison = 0;
10098
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
10099
 
10100
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
10101
      if (lastComparison != 0) {
10102
        return lastComparison;
10103
      }
10104
      if (isSetItemId()) {
10105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
10106
        if (lastComparison != 0) {
10107
          return lastComparison;
10108
        }
10109
      }
5978 rajveer 10110
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
10111
      if (lastComparison != 0) {
10112
        return lastComparison;
10113
      }
10114
      if (isSetSourceId()) {
10115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
10116
        if (lastComparison != 0) {
10117
          return lastComparison;
10118
        }
10119
      }
5945 mandeep.dh 10120
      return 0;
10121
    }
10122
 
10123
    public _Fields fieldForId(int fieldId) {
10124
      return _Fields.findByThriftId(fieldId);
10125
    }
10126
 
10127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10128
      org.apache.thrift.protocol.TField field;
10129
      iprot.readStructBegin();
10130
      while (true)
10131
      {
10132
        field = iprot.readFieldBegin();
10133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10134
          break;
10135
        }
10136
        switch (field.id) {
10137
          case 1: // ITEM_ID
10138
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10139
              this.itemId = iprot.readI64();
10140
              setItemIdIsSet(true);
10141
            } else { 
10142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10143
            }
10144
            break;
5978 rajveer 10145
          case 2: // SOURCE_ID
10146
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10147
              this.sourceId = iprot.readI64();
10148
              setSourceIdIsSet(true);
10149
            } else { 
10150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10151
            }
10152
            break;
5945 mandeep.dh 10153
          default:
10154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10155
        }
10156
        iprot.readFieldEnd();
10157
      }
10158
      iprot.readStructEnd();
10159
      validate();
10160
    }
10161
 
10162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10163
      validate();
10164
 
10165
      oprot.writeStructBegin(STRUCT_DESC);
10166
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10167
      oprot.writeI64(this.itemId);
10168
      oprot.writeFieldEnd();
5978 rajveer 10169
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
10170
      oprot.writeI64(this.sourceId);
10171
      oprot.writeFieldEnd();
5945 mandeep.dh 10172
      oprot.writeFieldStop();
10173
      oprot.writeStructEnd();
10174
    }
10175
 
10176
    @Override
10177
    public String toString() {
10178
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
10179
      boolean first = true;
10180
 
10181
      sb.append("itemId:");
10182
      sb.append(this.itemId);
10183
      first = false;
5978 rajveer 10184
      if (!first) sb.append(", ");
10185
      sb.append("sourceId:");
10186
      sb.append(this.sourceId);
10187
      first = false;
5945 mandeep.dh 10188
      sb.append(")");
10189
      return sb.toString();
10190
    }
10191
 
10192
    public void validate() throws org.apache.thrift.TException {
10193
      // check for required fields
10194
    }
10195
 
10196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10197
      try {
10198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10199
      } catch (org.apache.thrift.TException te) {
10200
        throw new java.io.IOException(te);
10201
      }
10202
    }
10203
 
10204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10205
      try {
10206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10207
      } catch (org.apache.thrift.TException te) {
10208
        throw new java.io.IOException(te);
10209
      }
10210
    }
10211
 
10212
  }
10213
 
10214
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
10215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
10216
 
10217
    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);
10218
    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);
10219
 
10220
    private List<Long> success; // required
10221
    private InventoryServiceException isex; // required
10222
 
10223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10225
      SUCCESS((short)0, "success"),
10226
      ISEX((short)1, "isex");
10227
 
10228
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10229
 
10230
      static {
10231
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10232
          byName.put(field.getFieldName(), field);
10233
        }
10234
      }
10235
 
10236
      /**
10237
       * Find the _Fields constant that matches fieldId, or null if its not found.
10238
       */
10239
      public static _Fields findByThriftId(int fieldId) {
10240
        switch(fieldId) {
10241
          case 0: // SUCCESS
10242
            return SUCCESS;
10243
          case 1: // ISEX
10244
            return ISEX;
10245
          default:
10246
            return null;
10247
        }
10248
      }
10249
 
10250
      /**
10251
       * Find the _Fields constant that matches fieldId, throwing an exception
10252
       * if it is not found.
10253
       */
10254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10255
        _Fields fields = findByThriftId(fieldId);
10256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10257
        return fields;
10258
      }
10259
 
10260
      /**
10261
       * Find the _Fields constant that matches name, or null if its not found.
10262
       */
10263
      public static _Fields findByName(String name) {
10264
        return byName.get(name);
10265
      }
10266
 
10267
      private final short _thriftId;
10268
      private final String _fieldName;
10269
 
10270
      _Fields(short thriftId, String fieldName) {
10271
        _thriftId = thriftId;
10272
        _fieldName = fieldName;
10273
      }
10274
 
10275
      public short getThriftFieldId() {
10276
        return _thriftId;
10277
      }
10278
 
10279
      public String getFieldName() {
10280
        return _fieldName;
10281
      }
10282
    }
10283
 
10284
    // isset id assignments
10285
 
10286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10287
    static {
10288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10289
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10290
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10291
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10292
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10293
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
10296
    }
10297
 
10298
    public getItemAvailabilityAtLocation_result() {
10299
    }
10300
 
10301
    public getItemAvailabilityAtLocation_result(
10302
      List<Long> success,
10303
      InventoryServiceException isex)
10304
    {
10305
      this();
10306
      this.success = success;
10307
      this.isex = isex;
10308
    }
10309
 
10310
    /**
10311
     * Performs a deep copy on <i>other</i>.
10312
     */
10313
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
10314
      if (other.isSetSuccess()) {
10315
        List<Long> __this__success = new ArrayList<Long>();
10316
        for (Long other_element : other.success) {
10317
          __this__success.add(other_element);
10318
        }
10319
        this.success = __this__success;
10320
      }
10321
      if (other.isSetIsex()) {
10322
        this.isex = new InventoryServiceException(other.isex);
10323
      }
10324
    }
10325
 
10326
    public getItemAvailabilityAtLocation_result deepCopy() {
10327
      return new getItemAvailabilityAtLocation_result(this);
10328
    }
10329
 
10330
    @Override
10331
    public void clear() {
10332
      this.success = null;
10333
      this.isex = null;
10334
    }
10335
 
10336
    public int getSuccessSize() {
10337
      return (this.success == null) ? 0 : this.success.size();
10338
    }
10339
 
10340
    public java.util.Iterator<Long> getSuccessIterator() {
10341
      return (this.success == null) ? null : this.success.iterator();
10342
    }
10343
 
10344
    public void addToSuccess(long elem) {
10345
      if (this.success == null) {
10346
        this.success = new ArrayList<Long>();
10347
      }
10348
      this.success.add(elem);
10349
    }
10350
 
10351
    public List<Long> getSuccess() {
10352
      return this.success;
10353
    }
10354
 
10355
    public void setSuccess(List<Long> success) {
10356
      this.success = success;
10357
    }
10358
 
10359
    public void unsetSuccess() {
10360
      this.success = null;
10361
    }
10362
 
10363
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10364
    public boolean isSetSuccess() {
10365
      return this.success != null;
10366
    }
10367
 
10368
    public void setSuccessIsSet(boolean value) {
10369
      if (!value) {
10370
        this.success = null;
10371
      }
10372
    }
10373
 
10374
    public InventoryServiceException getIsex() {
10375
      return this.isex;
10376
    }
10377
 
10378
    public void setIsex(InventoryServiceException isex) {
10379
      this.isex = isex;
10380
    }
10381
 
10382
    public void unsetIsex() {
10383
      this.isex = null;
10384
    }
10385
 
10386
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
10387
    public boolean isSetIsex() {
10388
      return this.isex != null;
10389
    }
10390
 
10391
    public void setIsexIsSet(boolean value) {
10392
      if (!value) {
10393
        this.isex = null;
10394
      }
10395
    }
10396
 
10397
    public void setFieldValue(_Fields field, Object value) {
10398
      switch (field) {
10399
      case SUCCESS:
10400
        if (value == null) {
10401
          unsetSuccess();
10402
        } else {
10403
          setSuccess((List<Long>)value);
10404
        }
10405
        break;
10406
 
10407
      case ISEX:
10408
        if (value == null) {
10409
          unsetIsex();
10410
        } else {
10411
          setIsex((InventoryServiceException)value);
10412
        }
10413
        break;
10414
 
10415
      }
10416
    }
10417
 
10418
    public Object getFieldValue(_Fields field) {
10419
      switch (field) {
10420
      case SUCCESS:
10421
        return getSuccess();
10422
 
10423
      case ISEX:
10424
        return getIsex();
10425
 
10426
      }
10427
      throw new IllegalStateException();
10428
    }
10429
 
10430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10431
    public boolean isSet(_Fields field) {
10432
      if (field == null) {
10433
        throw new IllegalArgumentException();
10434
      }
10435
 
10436
      switch (field) {
10437
      case SUCCESS:
10438
        return isSetSuccess();
10439
      case ISEX:
10440
        return isSetIsex();
10441
      }
10442
      throw new IllegalStateException();
10443
    }
10444
 
10445
    @Override
10446
    public boolean equals(Object that) {
10447
      if (that == null)
10448
        return false;
10449
      if (that instanceof getItemAvailabilityAtLocation_result)
10450
        return this.equals((getItemAvailabilityAtLocation_result)that);
10451
      return false;
10452
    }
10453
 
10454
    public boolean equals(getItemAvailabilityAtLocation_result that) {
10455
      if (that == null)
10456
        return false;
10457
 
10458
      boolean this_present_success = true && this.isSetSuccess();
10459
      boolean that_present_success = true && that.isSetSuccess();
10460
      if (this_present_success || that_present_success) {
10461
        if (!(this_present_success && that_present_success))
10462
          return false;
10463
        if (!this.success.equals(that.success))
10464
          return false;
10465
      }
10466
 
10467
      boolean this_present_isex = true && this.isSetIsex();
10468
      boolean that_present_isex = true && that.isSetIsex();
10469
      if (this_present_isex || that_present_isex) {
10470
        if (!(this_present_isex && that_present_isex))
10471
          return false;
10472
        if (!this.isex.equals(that.isex))
10473
          return false;
10474
      }
10475
 
10476
      return true;
10477
    }
10478
 
10479
    @Override
10480
    public int hashCode() {
10481
      return 0;
10482
    }
10483
 
10484
    public int compareTo(getItemAvailabilityAtLocation_result other) {
10485
      if (!getClass().equals(other.getClass())) {
10486
        return getClass().getName().compareTo(other.getClass().getName());
10487
      }
10488
 
10489
      int lastComparison = 0;
10490
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
10491
 
10492
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10493
      if (lastComparison != 0) {
10494
        return lastComparison;
10495
      }
10496
      if (isSetSuccess()) {
10497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10498
        if (lastComparison != 0) {
10499
          return lastComparison;
10500
        }
10501
      }
10502
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
10503
      if (lastComparison != 0) {
10504
        return lastComparison;
10505
      }
10506
      if (isSetIsex()) {
10507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
10508
        if (lastComparison != 0) {
10509
          return lastComparison;
10510
        }
10511
      }
10512
      return 0;
10513
    }
10514
 
10515
    public _Fields fieldForId(int fieldId) {
10516
      return _Fields.findByThriftId(fieldId);
10517
    }
10518
 
10519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10520
      org.apache.thrift.protocol.TField field;
10521
      iprot.readStructBegin();
10522
      while (true)
10523
      {
10524
        field = iprot.readFieldBegin();
10525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10526
          break;
10527
        }
10528
        switch (field.id) {
10529
          case 0: // SUCCESS
10530
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10531
              {
10532
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
10533
                this.success = new ArrayList<Long>(_list20.size);
10534
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
10535
                {
10536
                  long _elem22; // required
10537
                  _elem22 = iprot.readI64();
10538
                  this.success.add(_elem22);
10539
                }
10540
                iprot.readListEnd();
10541
              }
10542
            } else { 
10543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10544
            }
10545
            break;
10546
          case 1: // ISEX
10547
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10548
              this.isex = new InventoryServiceException();
10549
              this.isex.read(iprot);
10550
            } else { 
10551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10552
            }
10553
            break;
10554
          default:
10555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10556
        }
10557
        iprot.readFieldEnd();
10558
      }
10559
      iprot.readStructEnd();
10560
      validate();
10561
    }
10562
 
10563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10564
      oprot.writeStructBegin(STRUCT_DESC);
10565
 
10566
      if (this.isSetSuccess()) {
10567
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10568
        {
10569
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
10570
          for (long _iter23 : this.success)
10571
          {
10572
            oprot.writeI64(_iter23);
10573
          }
10574
          oprot.writeListEnd();
10575
        }
10576
        oprot.writeFieldEnd();
10577
      } else if (this.isSetIsex()) {
10578
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
10579
        this.isex.write(oprot);
10580
        oprot.writeFieldEnd();
10581
      }
10582
      oprot.writeFieldStop();
10583
      oprot.writeStructEnd();
10584
    }
10585
 
10586
    @Override
10587
    public String toString() {
10588
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
10589
      boolean first = true;
10590
 
10591
      sb.append("success:");
10592
      if (this.success == null) {
10593
        sb.append("null");
10594
      } else {
10595
        sb.append(this.success);
10596
      }
10597
      first = false;
10598
      if (!first) sb.append(", ");
10599
      sb.append("isex:");
10600
      if (this.isex == null) {
10601
        sb.append("null");
10602
      } else {
10603
        sb.append(this.isex);
10604
      }
10605
      first = false;
10606
      sb.append(")");
10607
      return sb.toString();
10608
    }
10609
 
10610
    public void validate() throws org.apache.thrift.TException {
10611
      // check for required fields
10612
    }
10613
 
10614
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10615
      try {
10616
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10617
      } catch (org.apache.thrift.TException te) {
10618
        throw new java.io.IOException(te);
10619
      }
10620
    }
10621
 
10622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10623
      try {
10624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10625
      } catch (org.apache.thrift.TException te) {
10626
        throw new java.io.IOException(te);
10627
      }
10628
    }
10629
 
10630
  }
10631
 
10632
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
10633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
10634
 
10635
    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);
10636
 
10637
    private boolean isActive; // required
10638
 
10639
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10640
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10641
      IS_ACTIVE((short)1, "isActive");
10642
 
10643
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10644
 
10645
      static {
10646
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10647
          byName.put(field.getFieldName(), field);
10648
        }
10649
      }
10650
 
10651
      /**
10652
       * Find the _Fields constant that matches fieldId, or null if its not found.
10653
       */
10654
      public static _Fields findByThriftId(int fieldId) {
10655
        switch(fieldId) {
10656
          case 1: // IS_ACTIVE
10657
            return IS_ACTIVE;
10658
          default:
10659
            return null;
10660
        }
10661
      }
10662
 
10663
      /**
10664
       * Find the _Fields constant that matches fieldId, throwing an exception
10665
       * if it is not found.
10666
       */
10667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10668
        _Fields fields = findByThriftId(fieldId);
10669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10670
        return fields;
10671
      }
10672
 
10673
      /**
10674
       * Find the _Fields constant that matches name, or null if its not found.
10675
       */
10676
      public static _Fields findByName(String name) {
10677
        return byName.get(name);
10678
      }
10679
 
10680
      private final short _thriftId;
10681
      private final String _fieldName;
10682
 
10683
      _Fields(short thriftId, String fieldName) {
10684
        _thriftId = thriftId;
10685
        _fieldName = fieldName;
10686
      }
10687
 
10688
      public short getThriftFieldId() {
10689
        return _thriftId;
10690
      }
10691
 
10692
      public String getFieldName() {
10693
        return _fieldName;
10694
      }
10695
    }
10696
 
10697
    // isset id assignments
10698
    private static final int __ISACTIVE_ISSET_ID = 0;
10699
    private BitSet __isset_bit_vector = new BitSet(1);
10700
 
10701
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10702
    static {
10703
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10704
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10706
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10707
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
10708
    }
10709
 
10710
    public getAllWarehouses_args() {
10711
    }
10712
 
10713
    public getAllWarehouses_args(
10714
      boolean isActive)
10715
    {
10716
      this();
10717
      this.isActive = isActive;
10718
      setIsActiveIsSet(true);
10719
    }
10720
 
10721
    /**
10722
     * Performs a deep copy on <i>other</i>.
10723
     */
10724
    public getAllWarehouses_args(getAllWarehouses_args other) {
10725
      __isset_bit_vector.clear();
10726
      __isset_bit_vector.or(other.__isset_bit_vector);
10727
      this.isActive = other.isActive;
10728
    }
10729
 
10730
    public getAllWarehouses_args deepCopy() {
10731
      return new getAllWarehouses_args(this);
10732
    }
10733
 
10734
    @Override
10735
    public void clear() {
10736
      setIsActiveIsSet(false);
10737
      this.isActive = false;
10738
    }
10739
 
10740
    public boolean isIsActive() {
10741
      return this.isActive;
10742
    }
10743
 
10744
    public void setIsActive(boolean isActive) {
10745
      this.isActive = isActive;
10746
      setIsActiveIsSet(true);
10747
    }
10748
 
10749
    public void unsetIsActive() {
10750
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
10751
    }
10752
 
10753
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
10754
    public boolean isSetIsActive() {
10755
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
10756
    }
10757
 
10758
    public void setIsActiveIsSet(boolean value) {
10759
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
10760
    }
10761
 
10762
    public void setFieldValue(_Fields field, Object value) {
10763
      switch (field) {
10764
      case IS_ACTIVE:
10765
        if (value == null) {
10766
          unsetIsActive();
10767
        } else {
10768
          setIsActive((Boolean)value);
10769
        }
10770
        break;
10771
 
10772
      }
10773
    }
10774
 
10775
    public Object getFieldValue(_Fields field) {
10776
      switch (field) {
10777
      case IS_ACTIVE:
10778
        return Boolean.valueOf(isIsActive());
10779
 
10780
      }
10781
      throw new IllegalStateException();
10782
    }
10783
 
10784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10785
    public boolean isSet(_Fields field) {
10786
      if (field == null) {
10787
        throw new IllegalArgumentException();
10788
      }
10789
 
10790
      switch (field) {
10791
      case IS_ACTIVE:
10792
        return isSetIsActive();
10793
      }
10794
      throw new IllegalStateException();
10795
    }
10796
 
10797
    @Override
10798
    public boolean equals(Object that) {
10799
      if (that == null)
10800
        return false;
10801
      if (that instanceof getAllWarehouses_args)
10802
        return this.equals((getAllWarehouses_args)that);
10803
      return false;
10804
    }
10805
 
10806
    public boolean equals(getAllWarehouses_args that) {
10807
      if (that == null)
10808
        return false;
10809
 
10810
      boolean this_present_isActive = true;
10811
      boolean that_present_isActive = true;
10812
      if (this_present_isActive || that_present_isActive) {
10813
        if (!(this_present_isActive && that_present_isActive))
10814
          return false;
10815
        if (this.isActive != that.isActive)
10816
          return false;
10817
      }
10818
 
10819
      return true;
10820
    }
10821
 
10822
    @Override
10823
    public int hashCode() {
10824
      return 0;
10825
    }
10826
 
10827
    public int compareTo(getAllWarehouses_args other) {
10828
      if (!getClass().equals(other.getClass())) {
10829
        return getClass().getName().compareTo(other.getClass().getName());
10830
      }
10831
 
10832
      int lastComparison = 0;
10833
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
10834
 
10835
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
10836
      if (lastComparison != 0) {
10837
        return lastComparison;
10838
      }
10839
      if (isSetIsActive()) {
10840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
10841
        if (lastComparison != 0) {
10842
          return lastComparison;
10843
        }
10844
      }
10845
      return 0;
10846
    }
10847
 
10848
    public _Fields fieldForId(int fieldId) {
10849
      return _Fields.findByThriftId(fieldId);
10850
    }
10851
 
10852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10853
      org.apache.thrift.protocol.TField field;
10854
      iprot.readStructBegin();
10855
      while (true)
10856
      {
10857
        field = iprot.readFieldBegin();
10858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10859
          break;
10860
        }
10861
        switch (field.id) {
10862
          case 1: // IS_ACTIVE
10863
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10864
              this.isActive = iprot.readBool();
10865
              setIsActiveIsSet(true);
10866
            } else { 
10867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10868
            }
10869
            break;
10870
          default:
10871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10872
        }
10873
        iprot.readFieldEnd();
10874
      }
10875
      iprot.readStructEnd();
10876
      validate();
10877
    }
10878
 
10879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10880
      validate();
10881
 
10882
      oprot.writeStructBegin(STRUCT_DESC);
10883
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
10884
      oprot.writeBool(this.isActive);
10885
      oprot.writeFieldEnd();
10886
      oprot.writeFieldStop();
10887
      oprot.writeStructEnd();
10888
    }
10889
 
10890
    @Override
10891
    public String toString() {
10892
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
10893
      boolean first = true;
10894
 
10895
      sb.append("isActive:");
10896
      sb.append(this.isActive);
10897
      first = false;
10898
      sb.append(")");
10899
      return sb.toString();
10900
    }
10901
 
10902
    public void validate() throws org.apache.thrift.TException {
10903
      // check for required fields
10904
    }
10905
 
10906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10907
      try {
10908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10909
      } catch (org.apache.thrift.TException te) {
10910
        throw new java.io.IOException(te);
10911
      }
10912
    }
10913
 
10914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10915
      try {
10916
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10917
        __isset_bit_vector = new BitSet(1);
10918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10919
      } catch (org.apache.thrift.TException te) {
10920
        throw new java.io.IOException(te);
10921
      }
10922
    }
10923
 
10924
  }
10925
 
10926
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
10927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
10928
 
10929
    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);
10930
    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);
10931
 
10932
    private List<Warehouse> success; // required
10933
    private InventoryServiceException cex; // required
10934
 
10935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10937
      SUCCESS((short)0, "success"),
10938
      CEX((short)1, "cex");
10939
 
10940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10941
 
10942
      static {
10943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10944
          byName.put(field.getFieldName(), field);
10945
        }
10946
      }
10947
 
10948
      /**
10949
       * Find the _Fields constant that matches fieldId, or null if its not found.
10950
       */
10951
      public static _Fields findByThriftId(int fieldId) {
10952
        switch(fieldId) {
10953
          case 0: // SUCCESS
10954
            return SUCCESS;
10955
          case 1: // CEX
10956
            return CEX;
10957
          default:
10958
            return null;
10959
        }
10960
      }
10961
 
10962
      /**
10963
       * Find the _Fields constant that matches fieldId, throwing an exception
10964
       * if it is not found.
10965
       */
10966
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10967
        _Fields fields = findByThriftId(fieldId);
10968
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10969
        return fields;
10970
      }
10971
 
10972
      /**
10973
       * Find the _Fields constant that matches name, or null if its not found.
10974
       */
10975
      public static _Fields findByName(String name) {
10976
        return byName.get(name);
10977
      }
10978
 
10979
      private final short _thriftId;
10980
      private final String _fieldName;
10981
 
10982
      _Fields(short thriftId, String fieldName) {
10983
        _thriftId = thriftId;
10984
        _fieldName = fieldName;
10985
      }
10986
 
10987
      public short getThriftFieldId() {
10988
        return _thriftId;
10989
      }
10990
 
10991
      public String getFieldName() {
10992
        return _fieldName;
10993
      }
10994
    }
10995
 
10996
    // isset id assignments
10997
 
10998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10999
    static {
11000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11001
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11002
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11003
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
11004
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11005
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
11008
    }
11009
 
11010
    public getAllWarehouses_result() {
11011
    }
11012
 
11013
    public getAllWarehouses_result(
11014
      List<Warehouse> success,
11015
      InventoryServiceException cex)
11016
    {
11017
      this();
11018
      this.success = success;
11019
      this.cex = cex;
11020
    }
11021
 
11022
    /**
11023
     * Performs a deep copy on <i>other</i>.
11024
     */
11025
    public getAllWarehouses_result(getAllWarehouses_result other) {
11026
      if (other.isSetSuccess()) {
11027
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
11028
        for (Warehouse other_element : other.success) {
11029
          __this__success.add(new Warehouse(other_element));
11030
        }
11031
        this.success = __this__success;
11032
      }
11033
      if (other.isSetCex()) {
11034
        this.cex = new InventoryServiceException(other.cex);
11035
      }
11036
    }
11037
 
11038
    public getAllWarehouses_result deepCopy() {
11039
      return new getAllWarehouses_result(this);
11040
    }
11041
 
11042
    @Override
11043
    public void clear() {
11044
      this.success = null;
11045
      this.cex = null;
11046
    }
11047
 
11048
    public int getSuccessSize() {
11049
      return (this.success == null) ? 0 : this.success.size();
11050
    }
11051
 
11052
    public java.util.Iterator<Warehouse> getSuccessIterator() {
11053
      return (this.success == null) ? null : this.success.iterator();
11054
    }
11055
 
11056
    public void addToSuccess(Warehouse elem) {
11057
      if (this.success == null) {
11058
        this.success = new ArrayList<Warehouse>();
11059
      }
11060
      this.success.add(elem);
11061
    }
11062
 
11063
    public List<Warehouse> getSuccess() {
11064
      return this.success;
11065
    }
11066
 
11067
    public void setSuccess(List<Warehouse> success) {
11068
      this.success = success;
11069
    }
11070
 
11071
    public void unsetSuccess() {
11072
      this.success = null;
11073
    }
11074
 
11075
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11076
    public boolean isSetSuccess() {
11077
      return this.success != null;
11078
    }
11079
 
11080
    public void setSuccessIsSet(boolean value) {
11081
      if (!value) {
11082
        this.success = null;
11083
      }
11084
    }
11085
 
11086
    public InventoryServiceException getCex() {
11087
      return this.cex;
11088
    }
11089
 
11090
    public void setCex(InventoryServiceException cex) {
11091
      this.cex = cex;
11092
    }
11093
 
11094
    public void unsetCex() {
11095
      this.cex = null;
11096
    }
11097
 
11098
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11099
    public boolean isSetCex() {
11100
      return this.cex != null;
11101
    }
11102
 
11103
    public void setCexIsSet(boolean value) {
11104
      if (!value) {
11105
        this.cex = null;
11106
      }
11107
    }
11108
 
11109
    public void setFieldValue(_Fields field, Object value) {
11110
      switch (field) {
11111
      case SUCCESS:
11112
        if (value == null) {
11113
          unsetSuccess();
11114
        } else {
11115
          setSuccess((List<Warehouse>)value);
11116
        }
11117
        break;
11118
 
11119
      case CEX:
11120
        if (value == null) {
11121
          unsetCex();
11122
        } else {
11123
          setCex((InventoryServiceException)value);
11124
        }
11125
        break;
11126
 
11127
      }
11128
    }
11129
 
11130
    public Object getFieldValue(_Fields field) {
11131
      switch (field) {
11132
      case SUCCESS:
11133
        return getSuccess();
11134
 
11135
      case CEX:
11136
        return getCex();
11137
 
11138
      }
11139
      throw new IllegalStateException();
11140
    }
11141
 
11142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11143
    public boolean isSet(_Fields field) {
11144
      if (field == null) {
11145
        throw new IllegalArgumentException();
11146
      }
11147
 
11148
      switch (field) {
11149
      case SUCCESS:
11150
        return isSetSuccess();
11151
      case CEX:
11152
        return isSetCex();
11153
      }
11154
      throw new IllegalStateException();
11155
    }
11156
 
11157
    @Override
11158
    public boolean equals(Object that) {
11159
      if (that == null)
11160
        return false;
11161
      if (that instanceof getAllWarehouses_result)
11162
        return this.equals((getAllWarehouses_result)that);
11163
      return false;
11164
    }
11165
 
11166
    public boolean equals(getAllWarehouses_result that) {
11167
      if (that == null)
11168
        return false;
11169
 
11170
      boolean this_present_success = true && this.isSetSuccess();
11171
      boolean that_present_success = true && that.isSetSuccess();
11172
      if (this_present_success || that_present_success) {
11173
        if (!(this_present_success && that_present_success))
11174
          return false;
11175
        if (!this.success.equals(that.success))
11176
          return false;
11177
      }
11178
 
11179
      boolean this_present_cex = true && this.isSetCex();
11180
      boolean that_present_cex = true && that.isSetCex();
11181
      if (this_present_cex || that_present_cex) {
11182
        if (!(this_present_cex && that_present_cex))
11183
          return false;
11184
        if (!this.cex.equals(that.cex))
11185
          return false;
11186
      }
11187
 
11188
      return true;
11189
    }
11190
 
11191
    @Override
11192
    public int hashCode() {
11193
      return 0;
11194
    }
11195
 
11196
    public int compareTo(getAllWarehouses_result other) {
11197
      if (!getClass().equals(other.getClass())) {
11198
        return getClass().getName().compareTo(other.getClass().getName());
11199
      }
11200
 
11201
      int lastComparison = 0;
11202
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
11203
 
11204
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11205
      if (lastComparison != 0) {
11206
        return lastComparison;
11207
      }
11208
      if (isSetSuccess()) {
11209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11210
        if (lastComparison != 0) {
11211
          return lastComparison;
11212
        }
11213
      }
11214
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11215
      if (lastComparison != 0) {
11216
        return lastComparison;
11217
      }
11218
      if (isSetCex()) {
11219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11220
        if (lastComparison != 0) {
11221
          return lastComparison;
11222
        }
11223
      }
11224
      return 0;
11225
    }
11226
 
11227
    public _Fields fieldForId(int fieldId) {
11228
      return _Fields.findByThriftId(fieldId);
11229
    }
11230
 
11231
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11232
      org.apache.thrift.protocol.TField field;
11233
      iprot.readStructBegin();
11234
      while (true)
11235
      {
11236
        field = iprot.readFieldBegin();
11237
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11238
          break;
11239
        }
11240
        switch (field.id) {
11241
          case 0: // SUCCESS
11242
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11243
              {
11244
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
11245
                this.success = new ArrayList<Warehouse>(_list24.size);
11246
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11247
                {
11248
                  Warehouse _elem26; // required
11249
                  _elem26 = new Warehouse();
11250
                  _elem26.read(iprot);
11251
                  this.success.add(_elem26);
11252
                }
11253
                iprot.readListEnd();
11254
              }
11255
            } else { 
11256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11257
            }
11258
            break;
11259
          case 1: // CEX
11260
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11261
              this.cex = new InventoryServiceException();
11262
              this.cex.read(iprot);
11263
            } else { 
11264
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11265
            }
11266
            break;
11267
          default:
11268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11269
        }
11270
        iprot.readFieldEnd();
11271
      }
11272
      iprot.readStructEnd();
11273
      validate();
11274
    }
11275
 
11276
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11277
      oprot.writeStructBegin(STRUCT_DESC);
11278
 
11279
      if (this.isSetSuccess()) {
11280
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11281
        {
11282
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11283
          for (Warehouse _iter27 : this.success)
11284
          {
11285
            _iter27.write(oprot);
11286
          }
11287
          oprot.writeListEnd();
11288
        }
11289
        oprot.writeFieldEnd();
11290
      } else if (this.isSetCex()) {
11291
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11292
        this.cex.write(oprot);
11293
        oprot.writeFieldEnd();
11294
      }
11295
      oprot.writeFieldStop();
11296
      oprot.writeStructEnd();
11297
    }
11298
 
11299
    @Override
11300
    public String toString() {
11301
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
11302
      boolean first = true;
11303
 
11304
      sb.append("success:");
11305
      if (this.success == null) {
11306
        sb.append("null");
11307
      } else {
11308
        sb.append(this.success);
11309
      }
11310
      first = false;
11311
      if (!first) sb.append(", ");
11312
      sb.append("cex:");
11313
      if (this.cex == null) {
11314
        sb.append("null");
11315
      } else {
11316
        sb.append(this.cex);
11317
      }
11318
      first = false;
11319
      sb.append(")");
11320
      return sb.toString();
11321
    }
11322
 
11323
    public void validate() throws org.apache.thrift.TException {
11324
      // check for required fields
11325
    }
11326
 
11327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11328
      try {
11329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11330
      } catch (org.apache.thrift.TException te) {
11331
        throw new java.io.IOException(te);
11332
      }
11333
    }
11334
 
11335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11336
      try {
11337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11338
      } catch (org.apache.thrift.TException te) {
11339
        throw new java.io.IOException(te);
11340
      }
11341
    }
11342
 
11343
  }
11344
 
11345
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
11347
 
11348
    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);
11349
 
11350
    private long warehouse_id; // required
11351
 
11352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11354
      WAREHOUSE_ID((short)1, "warehouse_id");
11355
 
11356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11357
 
11358
      static {
11359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11360
          byName.put(field.getFieldName(), field);
11361
        }
11362
      }
11363
 
11364
      /**
11365
       * Find the _Fields constant that matches fieldId, or null if its not found.
11366
       */
11367
      public static _Fields findByThriftId(int fieldId) {
11368
        switch(fieldId) {
11369
          case 1: // WAREHOUSE_ID
11370
            return WAREHOUSE_ID;
11371
          default:
11372
            return null;
11373
        }
11374
      }
11375
 
11376
      /**
11377
       * Find the _Fields constant that matches fieldId, throwing an exception
11378
       * if it is not found.
11379
       */
11380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11381
        _Fields fields = findByThriftId(fieldId);
11382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11383
        return fields;
11384
      }
11385
 
11386
      /**
11387
       * Find the _Fields constant that matches name, or null if its not found.
11388
       */
11389
      public static _Fields findByName(String name) {
11390
        return byName.get(name);
11391
      }
11392
 
11393
      private final short _thriftId;
11394
      private final String _fieldName;
11395
 
11396
      _Fields(short thriftId, String fieldName) {
11397
        _thriftId = thriftId;
11398
        _fieldName = fieldName;
11399
      }
11400
 
11401
      public short getThriftFieldId() {
11402
        return _thriftId;
11403
      }
11404
 
11405
      public String getFieldName() {
11406
        return _fieldName;
11407
      }
11408
    }
11409
 
11410
    // isset id assignments
11411
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11412
    private BitSet __isset_bit_vector = new BitSet(1);
11413
 
11414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11415
    static {
11416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11417
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
11421
    }
11422
 
11423
    public getWarehouse_args() {
11424
    }
11425
 
11426
    public getWarehouse_args(
11427
      long warehouse_id)
11428
    {
11429
      this();
11430
      this.warehouse_id = warehouse_id;
11431
      setWarehouse_idIsSet(true);
11432
    }
11433
 
11434
    /**
11435
     * Performs a deep copy on <i>other</i>.
11436
     */
11437
    public getWarehouse_args(getWarehouse_args other) {
11438
      __isset_bit_vector.clear();
11439
      __isset_bit_vector.or(other.__isset_bit_vector);
11440
      this.warehouse_id = other.warehouse_id;
11441
    }
11442
 
11443
    public getWarehouse_args deepCopy() {
11444
      return new getWarehouse_args(this);
11445
    }
11446
 
11447
    @Override
11448
    public void clear() {
11449
      setWarehouse_idIsSet(false);
11450
      this.warehouse_id = 0;
11451
    }
11452
 
11453
    public long getWarehouse_id() {
11454
      return this.warehouse_id;
11455
    }
11456
 
11457
    public void setWarehouse_id(long warehouse_id) {
11458
      this.warehouse_id = warehouse_id;
11459
      setWarehouse_idIsSet(true);
11460
    }
11461
 
11462
    public void unsetWarehouse_id() {
11463
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11464
    }
11465
 
11466
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11467
    public boolean isSetWarehouse_id() {
11468
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11469
    }
11470
 
11471
    public void setWarehouse_idIsSet(boolean value) {
11472
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11473
    }
11474
 
11475
    public void setFieldValue(_Fields field, Object value) {
11476
      switch (field) {
11477
      case WAREHOUSE_ID:
11478
        if (value == null) {
11479
          unsetWarehouse_id();
11480
        } else {
11481
          setWarehouse_id((Long)value);
11482
        }
11483
        break;
11484
 
11485
      }
11486
    }
11487
 
11488
    public Object getFieldValue(_Fields field) {
11489
      switch (field) {
11490
      case WAREHOUSE_ID:
11491
        return Long.valueOf(getWarehouse_id());
11492
 
11493
      }
11494
      throw new IllegalStateException();
11495
    }
11496
 
11497
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11498
    public boolean isSet(_Fields field) {
11499
      if (field == null) {
11500
        throw new IllegalArgumentException();
11501
      }
11502
 
11503
      switch (field) {
11504
      case WAREHOUSE_ID:
11505
        return isSetWarehouse_id();
11506
      }
11507
      throw new IllegalStateException();
11508
    }
11509
 
11510
    @Override
11511
    public boolean equals(Object that) {
11512
      if (that == null)
11513
        return false;
11514
      if (that instanceof getWarehouse_args)
11515
        return this.equals((getWarehouse_args)that);
11516
      return false;
11517
    }
11518
 
11519
    public boolean equals(getWarehouse_args that) {
11520
      if (that == null)
11521
        return false;
11522
 
11523
      boolean this_present_warehouse_id = true;
11524
      boolean that_present_warehouse_id = true;
11525
      if (this_present_warehouse_id || that_present_warehouse_id) {
11526
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11527
          return false;
11528
        if (this.warehouse_id != that.warehouse_id)
11529
          return false;
11530
      }
11531
 
11532
      return true;
11533
    }
11534
 
11535
    @Override
11536
    public int hashCode() {
11537
      return 0;
11538
    }
11539
 
11540
    public int compareTo(getWarehouse_args other) {
11541
      if (!getClass().equals(other.getClass())) {
11542
        return getClass().getName().compareTo(other.getClass().getName());
11543
      }
11544
 
11545
      int lastComparison = 0;
11546
      getWarehouse_args typedOther = (getWarehouse_args)other;
11547
 
11548
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11549
      if (lastComparison != 0) {
11550
        return lastComparison;
11551
      }
11552
      if (isSetWarehouse_id()) {
11553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11554
        if (lastComparison != 0) {
11555
          return lastComparison;
11556
        }
11557
      }
11558
      return 0;
11559
    }
11560
 
11561
    public _Fields fieldForId(int fieldId) {
11562
      return _Fields.findByThriftId(fieldId);
11563
    }
11564
 
11565
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11566
      org.apache.thrift.protocol.TField field;
11567
      iprot.readStructBegin();
11568
      while (true)
11569
      {
11570
        field = iprot.readFieldBegin();
11571
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11572
          break;
11573
        }
11574
        switch (field.id) {
11575
          case 1: // WAREHOUSE_ID
11576
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11577
              this.warehouse_id = iprot.readI64();
11578
              setWarehouse_idIsSet(true);
11579
            } else { 
11580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11581
            }
11582
            break;
11583
          default:
11584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11585
        }
11586
        iprot.readFieldEnd();
11587
      }
11588
      iprot.readStructEnd();
11589
      validate();
11590
    }
11591
 
11592
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11593
      validate();
11594
 
11595
      oprot.writeStructBegin(STRUCT_DESC);
11596
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11597
      oprot.writeI64(this.warehouse_id);
11598
      oprot.writeFieldEnd();
11599
      oprot.writeFieldStop();
11600
      oprot.writeStructEnd();
11601
    }
11602
 
11603
    @Override
11604
    public String toString() {
11605
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
11606
      boolean first = true;
11607
 
11608
      sb.append("warehouse_id:");
11609
      sb.append(this.warehouse_id);
11610
      first = false;
11611
      sb.append(")");
11612
      return sb.toString();
11613
    }
11614
 
11615
    public void validate() throws org.apache.thrift.TException {
11616
      // check for required fields
11617
    }
11618
 
11619
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11620
      try {
11621
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11622
      } catch (org.apache.thrift.TException te) {
11623
        throw new java.io.IOException(te);
11624
      }
11625
    }
11626
 
11627
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11628
      try {
11629
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11630
        __isset_bit_vector = new BitSet(1);
11631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11632
      } catch (org.apache.thrift.TException te) {
11633
        throw new java.io.IOException(te);
11634
      }
11635
    }
11636
 
11637
  }
11638
 
11639
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11640
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
11641
 
11642
    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);
11643
    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);
11644
 
11645
    private Warehouse success; // required
11646
    private InventoryServiceException cex; // required
11647
 
11648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11649
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11650
      SUCCESS((short)0, "success"),
11651
      CEX((short)1, "cex");
11652
 
11653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11654
 
11655
      static {
11656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11657
          byName.put(field.getFieldName(), field);
11658
        }
11659
      }
11660
 
11661
      /**
11662
       * Find the _Fields constant that matches fieldId, or null if its not found.
11663
       */
11664
      public static _Fields findByThriftId(int fieldId) {
11665
        switch(fieldId) {
11666
          case 0: // SUCCESS
11667
            return SUCCESS;
11668
          case 1: // CEX
11669
            return CEX;
11670
          default:
11671
            return null;
11672
        }
11673
      }
11674
 
11675
      /**
11676
       * Find the _Fields constant that matches fieldId, throwing an exception
11677
       * if it is not found.
11678
       */
11679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11680
        _Fields fields = findByThriftId(fieldId);
11681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11682
        return fields;
11683
      }
11684
 
11685
      /**
11686
       * Find the _Fields constant that matches name, or null if its not found.
11687
       */
11688
      public static _Fields findByName(String name) {
11689
        return byName.get(name);
11690
      }
11691
 
11692
      private final short _thriftId;
11693
      private final String _fieldName;
11694
 
11695
      _Fields(short thriftId, String fieldName) {
11696
        _thriftId = thriftId;
11697
        _fieldName = fieldName;
11698
      }
11699
 
11700
      public short getThriftFieldId() {
11701
        return _thriftId;
11702
      }
11703
 
11704
      public String getFieldName() {
11705
        return _fieldName;
11706
      }
11707
    }
11708
 
11709
    // isset id assignments
11710
 
11711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11712
    static {
11713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11714
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11715
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
11716
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
11720
    }
11721
 
11722
    public getWarehouse_result() {
11723
    }
11724
 
11725
    public getWarehouse_result(
11726
      Warehouse success,
11727
      InventoryServiceException cex)
11728
    {
11729
      this();
11730
      this.success = success;
11731
      this.cex = cex;
11732
    }
11733
 
11734
    /**
11735
     * Performs a deep copy on <i>other</i>.
11736
     */
11737
    public getWarehouse_result(getWarehouse_result other) {
11738
      if (other.isSetSuccess()) {
11739
        this.success = new Warehouse(other.success);
11740
      }
11741
      if (other.isSetCex()) {
11742
        this.cex = new InventoryServiceException(other.cex);
11743
      }
11744
    }
11745
 
11746
    public getWarehouse_result deepCopy() {
11747
      return new getWarehouse_result(this);
11748
    }
11749
 
11750
    @Override
11751
    public void clear() {
11752
      this.success = null;
11753
      this.cex = null;
11754
    }
11755
 
11756
    public Warehouse getSuccess() {
11757
      return this.success;
11758
    }
11759
 
11760
    public void setSuccess(Warehouse success) {
11761
      this.success = success;
11762
    }
11763
 
11764
    public void unsetSuccess() {
11765
      this.success = null;
11766
    }
11767
 
11768
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11769
    public boolean isSetSuccess() {
11770
      return this.success != null;
11771
    }
11772
 
11773
    public void setSuccessIsSet(boolean value) {
11774
      if (!value) {
11775
        this.success = null;
11776
      }
11777
    }
11778
 
11779
    public InventoryServiceException getCex() {
11780
      return this.cex;
11781
    }
11782
 
11783
    public void setCex(InventoryServiceException cex) {
11784
      this.cex = cex;
11785
    }
11786
 
11787
    public void unsetCex() {
11788
      this.cex = null;
11789
    }
11790
 
11791
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11792
    public boolean isSetCex() {
11793
      return this.cex != null;
11794
    }
11795
 
11796
    public void setCexIsSet(boolean value) {
11797
      if (!value) {
11798
        this.cex = null;
11799
      }
11800
    }
11801
 
11802
    public void setFieldValue(_Fields field, Object value) {
11803
      switch (field) {
11804
      case SUCCESS:
11805
        if (value == null) {
11806
          unsetSuccess();
11807
        } else {
11808
          setSuccess((Warehouse)value);
11809
        }
11810
        break;
11811
 
11812
      case CEX:
11813
        if (value == null) {
11814
          unsetCex();
11815
        } else {
11816
          setCex((InventoryServiceException)value);
11817
        }
11818
        break;
11819
 
11820
      }
11821
    }
11822
 
11823
    public Object getFieldValue(_Fields field) {
11824
      switch (field) {
11825
      case SUCCESS:
11826
        return getSuccess();
11827
 
11828
      case CEX:
11829
        return getCex();
11830
 
11831
      }
11832
      throw new IllegalStateException();
11833
    }
11834
 
11835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11836
    public boolean isSet(_Fields field) {
11837
      if (field == null) {
11838
        throw new IllegalArgumentException();
11839
      }
11840
 
11841
      switch (field) {
11842
      case SUCCESS:
11843
        return isSetSuccess();
11844
      case CEX:
11845
        return isSetCex();
11846
      }
11847
      throw new IllegalStateException();
11848
    }
11849
 
11850
    @Override
11851
    public boolean equals(Object that) {
11852
      if (that == null)
11853
        return false;
11854
      if (that instanceof getWarehouse_result)
11855
        return this.equals((getWarehouse_result)that);
11856
      return false;
11857
    }
11858
 
11859
    public boolean equals(getWarehouse_result that) {
11860
      if (that == null)
11861
        return false;
11862
 
11863
      boolean this_present_success = true && this.isSetSuccess();
11864
      boolean that_present_success = true && that.isSetSuccess();
11865
      if (this_present_success || that_present_success) {
11866
        if (!(this_present_success && that_present_success))
11867
          return false;
11868
        if (!this.success.equals(that.success))
11869
          return false;
11870
      }
11871
 
11872
      boolean this_present_cex = true && this.isSetCex();
11873
      boolean that_present_cex = true && that.isSetCex();
11874
      if (this_present_cex || that_present_cex) {
11875
        if (!(this_present_cex && that_present_cex))
11876
          return false;
11877
        if (!this.cex.equals(that.cex))
11878
          return false;
11879
      }
11880
 
11881
      return true;
11882
    }
11883
 
11884
    @Override
11885
    public int hashCode() {
11886
      return 0;
11887
    }
11888
 
11889
    public int compareTo(getWarehouse_result other) {
11890
      if (!getClass().equals(other.getClass())) {
11891
        return getClass().getName().compareTo(other.getClass().getName());
11892
      }
11893
 
11894
      int lastComparison = 0;
11895
      getWarehouse_result typedOther = (getWarehouse_result)other;
11896
 
11897
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11898
      if (lastComparison != 0) {
11899
        return lastComparison;
11900
      }
11901
      if (isSetSuccess()) {
11902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11903
        if (lastComparison != 0) {
11904
          return lastComparison;
11905
        }
11906
      }
11907
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11908
      if (lastComparison != 0) {
11909
        return lastComparison;
11910
      }
11911
      if (isSetCex()) {
11912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11913
        if (lastComparison != 0) {
11914
          return lastComparison;
11915
        }
11916
      }
11917
      return 0;
11918
    }
11919
 
11920
    public _Fields fieldForId(int fieldId) {
11921
      return _Fields.findByThriftId(fieldId);
11922
    }
11923
 
11924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11925
      org.apache.thrift.protocol.TField field;
11926
      iprot.readStructBegin();
11927
      while (true)
11928
      {
11929
        field = iprot.readFieldBegin();
11930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11931
          break;
11932
        }
11933
        switch (field.id) {
11934
          case 0: // SUCCESS
11935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11936
              this.success = new Warehouse();
11937
              this.success.read(iprot);
11938
            } else { 
11939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11940
            }
11941
            break;
11942
          case 1: // CEX
11943
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11944
              this.cex = new InventoryServiceException();
11945
              this.cex.read(iprot);
11946
            } else { 
11947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11948
            }
11949
            break;
11950
          default:
11951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11952
        }
11953
        iprot.readFieldEnd();
11954
      }
11955
      iprot.readStructEnd();
11956
      validate();
11957
    }
11958
 
11959
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11960
      oprot.writeStructBegin(STRUCT_DESC);
11961
 
11962
      if (this.isSetSuccess()) {
11963
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11964
        this.success.write(oprot);
11965
        oprot.writeFieldEnd();
11966
      } else if (this.isSetCex()) {
11967
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11968
        this.cex.write(oprot);
11969
        oprot.writeFieldEnd();
11970
      }
11971
      oprot.writeFieldStop();
11972
      oprot.writeStructEnd();
11973
    }
11974
 
11975
    @Override
11976
    public String toString() {
11977
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
11978
      boolean first = true;
11979
 
11980
      sb.append("success:");
11981
      if (this.success == null) {
11982
        sb.append("null");
11983
      } else {
11984
        sb.append(this.success);
11985
      }
11986
      first = false;
11987
      if (!first) sb.append(", ");
11988
      sb.append("cex:");
11989
      if (this.cex == null) {
11990
        sb.append("null");
11991
      } else {
11992
        sb.append(this.cex);
11993
      }
11994
      first = false;
11995
      sb.append(")");
11996
      return sb.toString();
11997
    }
11998
 
11999
    public void validate() throws org.apache.thrift.TException {
12000
      // check for required fields
12001
    }
12002
 
12003
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12004
      try {
12005
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12006
      } catch (org.apache.thrift.TException te) {
12007
        throw new java.io.IOException(te);
12008
      }
12009
    }
12010
 
12011
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12012
      try {
12013
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12014
      } catch (org.apache.thrift.TException te) {
12015
        throw new java.io.IOException(te);
12016
      }
12017
    }
12018
 
12019
  }
12020
 
12021
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12022
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
12023
 
12024
    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);
12025
 
12026
    private long warehouse_id; // required
12027
 
12028
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12029
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12030
      WAREHOUSE_ID((short)1, "warehouse_id");
12031
 
12032
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12033
 
12034
      static {
12035
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12036
          byName.put(field.getFieldName(), field);
12037
        }
12038
      }
12039
 
12040
      /**
12041
       * Find the _Fields constant that matches fieldId, or null if its not found.
12042
       */
12043
      public static _Fields findByThriftId(int fieldId) {
12044
        switch(fieldId) {
12045
          case 1: // WAREHOUSE_ID
12046
            return WAREHOUSE_ID;
12047
          default:
12048
            return null;
12049
        }
12050
      }
12051
 
12052
      /**
12053
       * Find the _Fields constant that matches fieldId, throwing an exception
12054
       * if it is not found.
12055
       */
12056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12057
        _Fields fields = findByThriftId(fieldId);
12058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12059
        return fields;
12060
      }
12061
 
12062
      /**
12063
       * Find the _Fields constant that matches name, or null if its not found.
12064
       */
12065
      public static _Fields findByName(String name) {
12066
        return byName.get(name);
12067
      }
12068
 
12069
      private final short _thriftId;
12070
      private final String _fieldName;
12071
 
12072
      _Fields(short thriftId, String fieldName) {
12073
        _thriftId = thriftId;
12074
        _fieldName = fieldName;
12075
      }
12076
 
12077
      public short getThriftFieldId() {
12078
        return _thriftId;
12079
      }
12080
 
12081
      public String getFieldName() {
12082
        return _fieldName;
12083
      }
12084
    }
12085
 
12086
    // isset id assignments
12087
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
12088
    private BitSet __isset_bit_vector = new BitSet(1);
12089
 
12090
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12091
    static {
12092
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12093
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
12097
    }
12098
 
12099
    public getAllItemsForWarehouse_args() {
12100
    }
12101
 
12102
    public getAllItemsForWarehouse_args(
12103
      long warehouse_id)
12104
    {
12105
      this();
12106
      this.warehouse_id = warehouse_id;
12107
      setWarehouse_idIsSet(true);
12108
    }
12109
 
12110
    /**
12111
     * Performs a deep copy on <i>other</i>.
12112
     */
12113
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
12114
      __isset_bit_vector.clear();
12115
      __isset_bit_vector.or(other.__isset_bit_vector);
12116
      this.warehouse_id = other.warehouse_id;
12117
    }
12118
 
12119
    public getAllItemsForWarehouse_args deepCopy() {
12120
      return new getAllItemsForWarehouse_args(this);
12121
    }
12122
 
12123
    @Override
12124
    public void clear() {
12125
      setWarehouse_idIsSet(false);
12126
      this.warehouse_id = 0;
12127
    }
12128
 
12129
    public long getWarehouse_id() {
12130
      return this.warehouse_id;
12131
    }
12132
 
12133
    public void setWarehouse_id(long warehouse_id) {
12134
      this.warehouse_id = warehouse_id;
12135
      setWarehouse_idIsSet(true);
12136
    }
12137
 
12138
    public void unsetWarehouse_id() {
12139
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12140
    }
12141
 
12142
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12143
    public boolean isSetWarehouse_id() {
12144
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12145
    }
12146
 
12147
    public void setWarehouse_idIsSet(boolean value) {
12148
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12149
    }
12150
 
12151
    public void setFieldValue(_Fields field, Object value) {
12152
      switch (field) {
12153
      case WAREHOUSE_ID:
12154
        if (value == null) {
12155
          unsetWarehouse_id();
12156
        } else {
12157
          setWarehouse_id((Long)value);
12158
        }
12159
        break;
12160
 
12161
      }
12162
    }
12163
 
12164
    public Object getFieldValue(_Fields field) {
12165
      switch (field) {
12166
      case WAREHOUSE_ID:
12167
        return Long.valueOf(getWarehouse_id());
12168
 
12169
      }
12170
      throw new IllegalStateException();
12171
    }
12172
 
12173
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12174
    public boolean isSet(_Fields field) {
12175
      if (field == null) {
12176
        throw new IllegalArgumentException();
12177
      }
12178
 
12179
      switch (field) {
12180
      case WAREHOUSE_ID:
12181
        return isSetWarehouse_id();
12182
      }
12183
      throw new IllegalStateException();
12184
    }
12185
 
12186
    @Override
12187
    public boolean equals(Object that) {
12188
      if (that == null)
12189
        return false;
12190
      if (that instanceof getAllItemsForWarehouse_args)
12191
        return this.equals((getAllItemsForWarehouse_args)that);
12192
      return false;
12193
    }
12194
 
12195
    public boolean equals(getAllItemsForWarehouse_args that) {
12196
      if (that == null)
12197
        return false;
12198
 
12199
      boolean this_present_warehouse_id = true;
12200
      boolean that_present_warehouse_id = true;
12201
      if (this_present_warehouse_id || that_present_warehouse_id) {
12202
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12203
          return false;
12204
        if (this.warehouse_id != that.warehouse_id)
12205
          return false;
12206
      }
12207
 
12208
      return true;
12209
    }
12210
 
12211
    @Override
12212
    public int hashCode() {
12213
      return 0;
12214
    }
12215
 
12216
    public int compareTo(getAllItemsForWarehouse_args other) {
12217
      if (!getClass().equals(other.getClass())) {
12218
        return getClass().getName().compareTo(other.getClass().getName());
12219
      }
12220
 
12221
      int lastComparison = 0;
12222
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
12223
 
12224
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12225
      if (lastComparison != 0) {
12226
        return lastComparison;
12227
      }
12228
      if (isSetWarehouse_id()) {
12229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12230
        if (lastComparison != 0) {
12231
          return lastComparison;
12232
        }
12233
      }
12234
      return 0;
12235
    }
12236
 
12237
    public _Fields fieldForId(int fieldId) {
12238
      return _Fields.findByThriftId(fieldId);
12239
    }
12240
 
12241
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12242
      org.apache.thrift.protocol.TField field;
12243
      iprot.readStructBegin();
12244
      while (true)
12245
      {
12246
        field = iprot.readFieldBegin();
12247
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12248
          break;
12249
        }
12250
        switch (field.id) {
12251
          case 1: // WAREHOUSE_ID
12252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12253
              this.warehouse_id = iprot.readI64();
12254
              setWarehouse_idIsSet(true);
12255
            } else { 
12256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12257
            }
12258
            break;
12259
          default:
12260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12261
        }
12262
        iprot.readFieldEnd();
12263
      }
12264
      iprot.readStructEnd();
12265
      validate();
12266
    }
12267
 
12268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12269
      validate();
12270
 
12271
      oprot.writeStructBegin(STRUCT_DESC);
12272
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12273
      oprot.writeI64(this.warehouse_id);
12274
      oprot.writeFieldEnd();
12275
      oprot.writeFieldStop();
12276
      oprot.writeStructEnd();
12277
    }
12278
 
12279
    @Override
12280
    public String toString() {
12281
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
12282
      boolean first = true;
12283
 
12284
      sb.append("warehouse_id:");
12285
      sb.append(this.warehouse_id);
12286
      first = false;
12287
      sb.append(")");
12288
      return sb.toString();
12289
    }
12290
 
12291
    public void validate() throws org.apache.thrift.TException {
12292
      // check for required fields
12293
    }
12294
 
12295
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12296
      try {
12297
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12298
      } catch (org.apache.thrift.TException te) {
12299
        throw new java.io.IOException(te);
12300
      }
12301
    }
12302
 
12303
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12304
      try {
12305
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12306
        __isset_bit_vector = new BitSet(1);
12307
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12308
      } catch (org.apache.thrift.TException te) {
12309
        throw new java.io.IOException(te);
12310
      }
12311
    }
12312
 
12313
  }
12314
 
12315
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12316
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
12317
 
12318
    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);
12319
    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);
12320
 
12321
    private List<Long> success; // required
12322
    private InventoryServiceException cex; // required
12323
 
12324
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12325
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12326
      SUCCESS((short)0, "success"),
12327
      CEX((short)1, "cex");
12328
 
12329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12330
 
12331
      static {
12332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12333
          byName.put(field.getFieldName(), field);
12334
        }
12335
      }
12336
 
12337
      /**
12338
       * Find the _Fields constant that matches fieldId, or null if its not found.
12339
       */
12340
      public static _Fields findByThriftId(int fieldId) {
12341
        switch(fieldId) {
12342
          case 0: // SUCCESS
12343
            return SUCCESS;
12344
          case 1: // CEX
12345
            return CEX;
12346
          default:
12347
            return null;
12348
        }
12349
      }
12350
 
12351
      /**
12352
       * Find the _Fields constant that matches fieldId, throwing an exception
12353
       * if it is not found.
12354
       */
12355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12356
        _Fields fields = findByThriftId(fieldId);
12357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12358
        return fields;
12359
      }
12360
 
12361
      /**
12362
       * Find the _Fields constant that matches name, or null if its not found.
12363
       */
12364
      public static _Fields findByName(String name) {
12365
        return byName.get(name);
12366
      }
12367
 
12368
      private final short _thriftId;
12369
      private final String _fieldName;
12370
 
12371
      _Fields(short thriftId, String fieldName) {
12372
        _thriftId = thriftId;
12373
        _fieldName = fieldName;
12374
      }
12375
 
12376
      public short getThriftFieldId() {
12377
        return _thriftId;
12378
      }
12379
 
12380
      public String getFieldName() {
12381
        return _fieldName;
12382
      }
12383
    }
12384
 
12385
    // isset id assignments
12386
 
12387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12388
    static {
12389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12390
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12391
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12392
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
12393
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
12397
    }
12398
 
12399
    public getAllItemsForWarehouse_result() {
12400
    }
12401
 
12402
    public getAllItemsForWarehouse_result(
12403
      List<Long> success,
12404
      InventoryServiceException cex)
12405
    {
12406
      this();
12407
      this.success = success;
12408
      this.cex = cex;
12409
    }
12410
 
12411
    /**
12412
     * Performs a deep copy on <i>other</i>.
12413
     */
12414
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
12415
      if (other.isSetSuccess()) {
12416
        List<Long> __this__success = new ArrayList<Long>();
12417
        for (Long other_element : other.success) {
12418
          __this__success.add(other_element);
12419
        }
12420
        this.success = __this__success;
12421
      }
12422
      if (other.isSetCex()) {
12423
        this.cex = new InventoryServiceException(other.cex);
12424
      }
12425
    }
12426
 
12427
    public getAllItemsForWarehouse_result deepCopy() {
12428
      return new getAllItemsForWarehouse_result(this);
12429
    }
12430
 
12431
    @Override
12432
    public void clear() {
12433
      this.success = null;
12434
      this.cex = null;
12435
    }
12436
 
12437
    public int getSuccessSize() {
12438
      return (this.success == null) ? 0 : this.success.size();
12439
    }
12440
 
12441
    public java.util.Iterator<Long> getSuccessIterator() {
12442
      return (this.success == null) ? null : this.success.iterator();
12443
    }
12444
 
12445
    public void addToSuccess(long elem) {
12446
      if (this.success == null) {
12447
        this.success = new ArrayList<Long>();
12448
      }
12449
      this.success.add(elem);
12450
    }
12451
 
12452
    public List<Long> getSuccess() {
12453
      return this.success;
12454
    }
12455
 
12456
    public void setSuccess(List<Long> success) {
12457
      this.success = success;
12458
    }
12459
 
12460
    public void unsetSuccess() {
12461
      this.success = null;
12462
    }
12463
 
12464
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12465
    public boolean isSetSuccess() {
12466
      return this.success != null;
12467
    }
12468
 
12469
    public void setSuccessIsSet(boolean value) {
12470
      if (!value) {
12471
        this.success = null;
12472
      }
12473
    }
12474
 
12475
    public InventoryServiceException getCex() {
12476
      return this.cex;
12477
    }
12478
 
12479
    public void setCex(InventoryServiceException cex) {
12480
      this.cex = cex;
12481
    }
12482
 
12483
    public void unsetCex() {
12484
      this.cex = null;
12485
    }
12486
 
12487
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12488
    public boolean isSetCex() {
12489
      return this.cex != null;
12490
    }
12491
 
12492
    public void setCexIsSet(boolean value) {
12493
      if (!value) {
12494
        this.cex = null;
12495
      }
12496
    }
12497
 
12498
    public void setFieldValue(_Fields field, Object value) {
12499
      switch (field) {
12500
      case SUCCESS:
12501
        if (value == null) {
12502
          unsetSuccess();
12503
        } else {
12504
          setSuccess((List<Long>)value);
12505
        }
12506
        break;
12507
 
12508
      case CEX:
12509
        if (value == null) {
12510
          unsetCex();
12511
        } else {
12512
          setCex((InventoryServiceException)value);
12513
        }
12514
        break;
12515
 
12516
      }
12517
    }
12518
 
12519
    public Object getFieldValue(_Fields field) {
12520
      switch (field) {
12521
      case SUCCESS:
12522
        return getSuccess();
12523
 
12524
      case CEX:
12525
        return getCex();
12526
 
12527
      }
12528
      throw new IllegalStateException();
12529
    }
12530
 
12531
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12532
    public boolean isSet(_Fields field) {
12533
      if (field == null) {
12534
        throw new IllegalArgumentException();
12535
      }
12536
 
12537
      switch (field) {
12538
      case SUCCESS:
12539
        return isSetSuccess();
12540
      case CEX:
12541
        return isSetCex();
12542
      }
12543
      throw new IllegalStateException();
12544
    }
12545
 
12546
    @Override
12547
    public boolean equals(Object that) {
12548
      if (that == null)
12549
        return false;
12550
      if (that instanceof getAllItemsForWarehouse_result)
12551
        return this.equals((getAllItemsForWarehouse_result)that);
12552
      return false;
12553
    }
12554
 
12555
    public boolean equals(getAllItemsForWarehouse_result that) {
12556
      if (that == null)
12557
        return false;
12558
 
12559
      boolean this_present_success = true && this.isSetSuccess();
12560
      boolean that_present_success = true && that.isSetSuccess();
12561
      if (this_present_success || that_present_success) {
12562
        if (!(this_present_success && that_present_success))
12563
          return false;
12564
        if (!this.success.equals(that.success))
12565
          return false;
12566
      }
12567
 
12568
      boolean this_present_cex = true && this.isSetCex();
12569
      boolean that_present_cex = true && that.isSetCex();
12570
      if (this_present_cex || that_present_cex) {
12571
        if (!(this_present_cex && that_present_cex))
12572
          return false;
12573
        if (!this.cex.equals(that.cex))
12574
          return false;
12575
      }
12576
 
12577
      return true;
12578
    }
12579
 
12580
    @Override
12581
    public int hashCode() {
12582
      return 0;
12583
    }
12584
 
12585
    public int compareTo(getAllItemsForWarehouse_result other) {
12586
      if (!getClass().equals(other.getClass())) {
12587
        return getClass().getName().compareTo(other.getClass().getName());
12588
      }
12589
 
12590
      int lastComparison = 0;
12591
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
12592
 
12593
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12594
      if (lastComparison != 0) {
12595
        return lastComparison;
12596
      }
12597
      if (isSetSuccess()) {
12598
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12599
        if (lastComparison != 0) {
12600
          return lastComparison;
12601
        }
12602
      }
12603
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12604
      if (lastComparison != 0) {
12605
        return lastComparison;
12606
      }
12607
      if (isSetCex()) {
12608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12609
        if (lastComparison != 0) {
12610
          return lastComparison;
12611
        }
12612
      }
12613
      return 0;
12614
    }
12615
 
12616
    public _Fields fieldForId(int fieldId) {
12617
      return _Fields.findByThriftId(fieldId);
12618
    }
12619
 
12620
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12621
      org.apache.thrift.protocol.TField field;
12622
      iprot.readStructBegin();
12623
      while (true)
12624
      {
12625
        field = iprot.readFieldBegin();
12626
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12627
          break;
12628
        }
12629
        switch (field.id) {
12630
          case 0: // SUCCESS
12631
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12632
              {
12633
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
12634
                this.success = new ArrayList<Long>(_list28.size);
12635
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
12636
                {
12637
                  long _elem30; // required
12638
                  _elem30 = iprot.readI64();
12639
                  this.success.add(_elem30);
12640
                }
12641
                iprot.readListEnd();
12642
              }
12643
            } else { 
12644
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12645
            }
12646
            break;
12647
          case 1: // CEX
12648
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12649
              this.cex = new InventoryServiceException();
12650
              this.cex.read(iprot);
12651
            } else { 
12652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12653
            }
12654
            break;
12655
          default:
12656
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12657
        }
12658
        iprot.readFieldEnd();
12659
      }
12660
      iprot.readStructEnd();
12661
      validate();
12662
    }
12663
 
12664
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12665
      oprot.writeStructBegin(STRUCT_DESC);
12666
 
12667
      if (this.isSetSuccess()) {
12668
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12669
        {
12670
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
12671
          for (long _iter31 : this.success)
12672
          {
12673
            oprot.writeI64(_iter31);
12674
          }
12675
          oprot.writeListEnd();
12676
        }
12677
        oprot.writeFieldEnd();
12678
      } else if (this.isSetCex()) {
12679
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12680
        this.cex.write(oprot);
12681
        oprot.writeFieldEnd();
12682
      }
12683
      oprot.writeFieldStop();
12684
      oprot.writeStructEnd();
12685
    }
12686
 
12687
    @Override
12688
    public String toString() {
12689
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
12690
      boolean first = true;
12691
 
12692
      sb.append("success:");
12693
      if (this.success == null) {
12694
        sb.append("null");
12695
      } else {
12696
        sb.append(this.success);
12697
      }
12698
      first = false;
12699
      if (!first) sb.append(", ");
12700
      sb.append("cex:");
12701
      if (this.cex == null) {
12702
        sb.append("null");
12703
      } else {
12704
        sb.append(this.cex);
12705
      }
12706
      first = false;
12707
      sb.append(")");
12708
      return sb.toString();
12709
    }
12710
 
12711
    public void validate() throws org.apache.thrift.TException {
12712
      // check for required fields
12713
    }
12714
 
12715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12716
      try {
12717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12718
      } catch (org.apache.thrift.TException te) {
12719
        throw new java.io.IOException(te);
12720
      }
12721
    }
12722
 
12723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12724
      try {
12725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12726
      } catch (org.apache.thrift.TException te) {
12727
        throw new java.io.IOException(te);
12728
      }
12729
    }
12730
 
12731
  }
12732
 
5967 rajveer 12733
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
12734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
12735
 
12736
    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);
12737
    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);
12738
    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);
12739
    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);
12740
 
12741
    private long itemId; // required
12742
    private long warehouseId; // required
12743
    private long sourceId; // required
12744
    private long orderId; // required
12745
 
12746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12748
      ITEM_ID((short)1, "itemId"),
12749
      WAREHOUSE_ID((short)2, "warehouseId"),
12750
      SOURCE_ID((short)3, "sourceId"),
12751
      ORDER_ID((short)4, "orderId");
12752
 
12753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12754
 
12755
      static {
12756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12757
          byName.put(field.getFieldName(), field);
12758
        }
12759
      }
12760
 
12761
      /**
12762
       * Find the _Fields constant that matches fieldId, or null if its not found.
12763
       */
12764
      public static _Fields findByThriftId(int fieldId) {
12765
        switch(fieldId) {
12766
          case 1: // ITEM_ID
12767
            return ITEM_ID;
12768
          case 2: // WAREHOUSE_ID
12769
            return WAREHOUSE_ID;
12770
          case 3: // SOURCE_ID
12771
            return SOURCE_ID;
12772
          case 4: // ORDER_ID
12773
            return ORDER_ID;
12774
          default:
12775
            return null;
12776
        }
12777
      }
12778
 
12779
      /**
12780
       * Find the _Fields constant that matches fieldId, throwing an exception
12781
       * if it is not found.
12782
       */
12783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12784
        _Fields fields = findByThriftId(fieldId);
12785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12786
        return fields;
12787
      }
12788
 
12789
      /**
12790
       * Find the _Fields constant that matches name, or null if its not found.
12791
       */
12792
      public static _Fields findByName(String name) {
12793
        return byName.get(name);
12794
      }
12795
 
12796
      private final short _thriftId;
12797
      private final String _fieldName;
12798
 
12799
      _Fields(short thriftId, String fieldName) {
12800
        _thriftId = thriftId;
12801
        _fieldName = fieldName;
12802
      }
12803
 
12804
      public short getThriftFieldId() {
12805
        return _thriftId;
12806
      }
12807
 
12808
      public String getFieldName() {
12809
        return _fieldName;
12810
      }
12811
    }
12812
 
12813
    // isset id assignments
12814
    private static final int __ITEMID_ISSET_ID = 0;
12815
    private static final int __WAREHOUSEID_ISSET_ID = 1;
12816
    private static final int __SOURCEID_ISSET_ID = 2;
12817
    private static final int __ORDERID_ISSET_ID = 3;
12818
    private BitSet __isset_bit_vector = new BitSet(4);
12819
 
12820
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12821
    static {
12822
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12823
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12825
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12827
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12829
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12831
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12832
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
12833
    }
12834
 
12835
    public isOrderBillable_args() {
12836
    }
12837
 
12838
    public isOrderBillable_args(
12839
      long itemId,
12840
      long warehouseId,
12841
      long sourceId,
12842
      long orderId)
12843
    {
12844
      this();
12845
      this.itemId = itemId;
12846
      setItemIdIsSet(true);
12847
      this.warehouseId = warehouseId;
12848
      setWarehouseIdIsSet(true);
12849
      this.sourceId = sourceId;
12850
      setSourceIdIsSet(true);
12851
      this.orderId = orderId;
12852
      setOrderIdIsSet(true);
12853
    }
12854
 
12855
    /**
12856
     * Performs a deep copy on <i>other</i>.
12857
     */
12858
    public isOrderBillable_args(isOrderBillable_args other) {
12859
      __isset_bit_vector.clear();
12860
      __isset_bit_vector.or(other.__isset_bit_vector);
12861
      this.itemId = other.itemId;
12862
      this.warehouseId = other.warehouseId;
12863
      this.sourceId = other.sourceId;
12864
      this.orderId = other.orderId;
12865
    }
12866
 
12867
    public isOrderBillable_args deepCopy() {
12868
      return new isOrderBillable_args(this);
12869
    }
12870
 
12871
    @Override
12872
    public void clear() {
12873
      setItemIdIsSet(false);
12874
      this.itemId = 0;
12875
      setWarehouseIdIsSet(false);
12876
      this.warehouseId = 0;
12877
      setSourceIdIsSet(false);
12878
      this.sourceId = 0;
12879
      setOrderIdIsSet(false);
12880
      this.orderId = 0;
12881
    }
12882
 
12883
    public long getItemId() {
12884
      return this.itemId;
12885
    }
12886
 
12887
    public void setItemId(long itemId) {
12888
      this.itemId = itemId;
12889
      setItemIdIsSet(true);
12890
    }
12891
 
12892
    public void unsetItemId() {
12893
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12894
    }
12895
 
12896
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12897
    public boolean isSetItemId() {
12898
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12899
    }
12900
 
12901
    public void setItemIdIsSet(boolean value) {
12902
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12903
    }
12904
 
12905
    public long getWarehouseId() {
12906
      return this.warehouseId;
12907
    }
12908
 
12909
    public void setWarehouseId(long warehouseId) {
12910
      this.warehouseId = warehouseId;
12911
      setWarehouseIdIsSet(true);
12912
    }
12913
 
12914
    public void unsetWarehouseId() {
12915
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12916
    }
12917
 
12918
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
12919
    public boolean isSetWarehouseId() {
12920
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12921
    }
12922
 
12923
    public void setWarehouseIdIsSet(boolean value) {
12924
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12925
    }
12926
 
12927
    public long getSourceId() {
12928
      return this.sourceId;
12929
    }
12930
 
12931
    public void setSourceId(long sourceId) {
12932
      this.sourceId = sourceId;
12933
      setSourceIdIsSet(true);
12934
    }
12935
 
12936
    public void unsetSourceId() {
12937
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12938
    }
12939
 
12940
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12941
    public boolean isSetSourceId() {
12942
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12943
    }
12944
 
12945
    public void setSourceIdIsSet(boolean value) {
12946
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12947
    }
12948
 
12949
    public long getOrderId() {
12950
      return this.orderId;
12951
    }
12952
 
12953
    public void setOrderId(long orderId) {
12954
      this.orderId = orderId;
12955
      setOrderIdIsSet(true);
12956
    }
12957
 
12958
    public void unsetOrderId() {
12959
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
12960
    }
12961
 
12962
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
12963
    public boolean isSetOrderId() {
12964
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
12965
    }
12966
 
12967
    public void setOrderIdIsSet(boolean value) {
12968
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
12969
    }
12970
 
12971
    public void setFieldValue(_Fields field, Object value) {
12972
      switch (field) {
12973
      case ITEM_ID:
12974
        if (value == null) {
12975
          unsetItemId();
12976
        } else {
12977
          setItemId((Long)value);
12978
        }
12979
        break;
12980
 
12981
      case WAREHOUSE_ID:
12982
        if (value == null) {
12983
          unsetWarehouseId();
12984
        } else {
12985
          setWarehouseId((Long)value);
12986
        }
12987
        break;
12988
 
12989
      case SOURCE_ID:
12990
        if (value == null) {
12991
          unsetSourceId();
12992
        } else {
12993
          setSourceId((Long)value);
12994
        }
12995
        break;
12996
 
12997
      case ORDER_ID:
12998
        if (value == null) {
12999
          unsetOrderId();
13000
        } else {
13001
          setOrderId((Long)value);
13002
        }
13003
        break;
13004
 
13005
      }
13006
    }
13007
 
13008
    public Object getFieldValue(_Fields field) {
13009
      switch (field) {
13010
      case ITEM_ID:
13011
        return Long.valueOf(getItemId());
13012
 
13013
      case WAREHOUSE_ID:
13014
        return Long.valueOf(getWarehouseId());
13015
 
13016
      case SOURCE_ID:
13017
        return Long.valueOf(getSourceId());
13018
 
13019
      case ORDER_ID:
13020
        return Long.valueOf(getOrderId());
13021
 
13022
      }
13023
      throw new IllegalStateException();
13024
    }
13025
 
13026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13027
    public boolean isSet(_Fields field) {
13028
      if (field == null) {
13029
        throw new IllegalArgumentException();
13030
      }
13031
 
13032
      switch (field) {
13033
      case ITEM_ID:
13034
        return isSetItemId();
13035
      case WAREHOUSE_ID:
13036
        return isSetWarehouseId();
13037
      case SOURCE_ID:
13038
        return isSetSourceId();
13039
      case ORDER_ID:
13040
        return isSetOrderId();
13041
      }
13042
      throw new IllegalStateException();
13043
    }
13044
 
13045
    @Override
13046
    public boolean equals(Object that) {
13047
      if (that == null)
13048
        return false;
13049
      if (that instanceof isOrderBillable_args)
13050
        return this.equals((isOrderBillable_args)that);
13051
      return false;
13052
    }
13053
 
13054
    public boolean equals(isOrderBillable_args that) {
13055
      if (that == null)
13056
        return false;
13057
 
13058
      boolean this_present_itemId = true;
13059
      boolean that_present_itemId = true;
13060
      if (this_present_itemId || that_present_itemId) {
13061
        if (!(this_present_itemId && that_present_itemId))
13062
          return false;
13063
        if (this.itemId != that.itemId)
13064
          return false;
13065
      }
13066
 
13067
      boolean this_present_warehouseId = true;
13068
      boolean that_present_warehouseId = true;
13069
      if (this_present_warehouseId || that_present_warehouseId) {
13070
        if (!(this_present_warehouseId && that_present_warehouseId))
13071
          return false;
13072
        if (this.warehouseId != that.warehouseId)
13073
          return false;
13074
      }
13075
 
13076
      boolean this_present_sourceId = true;
13077
      boolean that_present_sourceId = true;
13078
      if (this_present_sourceId || that_present_sourceId) {
13079
        if (!(this_present_sourceId && that_present_sourceId))
13080
          return false;
13081
        if (this.sourceId != that.sourceId)
13082
          return false;
13083
      }
13084
 
13085
      boolean this_present_orderId = true;
13086
      boolean that_present_orderId = true;
13087
      if (this_present_orderId || that_present_orderId) {
13088
        if (!(this_present_orderId && that_present_orderId))
13089
          return false;
13090
        if (this.orderId != that.orderId)
13091
          return false;
13092
      }
13093
 
13094
      return true;
13095
    }
13096
 
13097
    @Override
13098
    public int hashCode() {
13099
      return 0;
13100
    }
13101
 
13102
    public int compareTo(isOrderBillable_args other) {
13103
      if (!getClass().equals(other.getClass())) {
13104
        return getClass().getName().compareTo(other.getClass().getName());
13105
      }
13106
 
13107
      int lastComparison = 0;
13108
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
13109
 
13110
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13111
      if (lastComparison != 0) {
13112
        return lastComparison;
13113
      }
13114
      if (isSetItemId()) {
13115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13116
        if (lastComparison != 0) {
13117
          return lastComparison;
13118
        }
13119
      }
13120
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13121
      if (lastComparison != 0) {
13122
        return lastComparison;
13123
      }
13124
      if (isSetWarehouseId()) {
13125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13126
        if (lastComparison != 0) {
13127
          return lastComparison;
13128
        }
13129
      }
13130
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13131
      if (lastComparison != 0) {
13132
        return lastComparison;
13133
      }
13134
      if (isSetSourceId()) {
13135
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13136
        if (lastComparison != 0) {
13137
          return lastComparison;
13138
        }
13139
      }
13140
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13141
      if (lastComparison != 0) {
13142
        return lastComparison;
13143
      }
13144
      if (isSetOrderId()) {
13145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13146
        if (lastComparison != 0) {
13147
          return lastComparison;
13148
        }
13149
      }
13150
      return 0;
13151
    }
13152
 
13153
    public _Fields fieldForId(int fieldId) {
13154
      return _Fields.findByThriftId(fieldId);
13155
    }
13156
 
13157
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13158
      org.apache.thrift.protocol.TField field;
13159
      iprot.readStructBegin();
13160
      while (true)
13161
      {
13162
        field = iprot.readFieldBegin();
13163
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13164
          break;
13165
        }
13166
        switch (field.id) {
13167
          case 1: // ITEM_ID
13168
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13169
              this.itemId = iprot.readI64();
13170
              setItemIdIsSet(true);
13171
            } else { 
13172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13173
            }
13174
            break;
13175
          case 2: // WAREHOUSE_ID
13176
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13177
              this.warehouseId = iprot.readI64();
13178
              setWarehouseIdIsSet(true);
13179
            } else { 
13180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13181
            }
13182
            break;
13183
          case 3: // SOURCE_ID
13184
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13185
              this.sourceId = iprot.readI64();
13186
              setSourceIdIsSet(true);
13187
            } else { 
13188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13189
            }
13190
            break;
13191
          case 4: // ORDER_ID
13192
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13193
              this.orderId = iprot.readI64();
13194
              setOrderIdIsSet(true);
13195
            } else { 
13196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13197
            }
13198
            break;
13199
          default:
13200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13201
        }
13202
        iprot.readFieldEnd();
13203
      }
13204
      iprot.readStructEnd();
13205
      validate();
13206
    }
13207
 
13208
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13209
      validate();
13210
 
13211
      oprot.writeStructBegin(STRUCT_DESC);
13212
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
13213
      oprot.writeI64(this.itemId);
13214
      oprot.writeFieldEnd();
13215
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13216
      oprot.writeI64(this.warehouseId);
13217
      oprot.writeFieldEnd();
13218
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
13219
      oprot.writeI64(this.sourceId);
13220
      oprot.writeFieldEnd();
13221
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13222
      oprot.writeI64(this.orderId);
13223
      oprot.writeFieldEnd();
13224
      oprot.writeFieldStop();
13225
      oprot.writeStructEnd();
13226
    }
13227
 
13228
    @Override
13229
    public String toString() {
13230
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
13231
      boolean first = true;
13232
 
13233
      sb.append("itemId:");
13234
      sb.append(this.itemId);
13235
      first = false;
13236
      if (!first) sb.append(", ");
13237
      sb.append("warehouseId:");
13238
      sb.append(this.warehouseId);
13239
      first = false;
13240
      if (!first) sb.append(", ");
13241
      sb.append("sourceId:");
13242
      sb.append(this.sourceId);
13243
      first = false;
13244
      if (!first) sb.append(", ");
13245
      sb.append("orderId:");
13246
      sb.append(this.orderId);
13247
      first = false;
13248
      sb.append(")");
13249
      return sb.toString();
13250
    }
13251
 
13252
    public void validate() throws org.apache.thrift.TException {
13253
      // check for required fields
13254
    }
13255
 
13256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13257
      try {
13258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13259
      } catch (org.apache.thrift.TException te) {
13260
        throw new java.io.IOException(te);
13261
      }
13262
    }
13263
 
13264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13265
      try {
13266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13267
      } catch (org.apache.thrift.TException te) {
13268
        throw new java.io.IOException(te);
13269
      }
13270
    }
13271
 
13272
  }
13273
 
13274
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
13275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
13276
 
13277
    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);
13278
 
13279
    private boolean success; // required
13280
 
13281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13283
      SUCCESS((short)0, "success");
13284
 
13285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13286
 
13287
      static {
13288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13289
          byName.put(field.getFieldName(), field);
13290
        }
13291
      }
13292
 
13293
      /**
13294
       * Find the _Fields constant that matches fieldId, or null if its not found.
13295
       */
13296
      public static _Fields findByThriftId(int fieldId) {
13297
        switch(fieldId) {
13298
          case 0: // SUCCESS
13299
            return SUCCESS;
13300
          default:
13301
            return null;
13302
        }
13303
      }
13304
 
13305
      /**
13306
       * Find the _Fields constant that matches fieldId, throwing an exception
13307
       * if it is not found.
13308
       */
13309
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13310
        _Fields fields = findByThriftId(fieldId);
13311
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13312
        return fields;
13313
      }
13314
 
13315
      /**
13316
       * Find the _Fields constant that matches name, or null if its not found.
13317
       */
13318
      public static _Fields findByName(String name) {
13319
        return byName.get(name);
13320
      }
13321
 
13322
      private final short _thriftId;
13323
      private final String _fieldName;
13324
 
13325
      _Fields(short thriftId, String fieldName) {
13326
        _thriftId = thriftId;
13327
        _fieldName = fieldName;
13328
      }
13329
 
13330
      public short getThriftFieldId() {
13331
        return _thriftId;
13332
      }
13333
 
13334
      public String getFieldName() {
13335
        return _fieldName;
13336
      }
13337
    }
13338
 
13339
    // isset id assignments
13340
    private static final int __SUCCESS_ISSET_ID = 0;
13341
    private BitSet __isset_bit_vector = new BitSet(1);
13342
 
13343
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13344
    static {
13345
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13346
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
13350
    }
13351
 
13352
    public isOrderBillable_result() {
13353
    }
13354
 
13355
    public isOrderBillable_result(
13356
      boolean success)
13357
    {
13358
      this();
13359
      this.success = success;
13360
      setSuccessIsSet(true);
13361
    }
13362
 
13363
    /**
13364
     * Performs a deep copy on <i>other</i>.
13365
     */
13366
    public isOrderBillable_result(isOrderBillable_result other) {
13367
      __isset_bit_vector.clear();
13368
      __isset_bit_vector.or(other.__isset_bit_vector);
13369
      this.success = other.success;
13370
    }
13371
 
13372
    public isOrderBillable_result deepCopy() {
13373
      return new isOrderBillable_result(this);
13374
    }
13375
 
13376
    @Override
13377
    public void clear() {
13378
      setSuccessIsSet(false);
13379
      this.success = false;
13380
    }
13381
 
13382
    public boolean isSuccess() {
13383
      return this.success;
13384
    }
13385
 
13386
    public void setSuccess(boolean success) {
13387
      this.success = success;
13388
      setSuccessIsSet(true);
13389
    }
13390
 
13391
    public void unsetSuccess() {
13392
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13393
    }
13394
 
13395
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13396
    public boolean isSetSuccess() {
13397
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13398
    }
13399
 
13400
    public void setSuccessIsSet(boolean value) {
13401
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13402
    }
13403
 
13404
    public void setFieldValue(_Fields field, Object value) {
13405
      switch (field) {
13406
      case SUCCESS:
13407
        if (value == null) {
13408
          unsetSuccess();
13409
        } else {
13410
          setSuccess((Boolean)value);
13411
        }
13412
        break;
13413
 
13414
      }
13415
    }
13416
 
13417
    public Object getFieldValue(_Fields field) {
13418
      switch (field) {
13419
      case SUCCESS:
13420
        return Boolean.valueOf(isSuccess());
13421
 
13422
      }
13423
      throw new IllegalStateException();
13424
    }
13425
 
13426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13427
    public boolean isSet(_Fields field) {
13428
      if (field == null) {
13429
        throw new IllegalArgumentException();
13430
      }
13431
 
13432
      switch (field) {
13433
      case SUCCESS:
13434
        return isSetSuccess();
13435
      }
13436
      throw new IllegalStateException();
13437
    }
13438
 
13439
    @Override
13440
    public boolean equals(Object that) {
13441
      if (that == null)
13442
        return false;
13443
      if (that instanceof isOrderBillable_result)
13444
        return this.equals((isOrderBillable_result)that);
13445
      return false;
13446
    }
13447
 
13448
    public boolean equals(isOrderBillable_result that) {
13449
      if (that == null)
13450
        return false;
13451
 
13452
      boolean this_present_success = true;
13453
      boolean that_present_success = true;
13454
      if (this_present_success || that_present_success) {
13455
        if (!(this_present_success && that_present_success))
13456
          return false;
13457
        if (this.success != that.success)
13458
          return false;
13459
      }
13460
 
13461
      return true;
13462
    }
13463
 
13464
    @Override
13465
    public int hashCode() {
13466
      return 0;
13467
    }
13468
 
13469
    public int compareTo(isOrderBillable_result other) {
13470
      if (!getClass().equals(other.getClass())) {
13471
        return getClass().getName().compareTo(other.getClass().getName());
13472
      }
13473
 
13474
      int lastComparison = 0;
13475
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
13476
 
13477
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13478
      if (lastComparison != 0) {
13479
        return lastComparison;
13480
      }
13481
      if (isSetSuccess()) {
13482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13483
        if (lastComparison != 0) {
13484
          return lastComparison;
13485
        }
13486
      }
13487
      return 0;
13488
    }
13489
 
13490
    public _Fields fieldForId(int fieldId) {
13491
      return _Fields.findByThriftId(fieldId);
13492
    }
13493
 
13494
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13495
      org.apache.thrift.protocol.TField field;
13496
      iprot.readStructBegin();
13497
      while (true)
13498
      {
13499
        field = iprot.readFieldBegin();
13500
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13501
          break;
13502
        }
13503
        switch (field.id) {
13504
          case 0: // SUCCESS
13505
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13506
              this.success = iprot.readBool();
13507
              setSuccessIsSet(true);
13508
            } else { 
13509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13510
            }
13511
            break;
13512
          default:
13513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13514
        }
13515
        iprot.readFieldEnd();
13516
      }
13517
      iprot.readStructEnd();
13518
      validate();
13519
    }
13520
 
13521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13522
      oprot.writeStructBegin(STRUCT_DESC);
13523
 
13524
      if (this.isSetSuccess()) {
13525
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13526
        oprot.writeBool(this.success);
13527
        oprot.writeFieldEnd();
13528
      }
13529
      oprot.writeFieldStop();
13530
      oprot.writeStructEnd();
13531
    }
13532
 
13533
    @Override
13534
    public String toString() {
13535
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
13536
      boolean first = true;
13537
 
13538
      sb.append("success:");
13539
      sb.append(this.success);
13540
      first = false;
13541
      sb.append(")");
13542
      return sb.toString();
13543
    }
13544
 
13545
    public void validate() throws org.apache.thrift.TException {
13546
      // check for required fields
13547
    }
13548
 
13549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13550
      try {
13551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13552
      } catch (org.apache.thrift.TException te) {
13553
        throw new java.io.IOException(te);
13554
      }
13555
    }
13556
 
13557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13558
      try {
13559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13560
      } catch (org.apache.thrift.TException te) {
13561
        throw new java.io.IOException(te);
13562
      }
13563
    }
13564
 
13565
  }
13566
 
5945 mandeep.dh 13567
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
13568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
13569
 
13570
    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);
13571
    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 13572
    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);
13573
    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);
13574
    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);
13575
    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);
13576
    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 13577
 
13578
    private long itemId; // required
13579
    private long warehouseId; // required
5967 rajveer 13580
    private long sourceId; // required
13581
    private long orderId; // required
13582
    private long createdTimestamp; // required
13583
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 13584
    private double quantity; // required
13585
 
13586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13588
      ITEM_ID((short)1, "itemId"),
13589
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 13590
      SOURCE_ID((short)3, "sourceId"),
13591
      ORDER_ID((short)4, "orderId"),
13592
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
13593
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
13594
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 13595
 
13596
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13597
 
13598
      static {
13599
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13600
          byName.put(field.getFieldName(), field);
13601
        }
13602
      }
13603
 
13604
      /**
13605
       * Find the _Fields constant that matches fieldId, or null if its not found.
13606
       */
13607
      public static _Fields findByThriftId(int fieldId) {
13608
        switch(fieldId) {
13609
          case 1: // ITEM_ID
13610
            return ITEM_ID;
13611
          case 2: // WAREHOUSE_ID
13612
            return WAREHOUSE_ID;
5967 rajveer 13613
          case 3: // SOURCE_ID
13614
            return SOURCE_ID;
13615
          case 4: // ORDER_ID
13616
            return ORDER_ID;
13617
          case 5: // CREATED_TIMESTAMP
13618
            return CREATED_TIMESTAMP;
13619
          case 6: // PROMISED_SHIPPING_TIMESTAMP
13620
            return PROMISED_SHIPPING_TIMESTAMP;
13621
          case 7: // QUANTITY
5945 mandeep.dh 13622
            return QUANTITY;
13623
          default:
13624
            return null;
13625
        }
13626
      }
13627
 
13628
      /**
13629
       * Find the _Fields constant that matches fieldId, throwing an exception
13630
       * if it is not found.
13631
       */
13632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13633
        _Fields fields = findByThriftId(fieldId);
13634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13635
        return fields;
13636
      }
13637
 
13638
      /**
13639
       * Find the _Fields constant that matches name, or null if its not found.
13640
       */
13641
      public static _Fields findByName(String name) {
13642
        return byName.get(name);
13643
      }
13644
 
13645
      private final short _thriftId;
13646
      private final String _fieldName;
13647
 
13648
      _Fields(short thriftId, String fieldName) {
13649
        _thriftId = thriftId;
13650
        _fieldName = fieldName;
13651
      }
13652
 
13653
      public short getThriftFieldId() {
13654
        return _thriftId;
13655
      }
13656
 
13657
      public String getFieldName() {
13658
        return _fieldName;
13659
      }
13660
    }
13661
 
13662
    // isset id assignments
13663
    private static final int __ITEMID_ISSET_ID = 0;
13664
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 13665
    private static final int __SOURCEID_ISSET_ID = 2;
13666
    private static final int __ORDERID_ISSET_ID = 3;
13667
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
13668
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
13669
    private static final int __QUANTITY_ISSET_ID = 6;
13670
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 13671
 
13672
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13673
    static {
13674
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13675
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13676
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13677
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 13679
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13681
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13683
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13685
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 13687
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
13689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
13691
    }
13692
 
13693
    public reserveItemInWarehouse_args() {
13694
    }
13695
 
13696
    public reserveItemInWarehouse_args(
13697
      long itemId,
13698
      long warehouseId,
5967 rajveer 13699
      long sourceId,
13700
      long orderId,
13701
      long createdTimestamp,
13702
      long promisedShippingTimestamp,
5945 mandeep.dh 13703
      double quantity)
13704
    {
13705
      this();
13706
      this.itemId = itemId;
13707
      setItemIdIsSet(true);
13708
      this.warehouseId = warehouseId;
13709
      setWarehouseIdIsSet(true);
5967 rajveer 13710
      this.sourceId = sourceId;
13711
      setSourceIdIsSet(true);
13712
      this.orderId = orderId;
13713
      setOrderIdIsSet(true);
13714
      this.createdTimestamp = createdTimestamp;
13715
      setCreatedTimestampIsSet(true);
13716
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13717
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 13718
      this.quantity = quantity;
13719
      setQuantityIsSet(true);
13720
    }
13721
 
13722
    /**
13723
     * Performs a deep copy on <i>other</i>.
13724
     */
13725
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
13726
      __isset_bit_vector.clear();
13727
      __isset_bit_vector.or(other.__isset_bit_vector);
13728
      this.itemId = other.itemId;
13729
      this.warehouseId = other.warehouseId;
5967 rajveer 13730
      this.sourceId = other.sourceId;
13731
      this.orderId = other.orderId;
13732
      this.createdTimestamp = other.createdTimestamp;
13733
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 13734
      this.quantity = other.quantity;
13735
    }
13736
 
13737
    public reserveItemInWarehouse_args deepCopy() {
13738
      return new reserveItemInWarehouse_args(this);
13739
    }
13740
 
13741
    @Override
13742
    public void clear() {
13743
      setItemIdIsSet(false);
13744
      this.itemId = 0;
13745
      setWarehouseIdIsSet(false);
13746
      this.warehouseId = 0;
5967 rajveer 13747
      setSourceIdIsSet(false);
13748
      this.sourceId = 0;
13749
      setOrderIdIsSet(false);
13750
      this.orderId = 0;
13751
      setCreatedTimestampIsSet(false);
13752
      this.createdTimestamp = 0;
13753
      setPromisedShippingTimestampIsSet(false);
13754
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 13755
      setQuantityIsSet(false);
13756
      this.quantity = 0.0;
13757
    }
13758
 
13759
    public long getItemId() {
13760
      return this.itemId;
13761
    }
13762
 
13763
    public void setItemId(long itemId) {
13764
      this.itemId = itemId;
13765
      setItemIdIsSet(true);
13766
    }
13767
 
13768
    public void unsetItemId() {
13769
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13770
    }
13771
 
13772
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13773
    public boolean isSetItemId() {
13774
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13775
    }
13776
 
13777
    public void setItemIdIsSet(boolean value) {
13778
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13779
    }
13780
 
13781
    public long getWarehouseId() {
13782
      return this.warehouseId;
13783
    }
13784
 
13785
    public void setWarehouseId(long warehouseId) {
13786
      this.warehouseId = warehouseId;
13787
      setWarehouseIdIsSet(true);
13788
    }
13789
 
13790
    public void unsetWarehouseId() {
13791
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13792
    }
13793
 
13794
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13795
    public boolean isSetWarehouseId() {
13796
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13797
    }
13798
 
13799
    public void setWarehouseIdIsSet(boolean value) {
13800
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13801
    }
13802
 
5967 rajveer 13803
    public long getSourceId() {
13804
      return this.sourceId;
13805
    }
13806
 
13807
    public void setSourceId(long sourceId) {
13808
      this.sourceId = sourceId;
13809
      setSourceIdIsSet(true);
13810
    }
13811
 
13812
    public void unsetSourceId() {
13813
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13814
    }
13815
 
13816
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13817
    public boolean isSetSourceId() {
13818
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13819
    }
13820
 
13821
    public void setSourceIdIsSet(boolean value) {
13822
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13823
    }
13824
 
13825
    public long getOrderId() {
13826
      return this.orderId;
13827
    }
13828
 
13829
    public void setOrderId(long orderId) {
13830
      this.orderId = orderId;
13831
      setOrderIdIsSet(true);
13832
    }
13833
 
13834
    public void unsetOrderId() {
13835
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13836
    }
13837
 
13838
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13839
    public boolean isSetOrderId() {
13840
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13841
    }
13842
 
13843
    public void setOrderIdIsSet(boolean value) {
13844
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13845
    }
13846
 
13847
    public long getCreatedTimestamp() {
13848
      return this.createdTimestamp;
13849
    }
13850
 
13851
    public void setCreatedTimestamp(long createdTimestamp) {
13852
      this.createdTimestamp = createdTimestamp;
13853
      setCreatedTimestampIsSet(true);
13854
    }
13855
 
13856
    public void unsetCreatedTimestamp() {
13857
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
13858
    }
13859
 
13860
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
13861
    public boolean isSetCreatedTimestamp() {
13862
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
13863
    }
13864
 
13865
    public void setCreatedTimestampIsSet(boolean value) {
13866
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
13867
    }
13868
 
13869
    public long getPromisedShippingTimestamp() {
13870
      return this.promisedShippingTimestamp;
13871
    }
13872
 
13873
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
13874
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13875
      setPromisedShippingTimestampIsSet(true);
13876
    }
13877
 
13878
    public void unsetPromisedShippingTimestamp() {
13879
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13880
    }
13881
 
13882
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
13883
    public boolean isSetPromisedShippingTimestamp() {
13884
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13885
    }
13886
 
13887
    public void setPromisedShippingTimestampIsSet(boolean value) {
13888
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
13889
    }
13890
 
5945 mandeep.dh 13891
    public double getQuantity() {
13892
      return this.quantity;
13893
    }
13894
 
13895
    public void setQuantity(double quantity) {
13896
      this.quantity = quantity;
13897
      setQuantityIsSet(true);
13898
    }
13899
 
13900
    public void unsetQuantity() {
13901
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
13902
    }
13903
 
13904
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
13905
    public boolean isSetQuantity() {
13906
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
13907
    }
13908
 
13909
    public void setQuantityIsSet(boolean value) {
13910
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
13911
    }
13912
 
13913
    public void setFieldValue(_Fields field, Object value) {
13914
      switch (field) {
13915
      case ITEM_ID:
13916
        if (value == null) {
13917
          unsetItemId();
13918
        } else {
13919
          setItemId((Long)value);
13920
        }
13921
        break;
13922
 
13923
      case WAREHOUSE_ID:
13924
        if (value == null) {
13925
          unsetWarehouseId();
13926
        } else {
13927
          setWarehouseId((Long)value);
13928
        }
13929
        break;
13930
 
5967 rajveer 13931
      case SOURCE_ID:
13932
        if (value == null) {
13933
          unsetSourceId();
13934
        } else {
13935
          setSourceId((Long)value);
13936
        }
13937
        break;
13938
 
13939
      case ORDER_ID:
13940
        if (value == null) {
13941
          unsetOrderId();
13942
        } else {
13943
          setOrderId((Long)value);
13944
        }
13945
        break;
13946
 
13947
      case CREATED_TIMESTAMP:
13948
        if (value == null) {
13949
          unsetCreatedTimestamp();
13950
        } else {
13951
          setCreatedTimestamp((Long)value);
13952
        }
13953
        break;
13954
 
13955
      case PROMISED_SHIPPING_TIMESTAMP:
13956
        if (value == null) {
13957
          unsetPromisedShippingTimestamp();
13958
        } else {
13959
          setPromisedShippingTimestamp((Long)value);
13960
        }
13961
        break;
13962
 
5945 mandeep.dh 13963
      case QUANTITY:
13964
        if (value == null) {
13965
          unsetQuantity();
13966
        } else {
13967
          setQuantity((Double)value);
13968
        }
13969
        break;
13970
 
13971
      }
13972
    }
13973
 
13974
    public Object getFieldValue(_Fields field) {
13975
      switch (field) {
13976
      case ITEM_ID:
13977
        return Long.valueOf(getItemId());
13978
 
13979
      case WAREHOUSE_ID:
13980
        return Long.valueOf(getWarehouseId());
13981
 
5967 rajveer 13982
      case SOURCE_ID:
13983
        return Long.valueOf(getSourceId());
13984
 
13985
      case ORDER_ID:
13986
        return Long.valueOf(getOrderId());
13987
 
13988
      case CREATED_TIMESTAMP:
13989
        return Long.valueOf(getCreatedTimestamp());
13990
 
13991
      case PROMISED_SHIPPING_TIMESTAMP:
13992
        return Long.valueOf(getPromisedShippingTimestamp());
13993
 
5945 mandeep.dh 13994
      case QUANTITY:
13995
        return Double.valueOf(getQuantity());
13996
 
13997
      }
13998
      throw new IllegalStateException();
13999
    }
14000
 
14001
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14002
    public boolean isSet(_Fields field) {
14003
      if (field == null) {
14004
        throw new IllegalArgumentException();
14005
      }
14006
 
14007
      switch (field) {
14008
      case ITEM_ID:
14009
        return isSetItemId();
14010
      case WAREHOUSE_ID:
14011
        return isSetWarehouseId();
5967 rajveer 14012
      case SOURCE_ID:
14013
        return isSetSourceId();
14014
      case ORDER_ID:
14015
        return isSetOrderId();
14016
      case CREATED_TIMESTAMP:
14017
        return isSetCreatedTimestamp();
14018
      case PROMISED_SHIPPING_TIMESTAMP:
14019
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 14020
      case QUANTITY:
14021
        return isSetQuantity();
14022
      }
14023
      throw new IllegalStateException();
14024
    }
14025
 
14026
    @Override
14027
    public boolean equals(Object that) {
14028
      if (that == null)
14029
        return false;
14030
      if (that instanceof reserveItemInWarehouse_args)
14031
        return this.equals((reserveItemInWarehouse_args)that);
14032
      return false;
14033
    }
14034
 
14035
    public boolean equals(reserveItemInWarehouse_args that) {
14036
      if (that == null)
14037
        return false;
14038
 
14039
      boolean this_present_itemId = true;
14040
      boolean that_present_itemId = true;
14041
      if (this_present_itemId || that_present_itemId) {
14042
        if (!(this_present_itemId && that_present_itemId))
14043
          return false;
14044
        if (this.itemId != that.itemId)
14045
          return false;
14046
      }
14047
 
14048
      boolean this_present_warehouseId = true;
14049
      boolean that_present_warehouseId = true;
14050
      if (this_present_warehouseId || that_present_warehouseId) {
14051
        if (!(this_present_warehouseId && that_present_warehouseId))
14052
          return false;
14053
        if (this.warehouseId != that.warehouseId)
14054
          return false;
14055
      }
14056
 
5967 rajveer 14057
      boolean this_present_sourceId = true;
14058
      boolean that_present_sourceId = true;
14059
      if (this_present_sourceId || that_present_sourceId) {
14060
        if (!(this_present_sourceId && that_present_sourceId))
14061
          return false;
14062
        if (this.sourceId != that.sourceId)
14063
          return false;
14064
      }
14065
 
14066
      boolean this_present_orderId = true;
14067
      boolean that_present_orderId = true;
14068
      if (this_present_orderId || that_present_orderId) {
14069
        if (!(this_present_orderId && that_present_orderId))
14070
          return false;
14071
        if (this.orderId != that.orderId)
14072
          return false;
14073
      }
14074
 
14075
      boolean this_present_createdTimestamp = true;
14076
      boolean that_present_createdTimestamp = true;
14077
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
14078
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
14079
          return false;
14080
        if (this.createdTimestamp != that.createdTimestamp)
14081
          return false;
14082
      }
14083
 
14084
      boolean this_present_promisedShippingTimestamp = true;
14085
      boolean that_present_promisedShippingTimestamp = true;
14086
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
14087
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
14088
          return false;
14089
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
14090
          return false;
14091
      }
14092
 
5945 mandeep.dh 14093
      boolean this_present_quantity = true;
14094
      boolean that_present_quantity = true;
14095
      if (this_present_quantity || that_present_quantity) {
14096
        if (!(this_present_quantity && that_present_quantity))
14097
          return false;
14098
        if (this.quantity != that.quantity)
14099
          return false;
14100
      }
14101
 
14102
      return true;
14103
    }
14104
 
14105
    @Override
14106
    public int hashCode() {
14107
      return 0;
14108
    }
14109
 
14110
    public int compareTo(reserveItemInWarehouse_args other) {
14111
      if (!getClass().equals(other.getClass())) {
14112
        return getClass().getName().compareTo(other.getClass().getName());
14113
      }
14114
 
14115
      int lastComparison = 0;
14116
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
14117
 
14118
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14119
      if (lastComparison != 0) {
14120
        return lastComparison;
14121
      }
14122
      if (isSetItemId()) {
14123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14124
        if (lastComparison != 0) {
14125
          return lastComparison;
14126
        }
14127
      }
14128
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14129
      if (lastComparison != 0) {
14130
        return lastComparison;
14131
      }
14132
      if (isSetWarehouseId()) {
14133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14134
        if (lastComparison != 0) {
14135
          return lastComparison;
14136
        }
14137
      }
5967 rajveer 14138
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14139
      if (lastComparison != 0) {
14140
        return lastComparison;
14141
      }
14142
      if (isSetSourceId()) {
14143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14144
        if (lastComparison != 0) {
14145
          return lastComparison;
14146
        }
14147
      }
14148
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14149
      if (lastComparison != 0) {
14150
        return lastComparison;
14151
      }
14152
      if (isSetOrderId()) {
14153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14154
        if (lastComparison != 0) {
14155
          return lastComparison;
14156
        }
14157
      }
14158
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
14159
      if (lastComparison != 0) {
14160
        return lastComparison;
14161
      }
14162
      if (isSetCreatedTimestamp()) {
14163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
14164
        if (lastComparison != 0) {
14165
          return lastComparison;
14166
        }
14167
      }
14168
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
14169
      if (lastComparison != 0) {
14170
        return lastComparison;
14171
      }
14172
      if (isSetPromisedShippingTimestamp()) {
14173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
14174
        if (lastComparison != 0) {
14175
          return lastComparison;
14176
        }
14177
      }
5945 mandeep.dh 14178
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14179
      if (lastComparison != 0) {
14180
        return lastComparison;
14181
      }
14182
      if (isSetQuantity()) {
14183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14184
        if (lastComparison != 0) {
14185
          return lastComparison;
14186
        }
14187
      }
14188
      return 0;
14189
    }
14190
 
14191
    public _Fields fieldForId(int fieldId) {
14192
      return _Fields.findByThriftId(fieldId);
14193
    }
14194
 
14195
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14196
      org.apache.thrift.protocol.TField field;
14197
      iprot.readStructBegin();
14198
      while (true)
14199
      {
14200
        field = iprot.readFieldBegin();
14201
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14202
          break;
14203
        }
14204
        switch (field.id) {
14205
          case 1: // ITEM_ID
14206
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14207
              this.itemId = iprot.readI64();
14208
              setItemIdIsSet(true);
14209
            } else { 
14210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14211
            }
14212
            break;
14213
          case 2: // WAREHOUSE_ID
14214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14215
              this.warehouseId = iprot.readI64();
14216
              setWarehouseIdIsSet(true);
14217
            } else { 
14218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14219
            }
14220
            break;
5967 rajveer 14221
          case 3: // SOURCE_ID
14222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14223
              this.sourceId = iprot.readI64();
14224
              setSourceIdIsSet(true);
14225
            } else { 
14226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14227
            }
14228
            break;
14229
          case 4: // ORDER_ID
14230
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14231
              this.orderId = iprot.readI64();
14232
              setOrderIdIsSet(true);
14233
            } else { 
14234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14235
            }
14236
            break;
14237
          case 5: // CREATED_TIMESTAMP
14238
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14239
              this.createdTimestamp = iprot.readI64();
14240
              setCreatedTimestampIsSet(true);
14241
            } else { 
14242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14243
            }
14244
            break;
14245
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14246
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14247
              this.promisedShippingTimestamp = iprot.readI64();
14248
              setPromisedShippingTimestampIsSet(true);
14249
            } else { 
14250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14251
            }
14252
            break;
14253
          case 7: // QUANTITY
5945 mandeep.dh 14254
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14255
              this.quantity = iprot.readDouble();
14256
              setQuantityIsSet(true);
14257
            } else { 
14258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14259
            }
14260
            break;
14261
          default:
14262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14263
        }
14264
        iprot.readFieldEnd();
14265
      }
14266
      iprot.readStructEnd();
14267
      validate();
14268
    }
14269
 
14270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14271
      validate();
14272
 
14273
      oprot.writeStructBegin(STRUCT_DESC);
14274
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14275
      oprot.writeI64(this.itemId);
14276
      oprot.writeFieldEnd();
14277
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14278
      oprot.writeI64(this.warehouseId);
14279
      oprot.writeFieldEnd();
5967 rajveer 14280
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14281
      oprot.writeI64(this.sourceId);
14282
      oprot.writeFieldEnd();
14283
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14284
      oprot.writeI64(this.orderId);
14285
      oprot.writeFieldEnd();
14286
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
14287
      oprot.writeI64(this.createdTimestamp);
14288
      oprot.writeFieldEnd();
14289
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
14290
      oprot.writeI64(this.promisedShippingTimestamp);
14291
      oprot.writeFieldEnd();
5945 mandeep.dh 14292
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14293
      oprot.writeDouble(this.quantity);
14294
      oprot.writeFieldEnd();
14295
      oprot.writeFieldStop();
14296
      oprot.writeStructEnd();
14297
    }
14298
 
14299
    @Override
14300
    public String toString() {
14301
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
14302
      boolean first = true;
14303
 
14304
      sb.append("itemId:");
14305
      sb.append(this.itemId);
14306
      first = false;
14307
      if (!first) sb.append(", ");
14308
      sb.append("warehouseId:");
14309
      sb.append(this.warehouseId);
14310
      first = false;
14311
      if (!first) sb.append(", ");
5967 rajveer 14312
      sb.append("sourceId:");
14313
      sb.append(this.sourceId);
14314
      first = false;
14315
      if (!first) sb.append(", ");
14316
      sb.append("orderId:");
14317
      sb.append(this.orderId);
14318
      first = false;
14319
      if (!first) sb.append(", ");
14320
      sb.append("createdTimestamp:");
14321
      sb.append(this.createdTimestamp);
14322
      first = false;
14323
      if (!first) sb.append(", ");
14324
      sb.append("promisedShippingTimestamp:");
14325
      sb.append(this.promisedShippingTimestamp);
14326
      first = false;
14327
      if (!first) sb.append(", ");
5945 mandeep.dh 14328
      sb.append("quantity:");
14329
      sb.append(this.quantity);
14330
      first = false;
14331
      sb.append(")");
14332
      return sb.toString();
14333
    }
14334
 
14335
    public void validate() throws org.apache.thrift.TException {
14336
      // check for required fields
14337
    }
14338
 
14339
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14340
      try {
14341
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14342
      } catch (org.apache.thrift.TException te) {
14343
        throw new java.io.IOException(te);
14344
      }
14345
    }
14346
 
14347
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14348
      try {
14349
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14350
      } catch (org.apache.thrift.TException te) {
14351
        throw new java.io.IOException(te);
14352
      }
14353
    }
14354
 
14355
  }
14356
 
14357
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
14359
 
14360
    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);
14361
    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);
14362
 
14363
    private boolean success; // required
14364
    private InventoryServiceException cex; // required
14365
 
14366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14368
      SUCCESS((short)0, "success"),
14369
      CEX((short)1, "cex");
14370
 
14371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14372
 
14373
      static {
14374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14375
          byName.put(field.getFieldName(), field);
14376
        }
14377
      }
14378
 
14379
      /**
14380
       * Find the _Fields constant that matches fieldId, or null if its not found.
14381
       */
14382
      public static _Fields findByThriftId(int fieldId) {
14383
        switch(fieldId) {
14384
          case 0: // SUCCESS
14385
            return SUCCESS;
14386
          case 1: // CEX
14387
            return CEX;
14388
          default:
14389
            return null;
14390
        }
14391
      }
14392
 
14393
      /**
14394
       * Find the _Fields constant that matches fieldId, throwing an exception
14395
       * if it is not found.
14396
       */
14397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14398
        _Fields fields = findByThriftId(fieldId);
14399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14400
        return fields;
14401
      }
14402
 
14403
      /**
14404
       * Find the _Fields constant that matches name, or null if its not found.
14405
       */
14406
      public static _Fields findByName(String name) {
14407
        return byName.get(name);
14408
      }
14409
 
14410
      private final short _thriftId;
14411
      private final String _fieldName;
14412
 
14413
      _Fields(short thriftId, String fieldName) {
14414
        _thriftId = thriftId;
14415
        _fieldName = fieldName;
14416
      }
14417
 
14418
      public short getThriftFieldId() {
14419
        return _thriftId;
14420
      }
14421
 
14422
      public String getFieldName() {
14423
        return _fieldName;
14424
      }
14425
    }
14426
 
14427
    // isset id assignments
14428
    private static final int __SUCCESS_ISSET_ID = 0;
14429
    private BitSet __isset_bit_vector = new BitSet(1);
14430
 
14431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14432
    static {
14433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14434
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14435
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14436
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
14440
    }
14441
 
14442
    public reserveItemInWarehouse_result() {
14443
    }
14444
 
14445
    public reserveItemInWarehouse_result(
14446
      boolean success,
14447
      InventoryServiceException cex)
14448
    {
14449
      this();
14450
      this.success = success;
14451
      setSuccessIsSet(true);
14452
      this.cex = cex;
14453
    }
14454
 
14455
    /**
14456
     * Performs a deep copy on <i>other</i>.
14457
     */
14458
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
14459
      __isset_bit_vector.clear();
14460
      __isset_bit_vector.or(other.__isset_bit_vector);
14461
      this.success = other.success;
14462
      if (other.isSetCex()) {
14463
        this.cex = new InventoryServiceException(other.cex);
14464
      }
14465
    }
14466
 
14467
    public reserveItemInWarehouse_result deepCopy() {
14468
      return new reserveItemInWarehouse_result(this);
14469
    }
14470
 
14471
    @Override
14472
    public void clear() {
14473
      setSuccessIsSet(false);
14474
      this.success = false;
14475
      this.cex = null;
14476
    }
14477
 
14478
    public boolean isSuccess() {
14479
      return this.success;
14480
    }
14481
 
14482
    public void setSuccess(boolean success) {
14483
      this.success = success;
14484
      setSuccessIsSet(true);
14485
    }
14486
 
14487
    public void unsetSuccess() {
14488
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14489
    }
14490
 
14491
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14492
    public boolean isSetSuccess() {
14493
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14494
    }
14495
 
14496
    public void setSuccessIsSet(boolean value) {
14497
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14498
    }
14499
 
14500
    public InventoryServiceException getCex() {
14501
      return this.cex;
14502
    }
14503
 
14504
    public void setCex(InventoryServiceException cex) {
14505
      this.cex = cex;
14506
    }
14507
 
14508
    public void unsetCex() {
14509
      this.cex = null;
14510
    }
14511
 
14512
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14513
    public boolean isSetCex() {
14514
      return this.cex != null;
14515
    }
14516
 
14517
    public void setCexIsSet(boolean value) {
14518
      if (!value) {
14519
        this.cex = null;
14520
      }
14521
    }
14522
 
14523
    public void setFieldValue(_Fields field, Object value) {
14524
      switch (field) {
14525
      case SUCCESS:
14526
        if (value == null) {
14527
          unsetSuccess();
14528
        } else {
14529
          setSuccess((Boolean)value);
14530
        }
14531
        break;
14532
 
14533
      case CEX:
14534
        if (value == null) {
14535
          unsetCex();
14536
        } else {
14537
          setCex((InventoryServiceException)value);
14538
        }
14539
        break;
14540
 
14541
      }
14542
    }
14543
 
14544
    public Object getFieldValue(_Fields field) {
14545
      switch (field) {
14546
      case SUCCESS:
14547
        return Boolean.valueOf(isSuccess());
14548
 
14549
      case CEX:
14550
        return getCex();
14551
 
14552
      }
14553
      throw new IllegalStateException();
14554
    }
14555
 
14556
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14557
    public boolean isSet(_Fields field) {
14558
      if (field == null) {
14559
        throw new IllegalArgumentException();
14560
      }
14561
 
14562
      switch (field) {
14563
      case SUCCESS:
14564
        return isSetSuccess();
14565
      case CEX:
14566
        return isSetCex();
14567
      }
14568
      throw new IllegalStateException();
14569
    }
14570
 
14571
    @Override
14572
    public boolean equals(Object that) {
14573
      if (that == null)
14574
        return false;
14575
      if (that instanceof reserveItemInWarehouse_result)
14576
        return this.equals((reserveItemInWarehouse_result)that);
14577
      return false;
14578
    }
14579
 
14580
    public boolean equals(reserveItemInWarehouse_result that) {
14581
      if (that == null)
14582
        return false;
14583
 
14584
      boolean this_present_success = true;
14585
      boolean that_present_success = true;
14586
      if (this_present_success || that_present_success) {
14587
        if (!(this_present_success && that_present_success))
14588
          return false;
14589
        if (this.success != that.success)
14590
          return false;
14591
      }
14592
 
14593
      boolean this_present_cex = true && this.isSetCex();
14594
      boolean that_present_cex = true && that.isSetCex();
14595
      if (this_present_cex || that_present_cex) {
14596
        if (!(this_present_cex && that_present_cex))
14597
          return false;
14598
        if (!this.cex.equals(that.cex))
14599
          return false;
14600
      }
14601
 
14602
      return true;
14603
    }
14604
 
14605
    @Override
14606
    public int hashCode() {
14607
      return 0;
14608
    }
14609
 
14610
    public int compareTo(reserveItemInWarehouse_result other) {
14611
      if (!getClass().equals(other.getClass())) {
14612
        return getClass().getName().compareTo(other.getClass().getName());
14613
      }
14614
 
14615
      int lastComparison = 0;
14616
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
14617
 
14618
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14619
      if (lastComparison != 0) {
14620
        return lastComparison;
14621
      }
14622
      if (isSetSuccess()) {
14623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14624
        if (lastComparison != 0) {
14625
          return lastComparison;
14626
        }
14627
      }
14628
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14629
      if (lastComparison != 0) {
14630
        return lastComparison;
14631
      }
14632
      if (isSetCex()) {
14633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14634
        if (lastComparison != 0) {
14635
          return lastComparison;
14636
        }
14637
      }
14638
      return 0;
14639
    }
14640
 
14641
    public _Fields fieldForId(int fieldId) {
14642
      return _Fields.findByThriftId(fieldId);
14643
    }
14644
 
14645
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14646
      org.apache.thrift.protocol.TField field;
14647
      iprot.readStructBegin();
14648
      while (true)
14649
      {
14650
        field = iprot.readFieldBegin();
14651
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14652
          break;
14653
        }
14654
        switch (field.id) {
14655
          case 0: // SUCCESS
14656
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14657
              this.success = iprot.readBool();
14658
              setSuccessIsSet(true);
14659
            } else { 
14660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14661
            }
14662
            break;
14663
          case 1: // CEX
14664
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14665
              this.cex = new InventoryServiceException();
14666
              this.cex.read(iprot);
14667
            } else { 
14668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14669
            }
14670
            break;
14671
          default:
14672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14673
        }
14674
        iprot.readFieldEnd();
14675
      }
14676
      iprot.readStructEnd();
14677
      validate();
14678
    }
14679
 
14680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14681
      oprot.writeStructBegin(STRUCT_DESC);
14682
 
14683
      if (this.isSetSuccess()) {
14684
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14685
        oprot.writeBool(this.success);
14686
        oprot.writeFieldEnd();
14687
      } else if (this.isSetCex()) {
14688
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14689
        this.cex.write(oprot);
14690
        oprot.writeFieldEnd();
14691
      }
14692
      oprot.writeFieldStop();
14693
      oprot.writeStructEnd();
14694
    }
14695
 
14696
    @Override
14697
    public String toString() {
14698
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
14699
      boolean first = true;
14700
 
14701
      sb.append("success:");
14702
      sb.append(this.success);
14703
      first = false;
14704
      if (!first) sb.append(", ");
14705
      sb.append("cex:");
14706
      if (this.cex == null) {
14707
        sb.append("null");
14708
      } else {
14709
        sb.append(this.cex);
14710
      }
14711
      first = false;
14712
      sb.append(")");
14713
      return sb.toString();
14714
    }
14715
 
14716
    public void validate() throws org.apache.thrift.TException {
14717
      // check for required fields
14718
    }
14719
 
14720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14721
      try {
14722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14723
      } catch (org.apache.thrift.TException te) {
14724
        throw new java.io.IOException(te);
14725
      }
14726
    }
14727
 
14728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14729
      try {
14730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14731
      } catch (org.apache.thrift.TException te) {
14732
        throw new java.io.IOException(te);
14733
      }
14734
    }
14735
 
14736
  }
14737
 
14738
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
14739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
14740
 
14741
    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);
14742
    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 14743
    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);
14744
    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);
14745
    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 14746
 
14747
    private long itemId; // required
14748
    private long warehouseId; // required
5967 rajveer 14749
    private long sourceId; // required
14750
    private long orderId; // required
5945 mandeep.dh 14751
    private double quantity; // required
14752
 
14753
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14754
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14755
      ITEM_ID((short)1, "itemId"),
14756
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14757
      SOURCE_ID((short)3, "sourceId"),
14758
      ORDER_ID((short)4, "orderId"),
14759
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 14760
 
14761
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14762
 
14763
      static {
14764
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14765
          byName.put(field.getFieldName(), field);
14766
        }
14767
      }
14768
 
14769
      /**
14770
       * Find the _Fields constant that matches fieldId, or null if its not found.
14771
       */
14772
      public static _Fields findByThriftId(int fieldId) {
14773
        switch(fieldId) {
14774
          case 1: // ITEM_ID
14775
            return ITEM_ID;
14776
          case 2: // WAREHOUSE_ID
14777
            return WAREHOUSE_ID;
5967 rajveer 14778
          case 3: // SOURCE_ID
14779
            return SOURCE_ID;
14780
          case 4: // ORDER_ID
14781
            return ORDER_ID;
14782
          case 5: // QUANTITY
5945 mandeep.dh 14783
            return QUANTITY;
14784
          default:
14785
            return null;
14786
        }
14787
      }
14788
 
14789
      /**
14790
       * Find the _Fields constant that matches fieldId, throwing an exception
14791
       * if it is not found.
14792
       */
14793
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14794
        _Fields fields = findByThriftId(fieldId);
14795
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14796
        return fields;
14797
      }
14798
 
14799
      /**
14800
       * Find the _Fields constant that matches name, or null if its not found.
14801
       */
14802
      public static _Fields findByName(String name) {
14803
        return byName.get(name);
14804
      }
14805
 
14806
      private final short _thriftId;
14807
      private final String _fieldName;
14808
 
14809
      _Fields(short thriftId, String fieldName) {
14810
        _thriftId = thriftId;
14811
        _fieldName = fieldName;
14812
      }
14813
 
14814
      public short getThriftFieldId() {
14815
        return _thriftId;
14816
      }
14817
 
14818
      public String getFieldName() {
14819
        return _fieldName;
14820
      }
14821
    }
14822
 
14823
    // isset id assignments
14824
    private static final int __ITEMID_ISSET_ID = 0;
14825
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14826
    private static final int __SOURCEID_ISSET_ID = 2;
14827
    private static final int __ORDERID_ISSET_ID = 3;
14828
    private static final int __QUANTITY_ISSET_ID = 4;
14829
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 14830
 
14831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14832
    static {
14833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14834
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14835
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14836
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14837
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14838
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14839
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14840
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14842
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14844
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14845
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
14846
    }
14847
 
14848
    public reduceReservationCount_args() {
14849
    }
14850
 
14851
    public reduceReservationCount_args(
14852
      long itemId,
14853
      long warehouseId,
5967 rajveer 14854
      long sourceId,
14855
      long orderId,
5945 mandeep.dh 14856
      double quantity)
14857
    {
14858
      this();
14859
      this.itemId = itemId;
14860
      setItemIdIsSet(true);
14861
      this.warehouseId = warehouseId;
14862
      setWarehouseIdIsSet(true);
5967 rajveer 14863
      this.sourceId = sourceId;
14864
      setSourceIdIsSet(true);
14865
      this.orderId = orderId;
14866
      setOrderIdIsSet(true);
5945 mandeep.dh 14867
      this.quantity = quantity;
14868
      setQuantityIsSet(true);
14869
    }
14870
 
14871
    /**
14872
     * Performs a deep copy on <i>other</i>.
14873
     */
14874
    public reduceReservationCount_args(reduceReservationCount_args other) {
14875
      __isset_bit_vector.clear();
14876
      __isset_bit_vector.or(other.__isset_bit_vector);
14877
      this.itemId = other.itemId;
14878
      this.warehouseId = other.warehouseId;
5967 rajveer 14879
      this.sourceId = other.sourceId;
14880
      this.orderId = other.orderId;
5945 mandeep.dh 14881
      this.quantity = other.quantity;
14882
    }
14883
 
14884
    public reduceReservationCount_args deepCopy() {
14885
      return new reduceReservationCount_args(this);
14886
    }
14887
 
14888
    @Override
14889
    public void clear() {
14890
      setItemIdIsSet(false);
14891
      this.itemId = 0;
14892
      setWarehouseIdIsSet(false);
14893
      this.warehouseId = 0;
5967 rajveer 14894
      setSourceIdIsSet(false);
14895
      this.sourceId = 0;
14896
      setOrderIdIsSet(false);
14897
      this.orderId = 0;
5945 mandeep.dh 14898
      setQuantityIsSet(false);
14899
      this.quantity = 0.0;
14900
    }
14901
 
14902
    public long getItemId() {
14903
      return this.itemId;
14904
    }
14905
 
14906
    public void setItemId(long itemId) {
14907
      this.itemId = itemId;
14908
      setItemIdIsSet(true);
14909
    }
14910
 
14911
    public void unsetItemId() {
14912
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14913
    }
14914
 
14915
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14916
    public boolean isSetItemId() {
14917
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14918
    }
14919
 
14920
    public void setItemIdIsSet(boolean value) {
14921
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14922
    }
14923
 
14924
    public long getWarehouseId() {
14925
      return this.warehouseId;
14926
    }
14927
 
14928
    public void setWarehouseId(long warehouseId) {
14929
      this.warehouseId = warehouseId;
14930
      setWarehouseIdIsSet(true);
14931
    }
14932
 
14933
    public void unsetWarehouseId() {
14934
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14935
    }
14936
 
14937
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14938
    public boolean isSetWarehouseId() {
14939
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14940
    }
14941
 
14942
    public void setWarehouseIdIsSet(boolean value) {
14943
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14944
    }
14945
 
5967 rajveer 14946
    public long getSourceId() {
14947
      return this.sourceId;
14948
    }
14949
 
14950
    public void setSourceId(long sourceId) {
14951
      this.sourceId = sourceId;
14952
      setSourceIdIsSet(true);
14953
    }
14954
 
14955
    public void unsetSourceId() {
14956
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14957
    }
14958
 
14959
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14960
    public boolean isSetSourceId() {
14961
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14962
    }
14963
 
14964
    public void setSourceIdIsSet(boolean value) {
14965
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14966
    }
14967
 
14968
    public long getOrderId() {
14969
      return this.orderId;
14970
    }
14971
 
14972
    public void setOrderId(long orderId) {
14973
      this.orderId = orderId;
14974
      setOrderIdIsSet(true);
14975
    }
14976
 
14977
    public void unsetOrderId() {
14978
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14979
    }
14980
 
14981
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14982
    public boolean isSetOrderId() {
14983
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14984
    }
14985
 
14986
    public void setOrderIdIsSet(boolean value) {
14987
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14988
    }
14989
 
5945 mandeep.dh 14990
    public double getQuantity() {
14991
      return this.quantity;
14992
    }
14993
 
14994
    public void setQuantity(double quantity) {
14995
      this.quantity = quantity;
14996
      setQuantityIsSet(true);
14997
    }
14998
 
14999
    public void unsetQuantity() {
15000
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
15001
    }
15002
 
15003
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
15004
    public boolean isSetQuantity() {
15005
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
15006
    }
15007
 
15008
    public void setQuantityIsSet(boolean value) {
15009
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
15010
    }
15011
 
15012
    public void setFieldValue(_Fields field, Object value) {
15013
      switch (field) {
15014
      case ITEM_ID:
15015
        if (value == null) {
15016
          unsetItemId();
15017
        } else {
15018
          setItemId((Long)value);
15019
        }
15020
        break;
15021
 
15022
      case WAREHOUSE_ID:
15023
        if (value == null) {
15024
          unsetWarehouseId();
15025
        } else {
15026
          setWarehouseId((Long)value);
15027
        }
15028
        break;
15029
 
5967 rajveer 15030
      case SOURCE_ID:
15031
        if (value == null) {
15032
          unsetSourceId();
15033
        } else {
15034
          setSourceId((Long)value);
15035
        }
15036
        break;
15037
 
15038
      case ORDER_ID:
15039
        if (value == null) {
15040
          unsetOrderId();
15041
        } else {
15042
          setOrderId((Long)value);
15043
        }
15044
        break;
15045
 
5945 mandeep.dh 15046
      case QUANTITY:
15047
        if (value == null) {
15048
          unsetQuantity();
15049
        } else {
15050
          setQuantity((Double)value);
15051
        }
15052
        break;
15053
 
15054
      }
15055
    }
15056
 
15057
    public Object getFieldValue(_Fields field) {
15058
      switch (field) {
15059
      case ITEM_ID:
15060
        return Long.valueOf(getItemId());
15061
 
15062
      case WAREHOUSE_ID:
15063
        return Long.valueOf(getWarehouseId());
15064
 
5967 rajveer 15065
      case SOURCE_ID:
15066
        return Long.valueOf(getSourceId());
15067
 
15068
      case ORDER_ID:
15069
        return Long.valueOf(getOrderId());
15070
 
5945 mandeep.dh 15071
      case QUANTITY:
15072
        return Double.valueOf(getQuantity());
15073
 
15074
      }
15075
      throw new IllegalStateException();
15076
    }
15077
 
15078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15079
    public boolean isSet(_Fields field) {
15080
      if (field == null) {
15081
        throw new IllegalArgumentException();
15082
      }
15083
 
15084
      switch (field) {
15085
      case ITEM_ID:
15086
        return isSetItemId();
15087
      case WAREHOUSE_ID:
15088
        return isSetWarehouseId();
5967 rajveer 15089
      case SOURCE_ID:
15090
        return isSetSourceId();
15091
      case ORDER_ID:
15092
        return isSetOrderId();
5945 mandeep.dh 15093
      case QUANTITY:
15094
        return isSetQuantity();
15095
      }
15096
      throw new IllegalStateException();
15097
    }
15098
 
15099
    @Override
15100
    public boolean equals(Object that) {
15101
      if (that == null)
15102
        return false;
15103
      if (that instanceof reduceReservationCount_args)
15104
        return this.equals((reduceReservationCount_args)that);
15105
      return false;
15106
    }
15107
 
15108
    public boolean equals(reduceReservationCount_args that) {
15109
      if (that == null)
15110
        return false;
15111
 
15112
      boolean this_present_itemId = true;
15113
      boolean that_present_itemId = true;
15114
      if (this_present_itemId || that_present_itemId) {
15115
        if (!(this_present_itemId && that_present_itemId))
15116
          return false;
15117
        if (this.itemId != that.itemId)
15118
          return false;
15119
      }
15120
 
15121
      boolean this_present_warehouseId = true;
15122
      boolean that_present_warehouseId = true;
15123
      if (this_present_warehouseId || that_present_warehouseId) {
15124
        if (!(this_present_warehouseId && that_present_warehouseId))
15125
          return false;
15126
        if (this.warehouseId != that.warehouseId)
15127
          return false;
15128
      }
15129
 
5967 rajveer 15130
      boolean this_present_sourceId = true;
15131
      boolean that_present_sourceId = true;
15132
      if (this_present_sourceId || that_present_sourceId) {
15133
        if (!(this_present_sourceId && that_present_sourceId))
15134
          return false;
15135
        if (this.sourceId != that.sourceId)
15136
          return false;
15137
      }
15138
 
15139
      boolean this_present_orderId = true;
15140
      boolean that_present_orderId = true;
15141
      if (this_present_orderId || that_present_orderId) {
15142
        if (!(this_present_orderId && that_present_orderId))
15143
          return false;
15144
        if (this.orderId != that.orderId)
15145
          return false;
15146
      }
15147
 
5945 mandeep.dh 15148
      boolean this_present_quantity = true;
15149
      boolean that_present_quantity = true;
15150
      if (this_present_quantity || that_present_quantity) {
15151
        if (!(this_present_quantity && that_present_quantity))
15152
          return false;
15153
        if (this.quantity != that.quantity)
15154
          return false;
15155
      }
15156
 
15157
      return true;
15158
    }
15159
 
15160
    @Override
15161
    public int hashCode() {
15162
      return 0;
15163
    }
15164
 
15165
    public int compareTo(reduceReservationCount_args other) {
15166
      if (!getClass().equals(other.getClass())) {
15167
        return getClass().getName().compareTo(other.getClass().getName());
15168
      }
15169
 
15170
      int lastComparison = 0;
15171
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
15172
 
15173
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15174
      if (lastComparison != 0) {
15175
        return lastComparison;
15176
      }
15177
      if (isSetItemId()) {
15178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15179
        if (lastComparison != 0) {
15180
          return lastComparison;
15181
        }
15182
      }
15183
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
15184
      if (lastComparison != 0) {
15185
        return lastComparison;
15186
      }
15187
      if (isSetWarehouseId()) {
15188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15189
        if (lastComparison != 0) {
15190
          return lastComparison;
15191
        }
15192
      }
5967 rajveer 15193
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
15194
      if (lastComparison != 0) {
15195
        return lastComparison;
15196
      }
15197
      if (isSetSourceId()) {
15198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
15199
        if (lastComparison != 0) {
15200
          return lastComparison;
15201
        }
15202
      }
15203
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
15204
      if (lastComparison != 0) {
15205
        return lastComparison;
15206
      }
15207
      if (isSetOrderId()) {
15208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15209
        if (lastComparison != 0) {
15210
          return lastComparison;
15211
        }
15212
      }
5945 mandeep.dh 15213
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
15214
      if (lastComparison != 0) {
15215
        return lastComparison;
15216
      }
15217
      if (isSetQuantity()) {
15218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
15219
        if (lastComparison != 0) {
15220
          return lastComparison;
15221
        }
15222
      }
15223
      return 0;
15224
    }
15225
 
15226
    public _Fields fieldForId(int fieldId) {
15227
      return _Fields.findByThriftId(fieldId);
15228
    }
15229
 
15230
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15231
      org.apache.thrift.protocol.TField field;
15232
      iprot.readStructBegin();
15233
      while (true)
15234
      {
15235
        field = iprot.readFieldBegin();
15236
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15237
          break;
15238
        }
15239
        switch (field.id) {
15240
          case 1: // ITEM_ID
15241
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15242
              this.itemId = iprot.readI64();
15243
              setItemIdIsSet(true);
15244
            } else { 
15245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15246
            }
15247
            break;
15248
          case 2: // WAREHOUSE_ID
15249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15250
              this.warehouseId = iprot.readI64();
15251
              setWarehouseIdIsSet(true);
15252
            } else { 
15253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15254
            }
15255
            break;
5967 rajveer 15256
          case 3: // SOURCE_ID
15257
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15258
              this.sourceId = iprot.readI64();
15259
              setSourceIdIsSet(true);
15260
            } else { 
15261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15262
            }
15263
            break;
15264
          case 4: // ORDER_ID
15265
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15266
              this.orderId = iprot.readI64();
15267
              setOrderIdIsSet(true);
15268
            } else { 
15269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15270
            }
15271
            break;
15272
          case 5: // QUANTITY
5945 mandeep.dh 15273
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15274
              this.quantity = iprot.readDouble();
15275
              setQuantityIsSet(true);
15276
            } else { 
15277
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15278
            }
15279
            break;
15280
          default:
15281
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15282
        }
15283
        iprot.readFieldEnd();
15284
      }
15285
      iprot.readStructEnd();
15286
      validate();
15287
    }
15288
 
15289
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15290
      validate();
15291
 
15292
      oprot.writeStructBegin(STRUCT_DESC);
15293
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15294
      oprot.writeI64(this.itemId);
15295
      oprot.writeFieldEnd();
15296
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15297
      oprot.writeI64(this.warehouseId);
15298
      oprot.writeFieldEnd();
5967 rajveer 15299
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15300
      oprot.writeI64(this.sourceId);
15301
      oprot.writeFieldEnd();
15302
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15303
      oprot.writeI64(this.orderId);
15304
      oprot.writeFieldEnd();
5945 mandeep.dh 15305
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
15306
      oprot.writeDouble(this.quantity);
15307
      oprot.writeFieldEnd();
15308
      oprot.writeFieldStop();
15309
      oprot.writeStructEnd();
15310
    }
15311
 
15312
    @Override
15313
    public String toString() {
15314
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
15315
      boolean first = true;
15316
 
15317
      sb.append("itemId:");
15318
      sb.append(this.itemId);
15319
      first = false;
15320
      if (!first) sb.append(", ");
15321
      sb.append("warehouseId:");
15322
      sb.append(this.warehouseId);
15323
      first = false;
15324
      if (!first) sb.append(", ");
5967 rajveer 15325
      sb.append("sourceId:");
15326
      sb.append(this.sourceId);
15327
      first = false;
15328
      if (!first) sb.append(", ");
15329
      sb.append("orderId:");
15330
      sb.append(this.orderId);
15331
      first = false;
15332
      if (!first) sb.append(", ");
5945 mandeep.dh 15333
      sb.append("quantity:");
15334
      sb.append(this.quantity);
15335
      first = false;
15336
      sb.append(")");
15337
      return sb.toString();
15338
    }
15339
 
15340
    public void validate() throws org.apache.thrift.TException {
15341
      // check for required fields
15342
    }
15343
 
15344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15345
      try {
15346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15347
      } catch (org.apache.thrift.TException te) {
15348
        throw new java.io.IOException(te);
15349
      }
15350
    }
15351
 
15352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15353
      try {
15354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15355
      } catch (org.apache.thrift.TException te) {
15356
        throw new java.io.IOException(te);
15357
      }
15358
    }
15359
 
15360
  }
15361
 
15362
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
15363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
15364
 
15365
    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);
15366
    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);
15367
 
15368
    private boolean success; // required
15369
    private InventoryServiceException cex; // required
15370
 
15371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15373
      SUCCESS((short)0, "success"),
15374
      CEX((short)1, "cex");
15375
 
15376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15377
 
15378
      static {
15379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15380
          byName.put(field.getFieldName(), field);
15381
        }
15382
      }
15383
 
15384
      /**
15385
       * Find the _Fields constant that matches fieldId, or null if its not found.
15386
       */
15387
      public static _Fields findByThriftId(int fieldId) {
15388
        switch(fieldId) {
15389
          case 0: // SUCCESS
15390
            return SUCCESS;
15391
          case 1: // CEX
15392
            return CEX;
15393
          default:
15394
            return null;
15395
        }
15396
      }
15397
 
15398
      /**
15399
       * Find the _Fields constant that matches fieldId, throwing an exception
15400
       * if it is not found.
15401
       */
15402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15403
        _Fields fields = findByThriftId(fieldId);
15404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15405
        return fields;
15406
      }
15407
 
15408
      /**
15409
       * Find the _Fields constant that matches name, or null if its not found.
15410
       */
15411
      public static _Fields findByName(String name) {
15412
        return byName.get(name);
15413
      }
15414
 
15415
      private final short _thriftId;
15416
      private final String _fieldName;
15417
 
15418
      _Fields(short thriftId, String fieldName) {
15419
        _thriftId = thriftId;
15420
        _fieldName = fieldName;
15421
      }
15422
 
15423
      public short getThriftFieldId() {
15424
        return _thriftId;
15425
      }
15426
 
15427
      public String getFieldName() {
15428
        return _fieldName;
15429
      }
15430
    }
15431
 
15432
    // isset id assignments
15433
    private static final int __SUCCESS_ISSET_ID = 0;
15434
    private BitSet __isset_bit_vector = new BitSet(1);
15435
 
15436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15437
    static {
15438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15439
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15441
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
15445
    }
15446
 
15447
    public reduceReservationCount_result() {
15448
    }
15449
 
15450
    public reduceReservationCount_result(
15451
      boolean success,
15452
      InventoryServiceException cex)
15453
    {
15454
      this();
15455
      this.success = success;
15456
      setSuccessIsSet(true);
15457
      this.cex = cex;
15458
    }
15459
 
15460
    /**
15461
     * Performs a deep copy on <i>other</i>.
15462
     */
15463
    public reduceReservationCount_result(reduceReservationCount_result other) {
15464
      __isset_bit_vector.clear();
15465
      __isset_bit_vector.or(other.__isset_bit_vector);
15466
      this.success = other.success;
15467
      if (other.isSetCex()) {
15468
        this.cex = new InventoryServiceException(other.cex);
15469
      }
15470
    }
15471
 
15472
    public reduceReservationCount_result deepCopy() {
15473
      return new reduceReservationCount_result(this);
15474
    }
15475
 
15476
    @Override
15477
    public void clear() {
15478
      setSuccessIsSet(false);
15479
      this.success = false;
15480
      this.cex = null;
15481
    }
15482
 
15483
    public boolean isSuccess() {
15484
      return this.success;
15485
    }
15486
 
15487
    public void setSuccess(boolean success) {
15488
      this.success = success;
15489
      setSuccessIsSet(true);
15490
    }
15491
 
15492
    public void unsetSuccess() {
15493
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15494
    }
15495
 
15496
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15497
    public boolean isSetSuccess() {
15498
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15499
    }
15500
 
15501
    public void setSuccessIsSet(boolean value) {
15502
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15503
    }
15504
 
15505
    public InventoryServiceException getCex() {
15506
      return this.cex;
15507
    }
15508
 
15509
    public void setCex(InventoryServiceException cex) {
15510
      this.cex = cex;
15511
    }
15512
 
15513
    public void unsetCex() {
15514
      this.cex = null;
15515
    }
15516
 
15517
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15518
    public boolean isSetCex() {
15519
      return this.cex != null;
15520
    }
15521
 
15522
    public void setCexIsSet(boolean value) {
15523
      if (!value) {
15524
        this.cex = null;
15525
      }
15526
    }
15527
 
15528
    public void setFieldValue(_Fields field, Object value) {
15529
      switch (field) {
15530
      case SUCCESS:
15531
        if (value == null) {
15532
          unsetSuccess();
15533
        } else {
15534
          setSuccess((Boolean)value);
15535
        }
15536
        break;
15537
 
15538
      case CEX:
15539
        if (value == null) {
15540
          unsetCex();
15541
        } else {
15542
          setCex((InventoryServiceException)value);
15543
        }
15544
        break;
15545
 
15546
      }
15547
    }
15548
 
15549
    public Object getFieldValue(_Fields field) {
15550
      switch (field) {
15551
      case SUCCESS:
15552
        return Boolean.valueOf(isSuccess());
15553
 
15554
      case CEX:
15555
        return getCex();
15556
 
15557
      }
15558
      throw new IllegalStateException();
15559
    }
15560
 
15561
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15562
    public boolean isSet(_Fields field) {
15563
      if (field == null) {
15564
        throw new IllegalArgumentException();
15565
      }
15566
 
15567
      switch (field) {
15568
      case SUCCESS:
15569
        return isSetSuccess();
15570
      case CEX:
15571
        return isSetCex();
15572
      }
15573
      throw new IllegalStateException();
15574
    }
15575
 
15576
    @Override
15577
    public boolean equals(Object that) {
15578
      if (that == null)
15579
        return false;
15580
      if (that instanceof reduceReservationCount_result)
15581
        return this.equals((reduceReservationCount_result)that);
15582
      return false;
15583
    }
15584
 
15585
    public boolean equals(reduceReservationCount_result that) {
15586
      if (that == null)
15587
        return false;
15588
 
15589
      boolean this_present_success = true;
15590
      boolean that_present_success = true;
15591
      if (this_present_success || that_present_success) {
15592
        if (!(this_present_success && that_present_success))
15593
          return false;
15594
        if (this.success != that.success)
15595
          return false;
15596
      }
15597
 
15598
      boolean this_present_cex = true && this.isSetCex();
15599
      boolean that_present_cex = true && that.isSetCex();
15600
      if (this_present_cex || that_present_cex) {
15601
        if (!(this_present_cex && that_present_cex))
15602
          return false;
15603
        if (!this.cex.equals(that.cex))
15604
          return false;
15605
      }
15606
 
15607
      return true;
15608
    }
15609
 
15610
    @Override
15611
    public int hashCode() {
15612
      return 0;
15613
    }
15614
 
15615
    public int compareTo(reduceReservationCount_result other) {
15616
      if (!getClass().equals(other.getClass())) {
15617
        return getClass().getName().compareTo(other.getClass().getName());
15618
      }
15619
 
15620
      int lastComparison = 0;
15621
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
15622
 
15623
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15624
      if (lastComparison != 0) {
15625
        return lastComparison;
15626
      }
15627
      if (isSetSuccess()) {
15628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15629
        if (lastComparison != 0) {
15630
          return lastComparison;
15631
        }
15632
      }
15633
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15634
      if (lastComparison != 0) {
15635
        return lastComparison;
15636
      }
15637
      if (isSetCex()) {
15638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15639
        if (lastComparison != 0) {
15640
          return lastComparison;
15641
        }
15642
      }
15643
      return 0;
15644
    }
15645
 
15646
    public _Fields fieldForId(int fieldId) {
15647
      return _Fields.findByThriftId(fieldId);
15648
    }
15649
 
15650
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15651
      org.apache.thrift.protocol.TField field;
15652
      iprot.readStructBegin();
15653
      while (true)
15654
      {
15655
        field = iprot.readFieldBegin();
15656
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15657
          break;
15658
        }
15659
        switch (field.id) {
15660
          case 0: // SUCCESS
15661
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15662
              this.success = iprot.readBool();
15663
              setSuccessIsSet(true);
15664
            } else { 
15665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15666
            }
15667
            break;
15668
          case 1: // CEX
15669
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15670
              this.cex = new InventoryServiceException();
15671
              this.cex.read(iprot);
15672
            } else { 
15673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15674
            }
15675
            break;
15676
          default:
15677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15678
        }
15679
        iprot.readFieldEnd();
15680
      }
15681
      iprot.readStructEnd();
15682
      validate();
15683
    }
15684
 
15685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15686
      oprot.writeStructBegin(STRUCT_DESC);
15687
 
15688
      if (this.isSetSuccess()) {
15689
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15690
        oprot.writeBool(this.success);
15691
        oprot.writeFieldEnd();
15692
      } else if (this.isSetCex()) {
15693
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15694
        this.cex.write(oprot);
15695
        oprot.writeFieldEnd();
15696
      }
15697
      oprot.writeFieldStop();
15698
      oprot.writeStructEnd();
15699
    }
15700
 
15701
    @Override
15702
    public String toString() {
15703
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
15704
      boolean first = true;
15705
 
15706
      sb.append("success:");
15707
      sb.append(this.success);
15708
      first = false;
15709
      if (!first) sb.append(", ");
15710
      sb.append("cex:");
15711
      if (this.cex == null) {
15712
        sb.append("null");
15713
      } else {
15714
        sb.append(this.cex);
15715
      }
15716
      first = false;
15717
      sb.append(")");
15718
      return sb.toString();
15719
    }
15720
 
15721
    public void validate() throws org.apache.thrift.TException {
15722
      // check for required fields
15723
    }
15724
 
15725
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15726
      try {
15727
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15728
      } catch (org.apache.thrift.TException te) {
15729
        throw new java.io.IOException(te);
15730
      }
15731
    }
15732
 
15733
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15734
      try {
15735
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15736
      } catch (org.apache.thrift.TException te) {
15737
        throw new java.io.IOException(te);
15738
      }
15739
    }
15740
 
15741
  }
15742
 
15743
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15744
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
15745
 
15746
    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);
15747
    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);
15748
 
15749
    private long itemId; // required
15750
    private long vendorId; // required
15751
 
15752
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15753
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15754
      ITEM_ID((short)1, "itemId"),
15755
      VENDOR_ID((short)2, "vendorId");
15756
 
15757
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15758
 
15759
      static {
15760
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15761
          byName.put(field.getFieldName(), field);
15762
        }
15763
      }
15764
 
15765
      /**
15766
       * Find the _Fields constant that matches fieldId, or null if its not found.
15767
       */
15768
      public static _Fields findByThriftId(int fieldId) {
15769
        switch(fieldId) {
15770
          case 1: // ITEM_ID
15771
            return ITEM_ID;
15772
          case 2: // VENDOR_ID
15773
            return VENDOR_ID;
15774
          default:
15775
            return null;
15776
        }
15777
      }
15778
 
15779
      /**
15780
       * Find the _Fields constant that matches fieldId, throwing an exception
15781
       * if it is not found.
15782
       */
15783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15784
        _Fields fields = findByThriftId(fieldId);
15785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15786
        return fields;
15787
      }
15788
 
15789
      /**
15790
       * Find the _Fields constant that matches name, or null if its not found.
15791
       */
15792
      public static _Fields findByName(String name) {
15793
        return byName.get(name);
15794
      }
15795
 
15796
      private final short _thriftId;
15797
      private final String _fieldName;
15798
 
15799
      _Fields(short thriftId, String fieldName) {
15800
        _thriftId = thriftId;
15801
        _fieldName = fieldName;
15802
      }
15803
 
15804
      public short getThriftFieldId() {
15805
        return _thriftId;
15806
      }
15807
 
15808
      public String getFieldName() {
15809
        return _fieldName;
15810
      }
15811
    }
15812
 
15813
    // isset id assignments
15814
    private static final int __ITEMID_ISSET_ID = 0;
15815
    private static final int __VENDORID_ISSET_ID = 1;
15816
    private BitSet __isset_bit_vector = new BitSet(2);
15817
 
15818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15819
    static {
15820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15821
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15823
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15825
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15826
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
15827
    }
15828
 
15829
    public getItemPricing_args() {
15830
    }
15831
 
15832
    public getItemPricing_args(
15833
      long itemId,
15834
      long vendorId)
15835
    {
15836
      this();
15837
      this.itemId = itemId;
15838
      setItemIdIsSet(true);
15839
      this.vendorId = vendorId;
15840
      setVendorIdIsSet(true);
15841
    }
15842
 
15843
    /**
15844
     * Performs a deep copy on <i>other</i>.
15845
     */
15846
    public getItemPricing_args(getItemPricing_args other) {
15847
      __isset_bit_vector.clear();
15848
      __isset_bit_vector.or(other.__isset_bit_vector);
15849
      this.itemId = other.itemId;
15850
      this.vendorId = other.vendorId;
15851
    }
15852
 
15853
    public getItemPricing_args deepCopy() {
15854
      return new getItemPricing_args(this);
15855
    }
15856
 
15857
    @Override
15858
    public void clear() {
15859
      setItemIdIsSet(false);
15860
      this.itemId = 0;
15861
      setVendorIdIsSet(false);
15862
      this.vendorId = 0;
15863
    }
15864
 
15865
    public long getItemId() {
15866
      return this.itemId;
15867
    }
15868
 
15869
    public void setItemId(long itemId) {
15870
      this.itemId = itemId;
15871
      setItemIdIsSet(true);
15872
    }
15873
 
15874
    public void unsetItemId() {
15875
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15876
    }
15877
 
15878
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15879
    public boolean isSetItemId() {
15880
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15881
    }
15882
 
15883
    public void setItemIdIsSet(boolean value) {
15884
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15885
    }
15886
 
15887
    public long getVendorId() {
15888
      return this.vendorId;
15889
    }
15890
 
15891
    public void setVendorId(long vendorId) {
15892
      this.vendorId = vendorId;
15893
      setVendorIdIsSet(true);
15894
    }
15895
 
15896
    public void unsetVendorId() {
15897
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
15898
    }
15899
 
15900
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
15901
    public boolean isSetVendorId() {
15902
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
15903
    }
15904
 
15905
    public void setVendorIdIsSet(boolean value) {
15906
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
15907
    }
15908
 
15909
    public void setFieldValue(_Fields field, Object value) {
15910
      switch (field) {
15911
      case ITEM_ID:
15912
        if (value == null) {
15913
          unsetItemId();
15914
        } else {
15915
          setItemId((Long)value);
15916
        }
15917
        break;
15918
 
15919
      case VENDOR_ID:
15920
        if (value == null) {
15921
          unsetVendorId();
15922
        } else {
15923
          setVendorId((Long)value);
15924
        }
15925
        break;
15926
 
15927
      }
15928
    }
15929
 
15930
    public Object getFieldValue(_Fields field) {
15931
      switch (field) {
15932
      case ITEM_ID:
15933
        return Long.valueOf(getItemId());
15934
 
15935
      case VENDOR_ID:
15936
        return Long.valueOf(getVendorId());
15937
 
15938
      }
15939
      throw new IllegalStateException();
15940
    }
15941
 
15942
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15943
    public boolean isSet(_Fields field) {
15944
      if (field == null) {
15945
        throw new IllegalArgumentException();
15946
      }
15947
 
15948
      switch (field) {
15949
      case ITEM_ID:
15950
        return isSetItemId();
15951
      case VENDOR_ID:
15952
        return isSetVendorId();
15953
      }
15954
      throw new IllegalStateException();
15955
    }
15956
 
15957
    @Override
15958
    public boolean equals(Object that) {
15959
      if (that == null)
15960
        return false;
15961
      if (that instanceof getItemPricing_args)
15962
        return this.equals((getItemPricing_args)that);
15963
      return false;
15964
    }
15965
 
15966
    public boolean equals(getItemPricing_args that) {
15967
      if (that == null)
15968
        return false;
15969
 
15970
      boolean this_present_itemId = true;
15971
      boolean that_present_itemId = true;
15972
      if (this_present_itemId || that_present_itemId) {
15973
        if (!(this_present_itemId && that_present_itemId))
15974
          return false;
15975
        if (this.itemId != that.itemId)
15976
          return false;
15977
      }
15978
 
15979
      boolean this_present_vendorId = true;
15980
      boolean that_present_vendorId = true;
15981
      if (this_present_vendorId || that_present_vendorId) {
15982
        if (!(this_present_vendorId && that_present_vendorId))
15983
          return false;
15984
        if (this.vendorId != that.vendorId)
15985
          return false;
15986
      }
15987
 
15988
      return true;
15989
    }
15990
 
15991
    @Override
15992
    public int hashCode() {
15993
      return 0;
15994
    }
15995
 
15996
    public int compareTo(getItemPricing_args other) {
15997
      if (!getClass().equals(other.getClass())) {
15998
        return getClass().getName().compareTo(other.getClass().getName());
15999
      }
16000
 
16001
      int lastComparison = 0;
16002
      getItemPricing_args typedOther = (getItemPricing_args)other;
16003
 
16004
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16005
      if (lastComparison != 0) {
16006
        return lastComparison;
16007
      }
16008
      if (isSetItemId()) {
16009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16010
        if (lastComparison != 0) {
16011
          return lastComparison;
16012
        }
16013
      }
16014
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16015
      if (lastComparison != 0) {
16016
        return lastComparison;
16017
      }
16018
      if (isSetVendorId()) {
16019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16020
        if (lastComparison != 0) {
16021
          return lastComparison;
16022
        }
16023
      }
16024
      return 0;
16025
    }
16026
 
16027
    public _Fields fieldForId(int fieldId) {
16028
      return _Fields.findByThriftId(fieldId);
16029
    }
16030
 
16031
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16032
      org.apache.thrift.protocol.TField field;
16033
      iprot.readStructBegin();
16034
      while (true)
16035
      {
16036
        field = iprot.readFieldBegin();
16037
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16038
          break;
16039
        }
16040
        switch (field.id) {
16041
          case 1: // ITEM_ID
16042
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16043
              this.itemId = iprot.readI64();
16044
              setItemIdIsSet(true);
16045
            } else { 
16046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16047
            }
16048
            break;
16049
          case 2: // VENDOR_ID
16050
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16051
              this.vendorId = iprot.readI64();
16052
              setVendorIdIsSet(true);
16053
            } else { 
16054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16055
            }
16056
            break;
16057
          default:
16058
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16059
        }
16060
        iprot.readFieldEnd();
16061
      }
16062
      iprot.readStructEnd();
16063
      validate();
16064
    }
16065
 
16066
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16067
      validate();
16068
 
16069
      oprot.writeStructBegin(STRUCT_DESC);
16070
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16071
      oprot.writeI64(this.itemId);
16072
      oprot.writeFieldEnd();
16073
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16074
      oprot.writeI64(this.vendorId);
16075
      oprot.writeFieldEnd();
16076
      oprot.writeFieldStop();
16077
      oprot.writeStructEnd();
16078
    }
16079
 
16080
    @Override
16081
    public String toString() {
16082
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
16083
      boolean first = true;
16084
 
16085
      sb.append("itemId:");
16086
      sb.append(this.itemId);
16087
      first = false;
16088
      if (!first) sb.append(", ");
16089
      sb.append("vendorId:");
16090
      sb.append(this.vendorId);
16091
      first = false;
16092
      sb.append(")");
16093
      return sb.toString();
16094
    }
16095
 
16096
    public void validate() throws org.apache.thrift.TException {
16097
      // check for required fields
16098
    }
16099
 
16100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16101
      try {
16102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16103
      } catch (org.apache.thrift.TException te) {
16104
        throw new java.io.IOException(te);
16105
      }
16106
    }
16107
 
16108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16109
      try {
16110
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16111
      } catch (org.apache.thrift.TException te) {
16112
        throw new java.io.IOException(te);
16113
      }
16114
    }
16115
 
16116
  }
16117
 
16118
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16119
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
16120
 
16121
    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);
16122
    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);
16123
 
16124
    private VendorItemPricing success; // required
16125
    private InventoryServiceException cex; // required
16126
 
16127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16129
      SUCCESS((short)0, "success"),
16130
      CEX((short)1, "cex");
16131
 
16132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16133
 
16134
      static {
16135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16136
          byName.put(field.getFieldName(), field);
16137
        }
16138
      }
16139
 
16140
      /**
16141
       * Find the _Fields constant that matches fieldId, or null if its not found.
16142
       */
16143
      public static _Fields findByThriftId(int fieldId) {
16144
        switch(fieldId) {
16145
          case 0: // SUCCESS
16146
            return SUCCESS;
16147
          case 1: // CEX
16148
            return CEX;
16149
          default:
16150
            return null;
16151
        }
16152
      }
16153
 
16154
      /**
16155
       * Find the _Fields constant that matches fieldId, throwing an exception
16156
       * if it is not found.
16157
       */
16158
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16159
        _Fields fields = findByThriftId(fieldId);
16160
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16161
        return fields;
16162
      }
16163
 
16164
      /**
16165
       * Find the _Fields constant that matches name, or null if its not found.
16166
       */
16167
      public static _Fields findByName(String name) {
16168
        return byName.get(name);
16169
      }
16170
 
16171
      private final short _thriftId;
16172
      private final String _fieldName;
16173
 
16174
      _Fields(short thriftId, String fieldName) {
16175
        _thriftId = thriftId;
16176
        _fieldName = fieldName;
16177
      }
16178
 
16179
      public short getThriftFieldId() {
16180
        return _thriftId;
16181
      }
16182
 
16183
      public String getFieldName() {
16184
        return _fieldName;
16185
      }
16186
    }
16187
 
16188
    // isset id assignments
16189
 
16190
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16191
    static {
16192
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16193
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16194
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
16195
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
16199
    }
16200
 
16201
    public getItemPricing_result() {
16202
    }
16203
 
16204
    public getItemPricing_result(
16205
      VendorItemPricing success,
16206
      InventoryServiceException cex)
16207
    {
16208
      this();
16209
      this.success = success;
16210
      this.cex = cex;
16211
    }
16212
 
16213
    /**
16214
     * Performs a deep copy on <i>other</i>.
16215
     */
16216
    public getItemPricing_result(getItemPricing_result other) {
16217
      if (other.isSetSuccess()) {
16218
        this.success = new VendorItemPricing(other.success);
16219
      }
16220
      if (other.isSetCex()) {
16221
        this.cex = new InventoryServiceException(other.cex);
16222
      }
16223
    }
16224
 
16225
    public getItemPricing_result deepCopy() {
16226
      return new getItemPricing_result(this);
16227
    }
16228
 
16229
    @Override
16230
    public void clear() {
16231
      this.success = null;
16232
      this.cex = null;
16233
    }
16234
 
16235
    public VendorItemPricing getSuccess() {
16236
      return this.success;
16237
    }
16238
 
16239
    public void setSuccess(VendorItemPricing success) {
16240
      this.success = success;
16241
    }
16242
 
16243
    public void unsetSuccess() {
16244
      this.success = null;
16245
    }
16246
 
16247
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16248
    public boolean isSetSuccess() {
16249
      return this.success != null;
16250
    }
16251
 
16252
    public void setSuccessIsSet(boolean value) {
16253
      if (!value) {
16254
        this.success = null;
16255
      }
16256
    }
16257
 
16258
    public InventoryServiceException getCex() {
16259
      return this.cex;
16260
    }
16261
 
16262
    public void setCex(InventoryServiceException cex) {
16263
      this.cex = cex;
16264
    }
16265
 
16266
    public void unsetCex() {
16267
      this.cex = null;
16268
    }
16269
 
16270
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16271
    public boolean isSetCex() {
16272
      return this.cex != null;
16273
    }
16274
 
16275
    public void setCexIsSet(boolean value) {
16276
      if (!value) {
16277
        this.cex = null;
16278
      }
16279
    }
16280
 
16281
    public void setFieldValue(_Fields field, Object value) {
16282
      switch (field) {
16283
      case SUCCESS:
16284
        if (value == null) {
16285
          unsetSuccess();
16286
        } else {
16287
          setSuccess((VendorItemPricing)value);
16288
        }
16289
        break;
16290
 
16291
      case CEX:
16292
        if (value == null) {
16293
          unsetCex();
16294
        } else {
16295
          setCex((InventoryServiceException)value);
16296
        }
16297
        break;
16298
 
16299
      }
16300
    }
16301
 
16302
    public Object getFieldValue(_Fields field) {
16303
      switch (field) {
16304
      case SUCCESS:
16305
        return getSuccess();
16306
 
16307
      case CEX:
16308
        return getCex();
16309
 
16310
      }
16311
      throw new IllegalStateException();
16312
    }
16313
 
16314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16315
    public boolean isSet(_Fields field) {
16316
      if (field == null) {
16317
        throw new IllegalArgumentException();
16318
      }
16319
 
16320
      switch (field) {
16321
      case SUCCESS:
16322
        return isSetSuccess();
16323
      case CEX:
16324
        return isSetCex();
16325
      }
16326
      throw new IllegalStateException();
16327
    }
16328
 
16329
    @Override
16330
    public boolean equals(Object that) {
16331
      if (that == null)
16332
        return false;
16333
      if (that instanceof getItemPricing_result)
16334
        return this.equals((getItemPricing_result)that);
16335
      return false;
16336
    }
16337
 
16338
    public boolean equals(getItemPricing_result that) {
16339
      if (that == null)
16340
        return false;
16341
 
16342
      boolean this_present_success = true && this.isSetSuccess();
16343
      boolean that_present_success = true && that.isSetSuccess();
16344
      if (this_present_success || that_present_success) {
16345
        if (!(this_present_success && that_present_success))
16346
          return false;
16347
        if (!this.success.equals(that.success))
16348
          return false;
16349
      }
16350
 
16351
      boolean this_present_cex = true && this.isSetCex();
16352
      boolean that_present_cex = true && that.isSetCex();
16353
      if (this_present_cex || that_present_cex) {
16354
        if (!(this_present_cex && that_present_cex))
16355
          return false;
16356
        if (!this.cex.equals(that.cex))
16357
          return false;
16358
      }
16359
 
16360
      return true;
16361
    }
16362
 
16363
    @Override
16364
    public int hashCode() {
16365
      return 0;
16366
    }
16367
 
16368
    public int compareTo(getItemPricing_result other) {
16369
      if (!getClass().equals(other.getClass())) {
16370
        return getClass().getName().compareTo(other.getClass().getName());
16371
      }
16372
 
16373
      int lastComparison = 0;
16374
      getItemPricing_result typedOther = (getItemPricing_result)other;
16375
 
16376
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16377
      if (lastComparison != 0) {
16378
        return lastComparison;
16379
      }
16380
      if (isSetSuccess()) {
16381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16382
        if (lastComparison != 0) {
16383
          return lastComparison;
16384
        }
16385
      }
16386
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16387
      if (lastComparison != 0) {
16388
        return lastComparison;
16389
      }
16390
      if (isSetCex()) {
16391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16392
        if (lastComparison != 0) {
16393
          return lastComparison;
16394
        }
16395
      }
16396
      return 0;
16397
    }
16398
 
16399
    public _Fields fieldForId(int fieldId) {
16400
      return _Fields.findByThriftId(fieldId);
16401
    }
16402
 
16403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16404
      org.apache.thrift.protocol.TField field;
16405
      iprot.readStructBegin();
16406
      while (true)
16407
      {
16408
        field = iprot.readFieldBegin();
16409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16410
          break;
16411
        }
16412
        switch (field.id) {
16413
          case 0: // SUCCESS
16414
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16415
              this.success = new VendorItemPricing();
16416
              this.success.read(iprot);
16417
            } else { 
16418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16419
            }
16420
            break;
16421
          case 1: // CEX
16422
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16423
              this.cex = new InventoryServiceException();
16424
              this.cex.read(iprot);
16425
            } else { 
16426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16427
            }
16428
            break;
16429
          default:
16430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16431
        }
16432
        iprot.readFieldEnd();
16433
      }
16434
      iprot.readStructEnd();
16435
      validate();
16436
    }
16437
 
16438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16439
      oprot.writeStructBegin(STRUCT_DESC);
16440
 
16441
      if (this.isSetSuccess()) {
16442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16443
        this.success.write(oprot);
16444
        oprot.writeFieldEnd();
16445
      } else if (this.isSetCex()) {
16446
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16447
        this.cex.write(oprot);
16448
        oprot.writeFieldEnd();
16449
      }
16450
      oprot.writeFieldStop();
16451
      oprot.writeStructEnd();
16452
    }
16453
 
16454
    @Override
16455
    public String toString() {
16456
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
16457
      boolean first = true;
16458
 
16459
      sb.append("success:");
16460
      if (this.success == null) {
16461
        sb.append("null");
16462
      } else {
16463
        sb.append(this.success);
16464
      }
16465
      first = false;
16466
      if (!first) sb.append(", ");
16467
      sb.append("cex:");
16468
      if (this.cex == null) {
16469
        sb.append("null");
16470
      } else {
16471
        sb.append(this.cex);
16472
      }
16473
      first = false;
16474
      sb.append(")");
16475
      return sb.toString();
16476
    }
16477
 
16478
    public void validate() throws org.apache.thrift.TException {
16479
      // check for required fields
16480
    }
16481
 
16482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16483
      try {
16484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16485
      } catch (org.apache.thrift.TException te) {
16486
        throw new java.io.IOException(te);
16487
      }
16488
    }
16489
 
16490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16491
      try {
16492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16493
      } catch (org.apache.thrift.TException te) {
16494
        throw new java.io.IOException(te);
16495
      }
16496
    }
16497
 
16498
  }
16499
 
16500
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
16502
 
16503
    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);
16504
 
16505
    private long itemId; // required
16506
 
16507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16509
      ITEM_ID((short)1, "itemId");
16510
 
16511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16512
 
16513
      static {
16514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16515
          byName.put(field.getFieldName(), field);
16516
        }
16517
      }
16518
 
16519
      /**
16520
       * Find the _Fields constant that matches fieldId, or null if its not found.
16521
       */
16522
      public static _Fields findByThriftId(int fieldId) {
16523
        switch(fieldId) {
16524
          case 1: // ITEM_ID
16525
            return ITEM_ID;
16526
          default:
16527
            return null;
16528
        }
16529
      }
16530
 
16531
      /**
16532
       * Find the _Fields constant that matches fieldId, throwing an exception
16533
       * if it is not found.
16534
       */
16535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16536
        _Fields fields = findByThriftId(fieldId);
16537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16538
        return fields;
16539
      }
16540
 
16541
      /**
16542
       * Find the _Fields constant that matches name, or null if its not found.
16543
       */
16544
      public static _Fields findByName(String name) {
16545
        return byName.get(name);
16546
      }
16547
 
16548
      private final short _thriftId;
16549
      private final String _fieldName;
16550
 
16551
      _Fields(short thriftId, String fieldName) {
16552
        _thriftId = thriftId;
16553
        _fieldName = fieldName;
16554
      }
16555
 
16556
      public short getThriftFieldId() {
16557
        return _thriftId;
16558
      }
16559
 
16560
      public String getFieldName() {
16561
        return _fieldName;
16562
      }
16563
    }
16564
 
16565
    // isset id assignments
16566
    private static final int __ITEMID_ISSET_ID = 0;
16567
    private BitSet __isset_bit_vector = new BitSet(1);
16568
 
16569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16570
    static {
16571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16572
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
16576
    }
16577
 
16578
    public getAllItemPricing_args() {
16579
    }
16580
 
16581
    public getAllItemPricing_args(
16582
      long itemId)
16583
    {
16584
      this();
16585
      this.itemId = itemId;
16586
      setItemIdIsSet(true);
16587
    }
16588
 
16589
    /**
16590
     * Performs a deep copy on <i>other</i>.
16591
     */
16592
    public getAllItemPricing_args(getAllItemPricing_args other) {
16593
      __isset_bit_vector.clear();
16594
      __isset_bit_vector.or(other.__isset_bit_vector);
16595
      this.itemId = other.itemId;
16596
    }
16597
 
16598
    public getAllItemPricing_args deepCopy() {
16599
      return new getAllItemPricing_args(this);
16600
    }
16601
 
16602
    @Override
16603
    public void clear() {
16604
      setItemIdIsSet(false);
16605
      this.itemId = 0;
16606
    }
16607
 
16608
    public long getItemId() {
16609
      return this.itemId;
16610
    }
16611
 
16612
    public void setItemId(long itemId) {
16613
      this.itemId = itemId;
16614
      setItemIdIsSet(true);
16615
    }
16616
 
16617
    public void unsetItemId() {
16618
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16619
    }
16620
 
16621
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16622
    public boolean isSetItemId() {
16623
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16624
    }
16625
 
16626
    public void setItemIdIsSet(boolean value) {
16627
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16628
    }
16629
 
16630
    public void setFieldValue(_Fields field, Object value) {
16631
      switch (field) {
16632
      case ITEM_ID:
16633
        if (value == null) {
16634
          unsetItemId();
16635
        } else {
16636
          setItemId((Long)value);
16637
        }
16638
        break;
16639
 
16640
      }
16641
    }
16642
 
16643
    public Object getFieldValue(_Fields field) {
16644
      switch (field) {
16645
      case ITEM_ID:
16646
        return Long.valueOf(getItemId());
16647
 
16648
      }
16649
      throw new IllegalStateException();
16650
    }
16651
 
16652
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16653
    public boolean isSet(_Fields field) {
16654
      if (field == null) {
16655
        throw new IllegalArgumentException();
16656
      }
16657
 
16658
      switch (field) {
16659
      case ITEM_ID:
16660
        return isSetItemId();
16661
      }
16662
      throw new IllegalStateException();
16663
    }
16664
 
16665
    @Override
16666
    public boolean equals(Object that) {
16667
      if (that == null)
16668
        return false;
16669
      if (that instanceof getAllItemPricing_args)
16670
        return this.equals((getAllItemPricing_args)that);
16671
      return false;
16672
    }
16673
 
16674
    public boolean equals(getAllItemPricing_args that) {
16675
      if (that == null)
16676
        return false;
16677
 
16678
      boolean this_present_itemId = true;
16679
      boolean that_present_itemId = true;
16680
      if (this_present_itemId || that_present_itemId) {
16681
        if (!(this_present_itemId && that_present_itemId))
16682
          return false;
16683
        if (this.itemId != that.itemId)
16684
          return false;
16685
      }
16686
 
16687
      return true;
16688
    }
16689
 
16690
    @Override
16691
    public int hashCode() {
16692
      return 0;
16693
    }
16694
 
16695
    public int compareTo(getAllItemPricing_args other) {
16696
      if (!getClass().equals(other.getClass())) {
16697
        return getClass().getName().compareTo(other.getClass().getName());
16698
      }
16699
 
16700
      int lastComparison = 0;
16701
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
16702
 
16703
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16704
      if (lastComparison != 0) {
16705
        return lastComparison;
16706
      }
16707
      if (isSetItemId()) {
16708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16709
        if (lastComparison != 0) {
16710
          return lastComparison;
16711
        }
16712
      }
16713
      return 0;
16714
    }
16715
 
16716
    public _Fields fieldForId(int fieldId) {
16717
      return _Fields.findByThriftId(fieldId);
16718
    }
16719
 
16720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16721
      org.apache.thrift.protocol.TField field;
16722
      iprot.readStructBegin();
16723
      while (true)
16724
      {
16725
        field = iprot.readFieldBegin();
16726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16727
          break;
16728
        }
16729
        switch (field.id) {
16730
          case 1: // ITEM_ID
16731
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16732
              this.itemId = iprot.readI64();
16733
              setItemIdIsSet(true);
16734
            } else { 
16735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16736
            }
16737
            break;
16738
          default:
16739
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16740
        }
16741
        iprot.readFieldEnd();
16742
      }
16743
      iprot.readStructEnd();
16744
      validate();
16745
    }
16746
 
16747
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16748
      validate();
16749
 
16750
      oprot.writeStructBegin(STRUCT_DESC);
16751
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16752
      oprot.writeI64(this.itemId);
16753
      oprot.writeFieldEnd();
16754
      oprot.writeFieldStop();
16755
      oprot.writeStructEnd();
16756
    }
16757
 
16758
    @Override
16759
    public String toString() {
16760
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
16761
      boolean first = true;
16762
 
16763
      sb.append("itemId:");
16764
      sb.append(this.itemId);
16765
      first = false;
16766
      sb.append(")");
16767
      return sb.toString();
16768
    }
16769
 
16770
    public void validate() throws org.apache.thrift.TException {
16771
      // check for required fields
16772
    }
16773
 
16774
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16775
      try {
16776
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16777
      } catch (org.apache.thrift.TException te) {
16778
        throw new java.io.IOException(te);
16779
      }
16780
    }
16781
 
16782
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16783
      try {
16784
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16785
      } catch (org.apache.thrift.TException te) {
16786
        throw new java.io.IOException(te);
16787
      }
16788
    }
16789
 
16790
  }
16791
 
16792
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
16794
 
16795
    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);
16796
    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);
16797
 
16798
    private List<VendorItemPricing> success; // required
16799
    private InventoryServiceException cex; // required
16800
 
16801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16803
      SUCCESS((short)0, "success"),
16804
      CEX((short)1, "cex");
16805
 
16806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16807
 
16808
      static {
16809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16810
          byName.put(field.getFieldName(), field);
16811
        }
16812
      }
16813
 
16814
      /**
16815
       * Find the _Fields constant that matches fieldId, or null if its not found.
16816
       */
16817
      public static _Fields findByThriftId(int fieldId) {
16818
        switch(fieldId) {
16819
          case 0: // SUCCESS
16820
            return SUCCESS;
16821
          case 1: // CEX
16822
            return CEX;
16823
          default:
16824
            return null;
16825
        }
16826
      }
16827
 
16828
      /**
16829
       * Find the _Fields constant that matches fieldId, throwing an exception
16830
       * if it is not found.
16831
       */
16832
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16833
        _Fields fields = findByThriftId(fieldId);
16834
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16835
        return fields;
16836
      }
16837
 
16838
      /**
16839
       * Find the _Fields constant that matches name, or null if its not found.
16840
       */
16841
      public static _Fields findByName(String name) {
16842
        return byName.get(name);
16843
      }
16844
 
16845
      private final short _thriftId;
16846
      private final String _fieldName;
16847
 
16848
      _Fields(short thriftId, String fieldName) {
16849
        _thriftId = thriftId;
16850
        _fieldName = fieldName;
16851
      }
16852
 
16853
      public short getThriftFieldId() {
16854
        return _thriftId;
16855
      }
16856
 
16857
      public String getFieldName() {
16858
        return _fieldName;
16859
      }
16860
    }
16861
 
16862
    // isset id assignments
16863
 
16864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16865
    static {
16866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16867
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16868
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16869
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
16870
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16871
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16872
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16873
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
16874
    }
16875
 
16876
    public getAllItemPricing_result() {
16877
    }
16878
 
16879
    public getAllItemPricing_result(
16880
      List<VendorItemPricing> success,
16881
      InventoryServiceException cex)
16882
    {
16883
      this();
16884
      this.success = success;
16885
      this.cex = cex;
16886
    }
16887
 
16888
    /**
16889
     * Performs a deep copy on <i>other</i>.
16890
     */
16891
    public getAllItemPricing_result(getAllItemPricing_result other) {
16892
      if (other.isSetSuccess()) {
16893
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
16894
        for (VendorItemPricing other_element : other.success) {
16895
          __this__success.add(new VendorItemPricing(other_element));
16896
        }
16897
        this.success = __this__success;
16898
      }
16899
      if (other.isSetCex()) {
16900
        this.cex = new InventoryServiceException(other.cex);
16901
      }
16902
    }
16903
 
16904
    public getAllItemPricing_result deepCopy() {
16905
      return new getAllItemPricing_result(this);
16906
    }
16907
 
16908
    @Override
16909
    public void clear() {
16910
      this.success = null;
16911
      this.cex = null;
16912
    }
16913
 
16914
    public int getSuccessSize() {
16915
      return (this.success == null) ? 0 : this.success.size();
16916
    }
16917
 
16918
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
16919
      return (this.success == null) ? null : this.success.iterator();
16920
    }
16921
 
16922
    public void addToSuccess(VendorItemPricing elem) {
16923
      if (this.success == null) {
16924
        this.success = new ArrayList<VendorItemPricing>();
16925
      }
16926
      this.success.add(elem);
16927
    }
16928
 
16929
    public List<VendorItemPricing> getSuccess() {
16930
      return this.success;
16931
    }
16932
 
16933
    public void setSuccess(List<VendorItemPricing> success) {
16934
      this.success = success;
16935
    }
16936
 
16937
    public void unsetSuccess() {
16938
      this.success = null;
16939
    }
16940
 
16941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16942
    public boolean isSetSuccess() {
16943
      return this.success != null;
16944
    }
16945
 
16946
    public void setSuccessIsSet(boolean value) {
16947
      if (!value) {
16948
        this.success = null;
16949
      }
16950
    }
16951
 
16952
    public InventoryServiceException getCex() {
16953
      return this.cex;
16954
    }
16955
 
16956
    public void setCex(InventoryServiceException cex) {
16957
      this.cex = cex;
16958
    }
16959
 
16960
    public void unsetCex() {
16961
      this.cex = null;
16962
    }
16963
 
16964
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16965
    public boolean isSetCex() {
16966
      return this.cex != null;
16967
    }
16968
 
16969
    public void setCexIsSet(boolean value) {
16970
      if (!value) {
16971
        this.cex = null;
16972
      }
16973
    }
16974
 
16975
    public void setFieldValue(_Fields field, Object value) {
16976
      switch (field) {
16977
      case SUCCESS:
16978
        if (value == null) {
16979
          unsetSuccess();
16980
        } else {
16981
          setSuccess((List<VendorItemPricing>)value);
16982
        }
16983
        break;
16984
 
16985
      case CEX:
16986
        if (value == null) {
16987
          unsetCex();
16988
        } else {
16989
          setCex((InventoryServiceException)value);
16990
        }
16991
        break;
16992
 
16993
      }
16994
    }
16995
 
16996
    public Object getFieldValue(_Fields field) {
16997
      switch (field) {
16998
      case SUCCESS:
16999
        return getSuccess();
17000
 
17001
      case CEX:
17002
        return getCex();
17003
 
17004
      }
17005
      throw new IllegalStateException();
17006
    }
17007
 
17008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17009
    public boolean isSet(_Fields field) {
17010
      if (field == null) {
17011
        throw new IllegalArgumentException();
17012
      }
17013
 
17014
      switch (field) {
17015
      case SUCCESS:
17016
        return isSetSuccess();
17017
      case CEX:
17018
        return isSetCex();
17019
      }
17020
      throw new IllegalStateException();
17021
    }
17022
 
17023
    @Override
17024
    public boolean equals(Object that) {
17025
      if (that == null)
17026
        return false;
17027
      if (that instanceof getAllItemPricing_result)
17028
        return this.equals((getAllItemPricing_result)that);
17029
      return false;
17030
    }
17031
 
17032
    public boolean equals(getAllItemPricing_result that) {
17033
      if (that == null)
17034
        return false;
17035
 
17036
      boolean this_present_success = true && this.isSetSuccess();
17037
      boolean that_present_success = true && that.isSetSuccess();
17038
      if (this_present_success || that_present_success) {
17039
        if (!(this_present_success && that_present_success))
17040
          return false;
17041
        if (!this.success.equals(that.success))
17042
          return false;
17043
      }
17044
 
17045
      boolean this_present_cex = true && this.isSetCex();
17046
      boolean that_present_cex = true && that.isSetCex();
17047
      if (this_present_cex || that_present_cex) {
17048
        if (!(this_present_cex && that_present_cex))
17049
          return false;
17050
        if (!this.cex.equals(that.cex))
17051
          return false;
17052
      }
17053
 
17054
      return true;
17055
    }
17056
 
17057
    @Override
17058
    public int hashCode() {
17059
      return 0;
17060
    }
17061
 
17062
    public int compareTo(getAllItemPricing_result other) {
17063
      if (!getClass().equals(other.getClass())) {
17064
        return getClass().getName().compareTo(other.getClass().getName());
17065
      }
17066
 
17067
      int lastComparison = 0;
17068
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
17069
 
17070
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17071
      if (lastComparison != 0) {
17072
        return lastComparison;
17073
      }
17074
      if (isSetSuccess()) {
17075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17076
        if (lastComparison != 0) {
17077
          return lastComparison;
17078
        }
17079
      }
17080
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17081
      if (lastComparison != 0) {
17082
        return lastComparison;
17083
      }
17084
      if (isSetCex()) {
17085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17086
        if (lastComparison != 0) {
17087
          return lastComparison;
17088
        }
17089
      }
17090
      return 0;
17091
    }
17092
 
17093
    public _Fields fieldForId(int fieldId) {
17094
      return _Fields.findByThriftId(fieldId);
17095
    }
17096
 
17097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17098
      org.apache.thrift.protocol.TField field;
17099
      iprot.readStructBegin();
17100
      while (true)
17101
      {
17102
        field = iprot.readFieldBegin();
17103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17104
          break;
17105
        }
17106
        switch (field.id) {
17107
          case 0: // SUCCESS
17108
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17109
              {
17110
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
17111
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
17112
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
17113
                {
17114
                  VendorItemPricing _elem34; // required
17115
                  _elem34 = new VendorItemPricing();
17116
                  _elem34.read(iprot);
17117
                  this.success.add(_elem34);
17118
                }
17119
                iprot.readListEnd();
17120
              }
17121
            } else { 
17122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17123
            }
17124
            break;
17125
          case 1: // CEX
17126
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17127
              this.cex = new InventoryServiceException();
17128
              this.cex.read(iprot);
17129
            } else { 
17130
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17131
            }
17132
            break;
17133
          default:
17134
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17135
        }
17136
        iprot.readFieldEnd();
17137
      }
17138
      iprot.readStructEnd();
17139
      validate();
17140
    }
17141
 
17142
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17143
      oprot.writeStructBegin(STRUCT_DESC);
17144
 
17145
      if (this.isSetSuccess()) {
17146
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17147
        {
17148
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17149
          for (VendorItemPricing _iter35 : this.success)
17150
          {
17151
            _iter35.write(oprot);
17152
          }
17153
          oprot.writeListEnd();
17154
        }
17155
        oprot.writeFieldEnd();
17156
      } else if (this.isSetCex()) {
17157
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17158
        this.cex.write(oprot);
17159
        oprot.writeFieldEnd();
17160
      }
17161
      oprot.writeFieldStop();
17162
      oprot.writeStructEnd();
17163
    }
17164
 
17165
    @Override
17166
    public String toString() {
17167
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
17168
      boolean first = true;
17169
 
17170
      sb.append("success:");
17171
      if (this.success == null) {
17172
        sb.append("null");
17173
      } else {
17174
        sb.append(this.success);
17175
      }
17176
      first = false;
17177
      if (!first) sb.append(", ");
17178
      sb.append("cex:");
17179
      if (this.cex == null) {
17180
        sb.append("null");
17181
      } else {
17182
        sb.append(this.cex);
17183
      }
17184
      first = false;
17185
      sb.append(")");
17186
      return sb.toString();
17187
    }
17188
 
17189
    public void validate() throws org.apache.thrift.TException {
17190
      // check for required fields
17191
    }
17192
 
17193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17194
      try {
17195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17196
      } catch (org.apache.thrift.TException te) {
17197
        throw new java.io.IOException(te);
17198
      }
17199
    }
17200
 
17201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17202
      try {
17203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17204
      } catch (org.apache.thrift.TException te) {
17205
        throw new java.io.IOException(te);
17206
      }
17207
    }
17208
 
17209
  }
17210
 
17211
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
17212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
17213
 
17214
    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);
17215
 
17216
    private VendorItemPricing vendorItemPricing; // required
17217
 
17218
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17219
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17220
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
17221
 
17222
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17223
 
17224
      static {
17225
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17226
          byName.put(field.getFieldName(), field);
17227
        }
17228
      }
17229
 
17230
      /**
17231
       * Find the _Fields constant that matches fieldId, or null if its not found.
17232
       */
17233
      public static _Fields findByThriftId(int fieldId) {
17234
        switch(fieldId) {
17235
          case 1: // VENDOR_ITEM_PRICING
17236
            return VENDOR_ITEM_PRICING;
17237
          default:
17238
            return null;
17239
        }
17240
      }
17241
 
17242
      /**
17243
       * Find the _Fields constant that matches fieldId, throwing an exception
17244
       * if it is not found.
17245
       */
17246
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17247
        _Fields fields = findByThriftId(fieldId);
17248
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17249
        return fields;
17250
      }
17251
 
17252
      /**
17253
       * Find the _Fields constant that matches name, or null if its not found.
17254
       */
17255
      public static _Fields findByName(String name) {
17256
        return byName.get(name);
17257
      }
17258
 
17259
      private final short _thriftId;
17260
      private final String _fieldName;
17261
 
17262
      _Fields(short thriftId, String fieldName) {
17263
        _thriftId = thriftId;
17264
        _fieldName = fieldName;
17265
      }
17266
 
17267
      public short getThriftFieldId() {
17268
        return _thriftId;
17269
      }
17270
 
17271
      public String getFieldName() {
17272
        return _fieldName;
17273
      }
17274
    }
17275
 
17276
    // isset id assignments
17277
 
17278
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17279
    static {
17280
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17281
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17282
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
17283
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17284
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
17285
    }
17286
 
17287
    public addVendorItemPricing_args() {
17288
    }
17289
 
17290
    public addVendorItemPricing_args(
17291
      VendorItemPricing vendorItemPricing)
17292
    {
17293
      this();
17294
      this.vendorItemPricing = vendorItemPricing;
17295
    }
17296
 
17297
    /**
17298
     * Performs a deep copy on <i>other</i>.
17299
     */
17300
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
17301
      if (other.isSetVendorItemPricing()) {
17302
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
17303
      }
17304
    }
17305
 
17306
    public addVendorItemPricing_args deepCopy() {
17307
      return new addVendorItemPricing_args(this);
17308
    }
17309
 
17310
    @Override
17311
    public void clear() {
17312
      this.vendorItemPricing = null;
17313
    }
17314
 
17315
    public VendorItemPricing getVendorItemPricing() {
17316
      return this.vendorItemPricing;
17317
    }
17318
 
17319
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
17320
      this.vendorItemPricing = vendorItemPricing;
17321
    }
17322
 
17323
    public void unsetVendorItemPricing() {
17324
      this.vendorItemPricing = null;
17325
    }
17326
 
17327
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
17328
    public boolean isSetVendorItemPricing() {
17329
      return this.vendorItemPricing != null;
17330
    }
17331
 
17332
    public void setVendorItemPricingIsSet(boolean value) {
17333
      if (!value) {
17334
        this.vendorItemPricing = null;
17335
      }
17336
    }
17337
 
17338
    public void setFieldValue(_Fields field, Object value) {
17339
      switch (field) {
17340
      case VENDOR_ITEM_PRICING:
17341
        if (value == null) {
17342
          unsetVendorItemPricing();
17343
        } else {
17344
          setVendorItemPricing((VendorItemPricing)value);
17345
        }
17346
        break;
17347
 
17348
      }
17349
    }
17350
 
17351
    public Object getFieldValue(_Fields field) {
17352
      switch (field) {
17353
      case VENDOR_ITEM_PRICING:
17354
        return getVendorItemPricing();
17355
 
17356
      }
17357
      throw new IllegalStateException();
17358
    }
17359
 
17360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17361
    public boolean isSet(_Fields field) {
17362
      if (field == null) {
17363
        throw new IllegalArgumentException();
17364
      }
17365
 
17366
      switch (field) {
17367
      case VENDOR_ITEM_PRICING:
17368
        return isSetVendorItemPricing();
17369
      }
17370
      throw new IllegalStateException();
17371
    }
17372
 
17373
    @Override
17374
    public boolean equals(Object that) {
17375
      if (that == null)
17376
        return false;
17377
      if (that instanceof addVendorItemPricing_args)
17378
        return this.equals((addVendorItemPricing_args)that);
17379
      return false;
17380
    }
17381
 
17382
    public boolean equals(addVendorItemPricing_args that) {
17383
      if (that == null)
17384
        return false;
17385
 
17386
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
17387
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
17388
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
17389
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
17390
          return false;
17391
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
17392
          return false;
17393
      }
17394
 
17395
      return true;
17396
    }
17397
 
17398
    @Override
17399
    public int hashCode() {
17400
      return 0;
17401
    }
17402
 
17403
    public int compareTo(addVendorItemPricing_args other) {
17404
      if (!getClass().equals(other.getClass())) {
17405
        return getClass().getName().compareTo(other.getClass().getName());
17406
      }
17407
 
17408
      int lastComparison = 0;
17409
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
17410
 
17411
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
17412
      if (lastComparison != 0) {
17413
        return lastComparison;
17414
      }
17415
      if (isSetVendorItemPricing()) {
17416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
17417
        if (lastComparison != 0) {
17418
          return lastComparison;
17419
        }
17420
      }
17421
      return 0;
17422
    }
17423
 
17424
    public _Fields fieldForId(int fieldId) {
17425
      return _Fields.findByThriftId(fieldId);
17426
    }
17427
 
17428
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17429
      org.apache.thrift.protocol.TField field;
17430
      iprot.readStructBegin();
17431
      while (true)
17432
      {
17433
        field = iprot.readFieldBegin();
17434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17435
          break;
17436
        }
17437
        switch (field.id) {
17438
          case 1: // VENDOR_ITEM_PRICING
17439
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17440
              this.vendorItemPricing = new VendorItemPricing();
17441
              this.vendorItemPricing.read(iprot);
17442
            } else { 
17443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17444
            }
17445
            break;
17446
          default:
17447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17448
        }
17449
        iprot.readFieldEnd();
17450
      }
17451
      iprot.readStructEnd();
17452
      validate();
17453
    }
17454
 
17455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17456
      validate();
17457
 
17458
      oprot.writeStructBegin(STRUCT_DESC);
17459
      if (this.vendorItemPricing != null) {
17460
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
17461
        this.vendorItemPricing.write(oprot);
17462
        oprot.writeFieldEnd();
17463
      }
17464
      oprot.writeFieldStop();
17465
      oprot.writeStructEnd();
17466
    }
17467
 
17468
    @Override
17469
    public String toString() {
17470
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
17471
      boolean first = true;
17472
 
17473
      sb.append("vendorItemPricing:");
17474
      if (this.vendorItemPricing == null) {
17475
        sb.append("null");
17476
      } else {
17477
        sb.append(this.vendorItemPricing);
17478
      }
17479
      first = false;
17480
      sb.append(")");
17481
      return sb.toString();
17482
    }
17483
 
17484
    public void validate() throws org.apache.thrift.TException {
17485
      // check for required fields
17486
    }
17487
 
17488
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17489
      try {
17490
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17491
      } catch (org.apache.thrift.TException te) {
17492
        throw new java.io.IOException(te);
17493
      }
17494
    }
17495
 
17496
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17497
      try {
17498
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17499
      } catch (org.apache.thrift.TException te) {
17500
        throw new java.io.IOException(te);
17501
      }
17502
    }
17503
 
17504
  }
17505
 
17506
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
17507
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
17508
 
17509
    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);
17510
 
17511
    private InventoryServiceException cex; // required
17512
 
17513
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17514
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17515
      CEX((short)1, "cex");
17516
 
17517
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17518
 
17519
      static {
17520
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17521
          byName.put(field.getFieldName(), field);
17522
        }
17523
      }
17524
 
17525
      /**
17526
       * Find the _Fields constant that matches fieldId, or null if its not found.
17527
       */
17528
      public static _Fields findByThriftId(int fieldId) {
17529
        switch(fieldId) {
17530
          case 1: // CEX
17531
            return CEX;
17532
          default:
17533
            return null;
17534
        }
17535
      }
17536
 
17537
      /**
17538
       * Find the _Fields constant that matches fieldId, throwing an exception
17539
       * if it is not found.
17540
       */
17541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17542
        _Fields fields = findByThriftId(fieldId);
17543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17544
        return fields;
17545
      }
17546
 
17547
      /**
17548
       * Find the _Fields constant that matches name, or null if its not found.
17549
       */
17550
      public static _Fields findByName(String name) {
17551
        return byName.get(name);
17552
      }
17553
 
17554
      private final short _thriftId;
17555
      private final String _fieldName;
17556
 
17557
      _Fields(short thriftId, String fieldName) {
17558
        _thriftId = thriftId;
17559
        _fieldName = fieldName;
17560
      }
17561
 
17562
      public short getThriftFieldId() {
17563
        return _thriftId;
17564
      }
17565
 
17566
      public String getFieldName() {
17567
        return _fieldName;
17568
      }
17569
    }
17570
 
17571
    // isset id assignments
17572
 
17573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17574
    static {
17575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17576
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17578
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17579
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
17580
    }
17581
 
17582
    public addVendorItemPricing_result() {
17583
    }
17584
 
17585
    public addVendorItemPricing_result(
17586
      InventoryServiceException cex)
17587
    {
17588
      this();
17589
      this.cex = cex;
17590
    }
17591
 
17592
    /**
17593
     * Performs a deep copy on <i>other</i>.
17594
     */
17595
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
17596
      if (other.isSetCex()) {
17597
        this.cex = new InventoryServiceException(other.cex);
17598
      }
17599
    }
17600
 
17601
    public addVendorItemPricing_result deepCopy() {
17602
      return new addVendorItemPricing_result(this);
17603
    }
17604
 
17605
    @Override
17606
    public void clear() {
17607
      this.cex = null;
17608
    }
17609
 
17610
    public InventoryServiceException getCex() {
17611
      return this.cex;
17612
    }
17613
 
17614
    public void setCex(InventoryServiceException cex) {
17615
      this.cex = cex;
17616
    }
17617
 
17618
    public void unsetCex() {
17619
      this.cex = null;
17620
    }
17621
 
17622
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17623
    public boolean isSetCex() {
17624
      return this.cex != null;
17625
    }
17626
 
17627
    public void setCexIsSet(boolean value) {
17628
      if (!value) {
17629
        this.cex = null;
17630
      }
17631
    }
17632
 
17633
    public void setFieldValue(_Fields field, Object value) {
17634
      switch (field) {
17635
      case CEX:
17636
        if (value == null) {
17637
          unsetCex();
17638
        } else {
17639
          setCex((InventoryServiceException)value);
17640
        }
17641
        break;
17642
 
17643
      }
17644
    }
17645
 
17646
    public Object getFieldValue(_Fields field) {
17647
      switch (field) {
17648
      case CEX:
17649
        return getCex();
17650
 
17651
      }
17652
      throw new IllegalStateException();
17653
    }
17654
 
17655
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17656
    public boolean isSet(_Fields field) {
17657
      if (field == null) {
17658
        throw new IllegalArgumentException();
17659
      }
17660
 
17661
      switch (field) {
17662
      case CEX:
17663
        return isSetCex();
17664
      }
17665
      throw new IllegalStateException();
17666
    }
17667
 
17668
    @Override
17669
    public boolean equals(Object that) {
17670
      if (that == null)
17671
        return false;
17672
      if (that instanceof addVendorItemPricing_result)
17673
        return this.equals((addVendorItemPricing_result)that);
17674
      return false;
17675
    }
17676
 
17677
    public boolean equals(addVendorItemPricing_result that) {
17678
      if (that == null)
17679
        return false;
17680
 
17681
      boolean this_present_cex = true && this.isSetCex();
17682
      boolean that_present_cex = true && that.isSetCex();
17683
      if (this_present_cex || that_present_cex) {
17684
        if (!(this_present_cex && that_present_cex))
17685
          return false;
17686
        if (!this.cex.equals(that.cex))
17687
          return false;
17688
      }
17689
 
17690
      return true;
17691
    }
17692
 
17693
    @Override
17694
    public int hashCode() {
17695
      return 0;
17696
    }
17697
 
17698
    public int compareTo(addVendorItemPricing_result other) {
17699
      if (!getClass().equals(other.getClass())) {
17700
        return getClass().getName().compareTo(other.getClass().getName());
17701
      }
17702
 
17703
      int lastComparison = 0;
17704
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
17705
 
17706
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17707
      if (lastComparison != 0) {
17708
        return lastComparison;
17709
      }
17710
      if (isSetCex()) {
17711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17712
        if (lastComparison != 0) {
17713
          return lastComparison;
17714
        }
17715
      }
17716
      return 0;
17717
    }
17718
 
17719
    public _Fields fieldForId(int fieldId) {
17720
      return _Fields.findByThriftId(fieldId);
17721
    }
17722
 
17723
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17724
      org.apache.thrift.protocol.TField field;
17725
      iprot.readStructBegin();
17726
      while (true)
17727
      {
17728
        field = iprot.readFieldBegin();
17729
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17730
          break;
17731
        }
17732
        switch (field.id) {
17733
          case 1: // CEX
17734
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17735
              this.cex = new InventoryServiceException();
17736
              this.cex.read(iprot);
17737
            } else { 
17738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17739
            }
17740
            break;
17741
          default:
17742
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17743
        }
17744
        iprot.readFieldEnd();
17745
      }
17746
      iprot.readStructEnd();
17747
      validate();
17748
    }
17749
 
17750
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17751
      oprot.writeStructBegin(STRUCT_DESC);
17752
 
17753
      if (this.isSetCex()) {
17754
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17755
        this.cex.write(oprot);
17756
        oprot.writeFieldEnd();
17757
      }
17758
      oprot.writeFieldStop();
17759
      oprot.writeStructEnd();
17760
    }
17761
 
17762
    @Override
17763
    public String toString() {
17764
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
17765
      boolean first = true;
17766
 
17767
      sb.append("cex:");
17768
      if (this.cex == null) {
17769
        sb.append("null");
17770
      } else {
17771
        sb.append(this.cex);
17772
      }
17773
      first = false;
17774
      sb.append(")");
17775
      return sb.toString();
17776
    }
17777
 
17778
    public void validate() throws org.apache.thrift.TException {
17779
      // check for required fields
17780
    }
17781
 
17782
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17783
      try {
17784
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17785
      } catch (org.apache.thrift.TException te) {
17786
        throw new java.io.IOException(te);
17787
      }
17788
    }
17789
 
17790
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17791
      try {
17792
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17793
      } catch (org.apache.thrift.TException te) {
17794
        throw new java.io.IOException(te);
17795
      }
17796
    }
17797
 
17798
  }
17799
 
17800
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
17801
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
17802
 
17803
    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);
17804
 
17805
    private long vendorId; // required
17806
 
17807
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17808
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17809
      VENDOR_ID((short)1, "vendorId");
17810
 
17811
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17812
 
17813
      static {
17814
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17815
          byName.put(field.getFieldName(), field);
17816
        }
17817
      }
17818
 
17819
      /**
17820
       * Find the _Fields constant that matches fieldId, or null if its not found.
17821
       */
17822
      public static _Fields findByThriftId(int fieldId) {
17823
        switch(fieldId) {
17824
          case 1: // VENDOR_ID
17825
            return VENDOR_ID;
17826
          default:
17827
            return null;
17828
        }
17829
      }
17830
 
17831
      /**
17832
       * Find the _Fields constant that matches fieldId, throwing an exception
17833
       * if it is not found.
17834
       */
17835
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17836
        _Fields fields = findByThriftId(fieldId);
17837
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17838
        return fields;
17839
      }
17840
 
17841
      /**
17842
       * Find the _Fields constant that matches name, or null if its not found.
17843
       */
17844
      public static _Fields findByName(String name) {
17845
        return byName.get(name);
17846
      }
17847
 
17848
      private final short _thriftId;
17849
      private final String _fieldName;
17850
 
17851
      _Fields(short thriftId, String fieldName) {
17852
        _thriftId = thriftId;
17853
        _fieldName = fieldName;
17854
      }
17855
 
17856
      public short getThriftFieldId() {
17857
        return _thriftId;
17858
      }
17859
 
17860
      public String getFieldName() {
17861
        return _fieldName;
17862
      }
17863
    }
17864
 
17865
    // isset id assignments
17866
    private static final int __VENDORID_ISSET_ID = 0;
17867
    private BitSet __isset_bit_vector = new BitSet(1);
17868
 
17869
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17870
    static {
17871
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17872
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
17876
    }
17877
 
17878
    public getVendor_args() {
17879
    }
17880
 
17881
    public getVendor_args(
17882
      long vendorId)
17883
    {
17884
      this();
17885
      this.vendorId = vendorId;
17886
      setVendorIdIsSet(true);
17887
    }
17888
 
17889
    /**
17890
     * Performs a deep copy on <i>other</i>.
17891
     */
17892
    public getVendor_args(getVendor_args other) {
17893
      __isset_bit_vector.clear();
17894
      __isset_bit_vector.or(other.__isset_bit_vector);
17895
      this.vendorId = other.vendorId;
17896
    }
17897
 
17898
    public getVendor_args deepCopy() {
17899
      return new getVendor_args(this);
17900
    }
17901
 
17902
    @Override
17903
    public void clear() {
17904
      setVendorIdIsSet(false);
17905
      this.vendorId = 0;
17906
    }
17907
 
17908
    public long getVendorId() {
17909
      return this.vendorId;
17910
    }
17911
 
17912
    public void setVendorId(long vendorId) {
17913
      this.vendorId = vendorId;
17914
      setVendorIdIsSet(true);
17915
    }
17916
 
17917
    public void unsetVendorId() {
17918
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17919
    }
17920
 
17921
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17922
    public boolean isSetVendorId() {
17923
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17924
    }
17925
 
17926
    public void setVendorIdIsSet(boolean value) {
17927
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17928
    }
17929
 
17930
    public void setFieldValue(_Fields field, Object value) {
17931
      switch (field) {
17932
      case VENDOR_ID:
17933
        if (value == null) {
17934
          unsetVendorId();
17935
        } else {
17936
          setVendorId((Long)value);
17937
        }
17938
        break;
17939
 
17940
      }
17941
    }
17942
 
17943
    public Object getFieldValue(_Fields field) {
17944
      switch (field) {
17945
      case VENDOR_ID:
17946
        return Long.valueOf(getVendorId());
17947
 
17948
      }
17949
      throw new IllegalStateException();
17950
    }
17951
 
17952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17953
    public boolean isSet(_Fields field) {
17954
      if (field == null) {
17955
        throw new IllegalArgumentException();
17956
      }
17957
 
17958
      switch (field) {
17959
      case VENDOR_ID:
17960
        return isSetVendorId();
17961
      }
17962
      throw new IllegalStateException();
17963
    }
17964
 
17965
    @Override
17966
    public boolean equals(Object that) {
17967
      if (that == null)
17968
        return false;
17969
      if (that instanceof getVendor_args)
17970
        return this.equals((getVendor_args)that);
17971
      return false;
17972
    }
17973
 
17974
    public boolean equals(getVendor_args that) {
17975
      if (that == null)
17976
        return false;
17977
 
17978
      boolean this_present_vendorId = true;
17979
      boolean that_present_vendorId = true;
17980
      if (this_present_vendorId || that_present_vendorId) {
17981
        if (!(this_present_vendorId && that_present_vendorId))
17982
          return false;
17983
        if (this.vendorId != that.vendorId)
17984
          return false;
17985
      }
17986
 
17987
      return true;
17988
    }
17989
 
17990
    @Override
17991
    public int hashCode() {
17992
      return 0;
17993
    }
17994
 
17995
    public int compareTo(getVendor_args other) {
17996
      if (!getClass().equals(other.getClass())) {
17997
        return getClass().getName().compareTo(other.getClass().getName());
17998
      }
17999
 
18000
      int lastComparison = 0;
18001
      getVendor_args typedOther = (getVendor_args)other;
18002
 
18003
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
18004
      if (lastComparison != 0) {
18005
        return lastComparison;
18006
      }
18007
      if (isSetVendorId()) {
18008
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
18009
        if (lastComparison != 0) {
18010
          return lastComparison;
18011
        }
18012
      }
18013
      return 0;
18014
    }
18015
 
18016
    public _Fields fieldForId(int fieldId) {
18017
      return _Fields.findByThriftId(fieldId);
18018
    }
18019
 
18020
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18021
      org.apache.thrift.protocol.TField field;
18022
      iprot.readStructBegin();
18023
      while (true)
18024
      {
18025
        field = iprot.readFieldBegin();
18026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18027
          break;
18028
        }
18029
        switch (field.id) {
18030
          case 1: // VENDOR_ID
18031
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18032
              this.vendorId = iprot.readI64();
18033
              setVendorIdIsSet(true);
18034
            } else { 
18035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18036
            }
18037
            break;
18038
          default:
18039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18040
        }
18041
        iprot.readFieldEnd();
18042
      }
18043
      iprot.readStructEnd();
18044
      validate();
18045
    }
18046
 
18047
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18048
      validate();
18049
 
18050
      oprot.writeStructBegin(STRUCT_DESC);
18051
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
18052
      oprot.writeI64(this.vendorId);
18053
      oprot.writeFieldEnd();
18054
      oprot.writeFieldStop();
18055
      oprot.writeStructEnd();
18056
    }
18057
 
18058
    @Override
18059
    public String toString() {
18060
      StringBuilder sb = new StringBuilder("getVendor_args(");
18061
      boolean first = true;
18062
 
18063
      sb.append("vendorId:");
18064
      sb.append(this.vendorId);
18065
      first = false;
18066
      sb.append(")");
18067
      return sb.toString();
18068
    }
18069
 
18070
    public void validate() throws org.apache.thrift.TException {
18071
      // check for required fields
18072
    }
18073
 
18074
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18075
      try {
18076
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18077
      } catch (org.apache.thrift.TException te) {
18078
        throw new java.io.IOException(te);
18079
      }
18080
    }
18081
 
18082
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18083
      try {
18084
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18085
        __isset_bit_vector = new BitSet(1);
18086
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18087
      } catch (org.apache.thrift.TException te) {
18088
        throw new java.io.IOException(te);
18089
      }
18090
    }
18091
 
18092
  }
18093
 
18094
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
18095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
18096
 
18097
    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);
18098
 
18099
    private Vendor success; // required
18100
 
18101
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18102
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18103
      SUCCESS((short)0, "success");
18104
 
18105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18106
 
18107
      static {
18108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18109
          byName.put(field.getFieldName(), field);
18110
        }
18111
      }
18112
 
18113
      /**
18114
       * Find the _Fields constant that matches fieldId, or null if its not found.
18115
       */
18116
      public static _Fields findByThriftId(int fieldId) {
18117
        switch(fieldId) {
18118
          case 0: // SUCCESS
18119
            return SUCCESS;
18120
          default:
18121
            return null;
18122
        }
18123
      }
18124
 
18125
      /**
18126
       * Find the _Fields constant that matches fieldId, throwing an exception
18127
       * if it is not found.
18128
       */
18129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18130
        _Fields fields = findByThriftId(fieldId);
18131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18132
        return fields;
18133
      }
18134
 
18135
      /**
18136
       * Find the _Fields constant that matches name, or null if its not found.
18137
       */
18138
      public static _Fields findByName(String name) {
18139
        return byName.get(name);
18140
      }
18141
 
18142
      private final short _thriftId;
18143
      private final String _fieldName;
18144
 
18145
      _Fields(short thriftId, String fieldName) {
18146
        _thriftId = thriftId;
18147
        _fieldName = fieldName;
18148
      }
18149
 
18150
      public short getThriftFieldId() {
18151
        return _thriftId;
18152
      }
18153
 
18154
      public String getFieldName() {
18155
        return _fieldName;
18156
      }
18157
    }
18158
 
18159
    // isset id assignments
18160
 
18161
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18162
    static {
18163
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18164
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18165
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
18166
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18167
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
18168
    }
18169
 
18170
    public getVendor_result() {
18171
    }
18172
 
18173
    public getVendor_result(
18174
      Vendor success)
18175
    {
18176
      this();
18177
      this.success = success;
18178
    }
18179
 
18180
    /**
18181
     * Performs a deep copy on <i>other</i>.
18182
     */
18183
    public getVendor_result(getVendor_result other) {
18184
      if (other.isSetSuccess()) {
18185
        this.success = new Vendor(other.success);
18186
      }
18187
    }
18188
 
18189
    public getVendor_result deepCopy() {
18190
      return new getVendor_result(this);
18191
    }
18192
 
18193
    @Override
18194
    public void clear() {
18195
      this.success = null;
18196
    }
18197
 
18198
    public Vendor getSuccess() {
18199
      return this.success;
18200
    }
18201
 
18202
    public void setSuccess(Vendor success) {
18203
      this.success = success;
18204
    }
18205
 
18206
    public void unsetSuccess() {
18207
      this.success = null;
18208
    }
18209
 
18210
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18211
    public boolean isSetSuccess() {
18212
      return this.success != null;
18213
    }
18214
 
18215
    public void setSuccessIsSet(boolean value) {
18216
      if (!value) {
18217
        this.success = null;
18218
      }
18219
    }
18220
 
18221
    public void setFieldValue(_Fields field, Object value) {
18222
      switch (field) {
18223
      case SUCCESS:
18224
        if (value == null) {
18225
          unsetSuccess();
18226
        } else {
18227
          setSuccess((Vendor)value);
18228
        }
18229
        break;
18230
 
18231
      }
18232
    }
18233
 
18234
    public Object getFieldValue(_Fields field) {
18235
      switch (field) {
18236
      case SUCCESS:
18237
        return getSuccess();
18238
 
18239
      }
18240
      throw new IllegalStateException();
18241
    }
18242
 
18243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18244
    public boolean isSet(_Fields field) {
18245
      if (field == null) {
18246
        throw new IllegalArgumentException();
18247
      }
18248
 
18249
      switch (field) {
18250
      case SUCCESS:
18251
        return isSetSuccess();
18252
      }
18253
      throw new IllegalStateException();
18254
    }
18255
 
18256
    @Override
18257
    public boolean equals(Object that) {
18258
      if (that == null)
18259
        return false;
18260
      if (that instanceof getVendor_result)
18261
        return this.equals((getVendor_result)that);
18262
      return false;
18263
    }
18264
 
18265
    public boolean equals(getVendor_result that) {
18266
      if (that == null)
18267
        return false;
18268
 
18269
      boolean this_present_success = true && this.isSetSuccess();
18270
      boolean that_present_success = true && that.isSetSuccess();
18271
      if (this_present_success || that_present_success) {
18272
        if (!(this_present_success && that_present_success))
18273
          return false;
18274
        if (!this.success.equals(that.success))
18275
          return false;
18276
      }
18277
 
18278
      return true;
18279
    }
18280
 
18281
    @Override
18282
    public int hashCode() {
18283
      return 0;
18284
    }
18285
 
18286
    public int compareTo(getVendor_result other) {
18287
      if (!getClass().equals(other.getClass())) {
18288
        return getClass().getName().compareTo(other.getClass().getName());
18289
      }
18290
 
18291
      int lastComparison = 0;
18292
      getVendor_result typedOther = (getVendor_result)other;
18293
 
18294
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18295
      if (lastComparison != 0) {
18296
        return lastComparison;
18297
      }
18298
      if (isSetSuccess()) {
18299
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18300
        if (lastComparison != 0) {
18301
          return lastComparison;
18302
        }
18303
      }
18304
      return 0;
18305
    }
18306
 
18307
    public _Fields fieldForId(int fieldId) {
18308
      return _Fields.findByThriftId(fieldId);
18309
    }
18310
 
18311
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18312
      org.apache.thrift.protocol.TField field;
18313
      iprot.readStructBegin();
18314
      while (true)
18315
      {
18316
        field = iprot.readFieldBegin();
18317
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18318
          break;
18319
        }
18320
        switch (field.id) {
18321
          case 0: // SUCCESS
18322
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18323
              this.success = new Vendor();
18324
              this.success.read(iprot);
18325
            } else { 
18326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18327
            }
18328
            break;
18329
          default:
18330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18331
        }
18332
        iprot.readFieldEnd();
18333
      }
18334
      iprot.readStructEnd();
18335
      validate();
18336
    }
18337
 
18338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18339
      oprot.writeStructBegin(STRUCT_DESC);
18340
 
18341
      if (this.isSetSuccess()) {
18342
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18343
        this.success.write(oprot);
18344
        oprot.writeFieldEnd();
18345
      }
18346
      oprot.writeFieldStop();
18347
      oprot.writeStructEnd();
18348
    }
18349
 
18350
    @Override
18351
    public String toString() {
18352
      StringBuilder sb = new StringBuilder("getVendor_result(");
18353
      boolean first = true;
18354
 
18355
      sb.append("success:");
18356
      if (this.success == null) {
18357
        sb.append("null");
18358
      } else {
18359
        sb.append(this.success);
18360
      }
18361
      first = false;
18362
      sb.append(")");
18363
      return sb.toString();
18364
    }
18365
 
18366
    public void validate() throws org.apache.thrift.TException {
18367
      // check for required fields
18368
    }
18369
 
18370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18371
      try {
18372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18373
      } catch (org.apache.thrift.TException te) {
18374
        throw new java.io.IOException(te);
18375
      }
18376
    }
18377
 
18378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18379
      try {
18380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18381
      } catch (org.apache.thrift.TException te) {
18382
        throw new java.io.IOException(te);
18383
      }
18384
    }
18385
 
18386
  }
18387
 
18388
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
18389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
18390
 
18391
 
18392
 
18393
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18394
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18395
;
18396
 
18397
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18398
 
18399
      static {
18400
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18401
          byName.put(field.getFieldName(), field);
18402
        }
18403
      }
18404
 
18405
      /**
18406
       * Find the _Fields constant that matches fieldId, or null if its not found.
18407
       */
18408
      public static _Fields findByThriftId(int fieldId) {
18409
        switch(fieldId) {
18410
          default:
18411
            return null;
18412
        }
18413
      }
18414
 
18415
      /**
18416
       * Find the _Fields constant that matches fieldId, throwing an exception
18417
       * if it is not found.
18418
       */
18419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18420
        _Fields fields = findByThriftId(fieldId);
18421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18422
        return fields;
18423
      }
18424
 
18425
      /**
18426
       * Find the _Fields constant that matches name, or null if its not found.
18427
       */
18428
      public static _Fields findByName(String name) {
18429
        return byName.get(name);
18430
      }
18431
 
18432
      private final short _thriftId;
18433
      private final String _fieldName;
18434
 
18435
      _Fields(short thriftId, String fieldName) {
18436
        _thriftId = thriftId;
18437
        _fieldName = fieldName;
18438
      }
18439
 
18440
      public short getThriftFieldId() {
18441
        return _thriftId;
18442
      }
18443
 
18444
      public String getFieldName() {
18445
        return _fieldName;
18446
      }
18447
    }
18448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18449
    static {
18450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
18453
    }
18454
 
18455
    public getAllVendors_args() {
18456
    }
18457
 
18458
    /**
18459
     * Performs a deep copy on <i>other</i>.
18460
     */
18461
    public getAllVendors_args(getAllVendors_args other) {
18462
    }
18463
 
18464
    public getAllVendors_args deepCopy() {
18465
      return new getAllVendors_args(this);
18466
    }
18467
 
18468
    @Override
18469
    public void clear() {
18470
    }
18471
 
18472
    public void setFieldValue(_Fields field, Object value) {
18473
      switch (field) {
18474
      }
18475
    }
18476
 
18477
    public Object getFieldValue(_Fields field) {
18478
      switch (field) {
18479
      }
18480
      throw new IllegalStateException();
18481
    }
18482
 
18483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18484
    public boolean isSet(_Fields field) {
18485
      if (field == null) {
18486
        throw new IllegalArgumentException();
18487
      }
18488
 
18489
      switch (field) {
18490
      }
18491
      throw new IllegalStateException();
18492
    }
18493
 
18494
    @Override
18495
    public boolean equals(Object that) {
18496
      if (that == null)
18497
        return false;
18498
      if (that instanceof getAllVendors_args)
18499
        return this.equals((getAllVendors_args)that);
18500
      return false;
18501
    }
18502
 
18503
    public boolean equals(getAllVendors_args that) {
18504
      if (that == null)
18505
        return false;
18506
 
18507
      return true;
18508
    }
18509
 
18510
    @Override
18511
    public int hashCode() {
18512
      return 0;
18513
    }
18514
 
18515
    public int compareTo(getAllVendors_args other) {
18516
      if (!getClass().equals(other.getClass())) {
18517
        return getClass().getName().compareTo(other.getClass().getName());
18518
      }
18519
 
18520
      int lastComparison = 0;
18521
      getAllVendors_args typedOther = (getAllVendors_args)other;
18522
 
18523
      return 0;
18524
    }
18525
 
18526
    public _Fields fieldForId(int fieldId) {
18527
      return _Fields.findByThriftId(fieldId);
18528
    }
18529
 
18530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18531
      org.apache.thrift.protocol.TField field;
18532
      iprot.readStructBegin();
18533
      while (true)
18534
      {
18535
        field = iprot.readFieldBegin();
18536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18537
          break;
18538
        }
18539
        switch (field.id) {
18540
          default:
18541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18542
        }
18543
        iprot.readFieldEnd();
18544
      }
18545
      iprot.readStructEnd();
18546
      validate();
18547
    }
18548
 
18549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18550
      validate();
18551
 
18552
      oprot.writeStructBegin(STRUCT_DESC);
18553
      oprot.writeFieldStop();
18554
      oprot.writeStructEnd();
18555
    }
18556
 
18557
    @Override
18558
    public String toString() {
18559
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
18560
      boolean first = true;
18561
 
18562
      sb.append(")");
18563
      return sb.toString();
18564
    }
18565
 
18566
    public void validate() throws org.apache.thrift.TException {
18567
      // check for required fields
18568
    }
18569
 
18570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18571
      try {
18572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18573
      } catch (org.apache.thrift.TException te) {
18574
        throw new java.io.IOException(te);
18575
      }
18576
    }
18577
 
18578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18579
      try {
18580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18581
      } catch (org.apache.thrift.TException te) {
18582
        throw new java.io.IOException(te);
18583
      }
18584
    }
18585
 
18586
  }
18587
 
18588
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
18589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
18590
 
18591
    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);
18592
 
18593
    private List<Vendor> success; // required
18594
 
18595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18597
      SUCCESS((short)0, "success");
18598
 
18599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18600
 
18601
      static {
18602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18603
          byName.put(field.getFieldName(), field);
18604
        }
18605
      }
18606
 
18607
      /**
18608
       * Find the _Fields constant that matches fieldId, or null if its not found.
18609
       */
18610
      public static _Fields findByThriftId(int fieldId) {
18611
        switch(fieldId) {
18612
          case 0: // SUCCESS
18613
            return SUCCESS;
18614
          default:
18615
            return null;
18616
        }
18617
      }
18618
 
18619
      /**
18620
       * Find the _Fields constant that matches fieldId, throwing an exception
18621
       * if it is not found.
18622
       */
18623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18624
        _Fields fields = findByThriftId(fieldId);
18625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18626
        return fields;
18627
      }
18628
 
18629
      /**
18630
       * Find the _Fields constant that matches name, or null if its not found.
18631
       */
18632
      public static _Fields findByName(String name) {
18633
        return byName.get(name);
18634
      }
18635
 
18636
      private final short _thriftId;
18637
      private final String _fieldName;
18638
 
18639
      _Fields(short thriftId, String fieldName) {
18640
        _thriftId = thriftId;
18641
        _fieldName = fieldName;
18642
      }
18643
 
18644
      public short getThriftFieldId() {
18645
        return _thriftId;
18646
      }
18647
 
18648
      public String getFieldName() {
18649
        return _fieldName;
18650
      }
18651
    }
18652
 
18653
    // isset id assignments
18654
 
18655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18656
    static {
18657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18658
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18659
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18660
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
18661
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18662
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
18663
    }
18664
 
18665
    public getAllVendors_result() {
18666
    }
18667
 
18668
    public getAllVendors_result(
18669
      List<Vendor> success)
18670
    {
18671
      this();
18672
      this.success = success;
18673
    }
18674
 
18675
    /**
18676
     * Performs a deep copy on <i>other</i>.
18677
     */
18678
    public getAllVendors_result(getAllVendors_result other) {
18679
      if (other.isSetSuccess()) {
18680
        List<Vendor> __this__success = new ArrayList<Vendor>();
18681
        for (Vendor other_element : other.success) {
18682
          __this__success.add(new Vendor(other_element));
18683
        }
18684
        this.success = __this__success;
18685
      }
18686
    }
18687
 
18688
    public getAllVendors_result deepCopy() {
18689
      return new getAllVendors_result(this);
18690
    }
18691
 
18692
    @Override
18693
    public void clear() {
18694
      this.success = null;
18695
    }
18696
 
18697
    public int getSuccessSize() {
18698
      return (this.success == null) ? 0 : this.success.size();
18699
    }
18700
 
18701
    public java.util.Iterator<Vendor> getSuccessIterator() {
18702
      return (this.success == null) ? null : this.success.iterator();
18703
    }
18704
 
18705
    public void addToSuccess(Vendor elem) {
18706
      if (this.success == null) {
18707
        this.success = new ArrayList<Vendor>();
18708
      }
18709
      this.success.add(elem);
18710
    }
18711
 
18712
    public List<Vendor> getSuccess() {
18713
      return this.success;
18714
    }
18715
 
18716
    public void setSuccess(List<Vendor> success) {
18717
      this.success = success;
18718
    }
18719
 
18720
    public void unsetSuccess() {
18721
      this.success = null;
18722
    }
18723
 
18724
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18725
    public boolean isSetSuccess() {
18726
      return this.success != null;
18727
    }
18728
 
18729
    public void setSuccessIsSet(boolean value) {
18730
      if (!value) {
18731
        this.success = null;
18732
      }
18733
    }
18734
 
18735
    public void setFieldValue(_Fields field, Object value) {
18736
      switch (field) {
18737
      case SUCCESS:
18738
        if (value == null) {
18739
          unsetSuccess();
18740
        } else {
18741
          setSuccess((List<Vendor>)value);
18742
        }
18743
        break;
18744
 
18745
      }
18746
    }
18747
 
18748
    public Object getFieldValue(_Fields field) {
18749
      switch (field) {
18750
      case SUCCESS:
18751
        return getSuccess();
18752
 
18753
      }
18754
      throw new IllegalStateException();
18755
    }
18756
 
18757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18758
    public boolean isSet(_Fields field) {
18759
      if (field == null) {
18760
        throw new IllegalArgumentException();
18761
      }
18762
 
18763
      switch (field) {
18764
      case SUCCESS:
18765
        return isSetSuccess();
18766
      }
18767
      throw new IllegalStateException();
18768
    }
18769
 
18770
    @Override
18771
    public boolean equals(Object that) {
18772
      if (that == null)
18773
        return false;
18774
      if (that instanceof getAllVendors_result)
18775
        return this.equals((getAllVendors_result)that);
18776
      return false;
18777
    }
18778
 
18779
    public boolean equals(getAllVendors_result that) {
18780
      if (that == null)
18781
        return false;
18782
 
18783
      boolean this_present_success = true && this.isSetSuccess();
18784
      boolean that_present_success = true && that.isSetSuccess();
18785
      if (this_present_success || that_present_success) {
18786
        if (!(this_present_success && that_present_success))
18787
          return false;
18788
        if (!this.success.equals(that.success))
18789
          return false;
18790
      }
18791
 
18792
      return true;
18793
    }
18794
 
18795
    @Override
18796
    public int hashCode() {
18797
      return 0;
18798
    }
18799
 
18800
    public int compareTo(getAllVendors_result other) {
18801
      if (!getClass().equals(other.getClass())) {
18802
        return getClass().getName().compareTo(other.getClass().getName());
18803
      }
18804
 
18805
      int lastComparison = 0;
18806
      getAllVendors_result typedOther = (getAllVendors_result)other;
18807
 
18808
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18809
      if (lastComparison != 0) {
18810
        return lastComparison;
18811
      }
18812
      if (isSetSuccess()) {
18813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18814
        if (lastComparison != 0) {
18815
          return lastComparison;
18816
        }
18817
      }
18818
      return 0;
18819
    }
18820
 
18821
    public _Fields fieldForId(int fieldId) {
18822
      return _Fields.findByThriftId(fieldId);
18823
    }
18824
 
18825
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18826
      org.apache.thrift.protocol.TField field;
18827
      iprot.readStructBegin();
18828
      while (true)
18829
      {
18830
        field = iprot.readFieldBegin();
18831
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18832
          break;
18833
        }
18834
        switch (field.id) {
18835
          case 0: // SUCCESS
18836
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18837
              {
18838
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18839
                this.success = new ArrayList<Vendor>(_list36.size);
18840
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18841
                {
18842
                  Vendor _elem38; // required
18843
                  _elem38 = new Vendor();
18844
                  _elem38.read(iprot);
18845
                  this.success.add(_elem38);
18846
                }
18847
                iprot.readListEnd();
18848
              }
18849
            } else { 
18850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18851
            }
18852
            break;
18853
          default:
18854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18855
        }
18856
        iprot.readFieldEnd();
18857
      }
18858
      iprot.readStructEnd();
18859
      validate();
18860
    }
18861
 
18862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18863
      oprot.writeStructBegin(STRUCT_DESC);
18864
 
18865
      if (this.isSetSuccess()) {
18866
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18867
        {
18868
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18869
          for (Vendor _iter39 : this.success)
18870
          {
18871
            _iter39.write(oprot);
18872
          }
18873
          oprot.writeListEnd();
18874
        }
18875
        oprot.writeFieldEnd();
18876
      }
18877
      oprot.writeFieldStop();
18878
      oprot.writeStructEnd();
18879
    }
18880
 
18881
    @Override
18882
    public String toString() {
18883
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
18884
      boolean first = true;
18885
 
18886
      sb.append("success:");
18887
      if (this.success == null) {
18888
        sb.append("null");
18889
      } else {
18890
        sb.append(this.success);
18891
      }
18892
      first = false;
18893
      sb.append(")");
18894
      return sb.toString();
18895
    }
18896
 
18897
    public void validate() throws org.apache.thrift.TException {
18898
      // check for required fields
18899
    }
18900
 
18901
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18902
      try {
18903
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18904
      } catch (org.apache.thrift.TException te) {
18905
        throw new java.io.IOException(te);
18906
      }
18907
    }
18908
 
18909
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18910
      try {
18911
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18912
      } catch (org.apache.thrift.TException te) {
18913
        throw new java.io.IOException(te);
18914
      }
18915
    }
18916
 
18917
  }
18918
 
18919
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
18920
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
18921
 
18922
    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);
18923
    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);
18924
 
18925
    private String key; // required
18926
    private VendorItemMapping vendorItemMapping; // required
18927
 
18928
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18929
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18930
      KEY((short)1, "key"),
18931
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
18932
 
18933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18934
 
18935
      static {
18936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18937
          byName.put(field.getFieldName(), field);
18938
        }
18939
      }
18940
 
18941
      /**
18942
       * Find the _Fields constant that matches fieldId, or null if its not found.
18943
       */
18944
      public static _Fields findByThriftId(int fieldId) {
18945
        switch(fieldId) {
18946
          case 1: // KEY
18947
            return KEY;
18948
          case 2: // VENDOR_ITEM_MAPPING
18949
            return VENDOR_ITEM_MAPPING;
18950
          default:
18951
            return null;
18952
        }
18953
      }
18954
 
18955
      /**
18956
       * Find the _Fields constant that matches fieldId, throwing an exception
18957
       * if it is not found.
18958
       */
18959
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18960
        _Fields fields = findByThriftId(fieldId);
18961
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18962
        return fields;
18963
      }
18964
 
18965
      /**
18966
       * Find the _Fields constant that matches name, or null if its not found.
18967
       */
18968
      public static _Fields findByName(String name) {
18969
        return byName.get(name);
18970
      }
18971
 
18972
      private final short _thriftId;
18973
      private final String _fieldName;
18974
 
18975
      _Fields(short thriftId, String fieldName) {
18976
        _thriftId = thriftId;
18977
        _fieldName = fieldName;
18978
      }
18979
 
18980
      public short getThriftFieldId() {
18981
        return _thriftId;
18982
      }
18983
 
18984
      public String getFieldName() {
18985
        return _fieldName;
18986
      }
18987
    }
18988
 
18989
    // isset id assignments
18990
 
18991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18992
    static {
18993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18994
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18996
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18997
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
18998
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18999
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
19000
    }
19001
 
19002
    public addVendorItemMapping_args() {
19003
    }
19004
 
19005
    public addVendorItemMapping_args(
19006
      String key,
19007
      VendorItemMapping vendorItemMapping)
19008
    {
19009
      this();
19010
      this.key = key;
19011
      this.vendorItemMapping = vendorItemMapping;
19012
    }
19013
 
19014
    /**
19015
     * Performs a deep copy on <i>other</i>.
19016
     */
19017
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
19018
      if (other.isSetKey()) {
19019
        this.key = other.key;
19020
      }
19021
      if (other.isSetVendorItemMapping()) {
19022
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
19023
      }
19024
    }
19025
 
19026
    public addVendorItemMapping_args deepCopy() {
19027
      return new addVendorItemMapping_args(this);
19028
    }
19029
 
19030
    @Override
19031
    public void clear() {
19032
      this.key = null;
19033
      this.vendorItemMapping = null;
19034
    }
19035
 
19036
    public String getKey() {
19037
      return this.key;
19038
    }
19039
 
19040
    public void setKey(String key) {
19041
      this.key = key;
19042
    }
19043
 
19044
    public void unsetKey() {
19045
      this.key = null;
19046
    }
19047
 
19048
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
19049
    public boolean isSetKey() {
19050
      return this.key != null;
19051
    }
19052
 
19053
    public void setKeyIsSet(boolean value) {
19054
      if (!value) {
19055
        this.key = null;
19056
      }
19057
    }
19058
 
19059
    public VendorItemMapping getVendorItemMapping() {
19060
      return this.vendorItemMapping;
19061
    }
19062
 
19063
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
19064
      this.vendorItemMapping = vendorItemMapping;
19065
    }
19066
 
19067
    public void unsetVendorItemMapping() {
19068
      this.vendorItemMapping = null;
19069
    }
19070
 
19071
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
19072
    public boolean isSetVendorItemMapping() {
19073
      return this.vendorItemMapping != null;
19074
    }
19075
 
19076
    public void setVendorItemMappingIsSet(boolean value) {
19077
      if (!value) {
19078
        this.vendorItemMapping = null;
19079
      }
19080
    }
19081
 
19082
    public void setFieldValue(_Fields field, Object value) {
19083
      switch (field) {
19084
      case KEY:
19085
        if (value == null) {
19086
          unsetKey();
19087
        } else {
19088
          setKey((String)value);
19089
        }
19090
        break;
19091
 
19092
      case VENDOR_ITEM_MAPPING:
19093
        if (value == null) {
19094
          unsetVendorItemMapping();
19095
        } else {
19096
          setVendorItemMapping((VendorItemMapping)value);
19097
        }
19098
        break;
19099
 
19100
      }
19101
    }
19102
 
19103
    public Object getFieldValue(_Fields field) {
19104
      switch (field) {
19105
      case KEY:
19106
        return getKey();
19107
 
19108
      case VENDOR_ITEM_MAPPING:
19109
        return getVendorItemMapping();
19110
 
19111
      }
19112
      throw new IllegalStateException();
19113
    }
19114
 
19115
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19116
    public boolean isSet(_Fields field) {
19117
      if (field == null) {
19118
        throw new IllegalArgumentException();
19119
      }
19120
 
19121
      switch (field) {
19122
      case KEY:
19123
        return isSetKey();
19124
      case VENDOR_ITEM_MAPPING:
19125
        return isSetVendorItemMapping();
19126
      }
19127
      throw new IllegalStateException();
19128
    }
19129
 
19130
    @Override
19131
    public boolean equals(Object that) {
19132
      if (that == null)
19133
        return false;
19134
      if (that instanceof addVendorItemMapping_args)
19135
        return this.equals((addVendorItemMapping_args)that);
19136
      return false;
19137
    }
19138
 
19139
    public boolean equals(addVendorItemMapping_args that) {
19140
      if (that == null)
19141
        return false;
19142
 
19143
      boolean this_present_key = true && this.isSetKey();
19144
      boolean that_present_key = true && that.isSetKey();
19145
      if (this_present_key || that_present_key) {
19146
        if (!(this_present_key && that_present_key))
19147
          return false;
19148
        if (!this.key.equals(that.key))
19149
          return false;
19150
      }
19151
 
19152
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
19153
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
19154
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
19155
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
19156
          return false;
19157
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
19158
          return false;
19159
      }
19160
 
19161
      return true;
19162
    }
19163
 
19164
    @Override
19165
    public int hashCode() {
19166
      return 0;
19167
    }
19168
 
19169
    public int compareTo(addVendorItemMapping_args other) {
19170
      if (!getClass().equals(other.getClass())) {
19171
        return getClass().getName().compareTo(other.getClass().getName());
19172
      }
19173
 
19174
      int lastComparison = 0;
19175
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
19176
 
19177
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
19178
      if (lastComparison != 0) {
19179
        return lastComparison;
19180
      }
19181
      if (isSetKey()) {
19182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
19183
        if (lastComparison != 0) {
19184
          return lastComparison;
19185
        }
19186
      }
19187
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
19188
      if (lastComparison != 0) {
19189
        return lastComparison;
19190
      }
19191
      if (isSetVendorItemMapping()) {
19192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
19193
        if (lastComparison != 0) {
19194
          return lastComparison;
19195
        }
19196
      }
19197
      return 0;
19198
    }
19199
 
19200
    public _Fields fieldForId(int fieldId) {
19201
      return _Fields.findByThriftId(fieldId);
19202
    }
19203
 
19204
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19205
      org.apache.thrift.protocol.TField field;
19206
      iprot.readStructBegin();
19207
      while (true)
19208
      {
19209
        field = iprot.readFieldBegin();
19210
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19211
          break;
19212
        }
19213
        switch (field.id) {
19214
          case 1: // KEY
19215
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19216
              this.key = iprot.readString();
19217
            } else { 
19218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19219
            }
19220
            break;
19221
          case 2: // VENDOR_ITEM_MAPPING
19222
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19223
              this.vendorItemMapping = new VendorItemMapping();
19224
              this.vendorItemMapping.read(iprot);
19225
            } else { 
19226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19227
            }
19228
            break;
19229
          default:
19230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19231
        }
19232
        iprot.readFieldEnd();
19233
      }
19234
      iprot.readStructEnd();
19235
      validate();
19236
    }
19237
 
19238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19239
      validate();
19240
 
19241
      oprot.writeStructBegin(STRUCT_DESC);
19242
      if (this.key != null) {
19243
        oprot.writeFieldBegin(KEY_FIELD_DESC);
19244
        oprot.writeString(this.key);
19245
        oprot.writeFieldEnd();
19246
      }
19247
      if (this.vendorItemMapping != null) {
19248
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
19249
        this.vendorItemMapping.write(oprot);
19250
        oprot.writeFieldEnd();
19251
      }
19252
      oprot.writeFieldStop();
19253
      oprot.writeStructEnd();
19254
    }
19255
 
19256
    @Override
19257
    public String toString() {
19258
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
19259
      boolean first = true;
19260
 
19261
      sb.append("key:");
19262
      if (this.key == null) {
19263
        sb.append("null");
19264
      } else {
19265
        sb.append(this.key);
19266
      }
19267
      first = false;
19268
      if (!first) sb.append(", ");
19269
      sb.append("vendorItemMapping:");
19270
      if (this.vendorItemMapping == null) {
19271
        sb.append("null");
19272
      } else {
19273
        sb.append(this.vendorItemMapping);
19274
      }
19275
      first = false;
19276
      sb.append(")");
19277
      return sb.toString();
19278
    }
19279
 
19280
    public void validate() throws org.apache.thrift.TException {
19281
      // check for required fields
19282
    }
19283
 
19284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19285
      try {
19286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19287
      } catch (org.apache.thrift.TException te) {
19288
        throw new java.io.IOException(te);
19289
      }
19290
    }
19291
 
19292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19293
      try {
19294
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19295
      } catch (org.apache.thrift.TException te) {
19296
        throw new java.io.IOException(te);
19297
      }
19298
    }
19299
 
19300
  }
19301
 
19302
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
19303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
19304
 
19305
    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);
19306
 
19307
    private InventoryServiceException cex; // required
19308
 
19309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19311
      CEX((short)1, "cex");
19312
 
19313
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19314
 
19315
      static {
19316
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19317
          byName.put(field.getFieldName(), field);
19318
        }
19319
      }
19320
 
19321
      /**
19322
       * Find the _Fields constant that matches fieldId, or null if its not found.
19323
       */
19324
      public static _Fields findByThriftId(int fieldId) {
19325
        switch(fieldId) {
19326
          case 1: // CEX
19327
            return CEX;
19328
          default:
19329
            return null;
19330
        }
19331
      }
19332
 
19333
      /**
19334
       * Find the _Fields constant that matches fieldId, throwing an exception
19335
       * if it is not found.
19336
       */
19337
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19338
        _Fields fields = findByThriftId(fieldId);
19339
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19340
        return fields;
19341
      }
19342
 
19343
      /**
19344
       * Find the _Fields constant that matches name, or null if its not found.
19345
       */
19346
      public static _Fields findByName(String name) {
19347
        return byName.get(name);
19348
      }
19349
 
19350
      private final short _thriftId;
19351
      private final String _fieldName;
19352
 
19353
      _Fields(short thriftId, String fieldName) {
19354
        _thriftId = thriftId;
19355
        _fieldName = fieldName;
19356
      }
19357
 
19358
      public short getThriftFieldId() {
19359
        return _thriftId;
19360
      }
19361
 
19362
      public String getFieldName() {
19363
        return _fieldName;
19364
      }
19365
    }
19366
 
19367
    // isset id assignments
19368
 
19369
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19370
    static {
19371
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19372
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
19376
    }
19377
 
19378
    public addVendorItemMapping_result() {
19379
    }
19380
 
19381
    public addVendorItemMapping_result(
19382
      InventoryServiceException cex)
19383
    {
19384
      this();
19385
      this.cex = cex;
19386
    }
19387
 
19388
    /**
19389
     * Performs a deep copy on <i>other</i>.
19390
     */
19391
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
19392
      if (other.isSetCex()) {
19393
        this.cex = new InventoryServiceException(other.cex);
19394
      }
19395
    }
19396
 
19397
    public addVendorItemMapping_result deepCopy() {
19398
      return new addVendorItemMapping_result(this);
19399
    }
19400
 
19401
    @Override
19402
    public void clear() {
19403
      this.cex = null;
19404
    }
19405
 
19406
    public InventoryServiceException getCex() {
19407
      return this.cex;
19408
    }
19409
 
19410
    public void setCex(InventoryServiceException cex) {
19411
      this.cex = cex;
19412
    }
19413
 
19414
    public void unsetCex() {
19415
      this.cex = null;
19416
    }
19417
 
19418
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19419
    public boolean isSetCex() {
19420
      return this.cex != null;
19421
    }
19422
 
19423
    public void setCexIsSet(boolean value) {
19424
      if (!value) {
19425
        this.cex = null;
19426
      }
19427
    }
19428
 
19429
    public void setFieldValue(_Fields field, Object value) {
19430
      switch (field) {
19431
      case CEX:
19432
        if (value == null) {
19433
          unsetCex();
19434
        } else {
19435
          setCex((InventoryServiceException)value);
19436
        }
19437
        break;
19438
 
19439
      }
19440
    }
19441
 
19442
    public Object getFieldValue(_Fields field) {
19443
      switch (field) {
19444
      case CEX:
19445
        return getCex();
19446
 
19447
      }
19448
      throw new IllegalStateException();
19449
    }
19450
 
19451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19452
    public boolean isSet(_Fields field) {
19453
      if (field == null) {
19454
        throw new IllegalArgumentException();
19455
      }
19456
 
19457
      switch (field) {
19458
      case CEX:
19459
        return isSetCex();
19460
      }
19461
      throw new IllegalStateException();
19462
    }
19463
 
19464
    @Override
19465
    public boolean equals(Object that) {
19466
      if (that == null)
19467
        return false;
19468
      if (that instanceof addVendorItemMapping_result)
19469
        return this.equals((addVendorItemMapping_result)that);
19470
      return false;
19471
    }
19472
 
19473
    public boolean equals(addVendorItemMapping_result that) {
19474
      if (that == null)
19475
        return false;
19476
 
19477
      boolean this_present_cex = true && this.isSetCex();
19478
      boolean that_present_cex = true && that.isSetCex();
19479
      if (this_present_cex || that_present_cex) {
19480
        if (!(this_present_cex && that_present_cex))
19481
          return false;
19482
        if (!this.cex.equals(that.cex))
19483
          return false;
19484
      }
19485
 
19486
      return true;
19487
    }
19488
 
19489
    @Override
19490
    public int hashCode() {
19491
      return 0;
19492
    }
19493
 
19494
    public int compareTo(addVendorItemMapping_result other) {
19495
      if (!getClass().equals(other.getClass())) {
19496
        return getClass().getName().compareTo(other.getClass().getName());
19497
      }
19498
 
19499
      int lastComparison = 0;
19500
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
19501
 
19502
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19503
      if (lastComparison != 0) {
19504
        return lastComparison;
19505
      }
19506
      if (isSetCex()) {
19507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19508
        if (lastComparison != 0) {
19509
          return lastComparison;
19510
        }
19511
      }
19512
      return 0;
19513
    }
19514
 
19515
    public _Fields fieldForId(int fieldId) {
19516
      return _Fields.findByThriftId(fieldId);
19517
    }
19518
 
19519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19520
      org.apache.thrift.protocol.TField field;
19521
      iprot.readStructBegin();
19522
      while (true)
19523
      {
19524
        field = iprot.readFieldBegin();
19525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19526
          break;
19527
        }
19528
        switch (field.id) {
19529
          case 1: // CEX
19530
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19531
              this.cex = new InventoryServiceException();
19532
              this.cex.read(iprot);
19533
            } else { 
19534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19535
            }
19536
            break;
19537
          default:
19538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19539
        }
19540
        iprot.readFieldEnd();
19541
      }
19542
      iprot.readStructEnd();
19543
      validate();
19544
    }
19545
 
19546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19547
      oprot.writeStructBegin(STRUCT_DESC);
19548
 
19549
      if (this.isSetCex()) {
19550
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19551
        this.cex.write(oprot);
19552
        oprot.writeFieldEnd();
19553
      }
19554
      oprot.writeFieldStop();
19555
      oprot.writeStructEnd();
19556
    }
19557
 
19558
    @Override
19559
    public String toString() {
19560
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
19561
      boolean first = true;
19562
 
19563
      sb.append("cex:");
19564
      if (this.cex == null) {
19565
        sb.append("null");
19566
      } else {
19567
        sb.append(this.cex);
19568
      }
19569
      first = false;
19570
      sb.append(")");
19571
      return sb.toString();
19572
    }
19573
 
19574
    public void validate() throws org.apache.thrift.TException {
19575
      // check for required fields
19576
    }
19577
 
19578
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19579
      try {
19580
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19581
      } catch (org.apache.thrift.TException te) {
19582
        throw new java.io.IOException(te);
19583
      }
19584
    }
19585
 
19586
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19587
      try {
19588
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19589
      } catch (org.apache.thrift.TException te) {
19590
        throw new java.io.IOException(te);
19591
      }
19592
    }
19593
 
19594
  }
19595
 
19596
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
19597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
19598
 
19599
    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);
19600
 
19601
    private long itemId; // required
19602
 
19603
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19604
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19605
      ITEM_ID((short)1, "itemId");
19606
 
19607
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19608
 
19609
      static {
19610
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19611
          byName.put(field.getFieldName(), field);
19612
        }
19613
      }
19614
 
19615
      /**
19616
       * Find the _Fields constant that matches fieldId, or null if its not found.
19617
       */
19618
      public static _Fields findByThriftId(int fieldId) {
19619
        switch(fieldId) {
19620
          case 1: // ITEM_ID
19621
            return ITEM_ID;
19622
          default:
19623
            return null;
19624
        }
19625
      }
19626
 
19627
      /**
19628
       * Find the _Fields constant that matches fieldId, throwing an exception
19629
       * if it is not found.
19630
       */
19631
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19632
        _Fields fields = findByThriftId(fieldId);
19633
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19634
        return fields;
19635
      }
19636
 
19637
      /**
19638
       * Find the _Fields constant that matches name, or null if its not found.
19639
       */
19640
      public static _Fields findByName(String name) {
19641
        return byName.get(name);
19642
      }
19643
 
19644
      private final short _thriftId;
19645
      private final String _fieldName;
19646
 
19647
      _Fields(short thriftId, String fieldName) {
19648
        _thriftId = thriftId;
19649
        _fieldName = fieldName;
19650
      }
19651
 
19652
      public short getThriftFieldId() {
19653
        return _thriftId;
19654
      }
19655
 
19656
      public String getFieldName() {
19657
        return _fieldName;
19658
      }
19659
    }
19660
 
19661
    // isset id assignments
19662
    private static final int __ITEMID_ISSET_ID = 0;
19663
    private BitSet __isset_bit_vector = new BitSet(1);
19664
 
19665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19666
    static {
19667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19668
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
19672
    }
19673
 
19674
    public getVendorItemMappings_args() {
19675
    }
19676
 
19677
    public getVendorItemMappings_args(
19678
      long itemId)
19679
    {
19680
      this();
19681
      this.itemId = itemId;
19682
      setItemIdIsSet(true);
19683
    }
19684
 
19685
    /**
19686
     * Performs a deep copy on <i>other</i>.
19687
     */
19688
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
19689
      __isset_bit_vector.clear();
19690
      __isset_bit_vector.or(other.__isset_bit_vector);
19691
      this.itemId = other.itemId;
19692
    }
19693
 
19694
    public getVendorItemMappings_args deepCopy() {
19695
      return new getVendorItemMappings_args(this);
19696
    }
19697
 
19698
    @Override
19699
    public void clear() {
19700
      setItemIdIsSet(false);
19701
      this.itemId = 0;
19702
    }
19703
 
19704
    public long getItemId() {
19705
      return this.itemId;
19706
    }
19707
 
19708
    public void setItemId(long itemId) {
19709
      this.itemId = itemId;
19710
      setItemIdIsSet(true);
19711
    }
19712
 
19713
    public void unsetItemId() {
19714
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19715
    }
19716
 
19717
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19718
    public boolean isSetItemId() {
19719
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19720
    }
19721
 
19722
    public void setItemIdIsSet(boolean value) {
19723
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19724
    }
19725
 
19726
    public void setFieldValue(_Fields field, Object value) {
19727
      switch (field) {
19728
      case ITEM_ID:
19729
        if (value == null) {
19730
          unsetItemId();
19731
        } else {
19732
          setItemId((Long)value);
19733
        }
19734
        break;
19735
 
19736
      }
19737
    }
19738
 
19739
    public Object getFieldValue(_Fields field) {
19740
      switch (field) {
19741
      case ITEM_ID:
19742
        return Long.valueOf(getItemId());
19743
 
19744
      }
19745
      throw new IllegalStateException();
19746
    }
19747
 
19748
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19749
    public boolean isSet(_Fields field) {
19750
      if (field == null) {
19751
        throw new IllegalArgumentException();
19752
      }
19753
 
19754
      switch (field) {
19755
      case ITEM_ID:
19756
        return isSetItemId();
19757
      }
19758
      throw new IllegalStateException();
19759
    }
19760
 
19761
    @Override
19762
    public boolean equals(Object that) {
19763
      if (that == null)
19764
        return false;
19765
      if (that instanceof getVendorItemMappings_args)
19766
        return this.equals((getVendorItemMappings_args)that);
19767
      return false;
19768
    }
19769
 
19770
    public boolean equals(getVendorItemMappings_args that) {
19771
      if (that == null)
19772
        return false;
19773
 
19774
      boolean this_present_itemId = true;
19775
      boolean that_present_itemId = true;
19776
      if (this_present_itemId || that_present_itemId) {
19777
        if (!(this_present_itemId && that_present_itemId))
19778
          return false;
19779
        if (this.itemId != that.itemId)
19780
          return false;
19781
      }
19782
 
19783
      return true;
19784
    }
19785
 
19786
    @Override
19787
    public int hashCode() {
19788
      return 0;
19789
    }
19790
 
19791
    public int compareTo(getVendorItemMappings_args other) {
19792
      if (!getClass().equals(other.getClass())) {
19793
        return getClass().getName().compareTo(other.getClass().getName());
19794
      }
19795
 
19796
      int lastComparison = 0;
19797
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
19798
 
19799
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19800
      if (lastComparison != 0) {
19801
        return lastComparison;
19802
      }
19803
      if (isSetItemId()) {
19804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19805
        if (lastComparison != 0) {
19806
          return lastComparison;
19807
        }
19808
      }
19809
      return 0;
19810
    }
19811
 
19812
    public _Fields fieldForId(int fieldId) {
19813
      return _Fields.findByThriftId(fieldId);
19814
    }
19815
 
19816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19817
      org.apache.thrift.protocol.TField field;
19818
      iprot.readStructBegin();
19819
      while (true)
19820
      {
19821
        field = iprot.readFieldBegin();
19822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19823
          break;
19824
        }
19825
        switch (field.id) {
19826
          case 1: // ITEM_ID
19827
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19828
              this.itemId = iprot.readI64();
19829
              setItemIdIsSet(true);
19830
            } else { 
19831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19832
            }
19833
            break;
19834
          default:
19835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19836
        }
19837
        iprot.readFieldEnd();
19838
      }
19839
      iprot.readStructEnd();
19840
      validate();
19841
    }
19842
 
19843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19844
      validate();
19845
 
19846
      oprot.writeStructBegin(STRUCT_DESC);
19847
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19848
      oprot.writeI64(this.itemId);
19849
      oprot.writeFieldEnd();
19850
      oprot.writeFieldStop();
19851
      oprot.writeStructEnd();
19852
    }
19853
 
19854
    @Override
19855
    public String toString() {
19856
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
19857
      boolean first = true;
19858
 
19859
      sb.append("itemId:");
19860
      sb.append(this.itemId);
19861
      first = false;
19862
      sb.append(")");
19863
      return sb.toString();
19864
    }
19865
 
19866
    public void validate() throws org.apache.thrift.TException {
19867
      // check for required fields
19868
    }
19869
 
19870
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19871
      try {
19872
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19873
      } catch (org.apache.thrift.TException te) {
19874
        throw new java.io.IOException(te);
19875
      }
19876
    }
19877
 
19878
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19879
      try {
19880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19881
      } catch (org.apache.thrift.TException te) {
19882
        throw new java.io.IOException(te);
19883
      }
19884
    }
19885
 
19886
  }
19887
 
19888
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
19889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
19890
 
19891
    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);
19892
    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);
19893
 
19894
    private List<VendorItemMapping> success; // required
19895
    private InventoryServiceException cex; // required
19896
 
19897
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19898
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19899
      SUCCESS((short)0, "success"),
19900
      CEX((short)1, "cex");
19901
 
19902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19903
 
19904
      static {
19905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19906
          byName.put(field.getFieldName(), field);
19907
        }
19908
      }
19909
 
19910
      /**
19911
       * Find the _Fields constant that matches fieldId, or null if its not found.
19912
       */
19913
      public static _Fields findByThriftId(int fieldId) {
19914
        switch(fieldId) {
19915
          case 0: // SUCCESS
19916
            return SUCCESS;
19917
          case 1: // CEX
19918
            return CEX;
19919
          default:
19920
            return null;
19921
        }
19922
      }
19923
 
19924
      /**
19925
       * Find the _Fields constant that matches fieldId, throwing an exception
19926
       * if it is not found.
19927
       */
19928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19929
        _Fields fields = findByThriftId(fieldId);
19930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19931
        return fields;
19932
      }
19933
 
19934
      /**
19935
       * Find the _Fields constant that matches name, or null if its not found.
19936
       */
19937
      public static _Fields findByName(String name) {
19938
        return byName.get(name);
19939
      }
19940
 
19941
      private final short _thriftId;
19942
      private final String _fieldName;
19943
 
19944
      _Fields(short thriftId, String fieldName) {
19945
        _thriftId = thriftId;
19946
        _fieldName = fieldName;
19947
      }
19948
 
19949
      public short getThriftFieldId() {
19950
        return _thriftId;
19951
      }
19952
 
19953
      public String getFieldName() {
19954
        return _fieldName;
19955
      }
19956
    }
19957
 
19958
    // isset id assignments
19959
 
19960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19961
    static {
19962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19963
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19964
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19965
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
19966
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19967
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
19970
    }
19971
 
19972
    public getVendorItemMappings_result() {
19973
    }
19974
 
19975
    public getVendorItemMappings_result(
19976
      List<VendorItemMapping> success,
19977
      InventoryServiceException cex)
19978
    {
19979
      this();
19980
      this.success = success;
19981
      this.cex = cex;
19982
    }
19983
 
19984
    /**
19985
     * Performs a deep copy on <i>other</i>.
19986
     */
19987
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
19988
      if (other.isSetSuccess()) {
19989
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
19990
        for (VendorItemMapping other_element : other.success) {
19991
          __this__success.add(new VendorItemMapping(other_element));
19992
        }
19993
        this.success = __this__success;
19994
      }
19995
      if (other.isSetCex()) {
19996
        this.cex = new InventoryServiceException(other.cex);
19997
      }
19998
    }
19999
 
20000
    public getVendorItemMappings_result deepCopy() {
20001
      return new getVendorItemMappings_result(this);
20002
    }
20003
 
20004
    @Override
20005
    public void clear() {
20006
      this.success = null;
20007
      this.cex = null;
20008
    }
20009
 
20010
    public int getSuccessSize() {
20011
      return (this.success == null) ? 0 : this.success.size();
20012
    }
20013
 
20014
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
20015
      return (this.success == null) ? null : this.success.iterator();
20016
    }
20017
 
20018
    public void addToSuccess(VendorItemMapping elem) {
20019
      if (this.success == null) {
20020
        this.success = new ArrayList<VendorItemMapping>();
20021
      }
20022
      this.success.add(elem);
20023
    }
20024
 
20025
    public List<VendorItemMapping> getSuccess() {
20026
      return this.success;
20027
    }
20028
 
20029
    public void setSuccess(List<VendorItemMapping> success) {
20030
      this.success = success;
20031
    }
20032
 
20033
    public void unsetSuccess() {
20034
      this.success = null;
20035
    }
20036
 
20037
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20038
    public boolean isSetSuccess() {
20039
      return this.success != null;
20040
    }
20041
 
20042
    public void setSuccessIsSet(boolean value) {
20043
      if (!value) {
20044
        this.success = null;
20045
      }
20046
    }
20047
 
20048
    public InventoryServiceException getCex() {
20049
      return this.cex;
20050
    }
20051
 
20052
    public void setCex(InventoryServiceException cex) {
20053
      this.cex = cex;
20054
    }
20055
 
20056
    public void unsetCex() {
20057
      this.cex = null;
20058
    }
20059
 
20060
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20061
    public boolean isSetCex() {
20062
      return this.cex != null;
20063
    }
20064
 
20065
    public void setCexIsSet(boolean value) {
20066
      if (!value) {
20067
        this.cex = null;
20068
      }
20069
    }
20070
 
20071
    public void setFieldValue(_Fields field, Object value) {
20072
      switch (field) {
20073
      case SUCCESS:
20074
        if (value == null) {
20075
          unsetSuccess();
20076
        } else {
20077
          setSuccess((List<VendorItemMapping>)value);
20078
        }
20079
        break;
20080
 
20081
      case CEX:
20082
        if (value == null) {
20083
          unsetCex();
20084
        } else {
20085
          setCex((InventoryServiceException)value);
20086
        }
20087
        break;
20088
 
20089
      }
20090
    }
20091
 
20092
    public Object getFieldValue(_Fields field) {
20093
      switch (field) {
20094
      case SUCCESS:
20095
        return getSuccess();
20096
 
20097
      case CEX:
20098
        return getCex();
20099
 
20100
      }
20101
      throw new IllegalStateException();
20102
    }
20103
 
20104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20105
    public boolean isSet(_Fields field) {
20106
      if (field == null) {
20107
        throw new IllegalArgumentException();
20108
      }
20109
 
20110
      switch (field) {
20111
      case SUCCESS:
20112
        return isSetSuccess();
20113
      case CEX:
20114
        return isSetCex();
20115
      }
20116
      throw new IllegalStateException();
20117
    }
20118
 
20119
    @Override
20120
    public boolean equals(Object that) {
20121
      if (that == null)
20122
        return false;
20123
      if (that instanceof getVendorItemMappings_result)
20124
        return this.equals((getVendorItemMappings_result)that);
20125
      return false;
20126
    }
20127
 
20128
    public boolean equals(getVendorItemMappings_result that) {
20129
      if (that == null)
20130
        return false;
20131
 
20132
      boolean this_present_success = true && this.isSetSuccess();
20133
      boolean that_present_success = true && that.isSetSuccess();
20134
      if (this_present_success || that_present_success) {
20135
        if (!(this_present_success && that_present_success))
20136
          return false;
20137
        if (!this.success.equals(that.success))
20138
          return false;
20139
      }
20140
 
20141
      boolean this_present_cex = true && this.isSetCex();
20142
      boolean that_present_cex = true && that.isSetCex();
20143
      if (this_present_cex || that_present_cex) {
20144
        if (!(this_present_cex && that_present_cex))
20145
          return false;
20146
        if (!this.cex.equals(that.cex))
20147
          return false;
20148
      }
20149
 
20150
      return true;
20151
    }
20152
 
20153
    @Override
20154
    public int hashCode() {
20155
      return 0;
20156
    }
20157
 
20158
    public int compareTo(getVendorItemMappings_result other) {
20159
      if (!getClass().equals(other.getClass())) {
20160
        return getClass().getName().compareTo(other.getClass().getName());
20161
      }
20162
 
20163
      int lastComparison = 0;
20164
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
20165
 
20166
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20167
      if (lastComparison != 0) {
20168
        return lastComparison;
20169
      }
20170
      if (isSetSuccess()) {
20171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20172
        if (lastComparison != 0) {
20173
          return lastComparison;
20174
        }
20175
      }
20176
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20177
      if (lastComparison != 0) {
20178
        return lastComparison;
20179
      }
20180
      if (isSetCex()) {
20181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20182
        if (lastComparison != 0) {
20183
          return lastComparison;
20184
        }
20185
      }
20186
      return 0;
20187
    }
20188
 
20189
    public _Fields fieldForId(int fieldId) {
20190
      return _Fields.findByThriftId(fieldId);
20191
    }
20192
 
20193
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20194
      org.apache.thrift.protocol.TField field;
20195
      iprot.readStructBegin();
20196
      while (true)
20197
      {
20198
        field = iprot.readFieldBegin();
20199
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20200
          break;
20201
        }
20202
        switch (field.id) {
20203
          case 0: // SUCCESS
20204
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20205
              {
20206
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
20207
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
20208
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
20209
                {
20210
                  VendorItemMapping _elem42; // required
20211
                  _elem42 = new VendorItemMapping();
20212
                  _elem42.read(iprot);
20213
                  this.success.add(_elem42);
20214
                }
20215
                iprot.readListEnd();
20216
              }
20217
            } else { 
20218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20219
            }
20220
            break;
20221
          case 1: // CEX
20222
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20223
              this.cex = new InventoryServiceException();
20224
              this.cex.read(iprot);
20225
            } else { 
20226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20227
            }
20228
            break;
20229
          default:
20230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20231
        }
20232
        iprot.readFieldEnd();
20233
      }
20234
      iprot.readStructEnd();
20235
      validate();
20236
    }
20237
 
20238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20239
      oprot.writeStructBegin(STRUCT_DESC);
20240
 
20241
      if (this.isSetSuccess()) {
20242
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20243
        {
20244
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20245
          for (VendorItemMapping _iter43 : this.success)
20246
          {
20247
            _iter43.write(oprot);
20248
          }
20249
          oprot.writeListEnd();
20250
        }
20251
        oprot.writeFieldEnd();
20252
      } else if (this.isSetCex()) {
20253
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20254
        this.cex.write(oprot);
20255
        oprot.writeFieldEnd();
20256
      }
20257
      oprot.writeFieldStop();
20258
      oprot.writeStructEnd();
20259
    }
20260
 
20261
    @Override
20262
    public String toString() {
20263
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
20264
      boolean first = true;
20265
 
20266
      sb.append("success:");
20267
      if (this.success == null) {
20268
        sb.append("null");
20269
      } else {
20270
        sb.append(this.success);
20271
      }
20272
      first = false;
20273
      if (!first) sb.append(", ");
20274
      sb.append("cex:");
20275
      if (this.cex == null) {
20276
        sb.append("null");
20277
      } else {
20278
        sb.append(this.cex);
20279
      }
20280
      first = false;
20281
      sb.append(")");
20282
      return sb.toString();
20283
    }
20284
 
20285
    public void validate() throws org.apache.thrift.TException {
20286
      // check for required fields
20287
    }
20288
 
20289
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20290
      try {
20291
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20292
      } catch (org.apache.thrift.TException te) {
20293
        throw new java.io.IOException(te);
20294
      }
20295
    }
20296
 
20297
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20298
      try {
20299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20300
      } catch (org.apache.thrift.TException te) {
20301
        throw new java.io.IOException(te);
20302
      }
20303
    }
20304
 
20305
  }
20306
 
20307
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
20308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
20309
 
20310
    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);
20311
 
20312
    private long vendorid; // required
20313
 
20314
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20315
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20316
      VENDORID((short)1, "vendorid");
20317
 
20318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20319
 
20320
      static {
20321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20322
          byName.put(field.getFieldName(), field);
20323
        }
20324
      }
20325
 
20326
      /**
20327
       * Find the _Fields constant that matches fieldId, or null if its not found.
20328
       */
20329
      public static _Fields findByThriftId(int fieldId) {
20330
        switch(fieldId) {
20331
          case 1: // VENDORID
20332
            return VENDORID;
20333
          default:
20334
            return null;
20335
        }
20336
      }
20337
 
20338
      /**
20339
       * Find the _Fields constant that matches fieldId, throwing an exception
20340
       * if it is not found.
20341
       */
20342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20343
        _Fields fields = findByThriftId(fieldId);
20344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20345
        return fields;
20346
      }
20347
 
20348
      /**
20349
       * Find the _Fields constant that matches name, or null if its not found.
20350
       */
20351
      public static _Fields findByName(String name) {
20352
        return byName.get(name);
20353
      }
20354
 
20355
      private final short _thriftId;
20356
      private final String _fieldName;
20357
 
20358
      _Fields(short thriftId, String fieldName) {
20359
        _thriftId = thriftId;
20360
        _fieldName = fieldName;
20361
      }
20362
 
20363
      public short getThriftFieldId() {
20364
        return _thriftId;
20365
      }
20366
 
20367
      public String getFieldName() {
20368
        return _fieldName;
20369
      }
20370
    }
20371
 
20372
    // isset id assignments
20373
    private static final int __VENDORID_ISSET_ID = 0;
20374
    private BitSet __isset_bit_vector = new BitSet(1);
20375
 
20376
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20377
    static {
20378
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20379
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
20383
    }
20384
 
20385
    public getPendingOrdersInventory_args() {
20386
    }
20387
 
20388
    public getPendingOrdersInventory_args(
20389
      long vendorid)
20390
    {
20391
      this();
20392
      this.vendorid = vendorid;
20393
      setVendoridIsSet(true);
20394
    }
20395
 
20396
    /**
20397
     * Performs a deep copy on <i>other</i>.
20398
     */
20399
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
20400
      __isset_bit_vector.clear();
20401
      __isset_bit_vector.or(other.__isset_bit_vector);
20402
      this.vendorid = other.vendorid;
20403
    }
20404
 
20405
    public getPendingOrdersInventory_args deepCopy() {
20406
      return new getPendingOrdersInventory_args(this);
20407
    }
20408
 
20409
    @Override
20410
    public void clear() {
20411
      setVendoridIsSet(false);
20412
      this.vendorid = 0;
20413
    }
20414
 
20415
    public long getVendorid() {
20416
      return this.vendorid;
20417
    }
20418
 
20419
    public void setVendorid(long vendorid) {
20420
      this.vendorid = vendorid;
20421
      setVendoridIsSet(true);
20422
    }
20423
 
20424
    public void unsetVendorid() {
20425
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20426
    }
20427
 
20428
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
20429
    public boolean isSetVendorid() {
20430
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20431
    }
20432
 
20433
    public void setVendoridIsSet(boolean value) {
20434
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20435
    }
20436
 
20437
    public void setFieldValue(_Fields field, Object value) {
20438
      switch (field) {
20439
      case VENDORID:
20440
        if (value == null) {
20441
          unsetVendorid();
20442
        } else {
20443
          setVendorid((Long)value);
20444
        }
20445
        break;
20446
 
20447
      }
20448
    }
20449
 
20450
    public Object getFieldValue(_Fields field) {
20451
      switch (field) {
20452
      case VENDORID:
20453
        return Long.valueOf(getVendorid());
20454
 
20455
      }
20456
      throw new IllegalStateException();
20457
    }
20458
 
20459
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20460
    public boolean isSet(_Fields field) {
20461
      if (field == null) {
20462
        throw new IllegalArgumentException();
20463
      }
20464
 
20465
      switch (field) {
20466
      case VENDORID:
20467
        return isSetVendorid();
20468
      }
20469
      throw new IllegalStateException();
20470
    }
20471
 
20472
    @Override
20473
    public boolean equals(Object that) {
20474
      if (that == null)
20475
        return false;
20476
      if (that instanceof getPendingOrdersInventory_args)
20477
        return this.equals((getPendingOrdersInventory_args)that);
20478
      return false;
20479
    }
20480
 
20481
    public boolean equals(getPendingOrdersInventory_args that) {
20482
      if (that == null)
20483
        return false;
20484
 
20485
      boolean this_present_vendorid = true;
20486
      boolean that_present_vendorid = true;
20487
      if (this_present_vendorid || that_present_vendorid) {
20488
        if (!(this_present_vendorid && that_present_vendorid))
20489
          return false;
20490
        if (this.vendorid != that.vendorid)
20491
          return false;
20492
      }
20493
 
20494
      return true;
20495
    }
20496
 
20497
    @Override
20498
    public int hashCode() {
20499
      return 0;
20500
    }
20501
 
20502
    public int compareTo(getPendingOrdersInventory_args other) {
20503
      if (!getClass().equals(other.getClass())) {
20504
        return getClass().getName().compareTo(other.getClass().getName());
20505
      }
20506
 
20507
      int lastComparison = 0;
20508
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
20509
 
20510
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
20511
      if (lastComparison != 0) {
20512
        return lastComparison;
20513
      }
20514
      if (isSetVendorid()) {
20515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
20516
        if (lastComparison != 0) {
20517
          return lastComparison;
20518
        }
20519
      }
20520
      return 0;
20521
    }
20522
 
20523
    public _Fields fieldForId(int fieldId) {
20524
      return _Fields.findByThriftId(fieldId);
20525
    }
20526
 
20527
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20528
      org.apache.thrift.protocol.TField field;
20529
      iprot.readStructBegin();
20530
      while (true)
20531
      {
20532
        field = iprot.readFieldBegin();
20533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20534
          break;
20535
        }
20536
        switch (field.id) {
20537
          case 1: // VENDORID
20538
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20539
              this.vendorid = iprot.readI64();
20540
              setVendoridIsSet(true);
20541
            } else { 
20542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20543
            }
20544
            break;
20545
          default:
20546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20547
        }
20548
        iprot.readFieldEnd();
20549
      }
20550
      iprot.readStructEnd();
20551
      validate();
20552
    }
20553
 
20554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20555
      validate();
20556
 
20557
      oprot.writeStructBegin(STRUCT_DESC);
20558
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
20559
      oprot.writeI64(this.vendorid);
20560
      oprot.writeFieldEnd();
20561
      oprot.writeFieldStop();
20562
      oprot.writeStructEnd();
20563
    }
20564
 
20565
    @Override
20566
    public String toString() {
20567
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
20568
      boolean first = true;
20569
 
20570
      sb.append("vendorid:");
20571
      sb.append(this.vendorid);
20572
      first = false;
20573
      sb.append(")");
20574
      return sb.toString();
20575
    }
20576
 
20577
    public void validate() throws org.apache.thrift.TException {
20578
      // check for required fields
20579
    }
20580
 
20581
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20582
      try {
20583
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20584
      } catch (org.apache.thrift.TException te) {
20585
        throw new java.io.IOException(te);
20586
      }
20587
    }
20588
 
20589
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20590
      try {
20591
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20592
        __isset_bit_vector = new BitSet(1);
20593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20594
      } catch (org.apache.thrift.TException te) {
20595
        throw new java.io.IOException(te);
20596
      }
20597
    }
20598
 
20599
  }
20600
 
20601
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
20602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
20603
 
20604
    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);
20605
 
20606
    private List<AvailableAndReservedStock> success; // required
20607
 
20608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20610
      SUCCESS((short)0, "success");
20611
 
20612
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20613
 
20614
      static {
20615
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20616
          byName.put(field.getFieldName(), field);
20617
        }
20618
      }
20619
 
20620
      /**
20621
       * Find the _Fields constant that matches fieldId, or null if its not found.
20622
       */
20623
      public static _Fields findByThriftId(int fieldId) {
20624
        switch(fieldId) {
20625
          case 0: // SUCCESS
20626
            return SUCCESS;
20627
          default:
20628
            return null;
20629
        }
20630
      }
20631
 
20632
      /**
20633
       * Find the _Fields constant that matches fieldId, throwing an exception
20634
       * if it is not found.
20635
       */
20636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20637
        _Fields fields = findByThriftId(fieldId);
20638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20639
        return fields;
20640
      }
20641
 
20642
      /**
20643
       * Find the _Fields constant that matches name, or null if its not found.
20644
       */
20645
      public static _Fields findByName(String name) {
20646
        return byName.get(name);
20647
      }
20648
 
20649
      private final short _thriftId;
20650
      private final String _fieldName;
20651
 
20652
      _Fields(short thriftId, String fieldName) {
20653
        _thriftId = thriftId;
20654
        _fieldName = fieldName;
20655
      }
20656
 
20657
      public short getThriftFieldId() {
20658
        return _thriftId;
20659
      }
20660
 
20661
      public String getFieldName() {
20662
        return _fieldName;
20663
      }
20664
    }
20665
 
20666
    // isset id assignments
20667
 
20668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20669
    static {
20670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20671
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20672
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20673
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
20674
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20675
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
20676
    }
20677
 
20678
    public getPendingOrdersInventory_result() {
20679
    }
20680
 
20681
    public getPendingOrdersInventory_result(
20682
      List<AvailableAndReservedStock> success)
20683
    {
20684
      this();
20685
      this.success = success;
20686
    }
20687
 
20688
    /**
20689
     * Performs a deep copy on <i>other</i>.
20690
     */
20691
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
20692
      if (other.isSetSuccess()) {
20693
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
20694
        for (AvailableAndReservedStock other_element : other.success) {
20695
          __this__success.add(new AvailableAndReservedStock(other_element));
20696
        }
20697
        this.success = __this__success;
20698
      }
20699
    }
20700
 
20701
    public getPendingOrdersInventory_result deepCopy() {
20702
      return new getPendingOrdersInventory_result(this);
20703
    }
20704
 
20705
    @Override
20706
    public void clear() {
20707
      this.success = null;
20708
    }
20709
 
20710
    public int getSuccessSize() {
20711
      return (this.success == null) ? 0 : this.success.size();
20712
    }
20713
 
20714
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
20715
      return (this.success == null) ? null : this.success.iterator();
20716
    }
20717
 
20718
    public void addToSuccess(AvailableAndReservedStock elem) {
20719
      if (this.success == null) {
20720
        this.success = new ArrayList<AvailableAndReservedStock>();
20721
      }
20722
      this.success.add(elem);
20723
    }
20724
 
20725
    public List<AvailableAndReservedStock> getSuccess() {
20726
      return this.success;
20727
    }
20728
 
20729
    public void setSuccess(List<AvailableAndReservedStock> success) {
20730
      this.success = success;
20731
    }
20732
 
20733
    public void unsetSuccess() {
20734
      this.success = null;
20735
    }
20736
 
20737
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20738
    public boolean isSetSuccess() {
20739
      return this.success != null;
20740
    }
20741
 
20742
    public void setSuccessIsSet(boolean value) {
20743
      if (!value) {
20744
        this.success = null;
20745
      }
20746
    }
20747
 
20748
    public void setFieldValue(_Fields field, Object value) {
20749
      switch (field) {
20750
      case SUCCESS:
20751
        if (value == null) {
20752
          unsetSuccess();
20753
        } else {
20754
          setSuccess((List<AvailableAndReservedStock>)value);
20755
        }
20756
        break;
20757
 
20758
      }
20759
    }
20760
 
20761
    public Object getFieldValue(_Fields field) {
20762
      switch (field) {
20763
      case SUCCESS:
20764
        return getSuccess();
20765
 
20766
      }
20767
      throw new IllegalStateException();
20768
    }
20769
 
20770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20771
    public boolean isSet(_Fields field) {
20772
      if (field == null) {
20773
        throw new IllegalArgumentException();
20774
      }
20775
 
20776
      switch (field) {
20777
      case SUCCESS:
20778
        return isSetSuccess();
20779
      }
20780
      throw new IllegalStateException();
20781
    }
20782
 
20783
    @Override
20784
    public boolean equals(Object that) {
20785
      if (that == null)
20786
        return false;
20787
      if (that instanceof getPendingOrdersInventory_result)
20788
        return this.equals((getPendingOrdersInventory_result)that);
20789
      return false;
20790
    }
20791
 
20792
    public boolean equals(getPendingOrdersInventory_result that) {
20793
      if (that == null)
20794
        return false;
20795
 
20796
      boolean this_present_success = true && this.isSetSuccess();
20797
      boolean that_present_success = true && that.isSetSuccess();
20798
      if (this_present_success || that_present_success) {
20799
        if (!(this_present_success && that_present_success))
20800
          return false;
20801
        if (!this.success.equals(that.success))
20802
          return false;
20803
      }
20804
 
20805
      return true;
20806
    }
20807
 
20808
    @Override
20809
    public int hashCode() {
20810
      return 0;
20811
    }
20812
 
20813
    public int compareTo(getPendingOrdersInventory_result other) {
20814
      if (!getClass().equals(other.getClass())) {
20815
        return getClass().getName().compareTo(other.getClass().getName());
20816
      }
20817
 
20818
      int lastComparison = 0;
20819
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
20820
 
20821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20822
      if (lastComparison != 0) {
20823
        return lastComparison;
20824
      }
20825
      if (isSetSuccess()) {
20826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20827
        if (lastComparison != 0) {
20828
          return lastComparison;
20829
        }
20830
      }
20831
      return 0;
20832
    }
20833
 
20834
    public _Fields fieldForId(int fieldId) {
20835
      return _Fields.findByThriftId(fieldId);
20836
    }
20837
 
20838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20839
      org.apache.thrift.protocol.TField field;
20840
      iprot.readStructBegin();
20841
      while (true)
20842
      {
20843
        field = iprot.readFieldBegin();
20844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20845
          break;
20846
        }
20847
        switch (field.id) {
20848
          case 0: // SUCCESS
20849
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20850
              {
20851
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
20852
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
20853
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20854
                {
20855
                  AvailableAndReservedStock _elem46; // required
20856
                  _elem46 = new AvailableAndReservedStock();
20857
                  _elem46.read(iprot);
20858
                  this.success.add(_elem46);
20859
                }
20860
                iprot.readListEnd();
20861
              }
20862
            } else { 
20863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20864
            }
20865
            break;
20866
          default:
20867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20868
        }
20869
        iprot.readFieldEnd();
20870
      }
20871
      iprot.readStructEnd();
20872
      validate();
20873
    }
20874
 
20875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20876
      oprot.writeStructBegin(STRUCT_DESC);
20877
 
20878
      if (this.isSetSuccess()) {
20879
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20880
        {
20881
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20882
          for (AvailableAndReservedStock _iter47 : this.success)
20883
          {
20884
            _iter47.write(oprot);
20885
          }
20886
          oprot.writeListEnd();
20887
        }
20888
        oprot.writeFieldEnd();
20889
      }
20890
      oprot.writeFieldStop();
20891
      oprot.writeStructEnd();
20892
    }
20893
 
20894
    @Override
20895
    public String toString() {
20896
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
20897
      boolean first = true;
20898
 
20899
      sb.append("success:");
20900
      if (this.success == null) {
20901
        sb.append("null");
20902
      } else {
20903
        sb.append(this.success);
20904
      }
20905
      first = false;
20906
      sb.append(")");
20907
      return sb.toString();
20908
    }
20909
 
20910
    public void validate() throws org.apache.thrift.TException {
20911
      // check for required fields
20912
    }
20913
 
20914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20915
      try {
20916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20917
      } catch (org.apache.thrift.TException te) {
20918
        throw new java.io.IOException(te);
20919
      }
20920
    }
20921
 
20922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20923
      try {
20924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20925
      } catch (org.apache.thrift.TException te) {
20926
        throw new java.io.IOException(te);
20927
      }
20928
    }
20929
 
20930
  }
20931
 
20932
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
20933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
20934
 
20935
    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);
20936
    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);
20937
    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);
20938
    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);
20939
    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);
20940
 
20941
    private WarehouseType warehouseType; // required
20942
    private InventoryType inventoryType; // required
20943
    private long vendorId; // required
20944
    private long billingWarehouseId; // required
20945
    private long shippingWarehouseId; // required
20946
 
20947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20949
      /**
20950
       * 
20951
       * @see WarehouseType
20952
       */
20953
      WAREHOUSE_TYPE((short)1, "warehouseType"),
20954
      /**
20955
       * 
20956
       * @see InventoryType
20957
       */
20958
      INVENTORY_TYPE((short)2, "inventoryType"),
20959
      VENDOR_ID((short)3, "vendorId"),
20960
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
20961
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
20962
 
20963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20964
 
20965
      static {
20966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20967
          byName.put(field.getFieldName(), field);
20968
        }
20969
      }
20970
 
20971
      /**
20972
       * Find the _Fields constant that matches fieldId, or null if its not found.
20973
       */
20974
      public static _Fields findByThriftId(int fieldId) {
20975
        switch(fieldId) {
20976
          case 1: // WAREHOUSE_TYPE
20977
            return WAREHOUSE_TYPE;
20978
          case 2: // INVENTORY_TYPE
20979
            return INVENTORY_TYPE;
20980
          case 3: // VENDOR_ID
20981
            return VENDOR_ID;
20982
          case 4: // BILLING_WAREHOUSE_ID
20983
            return BILLING_WAREHOUSE_ID;
20984
          case 5: // SHIPPING_WAREHOUSE_ID
20985
            return SHIPPING_WAREHOUSE_ID;
20986
          default:
20987
            return null;
20988
        }
20989
      }
20990
 
20991
      /**
20992
       * Find the _Fields constant that matches fieldId, throwing an exception
20993
       * if it is not found.
20994
       */
20995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20996
        _Fields fields = findByThriftId(fieldId);
20997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20998
        return fields;
20999
      }
21000
 
21001
      /**
21002
       * Find the _Fields constant that matches name, or null if its not found.
21003
       */
21004
      public static _Fields findByName(String name) {
21005
        return byName.get(name);
21006
      }
21007
 
21008
      private final short _thriftId;
21009
      private final String _fieldName;
21010
 
21011
      _Fields(short thriftId, String fieldName) {
21012
        _thriftId = thriftId;
21013
        _fieldName = fieldName;
21014
      }
21015
 
21016
      public short getThriftFieldId() {
21017
        return _thriftId;
21018
      }
21019
 
21020
      public String getFieldName() {
21021
        return _fieldName;
21022
      }
21023
    }
21024
 
21025
    // isset id assignments
21026
    private static final int __VENDORID_ISSET_ID = 0;
21027
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
21028
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
21029
    private BitSet __isset_bit_vector = new BitSet(3);
21030
 
21031
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21032
    static {
21033
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21034
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21035
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
21036
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21037
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
21038
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21040
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21042
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
21046
    }
21047
 
21048
    public getWarehouses_args() {
21049
    }
21050
 
21051
    public getWarehouses_args(
21052
      WarehouseType warehouseType,
21053
      InventoryType inventoryType,
21054
      long vendorId,
21055
      long billingWarehouseId,
21056
      long shippingWarehouseId)
21057
    {
21058
      this();
21059
      this.warehouseType = warehouseType;
21060
      this.inventoryType = inventoryType;
21061
      this.vendorId = vendorId;
21062
      setVendorIdIsSet(true);
21063
      this.billingWarehouseId = billingWarehouseId;
21064
      setBillingWarehouseIdIsSet(true);
21065
      this.shippingWarehouseId = shippingWarehouseId;
21066
      setShippingWarehouseIdIsSet(true);
21067
    }
21068
 
21069
    /**
21070
     * Performs a deep copy on <i>other</i>.
21071
     */
21072
    public getWarehouses_args(getWarehouses_args other) {
21073
      __isset_bit_vector.clear();
21074
      __isset_bit_vector.or(other.__isset_bit_vector);
21075
      if (other.isSetWarehouseType()) {
21076
        this.warehouseType = other.warehouseType;
21077
      }
21078
      if (other.isSetInventoryType()) {
21079
        this.inventoryType = other.inventoryType;
21080
      }
21081
      this.vendorId = other.vendorId;
21082
      this.billingWarehouseId = other.billingWarehouseId;
21083
      this.shippingWarehouseId = other.shippingWarehouseId;
21084
    }
21085
 
21086
    public getWarehouses_args deepCopy() {
21087
      return new getWarehouses_args(this);
21088
    }
21089
 
21090
    @Override
21091
    public void clear() {
21092
      this.warehouseType = null;
21093
      this.inventoryType = null;
21094
      setVendorIdIsSet(false);
21095
      this.vendorId = 0;
21096
      setBillingWarehouseIdIsSet(false);
21097
      this.billingWarehouseId = 0;
21098
      setShippingWarehouseIdIsSet(false);
21099
      this.shippingWarehouseId = 0;
21100
    }
21101
 
21102
    /**
21103
     * 
21104
     * @see WarehouseType
21105
     */
21106
    public WarehouseType getWarehouseType() {
21107
      return this.warehouseType;
21108
    }
21109
 
21110
    /**
21111
     * 
21112
     * @see WarehouseType
21113
     */
21114
    public void setWarehouseType(WarehouseType warehouseType) {
21115
      this.warehouseType = warehouseType;
21116
    }
21117
 
21118
    public void unsetWarehouseType() {
21119
      this.warehouseType = null;
21120
    }
21121
 
21122
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
21123
    public boolean isSetWarehouseType() {
21124
      return this.warehouseType != null;
21125
    }
21126
 
21127
    public void setWarehouseTypeIsSet(boolean value) {
21128
      if (!value) {
21129
        this.warehouseType = null;
21130
      }
21131
    }
21132
 
21133
    /**
21134
     * 
21135
     * @see InventoryType
21136
     */
21137
    public InventoryType getInventoryType() {
21138
      return this.inventoryType;
21139
    }
21140
 
21141
    /**
21142
     * 
21143
     * @see InventoryType
21144
     */
21145
    public void setInventoryType(InventoryType inventoryType) {
21146
      this.inventoryType = inventoryType;
21147
    }
21148
 
21149
    public void unsetInventoryType() {
21150
      this.inventoryType = null;
21151
    }
21152
 
21153
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
21154
    public boolean isSetInventoryType() {
21155
      return this.inventoryType != null;
21156
    }
21157
 
21158
    public void setInventoryTypeIsSet(boolean value) {
21159
      if (!value) {
21160
        this.inventoryType = null;
21161
      }
21162
    }
21163
 
21164
    public long getVendorId() {
21165
      return this.vendorId;
21166
    }
21167
 
21168
    public void setVendorId(long vendorId) {
21169
      this.vendorId = vendorId;
21170
      setVendorIdIsSet(true);
21171
    }
21172
 
21173
    public void unsetVendorId() {
21174
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21175
    }
21176
 
21177
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21178
    public boolean isSetVendorId() {
21179
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21180
    }
21181
 
21182
    public void setVendorIdIsSet(boolean value) {
21183
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21184
    }
21185
 
21186
    public long getBillingWarehouseId() {
21187
      return this.billingWarehouseId;
21188
    }
21189
 
21190
    public void setBillingWarehouseId(long billingWarehouseId) {
21191
      this.billingWarehouseId = billingWarehouseId;
21192
      setBillingWarehouseIdIsSet(true);
21193
    }
21194
 
21195
    public void unsetBillingWarehouseId() {
21196
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21197
    }
21198
 
21199
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21200
    public boolean isSetBillingWarehouseId() {
21201
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21202
    }
21203
 
21204
    public void setBillingWarehouseIdIsSet(boolean value) {
21205
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21206
    }
21207
 
21208
    public long getShippingWarehouseId() {
21209
      return this.shippingWarehouseId;
21210
    }
21211
 
21212
    public void setShippingWarehouseId(long shippingWarehouseId) {
21213
      this.shippingWarehouseId = shippingWarehouseId;
21214
      setShippingWarehouseIdIsSet(true);
21215
    }
21216
 
21217
    public void unsetShippingWarehouseId() {
21218
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
21219
    }
21220
 
21221
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
21222
    public boolean isSetShippingWarehouseId() {
21223
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
21224
    }
21225
 
21226
    public void setShippingWarehouseIdIsSet(boolean value) {
21227
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
21228
    }
21229
 
21230
    public void setFieldValue(_Fields field, Object value) {
21231
      switch (field) {
21232
      case WAREHOUSE_TYPE:
21233
        if (value == null) {
21234
          unsetWarehouseType();
21235
        } else {
21236
          setWarehouseType((WarehouseType)value);
21237
        }
21238
        break;
21239
 
21240
      case INVENTORY_TYPE:
21241
        if (value == null) {
21242
          unsetInventoryType();
21243
        } else {
21244
          setInventoryType((InventoryType)value);
21245
        }
21246
        break;
21247
 
21248
      case VENDOR_ID:
21249
        if (value == null) {
21250
          unsetVendorId();
21251
        } else {
21252
          setVendorId((Long)value);
21253
        }
21254
        break;
21255
 
21256
      case BILLING_WAREHOUSE_ID:
21257
        if (value == null) {
21258
          unsetBillingWarehouseId();
21259
        } else {
21260
          setBillingWarehouseId((Long)value);
21261
        }
21262
        break;
21263
 
21264
      case SHIPPING_WAREHOUSE_ID:
21265
        if (value == null) {
21266
          unsetShippingWarehouseId();
21267
        } else {
21268
          setShippingWarehouseId((Long)value);
21269
        }
21270
        break;
21271
 
21272
      }
21273
    }
21274
 
21275
    public Object getFieldValue(_Fields field) {
21276
      switch (field) {
21277
      case WAREHOUSE_TYPE:
21278
        return getWarehouseType();
21279
 
21280
      case INVENTORY_TYPE:
21281
        return getInventoryType();
21282
 
21283
      case VENDOR_ID:
21284
        return Long.valueOf(getVendorId());
21285
 
21286
      case BILLING_WAREHOUSE_ID:
21287
        return Long.valueOf(getBillingWarehouseId());
21288
 
21289
      case SHIPPING_WAREHOUSE_ID:
21290
        return Long.valueOf(getShippingWarehouseId());
21291
 
21292
      }
21293
      throw new IllegalStateException();
21294
    }
21295
 
21296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21297
    public boolean isSet(_Fields field) {
21298
      if (field == null) {
21299
        throw new IllegalArgumentException();
21300
      }
21301
 
21302
      switch (field) {
21303
      case WAREHOUSE_TYPE:
21304
        return isSetWarehouseType();
21305
      case INVENTORY_TYPE:
21306
        return isSetInventoryType();
21307
      case VENDOR_ID:
21308
        return isSetVendorId();
21309
      case BILLING_WAREHOUSE_ID:
21310
        return isSetBillingWarehouseId();
21311
      case SHIPPING_WAREHOUSE_ID:
21312
        return isSetShippingWarehouseId();
21313
      }
21314
      throw new IllegalStateException();
21315
    }
21316
 
21317
    @Override
21318
    public boolean equals(Object that) {
21319
      if (that == null)
21320
        return false;
21321
      if (that instanceof getWarehouses_args)
21322
        return this.equals((getWarehouses_args)that);
21323
      return false;
21324
    }
21325
 
21326
    public boolean equals(getWarehouses_args that) {
21327
      if (that == null)
21328
        return false;
21329
 
21330
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
21331
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
21332
      if (this_present_warehouseType || that_present_warehouseType) {
21333
        if (!(this_present_warehouseType && that_present_warehouseType))
21334
          return false;
21335
        if (!this.warehouseType.equals(that.warehouseType))
21336
          return false;
21337
      }
21338
 
21339
      boolean this_present_inventoryType = true && this.isSetInventoryType();
21340
      boolean that_present_inventoryType = true && that.isSetInventoryType();
21341
      if (this_present_inventoryType || that_present_inventoryType) {
21342
        if (!(this_present_inventoryType && that_present_inventoryType))
21343
          return false;
21344
        if (!this.inventoryType.equals(that.inventoryType))
21345
          return false;
21346
      }
21347
 
21348
      boolean this_present_vendorId = true;
21349
      boolean that_present_vendorId = true;
21350
      if (this_present_vendorId || that_present_vendorId) {
21351
        if (!(this_present_vendorId && that_present_vendorId))
21352
          return false;
21353
        if (this.vendorId != that.vendorId)
21354
          return false;
21355
      }
21356
 
21357
      boolean this_present_billingWarehouseId = true;
21358
      boolean that_present_billingWarehouseId = true;
21359
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21360
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21361
          return false;
21362
        if (this.billingWarehouseId != that.billingWarehouseId)
21363
          return false;
21364
      }
21365
 
21366
      boolean this_present_shippingWarehouseId = true;
21367
      boolean that_present_shippingWarehouseId = true;
21368
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
21369
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
21370
          return false;
21371
        if (this.shippingWarehouseId != that.shippingWarehouseId)
21372
          return false;
21373
      }
21374
 
21375
      return true;
21376
    }
21377
 
21378
    @Override
21379
    public int hashCode() {
21380
      return 0;
21381
    }
21382
 
21383
    public int compareTo(getWarehouses_args other) {
21384
      if (!getClass().equals(other.getClass())) {
21385
        return getClass().getName().compareTo(other.getClass().getName());
21386
      }
21387
 
21388
      int lastComparison = 0;
21389
      getWarehouses_args typedOther = (getWarehouses_args)other;
21390
 
21391
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
21392
      if (lastComparison != 0) {
21393
        return lastComparison;
21394
      }
21395
      if (isSetWarehouseType()) {
21396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
21397
        if (lastComparison != 0) {
21398
          return lastComparison;
21399
        }
21400
      }
21401
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
21402
      if (lastComparison != 0) {
21403
        return lastComparison;
21404
      }
21405
      if (isSetInventoryType()) {
21406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
21407
        if (lastComparison != 0) {
21408
          return lastComparison;
21409
        }
21410
      }
21411
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21412
      if (lastComparison != 0) {
21413
        return lastComparison;
21414
      }
21415
      if (isSetVendorId()) {
21416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21417
        if (lastComparison != 0) {
21418
          return lastComparison;
21419
        }
21420
      }
21421
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21422
      if (lastComparison != 0) {
21423
        return lastComparison;
21424
      }
21425
      if (isSetBillingWarehouseId()) {
21426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21427
        if (lastComparison != 0) {
21428
          return lastComparison;
21429
        }
21430
      }
21431
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
21432
      if (lastComparison != 0) {
21433
        return lastComparison;
21434
      }
21435
      if (isSetShippingWarehouseId()) {
21436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
21437
        if (lastComparison != 0) {
21438
          return lastComparison;
21439
        }
21440
      }
21441
      return 0;
21442
    }
21443
 
21444
    public _Fields fieldForId(int fieldId) {
21445
      return _Fields.findByThriftId(fieldId);
21446
    }
21447
 
21448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21449
      org.apache.thrift.protocol.TField field;
21450
      iprot.readStructBegin();
21451
      while (true)
21452
      {
21453
        field = iprot.readFieldBegin();
21454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21455
          break;
21456
        }
21457
        switch (field.id) {
21458
          case 1: // WAREHOUSE_TYPE
21459
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21460
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
21461
            } else { 
21462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21463
            }
21464
            break;
21465
          case 2: // INVENTORY_TYPE
21466
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21467
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
21468
            } else { 
21469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21470
            }
21471
            break;
21472
          case 3: // VENDOR_ID
21473
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21474
              this.vendorId = iprot.readI64();
21475
              setVendorIdIsSet(true);
21476
            } else { 
21477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21478
            }
21479
            break;
21480
          case 4: // BILLING_WAREHOUSE_ID
21481
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21482
              this.billingWarehouseId = iprot.readI64();
21483
              setBillingWarehouseIdIsSet(true);
21484
            } else { 
21485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21486
            }
21487
            break;
21488
          case 5: // SHIPPING_WAREHOUSE_ID
21489
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21490
              this.shippingWarehouseId = iprot.readI64();
21491
              setShippingWarehouseIdIsSet(true);
21492
            } else { 
21493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21494
            }
21495
            break;
21496
          default:
21497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21498
        }
21499
        iprot.readFieldEnd();
21500
      }
21501
      iprot.readStructEnd();
21502
      validate();
21503
    }
21504
 
21505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21506
      validate();
21507
 
21508
      oprot.writeStructBegin(STRUCT_DESC);
21509
      if (this.warehouseType != null) {
21510
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
21511
        oprot.writeI32(this.warehouseType.getValue());
21512
        oprot.writeFieldEnd();
21513
      }
21514
      if (this.inventoryType != null) {
21515
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
21516
        oprot.writeI32(this.inventoryType.getValue());
21517
        oprot.writeFieldEnd();
21518
      }
21519
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21520
      oprot.writeI64(this.vendorId);
21521
      oprot.writeFieldEnd();
21522
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21523
      oprot.writeI64(this.billingWarehouseId);
21524
      oprot.writeFieldEnd();
21525
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
21526
      oprot.writeI64(this.shippingWarehouseId);
21527
      oprot.writeFieldEnd();
21528
      oprot.writeFieldStop();
21529
      oprot.writeStructEnd();
21530
    }
21531
 
21532
    @Override
21533
    public String toString() {
21534
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
21535
      boolean first = true;
21536
 
21537
      sb.append("warehouseType:");
21538
      if (this.warehouseType == null) {
21539
        sb.append("null");
21540
      } else {
21541
        sb.append(this.warehouseType);
21542
      }
21543
      first = false;
21544
      if (!first) sb.append(", ");
21545
      sb.append("inventoryType:");
21546
      if (this.inventoryType == null) {
21547
        sb.append("null");
21548
      } else {
21549
        sb.append(this.inventoryType);
21550
      }
21551
      first = false;
21552
      if (!first) sb.append(", ");
21553
      sb.append("vendorId:");
21554
      sb.append(this.vendorId);
21555
      first = false;
21556
      if (!first) sb.append(", ");
21557
      sb.append("billingWarehouseId:");
21558
      sb.append(this.billingWarehouseId);
21559
      first = false;
21560
      if (!first) sb.append(", ");
21561
      sb.append("shippingWarehouseId:");
21562
      sb.append(this.shippingWarehouseId);
21563
      first = false;
21564
      sb.append(")");
21565
      return sb.toString();
21566
    }
21567
 
21568
    public void validate() throws org.apache.thrift.TException {
21569
      // check for required fields
21570
    }
21571
 
21572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21573
      try {
21574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21575
      } catch (org.apache.thrift.TException te) {
21576
        throw new java.io.IOException(te);
21577
      }
21578
    }
21579
 
21580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21581
      try {
21582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21583
      } catch (org.apache.thrift.TException te) {
21584
        throw new java.io.IOException(te);
21585
      }
21586
    }
21587
 
21588
  }
21589
 
21590
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
21591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
21592
 
21593
    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);
21594
 
21595
    private List<Warehouse> success; // required
21596
 
21597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21599
      SUCCESS((short)0, "success");
21600
 
21601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21602
 
21603
      static {
21604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21605
          byName.put(field.getFieldName(), field);
21606
        }
21607
      }
21608
 
21609
      /**
21610
       * Find the _Fields constant that matches fieldId, or null if its not found.
21611
       */
21612
      public static _Fields findByThriftId(int fieldId) {
21613
        switch(fieldId) {
21614
          case 0: // SUCCESS
21615
            return SUCCESS;
21616
          default:
21617
            return null;
21618
        }
21619
      }
21620
 
21621
      /**
21622
       * Find the _Fields constant that matches fieldId, throwing an exception
21623
       * if it is not found.
21624
       */
21625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21626
        _Fields fields = findByThriftId(fieldId);
21627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21628
        return fields;
21629
      }
21630
 
21631
      /**
21632
       * Find the _Fields constant that matches name, or null if its not found.
21633
       */
21634
      public static _Fields findByName(String name) {
21635
        return byName.get(name);
21636
      }
21637
 
21638
      private final short _thriftId;
21639
      private final String _fieldName;
21640
 
21641
      _Fields(short thriftId, String fieldName) {
21642
        _thriftId = thriftId;
21643
        _fieldName = fieldName;
21644
      }
21645
 
21646
      public short getThriftFieldId() {
21647
        return _thriftId;
21648
      }
21649
 
21650
      public String getFieldName() {
21651
        return _fieldName;
21652
      }
21653
    }
21654
 
21655
    // isset id assignments
21656
 
21657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21658
    static {
21659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21660
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21661
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21662
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
21663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
21665
    }
21666
 
21667
    public getWarehouses_result() {
21668
    }
21669
 
21670
    public getWarehouses_result(
21671
      List<Warehouse> success)
21672
    {
21673
      this();
21674
      this.success = success;
21675
    }
21676
 
21677
    /**
21678
     * Performs a deep copy on <i>other</i>.
21679
     */
21680
    public getWarehouses_result(getWarehouses_result other) {
21681
      if (other.isSetSuccess()) {
21682
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
21683
        for (Warehouse other_element : other.success) {
21684
          __this__success.add(new Warehouse(other_element));
21685
        }
21686
        this.success = __this__success;
21687
      }
21688
    }
21689
 
21690
    public getWarehouses_result deepCopy() {
21691
      return new getWarehouses_result(this);
21692
    }
21693
 
21694
    @Override
21695
    public void clear() {
21696
      this.success = null;
21697
    }
21698
 
21699
    public int getSuccessSize() {
21700
      return (this.success == null) ? 0 : this.success.size();
21701
    }
21702
 
21703
    public java.util.Iterator<Warehouse> getSuccessIterator() {
21704
      return (this.success == null) ? null : this.success.iterator();
21705
    }
21706
 
21707
    public void addToSuccess(Warehouse elem) {
21708
      if (this.success == null) {
21709
        this.success = new ArrayList<Warehouse>();
21710
      }
21711
      this.success.add(elem);
21712
    }
21713
 
21714
    public List<Warehouse> getSuccess() {
21715
      return this.success;
21716
    }
21717
 
21718
    public void setSuccess(List<Warehouse> success) {
21719
      this.success = success;
21720
    }
21721
 
21722
    public void unsetSuccess() {
21723
      this.success = null;
21724
    }
21725
 
21726
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21727
    public boolean isSetSuccess() {
21728
      return this.success != null;
21729
    }
21730
 
21731
    public void setSuccessIsSet(boolean value) {
21732
      if (!value) {
21733
        this.success = null;
21734
      }
21735
    }
21736
 
21737
    public void setFieldValue(_Fields field, Object value) {
21738
      switch (field) {
21739
      case SUCCESS:
21740
        if (value == null) {
21741
          unsetSuccess();
21742
        } else {
21743
          setSuccess((List<Warehouse>)value);
21744
        }
21745
        break;
21746
 
21747
      }
21748
    }
21749
 
21750
    public Object getFieldValue(_Fields field) {
21751
      switch (field) {
21752
      case SUCCESS:
21753
        return getSuccess();
21754
 
21755
      }
21756
      throw new IllegalStateException();
21757
    }
21758
 
21759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21760
    public boolean isSet(_Fields field) {
21761
      if (field == null) {
21762
        throw new IllegalArgumentException();
21763
      }
21764
 
21765
      switch (field) {
21766
      case SUCCESS:
21767
        return isSetSuccess();
21768
      }
21769
      throw new IllegalStateException();
21770
    }
21771
 
21772
    @Override
21773
    public boolean equals(Object that) {
21774
      if (that == null)
21775
        return false;
21776
      if (that instanceof getWarehouses_result)
21777
        return this.equals((getWarehouses_result)that);
21778
      return false;
21779
    }
21780
 
21781
    public boolean equals(getWarehouses_result that) {
21782
      if (that == null)
21783
        return false;
21784
 
21785
      boolean this_present_success = true && this.isSetSuccess();
21786
      boolean that_present_success = true && that.isSetSuccess();
21787
      if (this_present_success || that_present_success) {
21788
        if (!(this_present_success && that_present_success))
21789
          return false;
21790
        if (!this.success.equals(that.success))
21791
          return false;
21792
      }
21793
 
21794
      return true;
21795
    }
21796
 
21797
    @Override
21798
    public int hashCode() {
21799
      return 0;
21800
    }
21801
 
21802
    public int compareTo(getWarehouses_result other) {
21803
      if (!getClass().equals(other.getClass())) {
21804
        return getClass().getName().compareTo(other.getClass().getName());
21805
      }
21806
 
21807
      int lastComparison = 0;
21808
      getWarehouses_result typedOther = (getWarehouses_result)other;
21809
 
21810
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21811
      if (lastComparison != 0) {
21812
        return lastComparison;
21813
      }
21814
      if (isSetSuccess()) {
21815
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21816
        if (lastComparison != 0) {
21817
          return lastComparison;
21818
        }
21819
      }
21820
      return 0;
21821
    }
21822
 
21823
    public _Fields fieldForId(int fieldId) {
21824
      return _Fields.findByThriftId(fieldId);
21825
    }
21826
 
21827
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21828
      org.apache.thrift.protocol.TField field;
21829
      iprot.readStructBegin();
21830
      while (true)
21831
      {
21832
        field = iprot.readFieldBegin();
21833
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21834
          break;
21835
        }
21836
        switch (field.id) {
21837
          case 0: // SUCCESS
21838
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21839
              {
21840
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21841
                this.success = new ArrayList<Warehouse>(_list48.size);
21842
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21843
                {
21844
                  Warehouse _elem50; // required
21845
                  _elem50 = new Warehouse();
21846
                  _elem50.read(iprot);
21847
                  this.success.add(_elem50);
21848
                }
21849
                iprot.readListEnd();
21850
              }
21851
            } else { 
21852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21853
            }
21854
            break;
21855
          default:
21856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21857
        }
21858
        iprot.readFieldEnd();
21859
      }
21860
      iprot.readStructEnd();
21861
      validate();
21862
    }
21863
 
21864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21865
      oprot.writeStructBegin(STRUCT_DESC);
21866
 
21867
      if (this.isSetSuccess()) {
21868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21869
        {
21870
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21871
          for (Warehouse _iter51 : this.success)
21872
          {
21873
            _iter51.write(oprot);
21874
          }
21875
          oprot.writeListEnd();
21876
        }
21877
        oprot.writeFieldEnd();
21878
      }
21879
      oprot.writeFieldStop();
21880
      oprot.writeStructEnd();
21881
    }
21882
 
21883
    @Override
21884
    public String toString() {
21885
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
21886
      boolean first = true;
21887
 
21888
      sb.append("success:");
21889
      if (this.success == null) {
21890
        sb.append("null");
21891
      } else {
21892
        sb.append(this.success);
21893
      }
21894
      first = false;
21895
      sb.append(")");
21896
      return sb.toString();
21897
    }
21898
 
21899
    public void validate() throws org.apache.thrift.TException {
21900
      // check for required fields
21901
    }
21902
 
21903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21904
      try {
21905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21906
      } catch (org.apache.thrift.TException te) {
21907
        throw new java.io.IOException(te);
21908
      }
21909
    }
21910
 
21911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21912
      try {
21913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21914
      } catch (org.apache.thrift.TException te) {
21915
        throw new java.io.IOException(te);
21916
      }
21917
    }
21918
 
21919
  }
21920
 
21921
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
21922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
21923
 
21924
    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);
21925
    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);
21926
    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);
21927
    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);
21928
 
21929
    private String itemKey; // required
21930
    private long vendorId; // required
21931
    private long quantity; // required
21932
    private long warehouseId; // required
21933
 
21934
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21935
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21936
      ITEM_KEY((short)1, "itemKey"),
21937
      VENDOR_ID((short)2, "vendorId"),
21938
      QUANTITY((short)3, "quantity"),
21939
      WAREHOUSE_ID((short)4, "warehouseId");
21940
 
21941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21942
 
21943
      static {
21944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21945
          byName.put(field.getFieldName(), field);
21946
        }
21947
      }
21948
 
21949
      /**
21950
       * Find the _Fields constant that matches fieldId, or null if its not found.
21951
       */
21952
      public static _Fields findByThriftId(int fieldId) {
21953
        switch(fieldId) {
21954
          case 1: // ITEM_KEY
21955
            return ITEM_KEY;
21956
          case 2: // VENDOR_ID
21957
            return VENDOR_ID;
21958
          case 3: // QUANTITY
21959
            return QUANTITY;
21960
          case 4: // WAREHOUSE_ID
21961
            return WAREHOUSE_ID;
21962
          default:
21963
            return null;
21964
        }
21965
      }
21966
 
21967
      /**
21968
       * Find the _Fields constant that matches fieldId, throwing an exception
21969
       * if it is not found.
21970
       */
21971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21972
        _Fields fields = findByThriftId(fieldId);
21973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21974
        return fields;
21975
      }
21976
 
21977
      /**
21978
       * Find the _Fields constant that matches name, or null if its not found.
21979
       */
21980
      public static _Fields findByName(String name) {
21981
        return byName.get(name);
21982
      }
21983
 
21984
      private final short _thriftId;
21985
      private final String _fieldName;
21986
 
21987
      _Fields(short thriftId, String fieldName) {
21988
        _thriftId = thriftId;
21989
        _fieldName = fieldName;
21990
      }
21991
 
21992
      public short getThriftFieldId() {
21993
        return _thriftId;
21994
      }
21995
 
21996
      public String getFieldName() {
21997
        return _fieldName;
21998
      }
21999
    }
22000
 
22001
    // isset id assignments
22002
    private static final int __VENDORID_ISSET_ID = 0;
22003
    private static final int __QUANTITY_ISSET_ID = 1;
22004
    private static final int __WAREHOUSEID_ISSET_ID = 2;
22005
    private BitSet __isset_bit_vector = new BitSet(3);
22006
 
22007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22008
    static {
22009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22010
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22012
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22014
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22016
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
22020
    }
22021
 
22022
    public resetAvailability_args() {
22023
    }
22024
 
22025
    public resetAvailability_args(
22026
      String itemKey,
22027
      long vendorId,
22028
      long quantity,
22029
      long warehouseId)
22030
    {
22031
      this();
22032
      this.itemKey = itemKey;
22033
      this.vendorId = vendorId;
22034
      setVendorIdIsSet(true);
22035
      this.quantity = quantity;
22036
      setQuantityIsSet(true);
22037
      this.warehouseId = warehouseId;
22038
      setWarehouseIdIsSet(true);
22039
    }
22040
 
22041
    /**
22042
     * Performs a deep copy on <i>other</i>.
22043
     */
22044
    public resetAvailability_args(resetAvailability_args other) {
22045
      __isset_bit_vector.clear();
22046
      __isset_bit_vector.or(other.__isset_bit_vector);
22047
      if (other.isSetItemKey()) {
22048
        this.itemKey = other.itemKey;
22049
      }
22050
      this.vendorId = other.vendorId;
22051
      this.quantity = other.quantity;
22052
      this.warehouseId = other.warehouseId;
22053
    }
22054
 
22055
    public resetAvailability_args deepCopy() {
22056
      return new resetAvailability_args(this);
22057
    }
22058
 
22059
    @Override
22060
    public void clear() {
22061
      this.itemKey = null;
22062
      setVendorIdIsSet(false);
22063
      this.vendorId = 0;
22064
      setQuantityIsSet(false);
22065
      this.quantity = 0;
22066
      setWarehouseIdIsSet(false);
22067
      this.warehouseId = 0;
22068
    }
22069
 
22070
    public String getItemKey() {
22071
      return this.itemKey;
22072
    }
22073
 
22074
    public void setItemKey(String itemKey) {
22075
      this.itemKey = itemKey;
22076
    }
22077
 
22078
    public void unsetItemKey() {
22079
      this.itemKey = null;
22080
    }
22081
 
22082
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
22083
    public boolean isSetItemKey() {
22084
      return this.itemKey != null;
22085
    }
22086
 
22087
    public void setItemKeyIsSet(boolean value) {
22088
      if (!value) {
22089
        this.itemKey = null;
22090
      }
22091
    }
22092
 
22093
    public long getVendorId() {
22094
      return this.vendorId;
22095
    }
22096
 
22097
    public void setVendorId(long vendorId) {
22098
      this.vendorId = vendorId;
22099
      setVendorIdIsSet(true);
22100
    }
22101
 
22102
    public void unsetVendorId() {
22103
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
22104
    }
22105
 
22106
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
22107
    public boolean isSetVendorId() {
22108
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
22109
    }
22110
 
22111
    public void setVendorIdIsSet(boolean value) {
22112
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
22113
    }
22114
 
22115
    public long getQuantity() {
22116
      return this.quantity;
22117
    }
22118
 
22119
    public void setQuantity(long quantity) {
22120
      this.quantity = quantity;
22121
      setQuantityIsSet(true);
22122
    }
22123
 
22124
    public void unsetQuantity() {
22125
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
22126
    }
22127
 
22128
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
22129
    public boolean isSetQuantity() {
22130
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
22131
    }
22132
 
22133
    public void setQuantityIsSet(boolean value) {
22134
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
22135
    }
22136
 
22137
    public long getWarehouseId() {
22138
      return this.warehouseId;
22139
    }
22140
 
22141
    public void setWarehouseId(long warehouseId) {
22142
      this.warehouseId = warehouseId;
22143
      setWarehouseIdIsSet(true);
22144
    }
22145
 
22146
    public void unsetWarehouseId() {
22147
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22148
    }
22149
 
22150
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22151
    public boolean isSetWarehouseId() {
22152
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22153
    }
22154
 
22155
    public void setWarehouseIdIsSet(boolean value) {
22156
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22157
    }
22158
 
22159
    public void setFieldValue(_Fields field, Object value) {
22160
      switch (field) {
22161
      case ITEM_KEY:
22162
        if (value == null) {
22163
          unsetItemKey();
22164
        } else {
22165
          setItemKey((String)value);
22166
        }
22167
        break;
22168
 
22169
      case VENDOR_ID:
22170
        if (value == null) {
22171
          unsetVendorId();
22172
        } else {
22173
          setVendorId((Long)value);
22174
        }
22175
        break;
22176
 
22177
      case QUANTITY:
22178
        if (value == null) {
22179
          unsetQuantity();
22180
        } else {
22181
          setQuantity((Long)value);
22182
        }
22183
        break;
22184
 
22185
      case WAREHOUSE_ID:
22186
        if (value == null) {
22187
          unsetWarehouseId();
22188
        } else {
22189
          setWarehouseId((Long)value);
22190
        }
22191
        break;
22192
 
22193
      }
22194
    }
22195
 
22196
    public Object getFieldValue(_Fields field) {
22197
      switch (field) {
22198
      case ITEM_KEY:
22199
        return getItemKey();
22200
 
22201
      case VENDOR_ID:
22202
        return Long.valueOf(getVendorId());
22203
 
22204
      case QUANTITY:
22205
        return Long.valueOf(getQuantity());
22206
 
22207
      case WAREHOUSE_ID:
22208
        return Long.valueOf(getWarehouseId());
22209
 
22210
      }
22211
      throw new IllegalStateException();
22212
    }
22213
 
22214
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22215
    public boolean isSet(_Fields field) {
22216
      if (field == null) {
22217
        throw new IllegalArgumentException();
22218
      }
22219
 
22220
      switch (field) {
22221
      case ITEM_KEY:
22222
        return isSetItemKey();
22223
      case VENDOR_ID:
22224
        return isSetVendorId();
22225
      case QUANTITY:
22226
        return isSetQuantity();
22227
      case WAREHOUSE_ID:
22228
        return isSetWarehouseId();
22229
      }
22230
      throw new IllegalStateException();
22231
    }
22232
 
22233
    @Override
22234
    public boolean equals(Object that) {
22235
      if (that == null)
22236
        return false;
22237
      if (that instanceof resetAvailability_args)
22238
        return this.equals((resetAvailability_args)that);
22239
      return false;
22240
    }
22241
 
22242
    public boolean equals(resetAvailability_args that) {
22243
      if (that == null)
22244
        return false;
22245
 
22246
      boolean this_present_itemKey = true && this.isSetItemKey();
22247
      boolean that_present_itemKey = true && that.isSetItemKey();
22248
      if (this_present_itemKey || that_present_itemKey) {
22249
        if (!(this_present_itemKey && that_present_itemKey))
22250
          return false;
22251
        if (!this.itemKey.equals(that.itemKey))
22252
          return false;
22253
      }
22254
 
22255
      boolean this_present_vendorId = true;
22256
      boolean that_present_vendorId = true;
22257
      if (this_present_vendorId || that_present_vendorId) {
22258
        if (!(this_present_vendorId && that_present_vendorId))
22259
          return false;
22260
        if (this.vendorId != that.vendorId)
22261
          return false;
22262
      }
22263
 
22264
      boolean this_present_quantity = true;
22265
      boolean that_present_quantity = true;
22266
      if (this_present_quantity || that_present_quantity) {
22267
        if (!(this_present_quantity && that_present_quantity))
22268
          return false;
22269
        if (this.quantity != that.quantity)
22270
          return false;
22271
      }
22272
 
22273
      boolean this_present_warehouseId = true;
22274
      boolean that_present_warehouseId = true;
22275
      if (this_present_warehouseId || that_present_warehouseId) {
22276
        if (!(this_present_warehouseId && that_present_warehouseId))
22277
          return false;
22278
        if (this.warehouseId != that.warehouseId)
22279
          return false;
22280
      }
22281
 
22282
      return true;
22283
    }
22284
 
22285
    @Override
22286
    public int hashCode() {
22287
      return 0;
22288
    }
22289
 
22290
    public int compareTo(resetAvailability_args other) {
22291
      if (!getClass().equals(other.getClass())) {
22292
        return getClass().getName().compareTo(other.getClass().getName());
22293
      }
22294
 
22295
      int lastComparison = 0;
22296
      resetAvailability_args typedOther = (resetAvailability_args)other;
22297
 
22298
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
22299
      if (lastComparison != 0) {
22300
        return lastComparison;
22301
      }
22302
      if (isSetItemKey()) {
22303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
22304
        if (lastComparison != 0) {
22305
          return lastComparison;
22306
        }
22307
      }
22308
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
22309
      if (lastComparison != 0) {
22310
        return lastComparison;
22311
      }
22312
      if (isSetVendorId()) {
22313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
22314
        if (lastComparison != 0) {
22315
          return lastComparison;
22316
        }
22317
      }
22318
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
22319
      if (lastComparison != 0) {
22320
        return lastComparison;
22321
      }
22322
      if (isSetQuantity()) {
22323
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
22324
        if (lastComparison != 0) {
22325
          return lastComparison;
22326
        }
22327
      }
22328
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22329
      if (lastComparison != 0) {
22330
        return lastComparison;
22331
      }
22332
      if (isSetWarehouseId()) {
22333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22334
        if (lastComparison != 0) {
22335
          return lastComparison;
22336
        }
22337
      }
22338
      return 0;
22339
    }
22340
 
22341
    public _Fields fieldForId(int fieldId) {
22342
      return _Fields.findByThriftId(fieldId);
22343
    }
22344
 
22345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22346
      org.apache.thrift.protocol.TField field;
22347
      iprot.readStructBegin();
22348
      while (true)
22349
      {
22350
        field = iprot.readFieldBegin();
22351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22352
          break;
22353
        }
22354
        switch (field.id) {
22355
          case 1: // ITEM_KEY
22356
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22357
              this.itemKey = iprot.readString();
22358
            } else { 
22359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22360
            }
22361
            break;
22362
          case 2: // VENDOR_ID
22363
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22364
              this.vendorId = iprot.readI64();
22365
              setVendorIdIsSet(true);
22366
            } else { 
22367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22368
            }
22369
            break;
22370
          case 3: // QUANTITY
22371
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22372
              this.quantity = iprot.readI64();
22373
              setQuantityIsSet(true);
22374
            } else { 
22375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22376
            }
22377
            break;
22378
          case 4: // WAREHOUSE_ID
22379
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22380
              this.warehouseId = iprot.readI64();
22381
              setWarehouseIdIsSet(true);
22382
            } else { 
22383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22384
            }
22385
            break;
22386
          default:
22387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22388
        }
22389
        iprot.readFieldEnd();
22390
      }
22391
      iprot.readStructEnd();
22392
      validate();
22393
    }
22394
 
22395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22396
      validate();
22397
 
22398
      oprot.writeStructBegin(STRUCT_DESC);
22399
      if (this.itemKey != null) {
22400
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
22401
        oprot.writeString(this.itemKey);
22402
        oprot.writeFieldEnd();
22403
      }
22404
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22405
      oprot.writeI64(this.vendorId);
22406
      oprot.writeFieldEnd();
22407
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
22408
      oprot.writeI64(this.quantity);
22409
      oprot.writeFieldEnd();
22410
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22411
      oprot.writeI64(this.warehouseId);
22412
      oprot.writeFieldEnd();
22413
      oprot.writeFieldStop();
22414
      oprot.writeStructEnd();
22415
    }
22416
 
22417
    @Override
22418
    public String toString() {
22419
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
22420
      boolean first = true;
22421
 
22422
      sb.append("itemKey:");
22423
      if (this.itemKey == null) {
22424
        sb.append("null");
22425
      } else {
22426
        sb.append(this.itemKey);
22427
      }
22428
      first = false;
22429
      if (!first) sb.append(", ");
22430
      sb.append("vendorId:");
22431
      sb.append(this.vendorId);
22432
      first = false;
22433
      if (!first) sb.append(", ");
22434
      sb.append("quantity:");
22435
      sb.append(this.quantity);
22436
      first = false;
22437
      if (!first) sb.append(", ");
22438
      sb.append("warehouseId:");
22439
      sb.append(this.warehouseId);
22440
      first = false;
22441
      sb.append(")");
22442
      return sb.toString();
22443
    }
22444
 
22445
    public void validate() throws org.apache.thrift.TException {
22446
      // check for required fields
22447
    }
22448
 
22449
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22450
      try {
22451
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22452
      } catch (org.apache.thrift.TException te) {
22453
        throw new java.io.IOException(te);
22454
      }
22455
    }
22456
 
22457
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22458
      try {
22459
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22460
        __isset_bit_vector = new BitSet(1);
22461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22462
      } catch (org.apache.thrift.TException te) {
22463
        throw new java.io.IOException(te);
22464
      }
22465
    }
22466
 
22467
  }
22468
 
22469
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
22470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
22471
 
22472
    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);
22473
 
22474
    private InventoryServiceException cex; // required
22475
 
22476
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22477
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22478
      CEX((short)1, "cex");
22479
 
22480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22481
 
22482
      static {
22483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22484
          byName.put(field.getFieldName(), field);
22485
        }
22486
      }
22487
 
22488
      /**
22489
       * Find the _Fields constant that matches fieldId, or null if its not found.
22490
       */
22491
      public static _Fields findByThriftId(int fieldId) {
22492
        switch(fieldId) {
22493
          case 1: // CEX
22494
            return CEX;
22495
          default:
22496
            return null;
22497
        }
22498
      }
22499
 
22500
      /**
22501
       * Find the _Fields constant that matches fieldId, throwing an exception
22502
       * if it is not found.
22503
       */
22504
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22505
        _Fields fields = findByThriftId(fieldId);
22506
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22507
        return fields;
22508
      }
22509
 
22510
      /**
22511
       * Find the _Fields constant that matches name, or null if its not found.
22512
       */
22513
      public static _Fields findByName(String name) {
22514
        return byName.get(name);
22515
      }
22516
 
22517
      private final short _thriftId;
22518
      private final String _fieldName;
22519
 
22520
      _Fields(short thriftId, String fieldName) {
22521
        _thriftId = thriftId;
22522
        _fieldName = fieldName;
22523
      }
22524
 
22525
      public short getThriftFieldId() {
22526
        return _thriftId;
22527
      }
22528
 
22529
      public String getFieldName() {
22530
        return _fieldName;
22531
      }
22532
    }
22533
 
22534
    // isset id assignments
22535
 
22536
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22537
    static {
22538
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22539
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
22543
    }
22544
 
22545
    public resetAvailability_result() {
22546
    }
22547
 
22548
    public resetAvailability_result(
22549
      InventoryServiceException cex)
22550
    {
22551
      this();
22552
      this.cex = cex;
22553
    }
22554
 
22555
    /**
22556
     * Performs a deep copy on <i>other</i>.
22557
     */
22558
    public resetAvailability_result(resetAvailability_result other) {
22559
      if (other.isSetCex()) {
22560
        this.cex = new InventoryServiceException(other.cex);
22561
      }
22562
    }
22563
 
22564
    public resetAvailability_result deepCopy() {
22565
      return new resetAvailability_result(this);
22566
    }
22567
 
22568
    @Override
22569
    public void clear() {
22570
      this.cex = null;
22571
    }
22572
 
22573
    public InventoryServiceException getCex() {
22574
      return this.cex;
22575
    }
22576
 
22577
    public void setCex(InventoryServiceException cex) {
22578
      this.cex = cex;
22579
    }
22580
 
22581
    public void unsetCex() {
22582
      this.cex = null;
22583
    }
22584
 
22585
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22586
    public boolean isSetCex() {
22587
      return this.cex != null;
22588
    }
22589
 
22590
    public void setCexIsSet(boolean value) {
22591
      if (!value) {
22592
        this.cex = null;
22593
      }
22594
    }
22595
 
22596
    public void setFieldValue(_Fields field, Object value) {
22597
      switch (field) {
22598
      case CEX:
22599
        if (value == null) {
22600
          unsetCex();
22601
        } else {
22602
          setCex((InventoryServiceException)value);
22603
        }
22604
        break;
22605
 
22606
      }
22607
    }
22608
 
22609
    public Object getFieldValue(_Fields field) {
22610
      switch (field) {
22611
      case CEX:
22612
        return getCex();
22613
 
22614
      }
22615
      throw new IllegalStateException();
22616
    }
22617
 
22618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22619
    public boolean isSet(_Fields field) {
22620
      if (field == null) {
22621
        throw new IllegalArgumentException();
22622
      }
22623
 
22624
      switch (field) {
22625
      case CEX:
22626
        return isSetCex();
22627
      }
22628
      throw new IllegalStateException();
22629
    }
22630
 
22631
    @Override
22632
    public boolean equals(Object that) {
22633
      if (that == null)
22634
        return false;
22635
      if (that instanceof resetAvailability_result)
22636
        return this.equals((resetAvailability_result)that);
22637
      return false;
22638
    }
22639
 
22640
    public boolean equals(resetAvailability_result that) {
22641
      if (that == null)
22642
        return false;
22643
 
22644
      boolean this_present_cex = true && this.isSetCex();
22645
      boolean that_present_cex = true && that.isSetCex();
22646
      if (this_present_cex || that_present_cex) {
22647
        if (!(this_present_cex && that_present_cex))
22648
          return false;
22649
        if (!this.cex.equals(that.cex))
22650
          return false;
22651
      }
22652
 
22653
      return true;
22654
    }
22655
 
22656
    @Override
22657
    public int hashCode() {
22658
      return 0;
22659
    }
22660
 
22661
    public int compareTo(resetAvailability_result other) {
22662
      if (!getClass().equals(other.getClass())) {
22663
        return getClass().getName().compareTo(other.getClass().getName());
22664
      }
22665
 
22666
      int lastComparison = 0;
22667
      resetAvailability_result typedOther = (resetAvailability_result)other;
22668
 
22669
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22670
      if (lastComparison != 0) {
22671
        return lastComparison;
22672
      }
22673
      if (isSetCex()) {
22674
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22675
        if (lastComparison != 0) {
22676
          return lastComparison;
22677
        }
22678
      }
22679
      return 0;
22680
    }
22681
 
22682
    public _Fields fieldForId(int fieldId) {
22683
      return _Fields.findByThriftId(fieldId);
22684
    }
22685
 
22686
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22687
      org.apache.thrift.protocol.TField field;
22688
      iprot.readStructBegin();
22689
      while (true)
22690
      {
22691
        field = iprot.readFieldBegin();
22692
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22693
          break;
22694
        }
22695
        switch (field.id) {
22696
          case 1: // CEX
22697
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22698
              this.cex = new InventoryServiceException();
22699
              this.cex.read(iprot);
22700
            } else { 
22701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22702
            }
22703
            break;
22704
          default:
22705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22706
        }
22707
        iprot.readFieldEnd();
22708
      }
22709
      iprot.readStructEnd();
22710
      validate();
22711
    }
22712
 
22713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22714
      oprot.writeStructBegin(STRUCT_DESC);
22715
 
22716
      if (this.isSetCex()) {
22717
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22718
        this.cex.write(oprot);
22719
        oprot.writeFieldEnd();
22720
      }
22721
      oprot.writeFieldStop();
22722
      oprot.writeStructEnd();
22723
    }
22724
 
22725
    @Override
22726
    public String toString() {
22727
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
22728
      boolean first = true;
22729
 
22730
      sb.append("cex:");
22731
      if (this.cex == null) {
22732
        sb.append("null");
22733
      } else {
22734
        sb.append(this.cex);
22735
      }
22736
      first = false;
22737
      sb.append(")");
22738
      return sb.toString();
22739
    }
22740
 
22741
    public void validate() throws org.apache.thrift.TException {
22742
      // check for required fields
22743
    }
22744
 
22745
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22746
      try {
22747
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22748
      } catch (org.apache.thrift.TException te) {
22749
        throw new java.io.IOException(te);
22750
      }
22751
    }
22752
 
22753
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22754
      try {
22755
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22756
      } catch (org.apache.thrift.TException te) {
22757
        throw new java.io.IOException(te);
22758
      }
22759
    }
22760
 
22761
  }
22762
 
22763
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
22764
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
22765
 
22766
    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);
22767
 
22768
    private long warehouseId; // required
22769
 
22770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22772
      WAREHOUSE_ID((short)1, "warehouseId");
22773
 
22774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22775
 
22776
      static {
22777
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22778
          byName.put(field.getFieldName(), field);
22779
        }
22780
      }
22781
 
22782
      /**
22783
       * Find the _Fields constant that matches fieldId, or null if its not found.
22784
       */
22785
      public static _Fields findByThriftId(int fieldId) {
22786
        switch(fieldId) {
22787
          case 1: // WAREHOUSE_ID
22788
            return WAREHOUSE_ID;
22789
          default:
22790
            return null;
22791
        }
22792
      }
22793
 
22794
      /**
22795
       * Find the _Fields constant that matches fieldId, throwing an exception
22796
       * if it is not found.
22797
       */
22798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22799
        _Fields fields = findByThriftId(fieldId);
22800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22801
        return fields;
22802
      }
22803
 
22804
      /**
22805
       * Find the _Fields constant that matches name, or null if its not found.
22806
       */
22807
      public static _Fields findByName(String name) {
22808
        return byName.get(name);
22809
      }
22810
 
22811
      private final short _thriftId;
22812
      private final String _fieldName;
22813
 
22814
      _Fields(short thriftId, String fieldName) {
22815
        _thriftId = thriftId;
22816
        _fieldName = fieldName;
22817
      }
22818
 
22819
      public short getThriftFieldId() {
22820
        return _thriftId;
22821
      }
22822
 
22823
      public String getFieldName() {
22824
        return _fieldName;
22825
      }
22826
    }
22827
 
22828
    // isset id assignments
22829
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22830
    private BitSet __isset_bit_vector = new BitSet(1);
22831
 
22832
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22833
    static {
22834
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22835
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22836
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22837
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22838
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
22839
    }
22840
 
22841
    public resetAvailabilityForWarehouse_args() {
22842
    }
22843
 
22844
    public resetAvailabilityForWarehouse_args(
22845
      long warehouseId)
22846
    {
22847
      this();
22848
      this.warehouseId = warehouseId;
22849
      setWarehouseIdIsSet(true);
22850
    }
22851
 
22852
    /**
22853
     * Performs a deep copy on <i>other</i>.
22854
     */
22855
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
22856
      __isset_bit_vector.clear();
22857
      __isset_bit_vector.or(other.__isset_bit_vector);
22858
      this.warehouseId = other.warehouseId;
22859
    }
22860
 
22861
    public resetAvailabilityForWarehouse_args deepCopy() {
22862
      return new resetAvailabilityForWarehouse_args(this);
22863
    }
22864
 
22865
    @Override
22866
    public void clear() {
22867
      setWarehouseIdIsSet(false);
22868
      this.warehouseId = 0;
22869
    }
22870
 
22871
    public long getWarehouseId() {
22872
      return this.warehouseId;
22873
    }
22874
 
22875
    public void setWarehouseId(long warehouseId) {
22876
      this.warehouseId = warehouseId;
22877
      setWarehouseIdIsSet(true);
22878
    }
22879
 
22880
    public void unsetWarehouseId() {
22881
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22882
    }
22883
 
22884
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22885
    public boolean isSetWarehouseId() {
22886
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22887
    }
22888
 
22889
    public void setWarehouseIdIsSet(boolean value) {
22890
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22891
    }
22892
 
22893
    public void setFieldValue(_Fields field, Object value) {
22894
      switch (field) {
22895
      case WAREHOUSE_ID:
22896
        if (value == null) {
22897
          unsetWarehouseId();
22898
        } else {
22899
          setWarehouseId((Long)value);
22900
        }
22901
        break;
22902
 
22903
      }
22904
    }
22905
 
22906
    public Object getFieldValue(_Fields field) {
22907
      switch (field) {
22908
      case WAREHOUSE_ID:
22909
        return Long.valueOf(getWarehouseId());
22910
 
22911
      }
22912
      throw new IllegalStateException();
22913
    }
22914
 
22915
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22916
    public boolean isSet(_Fields field) {
22917
      if (field == null) {
22918
        throw new IllegalArgumentException();
22919
      }
22920
 
22921
      switch (field) {
22922
      case WAREHOUSE_ID:
22923
        return isSetWarehouseId();
22924
      }
22925
      throw new IllegalStateException();
22926
    }
22927
 
22928
    @Override
22929
    public boolean equals(Object that) {
22930
      if (that == null)
22931
        return false;
22932
      if (that instanceof resetAvailabilityForWarehouse_args)
22933
        return this.equals((resetAvailabilityForWarehouse_args)that);
22934
      return false;
22935
    }
22936
 
22937
    public boolean equals(resetAvailabilityForWarehouse_args that) {
22938
      if (that == null)
22939
        return false;
22940
 
22941
      boolean this_present_warehouseId = true;
22942
      boolean that_present_warehouseId = true;
22943
      if (this_present_warehouseId || that_present_warehouseId) {
22944
        if (!(this_present_warehouseId && that_present_warehouseId))
22945
          return false;
22946
        if (this.warehouseId != that.warehouseId)
22947
          return false;
22948
      }
22949
 
22950
      return true;
22951
    }
22952
 
22953
    @Override
22954
    public int hashCode() {
22955
      return 0;
22956
    }
22957
 
22958
    public int compareTo(resetAvailabilityForWarehouse_args other) {
22959
      if (!getClass().equals(other.getClass())) {
22960
        return getClass().getName().compareTo(other.getClass().getName());
22961
      }
22962
 
22963
      int lastComparison = 0;
22964
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
22965
 
22966
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22967
      if (lastComparison != 0) {
22968
        return lastComparison;
22969
      }
22970
      if (isSetWarehouseId()) {
22971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22972
        if (lastComparison != 0) {
22973
          return lastComparison;
22974
        }
22975
      }
22976
      return 0;
22977
    }
22978
 
22979
    public _Fields fieldForId(int fieldId) {
22980
      return _Fields.findByThriftId(fieldId);
22981
    }
22982
 
22983
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22984
      org.apache.thrift.protocol.TField field;
22985
      iprot.readStructBegin();
22986
      while (true)
22987
      {
22988
        field = iprot.readFieldBegin();
22989
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22990
          break;
22991
        }
22992
        switch (field.id) {
22993
          case 1: // WAREHOUSE_ID
22994
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22995
              this.warehouseId = iprot.readI64();
22996
              setWarehouseIdIsSet(true);
22997
            } else { 
22998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22999
            }
23000
            break;
23001
          default:
23002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23003
        }
23004
        iprot.readFieldEnd();
23005
      }
23006
      iprot.readStructEnd();
23007
      validate();
23008
    }
23009
 
23010
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23011
      validate();
23012
 
23013
      oprot.writeStructBegin(STRUCT_DESC);
23014
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23015
      oprot.writeI64(this.warehouseId);
23016
      oprot.writeFieldEnd();
23017
      oprot.writeFieldStop();
23018
      oprot.writeStructEnd();
23019
    }
23020
 
23021
    @Override
23022
    public String toString() {
23023
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
23024
      boolean first = true;
23025
 
23026
      sb.append("warehouseId:");
23027
      sb.append(this.warehouseId);
23028
      first = false;
23029
      sb.append(")");
23030
      return sb.toString();
23031
    }
23032
 
23033
    public void validate() throws org.apache.thrift.TException {
23034
      // check for required fields
23035
    }
23036
 
23037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23038
      try {
23039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23040
      } catch (org.apache.thrift.TException te) {
23041
        throw new java.io.IOException(te);
23042
      }
23043
    }
23044
 
23045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23046
      try {
23047
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23048
        __isset_bit_vector = new BitSet(1);
23049
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23050
      } catch (org.apache.thrift.TException te) {
23051
        throw new java.io.IOException(te);
23052
      }
23053
    }
23054
 
23055
  }
23056
 
23057
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
23058
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
23059
 
23060
    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);
23061
 
23062
    private InventoryServiceException cex; // required
23063
 
23064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23066
      CEX((short)1, "cex");
23067
 
23068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23069
 
23070
      static {
23071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23072
          byName.put(field.getFieldName(), field);
23073
        }
23074
      }
23075
 
23076
      /**
23077
       * Find the _Fields constant that matches fieldId, or null if its not found.
23078
       */
23079
      public static _Fields findByThriftId(int fieldId) {
23080
        switch(fieldId) {
23081
          case 1: // CEX
23082
            return CEX;
23083
          default:
23084
            return null;
23085
        }
23086
      }
23087
 
23088
      /**
23089
       * Find the _Fields constant that matches fieldId, throwing an exception
23090
       * if it is not found.
23091
       */
23092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23093
        _Fields fields = findByThriftId(fieldId);
23094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23095
        return fields;
23096
      }
23097
 
23098
      /**
23099
       * Find the _Fields constant that matches name, or null if its not found.
23100
       */
23101
      public static _Fields findByName(String name) {
23102
        return byName.get(name);
23103
      }
23104
 
23105
      private final short _thriftId;
23106
      private final String _fieldName;
23107
 
23108
      _Fields(short thriftId, String fieldName) {
23109
        _thriftId = thriftId;
23110
        _fieldName = fieldName;
23111
      }
23112
 
23113
      public short getThriftFieldId() {
23114
        return _thriftId;
23115
      }
23116
 
23117
      public String getFieldName() {
23118
        return _fieldName;
23119
      }
23120
    }
23121
 
23122
    // isset id assignments
23123
 
23124
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23125
    static {
23126
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23127
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23129
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23130
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
23131
    }
23132
 
23133
    public resetAvailabilityForWarehouse_result() {
23134
    }
23135
 
23136
    public resetAvailabilityForWarehouse_result(
23137
      InventoryServiceException cex)
23138
    {
23139
      this();
23140
      this.cex = cex;
23141
    }
23142
 
23143
    /**
23144
     * Performs a deep copy on <i>other</i>.
23145
     */
23146
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
23147
      if (other.isSetCex()) {
23148
        this.cex = new InventoryServiceException(other.cex);
23149
      }
23150
    }
23151
 
23152
    public resetAvailabilityForWarehouse_result deepCopy() {
23153
      return new resetAvailabilityForWarehouse_result(this);
23154
    }
23155
 
23156
    @Override
23157
    public void clear() {
23158
      this.cex = null;
23159
    }
23160
 
23161
    public InventoryServiceException getCex() {
23162
      return this.cex;
23163
    }
23164
 
23165
    public void setCex(InventoryServiceException cex) {
23166
      this.cex = cex;
23167
    }
23168
 
23169
    public void unsetCex() {
23170
      this.cex = null;
23171
    }
23172
 
23173
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23174
    public boolean isSetCex() {
23175
      return this.cex != null;
23176
    }
23177
 
23178
    public void setCexIsSet(boolean value) {
23179
      if (!value) {
23180
        this.cex = null;
23181
      }
23182
    }
23183
 
23184
    public void setFieldValue(_Fields field, Object value) {
23185
      switch (field) {
23186
      case CEX:
23187
        if (value == null) {
23188
          unsetCex();
23189
        } else {
23190
          setCex((InventoryServiceException)value);
23191
        }
23192
        break;
23193
 
23194
      }
23195
    }
23196
 
23197
    public Object getFieldValue(_Fields field) {
23198
      switch (field) {
23199
      case CEX:
23200
        return getCex();
23201
 
23202
      }
23203
      throw new IllegalStateException();
23204
    }
23205
 
23206
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23207
    public boolean isSet(_Fields field) {
23208
      if (field == null) {
23209
        throw new IllegalArgumentException();
23210
      }
23211
 
23212
      switch (field) {
23213
      case CEX:
23214
        return isSetCex();
23215
      }
23216
      throw new IllegalStateException();
23217
    }
23218
 
23219
    @Override
23220
    public boolean equals(Object that) {
23221
      if (that == null)
23222
        return false;
23223
      if (that instanceof resetAvailabilityForWarehouse_result)
23224
        return this.equals((resetAvailabilityForWarehouse_result)that);
23225
      return false;
23226
    }
23227
 
23228
    public boolean equals(resetAvailabilityForWarehouse_result that) {
23229
      if (that == null)
23230
        return false;
23231
 
23232
      boolean this_present_cex = true && this.isSetCex();
23233
      boolean that_present_cex = true && that.isSetCex();
23234
      if (this_present_cex || that_present_cex) {
23235
        if (!(this_present_cex && that_present_cex))
23236
          return false;
23237
        if (!this.cex.equals(that.cex))
23238
          return false;
23239
      }
23240
 
23241
      return true;
23242
    }
23243
 
23244
    @Override
23245
    public int hashCode() {
23246
      return 0;
23247
    }
23248
 
23249
    public int compareTo(resetAvailabilityForWarehouse_result other) {
23250
      if (!getClass().equals(other.getClass())) {
23251
        return getClass().getName().compareTo(other.getClass().getName());
23252
      }
23253
 
23254
      int lastComparison = 0;
23255
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
23256
 
23257
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23258
      if (lastComparison != 0) {
23259
        return lastComparison;
23260
      }
23261
      if (isSetCex()) {
23262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23263
        if (lastComparison != 0) {
23264
          return lastComparison;
23265
        }
23266
      }
23267
      return 0;
23268
    }
23269
 
23270
    public _Fields fieldForId(int fieldId) {
23271
      return _Fields.findByThriftId(fieldId);
23272
    }
23273
 
23274
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23275
      org.apache.thrift.protocol.TField field;
23276
      iprot.readStructBegin();
23277
      while (true)
23278
      {
23279
        field = iprot.readFieldBegin();
23280
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23281
          break;
23282
        }
23283
        switch (field.id) {
23284
          case 1: // CEX
23285
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23286
              this.cex = new InventoryServiceException();
23287
              this.cex.read(iprot);
23288
            } else { 
23289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23290
            }
23291
            break;
23292
          default:
23293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23294
        }
23295
        iprot.readFieldEnd();
23296
      }
23297
      iprot.readStructEnd();
23298
      validate();
23299
    }
23300
 
23301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23302
      oprot.writeStructBegin(STRUCT_DESC);
23303
 
23304
      if (this.isSetCex()) {
23305
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23306
        this.cex.write(oprot);
23307
        oprot.writeFieldEnd();
23308
      }
23309
      oprot.writeFieldStop();
23310
      oprot.writeStructEnd();
23311
    }
23312
 
23313
    @Override
23314
    public String toString() {
23315
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
23316
      boolean first = true;
23317
 
23318
      sb.append("cex:");
23319
      if (this.cex == null) {
23320
        sb.append("null");
23321
      } else {
23322
        sb.append(this.cex);
23323
      }
23324
      first = false;
23325
      sb.append(")");
23326
      return sb.toString();
23327
    }
23328
 
23329
    public void validate() throws org.apache.thrift.TException {
23330
      // check for required fields
23331
    }
23332
 
23333
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23334
      try {
23335
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23336
      } catch (org.apache.thrift.TException te) {
23337
        throw new java.io.IOException(te);
23338
      }
23339
    }
23340
 
23341
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23342
      try {
23343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23344
      } catch (org.apache.thrift.TException te) {
23345
        throw new java.io.IOException(te);
23346
      }
23347
    }
23348
 
23349
  }
23350
 
23351
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
23353
 
23354
    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);
23355
 
23356
    private long warehouseId; // required
23357
 
23358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23360
      WAREHOUSE_ID((short)1, "warehouseId");
23361
 
23362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23363
 
23364
      static {
23365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23366
          byName.put(field.getFieldName(), field);
23367
        }
23368
      }
23369
 
23370
      /**
23371
       * Find the _Fields constant that matches fieldId, or null if its not found.
23372
       */
23373
      public static _Fields findByThriftId(int fieldId) {
23374
        switch(fieldId) {
23375
          case 1: // WAREHOUSE_ID
23376
            return WAREHOUSE_ID;
23377
          default:
23378
            return null;
23379
        }
23380
      }
23381
 
23382
      /**
23383
       * Find the _Fields constant that matches fieldId, throwing an exception
23384
       * if it is not found.
23385
       */
23386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23387
        _Fields fields = findByThriftId(fieldId);
23388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23389
        return fields;
23390
      }
23391
 
23392
      /**
23393
       * Find the _Fields constant that matches name, or null if its not found.
23394
       */
23395
      public static _Fields findByName(String name) {
23396
        return byName.get(name);
23397
      }
23398
 
23399
      private final short _thriftId;
23400
      private final String _fieldName;
23401
 
23402
      _Fields(short thriftId, String fieldName) {
23403
        _thriftId = thriftId;
23404
        _fieldName = fieldName;
23405
      }
23406
 
23407
      public short getThriftFieldId() {
23408
        return _thriftId;
23409
      }
23410
 
23411
      public String getFieldName() {
23412
        return _fieldName;
23413
      }
23414
    }
23415
 
23416
    // isset id assignments
23417
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23418
    private BitSet __isset_bit_vector = new BitSet(1);
23419
 
23420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23421
    static {
23422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23423
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
23427
    }
23428
 
23429
    public getItemKeysToBeProcessed_args() {
23430
    }
23431
 
23432
    public getItemKeysToBeProcessed_args(
23433
      long warehouseId)
23434
    {
23435
      this();
23436
      this.warehouseId = warehouseId;
23437
      setWarehouseIdIsSet(true);
23438
    }
23439
 
23440
    /**
23441
     * Performs a deep copy on <i>other</i>.
23442
     */
23443
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
23444
      __isset_bit_vector.clear();
23445
      __isset_bit_vector.or(other.__isset_bit_vector);
23446
      this.warehouseId = other.warehouseId;
23447
    }
23448
 
23449
    public getItemKeysToBeProcessed_args deepCopy() {
23450
      return new getItemKeysToBeProcessed_args(this);
23451
    }
23452
 
23453
    @Override
23454
    public void clear() {
23455
      setWarehouseIdIsSet(false);
23456
      this.warehouseId = 0;
23457
    }
23458
 
23459
    public long getWarehouseId() {
23460
      return this.warehouseId;
23461
    }
23462
 
23463
    public void setWarehouseId(long warehouseId) {
23464
      this.warehouseId = warehouseId;
23465
      setWarehouseIdIsSet(true);
23466
    }
23467
 
23468
    public void unsetWarehouseId() {
23469
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23470
    }
23471
 
23472
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23473
    public boolean isSetWarehouseId() {
23474
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23475
    }
23476
 
23477
    public void setWarehouseIdIsSet(boolean value) {
23478
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23479
    }
23480
 
23481
    public void setFieldValue(_Fields field, Object value) {
23482
      switch (field) {
23483
      case WAREHOUSE_ID:
23484
        if (value == null) {
23485
          unsetWarehouseId();
23486
        } else {
23487
          setWarehouseId((Long)value);
23488
        }
23489
        break;
23490
 
23491
      }
23492
    }
23493
 
23494
    public Object getFieldValue(_Fields field) {
23495
      switch (field) {
23496
      case WAREHOUSE_ID:
23497
        return Long.valueOf(getWarehouseId());
23498
 
23499
      }
23500
      throw new IllegalStateException();
23501
    }
23502
 
23503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23504
    public boolean isSet(_Fields field) {
23505
      if (field == null) {
23506
        throw new IllegalArgumentException();
23507
      }
23508
 
23509
      switch (field) {
23510
      case WAREHOUSE_ID:
23511
        return isSetWarehouseId();
23512
      }
23513
      throw new IllegalStateException();
23514
    }
23515
 
23516
    @Override
23517
    public boolean equals(Object that) {
23518
      if (that == null)
23519
        return false;
23520
      if (that instanceof getItemKeysToBeProcessed_args)
23521
        return this.equals((getItemKeysToBeProcessed_args)that);
23522
      return false;
23523
    }
23524
 
23525
    public boolean equals(getItemKeysToBeProcessed_args that) {
23526
      if (that == null)
23527
        return false;
23528
 
23529
      boolean this_present_warehouseId = true;
23530
      boolean that_present_warehouseId = true;
23531
      if (this_present_warehouseId || that_present_warehouseId) {
23532
        if (!(this_present_warehouseId && that_present_warehouseId))
23533
          return false;
23534
        if (this.warehouseId != that.warehouseId)
23535
          return false;
23536
      }
23537
 
23538
      return true;
23539
    }
23540
 
23541
    @Override
23542
    public int hashCode() {
23543
      return 0;
23544
    }
23545
 
23546
    public int compareTo(getItemKeysToBeProcessed_args other) {
23547
      if (!getClass().equals(other.getClass())) {
23548
        return getClass().getName().compareTo(other.getClass().getName());
23549
      }
23550
 
23551
      int lastComparison = 0;
23552
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
23553
 
23554
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23555
      if (lastComparison != 0) {
23556
        return lastComparison;
23557
      }
23558
      if (isSetWarehouseId()) {
23559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23560
        if (lastComparison != 0) {
23561
          return lastComparison;
23562
        }
23563
      }
23564
      return 0;
23565
    }
23566
 
23567
    public _Fields fieldForId(int fieldId) {
23568
      return _Fields.findByThriftId(fieldId);
23569
    }
23570
 
23571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23572
      org.apache.thrift.protocol.TField field;
23573
      iprot.readStructBegin();
23574
      while (true)
23575
      {
23576
        field = iprot.readFieldBegin();
23577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23578
          break;
23579
        }
23580
        switch (field.id) {
23581
          case 1: // WAREHOUSE_ID
23582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23583
              this.warehouseId = iprot.readI64();
23584
              setWarehouseIdIsSet(true);
23585
            } else { 
23586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23587
            }
23588
            break;
23589
          default:
23590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23591
        }
23592
        iprot.readFieldEnd();
23593
      }
23594
      iprot.readStructEnd();
23595
      validate();
23596
    }
23597
 
23598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23599
      validate();
23600
 
23601
      oprot.writeStructBegin(STRUCT_DESC);
23602
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23603
      oprot.writeI64(this.warehouseId);
23604
      oprot.writeFieldEnd();
23605
      oprot.writeFieldStop();
23606
      oprot.writeStructEnd();
23607
    }
23608
 
23609
    @Override
23610
    public String toString() {
23611
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
23612
      boolean first = true;
23613
 
23614
      sb.append("warehouseId:");
23615
      sb.append(this.warehouseId);
23616
      first = false;
23617
      sb.append(")");
23618
      return sb.toString();
23619
    }
23620
 
23621
    public void validate() throws org.apache.thrift.TException {
23622
      // check for required fields
23623
    }
23624
 
23625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23626
      try {
23627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23628
      } catch (org.apache.thrift.TException te) {
23629
        throw new java.io.IOException(te);
23630
      }
23631
    }
23632
 
23633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23634
      try {
23635
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23636
      } catch (org.apache.thrift.TException te) {
23637
        throw new java.io.IOException(te);
23638
      }
23639
    }
23640
 
23641
  }
23642
 
23643
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
23644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
23645
 
23646
    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);
23647
 
23648
    private List<String> success; // required
23649
 
23650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23652
      SUCCESS((short)0, "success");
23653
 
23654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23655
 
23656
      static {
23657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23658
          byName.put(field.getFieldName(), field);
23659
        }
23660
      }
23661
 
23662
      /**
23663
       * Find the _Fields constant that matches fieldId, or null if its not found.
23664
       */
23665
      public static _Fields findByThriftId(int fieldId) {
23666
        switch(fieldId) {
23667
          case 0: // SUCCESS
23668
            return SUCCESS;
23669
          default:
23670
            return null;
23671
        }
23672
      }
23673
 
23674
      /**
23675
       * Find the _Fields constant that matches fieldId, throwing an exception
23676
       * if it is not found.
23677
       */
23678
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23679
        _Fields fields = findByThriftId(fieldId);
23680
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23681
        return fields;
23682
      }
23683
 
23684
      /**
23685
       * Find the _Fields constant that matches name, or null if its not found.
23686
       */
23687
      public static _Fields findByName(String name) {
23688
        return byName.get(name);
23689
      }
23690
 
23691
      private final short _thriftId;
23692
      private final String _fieldName;
23693
 
23694
      _Fields(short thriftId, String fieldName) {
23695
        _thriftId = thriftId;
23696
        _fieldName = fieldName;
23697
      }
23698
 
23699
      public short getThriftFieldId() {
23700
        return _thriftId;
23701
      }
23702
 
23703
      public String getFieldName() {
23704
        return _fieldName;
23705
      }
23706
    }
23707
 
23708
    // isset id assignments
23709
 
23710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23711
    static {
23712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23713
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23714
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23715
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
23718
    }
23719
 
23720
    public getItemKeysToBeProcessed_result() {
23721
    }
23722
 
23723
    public getItemKeysToBeProcessed_result(
23724
      List<String> success)
23725
    {
23726
      this();
23727
      this.success = success;
23728
    }
23729
 
23730
    /**
23731
     * Performs a deep copy on <i>other</i>.
23732
     */
23733
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
23734
      if (other.isSetSuccess()) {
23735
        List<String> __this__success = new ArrayList<String>();
23736
        for (String other_element : other.success) {
23737
          __this__success.add(other_element);
23738
        }
23739
        this.success = __this__success;
23740
      }
23741
    }
23742
 
23743
    public getItemKeysToBeProcessed_result deepCopy() {
23744
      return new getItemKeysToBeProcessed_result(this);
23745
    }
23746
 
23747
    @Override
23748
    public void clear() {
23749
      this.success = null;
23750
    }
23751
 
23752
    public int getSuccessSize() {
23753
      return (this.success == null) ? 0 : this.success.size();
23754
    }
23755
 
23756
    public java.util.Iterator<String> getSuccessIterator() {
23757
      return (this.success == null) ? null : this.success.iterator();
23758
    }
23759
 
23760
    public void addToSuccess(String elem) {
23761
      if (this.success == null) {
23762
        this.success = new ArrayList<String>();
23763
      }
23764
      this.success.add(elem);
23765
    }
23766
 
23767
    public List<String> getSuccess() {
23768
      return this.success;
23769
    }
23770
 
23771
    public void setSuccess(List<String> success) {
23772
      this.success = success;
23773
    }
23774
 
23775
    public void unsetSuccess() {
23776
      this.success = null;
23777
    }
23778
 
23779
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23780
    public boolean isSetSuccess() {
23781
      return this.success != null;
23782
    }
23783
 
23784
    public void setSuccessIsSet(boolean value) {
23785
      if (!value) {
23786
        this.success = null;
23787
      }
23788
    }
23789
 
23790
    public void setFieldValue(_Fields field, Object value) {
23791
      switch (field) {
23792
      case SUCCESS:
23793
        if (value == null) {
23794
          unsetSuccess();
23795
        } else {
23796
          setSuccess((List<String>)value);
23797
        }
23798
        break;
23799
 
23800
      }
23801
    }
23802
 
23803
    public Object getFieldValue(_Fields field) {
23804
      switch (field) {
23805
      case SUCCESS:
23806
        return getSuccess();
23807
 
23808
      }
23809
      throw new IllegalStateException();
23810
    }
23811
 
23812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23813
    public boolean isSet(_Fields field) {
23814
      if (field == null) {
23815
        throw new IllegalArgumentException();
23816
      }
23817
 
23818
      switch (field) {
23819
      case SUCCESS:
23820
        return isSetSuccess();
23821
      }
23822
      throw new IllegalStateException();
23823
    }
23824
 
23825
    @Override
23826
    public boolean equals(Object that) {
23827
      if (that == null)
23828
        return false;
23829
      if (that instanceof getItemKeysToBeProcessed_result)
23830
        return this.equals((getItemKeysToBeProcessed_result)that);
23831
      return false;
23832
    }
23833
 
23834
    public boolean equals(getItemKeysToBeProcessed_result that) {
23835
      if (that == null)
23836
        return false;
23837
 
23838
      boolean this_present_success = true && this.isSetSuccess();
23839
      boolean that_present_success = true && that.isSetSuccess();
23840
      if (this_present_success || that_present_success) {
23841
        if (!(this_present_success && that_present_success))
23842
          return false;
23843
        if (!this.success.equals(that.success))
23844
          return false;
23845
      }
23846
 
23847
      return true;
23848
    }
23849
 
23850
    @Override
23851
    public int hashCode() {
23852
      return 0;
23853
    }
23854
 
23855
    public int compareTo(getItemKeysToBeProcessed_result other) {
23856
      if (!getClass().equals(other.getClass())) {
23857
        return getClass().getName().compareTo(other.getClass().getName());
23858
      }
23859
 
23860
      int lastComparison = 0;
23861
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
23862
 
23863
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23864
      if (lastComparison != 0) {
23865
        return lastComparison;
23866
      }
23867
      if (isSetSuccess()) {
23868
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23869
        if (lastComparison != 0) {
23870
          return lastComparison;
23871
        }
23872
      }
23873
      return 0;
23874
    }
23875
 
23876
    public _Fields fieldForId(int fieldId) {
23877
      return _Fields.findByThriftId(fieldId);
23878
    }
23879
 
23880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23881
      org.apache.thrift.protocol.TField field;
23882
      iprot.readStructBegin();
23883
      while (true)
23884
      {
23885
        field = iprot.readFieldBegin();
23886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23887
          break;
23888
        }
23889
        switch (field.id) {
23890
          case 0: // SUCCESS
23891
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23892
              {
23893
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23894
                this.success = new ArrayList<String>(_list52.size);
23895
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23896
                {
23897
                  String _elem54; // required
23898
                  _elem54 = iprot.readString();
23899
                  this.success.add(_elem54);
23900
                }
23901
                iprot.readListEnd();
23902
              }
23903
            } else { 
23904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23905
            }
23906
            break;
23907
          default:
23908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23909
        }
23910
        iprot.readFieldEnd();
23911
      }
23912
      iprot.readStructEnd();
23913
      validate();
23914
    }
23915
 
23916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23917
      oprot.writeStructBegin(STRUCT_DESC);
23918
 
23919
      if (this.isSetSuccess()) {
23920
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23921
        {
23922
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
23923
          for (String _iter55 : this.success)
23924
          {
23925
            oprot.writeString(_iter55);
23926
          }
23927
          oprot.writeListEnd();
23928
        }
23929
        oprot.writeFieldEnd();
23930
      }
23931
      oprot.writeFieldStop();
23932
      oprot.writeStructEnd();
23933
    }
23934
 
23935
    @Override
23936
    public String toString() {
23937
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
23938
      boolean first = true;
23939
 
23940
      sb.append("success:");
23941
      if (this.success == null) {
23942
        sb.append("null");
23943
      } else {
23944
        sb.append(this.success);
23945
      }
23946
      first = false;
23947
      sb.append(")");
23948
      return sb.toString();
23949
    }
23950
 
23951
    public void validate() throws org.apache.thrift.TException {
23952
      // check for required fields
23953
    }
23954
 
23955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23956
      try {
23957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23958
      } catch (org.apache.thrift.TException te) {
23959
        throw new java.io.IOException(te);
23960
      }
23961
    }
23962
 
23963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23964
      try {
23965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23966
      } catch (org.apache.thrift.TException te) {
23967
        throw new java.io.IOException(te);
23968
      }
23969
    }
23970
 
23971
  }
23972
 
23973
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
23975
 
23976
    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);
23977
    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);
23978
 
23979
    private String itemKey; // required
23980
    private long warehouseId; // required
23981
 
23982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23984
      ITEM_KEY((short)1, "itemKey"),
23985
      WAREHOUSE_ID((short)2, "warehouseId");
23986
 
23987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23988
 
23989
      static {
23990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23991
          byName.put(field.getFieldName(), field);
23992
        }
23993
      }
23994
 
23995
      /**
23996
       * Find the _Fields constant that matches fieldId, or null if its not found.
23997
       */
23998
      public static _Fields findByThriftId(int fieldId) {
23999
        switch(fieldId) {
24000
          case 1: // ITEM_KEY
24001
            return ITEM_KEY;
24002
          case 2: // WAREHOUSE_ID
24003
            return WAREHOUSE_ID;
24004
          default:
24005
            return null;
24006
        }
24007
      }
24008
 
24009
      /**
24010
       * Find the _Fields constant that matches fieldId, throwing an exception
24011
       * if it is not found.
24012
       */
24013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24014
        _Fields fields = findByThriftId(fieldId);
24015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24016
        return fields;
24017
      }
24018
 
24019
      /**
24020
       * Find the _Fields constant that matches name, or null if its not found.
24021
       */
24022
      public static _Fields findByName(String name) {
24023
        return byName.get(name);
24024
      }
24025
 
24026
      private final short _thriftId;
24027
      private final String _fieldName;
24028
 
24029
      _Fields(short thriftId, String fieldName) {
24030
        _thriftId = thriftId;
24031
        _fieldName = fieldName;
24032
      }
24033
 
24034
      public short getThriftFieldId() {
24035
        return _thriftId;
24036
      }
24037
 
24038
      public String getFieldName() {
24039
        return _fieldName;
24040
      }
24041
    }
24042
 
24043
    // isset id assignments
24044
    private static final int __WAREHOUSEID_ISSET_ID = 0;
24045
    private BitSet __isset_bit_vector = new BitSet(1);
24046
 
24047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24048
    static {
24049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24050
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24052
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
24056
    }
24057
 
24058
    public markMissedInventoryUpdatesAsProcessed_args() {
24059
    }
24060
 
24061
    public markMissedInventoryUpdatesAsProcessed_args(
24062
      String itemKey,
24063
      long warehouseId)
24064
    {
24065
      this();
24066
      this.itemKey = itemKey;
24067
      this.warehouseId = warehouseId;
24068
      setWarehouseIdIsSet(true);
24069
    }
24070
 
24071
    /**
24072
     * Performs a deep copy on <i>other</i>.
24073
     */
24074
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
24075
      __isset_bit_vector.clear();
24076
      __isset_bit_vector.or(other.__isset_bit_vector);
24077
      if (other.isSetItemKey()) {
24078
        this.itemKey = other.itemKey;
24079
      }
24080
      this.warehouseId = other.warehouseId;
24081
    }
24082
 
24083
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
24084
      return new markMissedInventoryUpdatesAsProcessed_args(this);
24085
    }
24086
 
24087
    @Override
24088
    public void clear() {
24089
      this.itemKey = null;
24090
      setWarehouseIdIsSet(false);
24091
      this.warehouseId = 0;
24092
    }
24093
 
24094
    public String getItemKey() {
24095
      return this.itemKey;
24096
    }
24097
 
24098
    public void setItemKey(String itemKey) {
24099
      this.itemKey = itemKey;
24100
    }
24101
 
24102
    public void unsetItemKey() {
24103
      this.itemKey = null;
24104
    }
24105
 
24106
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
24107
    public boolean isSetItemKey() {
24108
      return this.itemKey != null;
24109
    }
24110
 
24111
    public void setItemKeyIsSet(boolean value) {
24112
      if (!value) {
24113
        this.itemKey = null;
24114
      }
24115
    }
24116
 
24117
    public long getWarehouseId() {
24118
      return this.warehouseId;
24119
    }
24120
 
24121
    public void setWarehouseId(long warehouseId) {
24122
      this.warehouseId = warehouseId;
24123
      setWarehouseIdIsSet(true);
24124
    }
24125
 
24126
    public void unsetWarehouseId() {
24127
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24128
    }
24129
 
24130
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24131
    public boolean isSetWarehouseId() {
24132
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24133
    }
24134
 
24135
    public void setWarehouseIdIsSet(boolean value) {
24136
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24137
    }
24138
 
24139
    public void setFieldValue(_Fields field, Object value) {
24140
      switch (field) {
24141
      case ITEM_KEY:
24142
        if (value == null) {
24143
          unsetItemKey();
24144
        } else {
24145
          setItemKey((String)value);
24146
        }
24147
        break;
24148
 
24149
      case WAREHOUSE_ID:
24150
        if (value == null) {
24151
          unsetWarehouseId();
24152
        } else {
24153
          setWarehouseId((Long)value);
24154
        }
24155
        break;
24156
 
24157
      }
24158
    }
24159
 
24160
    public Object getFieldValue(_Fields field) {
24161
      switch (field) {
24162
      case ITEM_KEY:
24163
        return getItemKey();
24164
 
24165
      case WAREHOUSE_ID:
24166
        return Long.valueOf(getWarehouseId());
24167
 
24168
      }
24169
      throw new IllegalStateException();
24170
    }
24171
 
24172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24173
    public boolean isSet(_Fields field) {
24174
      if (field == null) {
24175
        throw new IllegalArgumentException();
24176
      }
24177
 
24178
      switch (field) {
24179
      case ITEM_KEY:
24180
        return isSetItemKey();
24181
      case WAREHOUSE_ID:
24182
        return isSetWarehouseId();
24183
      }
24184
      throw new IllegalStateException();
24185
    }
24186
 
24187
    @Override
24188
    public boolean equals(Object that) {
24189
      if (that == null)
24190
        return false;
24191
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
24192
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
24193
      return false;
24194
    }
24195
 
24196
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
24197
      if (that == null)
24198
        return false;
24199
 
24200
      boolean this_present_itemKey = true && this.isSetItemKey();
24201
      boolean that_present_itemKey = true && that.isSetItemKey();
24202
      if (this_present_itemKey || that_present_itemKey) {
24203
        if (!(this_present_itemKey && that_present_itemKey))
24204
          return false;
24205
        if (!this.itemKey.equals(that.itemKey))
24206
          return false;
24207
      }
24208
 
24209
      boolean this_present_warehouseId = true;
24210
      boolean that_present_warehouseId = true;
24211
      if (this_present_warehouseId || that_present_warehouseId) {
24212
        if (!(this_present_warehouseId && that_present_warehouseId))
24213
          return false;
24214
        if (this.warehouseId != that.warehouseId)
24215
          return false;
24216
      }
24217
 
24218
      return true;
24219
    }
24220
 
24221
    @Override
24222
    public int hashCode() {
24223
      return 0;
24224
    }
24225
 
24226
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
24227
      if (!getClass().equals(other.getClass())) {
24228
        return getClass().getName().compareTo(other.getClass().getName());
24229
      }
24230
 
24231
      int lastComparison = 0;
24232
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
24233
 
24234
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
24235
      if (lastComparison != 0) {
24236
        return lastComparison;
24237
      }
24238
      if (isSetItemKey()) {
24239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
24240
        if (lastComparison != 0) {
24241
          return lastComparison;
24242
        }
24243
      }
24244
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24245
      if (lastComparison != 0) {
24246
        return lastComparison;
24247
      }
24248
      if (isSetWarehouseId()) {
24249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24250
        if (lastComparison != 0) {
24251
          return lastComparison;
24252
        }
24253
      }
24254
      return 0;
24255
    }
24256
 
24257
    public _Fields fieldForId(int fieldId) {
24258
      return _Fields.findByThriftId(fieldId);
24259
    }
24260
 
24261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24262
      org.apache.thrift.protocol.TField field;
24263
      iprot.readStructBegin();
24264
      while (true)
24265
      {
24266
        field = iprot.readFieldBegin();
24267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24268
          break;
24269
        }
24270
        switch (field.id) {
24271
          case 1: // ITEM_KEY
24272
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24273
              this.itemKey = iprot.readString();
24274
            } else { 
24275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24276
            }
24277
            break;
24278
          case 2: // WAREHOUSE_ID
24279
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24280
              this.warehouseId = iprot.readI64();
24281
              setWarehouseIdIsSet(true);
24282
            } else { 
24283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24284
            }
24285
            break;
24286
          default:
24287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24288
        }
24289
        iprot.readFieldEnd();
24290
      }
24291
      iprot.readStructEnd();
24292
      validate();
24293
    }
24294
 
24295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24296
      validate();
24297
 
24298
      oprot.writeStructBegin(STRUCT_DESC);
24299
      if (this.itemKey != null) {
24300
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
24301
        oprot.writeString(this.itemKey);
24302
        oprot.writeFieldEnd();
24303
      }
24304
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24305
      oprot.writeI64(this.warehouseId);
24306
      oprot.writeFieldEnd();
24307
      oprot.writeFieldStop();
24308
      oprot.writeStructEnd();
24309
    }
24310
 
24311
    @Override
24312
    public String toString() {
24313
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
24314
      boolean first = true;
24315
 
24316
      sb.append("itemKey:");
24317
      if (this.itemKey == null) {
24318
        sb.append("null");
24319
      } else {
24320
        sb.append(this.itemKey);
24321
      }
24322
      first = false;
24323
      if (!first) sb.append(", ");
24324
      sb.append("warehouseId:");
24325
      sb.append(this.warehouseId);
24326
      first = false;
24327
      sb.append(")");
24328
      return sb.toString();
24329
    }
24330
 
24331
    public void validate() throws org.apache.thrift.TException {
24332
      // check for required fields
24333
    }
24334
 
24335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24336
      try {
24337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24338
      } catch (org.apache.thrift.TException te) {
24339
        throw new java.io.IOException(te);
24340
      }
24341
    }
24342
 
24343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24344
      try {
24345
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24346
      } catch (org.apache.thrift.TException te) {
24347
        throw new java.io.IOException(te);
24348
      }
24349
    }
24350
 
24351
  }
24352
 
24353
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
24354
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
24355
 
24356
 
24357
 
24358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24360
;
24361
 
24362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24363
 
24364
      static {
24365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24366
          byName.put(field.getFieldName(), field);
24367
        }
24368
      }
24369
 
24370
      /**
24371
       * Find the _Fields constant that matches fieldId, or null if its not found.
24372
       */
24373
      public static _Fields findByThriftId(int fieldId) {
24374
        switch(fieldId) {
24375
          default:
24376
            return null;
24377
        }
24378
      }
24379
 
24380
      /**
24381
       * Find the _Fields constant that matches fieldId, throwing an exception
24382
       * if it is not found.
24383
       */
24384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24385
        _Fields fields = findByThriftId(fieldId);
24386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24387
        return fields;
24388
      }
24389
 
24390
      /**
24391
       * Find the _Fields constant that matches name, or null if its not found.
24392
       */
24393
      public static _Fields findByName(String name) {
24394
        return byName.get(name);
24395
      }
24396
 
24397
      private final short _thriftId;
24398
      private final String _fieldName;
24399
 
24400
      _Fields(short thriftId, String fieldName) {
24401
        _thriftId = thriftId;
24402
        _fieldName = fieldName;
24403
      }
24404
 
24405
      public short getThriftFieldId() {
24406
        return _thriftId;
24407
      }
24408
 
24409
      public String getFieldName() {
24410
        return _fieldName;
24411
      }
24412
    }
24413
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24414
    static {
24415
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24416
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24417
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
24418
    }
24419
 
24420
    public markMissedInventoryUpdatesAsProcessed_result() {
24421
    }
24422
 
24423
    /**
24424
     * Performs a deep copy on <i>other</i>.
24425
     */
24426
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
24427
    }
24428
 
24429
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
24430
      return new markMissedInventoryUpdatesAsProcessed_result(this);
24431
    }
24432
 
24433
    @Override
24434
    public void clear() {
24435
    }
24436
 
24437
    public void setFieldValue(_Fields field, Object value) {
24438
      switch (field) {
24439
      }
24440
    }
24441
 
24442
    public Object getFieldValue(_Fields field) {
24443
      switch (field) {
24444
      }
24445
      throw new IllegalStateException();
24446
    }
24447
 
24448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24449
    public boolean isSet(_Fields field) {
24450
      if (field == null) {
24451
        throw new IllegalArgumentException();
24452
      }
24453
 
24454
      switch (field) {
24455
      }
24456
      throw new IllegalStateException();
24457
    }
24458
 
24459
    @Override
24460
    public boolean equals(Object that) {
24461
      if (that == null)
24462
        return false;
24463
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
24464
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
24465
      return false;
24466
    }
24467
 
24468
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
24469
      if (that == null)
24470
        return false;
24471
 
24472
      return true;
24473
    }
24474
 
24475
    @Override
24476
    public int hashCode() {
24477
      return 0;
24478
    }
24479
 
24480
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
24481
      if (!getClass().equals(other.getClass())) {
24482
        return getClass().getName().compareTo(other.getClass().getName());
24483
      }
24484
 
24485
      int lastComparison = 0;
24486
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
24487
 
24488
      return 0;
24489
    }
24490
 
24491
    public _Fields fieldForId(int fieldId) {
24492
      return _Fields.findByThriftId(fieldId);
24493
    }
24494
 
24495
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24496
      org.apache.thrift.protocol.TField field;
24497
      iprot.readStructBegin();
24498
      while (true)
24499
      {
24500
        field = iprot.readFieldBegin();
24501
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24502
          break;
24503
        }
24504
        switch (field.id) {
24505
          default:
24506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24507
        }
24508
        iprot.readFieldEnd();
24509
      }
24510
      iprot.readStructEnd();
24511
      validate();
24512
    }
24513
 
24514
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24515
      oprot.writeStructBegin(STRUCT_DESC);
24516
 
24517
      oprot.writeFieldStop();
24518
      oprot.writeStructEnd();
24519
    }
24520
 
24521
    @Override
24522
    public String toString() {
24523
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
24524
      boolean first = true;
24525
 
24526
      sb.append(")");
24527
      return sb.toString();
24528
    }
24529
 
24530
    public void validate() throws org.apache.thrift.TException {
24531
      // check for required fields
24532
    }
24533
 
24534
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24535
      try {
24536
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24537
      } catch (org.apache.thrift.TException te) {
24538
        throw new java.io.IOException(te);
24539
      }
24540
    }
24541
 
24542
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24543
      try {
24544
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24545
      } catch (org.apache.thrift.TException te) {
24546
        throw new java.io.IOException(te);
24547
      }
24548
    }
24549
 
24550
  }
24551
 
24552
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
24553
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
24554
 
24555
 
24556
 
24557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24559
;
24560
 
24561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24562
 
24563
      static {
24564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24565
          byName.put(field.getFieldName(), field);
24566
        }
24567
      }
24568
 
24569
      /**
24570
       * Find the _Fields constant that matches fieldId, or null if its not found.
24571
       */
24572
      public static _Fields findByThriftId(int fieldId) {
24573
        switch(fieldId) {
24574
          default:
24575
            return null;
24576
        }
24577
      }
24578
 
24579
      /**
24580
       * Find the _Fields constant that matches fieldId, throwing an exception
24581
       * if it is not found.
24582
       */
24583
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24584
        _Fields fields = findByThriftId(fieldId);
24585
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24586
        return fields;
24587
      }
24588
 
24589
      /**
24590
       * Find the _Fields constant that matches name, or null if its not found.
24591
       */
24592
      public static _Fields findByName(String name) {
24593
        return byName.get(name);
24594
      }
24595
 
24596
      private final short _thriftId;
24597
      private final String _fieldName;
24598
 
24599
      _Fields(short thriftId, String fieldName) {
24600
        _thriftId = thriftId;
24601
        _fieldName = fieldName;
24602
      }
24603
 
24604
      public short getThriftFieldId() {
24605
        return _thriftId;
24606
      }
24607
 
24608
      public String getFieldName() {
24609
        return _fieldName;
24610
      }
24611
    }
24612
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24613
    static {
24614
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
24617
    }
24618
 
24619
    public getIgnoredItemKeys_args() {
24620
    }
24621
 
24622
    /**
24623
     * Performs a deep copy on <i>other</i>.
24624
     */
24625
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
24626
    }
24627
 
24628
    public getIgnoredItemKeys_args deepCopy() {
24629
      return new getIgnoredItemKeys_args(this);
24630
    }
24631
 
24632
    @Override
24633
    public void clear() {
24634
    }
24635
 
24636
    public void setFieldValue(_Fields field, Object value) {
24637
      switch (field) {
24638
      }
24639
    }
24640
 
24641
    public Object getFieldValue(_Fields field) {
24642
      switch (field) {
24643
      }
24644
      throw new IllegalStateException();
24645
    }
24646
 
24647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24648
    public boolean isSet(_Fields field) {
24649
      if (field == null) {
24650
        throw new IllegalArgumentException();
24651
      }
24652
 
24653
      switch (field) {
24654
      }
24655
      throw new IllegalStateException();
24656
    }
24657
 
24658
    @Override
24659
    public boolean equals(Object that) {
24660
      if (that == null)
24661
        return false;
24662
      if (that instanceof getIgnoredItemKeys_args)
24663
        return this.equals((getIgnoredItemKeys_args)that);
24664
      return false;
24665
    }
24666
 
24667
    public boolean equals(getIgnoredItemKeys_args that) {
24668
      if (that == null)
24669
        return false;
24670
 
24671
      return true;
24672
    }
24673
 
24674
    @Override
24675
    public int hashCode() {
24676
      return 0;
24677
    }
24678
 
24679
    public int compareTo(getIgnoredItemKeys_args other) {
24680
      if (!getClass().equals(other.getClass())) {
24681
        return getClass().getName().compareTo(other.getClass().getName());
24682
      }
24683
 
24684
      int lastComparison = 0;
24685
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
24686
 
24687
      return 0;
24688
    }
24689
 
24690
    public _Fields fieldForId(int fieldId) {
24691
      return _Fields.findByThriftId(fieldId);
24692
    }
24693
 
24694
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24695
      org.apache.thrift.protocol.TField field;
24696
      iprot.readStructBegin();
24697
      while (true)
24698
      {
24699
        field = iprot.readFieldBegin();
24700
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24701
          break;
24702
        }
24703
        switch (field.id) {
24704
          default:
24705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24706
        }
24707
        iprot.readFieldEnd();
24708
      }
24709
      iprot.readStructEnd();
24710
      validate();
24711
    }
24712
 
24713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24714
      validate();
24715
 
24716
      oprot.writeStructBegin(STRUCT_DESC);
24717
      oprot.writeFieldStop();
24718
      oprot.writeStructEnd();
24719
    }
24720
 
24721
    @Override
24722
    public String toString() {
24723
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
24724
      boolean first = true;
24725
 
24726
      sb.append(")");
24727
      return sb.toString();
24728
    }
24729
 
24730
    public void validate() throws org.apache.thrift.TException {
24731
      // check for required fields
24732
    }
24733
 
24734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24735
      try {
24736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24737
      } catch (org.apache.thrift.TException te) {
24738
        throw new java.io.IOException(te);
24739
      }
24740
    }
24741
 
24742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24743
      try {
24744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24745
      } catch (org.apache.thrift.TException te) {
24746
        throw new java.io.IOException(te);
24747
      }
24748
    }
24749
 
24750
  }
24751
 
24752
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
24753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
24754
 
24755
    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);
24756
 
24757
    private Map<String,Map<Long,Long>> success; // required
24758
 
24759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24760
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24761
      SUCCESS((short)0, "success");
24762
 
24763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24764
 
24765
      static {
24766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24767
          byName.put(field.getFieldName(), field);
24768
        }
24769
      }
24770
 
24771
      /**
24772
       * Find the _Fields constant that matches fieldId, or null if its not found.
24773
       */
24774
      public static _Fields findByThriftId(int fieldId) {
24775
        switch(fieldId) {
24776
          case 0: // SUCCESS
24777
            return SUCCESS;
24778
          default:
24779
            return null;
24780
        }
24781
      }
24782
 
24783
      /**
24784
       * Find the _Fields constant that matches fieldId, throwing an exception
24785
       * if it is not found.
24786
       */
24787
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24788
        _Fields fields = findByThriftId(fieldId);
24789
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24790
        return fields;
24791
      }
24792
 
24793
      /**
24794
       * Find the _Fields constant that matches name, or null if its not found.
24795
       */
24796
      public static _Fields findByName(String name) {
24797
        return byName.get(name);
24798
      }
24799
 
24800
      private final short _thriftId;
24801
      private final String _fieldName;
24802
 
24803
      _Fields(short thriftId, String fieldName) {
24804
        _thriftId = thriftId;
24805
        _fieldName = fieldName;
24806
      }
24807
 
24808
      public short getThriftFieldId() {
24809
        return _thriftId;
24810
      }
24811
 
24812
      public String getFieldName() {
24813
        return _fieldName;
24814
      }
24815
    }
24816
 
24817
    // isset id assignments
24818
 
24819
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24820
    static {
24821
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24822
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24823
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24824
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
24825
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24826
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
24827
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
24828
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24829
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
24830
    }
24831
 
24832
    public getIgnoredItemKeys_result() {
24833
    }
24834
 
24835
    public getIgnoredItemKeys_result(
24836
      Map<String,Map<Long,Long>> success)
24837
    {
24838
      this();
24839
      this.success = success;
24840
    }
24841
 
24842
    /**
24843
     * Performs a deep copy on <i>other</i>.
24844
     */
24845
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
24846
      if (other.isSetSuccess()) {
24847
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
24848
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
24849
 
24850
          String other_element_key = other_element.getKey();
24851
          Map<Long,Long> other_element_value = other_element.getValue();
24852
 
24853
          String __this__success_copy_key = other_element_key;
24854
 
24855
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
24856
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
24857
 
24858
            Long other_element_value_element_key = other_element_value_element.getKey();
24859
            Long other_element_value_element_value = other_element_value_element.getValue();
24860
 
24861
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
24862
 
24863
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
24864
 
24865
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
24866
          }
24867
 
24868
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
24869
        }
24870
        this.success = __this__success;
24871
      }
24872
    }
24873
 
24874
    public getIgnoredItemKeys_result deepCopy() {
24875
      return new getIgnoredItemKeys_result(this);
24876
    }
24877
 
24878
    @Override
24879
    public void clear() {
24880
      this.success = null;
24881
    }
24882
 
24883
    public int getSuccessSize() {
24884
      return (this.success == null) ? 0 : this.success.size();
24885
    }
24886
 
24887
    public void putToSuccess(String key, Map<Long,Long> val) {
24888
      if (this.success == null) {
24889
        this.success = new HashMap<String,Map<Long,Long>>();
24890
      }
24891
      this.success.put(key, val);
24892
    }
24893
 
24894
    public Map<String,Map<Long,Long>> getSuccess() {
24895
      return this.success;
24896
    }
24897
 
24898
    public void setSuccess(Map<String,Map<Long,Long>> success) {
24899
      this.success = success;
24900
    }
24901
 
24902
    public void unsetSuccess() {
24903
      this.success = null;
24904
    }
24905
 
24906
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24907
    public boolean isSetSuccess() {
24908
      return this.success != null;
24909
    }
24910
 
24911
    public void setSuccessIsSet(boolean value) {
24912
      if (!value) {
24913
        this.success = null;
24914
      }
24915
    }
24916
 
24917
    public void setFieldValue(_Fields field, Object value) {
24918
      switch (field) {
24919
      case SUCCESS:
24920
        if (value == null) {
24921
          unsetSuccess();
24922
        } else {
24923
          setSuccess((Map<String,Map<Long,Long>>)value);
24924
        }
24925
        break;
24926
 
24927
      }
24928
    }
24929
 
24930
    public Object getFieldValue(_Fields field) {
24931
      switch (field) {
24932
      case SUCCESS:
24933
        return getSuccess();
24934
 
24935
      }
24936
      throw new IllegalStateException();
24937
    }
24938
 
24939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24940
    public boolean isSet(_Fields field) {
24941
      if (field == null) {
24942
        throw new IllegalArgumentException();
24943
      }
24944
 
24945
      switch (field) {
24946
      case SUCCESS:
24947
        return isSetSuccess();
24948
      }
24949
      throw new IllegalStateException();
24950
    }
24951
 
24952
    @Override
24953
    public boolean equals(Object that) {
24954
      if (that == null)
24955
        return false;
24956
      if (that instanceof getIgnoredItemKeys_result)
24957
        return this.equals((getIgnoredItemKeys_result)that);
24958
      return false;
24959
    }
24960
 
24961
    public boolean equals(getIgnoredItemKeys_result that) {
24962
      if (that == null)
24963
        return false;
24964
 
24965
      boolean this_present_success = true && this.isSetSuccess();
24966
      boolean that_present_success = true && that.isSetSuccess();
24967
      if (this_present_success || that_present_success) {
24968
        if (!(this_present_success && that_present_success))
24969
          return false;
24970
        if (!this.success.equals(that.success))
24971
          return false;
24972
      }
24973
 
24974
      return true;
24975
    }
24976
 
24977
    @Override
24978
    public int hashCode() {
24979
      return 0;
24980
    }
24981
 
24982
    public int compareTo(getIgnoredItemKeys_result other) {
24983
      if (!getClass().equals(other.getClass())) {
24984
        return getClass().getName().compareTo(other.getClass().getName());
24985
      }
24986
 
24987
      int lastComparison = 0;
24988
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
24989
 
24990
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24991
      if (lastComparison != 0) {
24992
        return lastComparison;
24993
      }
24994
      if (isSetSuccess()) {
24995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24996
        if (lastComparison != 0) {
24997
          return lastComparison;
24998
        }
24999
      }
25000
      return 0;
25001
    }
25002
 
25003
    public _Fields fieldForId(int fieldId) {
25004
      return _Fields.findByThriftId(fieldId);
25005
    }
25006
 
25007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25008
      org.apache.thrift.protocol.TField field;
25009
      iprot.readStructBegin();
25010
      while (true)
25011
      {
25012
        field = iprot.readFieldBegin();
25013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25014
          break;
25015
        }
25016
        switch (field.id) {
25017
          case 0: // SUCCESS
25018
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
25019
              {
25020
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
25021
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
25022
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
25023
                {
25024
                  String _key58; // required
25025
                  Map<Long,Long> _val59; // required
25026
                  _key58 = iprot.readString();
25027
                  {
25028
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
25029
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
25030
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
25031
                    {
25032
                      long _key62; // required
25033
                      long _val63; // required
25034
                      _key62 = iprot.readI64();
25035
                      _val63 = iprot.readI64();
25036
                      _val59.put(_key62, _val63);
25037
                    }
25038
                    iprot.readMapEnd();
25039
                  }
25040
                  this.success.put(_key58, _val59);
25041
                }
25042
                iprot.readMapEnd();
25043
              }
25044
            } else { 
25045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25046
            }
25047
            break;
25048
          default:
25049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25050
        }
25051
        iprot.readFieldEnd();
25052
      }
25053
      iprot.readStructEnd();
25054
      validate();
25055
    }
25056
 
25057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25058
      oprot.writeStructBegin(STRUCT_DESC);
25059
 
25060
      if (this.isSetSuccess()) {
25061
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25062
        {
25063
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
25064
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
25065
          {
25066
            oprot.writeString(_iter64.getKey());
25067
            {
25068
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
25069
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
25070
              {
25071
                oprot.writeI64(_iter65.getKey());
25072
                oprot.writeI64(_iter65.getValue());
25073
              }
25074
              oprot.writeMapEnd();
25075
            }
25076
          }
25077
          oprot.writeMapEnd();
25078
        }
25079
        oprot.writeFieldEnd();
25080
      }
25081
      oprot.writeFieldStop();
25082
      oprot.writeStructEnd();
25083
    }
25084
 
25085
    @Override
25086
    public String toString() {
25087
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
25088
      boolean first = true;
25089
 
25090
      sb.append("success:");
25091
      if (this.success == null) {
25092
        sb.append("null");
25093
      } else {
25094
        sb.append(this.success);
25095
      }
25096
      first = false;
25097
      sb.append(")");
25098
      return sb.toString();
25099
    }
25100
 
25101
    public void validate() throws org.apache.thrift.TException {
25102
      // check for required fields
25103
    }
25104
 
25105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25106
      try {
25107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25108
      } catch (org.apache.thrift.TException te) {
25109
        throw new java.io.IOException(te);
25110
      }
25111
    }
25112
 
25113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25114
      try {
25115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25116
      } catch (org.apache.thrift.TException te) {
25117
        throw new java.io.IOException(te);
25118
      }
25119
    }
25120
 
25121
  }
25122
 
25123
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
25124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
25125
 
25126
    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);
25127
    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);
25128
    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);
25129
 
25130
    private long itemId; // required
25131
    private long warehouseId; // required
25132
    private long quantity; // required
25133
 
25134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25136
      ITEM_ID((short)1, "itemId"),
25137
      WAREHOUSE_ID((short)2, "warehouseId"),
25138
      QUANTITY((short)3, "quantity");
25139
 
25140
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25141
 
25142
      static {
25143
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25144
          byName.put(field.getFieldName(), field);
25145
        }
25146
      }
25147
 
25148
      /**
25149
       * Find the _Fields constant that matches fieldId, or null if its not found.
25150
       */
25151
      public static _Fields findByThriftId(int fieldId) {
25152
        switch(fieldId) {
25153
          case 1: // ITEM_ID
25154
            return ITEM_ID;
25155
          case 2: // WAREHOUSE_ID
25156
            return WAREHOUSE_ID;
25157
          case 3: // QUANTITY
25158
            return QUANTITY;
25159
          default:
25160
            return null;
25161
        }
25162
      }
25163
 
25164
      /**
25165
       * Find the _Fields constant that matches fieldId, throwing an exception
25166
       * if it is not found.
25167
       */
25168
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25169
        _Fields fields = findByThriftId(fieldId);
25170
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25171
        return fields;
25172
      }
25173
 
25174
      /**
25175
       * Find the _Fields constant that matches name, or null if its not found.
25176
       */
25177
      public static _Fields findByName(String name) {
25178
        return byName.get(name);
25179
      }
25180
 
25181
      private final short _thriftId;
25182
      private final String _fieldName;
25183
 
25184
      _Fields(short thriftId, String fieldName) {
25185
        _thriftId = thriftId;
25186
        _fieldName = fieldName;
25187
      }
25188
 
25189
      public short getThriftFieldId() {
25190
        return _thriftId;
25191
      }
25192
 
25193
      public String getFieldName() {
25194
        return _fieldName;
25195
      }
25196
    }
25197
 
25198
    // isset id assignments
25199
    private static final int __ITEMID_ISSET_ID = 0;
25200
    private static final int __WAREHOUSEID_ISSET_ID = 1;
25201
    private static final int __QUANTITY_ISSET_ID = 2;
25202
    private BitSet __isset_bit_vector = new BitSet(3);
25203
 
25204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25205
    static {
25206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25207
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25209
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25211
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
25215
    }
25216
 
25217
    public addBadInventory_args() {
25218
    }
25219
 
25220
    public addBadInventory_args(
25221
      long itemId,
25222
      long warehouseId,
25223
      long quantity)
25224
    {
25225
      this();
25226
      this.itemId = itemId;
25227
      setItemIdIsSet(true);
25228
      this.warehouseId = warehouseId;
25229
      setWarehouseIdIsSet(true);
25230
      this.quantity = quantity;
25231
      setQuantityIsSet(true);
25232
    }
25233
 
25234
    /**
25235
     * Performs a deep copy on <i>other</i>.
25236
     */
25237
    public addBadInventory_args(addBadInventory_args other) {
25238
      __isset_bit_vector.clear();
25239
      __isset_bit_vector.or(other.__isset_bit_vector);
25240
      this.itemId = other.itemId;
25241
      this.warehouseId = other.warehouseId;
25242
      this.quantity = other.quantity;
25243
    }
25244
 
25245
    public addBadInventory_args deepCopy() {
25246
      return new addBadInventory_args(this);
25247
    }
25248
 
25249
    @Override
25250
    public void clear() {
25251
      setItemIdIsSet(false);
25252
      this.itemId = 0;
25253
      setWarehouseIdIsSet(false);
25254
      this.warehouseId = 0;
25255
      setQuantityIsSet(false);
25256
      this.quantity = 0;
25257
    }
25258
 
25259
    public long getItemId() {
25260
      return this.itemId;
25261
    }
25262
 
25263
    public void setItemId(long itemId) {
25264
      this.itemId = itemId;
25265
      setItemIdIsSet(true);
25266
    }
25267
 
25268
    public void unsetItemId() {
25269
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
25270
    }
25271
 
25272
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
25273
    public boolean isSetItemId() {
25274
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
25275
    }
25276
 
25277
    public void setItemIdIsSet(boolean value) {
25278
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
25279
    }
25280
 
25281
    public long getWarehouseId() {
25282
      return this.warehouseId;
25283
    }
25284
 
25285
    public void setWarehouseId(long warehouseId) {
25286
      this.warehouseId = warehouseId;
25287
      setWarehouseIdIsSet(true);
25288
    }
25289
 
25290
    public void unsetWarehouseId() {
25291
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25292
    }
25293
 
25294
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25295
    public boolean isSetWarehouseId() {
25296
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25297
    }
25298
 
25299
    public void setWarehouseIdIsSet(boolean value) {
25300
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25301
    }
25302
 
25303
    public long getQuantity() {
25304
      return this.quantity;
25305
    }
25306
 
25307
    public void setQuantity(long quantity) {
25308
      this.quantity = quantity;
25309
      setQuantityIsSet(true);
25310
    }
25311
 
25312
    public void unsetQuantity() {
25313
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
25314
    }
25315
 
25316
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
25317
    public boolean isSetQuantity() {
25318
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
25319
    }
25320
 
25321
    public void setQuantityIsSet(boolean value) {
25322
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
25323
    }
25324
 
25325
    public void setFieldValue(_Fields field, Object value) {
25326
      switch (field) {
25327
      case ITEM_ID:
25328
        if (value == null) {
25329
          unsetItemId();
25330
        } else {
25331
          setItemId((Long)value);
25332
        }
25333
        break;
25334
 
25335
      case WAREHOUSE_ID:
25336
        if (value == null) {
25337
          unsetWarehouseId();
25338
        } else {
25339
          setWarehouseId((Long)value);
25340
        }
25341
        break;
25342
 
25343
      case QUANTITY:
25344
        if (value == null) {
25345
          unsetQuantity();
25346
        } else {
25347
          setQuantity((Long)value);
25348
        }
25349
        break;
25350
 
25351
      }
25352
    }
25353
 
25354
    public Object getFieldValue(_Fields field) {
25355
      switch (field) {
25356
      case ITEM_ID:
25357
        return Long.valueOf(getItemId());
25358
 
25359
      case WAREHOUSE_ID:
25360
        return Long.valueOf(getWarehouseId());
25361
 
25362
      case QUANTITY:
25363
        return Long.valueOf(getQuantity());
25364
 
25365
      }
25366
      throw new IllegalStateException();
25367
    }
25368
 
25369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25370
    public boolean isSet(_Fields field) {
25371
      if (field == null) {
25372
        throw new IllegalArgumentException();
25373
      }
25374
 
25375
      switch (field) {
25376
      case ITEM_ID:
25377
        return isSetItemId();
25378
      case WAREHOUSE_ID:
25379
        return isSetWarehouseId();
25380
      case QUANTITY:
25381
        return isSetQuantity();
25382
      }
25383
      throw new IllegalStateException();
25384
    }
25385
 
25386
    @Override
25387
    public boolean equals(Object that) {
25388
      if (that == null)
25389
        return false;
25390
      if (that instanceof addBadInventory_args)
25391
        return this.equals((addBadInventory_args)that);
25392
      return false;
25393
    }
25394
 
25395
    public boolean equals(addBadInventory_args that) {
25396
      if (that == null)
25397
        return false;
25398
 
25399
      boolean this_present_itemId = true;
25400
      boolean that_present_itemId = true;
25401
      if (this_present_itemId || that_present_itemId) {
25402
        if (!(this_present_itemId && that_present_itemId))
25403
          return false;
25404
        if (this.itemId != that.itemId)
25405
          return false;
25406
      }
25407
 
25408
      boolean this_present_warehouseId = true;
25409
      boolean that_present_warehouseId = true;
25410
      if (this_present_warehouseId || that_present_warehouseId) {
25411
        if (!(this_present_warehouseId && that_present_warehouseId))
25412
          return false;
25413
        if (this.warehouseId != that.warehouseId)
25414
          return false;
25415
      }
25416
 
25417
      boolean this_present_quantity = true;
25418
      boolean that_present_quantity = true;
25419
      if (this_present_quantity || that_present_quantity) {
25420
        if (!(this_present_quantity && that_present_quantity))
25421
          return false;
25422
        if (this.quantity != that.quantity)
25423
          return false;
25424
      }
25425
 
25426
      return true;
25427
    }
25428
 
25429
    @Override
25430
    public int hashCode() {
25431
      return 0;
25432
    }
25433
 
25434
    public int compareTo(addBadInventory_args other) {
25435
      if (!getClass().equals(other.getClass())) {
25436
        return getClass().getName().compareTo(other.getClass().getName());
25437
      }
25438
 
25439
      int lastComparison = 0;
25440
      addBadInventory_args typedOther = (addBadInventory_args)other;
25441
 
25442
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
25443
      if (lastComparison != 0) {
25444
        return lastComparison;
25445
      }
25446
      if (isSetItemId()) {
25447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
25448
        if (lastComparison != 0) {
25449
          return lastComparison;
25450
        }
25451
      }
25452
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25453
      if (lastComparison != 0) {
25454
        return lastComparison;
25455
      }
25456
      if (isSetWarehouseId()) {
25457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25458
        if (lastComparison != 0) {
25459
          return lastComparison;
25460
        }
25461
      }
25462
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
25463
      if (lastComparison != 0) {
25464
        return lastComparison;
25465
      }
25466
      if (isSetQuantity()) {
25467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
25468
        if (lastComparison != 0) {
25469
          return lastComparison;
25470
        }
25471
      }
25472
      return 0;
25473
    }
25474
 
25475
    public _Fields fieldForId(int fieldId) {
25476
      return _Fields.findByThriftId(fieldId);
25477
    }
25478
 
25479
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25480
      org.apache.thrift.protocol.TField field;
25481
      iprot.readStructBegin();
25482
      while (true)
25483
      {
25484
        field = iprot.readFieldBegin();
25485
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25486
          break;
25487
        }
25488
        switch (field.id) {
25489
          case 1: // ITEM_ID
25490
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25491
              this.itemId = iprot.readI64();
25492
              setItemIdIsSet(true);
25493
            } else { 
25494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25495
            }
25496
            break;
25497
          case 2: // WAREHOUSE_ID
25498
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25499
              this.warehouseId = iprot.readI64();
25500
              setWarehouseIdIsSet(true);
25501
            } else { 
25502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25503
            }
25504
            break;
25505
          case 3: // QUANTITY
25506
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25507
              this.quantity = iprot.readI64();
25508
              setQuantityIsSet(true);
25509
            } else { 
25510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25511
            }
25512
            break;
25513
          default:
25514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25515
        }
25516
        iprot.readFieldEnd();
25517
      }
25518
      iprot.readStructEnd();
25519
      validate();
25520
    }
25521
 
25522
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25523
      validate();
25524
 
25525
      oprot.writeStructBegin(STRUCT_DESC);
25526
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
25527
      oprot.writeI64(this.itemId);
25528
      oprot.writeFieldEnd();
25529
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25530
      oprot.writeI64(this.warehouseId);
25531
      oprot.writeFieldEnd();
25532
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
25533
      oprot.writeI64(this.quantity);
25534
      oprot.writeFieldEnd();
25535
      oprot.writeFieldStop();
25536
      oprot.writeStructEnd();
25537
    }
25538
 
25539
    @Override
25540
    public String toString() {
25541
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
25542
      boolean first = true;
25543
 
25544
      sb.append("itemId:");
25545
      sb.append(this.itemId);
25546
      first = false;
25547
      if (!first) sb.append(", ");
25548
      sb.append("warehouseId:");
25549
      sb.append(this.warehouseId);
25550
      first = false;
25551
      if (!first) sb.append(", ");
25552
      sb.append("quantity:");
25553
      sb.append(this.quantity);
25554
      first = false;
25555
      sb.append(")");
25556
      return sb.toString();
25557
    }
25558
 
25559
    public void validate() throws org.apache.thrift.TException {
25560
      // check for required fields
25561
    }
25562
 
25563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25564
      try {
25565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25566
      } catch (org.apache.thrift.TException te) {
25567
        throw new java.io.IOException(te);
25568
      }
25569
    }
25570
 
25571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25572
      try {
25573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25574
      } catch (org.apache.thrift.TException te) {
25575
        throw new java.io.IOException(te);
25576
      }
25577
    }
25578
 
25579
  }
25580
 
25581
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
25582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
25583
 
25584
    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);
25585
 
25586
    private InventoryServiceException cex; // required
25587
 
25588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25590
      CEX((short)1, "cex");
25591
 
25592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25593
 
25594
      static {
25595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25596
          byName.put(field.getFieldName(), field);
25597
        }
25598
      }
25599
 
25600
      /**
25601
       * Find the _Fields constant that matches fieldId, or null if its not found.
25602
       */
25603
      public static _Fields findByThriftId(int fieldId) {
25604
        switch(fieldId) {
25605
          case 1: // CEX
25606
            return CEX;
25607
          default:
25608
            return null;
25609
        }
25610
      }
25611
 
25612
      /**
25613
       * Find the _Fields constant that matches fieldId, throwing an exception
25614
       * if it is not found.
25615
       */
25616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25617
        _Fields fields = findByThriftId(fieldId);
25618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25619
        return fields;
25620
      }
25621
 
25622
      /**
25623
       * Find the _Fields constant that matches name, or null if its not found.
25624
       */
25625
      public static _Fields findByName(String name) {
25626
        return byName.get(name);
25627
      }
25628
 
25629
      private final short _thriftId;
25630
      private final String _fieldName;
25631
 
25632
      _Fields(short thriftId, String fieldName) {
25633
        _thriftId = thriftId;
25634
        _fieldName = fieldName;
25635
      }
25636
 
25637
      public short getThriftFieldId() {
25638
        return _thriftId;
25639
      }
25640
 
25641
      public String getFieldName() {
25642
        return _fieldName;
25643
      }
25644
    }
25645
 
25646
    // isset id assignments
25647
 
25648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25649
    static {
25650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25651
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
25655
    }
25656
 
25657
    public addBadInventory_result() {
25658
    }
25659
 
25660
    public addBadInventory_result(
25661
      InventoryServiceException cex)
25662
    {
25663
      this();
25664
      this.cex = cex;
25665
    }
25666
 
25667
    /**
25668
     * Performs a deep copy on <i>other</i>.
25669
     */
25670
    public addBadInventory_result(addBadInventory_result other) {
25671
      if (other.isSetCex()) {
25672
        this.cex = new InventoryServiceException(other.cex);
25673
      }
25674
    }
25675
 
25676
    public addBadInventory_result deepCopy() {
25677
      return new addBadInventory_result(this);
25678
    }
25679
 
25680
    @Override
25681
    public void clear() {
25682
      this.cex = null;
25683
    }
25684
 
25685
    public InventoryServiceException getCex() {
25686
      return this.cex;
25687
    }
25688
 
25689
    public void setCex(InventoryServiceException cex) {
25690
      this.cex = cex;
25691
    }
25692
 
25693
    public void unsetCex() {
25694
      this.cex = null;
25695
    }
25696
 
25697
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
25698
    public boolean isSetCex() {
25699
      return this.cex != null;
25700
    }
25701
 
25702
    public void setCexIsSet(boolean value) {
25703
      if (!value) {
25704
        this.cex = null;
25705
      }
25706
    }
25707
 
25708
    public void setFieldValue(_Fields field, Object value) {
25709
      switch (field) {
25710
      case CEX:
25711
        if (value == null) {
25712
          unsetCex();
25713
        } else {
25714
          setCex((InventoryServiceException)value);
25715
        }
25716
        break;
25717
 
25718
      }
25719
    }
25720
 
25721
    public Object getFieldValue(_Fields field) {
25722
      switch (field) {
25723
      case CEX:
25724
        return getCex();
25725
 
25726
      }
25727
      throw new IllegalStateException();
25728
    }
25729
 
25730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25731
    public boolean isSet(_Fields field) {
25732
      if (field == null) {
25733
        throw new IllegalArgumentException();
25734
      }
25735
 
25736
      switch (field) {
25737
      case CEX:
25738
        return isSetCex();
25739
      }
25740
      throw new IllegalStateException();
25741
    }
25742
 
25743
    @Override
25744
    public boolean equals(Object that) {
25745
      if (that == null)
25746
        return false;
25747
      if (that instanceof addBadInventory_result)
25748
        return this.equals((addBadInventory_result)that);
25749
      return false;
25750
    }
25751
 
25752
    public boolean equals(addBadInventory_result that) {
25753
      if (that == null)
25754
        return false;
25755
 
25756
      boolean this_present_cex = true && this.isSetCex();
25757
      boolean that_present_cex = true && that.isSetCex();
25758
      if (this_present_cex || that_present_cex) {
25759
        if (!(this_present_cex && that_present_cex))
25760
          return false;
25761
        if (!this.cex.equals(that.cex))
25762
          return false;
25763
      }
25764
 
25765
      return true;
25766
    }
25767
 
25768
    @Override
25769
    public int hashCode() {
25770
      return 0;
25771
    }
25772
 
25773
    public int compareTo(addBadInventory_result other) {
25774
      if (!getClass().equals(other.getClass())) {
25775
        return getClass().getName().compareTo(other.getClass().getName());
25776
      }
25777
 
25778
      int lastComparison = 0;
25779
      addBadInventory_result typedOther = (addBadInventory_result)other;
25780
 
25781
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25782
      if (lastComparison != 0) {
25783
        return lastComparison;
25784
      }
25785
      if (isSetCex()) {
25786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25787
        if (lastComparison != 0) {
25788
          return lastComparison;
25789
        }
25790
      }
25791
      return 0;
25792
    }
25793
 
25794
    public _Fields fieldForId(int fieldId) {
25795
      return _Fields.findByThriftId(fieldId);
25796
    }
25797
 
25798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25799
      org.apache.thrift.protocol.TField field;
25800
      iprot.readStructBegin();
25801
      while (true)
25802
      {
25803
        field = iprot.readFieldBegin();
25804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25805
          break;
25806
        }
25807
        switch (field.id) {
25808
          case 1: // CEX
25809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25810
              this.cex = new InventoryServiceException();
25811
              this.cex.read(iprot);
25812
            } else { 
25813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25814
            }
25815
            break;
25816
          default:
25817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25818
        }
25819
        iprot.readFieldEnd();
25820
      }
25821
      iprot.readStructEnd();
25822
      validate();
25823
    }
25824
 
25825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25826
      oprot.writeStructBegin(STRUCT_DESC);
25827
 
25828
      if (this.isSetCex()) {
25829
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25830
        this.cex.write(oprot);
25831
        oprot.writeFieldEnd();
25832
      }
25833
      oprot.writeFieldStop();
25834
      oprot.writeStructEnd();
25835
    }
25836
 
25837
    @Override
25838
    public String toString() {
25839
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
25840
      boolean first = true;
25841
 
25842
      sb.append("cex:");
25843
      if (this.cex == null) {
25844
        sb.append("null");
25845
      } else {
25846
        sb.append(this.cex);
25847
      }
25848
      first = false;
25849
      sb.append(")");
25850
      return sb.toString();
25851
    }
25852
 
25853
    public void validate() throws org.apache.thrift.TException {
25854
      // check for required fields
25855
    }
25856
 
25857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25858
      try {
25859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25860
      } catch (org.apache.thrift.TException te) {
25861
        throw new java.io.IOException(te);
25862
      }
25863
    }
25864
 
25865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25866
      try {
25867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25868
      } catch (org.apache.thrift.TException te) {
25869
        throw new java.io.IOException(te);
25870
      }
25871
    }
25872
 
25873
  }
25874
 
25875
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
25876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
25877
 
25878
 
25879
 
25880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25882
;
25883
 
25884
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25885
 
25886
      static {
25887
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25888
          byName.put(field.getFieldName(), field);
25889
        }
25890
      }
25891
 
25892
      /**
25893
       * Find the _Fields constant that matches fieldId, or null if its not found.
25894
       */
25895
      public static _Fields findByThriftId(int fieldId) {
25896
        switch(fieldId) {
25897
          default:
25898
            return null;
25899
        }
25900
      }
25901
 
25902
      /**
25903
       * Find the _Fields constant that matches fieldId, throwing an exception
25904
       * if it is not found.
25905
       */
25906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25907
        _Fields fields = findByThriftId(fieldId);
25908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25909
        return fields;
25910
      }
25911
 
25912
      /**
25913
       * Find the _Fields constant that matches name, or null if its not found.
25914
       */
25915
      public static _Fields findByName(String name) {
25916
        return byName.get(name);
25917
      }
25918
 
25919
      private final short _thriftId;
25920
      private final String _fieldName;
25921
 
25922
      _Fields(short thriftId, String fieldName) {
25923
        _thriftId = thriftId;
25924
        _fieldName = fieldName;
25925
      }
25926
 
25927
      public short getThriftFieldId() {
25928
        return _thriftId;
25929
      }
25930
 
25931
      public String getFieldName() {
25932
        return _fieldName;
25933
      }
25934
    }
25935
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25936
    static {
25937
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25938
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25939
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
25940
    }
25941
 
25942
    public getShippingLocations_args() {
25943
    }
25944
 
25945
    /**
25946
     * Performs a deep copy on <i>other</i>.
25947
     */
25948
    public getShippingLocations_args(getShippingLocations_args other) {
25949
    }
25950
 
25951
    public getShippingLocations_args deepCopy() {
25952
      return new getShippingLocations_args(this);
25953
    }
25954
 
25955
    @Override
25956
    public void clear() {
25957
    }
25958
 
25959
    public void setFieldValue(_Fields field, Object value) {
25960
      switch (field) {
25961
      }
25962
    }
25963
 
25964
    public Object getFieldValue(_Fields field) {
25965
      switch (field) {
25966
      }
25967
      throw new IllegalStateException();
25968
    }
25969
 
25970
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25971
    public boolean isSet(_Fields field) {
25972
      if (field == null) {
25973
        throw new IllegalArgumentException();
25974
      }
25975
 
25976
      switch (field) {
25977
      }
25978
      throw new IllegalStateException();
25979
    }
25980
 
25981
    @Override
25982
    public boolean equals(Object that) {
25983
      if (that == null)
25984
        return false;
25985
      if (that instanceof getShippingLocations_args)
25986
        return this.equals((getShippingLocations_args)that);
25987
      return false;
25988
    }
25989
 
25990
    public boolean equals(getShippingLocations_args that) {
25991
      if (that == null)
25992
        return false;
25993
 
25994
      return true;
25995
    }
25996
 
25997
    @Override
25998
    public int hashCode() {
25999
      return 0;
26000
    }
26001
 
26002
    public int compareTo(getShippingLocations_args other) {
26003
      if (!getClass().equals(other.getClass())) {
26004
        return getClass().getName().compareTo(other.getClass().getName());
26005
      }
26006
 
26007
      int lastComparison = 0;
26008
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
26009
 
26010
      return 0;
26011
    }
26012
 
26013
    public _Fields fieldForId(int fieldId) {
26014
      return _Fields.findByThriftId(fieldId);
26015
    }
26016
 
26017
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26018
      org.apache.thrift.protocol.TField field;
26019
      iprot.readStructBegin();
26020
      while (true)
26021
      {
26022
        field = iprot.readFieldBegin();
26023
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26024
          break;
26025
        }
26026
        switch (field.id) {
26027
          default:
26028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26029
        }
26030
        iprot.readFieldEnd();
26031
      }
26032
      iprot.readStructEnd();
26033
      validate();
26034
    }
26035
 
26036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26037
      validate();
26038
 
26039
      oprot.writeStructBegin(STRUCT_DESC);
26040
      oprot.writeFieldStop();
26041
      oprot.writeStructEnd();
26042
    }
26043
 
26044
    @Override
26045
    public String toString() {
26046
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
26047
      boolean first = true;
26048
 
26049
      sb.append(")");
26050
      return sb.toString();
26051
    }
26052
 
26053
    public void validate() throws org.apache.thrift.TException {
26054
      // check for required fields
26055
    }
26056
 
26057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26058
      try {
26059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26060
      } catch (org.apache.thrift.TException te) {
26061
        throw new java.io.IOException(te);
26062
      }
26063
    }
26064
 
26065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26066
      try {
26067
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26068
      } catch (org.apache.thrift.TException te) {
26069
        throw new java.io.IOException(te);
26070
      }
26071
    }
26072
 
26073
  }
26074
 
26075
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
26076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
26077
 
26078
    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);
26079
 
26080
    private List<Warehouse> success; // required
26081
 
26082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26084
      SUCCESS((short)0, "success");
26085
 
26086
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26087
 
26088
      static {
26089
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26090
          byName.put(field.getFieldName(), field);
26091
        }
26092
      }
26093
 
26094
      /**
26095
       * Find the _Fields constant that matches fieldId, or null if its not found.
26096
       */
26097
      public static _Fields findByThriftId(int fieldId) {
26098
        switch(fieldId) {
26099
          case 0: // SUCCESS
26100
            return SUCCESS;
26101
          default:
26102
            return null;
26103
        }
26104
      }
26105
 
26106
      /**
26107
       * Find the _Fields constant that matches fieldId, throwing an exception
26108
       * if it is not found.
26109
       */
26110
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26111
        _Fields fields = findByThriftId(fieldId);
26112
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26113
        return fields;
26114
      }
26115
 
26116
      /**
26117
       * Find the _Fields constant that matches name, or null if its not found.
26118
       */
26119
      public static _Fields findByName(String name) {
26120
        return byName.get(name);
26121
      }
26122
 
26123
      private final short _thriftId;
26124
      private final String _fieldName;
26125
 
26126
      _Fields(short thriftId, String fieldName) {
26127
        _thriftId = thriftId;
26128
        _fieldName = fieldName;
26129
      }
26130
 
26131
      public short getThriftFieldId() {
26132
        return _thriftId;
26133
      }
26134
 
26135
      public String getFieldName() {
26136
        return _fieldName;
26137
      }
26138
    }
26139
 
26140
    // isset id assignments
26141
 
26142
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26143
    static {
26144
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26145
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26146
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26147
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
26148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
26150
    }
26151
 
26152
    public getShippingLocations_result() {
26153
    }
26154
 
26155
    public getShippingLocations_result(
26156
      List<Warehouse> success)
26157
    {
26158
      this();
26159
      this.success = success;
26160
    }
26161
 
26162
    /**
26163
     * Performs a deep copy on <i>other</i>.
26164
     */
26165
    public getShippingLocations_result(getShippingLocations_result other) {
26166
      if (other.isSetSuccess()) {
26167
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
26168
        for (Warehouse other_element : other.success) {
26169
          __this__success.add(new Warehouse(other_element));
26170
        }
26171
        this.success = __this__success;
26172
      }
26173
    }
26174
 
26175
    public getShippingLocations_result deepCopy() {
26176
      return new getShippingLocations_result(this);
26177
    }
26178
 
26179
    @Override
26180
    public void clear() {
26181
      this.success = null;
26182
    }
26183
 
26184
    public int getSuccessSize() {
26185
      return (this.success == null) ? 0 : this.success.size();
26186
    }
26187
 
26188
    public java.util.Iterator<Warehouse> getSuccessIterator() {
26189
      return (this.success == null) ? null : this.success.iterator();
26190
    }
26191
 
26192
    public void addToSuccess(Warehouse elem) {
26193
      if (this.success == null) {
26194
        this.success = new ArrayList<Warehouse>();
26195
      }
26196
      this.success.add(elem);
26197
    }
26198
 
26199
    public List<Warehouse> getSuccess() {
26200
      return this.success;
26201
    }
26202
 
26203
    public void setSuccess(List<Warehouse> success) {
26204
      this.success = success;
26205
    }
26206
 
26207
    public void unsetSuccess() {
26208
      this.success = null;
26209
    }
26210
 
26211
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26212
    public boolean isSetSuccess() {
26213
      return this.success != null;
26214
    }
26215
 
26216
    public void setSuccessIsSet(boolean value) {
26217
      if (!value) {
26218
        this.success = null;
26219
      }
26220
    }
26221
 
26222
    public void setFieldValue(_Fields field, Object value) {
26223
      switch (field) {
26224
      case SUCCESS:
26225
        if (value == null) {
26226
          unsetSuccess();
26227
        } else {
26228
          setSuccess((List<Warehouse>)value);
26229
        }
26230
        break;
26231
 
26232
      }
26233
    }
26234
 
26235
    public Object getFieldValue(_Fields field) {
26236
      switch (field) {
26237
      case SUCCESS:
26238
        return getSuccess();
26239
 
26240
      }
26241
      throw new IllegalStateException();
26242
    }
26243
 
26244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26245
    public boolean isSet(_Fields field) {
26246
      if (field == null) {
26247
        throw new IllegalArgumentException();
26248
      }
26249
 
26250
      switch (field) {
26251
      case SUCCESS:
26252
        return isSetSuccess();
26253
      }
26254
      throw new IllegalStateException();
26255
    }
26256
 
26257
    @Override
26258
    public boolean equals(Object that) {
26259
      if (that == null)
26260
        return false;
26261
      if (that instanceof getShippingLocations_result)
26262
        return this.equals((getShippingLocations_result)that);
26263
      return false;
26264
    }
26265
 
26266
    public boolean equals(getShippingLocations_result that) {
26267
      if (that == null)
26268
        return false;
26269
 
26270
      boolean this_present_success = true && this.isSetSuccess();
26271
      boolean that_present_success = true && that.isSetSuccess();
26272
      if (this_present_success || that_present_success) {
26273
        if (!(this_present_success && that_present_success))
26274
          return false;
26275
        if (!this.success.equals(that.success))
26276
          return false;
26277
      }
26278
 
26279
      return true;
26280
    }
26281
 
26282
    @Override
26283
    public int hashCode() {
26284
      return 0;
26285
    }
26286
 
26287
    public int compareTo(getShippingLocations_result other) {
26288
      if (!getClass().equals(other.getClass())) {
26289
        return getClass().getName().compareTo(other.getClass().getName());
26290
      }
26291
 
26292
      int lastComparison = 0;
26293
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
26294
 
26295
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26296
      if (lastComparison != 0) {
26297
        return lastComparison;
26298
      }
26299
      if (isSetSuccess()) {
26300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26301
        if (lastComparison != 0) {
26302
          return lastComparison;
26303
        }
26304
      }
26305
      return 0;
26306
    }
26307
 
26308
    public _Fields fieldForId(int fieldId) {
26309
      return _Fields.findByThriftId(fieldId);
26310
    }
26311
 
26312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26313
      org.apache.thrift.protocol.TField field;
26314
      iprot.readStructBegin();
26315
      while (true)
26316
      {
26317
        field = iprot.readFieldBegin();
26318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26319
          break;
26320
        }
26321
        switch (field.id) {
26322
          case 0: // SUCCESS
26323
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26324
              {
26325
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
26326
                this.success = new ArrayList<Warehouse>(_list66.size);
26327
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
26328
                {
26329
                  Warehouse _elem68; // required
26330
                  _elem68 = new Warehouse();
26331
                  _elem68.read(iprot);
26332
                  this.success.add(_elem68);
26333
                }
26334
                iprot.readListEnd();
26335
              }
26336
            } else { 
26337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26338
            }
26339
            break;
26340
          default:
26341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26342
        }
26343
        iprot.readFieldEnd();
26344
      }
26345
      iprot.readStructEnd();
26346
      validate();
26347
    }
26348
 
26349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26350
      oprot.writeStructBegin(STRUCT_DESC);
26351
 
26352
      if (this.isSetSuccess()) {
26353
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26354
        {
26355
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26356
          for (Warehouse _iter69 : this.success)
26357
          {
26358
            _iter69.write(oprot);
26359
          }
26360
          oprot.writeListEnd();
26361
        }
26362
        oprot.writeFieldEnd();
26363
      }
26364
      oprot.writeFieldStop();
26365
      oprot.writeStructEnd();
26366
    }
26367
 
26368
    @Override
26369
    public String toString() {
26370
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
26371
      boolean first = true;
26372
 
26373
      sb.append("success:");
26374
      if (this.success == null) {
26375
        sb.append("null");
26376
      } else {
26377
        sb.append(this.success);
26378
      }
26379
      first = false;
26380
      sb.append(")");
26381
      return sb.toString();
26382
    }
26383
 
26384
    public void validate() throws org.apache.thrift.TException {
26385
      // check for required fields
26386
    }
26387
 
26388
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26389
      try {
26390
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26391
      } catch (org.apache.thrift.TException te) {
26392
        throw new java.io.IOException(te);
26393
      }
26394
    }
26395
 
26396
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26397
      try {
26398
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26399
      } catch (org.apache.thrift.TException te) {
26400
        throw new java.io.IOException(te);
26401
      }
26402
    }
26403
 
26404
  }
26405
 
26406
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
26407
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
26408
 
26409
 
26410
 
26411
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26412
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26413
;
26414
 
26415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26416
 
26417
      static {
26418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26419
          byName.put(field.getFieldName(), field);
26420
        }
26421
      }
26422
 
26423
      /**
26424
       * Find the _Fields constant that matches fieldId, or null if its not found.
26425
       */
26426
      public static _Fields findByThriftId(int fieldId) {
26427
        switch(fieldId) {
26428
          default:
26429
            return null;
26430
        }
26431
      }
26432
 
26433
      /**
26434
       * Find the _Fields constant that matches fieldId, throwing an exception
26435
       * if it is not found.
26436
       */
26437
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26438
        _Fields fields = findByThriftId(fieldId);
26439
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26440
        return fields;
26441
      }
26442
 
26443
      /**
26444
       * Find the _Fields constant that matches name, or null if its not found.
26445
       */
26446
      public static _Fields findByName(String name) {
26447
        return byName.get(name);
26448
      }
26449
 
26450
      private final short _thriftId;
26451
      private final String _fieldName;
26452
 
26453
      _Fields(short thriftId, String fieldName) {
26454
        _thriftId = thriftId;
26455
        _fieldName = fieldName;
26456
      }
26457
 
26458
      public short getThriftFieldId() {
26459
        return _thriftId;
26460
      }
26461
 
26462
      public String getFieldName() {
26463
        return _fieldName;
26464
      }
26465
    }
26466
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26467
    static {
26468
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
26471
    }
26472
 
26473
    public getAllVendorItemMappings_args() {
26474
    }
26475
 
26476
    /**
26477
     * Performs a deep copy on <i>other</i>.
26478
     */
26479
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
26480
    }
26481
 
26482
    public getAllVendorItemMappings_args deepCopy() {
26483
      return new getAllVendorItemMappings_args(this);
26484
    }
26485
 
26486
    @Override
26487
    public void clear() {
26488
    }
26489
 
26490
    public void setFieldValue(_Fields field, Object value) {
26491
      switch (field) {
26492
      }
26493
    }
26494
 
26495
    public Object getFieldValue(_Fields field) {
26496
      switch (field) {
26497
      }
26498
      throw new IllegalStateException();
26499
    }
26500
 
26501
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26502
    public boolean isSet(_Fields field) {
26503
      if (field == null) {
26504
        throw new IllegalArgumentException();
26505
      }
26506
 
26507
      switch (field) {
26508
      }
26509
      throw new IllegalStateException();
26510
    }
26511
 
26512
    @Override
26513
    public boolean equals(Object that) {
26514
      if (that == null)
26515
        return false;
26516
      if (that instanceof getAllVendorItemMappings_args)
26517
        return this.equals((getAllVendorItemMappings_args)that);
26518
      return false;
26519
    }
26520
 
26521
    public boolean equals(getAllVendorItemMappings_args that) {
26522
      if (that == null)
26523
        return false;
26524
 
26525
      return true;
26526
    }
26527
 
26528
    @Override
26529
    public int hashCode() {
26530
      return 0;
26531
    }
26532
 
26533
    public int compareTo(getAllVendorItemMappings_args other) {
26534
      if (!getClass().equals(other.getClass())) {
26535
        return getClass().getName().compareTo(other.getClass().getName());
26536
      }
26537
 
26538
      int lastComparison = 0;
26539
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
26540
 
26541
      return 0;
26542
    }
26543
 
26544
    public _Fields fieldForId(int fieldId) {
26545
      return _Fields.findByThriftId(fieldId);
26546
    }
26547
 
26548
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26549
      org.apache.thrift.protocol.TField field;
26550
      iprot.readStructBegin();
26551
      while (true)
26552
      {
26553
        field = iprot.readFieldBegin();
26554
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26555
          break;
26556
        }
26557
        switch (field.id) {
26558
          default:
26559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26560
        }
26561
        iprot.readFieldEnd();
26562
      }
26563
      iprot.readStructEnd();
26564
      validate();
26565
    }
26566
 
26567
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26568
      validate();
26569
 
26570
      oprot.writeStructBegin(STRUCT_DESC);
26571
      oprot.writeFieldStop();
26572
      oprot.writeStructEnd();
26573
    }
26574
 
26575
    @Override
26576
    public String toString() {
26577
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
26578
      boolean first = true;
26579
 
26580
      sb.append(")");
26581
      return sb.toString();
26582
    }
26583
 
26584
    public void validate() throws org.apache.thrift.TException {
26585
      // check for required fields
26586
    }
26587
 
26588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26589
      try {
26590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26591
      } catch (org.apache.thrift.TException te) {
26592
        throw new java.io.IOException(te);
26593
      }
26594
    }
26595
 
26596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26597
      try {
26598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26599
      } catch (org.apache.thrift.TException te) {
26600
        throw new java.io.IOException(te);
26601
      }
26602
    }
26603
 
26604
  }
26605
 
26606
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
26607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
26608
 
26609
    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);
26610
 
26611
    private List<VendorItemMapping> success; // required
26612
 
26613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26615
      SUCCESS((short)0, "success");
26616
 
26617
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26618
 
26619
      static {
26620
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26621
          byName.put(field.getFieldName(), field);
26622
        }
26623
      }
26624
 
26625
      /**
26626
       * Find the _Fields constant that matches fieldId, or null if its not found.
26627
       */
26628
      public static _Fields findByThriftId(int fieldId) {
26629
        switch(fieldId) {
26630
          case 0: // SUCCESS
26631
            return SUCCESS;
26632
          default:
26633
            return null;
26634
        }
26635
      }
26636
 
26637
      /**
26638
       * Find the _Fields constant that matches fieldId, throwing an exception
26639
       * if it is not found.
26640
       */
26641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26642
        _Fields fields = findByThriftId(fieldId);
26643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26644
        return fields;
26645
      }
26646
 
26647
      /**
26648
       * Find the _Fields constant that matches name, or null if its not found.
26649
       */
26650
      public static _Fields findByName(String name) {
26651
        return byName.get(name);
26652
      }
26653
 
26654
      private final short _thriftId;
26655
      private final String _fieldName;
26656
 
26657
      _Fields(short thriftId, String fieldName) {
26658
        _thriftId = thriftId;
26659
        _fieldName = fieldName;
26660
      }
26661
 
26662
      public short getThriftFieldId() {
26663
        return _thriftId;
26664
      }
26665
 
26666
      public String getFieldName() {
26667
        return _fieldName;
26668
      }
26669
    }
26670
 
26671
    // isset id assignments
26672
 
26673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26674
    static {
26675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26677
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26678
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
26679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
26681
    }
26682
 
26683
    public getAllVendorItemMappings_result() {
26684
    }
26685
 
26686
    public getAllVendorItemMappings_result(
26687
      List<VendorItemMapping> success)
26688
    {
26689
      this();
26690
      this.success = success;
26691
    }
26692
 
26693
    /**
26694
     * Performs a deep copy on <i>other</i>.
26695
     */
26696
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
26697
      if (other.isSetSuccess()) {
26698
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
26699
        for (VendorItemMapping other_element : other.success) {
26700
          __this__success.add(new VendorItemMapping(other_element));
26701
        }
26702
        this.success = __this__success;
26703
      }
26704
    }
26705
 
26706
    public getAllVendorItemMappings_result deepCopy() {
26707
      return new getAllVendorItemMappings_result(this);
26708
    }
26709
 
26710
    @Override
26711
    public void clear() {
26712
      this.success = null;
26713
    }
26714
 
26715
    public int getSuccessSize() {
26716
      return (this.success == null) ? 0 : this.success.size();
26717
    }
26718
 
26719
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
26720
      return (this.success == null) ? null : this.success.iterator();
26721
    }
26722
 
26723
    public void addToSuccess(VendorItemMapping elem) {
26724
      if (this.success == null) {
26725
        this.success = new ArrayList<VendorItemMapping>();
26726
      }
26727
      this.success.add(elem);
26728
    }
26729
 
26730
    public List<VendorItemMapping> getSuccess() {
26731
      return this.success;
26732
    }
26733
 
26734
    public void setSuccess(List<VendorItemMapping> success) {
26735
      this.success = success;
26736
    }
26737
 
26738
    public void unsetSuccess() {
26739
      this.success = null;
26740
    }
26741
 
26742
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26743
    public boolean isSetSuccess() {
26744
      return this.success != null;
26745
    }
26746
 
26747
    public void setSuccessIsSet(boolean value) {
26748
      if (!value) {
26749
        this.success = null;
26750
      }
26751
    }
26752
 
26753
    public void setFieldValue(_Fields field, Object value) {
26754
      switch (field) {
26755
      case SUCCESS:
26756
        if (value == null) {
26757
          unsetSuccess();
26758
        } else {
26759
          setSuccess((List<VendorItemMapping>)value);
26760
        }
26761
        break;
26762
 
26763
      }
26764
    }
26765
 
26766
    public Object getFieldValue(_Fields field) {
26767
      switch (field) {
26768
      case SUCCESS:
26769
        return getSuccess();
26770
 
26771
      }
26772
      throw new IllegalStateException();
26773
    }
26774
 
26775
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26776
    public boolean isSet(_Fields field) {
26777
      if (field == null) {
26778
        throw new IllegalArgumentException();
26779
      }
26780
 
26781
      switch (field) {
26782
      case SUCCESS:
26783
        return isSetSuccess();
26784
      }
26785
      throw new IllegalStateException();
26786
    }
26787
 
26788
    @Override
26789
    public boolean equals(Object that) {
26790
      if (that == null)
26791
        return false;
26792
      if (that instanceof getAllVendorItemMappings_result)
26793
        return this.equals((getAllVendorItemMappings_result)that);
26794
      return false;
26795
    }
26796
 
26797
    public boolean equals(getAllVendorItemMappings_result that) {
26798
      if (that == null)
26799
        return false;
26800
 
26801
      boolean this_present_success = true && this.isSetSuccess();
26802
      boolean that_present_success = true && that.isSetSuccess();
26803
      if (this_present_success || that_present_success) {
26804
        if (!(this_present_success && that_present_success))
26805
          return false;
26806
        if (!this.success.equals(that.success))
26807
          return false;
26808
      }
26809
 
26810
      return true;
26811
    }
26812
 
26813
    @Override
26814
    public int hashCode() {
26815
      return 0;
26816
    }
26817
 
26818
    public int compareTo(getAllVendorItemMappings_result other) {
26819
      if (!getClass().equals(other.getClass())) {
26820
        return getClass().getName().compareTo(other.getClass().getName());
26821
      }
26822
 
26823
      int lastComparison = 0;
26824
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
26825
 
26826
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26827
      if (lastComparison != 0) {
26828
        return lastComparison;
26829
      }
26830
      if (isSetSuccess()) {
26831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26832
        if (lastComparison != 0) {
26833
          return lastComparison;
26834
        }
26835
      }
26836
      return 0;
26837
    }
26838
 
26839
    public _Fields fieldForId(int fieldId) {
26840
      return _Fields.findByThriftId(fieldId);
26841
    }
26842
 
26843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26844
      org.apache.thrift.protocol.TField field;
26845
      iprot.readStructBegin();
26846
      while (true)
26847
      {
26848
        field = iprot.readFieldBegin();
26849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26850
          break;
26851
        }
26852
        switch (field.id) {
26853
          case 0: // SUCCESS
26854
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26855
              {
26856
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
26857
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
26858
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
26859
                {
26860
                  VendorItemMapping _elem72; // required
26861
                  _elem72 = new VendorItemMapping();
26862
                  _elem72.read(iprot);
26863
                  this.success.add(_elem72);
26864
                }
26865
                iprot.readListEnd();
26866
              }
26867
            } else { 
26868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26869
            }
26870
            break;
26871
          default:
26872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26873
        }
26874
        iprot.readFieldEnd();
26875
      }
26876
      iprot.readStructEnd();
26877
      validate();
26878
    }
26879
 
26880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26881
      oprot.writeStructBegin(STRUCT_DESC);
26882
 
26883
      if (this.isSetSuccess()) {
26884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26885
        {
26886
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26887
          for (VendorItemMapping _iter73 : this.success)
26888
          {
26889
            _iter73.write(oprot);
26890
          }
26891
          oprot.writeListEnd();
26892
        }
26893
        oprot.writeFieldEnd();
26894
      }
26895
      oprot.writeFieldStop();
26896
      oprot.writeStructEnd();
26897
    }
26898
 
26899
    @Override
26900
    public String toString() {
26901
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
26902
      boolean first = true;
26903
 
26904
      sb.append("success:");
26905
      if (this.success == null) {
26906
        sb.append("null");
26907
      } else {
26908
        sb.append(this.success);
26909
      }
26910
      first = false;
26911
      sb.append(")");
26912
      return sb.toString();
26913
    }
26914
 
26915
    public void validate() throws org.apache.thrift.TException {
26916
      // check for required fields
26917
    }
26918
 
26919
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26920
      try {
26921
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26922
      } catch (org.apache.thrift.TException te) {
26923
        throw new java.io.IOException(te);
26924
      }
26925
    }
26926
 
26927
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26928
      try {
26929
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26930
      } catch (org.apache.thrift.TException te) {
26931
        throw new java.io.IOException(te);
26932
      }
26933
    }
26934
 
26935
  }
26936
 
26937
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
26938
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
26939
 
26940
    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);
26941
 
26942
    private long warehouseId; // required
26943
 
26944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26945
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26946
      WAREHOUSE_ID((short)1, "warehouseId");
26947
 
26948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26949
 
26950
      static {
26951
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26952
          byName.put(field.getFieldName(), field);
26953
        }
26954
      }
26955
 
26956
      /**
26957
       * Find the _Fields constant that matches fieldId, or null if its not found.
26958
       */
26959
      public static _Fields findByThriftId(int fieldId) {
26960
        switch(fieldId) {
26961
          case 1: // WAREHOUSE_ID
26962
            return WAREHOUSE_ID;
26963
          default:
26964
            return null;
26965
        }
26966
      }
26967
 
26968
      /**
26969
       * Find the _Fields constant that matches fieldId, throwing an exception
26970
       * if it is not found.
26971
       */
26972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26973
        _Fields fields = findByThriftId(fieldId);
26974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26975
        return fields;
26976
      }
26977
 
26978
      /**
26979
       * Find the _Fields constant that matches name, or null if its not found.
26980
       */
26981
      public static _Fields findByName(String name) {
26982
        return byName.get(name);
26983
      }
26984
 
26985
      private final short _thriftId;
26986
      private final String _fieldName;
26987
 
26988
      _Fields(short thriftId, String fieldName) {
26989
        _thriftId = thriftId;
26990
        _fieldName = fieldName;
26991
      }
26992
 
26993
      public short getThriftFieldId() {
26994
        return _thriftId;
26995
      }
26996
 
26997
      public String getFieldName() {
26998
        return _fieldName;
26999
      }
27000
    }
27001
 
27002
    // isset id assignments
27003
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27004
    private BitSet __isset_bit_vector = new BitSet(1);
27005
 
27006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27007
    static {
27008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27009
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27010
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27011
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27012
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
27013
    }
27014
 
27015
    public getInventorySnapshot_args() {
27016
    }
27017
 
27018
    public getInventorySnapshot_args(
27019
      long warehouseId)
27020
    {
27021
      this();
27022
      this.warehouseId = warehouseId;
27023
      setWarehouseIdIsSet(true);
27024
    }
27025
 
27026
    /**
27027
     * Performs a deep copy on <i>other</i>.
27028
     */
27029
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
27030
      __isset_bit_vector.clear();
27031
      __isset_bit_vector.or(other.__isset_bit_vector);
27032
      this.warehouseId = other.warehouseId;
27033
    }
27034
 
27035
    public getInventorySnapshot_args deepCopy() {
27036
      return new getInventorySnapshot_args(this);
27037
    }
27038
 
27039
    @Override
27040
    public void clear() {
27041
      setWarehouseIdIsSet(false);
27042
      this.warehouseId = 0;
27043
    }
27044
 
27045
    public long getWarehouseId() {
27046
      return this.warehouseId;
27047
    }
27048
 
27049
    public void setWarehouseId(long warehouseId) {
27050
      this.warehouseId = warehouseId;
27051
      setWarehouseIdIsSet(true);
27052
    }
27053
 
27054
    public void unsetWarehouseId() {
27055
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27056
    }
27057
 
27058
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27059
    public boolean isSetWarehouseId() {
27060
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27061
    }
27062
 
27063
    public void setWarehouseIdIsSet(boolean value) {
27064
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27065
    }
27066
 
27067
    public void setFieldValue(_Fields field, Object value) {
27068
      switch (field) {
27069
      case WAREHOUSE_ID:
27070
        if (value == null) {
27071
          unsetWarehouseId();
27072
        } else {
27073
          setWarehouseId((Long)value);
27074
        }
27075
        break;
27076
 
27077
      }
27078
    }
27079
 
27080
    public Object getFieldValue(_Fields field) {
27081
      switch (field) {
27082
      case WAREHOUSE_ID:
27083
        return Long.valueOf(getWarehouseId());
27084
 
27085
      }
27086
      throw new IllegalStateException();
27087
    }
27088
 
27089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27090
    public boolean isSet(_Fields field) {
27091
      if (field == null) {
27092
        throw new IllegalArgumentException();
27093
      }
27094
 
27095
      switch (field) {
27096
      case WAREHOUSE_ID:
27097
        return isSetWarehouseId();
27098
      }
27099
      throw new IllegalStateException();
27100
    }
27101
 
27102
    @Override
27103
    public boolean equals(Object that) {
27104
      if (that == null)
27105
        return false;
27106
      if (that instanceof getInventorySnapshot_args)
27107
        return this.equals((getInventorySnapshot_args)that);
27108
      return false;
27109
    }
27110
 
27111
    public boolean equals(getInventorySnapshot_args that) {
27112
      if (that == null)
27113
        return false;
27114
 
27115
      boolean this_present_warehouseId = true;
27116
      boolean that_present_warehouseId = true;
27117
      if (this_present_warehouseId || that_present_warehouseId) {
27118
        if (!(this_present_warehouseId && that_present_warehouseId))
27119
          return false;
27120
        if (this.warehouseId != that.warehouseId)
27121
          return false;
27122
      }
27123
 
27124
      return true;
27125
    }
27126
 
27127
    @Override
27128
    public int hashCode() {
27129
      return 0;
27130
    }
27131
 
27132
    public int compareTo(getInventorySnapshot_args other) {
27133
      if (!getClass().equals(other.getClass())) {
27134
        return getClass().getName().compareTo(other.getClass().getName());
27135
      }
27136
 
27137
      int lastComparison = 0;
27138
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
27139
 
27140
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27141
      if (lastComparison != 0) {
27142
        return lastComparison;
27143
      }
27144
      if (isSetWarehouseId()) {
27145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27146
        if (lastComparison != 0) {
27147
          return lastComparison;
27148
        }
27149
      }
27150
      return 0;
27151
    }
27152
 
27153
    public _Fields fieldForId(int fieldId) {
27154
      return _Fields.findByThriftId(fieldId);
27155
    }
27156
 
27157
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27158
      org.apache.thrift.protocol.TField field;
27159
      iprot.readStructBegin();
27160
      while (true)
27161
      {
27162
        field = iprot.readFieldBegin();
27163
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27164
          break;
27165
        }
27166
        switch (field.id) {
27167
          case 1: // WAREHOUSE_ID
27168
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27169
              this.warehouseId = iprot.readI64();
27170
              setWarehouseIdIsSet(true);
27171
            } else { 
27172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27173
            }
27174
            break;
27175
          default:
27176
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27177
        }
27178
        iprot.readFieldEnd();
27179
      }
27180
      iprot.readStructEnd();
27181
      validate();
27182
    }
27183
 
27184
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27185
      validate();
27186
 
27187
      oprot.writeStructBegin(STRUCT_DESC);
27188
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27189
      oprot.writeI64(this.warehouseId);
27190
      oprot.writeFieldEnd();
27191
      oprot.writeFieldStop();
27192
      oprot.writeStructEnd();
27193
    }
27194
 
27195
    @Override
27196
    public String toString() {
27197
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
27198
      boolean first = true;
27199
 
27200
      sb.append("warehouseId:");
27201
      sb.append(this.warehouseId);
27202
      first = false;
27203
      sb.append(")");
27204
      return sb.toString();
27205
    }
27206
 
27207
    public void validate() throws org.apache.thrift.TException {
27208
      // check for required fields
27209
    }
27210
 
27211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27212
      try {
27213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27214
      } catch (org.apache.thrift.TException te) {
27215
        throw new java.io.IOException(te);
27216
      }
27217
    }
27218
 
27219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27220
      try {
27221
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27222
        __isset_bit_vector = new BitSet(1);
27223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27224
      } catch (org.apache.thrift.TException te) {
27225
        throw new java.io.IOException(te);
27226
      }
27227
    }
27228
 
27229
  }
27230
 
27231
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
27232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
27233
 
27234
    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);
27235
 
27236
    private Map<Long,ItemInventory> success; // required
27237
 
27238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27240
      SUCCESS((short)0, "success");
27241
 
27242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27243
 
27244
      static {
27245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27246
          byName.put(field.getFieldName(), field);
27247
        }
27248
      }
27249
 
27250
      /**
27251
       * Find the _Fields constant that matches fieldId, or null if its not found.
27252
       */
27253
      public static _Fields findByThriftId(int fieldId) {
27254
        switch(fieldId) {
27255
          case 0: // SUCCESS
27256
            return SUCCESS;
27257
          default:
27258
            return null;
27259
        }
27260
      }
27261
 
27262
      /**
27263
       * Find the _Fields constant that matches fieldId, throwing an exception
27264
       * if it is not found.
27265
       */
27266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27267
        _Fields fields = findByThriftId(fieldId);
27268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27269
        return fields;
27270
      }
27271
 
27272
      /**
27273
       * Find the _Fields constant that matches name, or null if its not found.
27274
       */
27275
      public static _Fields findByName(String name) {
27276
        return byName.get(name);
27277
      }
27278
 
27279
      private final short _thriftId;
27280
      private final String _fieldName;
27281
 
27282
      _Fields(short thriftId, String fieldName) {
27283
        _thriftId = thriftId;
27284
        _fieldName = fieldName;
27285
      }
27286
 
27287
      public short getThriftFieldId() {
27288
        return _thriftId;
27289
      }
27290
 
27291
      public String getFieldName() {
27292
        return _fieldName;
27293
      }
27294
    }
27295
 
27296
    // isset id assignments
27297
 
27298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27299
    static {
27300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27302
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
27303
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
27304
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
27305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
27307
    }
27308
 
27309
    public getInventorySnapshot_result() {
27310
    }
27311
 
27312
    public getInventorySnapshot_result(
27313
      Map<Long,ItemInventory> success)
27314
    {
27315
      this();
27316
      this.success = success;
27317
    }
27318
 
27319
    /**
27320
     * Performs a deep copy on <i>other</i>.
27321
     */
27322
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
27323
      if (other.isSetSuccess()) {
27324
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
27325
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
27326
 
27327
          Long other_element_key = other_element.getKey();
27328
          ItemInventory other_element_value = other_element.getValue();
27329
 
27330
          Long __this__success_copy_key = other_element_key;
27331
 
27332
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
27333
 
27334
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
27335
        }
27336
        this.success = __this__success;
27337
      }
27338
    }
27339
 
27340
    public getInventorySnapshot_result deepCopy() {
27341
      return new getInventorySnapshot_result(this);
27342
    }
27343
 
27344
    @Override
27345
    public void clear() {
27346
      this.success = null;
27347
    }
27348
 
27349
    public int getSuccessSize() {
27350
      return (this.success == null) ? 0 : this.success.size();
27351
    }
27352
 
27353
    public void putToSuccess(long key, ItemInventory val) {
27354
      if (this.success == null) {
27355
        this.success = new HashMap<Long,ItemInventory>();
27356
      }
27357
      this.success.put(key, val);
27358
    }
27359
 
27360
    public Map<Long,ItemInventory> getSuccess() {
27361
      return this.success;
27362
    }
27363
 
27364
    public void setSuccess(Map<Long,ItemInventory> success) {
27365
      this.success = success;
27366
    }
27367
 
27368
    public void unsetSuccess() {
27369
      this.success = null;
27370
    }
27371
 
27372
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27373
    public boolean isSetSuccess() {
27374
      return this.success != null;
27375
    }
27376
 
27377
    public void setSuccessIsSet(boolean value) {
27378
      if (!value) {
27379
        this.success = null;
27380
      }
27381
    }
27382
 
27383
    public void setFieldValue(_Fields field, Object value) {
27384
      switch (field) {
27385
      case SUCCESS:
27386
        if (value == null) {
27387
          unsetSuccess();
27388
        } else {
27389
          setSuccess((Map<Long,ItemInventory>)value);
27390
        }
27391
        break;
27392
 
27393
      }
27394
    }
27395
 
27396
    public Object getFieldValue(_Fields field) {
27397
      switch (field) {
27398
      case SUCCESS:
27399
        return getSuccess();
27400
 
27401
      }
27402
      throw new IllegalStateException();
27403
    }
27404
 
27405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27406
    public boolean isSet(_Fields field) {
27407
      if (field == null) {
27408
        throw new IllegalArgumentException();
27409
      }
27410
 
27411
      switch (field) {
27412
      case SUCCESS:
27413
        return isSetSuccess();
27414
      }
27415
      throw new IllegalStateException();
27416
    }
27417
 
27418
    @Override
27419
    public boolean equals(Object that) {
27420
      if (that == null)
27421
        return false;
27422
      if (that instanceof getInventorySnapshot_result)
27423
        return this.equals((getInventorySnapshot_result)that);
27424
      return false;
27425
    }
27426
 
27427
    public boolean equals(getInventorySnapshot_result that) {
27428
      if (that == null)
27429
        return false;
27430
 
27431
      boolean this_present_success = true && this.isSetSuccess();
27432
      boolean that_present_success = true && that.isSetSuccess();
27433
      if (this_present_success || that_present_success) {
27434
        if (!(this_present_success && that_present_success))
27435
          return false;
27436
        if (!this.success.equals(that.success))
27437
          return false;
27438
      }
27439
 
27440
      return true;
27441
    }
27442
 
27443
    @Override
27444
    public int hashCode() {
27445
      return 0;
27446
    }
27447
 
27448
    public int compareTo(getInventorySnapshot_result other) {
27449
      if (!getClass().equals(other.getClass())) {
27450
        return getClass().getName().compareTo(other.getClass().getName());
27451
      }
27452
 
27453
      int lastComparison = 0;
27454
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
27455
 
27456
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27457
      if (lastComparison != 0) {
27458
        return lastComparison;
27459
      }
27460
      if (isSetSuccess()) {
27461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27462
        if (lastComparison != 0) {
27463
          return lastComparison;
27464
        }
27465
      }
27466
      return 0;
27467
    }
27468
 
27469
    public _Fields fieldForId(int fieldId) {
27470
      return _Fields.findByThriftId(fieldId);
27471
    }
27472
 
27473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27474
      org.apache.thrift.protocol.TField field;
27475
      iprot.readStructBegin();
27476
      while (true)
27477
      {
27478
        field = iprot.readFieldBegin();
27479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27480
          break;
27481
        }
27482
        switch (field.id) {
27483
          case 0: // SUCCESS
27484
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
27485
              {
27486
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
27487
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
27488
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
27489
                {
27490
                  long _key76; // required
27491
                  ItemInventory _val77; // required
27492
                  _key76 = iprot.readI64();
27493
                  _val77 = new ItemInventory();
27494
                  _val77.read(iprot);
27495
                  this.success.put(_key76, _val77);
27496
                }
27497
                iprot.readMapEnd();
27498
              }
27499
            } else { 
27500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27501
            }
27502
            break;
27503
          default:
27504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27505
        }
27506
        iprot.readFieldEnd();
27507
      }
27508
      iprot.readStructEnd();
27509
      validate();
27510
    }
27511
 
27512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27513
      oprot.writeStructBegin(STRUCT_DESC);
27514
 
27515
      if (this.isSetSuccess()) {
27516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27517
        {
27518
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27519
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
27520
          {
27521
            oprot.writeI64(_iter78.getKey());
27522
            _iter78.getValue().write(oprot);
27523
          }
27524
          oprot.writeMapEnd();
27525
        }
27526
        oprot.writeFieldEnd();
27527
      }
27528
      oprot.writeFieldStop();
27529
      oprot.writeStructEnd();
27530
    }
27531
 
27532
    @Override
27533
    public String toString() {
27534
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
27535
      boolean first = true;
27536
 
27537
      sb.append("success:");
27538
      if (this.success == null) {
27539
        sb.append("null");
27540
      } else {
27541
        sb.append(this.success);
27542
      }
27543
      first = false;
27544
      sb.append(")");
27545
      return sb.toString();
27546
    }
27547
 
27548
    public void validate() throws org.apache.thrift.TException {
27549
      // check for required fields
27550
    }
27551
 
27552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27553
      try {
27554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27555
      } catch (org.apache.thrift.TException te) {
27556
        throw new java.io.IOException(te);
27557
      }
27558
    }
27559
 
27560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27561
      try {
27562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27563
      } catch (org.apache.thrift.TException te) {
27564
        throw new java.io.IOException(te);
27565
      }
27566
    }
27567
 
27568
  }
27569
 
27570
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
27571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
27572
 
27573
 
27574
 
27575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27577
;
27578
 
27579
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27580
 
27581
      static {
27582
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27583
          byName.put(field.getFieldName(), field);
27584
        }
27585
      }
27586
 
27587
      /**
27588
       * Find the _Fields constant that matches fieldId, or null if its not found.
27589
       */
27590
      public static _Fields findByThriftId(int fieldId) {
27591
        switch(fieldId) {
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
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27631
    static {
27632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27633
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27634
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
27635
    }
27636
 
27637
    public clearItemAvailabilityCache_args() {
27638
    }
27639
 
27640
    /**
27641
     * Performs a deep copy on <i>other</i>.
27642
     */
27643
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
27644
    }
27645
 
27646
    public clearItemAvailabilityCache_args deepCopy() {
27647
      return new clearItemAvailabilityCache_args(this);
27648
    }
27649
 
27650
    @Override
27651
    public void clear() {
27652
    }
27653
 
27654
    public void setFieldValue(_Fields field, Object value) {
27655
      switch (field) {
27656
      }
27657
    }
27658
 
27659
    public Object getFieldValue(_Fields field) {
27660
      switch (field) {
27661
      }
27662
      throw new IllegalStateException();
27663
    }
27664
 
27665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27666
    public boolean isSet(_Fields field) {
27667
      if (field == null) {
27668
        throw new IllegalArgumentException();
27669
      }
27670
 
27671
      switch (field) {
27672
      }
27673
      throw new IllegalStateException();
27674
    }
27675
 
27676
    @Override
27677
    public boolean equals(Object that) {
27678
      if (that == null)
27679
        return false;
27680
      if (that instanceof clearItemAvailabilityCache_args)
27681
        return this.equals((clearItemAvailabilityCache_args)that);
27682
      return false;
27683
    }
27684
 
27685
    public boolean equals(clearItemAvailabilityCache_args that) {
27686
      if (that == null)
27687
        return false;
27688
 
27689
      return true;
27690
    }
27691
 
27692
    @Override
27693
    public int hashCode() {
27694
      return 0;
27695
    }
27696
 
27697
    public int compareTo(clearItemAvailabilityCache_args other) {
27698
      if (!getClass().equals(other.getClass())) {
27699
        return getClass().getName().compareTo(other.getClass().getName());
27700
      }
27701
 
27702
      int lastComparison = 0;
27703
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
27704
 
27705
      return 0;
27706
    }
27707
 
27708
    public _Fields fieldForId(int fieldId) {
27709
      return _Fields.findByThriftId(fieldId);
27710
    }
27711
 
27712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27713
      org.apache.thrift.protocol.TField field;
27714
      iprot.readStructBegin();
27715
      while (true)
27716
      {
27717
        field = iprot.readFieldBegin();
27718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27719
          break;
27720
        }
27721
        switch (field.id) {
27722
          default:
27723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27724
        }
27725
        iprot.readFieldEnd();
27726
      }
27727
      iprot.readStructEnd();
27728
      validate();
27729
    }
27730
 
27731
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27732
      validate();
27733
 
27734
      oprot.writeStructBegin(STRUCT_DESC);
27735
      oprot.writeFieldStop();
27736
      oprot.writeStructEnd();
27737
    }
27738
 
27739
    @Override
27740
    public String toString() {
27741
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
27742
      boolean first = true;
27743
 
27744
      sb.append(")");
27745
      return sb.toString();
27746
    }
27747
 
27748
    public void validate() throws org.apache.thrift.TException {
27749
      // check for required fields
27750
    }
27751
 
27752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27753
      try {
27754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27755
      } catch (org.apache.thrift.TException te) {
27756
        throw new java.io.IOException(te);
27757
      }
27758
    }
27759
 
27760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27761
      try {
27762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27763
      } catch (org.apache.thrift.TException te) {
27764
        throw new java.io.IOException(te);
27765
      }
27766
    }
27767
 
27768
  }
27769
 
27770
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
27771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
27772
 
27773
 
27774
 
27775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27776
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27777
;
27778
 
27779
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27780
 
27781
      static {
27782
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27783
          byName.put(field.getFieldName(), field);
27784
        }
27785
      }
27786
 
27787
      /**
27788
       * Find the _Fields constant that matches fieldId, or null if its not found.
27789
       */
27790
      public static _Fields findByThriftId(int fieldId) {
27791
        switch(fieldId) {
27792
          default:
27793
            return null;
27794
        }
27795
      }
27796
 
27797
      /**
27798
       * Find the _Fields constant that matches fieldId, throwing an exception
27799
       * if it is not found.
27800
       */
27801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27802
        _Fields fields = findByThriftId(fieldId);
27803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27804
        return fields;
27805
      }
27806
 
27807
      /**
27808
       * Find the _Fields constant that matches name, or null if its not found.
27809
       */
27810
      public static _Fields findByName(String name) {
27811
        return byName.get(name);
27812
      }
27813
 
27814
      private final short _thriftId;
27815
      private final String _fieldName;
27816
 
27817
      _Fields(short thriftId, String fieldName) {
27818
        _thriftId = thriftId;
27819
        _fieldName = fieldName;
27820
      }
27821
 
27822
      public short getThriftFieldId() {
27823
        return _thriftId;
27824
      }
27825
 
27826
      public String getFieldName() {
27827
        return _fieldName;
27828
      }
27829
    }
27830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27831
    static {
27832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
27835
    }
27836
 
27837
    public clearItemAvailabilityCache_result() {
27838
    }
27839
 
27840
    /**
27841
     * Performs a deep copy on <i>other</i>.
27842
     */
27843
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
27844
    }
27845
 
27846
    public clearItemAvailabilityCache_result deepCopy() {
27847
      return new clearItemAvailabilityCache_result(this);
27848
    }
27849
 
27850
    @Override
27851
    public void clear() {
27852
    }
27853
 
27854
    public void setFieldValue(_Fields field, Object value) {
27855
      switch (field) {
27856
      }
27857
    }
27858
 
27859
    public Object getFieldValue(_Fields field) {
27860
      switch (field) {
27861
      }
27862
      throw new IllegalStateException();
27863
    }
27864
 
27865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27866
    public boolean isSet(_Fields field) {
27867
      if (field == null) {
27868
        throw new IllegalArgumentException();
27869
      }
27870
 
27871
      switch (field) {
27872
      }
27873
      throw new IllegalStateException();
27874
    }
27875
 
27876
    @Override
27877
    public boolean equals(Object that) {
27878
      if (that == null)
27879
        return false;
27880
      if (that instanceof clearItemAvailabilityCache_result)
27881
        return this.equals((clearItemAvailabilityCache_result)that);
27882
      return false;
27883
    }
27884
 
27885
    public boolean equals(clearItemAvailabilityCache_result that) {
27886
      if (that == null)
27887
        return false;
27888
 
27889
      return true;
27890
    }
27891
 
27892
    @Override
27893
    public int hashCode() {
27894
      return 0;
27895
    }
27896
 
27897
    public int compareTo(clearItemAvailabilityCache_result other) {
27898
      if (!getClass().equals(other.getClass())) {
27899
        return getClass().getName().compareTo(other.getClass().getName());
27900
      }
27901
 
27902
      int lastComparison = 0;
27903
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
27904
 
27905
      return 0;
27906
    }
27907
 
27908
    public _Fields fieldForId(int fieldId) {
27909
      return _Fields.findByThriftId(fieldId);
27910
    }
27911
 
27912
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27913
      org.apache.thrift.protocol.TField field;
27914
      iprot.readStructBegin();
27915
      while (true)
27916
      {
27917
        field = iprot.readFieldBegin();
27918
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27919
          break;
27920
        }
27921
        switch (field.id) {
27922
          default:
27923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27924
        }
27925
        iprot.readFieldEnd();
27926
      }
27927
      iprot.readStructEnd();
27928
      validate();
27929
    }
27930
 
27931
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27932
      oprot.writeStructBegin(STRUCT_DESC);
27933
 
27934
      oprot.writeFieldStop();
27935
      oprot.writeStructEnd();
27936
    }
27937
 
27938
    @Override
27939
    public String toString() {
27940
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
27941
      boolean first = true;
27942
 
27943
      sb.append(")");
27944
      return sb.toString();
27945
    }
27946
 
27947
    public void validate() throws org.apache.thrift.TException {
27948
      // check for required fields
27949
    }
27950
 
27951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27952
      try {
27953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27954
      } catch (org.apache.thrift.TException te) {
27955
        throw new java.io.IOException(te);
27956
      }
27957
    }
27958
 
27959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27960
      try {
27961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27962
      } catch (org.apache.thrift.TException te) {
27963
        throw new java.io.IOException(te);
27964
      }
27965
    }
27966
 
27967
  }
27968
 
27969
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
27970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
27971
 
27972
    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);
27973
    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);
27974
 
27975
    private long warehouseId; // required
27976
    private String vendorString; // required
27977
 
27978
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27979
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27980
      WAREHOUSE_ID((short)1, "warehouseId"),
27981
      VENDOR_STRING((short)2, "vendorString");
27982
 
27983
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27984
 
27985
      static {
27986
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27987
          byName.put(field.getFieldName(), field);
27988
        }
27989
      }
27990
 
27991
      /**
27992
       * Find the _Fields constant that matches fieldId, or null if its not found.
27993
       */
27994
      public static _Fields findByThriftId(int fieldId) {
27995
        switch(fieldId) {
27996
          case 1: // WAREHOUSE_ID
27997
            return WAREHOUSE_ID;
27998
          case 2: // VENDOR_STRING
27999
            return VENDOR_STRING;
28000
          default:
28001
            return null;
28002
        }
28003
      }
28004
 
28005
      /**
28006
       * Find the _Fields constant that matches fieldId, throwing an exception
28007
       * if it is not found.
28008
       */
28009
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28010
        _Fields fields = findByThriftId(fieldId);
28011
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28012
        return fields;
28013
      }
28014
 
28015
      /**
28016
       * Find the _Fields constant that matches name, or null if its not found.
28017
       */
28018
      public static _Fields findByName(String name) {
28019
        return byName.get(name);
28020
      }
28021
 
28022
      private final short _thriftId;
28023
      private final String _fieldName;
28024
 
28025
      _Fields(short thriftId, String fieldName) {
28026
        _thriftId = thriftId;
28027
        _fieldName = fieldName;
28028
      }
28029
 
28030
      public short getThriftFieldId() {
28031
        return _thriftId;
28032
      }
28033
 
28034
      public String getFieldName() {
28035
        return _fieldName;
28036
      }
28037
    }
28038
 
28039
    // isset id assignments
28040
    private static final int __WAREHOUSEID_ISSET_ID = 0;
28041
    private BitSet __isset_bit_vector = new BitSet(1);
28042
 
28043
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28044
    static {
28045
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28046
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28047
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28048
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28050
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28051
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
28052
    }
28053
 
28054
    public updateVendorString_args() {
28055
    }
28056
 
28057
    public updateVendorString_args(
28058
      long warehouseId,
28059
      String vendorString)
28060
    {
28061
      this();
28062
      this.warehouseId = warehouseId;
28063
      setWarehouseIdIsSet(true);
28064
      this.vendorString = vendorString;
28065
    }
28066
 
28067
    /**
28068
     * Performs a deep copy on <i>other</i>.
28069
     */
28070
    public updateVendorString_args(updateVendorString_args other) {
28071
      __isset_bit_vector.clear();
28072
      __isset_bit_vector.or(other.__isset_bit_vector);
28073
      this.warehouseId = other.warehouseId;
28074
      if (other.isSetVendorString()) {
28075
        this.vendorString = other.vendorString;
28076
      }
28077
    }
28078
 
28079
    public updateVendorString_args deepCopy() {
28080
      return new updateVendorString_args(this);
28081
    }
28082
 
28083
    @Override
28084
    public void clear() {
28085
      setWarehouseIdIsSet(false);
28086
      this.warehouseId = 0;
28087
      this.vendorString = null;
28088
    }
28089
 
28090
    public long getWarehouseId() {
28091
      return this.warehouseId;
28092
    }
28093
 
28094
    public void setWarehouseId(long warehouseId) {
28095
      this.warehouseId = warehouseId;
28096
      setWarehouseIdIsSet(true);
28097
    }
28098
 
28099
    public void unsetWarehouseId() {
28100
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
28101
    }
28102
 
28103
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
28104
    public boolean isSetWarehouseId() {
28105
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
28106
    }
28107
 
28108
    public void setWarehouseIdIsSet(boolean value) {
28109
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
28110
    }
28111
 
28112
    public String getVendorString() {
28113
      return this.vendorString;
28114
    }
28115
 
28116
    public void setVendorString(String vendorString) {
28117
      this.vendorString = vendorString;
28118
    }
28119
 
28120
    public void unsetVendorString() {
28121
      this.vendorString = null;
28122
    }
28123
 
28124
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
28125
    public boolean isSetVendorString() {
28126
      return this.vendorString != null;
28127
    }
28128
 
28129
    public void setVendorStringIsSet(boolean value) {
28130
      if (!value) {
28131
        this.vendorString = null;
28132
      }
28133
    }
28134
 
28135
    public void setFieldValue(_Fields field, Object value) {
28136
      switch (field) {
28137
      case WAREHOUSE_ID:
28138
        if (value == null) {
28139
          unsetWarehouseId();
28140
        } else {
28141
          setWarehouseId((Long)value);
28142
        }
28143
        break;
28144
 
28145
      case VENDOR_STRING:
28146
        if (value == null) {
28147
          unsetVendorString();
28148
        } else {
28149
          setVendorString((String)value);
28150
        }
28151
        break;
28152
 
28153
      }
28154
    }
28155
 
28156
    public Object getFieldValue(_Fields field) {
28157
      switch (field) {
28158
      case WAREHOUSE_ID:
28159
        return Long.valueOf(getWarehouseId());
28160
 
28161
      case VENDOR_STRING:
28162
        return getVendorString();
28163
 
28164
      }
28165
      throw new IllegalStateException();
28166
    }
28167
 
28168
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28169
    public boolean isSet(_Fields field) {
28170
      if (field == null) {
28171
        throw new IllegalArgumentException();
28172
      }
28173
 
28174
      switch (field) {
28175
      case WAREHOUSE_ID:
28176
        return isSetWarehouseId();
28177
      case VENDOR_STRING:
28178
        return isSetVendorString();
28179
      }
28180
      throw new IllegalStateException();
28181
    }
28182
 
28183
    @Override
28184
    public boolean equals(Object that) {
28185
      if (that == null)
28186
        return false;
28187
      if (that instanceof updateVendorString_args)
28188
        return this.equals((updateVendorString_args)that);
28189
      return false;
28190
    }
28191
 
28192
    public boolean equals(updateVendorString_args that) {
28193
      if (that == null)
28194
        return false;
28195
 
28196
      boolean this_present_warehouseId = true;
28197
      boolean that_present_warehouseId = true;
28198
      if (this_present_warehouseId || that_present_warehouseId) {
28199
        if (!(this_present_warehouseId && that_present_warehouseId))
28200
          return false;
28201
        if (this.warehouseId != that.warehouseId)
28202
          return false;
28203
      }
28204
 
28205
      boolean this_present_vendorString = true && this.isSetVendorString();
28206
      boolean that_present_vendorString = true && that.isSetVendorString();
28207
      if (this_present_vendorString || that_present_vendorString) {
28208
        if (!(this_present_vendorString && that_present_vendorString))
28209
          return false;
28210
        if (!this.vendorString.equals(that.vendorString))
28211
          return false;
28212
      }
28213
 
28214
      return true;
28215
    }
28216
 
28217
    @Override
28218
    public int hashCode() {
28219
      return 0;
28220
    }
28221
 
28222
    public int compareTo(updateVendorString_args other) {
28223
      if (!getClass().equals(other.getClass())) {
28224
        return getClass().getName().compareTo(other.getClass().getName());
28225
      }
28226
 
28227
      int lastComparison = 0;
28228
      updateVendorString_args typedOther = (updateVendorString_args)other;
28229
 
28230
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
28231
      if (lastComparison != 0) {
28232
        return lastComparison;
28233
      }
28234
      if (isSetWarehouseId()) {
28235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
28236
        if (lastComparison != 0) {
28237
          return lastComparison;
28238
        }
28239
      }
28240
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
28241
      if (lastComparison != 0) {
28242
        return lastComparison;
28243
      }
28244
      if (isSetVendorString()) {
28245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
28246
        if (lastComparison != 0) {
28247
          return lastComparison;
28248
        }
28249
      }
28250
      return 0;
28251
    }
28252
 
28253
    public _Fields fieldForId(int fieldId) {
28254
      return _Fields.findByThriftId(fieldId);
28255
    }
28256
 
28257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28258
      org.apache.thrift.protocol.TField field;
28259
      iprot.readStructBegin();
28260
      while (true)
28261
      {
28262
        field = iprot.readFieldBegin();
28263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28264
          break;
28265
        }
28266
        switch (field.id) {
28267
          case 1: // WAREHOUSE_ID
28268
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28269
              this.warehouseId = iprot.readI64();
28270
              setWarehouseIdIsSet(true);
28271
            } else { 
28272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28273
            }
28274
            break;
28275
          case 2: // VENDOR_STRING
28276
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28277
              this.vendorString = iprot.readString();
28278
            } else { 
28279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28280
            }
28281
            break;
28282
          default:
28283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28284
        }
28285
        iprot.readFieldEnd();
28286
      }
28287
      iprot.readStructEnd();
28288
      validate();
28289
    }
28290
 
28291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28292
      validate();
28293
 
28294
      oprot.writeStructBegin(STRUCT_DESC);
28295
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
28296
      oprot.writeI64(this.warehouseId);
28297
      oprot.writeFieldEnd();
28298
      if (this.vendorString != null) {
28299
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
28300
        oprot.writeString(this.vendorString);
28301
        oprot.writeFieldEnd();
28302
      }
28303
      oprot.writeFieldStop();
28304
      oprot.writeStructEnd();
28305
    }
28306
 
28307
    @Override
28308
    public String toString() {
28309
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
28310
      boolean first = true;
28311
 
28312
      sb.append("warehouseId:");
28313
      sb.append(this.warehouseId);
28314
      first = false;
28315
      if (!first) sb.append(", ");
28316
      sb.append("vendorString:");
28317
      if (this.vendorString == null) {
28318
        sb.append("null");
28319
      } else {
28320
        sb.append(this.vendorString);
28321
      }
28322
      first = false;
28323
      sb.append(")");
28324
      return sb.toString();
28325
    }
28326
 
28327
    public void validate() throws org.apache.thrift.TException {
28328
      // check for required fields
28329
    }
28330
 
28331
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28332
      try {
28333
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28334
      } catch (org.apache.thrift.TException te) {
28335
        throw new java.io.IOException(te);
28336
      }
28337
    }
28338
 
28339
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28340
      try {
5967 rajveer 28341
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28342
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 28343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28344
      } catch (org.apache.thrift.TException te) {
28345
        throw new java.io.IOException(te);
28346
      }
28347
    }
28348
 
28349
  }
28350
 
28351
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
28352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
28353
 
28354
 
28355
 
28356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28358
;
28359
 
28360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28361
 
28362
      static {
28363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28364
          byName.put(field.getFieldName(), field);
28365
        }
28366
      }
28367
 
28368
      /**
28369
       * Find the _Fields constant that matches fieldId, or null if its not found.
28370
       */
28371
      public static _Fields findByThriftId(int fieldId) {
28372
        switch(fieldId) {
28373
          default:
28374
            return null;
28375
        }
28376
      }
28377
 
28378
      /**
28379
       * Find the _Fields constant that matches fieldId, throwing an exception
28380
       * if it is not found.
28381
       */
28382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28383
        _Fields fields = findByThriftId(fieldId);
28384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28385
        return fields;
28386
      }
28387
 
28388
      /**
28389
       * Find the _Fields constant that matches name, or null if its not found.
28390
       */
28391
      public static _Fields findByName(String name) {
28392
        return byName.get(name);
28393
      }
28394
 
28395
      private final short _thriftId;
28396
      private final String _fieldName;
28397
 
28398
      _Fields(short thriftId, String fieldName) {
28399
        _thriftId = thriftId;
28400
        _fieldName = fieldName;
28401
      }
28402
 
28403
      public short getThriftFieldId() {
28404
        return _thriftId;
28405
      }
28406
 
28407
      public String getFieldName() {
28408
        return _fieldName;
28409
      }
28410
    }
28411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28412
    static {
28413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28414
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28415
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
28416
    }
28417
 
28418
    public updateVendorString_result() {
28419
    }
28420
 
28421
    /**
28422
     * Performs a deep copy on <i>other</i>.
28423
     */
28424
    public updateVendorString_result(updateVendorString_result other) {
28425
    }
28426
 
28427
    public updateVendorString_result deepCopy() {
28428
      return new updateVendorString_result(this);
28429
    }
28430
 
28431
    @Override
28432
    public void clear() {
28433
    }
28434
 
28435
    public void setFieldValue(_Fields field, Object value) {
28436
      switch (field) {
28437
      }
28438
    }
28439
 
28440
    public Object getFieldValue(_Fields field) {
28441
      switch (field) {
28442
      }
28443
      throw new IllegalStateException();
28444
    }
28445
 
28446
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28447
    public boolean isSet(_Fields field) {
28448
      if (field == null) {
28449
        throw new IllegalArgumentException();
28450
      }
28451
 
28452
      switch (field) {
28453
      }
28454
      throw new IllegalStateException();
28455
    }
28456
 
28457
    @Override
28458
    public boolean equals(Object that) {
28459
      if (that == null)
28460
        return false;
28461
      if (that instanceof updateVendorString_result)
28462
        return this.equals((updateVendorString_result)that);
28463
      return false;
28464
    }
28465
 
28466
    public boolean equals(updateVendorString_result that) {
28467
      if (that == null)
28468
        return false;
28469
 
28470
      return true;
28471
    }
28472
 
28473
    @Override
28474
    public int hashCode() {
28475
      return 0;
28476
    }
28477
 
28478
    public int compareTo(updateVendorString_result other) {
28479
      if (!getClass().equals(other.getClass())) {
28480
        return getClass().getName().compareTo(other.getClass().getName());
28481
      }
28482
 
28483
      int lastComparison = 0;
28484
      updateVendorString_result typedOther = (updateVendorString_result)other;
28485
 
28486
      return 0;
28487
    }
28488
 
28489
    public _Fields fieldForId(int fieldId) {
28490
      return _Fields.findByThriftId(fieldId);
28491
    }
28492
 
28493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28494
      org.apache.thrift.protocol.TField field;
28495
      iprot.readStructBegin();
28496
      while (true)
28497
      {
28498
        field = iprot.readFieldBegin();
28499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28500
          break;
28501
        }
28502
        switch (field.id) {
28503
          default:
28504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28505
        }
28506
        iprot.readFieldEnd();
28507
      }
28508
      iprot.readStructEnd();
28509
      validate();
28510
    }
28511
 
28512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28513
      oprot.writeStructBegin(STRUCT_DESC);
28514
 
28515
      oprot.writeFieldStop();
28516
      oprot.writeStructEnd();
28517
    }
28518
 
28519
    @Override
28520
    public String toString() {
28521
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
28522
      boolean first = true;
28523
 
28524
      sb.append(")");
28525
      return sb.toString();
28526
    }
28527
 
28528
    public void validate() throws org.apache.thrift.TException {
28529
      // check for required fields
28530
    }
28531
 
28532
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28533
      try {
28534
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28535
      } catch (org.apache.thrift.TException te) {
28536
        throw new java.io.IOException(te);
28537
      }
28538
    }
28539
 
28540
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28541
      try {
28542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28543
      } catch (org.apache.thrift.TException te) {
28544
        throw new java.io.IOException(te);
28545
      }
28546
    }
28547
 
28548
  }
28549
 
6096 amit.gupta 28550
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
28551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
28552
 
28553
    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);
28554
 
28555
    private long item_id; // required
28556
 
28557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28559
      ITEM_ID((short)1, "item_id");
28560
 
28561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28562
 
28563
      static {
28564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28565
          byName.put(field.getFieldName(), field);
28566
        }
28567
      }
28568
 
28569
      /**
28570
       * Find the _Fields constant that matches fieldId, or null if its not found.
28571
       */
28572
      public static _Fields findByThriftId(int fieldId) {
28573
        switch(fieldId) {
28574
          case 1: // ITEM_ID
28575
            return ITEM_ID;
28576
          default:
28577
            return null;
28578
        }
28579
      }
28580
 
28581
      /**
28582
       * Find the _Fields constant that matches fieldId, throwing an exception
28583
       * if it is not found.
28584
       */
28585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28586
        _Fields fields = findByThriftId(fieldId);
28587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28588
        return fields;
28589
      }
28590
 
28591
      /**
28592
       * Find the _Fields constant that matches name, or null if its not found.
28593
       */
28594
      public static _Fields findByName(String name) {
28595
        return byName.get(name);
28596
      }
28597
 
28598
      private final short _thriftId;
28599
      private final String _fieldName;
28600
 
28601
      _Fields(short thriftId, String fieldName) {
28602
        _thriftId = thriftId;
28603
        _fieldName = fieldName;
28604
      }
28605
 
28606
      public short getThriftFieldId() {
28607
        return _thriftId;
28608
      }
28609
 
28610
      public String getFieldName() {
28611
        return _fieldName;
28612
      }
28613
    }
28614
 
28615
    // isset id assignments
28616
    private static final int __ITEM_ID_ISSET_ID = 0;
28617
    private BitSet __isset_bit_vector = new BitSet(1);
28618
 
28619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28620
    static {
28621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28622
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28623
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28624
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28625
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
28626
    }
28627
 
28628
    public clearItemAvailabilityCacheForItem_args() {
28629
    }
28630
 
28631
    public clearItemAvailabilityCacheForItem_args(
28632
      long item_id)
28633
    {
28634
      this();
28635
      this.item_id = item_id;
28636
      setItem_idIsSet(true);
28637
    }
28638
 
28639
    /**
28640
     * Performs a deep copy on <i>other</i>.
28641
     */
28642
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
28643
      __isset_bit_vector.clear();
28644
      __isset_bit_vector.or(other.__isset_bit_vector);
28645
      this.item_id = other.item_id;
28646
    }
28647
 
28648
    public clearItemAvailabilityCacheForItem_args deepCopy() {
28649
      return new clearItemAvailabilityCacheForItem_args(this);
28650
    }
28651
 
28652
    @Override
28653
    public void clear() {
28654
      setItem_idIsSet(false);
28655
      this.item_id = 0;
28656
    }
28657
 
28658
    public long getItem_id() {
28659
      return this.item_id;
28660
    }
28661
 
28662
    public void setItem_id(long item_id) {
28663
      this.item_id = item_id;
28664
      setItem_idIsSet(true);
28665
    }
28666
 
28667
    public void unsetItem_id() {
28668
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
28669
    }
28670
 
28671
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
28672
    public boolean isSetItem_id() {
28673
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
28674
    }
28675
 
28676
    public void setItem_idIsSet(boolean value) {
28677
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
28678
    }
28679
 
28680
    public void setFieldValue(_Fields field, Object value) {
28681
      switch (field) {
28682
      case ITEM_ID:
28683
        if (value == null) {
28684
          unsetItem_id();
28685
        } else {
28686
          setItem_id((Long)value);
28687
        }
28688
        break;
28689
 
28690
      }
28691
    }
28692
 
28693
    public Object getFieldValue(_Fields field) {
28694
      switch (field) {
28695
      case ITEM_ID:
28696
        return Long.valueOf(getItem_id());
28697
 
28698
      }
28699
      throw new IllegalStateException();
28700
    }
28701
 
28702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28703
    public boolean isSet(_Fields field) {
28704
      if (field == null) {
28705
        throw new IllegalArgumentException();
28706
      }
28707
 
28708
      switch (field) {
28709
      case ITEM_ID:
28710
        return isSetItem_id();
28711
      }
28712
      throw new IllegalStateException();
28713
    }
28714
 
28715
    @Override
28716
    public boolean equals(Object that) {
28717
      if (that == null)
28718
        return false;
28719
      if (that instanceof clearItemAvailabilityCacheForItem_args)
28720
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
28721
      return false;
28722
    }
28723
 
28724
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
28725
      if (that == null)
28726
        return false;
28727
 
28728
      boolean this_present_item_id = true;
28729
      boolean that_present_item_id = true;
28730
      if (this_present_item_id || that_present_item_id) {
28731
        if (!(this_present_item_id && that_present_item_id))
28732
          return false;
28733
        if (this.item_id != that.item_id)
28734
          return false;
28735
      }
28736
 
28737
      return true;
28738
    }
28739
 
28740
    @Override
28741
    public int hashCode() {
28742
      return 0;
28743
    }
28744
 
28745
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
28746
      if (!getClass().equals(other.getClass())) {
28747
        return getClass().getName().compareTo(other.getClass().getName());
28748
      }
28749
 
28750
      int lastComparison = 0;
28751
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
28752
 
28753
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
28754
      if (lastComparison != 0) {
28755
        return lastComparison;
28756
      }
28757
      if (isSetItem_id()) {
28758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
28759
        if (lastComparison != 0) {
28760
          return lastComparison;
28761
        }
28762
      }
28763
      return 0;
28764
    }
28765
 
28766
    public _Fields fieldForId(int fieldId) {
28767
      return _Fields.findByThriftId(fieldId);
28768
    }
28769
 
28770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28771
      org.apache.thrift.protocol.TField field;
28772
      iprot.readStructBegin();
28773
      while (true)
28774
      {
28775
        field = iprot.readFieldBegin();
28776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28777
          break;
28778
        }
28779
        switch (field.id) {
28780
          case 1: // ITEM_ID
28781
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28782
              this.item_id = iprot.readI64();
28783
              setItem_idIsSet(true);
28784
            } else { 
28785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28786
            }
28787
            break;
28788
          default:
28789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28790
        }
28791
        iprot.readFieldEnd();
28792
      }
28793
      iprot.readStructEnd();
28794
      validate();
28795
    }
28796
 
28797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28798
      validate();
28799
 
28800
      oprot.writeStructBegin(STRUCT_DESC);
28801
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28802
      oprot.writeI64(this.item_id);
28803
      oprot.writeFieldEnd();
28804
      oprot.writeFieldStop();
28805
      oprot.writeStructEnd();
28806
    }
28807
 
28808
    @Override
28809
    public String toString() {
28810
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
28811
      boolean first = true;
28812
 
28813
      sb.append("item_id:");
28814
      sb.append(this.item_id);
28815
      first = false;
28816
      sb.append(")");
28817
      return sb.toString();
28818
    }
28819
 
28820
    public void validate() throws org.apache.thrift.TException {
28821
      // check for required fields
28822
    }
28823
 
28824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28825
      try {
28826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28827
      } catch (org.apache.thrift.TException te) {
28828
        throw new java.io.IOException(te);
28829
      }
28830
    }
28831
 
28832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28833
      try {
28834
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28835
        __isset_bit_vector = new BitSet(1);
28836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28837
      } catch (org.apache.thrift.TException te) {
28838
        throw new java.io.IOException(te);
28839
      }
28840
    }
28841
 
28842
  }
28843
 
28844
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
28845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
28846
 
28847
 
28848
 
28849
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28850
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28851
;
28852
 
28853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28854
 
28855
      static {
28856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28857
          byName.put(field.getFieldName(), field);
28858
        }
28859
      }
28860
 
28861
      /**
28862
       * Find the _Fields constant that matches fieldId, or null if its not found.
28863
       */
28864
      public static _Fields findByThriftId(int fieldId) {
28865
        switch(fieldId) {
28866
          default:
28867
            return null;
28868
        }
28869
      }
28870
 
28871
      /**
28872
       * Find the _Fields constant that matches fieldId, throwing an exception
28873
       * if it is not found.
28874
       */
28875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28876
        _Fields fields = findByThriftId(fieldId);
28877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28878
        return fields;
28879
      }
28880
 
28881
      /**
28882
       * Find the _Fields constant that matches name, or null if its not found.
28883
       */
28884
      public static _Fields findByName(String name) {
28885
        return byName.get(name);
28886
      }
28887
 
28888
      private final short _thriftId;
28889
      private final String _fieldName;
28890
 
28891
      _Fields(short thriftId, String fieldName) {
28892
        _thriftId = thriftId;
28893
        _fieldName = fieldName;
28894
      }
28895
 
28896
      public short getThriftFieldId() {
28897
        return _thriftId;
28898
      }
28899
 
28900
      public String getFieldName() {
28901
        return _fieldName;
28902
      }
28903
    }
28904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28905
    static {
28906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
28909
    }
28910
 
28911
    public clearItemAvailabilityCacheForItem_result() {
28912
    }
28913
 
28914
    /**
28915
     * Performs a deep copy on <i>other</i>.
28916
     */
28917
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
28918
    }
28919
 
28920
    public clearItemAvailabilityCacheForItem_result deepCopy() {
28921
      return new clearItemAvailabilityCacheForItem_result(this);
28922
    }
28923
 
28924
    @Override
28925
    public void clear() {
28926
    }
28927
 
28928
    public void setFieldValue(_Fields field, Object value) {
28929
      switch (field) {
28930
      }
28931
    }
28932
 
28933
    public Object getFieldValue(_Fields field) {
28934
      switch (field) {
28935
      }
28936
      throw new IllegalStateException();
28937
    }
28938
 
28939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28940
    public boolean isSet(_Fields field) {
28941
      if (field == null) {
28942
        throw new IllegalArgumentException();
28943
      }
28944
 
28945
      switch (field) {
28946
      }
28947
      throw new IllegalStateException();
28948
    }
28949
 
28950
    @Override
28951
    public boolean equals(Object that) {
28952
      if (that == null)
28953
        return false;
28954
      if (that instanceof clearItemAvailabilityCacheForItem_result)
28955
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
28956
      return false;
28957
    }
28958
 
28959
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
28960
      if (that == null)
28961
        return false;
28962
 
28963
      return true;
28964
    }
28965
 
28966
    @Override
28967
    public int hashCode() {
28968
      return 0;
28969
    }
28970
 
28971
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
28972
      if (!getClass().equals(other.getClass())) {
28973
        return getClass().getName().compareTo(other.getClass().getName());
28974
      }
28975
 
28976
      int lastComparison = 0;
28977
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
28978
 
28979
      return 0;
28980
    }
28981
 
28982
    public _Fields fieldForId(int fieldId) {
28983
      return _Fields.findByThriftId(fieldId);
28984
    }
28985
 
28986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28987
      org.apache.thrift.protocol.TField field;
28988
      iprot.readStructBegin();
28989
      while (true)
28990
      {
28991
        field = iprot.readFieldBegin();
28992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28993
          break;
28994
        }
28995
        switch (field.id) {
28996
          default:
28997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28998
        }
28999
        iprot.readFieldEnd();
29000
      }
29001
      iprot.readStructEnd();
29002
      validate();
29003
    }
29004
 
29005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29006
      oprot.writeStructBegin(STRUCT_DESC);
29007
 
29008
      oprot.writeFieldStop();
29009
      oprot.writeStructEnd();
29010
    }
29011
 
29012
    @Override
29013
    public String toString() {
29014
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
29015
      boolean first = true;
29016
 
29017
      sb.append(")");
29018
      return sb.toString();
29019
    }
29020
 
29021
    public void validate() throws org.apache.thrift.TException {
29022
      // check for required fields
29023
    }
29024
 
29025
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29026
      try {
29027
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29028
      } catch (org.apache.thrift.TException te) {
29029
        throw new java.io.IOException(te);
29030
      }
29031
    }
29032
 
29033
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29034
      try {
29035
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29036
      } catch (org.apache.thrift.TException te) {
29037
        throw new java.io.IOException(te);
29038
      }
29039
    }
29040
 
29041
  }
29042
 
6467 amar.kumar 29043
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
29044
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
29045
 
29046
    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);
29047
 
29048
    private long vendorId; // required
29049
 
29050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29052
      VENDOR_ID((short)1, "vendorId");
29053
 
29054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29055
 
29056
      static {
29057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29058
          byName.put(field.getFieldName(), field);
29059
        }
29060
      }
29061
 
29062
      /**
29063
       * Find the _Fields constant that matches fieldId, or null if its not found.
29064
       */
29065
      public static _Fields findByThriftId(int fieldId) {
29066
        switch(fieldId) {
29067
          case 1: // VENDOR_ID
29068
            return VENDOR_ID;
29069
          default:
29070
            return null;
29071
        }
29072
      }
29073
 
29074
      /**
29075
       * Find the _Fields constant that matches fieldId, throwing an exception
29076
       * if it is not found.
29077
       */
29078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29079
        _Fields fields = findByThriftId(fieldId);
29080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29081
        return fields;
29082
      }
29083
 
29084
      /**
29085
       * Find the _Fields constant that matches name, or null if its not found.
29086
       */
29087
      public static _Fields findByName(String name) {
29088
        return byName.get(name);
29089
      }
29090
 
29091
      private final short _thriftId;
29092
      private final String _fieldName;
29093
 
29094
      _Fields(short thriftId, String fieldName) {
29095
        _thriftId = thriftId;
29096
        _fieldName = fieldName;
29097
      }
29098
 
29099
      public short getThriftFieldId() {
29100
        return _thriftId;
29101
      }
29102
 
29103
      public String getFieldName() {
29104
        return _fieldName;
29105
      }
29106
    }
29107
 
29108
    // isset id assignments
29109
    private static final int __VENDORID_ISSET_ID = 0;
29110
    private BitSet __isset_bit_vector = new BitSet(1);
29111
 
29112
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29113
    static {
29114
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29115
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29117
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29118
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
29119
    }
29120
 
29121
    public getOurWarehouseIdForVendor_args() {
29122
    }
29123
 
29124
    public getOurWarehouseIdForVendor_args(
29125
      long vendorId)
29126
    {
29127
      this();
29128
      this.vendorId = vendorId;
29129
      setVendorIdIsSet(true);
29130
    }
29131
 
29132
    /**
29133
     * Performs a deep copy on <i>other</i>.
29134
     */
29135
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
29136
      __isset_bit_vector.clear();
29137
      __isset_bit_vector.or(other.__isset_bit_vector);
29138
      this.vendorId = other.vendorId;
29139
    }
29140
 
29141
    public getOurWarehouseIdForVendor_args deepCopy() {
29142
      return new getOurWarehouseIdForVendor_args(this);
29143
    }
29144
 
29145
    @Override
29146
    public void clear() {
29147
      setVendorIdIsSet(false);
29148
      this.vendorId = 0;
29149
    }
29150
 
29151
    public long getVendorId() {
29152
      return this.vendorId;
29153
    }
29154
 
29155
    public void setVendorId(long vendorId) {
29156
      this.vendorId = vendorId;
29157
      setVendorIdIsSet(true);
29158
    }
29159
 
29160
    public void unsetVendorId() {
29161
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
29162
    }
29163
 
29164
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
29165
    public boolean isSetVendorId() {
29166
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
29167
    }
29168
 
29169
    public void setVendorIdIsSet(boolean value) {
29170
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
29171
    }
29172
 
29173
    public void setFieldValue(_Fields field, Object value) {
29174
      switch (field) {
29175
      case VENDOR_ID:
29176
        if (value == null) {
29177
          unsetVendorId();
29178
        } else {
29179
          setVendorId((Long)value);
29180
        }
29181
        break;
29182
 
29183
      }
29184
    }
29185
 
29186
    public Object getFieldValue(_Fields field) {
29187
      switch (field) {
29188
      case VENDOR_ID:
29189
        return Long.valueOf(getVendorId());
29190
 
29191
      }
29192
      throw new IllegalStateException();
29193
    }
29194
 
29195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29196
    public boolean isSet(_Fields field) {
29197
      if (field == null) {
29198
        throw new IllegalArgumentException();
29199
      }
29200
 
29201
      switch (field) {
29202
      case VENDOR_ID:
29203
        return isSetVendorId();
29204
      }
29205
      throw new IllegalStateException();
29206
    }
29207
 
29208
    @Override
29209
    public boolean equals(Object that) {
29210
      if (that == null)
29211
        return false;
29212
      if (that instanceof getOurWarehouseIdForVendor_args)
29213
        return this.equals((getOurWarehouseIdForVendor_args)that);
29214
      return false;
29215
    }
29216
 
29217
    public boolean equals(getOurWarehouseIdForVendor_args that) {
29218
      if (that == null)
29219
        return false;
29220
 
29221
      boolean this_present_vendorId = true;
29222
      boolean that_present_vendorId = true;
29223
      if (this_present_vendorId || that_present_vendorId) {
29224
        if (!(this_present_vendorId && that_present_vendorId))
29225
          return false;
29226
        if (this.vendorId != that.vendorId)
29227
          return false;
29228
      }
29229
 
29230
      return true;
29231
    }
29232
 
29233
    @Override
29234
    public int hashCode() {
29235
      return 0;
29236
    }
29237
 
29238
    public int compareTo(getOurWarehouseIdForVendor_args other) {
29239
      if (!getClass().equals(other.getClass())) {
29240
        return getClass().getName().compareTo(other.getClass().getName());
29241
      }
29242
 
29243
      int lastComparison = 0;
29244
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
29245
 
29246
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
29247
      if (lastComparison != 0) {
29248
        return lastComparison;
29249
      }
29250
      if (isSetVendorId()) {
29251
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
29252
        if (lastComparison != 0) {
29253
          return lastComparison;
29254
        }
29255
      }
29256
      return 0;
29257
    }
29258
 
29259
    public _Fields fieldForId(int fieldId) {
29260
      return _Fields.findByThriftId(fieldId);
29261
    }
29262
 
29263
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29264
      org.apache.thrift.protocol.TField field;
29265
      iprot.readStructBegin();
29266
      while (true)
29267
      {
29268
        field = iprot.readFieldBegin();
29269
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29270
          break;
29271
        }
29272
        switch (field.id) {
29273
          case 1: // VENDOR_ID
29274
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29275
              this.vendorId = iprot.readI64();
29276
              setVendorIdIsSet(true);
29277
            } else { 
29278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29279
            }
29280
            break;
29281
          default:
29282
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29283
        }
29284
        iprot.readFieldEnd();
29285
      }
29286
      iprot.readStructEnd();
29287
      validate();
29288
    }
29289
 
29290
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29291
      validate();
29292
 
29293
      oprot.writeStructBegin(STRUCT_DESC);
29294
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
29295
      oprot.writeI64(this.vendorId);
29296
      oprot.writeFieldEnd();
29297
      oprot.writeFieldStop();
29298
      oprot.writeStructEnd();
29299
    }
29300
 
29301
    @Override
29302
    public String toString() {
29303
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
29304
      boolean first = true;
29305
 
29306
      sb.append("vendorId:");
29307
      sb.append(this.vendorId);
29308
      first = false;
29309
      sb.append(")");
29310
      return sb.toString();
29311
    }
29312
 
29313
    public void validate() throws org.apache.thrift.TException {
29314
      // check for required fields
29315
    }
29316
 
29317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29318
      try {
29319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29320
      } catch (org.apache.thrift.TException te) {
29321
        throw new java.io.IOException(te);
29322
      }
29323
    }
29324
 
29325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29326
      try {
29327
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29328
        __isset_bit_vector = new BitSet(1);
29329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29330
      } catch (org.apache.thrift.TException te) {
29331
        throw new java.io.IOException(te);
29332
      }
29333
    }
29334
 
29335
  }
29336
 
29337
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
29338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
29339
 
29340
    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);
29341
 
29342
    private long success; // required
29343
 
29344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29346
      SUCCESS((short)0, "success");
29347
 
29348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29349
 
29350
      static {
29351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29352
          byName.put(field.getFieldName(), field);
29353
        }
29354
      }
29355
 
29356
      /**
29357
       * Find the _Fields constant that matches fieldId, or null if its not found.
29358
       */
29359
      public static _Fields findByThriftId(int fieldId) {
29360
        switch(fieldId) {
29361
          case 0: // SUCCESS
29362
            return SUCCESS;
29363
          default:
29364
            return null;
29365
        }
29366
      }
29367
 
29368
      /**
29369
       * Find the _Fields constant that matches fieldId, throwing an exception
29370
       * if it is not found.
29371
       */
29372
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29373
        _Fields fields = findByThriftId(fieldId);
29374
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29375
        return fields;
29376
      }
29377
 
29378
      /**
29379
       * Find the _Fields constant that matches name, or null if its not found.
29380
       */
29381
      public static _Fields findByName(String name) {
29382
        return byName.get(name);
29383
      }
29384
 
29385
      private final short _thriftId;
29386
      private final String _fieldName;
29387
 
29388
      _Fields(short thriftId, String fieldName) {
29389
        _thriftId = thriftId;
29390
        _fieldName = fieldName;
29391
      }
29392
 
29393
      public short getThriftFieldId() {
29394
        return _thriftId;
29395
      }
29396
 
29397
      public String getFieldName() {
29398
        return _fieldName;
29399
      }
29400
    }
29401
 
29402
    // isset id assignments
29403
    private static final int __SUCCESS_ISSET_ID = 0;
29404
    private BitSet __isset_bit_vector = new BitSet(1);
29405
 
29406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29407
    static {
29408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29409
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
29413
    }
29414
 
29415
    public getOurWarehouseIdForVendor_result() {
29416
    }
29417
 
29418
    public getOurWarehouseIdForVendor_result(
29419
      long success)
29420
    {
29421
      this();
29422
      this.success = success;
29423
      setSuccessIsSet(true);
29424
    }
29425
 
29426
    /**
29427
     * Performs a deep copy on <i>other</i>.
29428
     */
29429
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
29430
      __isset_bit_vector.clear();
29431
      __isset_bit_vector.or(other.__isset_bit_vector);
29432
      this.success = other.success;
29433
    }
29434
 
29435
    public getOurWarehouseIdForVendor_result deepCopy() {
29436
      return new getOurWarehouseIdForVendor_result(this);
29437
    }
29438
 
29439
    @Override
29440
    public void clear() {
29441
      setSuccessIsSet(false);
29442
      this.success = 0;
29443
    }
29444
 
29445
    public long getSuccess() {
29446
      return this.success;
29447
    }
29448
 
29449
    public void setSuccess(long success) {
29450
      this.success = success;
29451
      setSuccessIsSet(true);
29452
    }
29453
 
29454
    public void unsetSuccess() {
29455
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
29456
    }
29457
 
29458
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29459
    public boolean isSetSuccess() {
29460
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
29461
    }
29462
 
29463
    public void setSuccessIsSet(boolean value) {
29464
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
29465
    }
29466
 
29467
    public void setFieldValue(_Fields field, Object value) {
29468
      switch (field) {
29469
      case SUCCESS:
29470
        if (value == null) {
29471
          unsetSuccess();
29472
        } else {
29473
          setSuccess((Long)value);
29474
        }
29475
        break;
29476
 
29477
      }
29478
    }
29479
 
29480
    public Object getFieldValue(_Fields field) {
29481
      switch (field) {
29482
      case SUCCESS:
29483
        return Long.valueOf(getSuccess());
29484
 
29485
      }
29486
      throw new IllegalStateException();
29487
    }
29488
 
29489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29490
    public boolean isSet(_Fields field) {
29491
      if (field == null) {
29492
        throw new IllegalArgumentException();
29493
      }
29494
 
29495
      switch (field) {
29496
      case SUCCESS:
29497
        return isSetSuccess();
29498
      }
29499
      throw new IllegalStateException();
29500
    }
29501
 
29502
    @Override
29503
    public boolean equals(Object that) {
29504
      if (that == null)
29505
        return false;
29506
      if (that instanceof getOurWarehouseIdForVendor_result)
29507
        return this.equals((getOurWarehouseIdForVendor_result)that);
29508
      return false;
29509
    }
29510
 
29511
    public boolean equals(getOurWarehouseIdForVendor_result that) {
29512
      if (that == null)
29513
        return false;
29514
 
29515
      boolean this_present_success = true;
29516
      boolean that_present_success = true;
29517
      if (this_present_success || that_present_success) {
29518
        if (!(this_present_success && that_present_success))
29519
          return false;
29520
        if (this.success != that.success)
29521
          return false;
29522
      }
29523
 
29524
      return true;
29525
    }
29526
 
29527
    @Override
29528
    public int hashCode() {
29529
      return 0;
29530
    }
29531
 
29532
    public int compareTo(getOurWarehouseIdForVendor_result other) {
29533
      if (!getClass().equals(other.getClass())) {
29534
        return getClass().getName().compareTo(other.getClass().getName());
29535
      }
29536
 
29537
      int lastComparison = 0;
29538
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
29539
 
29540
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29541
      if (lastComparison != 0) {
29542
        return lastComparison;
29543
      }
29544
      if (isSetSuccess()) {
29545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29546
        if (lastComparison != 0) {
29547
          return lastComparison;
29548
        }
29549
      }
29550
      return 0;
29551
    }
29552
 
29553
    public _Fields fieldForId(int fieldId) {
29554
      return _Fields.findByThriftId(fieldId);
29555
    }
29556
 
29557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29558
      org.apache.thrift.protocol.TField field;
29559
      iprot.readStructBegin();
29560
      while (true)
29561
      {
29562
        field = iprot.readFieldBegin();
29563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29564
          break;
29565
        }
29566
        switch (field.id) {
29567
          case 0: // SUCCESS
29568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29569
              this.success = iprot.readI64();
29570
              setSuccessIsSet(true);
29571
            } else { 
29572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29573
            }
29574
            break;
29575
          default:
29576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29577
        }
29578
        iprot.readFieldEnd();
29579
      }
29580
      iprot.readStructEnd();
29581
      validate();
29582
    }
29583
 
29584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29585
      oprot.writeStructBegin(STRUCT_DESC);
29586
 
29587
      if (this.isSetSuccess()) {
29588
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29589
        oprot.writeI64(this.success);
29590
        oprot.writeFieldEnd();
29591
      }
29592
      oprot.writeFieldStop();
29593
      oprot.writeStructEnd();
29594
    }
29595
 
29596
    @Override
29597
    public String toString() {
29598
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
29599
      boolean first = true;
29600
 
29601
      sb.append("success:");
29602
      sb.append(this.success);
29603
      first = false;
29604
      sb.append(")");
29605
      return sb.toString();
29606
    }
29607
 
29608
    public void validate() throws org.apache.thrift.TException {
29609
      // check for required fields
29610
    }
29611
 
29612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29613
      try {
29614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29615
      } catch (org.apache.thrift.TException te) {
29616
        throw new java.io.IOException(te);
29617
      }
29618
    }
29619
 
29620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29621
      try {
29622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29623
      } catch (org.apache.thrift.TException te) {
29624
        throw new java.io.IOException(te);
29625
      }
29626
    }
29627
 
29628
  }
29629
 
6484 amar.kumar 29630
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
29631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
29632
 
29633
    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);
29634
 
29635
    private List<Long> item_ids; // required
29636
 
29637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29639
      ITEM_IDS((short)1, "item_ids");
29640
 
29641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29642
 
29643
      static {
29644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29645
          byName.put(field.getFieldName(), field);
29646
        }
29647
      }
29648
 
29649
      /**
29650
       * Find the _Fields constant that matches fieldId, or null if its not found.
29651
       */
29652
      public static _Fields findByThriftId(int fieldId) {
29653
        switch(fieldId) {
29654
          case 1: // ITEM_IDS
29655
            return ITEM_IDS;
29656
          default:
29657
            return null;
29658
        }
29659
      }
29660
 
29661
      /**
29662
       * Find the _Fields constant that matches fieldId, throwing an exception
29663
       * if it is not found.
29664
       */
29665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29666
        _Fields fields = findByThriftId(fieldId);
29667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29668
        return fields;
29669
      }
29670
 
29671
      /**
29672
       * Find the _Fields constant that matches name, or null if its not found.
29673
       */
29674
      public static _Fields findByName(String name) {
29675
        return byName.get(name);
29676
      }
29677
 
29678
      private final short _thriftId;
29679
      private final String _fieldName;
29680
 
29681
      _Fields(short thriftId, String fieldName) {
29682
        _thriftId = thriftId;
29683
        _fieldName = fieldName;
29684
      }
29685
 
29686
      public short getThriftFieldId() {
29687
        return _thriftId;
29688
      }
29689
 
29690
      public String getFieldName() {
29691
        return _fieldName;
29692
      }
29693
    }
29694
 
29695
    // isset id assignments
29696
 
29697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29698
    static {
29699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29700
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29701
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29702
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
29705
    }
29706
 
29707
    public getItemAvailabilitiesAtOurWarehouses_args() {
29708
    }
29709
 
29710
    public getItemAvailabilitiesAtOurWarehouses_args(
29711
      List<Long> item_ids)
29712
    {
29713
      this();
29714
      this.item_ids = item_ids;
29715
    }
29716
 
29717
    /**
29718
     * Performs a deep copy on <i>other</i>.
29719
     */
29720
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
29721
      if (other.isSetItem_ids()) {
29722
        List<Long> __this__item_ids = new ArrayList<Long>();
29723
        for (Long other_element : other.item_ids) {
29724
          __this__item_ids.add(other_element);
29725
        }
29726
        this.item_ids = __this__item_ids;
29727
      }
29728
    }
29729
 
29730
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
29731
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
29732
    }
29733
 
29734
    @Override
29735
    public void clear() {
29736
      this.item_ids = null;
29737
    }
29738
 
29739
    public int getItem_idsSize() {
29740
      return (this.item_ids == null) ? 0 : this.item_ids.size();
29741
    }
29742
 
29743
    public java.util.Iterator<Long> getItem_idsIterator() {
29744
      return (this.item_ids == null) ? null : this.item_ids.iterator();
29745
    }
29746
 
29747
    public void addToItem_ids(long elem) {
29748
      if (this.item_ids == null) {
29749
        this.item_ids = new ArrayList<Long>();
29750
      }
29751
      this.item_ids.add(elem);
29752
    }
29753
 
29754
    public List<Long> getItem_ids() {
29755
      return this.item_ids;
29756
    }
29757
 
29758
    public void setItem_ids(List<Long> item_ids) {
29759
      this.item_ids = item_ids;
29760
    }
29761
 
29762
    public void unsetItem_ids() {
29763
      this.item_ids = null;
29764
    }
29765
 
29766
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
29767
    public boolean isSetItem_ids() {
29768
      return this.item_ids != null;
29769
    }
29770
 
29771
    public void setItem_idsIsSet(boolean value) {
29772
      if (!value) {
29773
        this.item_ids = null;
29774
      }
29775
    }
29776
 
29777
    public void setFieldValue(_Fields field, Object value) {
29778
      switch (field) {
29779
      case ITEM_IDS:
29780
        if (value == null) {
29781
          unsetItem_ids();
29782
        } else {
29783
          setItem_ids((List<Long>)value);
29784
        }
29785
        break;
29786
 
29787
      }
29788
    }
29789
 
29790
    public Object getFieldValue(_Fields field) {
29791
      switch (field) {
29792
      case ITEM_IDS:
29793
        return getItem_ids();
29794
 
29795
      }
29796
      throw new IllegalStateException();
29797
    }
29798
 
29799
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29800
    public boolean isSet(_Fields field) {
29801
      if (field == null) {
29802
        throw new IllegalArgumentException();
29803
      }
29804
 
29805
      switch (field) {
29806
      case ITEM_IDS:
29807
        return isSetItem_ids();
29808
      }
29809
      throw new IllegalStateException();
29810
    }
29811
 
29812
    @Override
29813
    public boolean equals(Object that) {
29814
      if (that == null)
29815
        return false;
29816
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
29817
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
29818
      return false;
29819
    }
29820
 
29821
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
29822
      if (that == null)
29823
        return false;
29824
 
29825
      boolean this_present_item_ids = true && this.isSetItem_ids();
29826
      boolean that_present_item_ids = true && that.isSetItem_ids();
29827
      if (this_present_item_ids || that_present_item_ids) {
29828
        if (!(this_present_item_ids && that_present_item_ids))
29829
          return false;
29830
        if (!this.item_ids.equals(that.item_ids))
29831
          return false;
29832
      }
29833
 
29834
      return true;
29835
    }
29836
 
29837
    @Override
29838
    public int hashCode() {
29839
      return 0;
29840
    }
29841
 
29842
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
29843
      if (!getClass().equals(other.getClass())) {
29844
        return getClass().getName().compareTo(other.getClass().getName());
29845
      }
29846
 
29847
      int lastComparison = 0;
29848
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
29849
 
29850
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
29851
      if (lastComparison != 0) {
29852
        return lastComparison;
29853
      }
29854
      if (isSetItem_ids()) {
29855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
29856
        if (lastComparison != 0) {
29857
          return lastComparison;
29858
        }
29859
      }
29860
      return 0;
29861
    }
29862
 
29863
    public _Fields fieldForId(int fieldId) {
29864
      return _Fields.findByThriftId(fieldId);
29865
    }
29866
 
29867
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29868
      org.apache.thrift.protocol.TField field;
29869
      iprot.readStructBegin();
29870
      while (true)
29871
      {
29872
        field = iprot.readFieldBegin();
29873
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29874
          break;
29875
        }
29876
        switch (field.id) {
29877
          case 1: // ITEM_IDS
29878
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29879
              {
29880
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
29881
                this.item_ids = new ArrayList<Long>(_list79.size);
29882
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
29883
                {
29884
                  long _elem81; // required
29885
                  _elem81 = iprot.readI64();
29886
                  this.item_ids.add(_elem81);
29887
                }
29888
                iprot.readListEnd();
29889
              }
29890
            } else { 
29891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29892
            }
29893
            break;
29894
          default:
29895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29896
        }
29897
        iprot.readFieldEnd();
29898
      }
29899
      iprot.readStructEnd();
29900
      validate();
29901
    }
29902
 
29903
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29904
      validate();
29905
 
29906
      oprot.writeStructBegin(STRUCT_DESC);
29907
      if (this.item_ids != null) {
29908
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
29909
        {
29910
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
29911
          for (long _iter82 : this.item_ids)
29912
          {
29913
            oprot.writeI64(_iter82);
29914
          }
29915
          oprot.writeListEnd();
29916
        }
29917
        oprot.writeFieldEnd();
29918
      }
29919
      oprot.writeFieldStop();
29920
      oprot.writeStructEnd();
29921
    }
29922
 
29923
    @Override
29924
    public String toString() {
29925
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
29926
      boolean first = true;
29927
 
29928
      sb.append("item_ids:");
29929
      if (this.item_ids == null) {
29930
        sb.append("null");
29931
      } else {
29932
        sb.append(this.item_ids);
29933
      }
29934
      first = false;
29935
      sb.append(")");
29936
      return sb.toString();
29937
    }
29938
 
29939
    public void validate() throws org.apache.thrift.TException {
29940
      // check for required fields
29941
    }
29942
 
29943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29944
      try {
29945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29946
      } catch (org.apache.thrift.TException te) {
29947
        throw new java.io.IOException(te);
29948
      }
29949
    }
29950
 
29951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29952
      try {
29953
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29954
      } catch (org.apache.thrift.TException te) {
29955
        throw new java.io.IOException(te);
29956
      }
29957
    }
29958
 
29959
  }
29960
 
29961
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
29962
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
29963
 
29964
    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);
29965
 
29966
    private Map<Long,Long> success; // required
29967
 
29968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29970
      SUCCESS((short)0, "success");
29971
 
29972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29973
 
29974
      static {
29975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29976
          byName.put(field.getFieldName(), field);
29977
        }
29978
      }
29979
 
29980
      /**
29981
       * Find the _Fields constant that matches fieldId, or null if its not found.
29982
       */
29983
      public static _Fields findByThriftId(int fieldId) {
29984
        switch(fieldId) {
29985
          case 0: // SUCCESS
29986
            return SUCCESS;
29987
          default:
29988
            return null;
29989
        }
29990
      }
29991
 
29992
      /**
29993
       * Find the _Fields constant that matches fieldId, throwing an exception
29994
       * if it is not found.
29995
       */
29996
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29997
        _Fields fields = findByThriftId(fieldId);
29998
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29999
        return fields;
30000
      }
30001
 
30002
      /**
30003
       * Find the _Fields constant that matches name, or null if its not found.
30004
       */
30005
      public static _Fields findByName(String name) {
30006
        return byName.get(name);
30007
      }
30008
 
30009
      private final short _thriftId;
30010
      private final String _fieldName;
30011
 
30012
      _Fields(short thriftId, String fieldName) {
30013
        _thriftId = thriftId;
30014
        _fieldName = fieldName;
30015
      }
30016
 
30017
      public short getThriftFieldId() {
30018
        return _thriftId;
30019
      }
30020
 
30021
      public String getFieldName() {
30022
        return _fieldName;
30023
      }
30024
    }
30025
 
30026
    // isset id assignments
30027
 
30028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30029
    static {
30030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30031
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30032
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
30033
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
30034
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
30037
    }
30038
 
30039
    public getItemAvailabilitiesAtOurWarehouses_result() {
30040
    }
30041
 
30042
    public getItemAvailabilitiesAtOurWarehouses_result(
30043
      Map<Long,Long> success)
30044
    {
30045
      this();
30046
      this.success = success;
30047
    }
30048
 
30049
    /**
30050
     * Performs a deep copy on <i>other</i>.
30051
     */
30052
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
30053
      if (other.isSetSuccess()) {
30054
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
30055
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
30056
 
30057
          Long other_element_key = other_element.getKey();
30058
          Long other_element_value = other_element.getValue();
30059
 
30060
          Long __this__success_copy_key = other_element_key;
30061
 
30062
          Long __this__success_copy_value = other_element_value;
30063
 
30064
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
30065
        }
30066
        this.success = __this__success;
30067
      }
30068
    }
30069
 
30070
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
30071
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
30072
    }
30073
 
30074
    @Override
30075
    public void clear() {
30076
      this.success = null;
30077
    }
30078
 
30079
    public int getSuccessSize() {
30080
      return (this.success == null) ? 0 : this.success.size();
30081
    }
30082
 
30083
    public void putToSuccess(long key, long val) {
30084
      if (this.success == null) {
30085
        this.success = new HashMap<Long,Long>();
30086
      }
30087
      this.success.put(key, val);
30088
    }
30089
 
30090
    public Map<Long,Long> getSuccess() {
30091
      return this.success;
30092
    }
30093
 
30094
    public void setSuccess(Map<Long,Long> success) {
30095
      this.success = success;
30096
    }
30097
 
30098
    public void unsetSuccess() {
30099
      this.success = null;
30100
    }
30101
 
30102
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30103
    public boolean isSetSuccess() {
30104
      return this.success != null;
30105
    }
30106
 
30107
    public void setSuccessIsSet(boolean value) {
30108
      if (!value) {
30109
        this.success = null;
30110
      }
30111
    }
30112
 
30113
    public void setFieldValue(_Fields field, Object value) {
30114
      switch (field) {
30115
      case SUCCESS:
30116
        if (value == null) {
30117
          unsetSuccess();
30118
        } else {
30119
          setSuccess((Map<Long,Long>)value);
30120
        }
30121
        break;
30122
 
30123
      }
30124
    }
30125
 
30126
    public Object getFieldValue(_Fields field) {
30127
      switch (field) {
30128
      case SUCCESS:
30129
        return getSuccess();
30130
 
30131
      }
30132
      throw new IllegalStateException();
30133
    }
30134
 
30135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30136
    public boolean isSet(_Fields field) {
30137
      if (field == null) {
30138
        throw new IllegalArgumentException();
30139
      }
30140
 
30141
      switch (field) {
30142
      case SUCCESS:
30143
        return isSetSuccess();
30144
      }
30145
      throw new IllegalStateException();
30146
    }
30147
 
30148
    @Override
30149
    public boolean equals(Object that) {
30150
      if (that == null)
30151
        return false;
30152
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
30153
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
30154
      return false;
30155
    }
30156
 
30157
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
30158
      if (that == null)
30159
        return false;
30160
 
30161
      boolean this_present_success = true && this.isSetSuccess();
30162
      boolean that_present_success = true && that.isSetSuccess();
30163
      if (this_present_success || that_present_success) {
30164
        if (!(this_present_success && that_present_success))
30165
          return false;
30166
        if (!this.success.equals(that.success))
30167
          return false;
30168
      }
30169
 
30170
      return true;
30171
    }
30172
 
30173
    @Override
30174
    public int hashCode() {
30175
      return 0;
30176
    }
30177
 
30178
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
30179
      if (!getClass().equals(other.getClass())) {
30180
        return getClass().getName().compareTo(other.getClass().getName());
30181
      }
30182
 
30183
      int lastComparison = 0;
30184
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
30185
 
30186
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30187
      if (lastComparison != 0) {
30188
        return lastComparison;
30189
      }
30190
      if (isSetSuccess()) {
30191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30192
        if (lastComparison != 0) {
30193
          return lastComparison;
30194
        }
30195
      }
30196
      return 0;
30197
    }
30198
 
30199
    public _Fields fieldForId(int fieldId) {
30200
      return _Fields.findByThriftId(fieldId);
30201
    }
30202
 
30203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30204
      org.apache.thrift.protocol.TField field;
30205
      iprot.readStructBegin();
30206
      while (true)
30207
      {
30208
        field = iprot.readFieldBegin();
30209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30210
          break;
30211
        }
30212
        switch (field.id) {
30213
          case 0: // SUCCESS
30214
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
30215
              {
30216
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
30217
                this.success = new HashMap<Long,Long>(2*_map83.size);
30218
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
30219
                {
30220
                  long _key85; // required
30221
                  long _val86; // required
30222
                  _key85 = iprot.readI64();
30223
                  _val86 = iprot.readI64();
30224
                  this.success.put(_key85, _val86);
30225
                }
30226
                iprot.readMapEnd();
30227
              }
30228
            } else { 
30229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30230
            }
30231
            break;
30232
          default:
30233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30234
        }
30235
        iprot.readFieldEnd();
30236
      }
30237
      iprot.readStructEnd();
30238
      validate();
30239
    }
30240
 
30241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30242
      oprot.writeStructBegin(STRUCT_DESC);
30243
 
30244
      if (this.isSetSuccess()) {
30245
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30246
        {
30247
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
30248
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
30249
          {
30250
            oprot.writeI64(_iter87.getKey());
30251
            oprot.writeI64(_iter87.getValue());
30252
          }
30253
          oprot.writeMapEnd();
30254
        }
30255
        oprot.writeFieldEnd();
30256
      }
30257
      oprot.writeFieldStop();
30258
      oprot.writeStructEnd();
30259
    }
30260
 
30261
    @Override
30262
    public String toString() {
30263
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
30264
      boolean first = true;
30265
 
30266
      sb.append("success:");
30267
      if (this.success == null) {
30268
        sb.append("null");
30269
      } else {
30270
        sb.append(this.success);
30271
      }
30272
      first = false;
30273
      sb.append(")");
30274
      return sb.toString();
30275
    }
30276
 
30277
    public void validate() throws org.apache.thrift.TException {
30278
      // check for required fields
30279
    }
30280
 
30281
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30282
      try {
30283
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30284
      } catch (org.apache.thrift.TException te) {
30285
        throw new java.io.IOException(te);
30286
      }
30287
    }
30288
 
30289
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30290
      try {
30291
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30292
      } catch (org.apache.thrift.TException te) {
30293
        throw new java.io.IOException(te);
30294
      }
30295
    }
30296
 
30297
  }
30298
 
6531 vikram.rag 30299
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
30300
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
30301
 
30302
    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);
30303
 
30304
    private List<Long> vendorIds; // required
30305
 
30306
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30307
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30308
      VENDOR_IDS((short)1, "vendorIds");
30309
 
30310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30311
 
30312
      static {
30313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30314
          byName.put(field.getFieldName(), field);
30315
        }
30316
      }
30317
 
30318
      /**
30319
       * Find the _Fields constant that matches fieldId, or null if its not found.
30320
       */
30321
      public static _Fields findByThriftId(int fieldId) {
30322
        switch(fieldId) {
30323
          case 1: // VENDOR_IDS
30324
            return VENDOR_IDS;
30325
          default:
30326
            return null;
30327
        }
30328
      }
30329
 
30330
      /**
30331
       * Find the _Fields constant that matches fieldId, throwing an exception
30332
       * if it is not found.
30333
       */
30334
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30335
        _Fields fields = findByThriftId(fieldId);
30336
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30337
        return fields;
30338
      }
30339
 
30340
      /**
30341
       * Find the _Fields constant that matches name, or null if its not found.
30342
       */
30343
      public static _Fields findByName(String name) {
30344
        return byName.get(name);
30345
      }
30346
 
30347
      private final short _thriftId;
30348
      private final String _fieldName;
30349
 
30350
      _Fields(short thriftId, String fieldName) {
30351
        _thriftId = thriftId;
30352
        _fieldName = fieldName;
30353
      }
30354
 
30355
      public short getThriftFieldId() {
30356
        return _thriftId;
30357
      }
30358
 
30359
      public String getFieldName() {
30360
        return _fieldName;
30361
      }
30362
    }
30363
 
30364
    // isset id assignments
30365
 
30366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30367
    static {
30368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30369
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30370
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30371
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30372
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30373
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
30374
    }
30375
 
30376
    public getMonitoredWarehouseForVendors_args() {
30377
    }
30378
 
30379
    public getMonitoredWarehouseForVendors_args(
30380
      List<Long> vendorIds)
30381
    {
30382
      this();
30383
      this.vendorIds = vendorIds;
30384
    }
30385
 
30386
    /**
30387
     * Performs a deep copy on <i>other</i>.
30388
     */
30389
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
30390
      if (other.isSetVendorIds()) {
30391
        List<Long> __this__vendorIds = new ArrayList<Long>();
30392
        for (Long other_element : other.vendorIds) {
30393
          __this__vendorIds.add(other_element);
30394
        }
30395
        this.vendorIds = __this__vendorIds;
30396
      }
30397
    }
30398
 
30399
    public getMonitoredWarehouseForVendors_args deepCopy() {
30400
      return new getMonitoredWarehouseForVendors_args(this);
30401
    }
30402
 
30403
    @Override
30404
    public void clear() {
30405
      this.vendorIds = null;
30406
    }
30407
 
30408
    public int getVendorIdsSize() {
30409
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
30410
    }
30411
 
30412
    public java.util.Iterator<Long> getVendorIdsIterator() {
30413
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
30414
    }
30415
 
30416
    public void addToVendorIds(long elem) {
30417
      if (this.vendorIds == null) {
30418
        this.vendorIds = new ArrayList<Long>();
30419
      }
30420
      this.vendorIds.add(elem);
30421
    }
30422
 
30423
    public List<Long> getVendorIds() {
30424
      return this.vendorIds;
30425
    }
30426
 
30427
    public void setVendorIds(List<Long> vendorIds) {
30428
      this.vendorIds = vendorIds;
30429
    }
30430
 
30431
    public void unsetVendorIds() {
30432
      this.vendorIds = null;
30433
    }
30434
 
30435
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
30436
    public boolean isSetVendorIds() {
30437
      return this.vendorIds != null;
30438
    }
30439
 
30440
    public void setVendorIdsIsSet(boolean value) {
30441
      if (!value) {
30442
        this.vendorIds = null;
30443
      }
30444
    }
30445
 
30446
    public void setFieldValue(_Fields field, Object value) {
30447
      switch (field) {
30448
      case VENDOR_IDS:
30449
        if (value == null) {
30450
          unsetVendorIds();
30451
        } else {
30452
          setVendorIds((List<Long>)value);
30453
        }
30454
        break;
30455
 
30456
      }
30457
    }
30458
 
30459
    public Object getFieldValue(_Fields field) {
30460
      switch (field) {
30461
      case VENDOR_IDS:
30462
        return getVendorIds();
30463
 
30464
      }
30465
      throw new IllegalStateException();
30466
    }
30467
 
30468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30469
    public boolean isSet(_Fields field) {
30470
      if (field == null) {
30471
        throw new IllegalArgumentException();
30472
      }
30473
 
30474
      switch (field) {
30475
      case VENDOR_IDS:
30476
        return isSetVendorIds();
30477
      }
30478
      throw new IllegalStateException();
30479
    }
30480
 
30481
    @Override
30482
    public boolean equals(Object that) {
30483
      if (that == null)
30484
        return false;
30485
      if (that instanceof getMonitoredWarehouseForVendors_args)
30486
        return this.equals((getMonitoredWarehouseForVendors_args)that);
30487
      return false;
30488
    }
30489
 
30490
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
30491
      if (that == null)
30492
        return false;
30493
 
30494
      boolean this_present_vendorIds = true && this.isSetVendorIds();
30495
      boolean that_present_vendorIds = true && that.isSetVendorIds();
30496
      if (this_present_vendorIds || that_present_vendorIds) {
30497
        if (!(this_present_vendorIds && that_present_vendorIds))
30498
          return false;
30499
        if (!this.vendorIds.equals(that.vendorIds))
30500
          return false;
30501
      }
30502
 
30503
      return true;
30504
    }
30505
 
30506
    @Override
30507
    public int hashCode() {
30508
      return 0;
30509
    }
30510
 
30511
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
30512
      if (!getClass().equals(other.getClass())) {
30513
        return getClass().getName().compareTo(other.getClass().getName());
30514
      }
30515
 
30516
      int lastComparison = 0;
30517
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
30518
 
30519
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
30520
      if (lastComparison != 0) {
30521
        return lastComparison;
30522
      }
30523
      if (isSetVendorIds()) {
30524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
30525
        if (lastComparison != 0) {
30526
          return lastComparison;
30527
        }
30528
      }
30529
      return 0;
30530
    }
30531
 
30532
    public _Fields fieldForId(int fieldId) {
30533
      return _Fields.findByThriftId(fieldId);
30534
    }
30535
 
30536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30537
      org.apache.thrift.protocol.TField field;
30538
      iprot.readStructBegin();
30539
      while (true)
30540
      {
30541
        field = iprot.readFieldBegin();
30542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30543
          break;
30544
        }
30545
        switch (field.id) {
30546
          case 1: // VENDOR_IDS
30547
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30548
              {
30549
                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
30550
                this.vendorIds = new ArrayList<Long>(_list88.size);
30551
                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
30552
                {
30553
                  long _elem90; // required
30554
                  _elem90 = iprot.readI64();
30555
                  this.vendorIds.add(_elem90);
30556
                }
30557
                iprot.readListEnd();
30558
              }
30559
            } else { 
30560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30561
            }
30562
            break;
30563
          default:
30564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30565
        }
30566
        iprot.readFieldEnd();
30567
      }
30568
      iprot.readStructEnd();
30569
      validate();
30570
    }
30571
 
30572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30573
      validate();
30574
 
30575
      oprot.writeStructBegin(STRUCT_DESC);
30576
      if (this.vendorIds != null) {
30577
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
30578
        {
30579
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
30580
          for (long _iter91 : this.vendorIds)
30581
          {
30582
            oprot.writeI64(_iter91);
30583
          }
30584
          oprot.writeListEnd();
30585
        }
30586
        oprot.writeFieldEnd();
30587
      }
30588
      oprot.writeFieldStop();
30589
      oprot.writeStructEnd();
30590
    }
30591
 
30592
    @Override
30593
    public String toString() {
30594
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
30595
      boolean first = true;
30596
 
30597
      sb.append("vendorIds:");
30598
      if (this.vendorIds == null) {
30599
        sb.append("null");
30600
      } else {
30601
        sb.append(this.vendorIds);
30602
      }
30603
      first = false;
30604
      sb.append(")");
30605
      return sb.toString();
30606
    }
30607
 
30608
    public void validate() throws org.apache.thrift.TException {
30609
      // check for required fields
30610
    }
30611
 
30612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30613
      try {
30614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30615
      } catch (org.apache.thrift.TException te) {
30616
        throw new java.io.IOException(te);
30617
      }
30618
    }
30619
 
30620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30621
      try {
30622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30623
      } catch (org.apache.thrift.TException te) {
30624
        throw new java.io.IOException(te);
30625
      }
30626
    }
30627
 
30628
  }
30629
 
30630
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
30631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
30632
 
30633
    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);
30634
 
30635
    private List<Long> success; // required
30636
 
30637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30639
      SUCCESS((short)0, "success");
30640
 
30641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30642
 
30643
      static {
30644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30645
          byName.put(field.getFieldName(), field);
30646
        }
30647
      }
30648
 
30649
      /**
30650
       * Find the _Fields constant that matches fieldId, or null if its not found.
30651
       */
30652
      public static _Fields findByThriftId(int fieldId) {
30653
        switch(fieldId) {
30654
          case 0: // SUCCESS
30655
            return SUCCESS;
30656
          default:
30657
            return null;
30658
        }
30659
      }
30660
 
30661
      /**
30662
       * Find the _Fields constant that matches fieldId, throwing an exception
30663
       * if it is not found.
30664
       */
30665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30666
        _Fields fields = findByThriftId(fieldId);
30667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30668
        return fields;
30669
      }
30670
 
30671
      /**
30672
       * Find the _Fields constant that matches name, or null if its not found.
30673
       */
30674
      public static _Fields findByName(String name) {
30675
        return byName.get(name);
30676
      }
30677
 
30678
      private final short _thriftId;
30679
      private final String _fieldName;
30680
 
30681
      _Fields(short thriftId, String fieldName) {
30682
        _thriftId = thriftId;
30683
        _fieldName = fieldName;
30684
      }
30685
 
30686
      public short getThriftFieldId() {
30687
        return _thriftId;
30688
      }
30689
 
30690
      public String getFieldName() {
30691
        return _fieldName;
30692
      }
30693
    }
30694
 
30695
    // isset id assignments
30696
 
30697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30698
    static {
30699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30700
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30701
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30702
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
30705
    }
30706
 
30707
    public getMonitoredWarehouseForVendors_result() {
30708
    }
30709
 
30710
    public getMonitoredWarehouseForVendors_result(
30711
      List<Long> success)
30712
    {
30713
      this();
30714
      this.success = success;
30715
    }
30716
 
30717
    /**
30718
     * Performs a deep copy on <i>other</i>.
30719
     */
30720
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
30721
      if (other.isSetSuccess()) {
30722
        List<Long> __this__success = new ArrayList<Long>();
30723
        for (Long other_element : other.success) {
30724
          __this__success.add(other_element);
30725
        }
30726
        this.success = __this__success;
30727
      }
30728
    }
30729
 
30730
    public getMonitoredWarehouseForVendors_result deepCopy() {
30731
      return new getMonitoredWarehouseForVendors_result(this);
30732
    }
30733
 
30734
    @Override
30735
    public void clear() {
30736
      this.success = null;
30737
    }
30738
 
30739
    public int getSuccessSize() {
30740
      return (this.success == null) ? 0 : this.success.size();
30741
    }
30742
 
30743
    public java.util.Iterator<Long> getSuccessIterator() {
30744
      return (this.success == null) ? null : this.success.iterator();
30745
    }
30746
 
30747
    public void addToSuccess(long elem) {
30748
      if (this.success == null) {
30749
        this.success = new ArrayList<Long>();
30750
      }
30751
      this.success.add(elem);
30752
    }
30753
 
30754
    public List<Long> getSuccess() {
30755
      return this.success;
30756
    }
30757
 
30758
    public void setSuccess(List<Long> success) {
30759
      this.success = success;
30760
    }
30761
 
30762
    public void unsetSuccess() {
30763
      this.success = null;
30764
    }
30765
 
30766
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30767
    public boolean isSetSuccess() {
30768
      return this.success != null;
30769
    }
30770
 
30771
    public void setSuccessIsSet(boolean value) {
30772
      if (!value) {
30773
        this.success = null;
30774
      }
30775
    }
30776
 
30777
    public void setFieldValue(_Fields field, Object value) {
30778
      switch (field) {
30779
      case SUCCESS:
30780
        if (value == null) {
30781
          unsetSuccess();
30782
        } else {
30783
          setSuccess((List<Long>)value);
30784
        }
30785
        break;
30786
 
30787
      }
30788
    }
30789
 
30790
    public Object getFieldValue(_Fields field) {
30791
      switch (field) {
30792
      case SUCCESS:
30793
        return getSuccess();
30794
 
30795
      }
30796
      throw new IllegalStateException();
30797
    }
30798
 
30799
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30800
    public boolean isSet(_Fields field) {
30801
      if (field == null) {
30802
        throw new IllegalArgumentException();
30803
      }
30804
 
30805
      switch (field) {
30806
      case SUCCESS:
30807
        return isSetSuccess();
30808
      }
30809
      throw new IllegalStateException();
30810
    }
30811
 
30812
    @Override
30813
    public boolean equals(Object that) {
30814
      if (that == null)
30815
        return false;
30816
      if (that instanceof getMonitoredWarehouseForVendors_result)
30817
        return this.equals((getMonitoredWarehouseForVendors_result)that);
30818
      return false;
30819
    }
30820
 
30821
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
30822
      if (that == null)
30823
        return false;
30824
 
30825
      boolean this_present_success = true && this.isSetSuccess();
30826
      boolean that_present_success = true && that.isSetSuccess();
30827
      if (this_present_success || that_present_success) {
30828
        if (!(this_present_success && that_present_success))
30829
          return false;
30830
        if (!this.success.equals(that.success))
30831
          return false;
30832
      }
30833
 
30834
      return true;
30835
    }
30836
 
30837
    @Override
30838
    public int hashCode() {
30839
      return 0;
30840
    }
30841
 
30842
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
30843
      if (!getClass().equals(other.getClass())) {
30844
        return getClass().getName().compareTo(other.getClass().getName());
30845
      }
30846
 
30847
      int lastComparison = 0;
30848
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
30849
 
30850
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30851
      if (lastComparison != 0) {
30852
        return lastComparison;
30853
      }
30854
      if (isSetSuccess()) {
30855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30856
        if (lastComparison != 0) {
30857
          return lastComparison;
30858
        }
30859
      }
30860
      return 0;
30861
    }
30862
 
30863
    public _Fields fieldForId(int fieldId) {
30864
      return _Fields.findByThriftId(fieldId);
30865
    }
30866
 
30867
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30868
      org.apache.thrift.protocol.TField field;
30869
      iprot.readStructBegin();
30870
      while (true)
30871
      {
30872
        field = iprot.readFieldBegin();
30873
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30874
          break;
30875
        }
30876
        switch (field.id) {
30877
          case 0: // SUCCESS
30878
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30879
              {
30880
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
30881
                this.success = new ArrayList<Long>(_list92.size);
30882
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
30883
                {
30884
                  long _elem94; // required
30885
                  _elem94 = iprot.readI64();
30886
                  this.success.add(_elem94);
30887
                }
30888
                iprot.readListEnd();
30889
              }
30890
            } else { 
30891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30892
            }
30893
            break;
30894
          default:
30895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30896
        }
30897
        iprot.readFieldEnd();
30898
      }
30899
      iprot.readStructEnd();
30900
      validate();
30901
    }
30902
 
30903
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30904
      oprot.writeStructBegin(STRUCT_DESC);
30905
 
30906
      if (this.isSetSuccess()) {
30907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30908
        {
30909
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30910
          for (long _iter95 : this.success)
30911
          {
30912
            oprot.writeI64(_iter95);
30913
          }
30914
          oprot.writeListEnd();
30915
        }
30916
        oprot.writeFieldEnd();
30917
      }
30918
      oprot.writeFieldStop();
30919
      oprot.writeStructEnd();
30920
    }
30921
 
30922
    @Override
30923
    public String toString() {
30924
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
30925
      boolean first = true;
30926
 
30927
      sb.append("success:");
30928
      if (this.success == null) {
30929
        sb.append("null");
30930
      } else {
30931
        sb.append(this.success);
30932
      }
30933
      first = false;
30934
      sb.append(")");
30935
      return sb.toString();
30936
    }
30937
 
30938
    public void validate() throws org.apache.thrift.TException {
30939
      // check for required fields
30940
    }
30941
 
30942
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30943
      try {
30944
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30945
      } catch (org.apache.thrift.TException te) {
30946
        throw new java.io.IOException(te);
30947
      }
30948
    }
30949
 
30950
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30951
      try {
30952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30953
      } catch (org.apache.thrift.TException te) {
30954
        throw new java.io.IOException(te);
30955
      }
30956
    }
30957
 
30958
  }
30959
 
30960
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
30961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
30962
 
30963
 
30964
 
30965
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30966
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30967
;
30968
 
30969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30970
 
30971
      static {
30972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30973
          byName.put(field.getFieldName(), field);
30974
        }
30975
      }
30976
 
30977
      /**
30978
       * Find the _Fields constant that matches fieldId, or null if its not found.
30979
       */
30980
      public static _Fields findByThriftId(int fieldId) {
30981
        switch(fieldId) {
30982
          default:
30983
            return null;
30984
        }
30985
      }
30986
 
30987
      /**
30988
       * Find the _Fields constant that matches fieldId, throwing an exception
30989
       * if it is not found.
30990
       */
30991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30992
        _Fields fields = findByThriftId(fieldId);
30993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30994
        return fields;
30995
      }
30996
 
30997
      /**
30998
       * Find the _Fields constant that matches name, or null if its not found.
30999
       */
31000
      public static _Fields findByName(String name) {
31001
        return byName.get(name);
31002
      }
31003
 
31004
      private final short _thriftId;
31005
      private final String _fieldName;
31006
 
31007
      _Fields(short thriftId, String fieldName) {
31008
        _thriftId = thriftId;
31009
        _fieldName = fieldName;
31010
      }
31011
 
31012
      public short getThriftFieldId() {
31013
        return _thriftId;
31014
      }
31015
 
31016
      public String getFieldName() {
31017
        return _fieldName;
31018
      }
31019
    }
31020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31021
    static {
31022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
31025
    }
31026
 
31027
    public getIgnoredWarehouseidsAndItemids_args() {
31028
    }
31029
 
31030
    /**
31031
     * Performs a deep copy on <i>other</i>.
31032
     */
31033
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
31034
    }
31035
 
31036
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
31037
      return new getIgnoredWarehouseidsAndItemids_args(this);
31038
    }
31039
 
31040
    @Override
31041
    public void clear() {
31042
    }
31043
 
31044
    public void setFieldValue(_Fields field, Object value) {
31045
      switch (field) {
31046
      }
31047
    }
31048
 
31049
    public Object getFieldValue(_Fields field) {
31050
      switch (field) {
31051
      }
31052
      throw new IllegalStateException();
31053
    }
31054
 
31055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31056
    public boolean isSet(_Fields field) {
31057
      if (field == null) {
31058
        throw new IllegalArgumentException();
31059
      }
31060
 
31061
      switch (field) {
31062
      }
31063
      throw new IllegalStateException();
31064
    }
31065
 
31066
    @Override
31067
    public boolean equals(Object that) {
31068
      if (that == null)
31069
        return false;
31070
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
31071
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
31072
      return false;
31073
    }
31074
 
31075
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
31076
      if (that == null)
31077
        return false;
31078
 
31079
      return true;
31080
    }
31081
 
31082
    @Override
31083
    public int hashCode() {
31084
      return 0;
31085
    }
31086
 
31087
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
31088
      if (!getClass().equals(other.getClass())) {
31089
        return getClass().getName().compareTo(other.getClass().getName());
31090
      }
31091
 
31092
      int lastComparison = 0;
31093
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
31094
 
31095
      return 0;
31096
    }
31097
 
31098
    public _Fields fieldForId(int fieldId) {
31099
      return _Fields.findByThriftId(fieldId);
31100
    }
31101
 
31102
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31103
      org.apache.thrift.protocol.TField field;
31104
      iprot.readStructBegin();
31105
      while (true)
31106
      {
31107
        field = iprot.readFieldBegin();
31108
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31109
          break;
31110
        }
31111
        switch (field.id) {
31112
          default:
31113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31114
        }
31115
        iprot.readFieldEnd();
31116
      }
31117
      iprot.readStructEnd();
31118
      validate();
31119
    }
31120
 
31121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31122
      validate();
31123
 
31124
      oprot.writeStructBegin(STRUCT_DESC);
31125
      oprot.writeFieldStop();
31126
      oprot.writeStructEnd();
31127
    }
31128
 
31129
    @Override
31130
    public String toString() {
31131
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
31132
      boolean first = true;
31133
 
31134
      sb.append(")");
31135
      return sb.toString();
31136
    }
31137
 
31138
    public void validate() throws org.apache.thrift.TException {
31139
      // check for required fields
31140
    }
31141
 
31142
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31143
      try {
31144
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31145
      } catch (org.apache.thrift.TException te) {
31146
        throw new java.io.IOException(te);
31147
      }
31148
    }
31149
 
31150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31151
      try {
31152
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31153
      } catch (org.apache.thrift.TException te) {
31154
        throw new java.io.IOException(te);
31155
      }
31156
    }
31157
 
31158
  }
31159
 
31160
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
31161
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
31162
 
31163
    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);
31164
 
31165
    private List<IgnoredInventoryUpdateItems> success; // required
31166
 
31167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31169
      SUCCESS((short)0, "success");
31170
 
31171
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31172
 
31173
      static {
31174
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31175
          byName.put(field.getFieldName(), field);
31176
        }
31177
      }
31178
 
31179
      /**
31180
       * Find the _Fields constant that matches fieldId, or null if its not found.
31181
       */
31182
      public static _Fields findByThriftId(int fieldId) {
31183
        switch(fieldId) {
31184
          case 0: // SUCCESS
31185
            return SUCCESS;
31186
          default:
31187
            return null;
31188
        }
31189
      }
31190
 
31191
      /**
31192
       * Find the _Fields constant that matches fieldId, throwing an exception
31193
       * if it is not found.
31194
       */
31195
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31196
        _Fields fields = findByThriftId(fieldId);
31197
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31198
        return fields;
31199
      }
31200
 
31201
      /**
31202
       * Find the _Fields constant that matches name, or null if its not found.
31203
       */
31204
      public static _Fields findByName(String name) {
31205
        return byName.get(name);
31206
      }
31207
 
31208
      private final short _thriftId;
31209
      private final String _fieldName;
31210
 
31211
      _Fields(short thriftId, String fieldName) {
31212
        _thriftId = thriftId;
31213
        _fieldName = fieldName;
31214
      }
31215
 
31216
      public short getThriftFieldId() {
31217
        return _thriftId;
31218
      }
31219
 
31220
      public String getFieldName() {
31221
        return _fieldName;
31222
      }
31223
    }
31224
 
31225
    // isset id assignments
31226
 
31227
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31228
    static {
31229
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31230
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31231
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31232
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
31233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
31235
    }
31236
 
31237
    public getIgnoredWarehouseidsAndItemids_result() {
31238
    }
31239
 
31240
    public getIgnoredWarehouseidsAndItemids_result(
31241
      List<IgnoredInventoryUpdateItems> success)
31242
    {
31243
      this();
31244
      this.success = success;
31245
    }
31246
 
31247
    /**
31248
     * Performs a deep copy on <i>other</i>.
31249
     */
31250
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
31251
      if (other.isSetSuccess()) {
31252
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
31253
        for (IgnoredInventoryUpdateItems other_element : other.success) {
31254
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
31255
        }
31256
        this.success = __this__success;
31257
      }
31258
    }
31259
 
31260
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
31261
      return new getIgnoredWarehouseidsAndItemids_result(this);
31262
    }
31263
 
31264
    @Override
31265
    public void clear() {
31266
      this.success = null;
31267
    }
31268
 
31269
    public int getSuccessSize() {
31270
      return (this.success == null) ? 0 : this.success.size();
31271
    }
31272
 
31273
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
31274
      return (this.success == null) ? null : this.success.iterator();
31275
    }
31276
 
31277
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
31278
      if (this.success == null) {
31279
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
31280
      }
31281
      this.success.add(elem);
31282
    }
31283
 
31284
    public List<IgnoredInventoryUpdateItems> getSuccess() {
31285
      return this.success;
31286
    }
31287
 
31288
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
31289
      this.success = success;
31290
    }
31291
 
31292
    public void unsetSuccess() {
31293
      this.success = null;
31294
    }
31295
 
31296
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31297
    public boolean isSetSuccess() {
31298
      return this.success != null;
31299
    }
31300
 
31301
    public void setSuccessIsSet(boolean value) {
31302
      if (!value) {
31303
        this.success = null;
31304
      }
31305
    }
31306
 
31307
    public void setFieldValue(_Fields field, Object value) {
31308
      switch (field) {
31309
      case SUCCESS:
31310
        if (value == null) {
31311
          unsetSuccess();
31312
        } else {
31313
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
31314
        }
31315
        break;
31316
 
31317
      }
31318
    }
31319
 
31320
    public Object getFieldValue(_Fields field) {
31321
      switch (field) {
31322
      case SUCCESS:
31323
        return getSuccess();
31324
 
31325
      }
31326
      throw new IllegalStateException();
31327
    }
31328
 
31329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31330
    public boolean isSet(_Fields field) {
31331
      if (field == null) {
31332
        throw new IllegalArgumentException();
31333
      }
31334
 
31335
      switch (field) {
31336
      case SUCCESS:
31337
        return isSetSuccess();
31338
      }
31339
      throw new IllegalStateException();
31340
    }
31341
 
31342
    @Override
31343
    public boolean equals(Object that) {
31344
      if (that == null)
31345
        return false;
31346
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
31347
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
31348
      return false;
31349
    }
31350
 
31351
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
31352
      if (that == null)
31353
        return false;
31354
 
31355
      boolean this_present_success = true && this.isSetSuccess();
31356
      boolean that_present_success = true && that.isSetSuccess();
31357
      if (this_present_success || that_present_success) {
31358
        if (!(this_present_success && that_present_success))
31359
          return false;
31360
        if (!this.success.equals(that.success))
31361
          return false;
31362
      }
31363
 
31364
      return true;
31365
    }
31366
 
31367
    @Override
31368
    public int hashCode() {
31369
      return 0;
31370
    }
31371
 
31372
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
31373
      if (!getClass().equals(other.getClass())) {
31374
        return getClass().getName().compareTo(other.getClass().getName());
31375
      }
31376
 
31377
      int lastComparison = 0;
31378
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
31379
 
31380
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31381
      if (lastComparison != 0) {
31382
        return lastComparison;
31383
      }
31384
      if (isSetSuccess()) {
31385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31386
        if (lastComparison != 0) {
31387
          return lastComparison;
31388
        }
31389
      }
31390
      return 0;
31391
    }
31392
 
31393
    public _Fields fieldForId(int fieldId) {
31394
      return _Fields.findByThriftId(fieldId);
31395
    }
31396
 
31397
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31398
      org.apache.thrift.protocol.TField field;
31399
      iprot.readStructBegin();
31400
      while (true)
31401
      {
31402
        field = iprot.readFieldBegin();
31403
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31404
          break;
31405
        }
31406
        switch (field.id) {
31407
          case 0: // SUCCESS
31408
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31409
              {
31410
                org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
31411
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list96.size);
31412
                for (int _i97 = 0; _i97 < _list96.size; ++_i97)
31413
                {
31414
                  IgnoredInventoryUpdateItems _elem98; // required
31415
                  _elem98 = new IgnoredInventoryUpdateItems();
31416
                  _elem98.read(iprot);
31417
                  this.success.add(_elem98);
31418
                }
31419
                iprot.readListEnd();
31420
              }
31421
            } else { 
31422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31423
            }
31424
            break;
31425
          default:
31426
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31427
        }
31428
        iprot.readFieldEnd();
31429
      }
31430
      iprot.readStructEnd();
31431
      validate();
31432
    }
31433
 
31434
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31435
      oprot.writeStructBegin(STRUCT_DESC);
31436
 
31437
      if (this.isSetSuccess()) {
31438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31439
        {
31440
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31441
          for (IgnoredInventoryUpdateItems _iter99 : this.success)
31442
          {
31443
            _iter99.write(oprot);
31444
          }
31445
          oprot.writeListEnd();
31446
        }
31447
        oprot.writeFieldEnd();
31448
      }
31449
      oprot.writeFieldStop();
31450
      oprot.writeStructEnd();
31451
    }
31452
 
31453
    @Override
31454
    public String toString() {
31455
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
31456
      boolean first = true;
31457
 
31458
      sb.append("success:");
31459
      if (this.success == null) {
31460
        sb.append("null");
31461
      } else {
31462
        sb.append(this.success);
31463
      }
31464
      first = false;
31465
      sb.append(")");
31466
      return sb.toString();
31467
    }
31468
 
31469
    public void validate() throws org.apache.thrift.TException {
31470
      // check for required fields
31471
    }
31472
 
31473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31474
      try {
31475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31476
      } catch (org.apache.thrift.TException te) {
31477
        throw new java.io.IOException(te);
31478
      }
31479
    }
31480
 
31481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31482
      try {
31483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31484
      } catch (org.apache.thrift.TException te) {
31485
        throw new java.io.IOException(te);
31486
      }
31487
    }
31488
 
31489
  }
31490
 
31491
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
31492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
31493
 
31494
    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);
31495
    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);
31496
 
31497
    private long item_id; // required
31498
    private long warehouse_id; // required
31499
 
31500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31502
      ITEM_ID((short)1, "item_id"),
31503
      WAREHOUSE_ID((short)2, "warehouse_id");
31504
 
31505
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31506
 
31507
      static {
31508
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31509
          byName.put(field.getFieldName(), field);
31510
        }
31511
      }
31512
 
31513
      /**
31514
       * Find the _Fields constant that matches fieldId, or null if its not found.
31515
       */
31516
      public static _Fields findByThriftId(int fieldId) {
31517
        switch(fieldId) {
31518
          case 1: // ITEM_ID
31519
            return ITEM_ID;
31520
          case 2: // WAREHOUSE_ID
31521
            return WAREHOUSE_ID;
31522
          default:
31523
            return null;
31524
        }
31525
      }
31526
 
31527
      /**
31528
       * Find the _Fields constant that matches fieldId, throwing an exception
31529
       * if it is not found.
31530
       */
31531
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31532
        _Fields fields = findByThriftId(fieldId);
31533
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31534
        return fields;
31535
      }
31536
 
31537
      /**
31538
       * Find the _Fields constant that matches name, or null if its not found.
31539
       */
31540
      public static _Fields findByName(String name) {
31541
        return byName.get(name);
31542
      }
31543
 
31544
      private final short _thriftId;
31545
      private final String _fieldName;
31546
 
31547
      _Fields(short thriftId, String fieldName) {
31548
        _thriftId = thriftId;
31549
        _fieldName = fieldName;
31550
      }
31551
 
31552
      public short getThriftFieldId() {
31553
        return _thriftId;
31554
      }
31555
 
31556
      public String getFieldName() {
31557
        return _fieldName;
31558
      }
31559
    }
31560
 
31561
    // isset id assignments
31562
    private static final int __ITEM_ID_ISSET_ID = 0;
31563
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
31564
    private BitSet __isset_bit_vector = new BitSet(2);
31565
 
31566
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31567
    static {
31568
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31569
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31571
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
31575
    }
31576
 
31577
    public insertItemtoIgnoreInventoryUpdatelist_args() {
31578
    }
31579
 
31580
    public insertItemtoIgnoreInventoryUpdatelist_args(
31581
      long item_id,
31582
      long warehouse_id)
31583
    {
31584
      this();
31585
      this.item_id = item_id;
31586
      setItem_idIsSet(true);
31587
      this.warehouse_id = warehouse_id;
31588
      setWarehouse_idIsSet(true);
31589
    }
31590
 
31591
    /**
31592
     * Performs a deep copy on <i>other</i>.
31593
     */
31594
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
31595
      __isset_bit_vector.clear();
31596
      __isset_bit_vector.or(other.__isset_bit_vector);
31597
      this.item_id = other.item_id;
31598
      this.warehouse_id = other.warehouse_id;
31599
    }
31600
 
31601
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
31602
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
31603
    }
31604
 
31605
    @Override
31606
    public void clear() {
31607
      setItem_idIsSet(false);
31608
      this.item_id = 0;
31609
      setWarehouse_idIsSet(false);
31610
      this.warehouse_id = 0;
31611
    }
31612
 
31613
    public long getItem_id() {
31614
      return this.item_id;
31615
    }
31616
 
31617
    public void setItem_id(long item_id) {
31618
      this.item_id = item_id;
31619
      setItem_idIsSet(true);
31620
    }
31621
 
31622
    public void unsetItem_id() {
31623
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
31624
    }
31625
 
31626
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
31627
    public boolean isSetItem_id() {
31628
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
31629
    }
31630
 
31631
    public void setItem_idIsSet(boolean value) {
31632
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
31633
    }
31634
 
31635
    public long getWarehouse_id() {
31636
      return this.warehouse_id;
31637
    }
31638
 
31639
    public void setWarehouse_id(long warehouse_id) {
31640
      this.warehouse_id = warehouse_id;
31641
      setWarehouse_idIsSet(true);
31642
    }
31643
 
31644
    public void unsetWarehouse_id() {
31645
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
31646
    }
31647
 
31648
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
31649
    public boolean isSetWarehouse_id() {
31650
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
31651
    }
31652
 
31653
    public void setWarehouse_idIsSet(boolean value) {
31654
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
31655
    }
31656
 
31657
    public void setFieldValue(_Fields field, Object value) {
31658
      switch (field) {
31659
      case ITEM_ID:
31660
        if (value == null) {
31661
          unsetItem_id();
31662
        } else {
31663
          setItem_id((Long)value);
31664
        }
31665
        break;
31666
 
31667
      case WAREHOUSE_ID:
31668
        if (value == null) {
31669
          unsetWarehouse_id();
31670
        } else {
31671
          setWarehouse_id((Long)value);
31672
        }
31673
        break;
31674
 
31675
      }
31676
    }
31677
 
31678
    public Object getFieldValue(_Fields field) {
31679
      switch (field) {
31680
      case ITEM_ID:
31681
        return Long.valueOf(getItem_id());
31682
 
31683
      case WAREHOUSE_ID:
31684
        return Long.valueOf(getWarehouse_id());
31685
 
31686
      }
31687
      throw new IllegalStateException();
31688
    }
31689
 
31690
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31691
    public boolean isSet(_Fields field) {
31692
      if (field == null) {
31693
        throw new IllegalArgumentException();
31694
      }
31695
 
31696
      switch (field) {
31697
      case ITEM_ID:
31698
        return isSetItem_id();
31699
      case WAREHOUSE_ID:
31700
        return isSetWarehouse_id();
31701
      }
31702
      throw new IllegalStateException();
31703
    }
31704
 
31705
    @Override
31706
    public boolean equals(Object that) {
31707
      if (that == null)
31708
        return false;
31709
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
31710
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
31711
      return false;
31712
    }
31713
 
31714
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
31715
      if (that == null)
31716
        return false;
31717
 
31718
      boolean this_present_item_id = true;
31719
      boolean that_present_item_id = true;
31720
      if (this_present_item_id || that_present_item_id) {
31721
        if (!(this_present_item_id && that_present_item_id))
31722
          return false;
31723
        if (this.item_id != that.item_id)
31724
          return false;
31725
      }
31726
 
31727
      boolean this_present_warehouse_id = true;
31728
      boolean that_present_warehouse_id = true;
31729
      if (this_present_warehouse_id || that_present_warehouse_id) {
31730
        if (!(this_present_warehouse_id && that_present_warehouse_id))
31731
          return false;
31732
        if (this.warehouse_id != that.warehouse_id)
31733
          return false;
31734
      }
31735
 
31736
      return true;
31737
    }
31738
 
31739
    @Override
31740
    public int hashCode() {
31741
      return 0;
31742
    }
31743
 
31744
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
31745
      if (!getClass().equals(other.getClass())) {
31746
        return getClass().getName().compareTo(other.getClass().getName());
31747
      }
31748
 
31749
      int lastComparison = 0;
31750
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
31751
 
31752
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
31753
      if (lastComparison != 0) {
31754
        return lastComparison;
31755
      }
31756
      if (isSetItem_id()) {
31757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
31758
        if (lastComparison != 0) {
31759
          return lastComparison;
31760
        }
31761
      }
31762
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
31763
      if (lastComparison != 0) {
31764
        return lastComparison;
31765
      }
31766
      if (isSetWarehouse_id()) {
31767
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
31768
        if (lastComparison != 0) {
31769
          return lastComparison;
31770
        }
31771
      }
31772
      return 0;
31773
    }
31774
 
31775
    public _Fields fieldForId(int fieldId) {
31776
      return _Fields.findByThriftId(fieldId);
31777
    }
31778
 
31779
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31780
      org.apache.thrift.protocol.TField field;
31781
      iprot.readStructBegin();
31782
      while (true)
31783
      {
31784
        field = iprot.readFieldBegin();
31785
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31786
          break;
31787
        }
31788
        switch (field.id) {
31789
          case 1: // ITEM_ID
31790
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31791
              this.item_id = iprot.readI64();
31792
              setItem_idIsSet(true);
31793
            } else { 
31794
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31795
            }
31796
            break;
31797
          case 2: // WAREHOUSE_ID
31798
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31799
              this.warehouse_id = iprot.readI64();
31800
              setWarehouse_idIsSet(true);
31801
            } else { 
31802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31803
            }
31804
            break;
31805
          default:
31806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31807
        }
31808
        iprot.readFieldEnd();
31809
      }
31810
      iprot.readStructEnd();
31811
      validate();
31812
    }
31813
 
31814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31815
      validate();
31816
 
31817
      oprot.writeStructBegin(STRUCT_DESC);
31818
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31819
      oprot.writeI64(this.item_id);
31820
      oprot.writeFieldEnd();
31821
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31822
      oprot.writeI64(this.warehouse_id);
31823
      oprot.writeFieldEnd();
31824
      oprot.writeFieldStop();
31825
      oprot.writeStructEnd();
31826
    }
31827
 
31828
    @Override
31829
    public String toString() {
31830
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
31831
      boolean first = true;
31832
 
31833
      sb.append("item_id:");
31834
      sb.append(this.item_id);
31835
      first = false;
31836
      if (!first) sb.append(", ");
31837
      sb.append("warehouse_id:");
31838
      sb.append(this.warehouse_id);
31839
      first = false;
31840
      sb.append(")");
31841
      return sb.toString();
31842
    }
31843
 
31844
    public void validate() throws org.apache.thrift.TException {
31845
      // check for required fields
31846
    }
31847
 
31848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31849
      try {
31850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31851
      } catch (org.apache.thrift.TException te) {
31852
        throw new java.io.IOException(te);
31853
      }
31854
    }
31855
 
31856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31857
      try {
31858
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31859
        __isset_bit_vector = new BitSet(1);
31860
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31861
      } catch (org.apache.thrift.TException te) {
31862
        throw new java.io.IOException(te);
31863
      }
31864
    }
31865
 
31866
  }
31867
 
31868
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
31869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
31870
 
31871
    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);
31872
 
31873
    private boolean success; // required
31874
 
31875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31877
      SUCCESS((short)0, "success");
31878
 
31879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31880
 
31881
      static {
31882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31883
          byName.put(field.getFieldName(), field);
31884
        }
31885
      }
31886
 
31887
      /**
31888
       * Find the _Fields constant that matches fieldId, or null if its not found.
31889
       */
31890
      public static _Fields findByThriftId(int fieldId) {
31891
        switch(fieldId) {
31892
          case 0: // SUCCESS
31893
            return SUCCESS;
31894
          default:
31895
            return null;
31896
        }
31897
      }
31898
 
31899
      /**
31900
       * Find the _Fields constant that matches fieldId, throwing an exception
31901
       * if it is not found.
31902
       */
31903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31904
        _Fields fields = findByThriftId(fieldId);
31905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31906
        return fields;
31907
      }
31908
 
31909
      /**
31910
       * Find the _Fields constant that matches name, or null if its not found.
31911
       */
31912
      public static _Fields findByName(String name) {
31913
        return byName.get(name);
31914
      }
31915
 
31916
      private final short _thriftId;
31917
      private final String _fieldName;
31918
 
31919
      _Fields(short thriftId, String fieldName) {
31920
        _thriftId = thriftId;
31921
        _fieldName = fieldName;
31922
      }
31923
 
31924
      public short getThriftFieldId() {
31925
        return _thriftId;
31926
      }
31927
 
31928
      public String getFieldName() {
31929
        return _fieldName;
31930
      }
31931
    }
31932
 
31933
    // isset id assignments
31934
    private static final int __SUCCESS_ISSET_ID = 0;
31935
    private BitSet __isset_bit_vector = new BitSet(1);
31936
 
31937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31938
    static {
31939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31940
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
31944
    }
31945
 
31946
    public insertItemtoIgnoreInventoryUpdatelist_result() {
31947
    }
31948
 
31949
    public insertItemtoIgnoreInventoryUpdatelist_result(
31950
      boolean success)
31951
    {
31952
      this();
31953
      this.success = success;
31954
      setSuccessIsSet(true);
31955
    }
31956
 
31957
    /**
31958
     * Performs a deep copy on <i>other</i>.
31959
     */
31960
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
31961
      __isset_bit_vector.clear();
31962
      __isset_bit_vector.or(other.__isset_bit_vector);
31963
      this.success = other.success;
31964
    }
31965
 
31966
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
31967
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
31968
    }
31969
 
31970
    @Override
31971
    public void clear() {
31972
      setSuccessIsSet(false);
31973
      this.success = false;
31974
    }
31975
 
31976
    public boolean isSuccess() {
31977
      return this.success;
31978
    }
31979
 
31980
    public void setSuccess(boolean success) {
31981
      this.success = success;
31982
      setSuccessIsSet(true);
31983
    }
31984
 
31985
    public void unsetSuccess() {
31986
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31987
    }
31988
 
31989
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31990
    public boolean isSetSuccess() {
31991
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31992
    }
31993
 
31994
    public void setSuccessIsSet(boolean value) {
31995
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31996
    }
31997
 
31998
    public void setFieldValue(_Fields field, Object value) {
31999
      switch (field) {
32000
      case SUCCESS:
32001
        if (value == null) {
32002
          unsetSuccess();
32003
        } else {
32004
          setSuccess((Boolean)value);
32005
        }
32006
        break;
32007
 
32008
      }
32009
    }
32010
 
32011
    public Object getFieldValue(_Fields field) {
32012
      switch (field) {
32013
      case SUCCESS:
32014
        return Boolean.valueOf(isSuccess());
32015
 
32016
      }
32017
      throw new IllegalStateException();
32018
    }
32019
 
32020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32021
    public boolean isSet(_Fields field) {
32022
      if (field == null) {
32023
        throw new IllegalArgumentException();
32024
      }
32025
 
32026
      switch (field) {
32027
      case SUCCESS:
32028
        return isSetSuccess();
32029
      }
32030
      throw new IllegalStateException();
32031
    }
32032
 
32033
    @Override
32034
    public boolean equals(Object that) {
32035
      if (that == null)
32036
        return false;
32037
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
32038
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
32039
      return false;
32040
    }
32041
 
32042
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
32043
      if (that == null)
32044
        return false;
32045
 
32046
      boolean this_present_success = true;
32047
      boolean that_present_success = true;
32048
      if (this_present_success || that_present_success) {
32049
        if (!(this_present_success && that_present_success))
32050
          return false;
32051
        if (this.success != that.success)
32052
          return false;
32053
      }
32054
 
32055
      return true;
32056
    }
32057
 
32058
    @Override
32059
    public int hashCode() {
32060
      return 0;
32061
    }
32062
 
32063
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
32064
      if (!getClass().equals(other.getClass())) {
32065
        return getClass().getName().compareTo(other.getClass().getName());
32066
      }
32067
 
32068
      int lastComparison = 0;
32069
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
32070
 
32071
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32072
      if (lastComparison != 0) {
32073
        return lastComparison;
32074
      }
32075
      if (isSetSuccess()) {
32076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32077
        if (lastComparison != 0) {
32078
          return lastComparison;
32079
        }
32080
      }
32081
      return 0;
32082
    }
32083
 
32084
    public _Fields fieldForId(int fieldId) {
32085
      return _Fields.findByThriftId(fieldId);
32086
    }
32087
 
32088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32089
      org.apache.thrift.protocol.TField field;
32090
      iprot.readStructBegin();
32091
      while (true)
32092
      {
32093
        field = iprot.readFieldBegin();
32094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32095
          break;
32096
        }
32097
        switch (field.id) {
32098
          case 0: // SUCCESS
32099
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32100
              this.success = iprot.readBool();
32101
              setSuccessIsSet(true);
32102
            } else { 
32103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32104
            }
32105
            break;
32106
          default:
32107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32108
        }
32109
        iprot.readFieldEnd();
32110
      }
32111
      iprot.readStructEnd();
32112
      validate();
32113
    }
32114
 
32115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32116
      oprot.writeStructBegin(STRUCT_DESC);
32117
 
32118
      if (this.isSetSuccess()) {
32119
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32120
        oprot.writeBool(this.success);
32121
        oprot.writeFieldEnd();
32122
      }
32123
      oprot.writeFieldStop();
32124
      oprot.writeStructEnd();
32125
    }
32126
 
32127
    @Override
32128
    public String toString() {
32129
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
32130
      boolean first = true;
32131
 
32132
      sb.append("success:");
32133
      sb.append(this.success);
32134
      first = false;
32135
      sb.append(")");
32136
      return sb.toString();
32137
    }
32138
 
32139
    public void validate() throws org.apache.thrift.TException {
32140
      // check for required fields
32141
    }
32142
 
32143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32144
      try {
32145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32146
      } catch (org.apache.thrift.TException te) {
32147
        throw new java.io.IOException(te);
32148
      }
32149
    }
32150
 
32151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32152
      try {
32153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32154
      } catch (org.apache.thrift.TException te) {
32155
        throw new java.io.IOException(te);
32156
      }
32157
    }
32158
 
32159
  }
32160
 
32161
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
32162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
32163
 
32164
    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);
32165
    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);
32166
 
32167
    private long item_id; // required
32168
    private long warehouse_id; // required
32169
 
32170
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32171
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32172
      ITEM_ID((short)1, "item_id"),
32173
      WAREHOUSE_ID((short)2, "warehouse_id");
32174
 
32175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32176
 
32177
      static {
32178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32179
          byName.put(field.getFieldName(), field);
32180
        }
32181
      }
32182
 
32183
      /**
32184
       * Find the _Fields constant that matches fieldId, or null if its not found.
32185
       */
32186
      public static _Fields findByThriftId(int fieldId) {
32187
        switch(fieldId) {
32188
          case 1: // ITEM_ID
32189
            return ITEM_ID;
32190
          case 2: // WAREHOUSE_ID
32191
            return WAREHOUSE_ID;
32192
          default:
32193
            return null;
32194
        }
32195
      }
32196
 
32197
      /**
32198
       * Find the _Fields constant that matches fieldId, throwing an exception
32199
       * if it is not found.
32200
       */
32201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32202
        _Fields fields = findByThriftId(fieldId);
32203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32204
        return fields;
32205
      }
32206
 
32207
      /**
32208
       * Find the _Fields constant that matches name, or null if its not found.
32209
       */
32210
      public static _Fields findByName(String name) {
32211
        return byName.get(name);
32212
      }
32213
 
32214
      private final short _thriftId;
32215
      private final String _fieldName;
32216
 
32217
      _Fields(short thriftId, String fieldName) {
32218
        _thriftId = thriftId;
32219
        _fieldName = fieldName;
32220
      }
32221
 
32222
      public short getThriftFieldId() {
32223
        return _thriftId;
32224
      }
32225
 
32226
      public String getFieldName() {
32227
        return _fieldName;
32228
      }
32229
    }
32230
 
32231
    // isset id assignments
32232
    private static final int __ITEM_ID_ISSET_ID = 0;
32233
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
32234
    private BitSet __isset_bit_vector = new BitSet(2);
32235
 
32236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32237
    static {
32238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32239
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32241
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
32245
    }
32246
 
32247
    public deleteItemFromIgnoredInventoryUpdateList_args() {
32248
    }
32249
 
32250
    public deleteItemFromIgnoredInventoryUpdateList_args(
32251
      long item_id,
32252
      long warehouse_id)
32253
    {
32254
      this();
32255
      this.item_id = item_id;
32256
      setItem_idIsSet(true);
32257
      this.warehouse_id = warehouse_id;
32258
      setWarehouse_idIsSet(true);
32259
    }
32260
 
32261
    /**
32262
     * Performs a deep copy on <i>other</i>.
32263
     */
32264
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
32265
      __isset_bit_vector.clear();
32266
      __isset_bit_vector.or(other.__isset_bit_vector);
32267
      this.item_id = other.item_id;
32268
      this.warehouse_id = other.warehouse_id;
32269
    }
32270
 
32271
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
32272
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
32273
    }
32274
 
32275
    @Override
32276
    public void clear() {
32277
      setItem_idIsSet(false);
32278
      this.item_id = 0;
32279
      setWarehouse_idIsSet(false);
32280
      this.warehouse_id = 0;
32281
    }
32282
 
32283
    public long getItem_id() {
32284
      return this.item_id;
32285
    }
32286
 
32287
    public void setItem_id(long item_id) {
32288
      this.item_id = item_id;
32289
      setItem_idIsSet(true);
32290
    }
32291
 
32292
    public void unsetItem_id() {
32293
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32294
    }
32295
 
32296
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32297
    public boolean isSetItem_id() {
32298
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32299
    }
32300
 
32301
    public void setItem_idIsSet(boolean value) {
32302
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32303
    }
32304
 
32305
    public long getWarehouse_id() {
32306
      return this.warehouse_id;
32307
    }
32308
 
32309
    public void setWarehouse_id(long warehouse_id) {
32310
      this.warehouse_id = warehouse_id;
32311
      setWarehouse_idIsSet(true);
32312
    }
32313
 
32314
    public void unsetWarehouse_id() {
32315
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
32316
    }
32317
 
32318
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
32319
    public boolean isSetWarehouse_id() {
32320
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
32321
    }
32322
 
32323
    public void setWarehouse_idIsSet(boolean value) {
32324
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
32325
    }
32326
 
32327
    public void setFieldValue(_Fields field, Object value) {
32328
      switch (field) {
32329
      case ITEM_ID:
32330
        if (value == null) {
32331
          unsetItem_id();
32332
        } else {
32333
          setItem_id((Long)value);
32334
        }
32335
        break;
32336
 
32337
      case WAREHOUSE_ID:
32338
        if (value == null) {
32339
          unsetWarehouse_id();
32340
        } else {
32341
          setWarehouse_id((Long)value);
32342
        }
32343
        break;
32344
 
32345
      }
32346
    }
32347
 
32348
    public Object getFieldValue(_Fields field) {
32349
      switch (field) {
32350
      case ITEM_ID:
32351
        return Long.valueOf(getItem_id());
32352
 
32353
      case WAREHOUSE_ID:
32354
        return Long.valueOf(getWarehouse_id());
32355
 
32356
      }
32357
      throw new IllegalStateException();
32358
    }
32359
 
32360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32361
    public boolean isSet(_Fields field) {
32362
      if (field == null) {
32363
        throw new IllegalArgumentException();
32364
      }
32365
 
32366
      switch (field) {
32367
      case ITEM_ID:
32368
        return isSetItem_id();
32369
      case WAREHOUSE_ID:
32370
        return isSetWarehouse_id();
32371
      }
32372
      throw new IllegalStateException();
32373
    }
32374
 
32375
    @Override
32376
    public boolean equals(Object that) {
32377
      if (that == null)
32378
        return false;
32379
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
32380
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
32381
      return false;
32382
    }
32383
 
32384
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
32385
      if (that == null)
32386
        return false;
32387
 
32388
      boolean this_present_item_id = true;
32389
      boolean that_present_item_id = true;
32390
      if (this_present_item_id || that_present_item_id) {
32391
        if (!(this_present_item_id && that_present_item_id))
32392
          return false;
32393
        if (this.item_id != that.item_id)
32394
          return false;
32395
      }
32396
 
32397
      boolean this_present_warehouse_id = true;
32398
      boolean that_present_warehouse_id = true;
32399
      if (this_present_warehouse_id || that_present_warehouse_id) {
32400
        if (!(this_present_warehouse_id && that_present_warehouse_id))
32401
          return false;
32402
        if (this.warehouse_id != that.warehouse_id)
32403
          return false;
32404
      }
32405
 
32406
      return true;
32407
    }
32408
 
32409
    @Override
32410
    public int hashCode() {
32411
      return 0;
32412
    }
32413
 
32414
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
32415
      if (!getClass().equals(other.getClass())) {
32416
        return getClass().getName().compareTo(other.getClass().getName());
32417
      }
32418
 
32419
      int lastComparison = 0;
32420
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
32421
 
32422
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32423
      if (lastComparison != 0) {
32424
        return lastComparison;
32425
      }
32426
      if (isSetItem_id()) {
32427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32428
        if (lastComparison != 0) {
32429
          return lastComparison;
32430
        }
32431
      }
32432
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
32433
      if (lastComparison != 0) {
32434
        return lastComparison;
32435
      }
32436
      if (isSetWarehouse_id()) {
32437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
32438
        if (lastComparison != 0) {
32439
          return lastComparison;
32440
        }
32441
      }
32442
      return 0;
32443
    }
32444
 
32445
    public _Fields fieldForId(int fieldId) {
32446
      return _Fields.findByThriftId(fieldId);
32447
    }
32448
 
32449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32450
      org.apache.thrift.protocol.TField field;
32451
      iprot.readStructBegin();
32452
      while (true)
32453
      {
32454
        field = iprot.readFieldBegin();
32455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32456
          break;
32457
        }
32458
        switch (field.id) {
32459
          case 1: // ITEM_ID
32460
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32461
              this.item_id = iprot.readI64();
32462
              setItem_idIsSet(true);
32463
            } else { 
32464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32465
            }
32466
            break;
32467
          case 2: // WAREHOUSE_ID
32468
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32469
              this.warehouse_id = iprot.readI64();
32470
              setWarehouse_idIsSet(true);
32471
            } else { 
32472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32473
            }
32474
            break;
32475
          default:
32476
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32477
        }
32478
        iprot.readFieldEnd();
32479
      }
32480
      iprot.readStructEnd();
32481
      validate();
32482
    }
32483
 
32484
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32485
      validate();
32486
 
32487
      oprot.writeStructBegin(STRUCT_DESC);
32488
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32489
      oprot.writeI64(this.item_id);
32490
      oprot.writeFieldEnd();
32491
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32492
      oprot.writeI64(this.warehouse_id);
32493
      oprot.writeFieldEnd();
32494
      oprot.writeFieldStop();
32495
      oprot.writeStructEnd();
32496
    }
32497
 
32498
    @Override
32499
    public String toString() {
32500
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
32501
      boolean first = true;
32502
 
32503
      sb.append("item_id:");
32504
      sb.append(this.item_id);
32505
      first = false;
32506
      if (!first) sb.append(", ");
32507
      sb.append("warehouse_id:");
32508
      sb.append(this.warehouse_id);
32509
      first = false;
32510
      sb.append(")");
32511
      return sb.toString();
32512
    }
32513
 
32514
    public void validate() throws org.apache.thrift.TException {
32515
      // check for required fields
32516
    }
32517
 
32518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32519
      try {
32520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32521
      } catch (org.apache.thrift.TException te) {
32522
        throw new java.io.IOException(te);
32523
      }
32524
    }
32525
 
32526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32527
      try {
32528
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32529
        __isset_bit_vector = new BitSet(1);
32530
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32531
      } catch (org.apache.thrift.TException te) {
32532
        throw new java.io.IOException(te);
32533
      }
32534
    }
32535
 
32536
  }
32537
 
32538
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
32539
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
32540
 
32541
    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);
32542
 
32543
    private boolean success; // required
32544
 
32545
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32546
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32547
      SUCCESS((short)0, "success");
32548
 
32549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32550
 
32551
      static {
32552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32553
          byName.put(field.getFieldName(), field);
32554
        }
32555
      }
32556
 
32557
      /**
32558
       * Find the _Fields constant that matches fieldId, or null if its not found.
32559
       */
32560
      public static _Fields findByThriftId(int fieldId) {
32561
        switch(fieldId) {
32562
          case 0: // SUCCESS
32563
            return SUCCESS;
32564
          default:
32565
            return null;
32566
        }
32567
      }
32568
 
32569
      /**
32570
       * Find the _Fields constant that matches fieldId, throwing an exception
32571
       * if it is not found.
32572
       */
32573
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32574
        _Fields fields = findByThriftId(fieldId);
32575
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32576
        return fields;
32577
      }
32578
 
32579
      /**
32580
       * Find the _Fields constant that matches name, or null if its not found.
32581
       */
32582
      public static _Fields findByName(String name) {
32583
        return byName.get(name);
32584
      }
32585
 
32586
      private final short _thriftId;
32587
      private final String _fieldName;
32588
 
32589
      _Fields(short thriftId, String fieldName) {
32590
        _thriftId = thriftId;
32591
        _fieldName = fieldName;
32592
      }
32593
 
32594
      public short getThriftFieldId() {
32595
        return _thriftId;
32596
      }
32597
 
32598
      public String getFieldName() {
32599
        return _fieldName;
32600
      }
32601
    }
32602
 
32603
    // isset id assignments
32604
    private static final int __SUCCESS_ISSET_ID = 0;
32605
    private BitSet __isset_bit_vector = new BitSet(1);
32606
 
32607
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32608
    static {
32609
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32610
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32611
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32612
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32613
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
32614
    }
32615
 
32616
    public deleteItemFromIgnoredInventoryUpdateList_result() {
32617
    }
32618
 
32619
    public deleteItemFromIgnoredInventoryUpdateList_result(
32620
      boolean success)
32621
    {
32622
      this();
32623
      this.success = success;
32624
      setSuccessIsSet(true);
32625
    }
32626
 
32627
    /**
32628
     * Performs a deep copy on <i>other</i>.
32629
     */
32630
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
32631
      __isset_bit_vector.clear();
32632
      __isset_bit_vector.or(other.__isset_bit_vector);
32633
      this.success = other.success;
32634
    }
32635
 
32636
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
32637
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
32638
    }
32639
 
32640
    @Override
32641
    public void clear() {
32642
      setSuccessIsSet(false);
32643
      this.success = false;
32644
    }
32645
 
32646
    public boolean isSuccess() {
32647
      return this.success;
32648
    }
32649
 
32650
    public void setSuccess(boolean success) {
32651
      this.success = success;
32652
      setSuccessIsSet(true);
32653
    }
32654
 
32655
    public void unsetSuccess() {
32656
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32657
    }
32658
 
32659
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32660
    public boolean isSetSuccess() {
32661
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32662
    }
32663
 
32664
    public void setSuccessIsSet(boolean value) {
32665
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32666
    }
32667
 
32668
    public void setFieldValue(_Fields field, Object value) {
32669
      switch (field) {
32670
      case SUCCESS:
32671
        if (value == null) {
32672
          unsetSuccess();
32673
        } else {
32674
          setSuccess((Boolean)value);
32675
        }
32676
        break;
32677
 
32678
      }
32679
    }
32680
 
32681
    public Object getFieldValue(_Fields field) {
32682
      switch (field) {
32683
      case SUCCESS:
32684
        return Boolean.valueOf(isSuccess());
32685
 
32686
      }
32687
      throw new IllegalStateException();
32688
    }
32689
 
32690
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32691
    public boolean isSet(_Fields field) {
32692
      if (field == null) {
32693
        throw new IllegalArgumentException();
32694
      }
32695
 
32696
      switch (field) {
32697
      case SUCCESS:
32698
        return isSetSuccess();
32699
      }
32700
      throw new IllegalStateException();
32701
    }
32702
 
32703
    @Override
32704
    public boolean equals(Object that) {
32705
      if (that == null)
32706
        return false;
32707
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
32708
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
32709
      return false;
32710
    }
32711
 
32712
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
32713
      if (that == null)
32714
        return false;
32715
 
32716
      boolean this_present_success = true;
32717
      boolean that_present_success = true;
32718
      if (this_present_success || that_present_success) {
32719
        if (!(this_present_success && that_present_success))
32720
          return false;
32721
        if (this.success != that.success)
32722
          return false;
32723
      }
32724
 
32725
      return true;
32726
    }
32727
 
32728
    @Override
32729
    public int hashCode() {
32730
      return 0;
32731
    }
32732
 
32733
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
32734
      if (!getClass().equals(other.getClass())) {
32735
        return getClass().getName().compareTo(other.getClass().getName());
32736
      }
32737
 
32738
      int lastComparison = 0;
32739
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
32740
 
32741
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32742
      if (lastComparison != 0) {
32743
        return lastComparison;
32744
      }
32745
      if (isSetSuccess()) {
32746
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32747
        if (lastComparison != 0) {
32748
          return lastComparison;
32749
        }
32750
      }
32751
      return 0;
32752
    }
32753
 
32754
    public _Fields fieldForId(int fieldId) {
32755
      return _Fields.findByThriftId(fieldId);
32756
    }
32757
 
32758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32759
      org.apache.thrift.protocol.TField field;
32760
      iprot.readStructBegin();
32761
      while (true)
32762
      {
32763
        field = iprot.readFieldBegin();
32764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32765
          break;
32766
        }
32767
        switch (field.id) {
32768
          case 0: // SUCCESS
32769
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32770
              this.success = iprot.readBool();
32771
              setSuccessIsSet(true);
32772
            } else { 
32773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32774
            }
32775
            break;
32776
          default:
32777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32778
        }
32779
        iprot.readFieldEnd();
32780
      }
32781
      iprot.readStructEnd();
32782
      validate();
32783
    }
32784
 
32785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32786
      oprot.writeStructBegin(STRUCT_DESC);
32787
 
32788
      if (this.isSetSuccess()) {
32789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32790
        oprot.writeBool(this.success);
32791
        oprot.writeFieldEnd();
32792
      }
32793
      oprot.writeFieldStop();
32794
      oprot.writeStructEnd();
32795
    }
32796
 
32797
    @Override
32798
    public String toString() {
32799
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
32800
      boolean first = true;
32801
 
32802
      sb.append("success:");
32803
      sb.append(this.success);
32804
      first = false;
32805
      sb.append(")");
32806
      return sb.toString();
32807
    }
32808
 
32809
    public void validate() throws org.apache.thrift.TException {
32810
      // check for required fields
32811
    }
32812
 
32813
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32814
      try {
32815
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32816
      } catch (org.apache.thrift.TException te) {
32817
        throw new java.io.IOException(te);
32818
      }
32819
    }
32820
 
32821
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32822
      try {
32823
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32824
      } catch (org.apache.thrift.TException te) {
32825
        throw new java.io.IOException(te);
32826
      }
32827
    }
32828
 
32829
  }
32830
 
32831
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
32832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
32833
 
32834
 
32835
 
32836
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32837
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32838
;
32839
 
32840
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32841
 
32842
      static {
32843
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32844
          byName.put(field.getFieldName(), field);
32845
        }
32846
      }
32847
 
32848
      /**
32849
       * Find the _Fields constant that matches fieldId, or null if its not found.
32850
       */
32851
      public static _Fields findByThriftId(int fieldId) {
32852
        switch(fieldId) {
32853
          default:
32854
            return null;
32855
        }
32856
      }
32857
 
32858
      /**
32859
       * Find the _Fields constant that matches fieldId, throwing an exception
32860
       * if it is not found.
32861
       */
32862
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32863
        _Fields fields = findByThriftId(fieldId);
32864
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32865
        return fields;
32866
      }
32867
 
32868
      /**
32869
       * Find the _Fields constant that matches name, or null if its not found.
32870
       */
32871
      public static _Fields findByName(String name) {
32872
        return byName.get(name);
32873
      }
32874
 
32875
      private final short _thriftId;
32876
      private final String _fieldName;
32877
 
32878
      _Fields(short thriftId, String fieldName) {
32879
        _thriftId = thriftId;
32880
        _fieldName = fieldName;
32881
      }
32882
 
32883
      public short getThriftFieldId() {
32884
        return _thriftId;
32885
      }
32886
 
32887
      public String getFieldName() {
32888
        return _fieldName;
32889
      }
32890
    }
32891
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32892
    static {
32893
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
32896
    }
32897
 
32898
    public getAllIgnoredInventoryupdateItemsCount_args() {
32899
    }
32900
 
32901
    /**
32902
     * Performs a deep copy on <i>other</i>.
32903
     */
32904
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
32905
    }
32906
 
32907
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
32908
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
32909
    }
32910
 
32911
    @Override
32912
    public void clear() {
32913
    }
32914
 
32915
    public void setFieldValue(_Fields field, Object value) {
32916
      switch (field) {
32917
      }
32918
    }
32919
 
32920
    public Object getFieldValue(_Fields field) {
32921
      switch (field) {
32922
      }
32923
      throw new IllegalStateException();
32924
    }
32925
 
32926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32927
    public boolean isSet(_Fields field) {
32928
      if (field == null) {
32929
        throw new IllegalArgumentException();
32930
      }
32931
 
32932
      switch (field) {
32933
      }
32934
      throw new IllegalStateException();
32935
    }
32936
 
32937
    @Override
32938
    public boolean equals(Object that) {
32939
      if (that == null)
32940
        return false;
32941
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
32942
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
32943
      return false;
32944
    }
32945
 
32946
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
32947
      if (that == null)
32948
        return false;
32949
 
32950
      return true;
32951
    }
32952
 
32953
    @Override
32954
    public int hashCode() {
32955
      return 0;
32956
    }
32957
 
32958
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
32959
      if (!getClass().equals(other.getClass())) {
32960
        return getClass().getName().compareTo(other.getClass().getName());
32961
      }
32962
 
32963
      int lastComparison = 0;
32964
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
32965
 
32966
      return 0;
32967
    }
32968
 
32969
    public _Fields fieldForId(int fieldId) {
32970
      return _Fields.findByThriftId(fieldId);
32971
    }
32972
 
32973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32974
      org.apache.thrift.protocol.TField field;
32975
      iprot.readStructBegin();
32976
      while (true)
32977
      {
32978
        field = iprot.readFieldBegin();
32979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32980
          break;
32981
        }
32982
        switch (field.id) {
32983
          default:
32984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32985
        }
32986
        iprot.readFieldEnd();
32987
      }
32988
      iprot.readStructEnd();
32989
      validate();
32990
    }
32991
 
32992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32993
      validate();
32994
 
32995
      oprot.writeStructBegin(STRUCT_DESC);
32996
      oprot.writeFieldStop();
32997
      oprot.writeStructEnd();
32998
    }
32999
 
33000
    @Override
33001
    public String toString() {
33002
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
33003
      boolean first = true;
33004
 
33005
      sb.append(")");
33006
      return sb.toString();
33007
    }
33008
 
33009
    public void validate() throws org.apache.thrift.TException {
33010
      // check for required fields
33011
    }
33012
 
33013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33014
      try {
33015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33016
      } catch (org.apache.thrift.TException te) {
33017
        throw new java.io.IOException(te);
33018
      }
33019
    }
33020
 
33021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33022
      try {
33023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33024
      } catch (org.apache.thrift.TException te) {
33025
        throw new java.io.IOException(te);
33026
      }
33027
    }
33028
 
33029
  }
33030
 
33031
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
33032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
33033
 
33034
    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);
33035
 
33036
    private int success; // required
33037
 
33038
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33039
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33040
      SUCCESS((short)0, "success");
33041
 
33042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33043
 
33044
      static {
33045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33046
          byName.put(field.getFieldName(), field);
33047
        }
33048
      }
33049
 
33050
      /**
33051
       * Find the _Fields constant that matches fieldId, or null if its not found.
33052
       */
33053
      public static _Fields findByThriftId(int fieldId) {
33054
        switch(fieldId) {
33055
          case 0: // SUCCESS
33056
            return SUCCESS;
33057
          default:
33058
            return null;
33059
        }
33060
      }
33061
 
33062
      /**
33063
       * Find the _Fields constant that matches fieldId, throwing an exception
33064
       * if it is not found.
33065
       */
33066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33067
        _Fields fields = findByThriftId(fieldId);
33068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33069
        return fields;
33070
      }
33071
 
33072
      /**
33073
       * Find the _Fields constant that matches name, or null if its not found.
33074
       */
33075
      public static _Fields findByName(String name) {
33076
        return byName.get(name);
33077
      }
33078
 
33079
      private final short _thriftId;
33080
      private final String _fieldName;
33081
 
33082
      _Fields(short thriftId, String fieldName) {
33083
        _thriftId = thriftId;
33084
        _fieldName = fieldName;
33085
      }
33086
 
33087
      public short getThriftFieldId() {
33088
        return _thriftId;
33089
      }
33090
 
33091
      public String getFieldName() {
33092
        return _fieldName;
33093
      }
33094
    }
33095
 
33096
    // isset id assignments
33097
    private static final int __SUCCESS_ISSET_ID = 0;
33098
    private BitSet __isset_bit_vector = new BitSet(1);
33099
 
33100
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33101
    static {
33102
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33103
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33104
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33105
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33106
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
33107
    }
33108
 
33109
    public getAllIgnoredInventoryupdateItemsCount_result() {
33110
    }
33111
 
33112
    public getAllIgnoredInventoryupdateItemsCount_result(
33113
      int success)
33114
    {
33115
      this();
33116
      this.success = success;
33117
      setSuccessIsSet(true);
33118
    }
33119
 
33120
    /**
33121
     * Performs a deep copy on <i>other</i>.
33122
     */
33123
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
33124
      __isset_bit_vector.clear();
33125
      __isset_bit_vector.or(other.__isset_bit_vector);
33126
      this.success = other.success;
33127
    }
33128
 
33129
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
33130
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
33131
    }
33132
 
33133
    @Override
33134
    public void clear() {
33135
      setSuccessIsSet(false);
33136
      this.success = 0;
33137
    }
33138
 
33139
    public int getSuccess() {
33140
      return this.success;
33141
    }
33142
 
33143
    public void setSuccess(int success) {
33144
      this.success = success;
33145
      setSuccessIsSet(true);
33146
    }
33147
 
33148
    public void unsetSuccess() {
33149
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
33150
    }
33151
 
33152
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33153
    public boolean isSetSuccess() {
33154
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
33155
    }
33156
 
33157
    public void setSuccessIsSet(boolean value) {
33158
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
33159
    }
33160
 
33161
    public void setFieldValue(_Fields field, Object value) {
33162
      switch (field) {
33163
      case SUCCESS:
33164
        if (value == null) {
33165
          unsetSuccess();
33166
        } else {
33167
          setSuccess((Integer)value);
33168
        }
33169
        break;
33170
 
33171
      }
33172
    }
33173
 
33174
    public Object getFieldValue(_Fields field) {
33175
      switch (field) {
33176
      case SUCCESS:
33177
        return Integer.valueOf(getSuccess());
33178
 
33179
      }
33180
      throw new IllegalStateException();
33181
    }
33182
 
33183
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33184
    public boolean isSet(_Fields field) {
33185
      if (field == null) {
33186
        throw new IllegalArgumentException();
33187
      }
33188
 
33189
      switch (field) {
33190
      case SUCCESS:
33191
        return isSetSuccess();
33192
      }
33193
      throw new IllegalStateException();
33194
    }
33195
 
33196
    @Override
33197
    public boolean equals(Object that) {
33198
      if (that == null)
33199
        return false;
33200
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
33201
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
33202
      return false;
33203
    }
33204
 
33205
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
33206
      if (that == null)
33207
        return false;
33208
 
33209
      boolean this_present_success = true;
33210
      boolean that_present_success = true;
33211
      if (this_present_success || that_present_success) {
33212
        if (!(this_present_success && that_present_success))
33213
          return false;
33214
        if (this.success != that.success)
33215
          return false;
33216
      }
33217
 
33218
      return true;
33219
    }
33220
 
33221
    @Override
33222
    public int hashCode() {
33223
      return 0;
33224
    }
33225
 
33226
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
33227
      if (!getClass().equals(other.getClass())) {
33228
        return getClass().getName().compareTo(other.getClass().getName());
33229
      }
33230
 
33231
      int lastComparison = 0;
33232
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
33233
 
33234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33235
      if (lastComparison != 0) {
33236
        return lastComparison;
33237
      }
33238
      if (isSetSuccess()) {
33239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33240
        if (lastComparison != 0) {
33241
          return lastComparison;
33242
        }
33243
      }
33244
      return 0;
33245
    }
33246
 
33247
    public _Fields fieldForId(int fieldId) {
33248
      return _Fields.findByThriftId(fieldId);
33249
    }
33250
 
33251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33252
      org.apache.thrift.protocol.TField field;
33253
      iprot.readStructBegin();
33254
      while (true)
33255
      {
33256
        field = iprot.readFieldBegin();
33257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33258
          break;
33259
        }
33260
        switch (field.id) {
33261
          case 0: // SUCCESS
33262
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33263
              this.success = iprot.readI32();
33264
              setSuccessIsSet(true);
33265
            } else { 
33266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33267
            }
33268
            break;
33269
          default:
33270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33271
        }
33272
        iprot.readFieldEnd();
33273
      }
33274
      iprot.readStructEnd();
33275
      validate();
33276
    }
33277
 
33278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33279
      oprot.writeStructBegin(STRUCT_DESC);
33280
 
33281
      if (this.isSetSuccess()) {
33282
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33283
        oprot.writeI32(this.success);
33284
        oprot.writeFieldEnd();
33285
      }
33286
      oprot.writeFieldStop();
33287
      oprot.writeStructEnd();
33288
    }
33289
 
33290
    @Override
33291
    public String toString() {
33292
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
33293
      boolean first = true;
33294
 
33295
      sb.append("success:");
33296
      sb.append(this.success);
33297
      first = false;
33298
      sb.append(")");
33299
      return sb.toString();
33300
    }
33301
 
33302
    public void validate() throws org.apache.thrift.TException {
33303
      // check for required fields
33304
    }
33305
 
33306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33307
      try {
33308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33309
      } catch (org.apache.thrift.TException te) {
33310
        throw new java.io.IOException(te);
33311
      }
33312
    }
33313
 
33314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33315
      try {
33316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33317
      } catch (org.apache.thrift.TException te) {
33318
        throw new java.io.IOException(te);
33319
      }
33320
    }
33321
 
33322
  }
33323
 
33324
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
33325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
33326
 
33327
    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);
33328
    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);
33329
 
33330
    private int offset; // required
33331
    private int limit; // required
33332
 
33333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33335
      OFFSET((short)1, "offset"),
33336
      LIMIT((short)2, "limit");
33337
 
33338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33339
 
33340
      static {
33341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33342
          byName.put(field.getFieldName(), field);
33343
        }
33344
      }
33345
 
33346
      /**
33347
       * Find the _Fields constant that matches fieldId, or null if its not found.
33348
       */
33349
      public static _Fields findByThriftId(int fieldId) {
33350
        switch(fieldId) {
33351
          case 1: // OFFSET
33352
            return OFFSET;
33353
          case 2: // LIMIT
33354
            return LIMIT;
33355
          default:
33356
            return null;
33357
        }
33358
      }
33359
 
33360
      /**
33361
       * Find the _Fields constant that matches fieldId, throwing an exception
33362
       * if it is not found.
33363
       */
33364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33365
        _Fields fields = findByThriftId(fieldId);
33366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33367
        return fields;
33368
      }
33369
 
33370
      /**
33371
       * Find the _Fields constant that matches name, or null if its not found.
33372
       */
33373
      public static _Fields findByName(String name) {
33374
        return byName.get(name);
33375
      }
33376
 
33377
      private final short _thriftId;
33378
      private final String _fieldName;
33379
 
33380
      _Fields(short thriftId, String fieldName) {
33381
        _thriftId = thriftId;
33382
        _fieldName = fieldName;
33383
      }
33384
 
33385
      public short getThriftFieldId() {
33386
        return _thriftId;
33387
      }
33388
 
33389
      public String getFieldName() {
33390
        return _fieldName;
33391
      }
33392
    }
33393
 
33394
    // isset id assignments
33395
    private static final int __OFFSET_ISSET_ID = 0;
33396
    private static final int __LIMIT_ISSET_ID = 1;
33397
    private BitSet __isset_bit_vector = new BitSet(2);
33398
 
33399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33400
    static {
33401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33402
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33404
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
33408
    }
33409
 
33410
    public getIgnoredInventoryUpdateItemids_args() {
33411
    }
33412
 
33413
    public getIgnoredInventoryUpdateItemids_args(
33414
      int offset,
33415
      int limit)
33416
    {
33417
      this();
33418
      this.offset = offset;
33419
      setOffsetIsSet(true);
33420
      this.limit = limit;
33421
      setLimitIsSet(true);
33422
    }
33423
 
33424
    /**
33425
     * Performs a deep copy on <i>other</i>.
33426
     */
33427
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
33428
      __isset_bit_vector.clear();
33429
      __isset_bit_vector.or(other.__isset_bit_vector);
33430
      this.offset = other.offset;
33431
      this.limit = other.limit;
33432
    }
33433
 
33434
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
33435
      return new getIgnoredInventoryUpdateItemids_args(this);
33436
    }
33437
 
33438
    @Override
33439
    public void clear() {
33440
      setOffsetIsSet(false);
33441
      this.offset = 0;
33442
      setLimitIsSet(false);
33443
      this.limit = 0;
33444
    }
33445
 
33446
    public int getOffset() {
33447
      return this.offset;
33448
    }
33449
 
33450
    public void setOffset(int offset) {
33451
      this.offset = offset;
33452
      setOffsetIsSet(true);
33453
    }
33454
 
33455
    public void unsetOffset() {
33456
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
33457
    }
33458
 
33459
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
33460
    public boolean isSetOffset() {
33461
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
33462
    }
33463
 
33464
    public void setOffsetIsSet(boolean value) {
33465
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
33466
    }
33467
 
33468
    public int getLimit() {
33469
      return this.limit;
33470
    }
33471
 
33472
    public void setLimit(int limit) {
33473
      this.limit = limit;
33474
      setLimitIsSet(true);
33475
    }
33476
 
33477
    public void unsetLimit() {
33478
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
33479
    }
33480
 
33481
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
33482
    public boolean isSetLimit() {
33483
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
33484
    }
33485
 
33486
    public void setLimitIsSet(boolean value) {
33487
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
33488
    }
33489
 
33490
    public void setFieldValue(_Fields field, Object value) {
33491
      switch (field) {
33492
      case OFFSET:
33493
        if (value == null) {
33494
          unsetOffset();
33495
        } else {
33496
          setOffset((Integer)value);
33497
        }
33498
        break;
33499
 
33500
      case LIMIT:
33501
        if (value == null) {
33502
          unsetLimit();
33503
        } else {
33504
          setLimit((Integer)value);
33505
        }
33506
        break;
33507
 
33508
      }
33509
    }
33510
 
33511
    public Object getFieldValue(_Fields field) {
33512
      switch (field) {
33513
      case OFFSET:
33514
        return Integer.valueOf(getOffset());
33515
 
33516
      case LIMIT:
33517
        return Integer.valueOf(getLimit());
33518
 
33519
      }
33520
      throw new IllegalStateException();
33521
    }
33522
 
33523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33524
    public boolean isSet(_Fields field) {
33525
      if (field == null) {
33526
        throw new IllegalArgumentException();
33527
      }
33528
 
33529
      switch (field) {
33530
      case OFFSET:
33531
        return isSetOffset();
33532
      case LIMIT:
33533
        return isSetLimit();
33534
      }
33535
      throw new IllegalStateException();
33536
    }
33537
 
33538
    @Override
33539
    public boolean equals(Object that) {
33540
      if (that == null)
33541
        return false;
33542
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
33543
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
33544
      return false;
33545
    }
33546
 
33547
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
33548
      if (that == null)
33549
        return false;
33550
 
33551
      boolean this_present_offset = true;
33552
      boolean that_present_offset = true;
33553
      if (this_present_offset || that_present_offset) {
33554
        if (!(this_present_offset && that_present_offset))
33555
          return false;
33556
        if (this.offset != that.offset)
33557
          return false;
33558
      }
33559
 
33560
      boolean this_present_limit = true;
33561
      boolean that_present_limit = true;
33562
      if (this_present_limit || that_present_limit) {
33563
        if (!(this_present_limit && that_present_limit))
33564
          return false;
33565
        if (this.limit != that.limit)
33566
          return false;
33567
      }
33568
 
33569
      return true;
33570
    }
33571
 
33572
    @Override
33573
    public int hashCode() {
33574
      return 0;
33575
    }
33576
 
33577
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
33578
      if (!getClass().equals(other.getClass())) {
33579
        return getClass().getName().compareTo(other.getClass().getName());
33580
      }
33581
 
33582
      int lastComparison = 0;
33583
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
33584
 
33585
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
33586
      if (lastComparison != 0) {
33587
        return lastComparison;
33588
      }
33589
      if (isSetOffset()) {
33590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
33591
        if (lastComparison != 0) {
33592
          return lastComparison;
33593
        }
33594
      }
33595
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
33596
      if (lastComparison != 0) {
33597
        return lastComparison;
33598
      }
33599
      if (isSetLimit()) {
33600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
33601
        if (lastComparison != 0) {
33602
          return lastComparison;
33603
        }
33604
      }
33605
      return 0;
33606
    }
33607
 
33608
    public _Fields fieldForId(int fieldId) {
33609
      return _Fields.findByThriftId(fieldId);
33610
    }
33611
 
33612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33613
      org.apache.thrift.protocol.TField field;
33614
      iprot.readStructBegin();
33615
      while (true)
33616
      {
33617
        field = iprot.readFieldBegin();
33618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33619
          break;
33620
        }
33621
        switch (field.id) {
33622
          case 1: // OFFSET
33623
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33624
              this.offset = iprot.readI32();
33625
              setOffsetIsSet(true);
33626
            } else { 
33627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33628
            }
33629
            break;
33630
          case 2: // LIMIT
33631
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33632
              this.limit = iprot.readI32();
33633
              setLimitIsSet(true);
33634
            } else { 
33635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33636
            }
33637
            break;
33638
          default:
33639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33640
        }
33641
        iprot.readFieldEnd();
33642
      }
33643
      iprot.readStructEnd();
33644
      validate();
33645
    }
33646
 
33647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33648
      validate();
33649
 
33650
      oprot.writeStructBegin(STRUCT_DESC);
33651
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
33652
      oprot.writeI32(this.offset);
33653
      oprot.writeFieldEnd();
33654
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
33655
      oprot.writeI32(this.limit);
33656
      oprot.writeFieldEnd();
33657
      oprot.writeFieldStop();
33658
      oprot.writeStructEnd();
33659
    }
33660
 
33661
    @Override
33662
    public String toString() {
33663
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
33664
      boolean first = true;
33665
 
33666
      sb.append("offset:");
33667
      sb.append(this.offset);
33668
      first = false;
33669
      if (!first) sb.append(", ");
33670
      sb.append("limit:");
33671
      sb.append(this.limit);
33672
      first = false;
33673
      sb.append(")");
33674
      return sb.toString();
33675
    }
33676
 
33677
    public void validate() throws org.apache.thrift.TException {
33678
      // check for required fields
33679
    }
33680
 
33681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33682
      try {
33683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33684
      } catch (org.apache.thrift.TException te) {
33685
        throw new java.io.IOException(te);
33686
      }
33687
    }
33688
 
33689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33690
      try {
33691
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33692
        __isset_bit_vector = new BitSet(1);
33693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33694
      } catch (org.apache.thrift.TException te) {
33695
        throw new java.io.IOException(te);
33696
      }
33697
    }
33698
 
33699
  }
33700
 
33701
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
33702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
33703
 
33704
    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);
33705
 
33706
    private List<Long> success; // required
33707
 
33708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33710
      SUCCESS((short)0, "success");
33711
 
33712
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33713
 
33714
      static {
33715
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33716
          byName.put(field.getFieldName(), field);
33717
        }
33718
      }
33719
 
33720
      /**
33721
       * Find the _Fields constant that matches fieldId, or null if its not found.
33722
       */
33723
      public static _Fields findByThriftId(int fieldId) {
33724
        switch(fieldId) {
33725
          case 0: // SUCCESS
33726
            return SUCCESS;
33727
          default:
33728
            return null;
33729
        }
33730
      }
33731
 
33732
      /**
33733
       * Find the _Fields constant that matches fieldId, throwing an exception
33734
       * if it is not found.
33735
       */
33736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33737
        _Fields fields = findByThriftId(fieldId);
33738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33739
        return fields;
33740
      }
33741
 
33742
      /**
33743
       * Find the _Fields constant that matches name, or null if its not found.
33744
       */
33745
      public static _Fields findByName(String name) {
33746
        return byName.get(name);
33747
      }
33748
 
33749
      private final short _thriftId;
33750
      private final String _fieldName;
33751
 
33752
      _Fields(short thriftId, String fieldName) {
33753
        _thriftId = thriftId;
33754
        _fieldName = fieldName;
33755
      }
33756
 
33757
      public short getThriftFieldId() {
33758
        return _thriftId;
33759
      }
33760
 
33761
      public String getFieldName() {
33762
        return _fieldName;
33763
      }
33764
    }
33765
 
33766
    // isset id assignments
33767
 
33768
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33769
    static {
33770
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33771
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33772
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33773
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33774
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33775
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
33776
    }
33777
 
33778
    public getIgnoredInventoryUpdateItemids_result() {
33779
    }
33780
 
33781
    public getIgnoredInventoryUpdateItemids_result(
33782
      List<Long> success)
33783
    {
33784
      this();
33785
      this.success = success;
33786
    }
33787
 
33788
    /**
33789
     * Performs a deep copy on <i>other</i>.
33790
     */
33791
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
33792
      if (other.isSetSuccess()) {
33793
        List<Long> __this__success = new ArrayList<Long>();
33794
        for (Long other_element : other.success) {
33795
          __this__success.add(other_element);
33796
        }
33797
        this.success = __this__success;
33798
      }
33799
    }
33800
 
33801
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
33802
      return new getIgnoredInventoryUpdateItemids_result(this);
33803
    }
33804
 
33805
    @Override
33806
    public void clear() {
33807
      this.success = null;
33808
    }
33809
 
33810
    public int getSuccessSize() {
33811
      return (this.success == null) ? 0 : this.success.size();
33812
    }
33813
 
33814
    public java.util.Iterator<Long> getSuccessIterator() {
33815
      return (this.success == null) ? null : this.success.iterator();
33816
    }
33817
 
33818
    public void addToSuccess(long elem) {
33819
      if (this.success == null) {
33820
        this.success = new ArrayList<Long>();
33821
      }
33822
      this.success.add(elem);
33823
    }
33824
 
33825
    public List<Long> getSuccess() {
33826
      return this.success;
33827
    }
33828
 
33829
    public void setSuccess(List<Long> success) {
33830
      this.success = success;
33831
    }
33832
 
33833
    public void unsetSuccess() {
33834
      this.success = null;
33835
    }
33836
 
33837
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33838
    public boolean isSetSuccess() {
33839
      return this.success != null;
33840
    }
33841
 
33842
    public void setSuccessIsSet(boolean value) {
33843
      if (!value) {
33844
        this.success = null;
33845
      }
33846
    }
33847
 
33848
    public void setFieldValue(_Fields field, Object value) {
33849
      switch (field) {
33850
      case SUCCESS:
33851
        if (value == null) {
33852
          unsetSuccess();
33853
        } else {
33854
          setSuccess((List<Long>)value);
33855
        }
33856
        break;
33857
 
33858
      }
33859
    }
33860
 
33861
    public Object getFieldValue(_Fields field) {
33862
      switch (field) {
33863
      case SUCCESS:
33864
        return getSuccess();
33865
 
33866
      }
33867
      throw new IllegalStateException();
33868
    }
33869
 
33870
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33871
    public boolean isSet(_Fields field) {
33872
      if (field == null) {
33873
        throw new IllegalArgumentException();
33874
      }
33875
 
33876
      switch (field) {
33877
      case SUCCESS:
33878
        return isSetSuccess();
33879
      }
33880
      throw new IllegalStateException();
33881
    }
33882
 
33883
    @Override
33884
    public boolean equals(Object that) {
33885
      if (that == null)
33886
        return false;
33887
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
33888
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
33889
      return false;
33890
    }
33891
 
33892
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
33893
      if (that == null)
33894
        return false;
33895
 
33896
      boolean this_present_success = true && this.isSetSuccess();
33897
      boolean that_present_success = true && that.isSetSuccess();
33898
      if (this_present_success || that_present_success) {
33899
        if (!(this_present_success && that_present_success))
33900
          return false;
33901
        if (!this.success.equals(that.success))
33902
          return false;
33903
      }
33904
 
33905
      return true;
33906
    }
33907
 
33908
    @Override
33909
    public int hashCode() {
33910
      return 0;
33911
    }
33912
 
33913
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
33914
      if (!getClass().equals(other.getClass())) {
33915
        return getClass().getName().compareTo(other.getClass().getName());
33916
      }
33917
 
33918
      int lastComparison = 0;
33919
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
33920
 
33921
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33922
      if (lastComparison != 0) {
33923
        return lastComparison;
33924
      }
33925
      if (isSetSuccess()) {
33926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33927
        if (lastComparison != 0) {
33928
          return lastComparison;
33929
        }
33930
      }
33931
      return 0;
33932
    }
33933
 
33934
    public _Fields fieldForId(int fieldId) {
33935
      return _Fields.findByThriftId(fieldId);
33936
    }
33937
 
33938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33939
      org.apache.thrift.protocol.TField field;
33940
      iprot.readStructBegin();
33941
      while (true)
33942
      {
33943
        field = iprot.readFieldBegin();
33944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33945
          break;
33946
        }
33947
        switch (field.id) {
33948
          case 0: // SUCCESS
33949
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33950
              {
33951
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
33952
                this.success = new ArrayList<Long>(_list100.size);
33953
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
33954
                {
33955
                  long _elem102; // required
33956
                  _elem102 = iprot.readI64();
33957
                  this.success.add(_elem102);
33958
                }
33959
                iprot.readListEnd();
33960
              }
33961
            } else { 
33962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33963
            }
33964
            break;
33965
          default:
33966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33967
        }
33968
        iprot.readFieldEnd();
33969
      }
33970
      iprot.readStructEnd();
33971
      validate();
33972
    }
33973
 
33974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33975
      oprot.writeStructBegin(STRUCT_DESC);
33976
 
33977
      if (this.isSetSuccess()) {
33978
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33979
        {
33980
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
33981
          for (long _iter103 : this.success)
33982
          {
33983
            oprot.writeI64(_iter103);
33984
          }
33985
          oprot.writeListEnd();
33986
        }
33987
        oprot.writeFieldEnd();
33988
      }
33989
      oprot.writeFieldStop();
33990
      oprot.writeStructEnd();
33991
    }
33992
 
33993
    @Override
33994
    public String toString() {
33995
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
33996
      boolean first = true;
33997
 
33998
      sb.append("success:");
33999
      if (this.success == null) {
34000
        sb.append("null");
34001
      } else {
34002
        sb.append(this.success);
34003
      }
34004
      first = false;
34005
      sb.append(")");
34006
      return sb.toString();
34007
    }
34008
 
34009
    public void validate() throws org.apache.thrift.TException {
34010
      // check for required fields
34011
    }
34012
 
34013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34014
      try {
34015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34016
      } catch (org.apache.thrift.TException te) {
34017
        throw new java.io.IOException(te);
34018
      }
34019
    }
34020
 
34021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34022
      try {
34023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34024
      } catch (org.apache.thrift.TException te) {
34025
        throw new java.io.IOException(te);
34026
      }
34027
    }
34028
 
34029
  }
34030
 
6821 amar.kumar 34031
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
34032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
34033
 
34034
    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);
34035
    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);
34036
    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);
34037
 
34038
    private long item_id; // required
34039
    private int numOfDaysStock; // required
34040
    private long minStockLevel; // required
34041
 
34042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34044
      ITEM_ID((short)1, "item_id"),
34045
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
34046
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
34047
 
34048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34049
 
34050
      static {
34051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34052
          byName.put(field.getFieldName(), field);
34053
        }
34054
      }
34055
 
34056
      /**
34057
       * Find the _Fields constant that matches fieldId, or null if its not found.
34058
       */
34059
      public static _Fields findByThriftId(int fieldId) {
34060
        switch(fieldId) {
34061
          case 1: // ITEM_ID
34062
            return ITEM_ID;
34063
          case 2: // NUM_OF_DAYS_STOCK
34064
            return NUM_OF_DAYS_STOCK;
34065
          case 3: // MIN_STOCK_LEVEL
34066
            return MIN_STOCK_LEVEL;
34067
          default:
34068
            return null;
34069
        }
34070
      }
34071
 
34072
      /**
34073
       * Find the _Fields constant that matches fieldId, throwing an exception
34074
       * if it is not found.
34075
       */
34076
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34077
        _Fields fields = findByThriftId(fieldId);
34078
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34079
        return fields;
34080
      }
34081
 
34082
      /**
34083
       * Find the _Fields constant that matches name, or null if its not found.
34084
       */
34085
      public static _Fields findByName(String name) {
34086
        return byName.get(name);
34087
      }
34088
 
34089
      private final short _thriftId;
34090
      private final String _fieldName;
34091
 
34092
      _Fields(short thriftId, String fieldName) {
34093
        _thriftId = thriftId;
34094
        _fieldName = fieldName;
34095
      }
34096
 
34097
      public short getThriftFieldId() {
34098
        return _thriftId;
34099
      }
34100
 
34101
      public String getFieldName() {
34102
        return _fieldName;
34103
      }
34104
    }
34105
 
34106
    // isset id assignments
34107
    private static final int __ITEM_ID_ISSET_ID = 0;
34108
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
34109
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
34110
    private BitSet __isset_bit_vector = new BitSet(3);
34111
 
34112
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34113
    static {
34114
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34115
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34117
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
34119
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
34123
    }
34124
 
34125
    public updateItemStockPurchaseParams_args() {
34126
    }
34127
 
34128
    public updateItemStockPurchaseParams_args(
34129
      long item_id,
34130
      int numOfDaysStock,
34131
      long minStockLevel)
34132
    {
34133
      this();
34134
      this.item_id = item_id;
34135
      setItem_idIsSet(true);
34136
      this.numOfDaysStock = numOfDaysStock;
34137
      setNumOfDaysStockIsSet(true);
34138
      this.minStockLevel = minStockLevel;
34139
      setMinStockLevelIsSet(true);
34140
    }
34141
 
34142
    /**
34143
     * Performs a deep copy on <i>other</i>.
34144
     */
34145
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
34146
      __isset_bit_vector.clear();
34147
      __isset_bit_vector.or(other.__isset_bit_vector);
34148
      this.item_id = other.item_id;
34149
      this.numOfDaysStock = other.numOfDaysStock;
34150
      this.minStockLevel = other.minStockLevel;
34151
    }
34152
 
34153
    public updateItemStockPurchaseParams_args deepCopy() {
34154
      return new updateItemStockPurchaseParams_args(this);
34155
    }
34156
 
34157
    @Override
34158
    public void clear() {
34159
      setItem_idIsSet(false);
34160
      this.item_id = 0;
34161
      setNumOfDaysStockIsSet(false);
34162
      this.numOfDaysStock = 0;
34163
      setMinStockLevelIsSet(false);
34164
      this.minStockLevel = 0;
34165
    }
34166
 
34167
    public long getItem_id() {
34168
      return this.item_id;
34169
    }
34170
 
34171
    public void setItem_id(long item_id) {
34172
      this.item_id = item_id;
34173
      setItem_idIsSet(true);
34174
    }
34175
 
34176
    public void unsetItem_id() {
34177
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
34178
    }
34179
 
34180
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
34181
    public boolean isSetItem_id() {
34182
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
34183
    }
34184
 
34185
    public void setItem_idIsSet(boolean value) {
34186
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
34187
    }
34188
 
34189
    public int getNumOfDaysStock() {
34190
      return this.numOfDaysStock;
34191
    }
34192
 
34193
    public void setNumOfDaysStock(int numOfDaysStock) {
34194
      this.numOfDaysStock = numOfDaysStock;
34195
      setNumOfDaysStockIsSet(true);
34196
    }
34197
 
34198
    public void unsetNumOfDaysStock() {
34199
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
34200
    }
34201
 
34202
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
34203
    public boolean isSetNumOfDaysStock() {
34204
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
34205
    }
34206
 
34207
    public void setNumOfDaysStockIsSet(boolean value) {
34208
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
34209
    }
34210
 
34211
    public long getMinStockLevel() {
34212
      return this.minStockLevel;
34213
    }
34214
 
34215
    public void setMinStockLevel(long minStockLevel) {
34216
      this.minStockLevel = minStockLevel;
34217
      setMinStockLevelIsSet(true);
34218
    }
34219
 
34220
    public void unsetMinStockLevel() {
34221
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
34222
    }
34223
 
34224
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
34225
    public boolean isSetMinStockLevel() {
34226
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
34227
    }
34228
 
34229
    public void setMinStockLevelIsSet(boolean value) {
34230
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
34231
    }
34232
 
34233
    public void setFieldValue(_Fields field, Object value) {
34234
      switch (field) {
34235
      case ITEM_ID:
34236
        if (value == null) {
34237
          unsetItem_id();
34238
        } else {
34239
          setItem_id((Long)value);
34240
        }
34241
        break;
34242
 
34243
      case NUM_OF_DAYS_STOCK:
34244
        if (value == null) {
34245
          unsetNumOfDaysStock();
34246
        } else {
34247
          setNumOfDaysStock((Integer)value);
34248
        }
34249
        break;
34250
 
34251
      case MIN_STOCK_LEVEL:
34252
        if (value == null) {
34253
          unsetMinStockLevel();
34254
        } else {
34255
          setMinStockLevel((Long)value);
34256
        }
34257
        break;
34258
 
34259
      }
34260
    }
34261
 
34262
    public Object getFieldValue(_Fields field) {
34263
      switch (field) {
34264
      case ITEM_ID:
34265
        return Long.valueOf(getItem_id());
34266
 
34267
      case NUM_OF_DAYS_STOCK:
34268
        return Integer.valueOf(getNumOfDaysStock());
34269
 
34270
      case MIN_STOCK_LEVEL:
34271
        return Long.valueOf(getMinStockLevel());
34272
 
34273
      }
34274
      throw new IllegalStateException();
34275
    }
34276
 
34277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34278
    public boolean isSet(_Fields field) {
34279
      if (field == null) {
34280
        throw new IllegalArgumentException();
34281
      }
34282
 
34283
      switch (field) {
34284
      case ITEM_ID:
34285
        return isSetItem_id();
34286
      case NUM_OF_DAYS_STOCK:
34287
        return isSetNumOfDaysStock();
34288
      case MIN_STOCK_LEVEL:
34289
        return isSetMinStockLevel();
34290
      }
34291
      throw new IllegalStateException();
34292
    }
34293
 
34294
    @Override
34295
    public boolean equals(Object that) {
34296
      if (that == null)
34297
        return false;
34298
      if (that instanceof updateItemStockPurchaseParams_args)
34299
        return this.equals((updateItemStockPurchaseParams_args)that);
34300
      return false;
34301
    }
34302
 
34303
    public boolean equals(updateItemStockPurchaseParams_args that) {
34304
      if (that == null)
34305
        return false;
34306
 
34307
      boolean this_present_item_id = true;
34308
      boolean that_present_item_id = true;
34309
      if (this_present_item_id || that_present_item_id) {
34310
        if (!(this_present_item_id && that_present_item_id))
34311
          return false;
34312
        if (this.item_id != that.item_id)
34313
          return false;
34314
      }
34315
 
34316
      boolean this_present_numOfDaysStock = true;
34317
      boolean that_present_numOfDaysStock = true;
34318
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
34319
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
34320
          return false;
34321
        if (this.numOfDaysStock != that.numOfDaysStock)
34322
          return false;
34323
      }
34324
 
34325
      boolean this_present_minStockLevel = true;
34326
      boolean that_present_minStockLevel = true;
34327
      if (this_present_minStockLevel || that_present_minStockLevel) {
34328
        if (!(this_present_minStockLevel && that_present_minStockLevel))
34329
          return false;
34330
        if (this.minStockLevel != that.minStockLevel)
34331
          return false;
34332
      }
34333
 
34334
      return true;
34335
    }
34336
 
34337
    @Override
34338
    public int hashCode() {
34339
      return 0;
34340
    }
34341
 
34342
    public int compareTo(updateItemStockPurchaseParams_args other) {
34343
      if (!getClass().equals(other.getClass())) {
34344
        return getClass().getName().compareTo(other.getClass().getName());
34345
      }
34346
 
34347
      int lastComparison = 0;
34348
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
34349
 
34350
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
34351
      if (lastComparison != 0) {
34352
        return lastComparison;
34353
      }
34354
      if (isSetItem_id()) {
34355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
34356
        if (lastComparison != 0) {
34357
          return lastComparison;
34358
        }
34359
      }
34360
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
34361
      if (lastComparison != 0) {
34362
        return lastComparison;
34363
      }
34364
      if (isSetNumOfDaysStock()) {
34365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
34366
        if (lastComparison != 0) {
34367
          return lastComparison;
34368
        }
34369
      }
34370
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
34371
      if (lastComparison != 0) {
34372
        return lastComparison;
34373
      }
34374
      if (isSetMinStockLevel()) {
34375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
34376
        if (lastComparison != 0) {
34377
          return lastComparison;
34378
        }
34379
      }
34380
      return 0;
34381
    }
34382
 
34383
    public _Fields fieldForId(int fieldId) {
34384
      return _Fields.findByThriftId(fieldId);
34385
    }
34386
 
34387
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34388
      org.apache.thrift.protocol.TField field;
34389
      iprot.readStructBegin();
34390
      while (true)
34391
      {
34392
        field = iprot.readFieldBegin();
34393
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34394
          break;
34395
        }
34396
        switch (field.id) {
34397
          case 1: // ITEM_ID
34398
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34399
              this.item_id = iprot.readI64();
34400
              setItem_idIsSet(true);
34401
            } else { 
34402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34403
            }
34404
            break;
34405
          case 2: // NUM_OF_DAYS_STOCK
34406
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34407
              this.numOfDaysStock = iprot.readI32();
34408
              setNumOfDaysStockIsSet(true);
34409
            } else { 
34410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34411
            }
34412
            break;
34413
          case 3: // MIN_STOCK_LEVEL
34414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34415
              this.minStockLevel = iprot.readI64();
34416
              setMinStockLevelIsSet(true);
34417
            } else { 
34418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34419
            }
34420
            break;
34421
          default:
34422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34423
        }
34424
        iprot.readFieldEnd();
34425
      }
34426
      iprot.readStructEnd();
34427
      validate();
34428
    }
34429
 
34430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34431
      validate();
34432
 
34433
      oprot.writeStructBegin(STRUCT_DESC);
34434
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
34435
      oprot.writeI64(this.item_id);
34436
      oprot.writeFieldEnd();
34437
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
34438
      oprot.writeI32(this.numOfDaysStock);
34439
      oprot.writeFieldEnd();
34440
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
34441
      oprot.writeI64(this.minStockLevel);
34442
      oprot.writeFieldEnd();
34443
      oprot.writeFieldStop();
34444
      oprot.writeStructEnd();
34445
    }
34446
 
34447
    @Override
34448
    public String toString() {
34449
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
34450
      boolean first = true;
34451
 
34452
      sb.append("item_id:");
34453
      sb.append(this.item_id);
34454
      first = false;
34455
      if (!first) sb.append(", ");
34456
      sb.append("numOfDaysStock:");
34457
      sb.append(this.numOfDaysStock);
34458
      first = false;
34459
      if (!first) sb.append(", ");
34460
      sb.append("minStockLevel:");
34461
      sb.append(this.minStockLevel);
34462
      first = false;
34463
      sb.append(")");
34464
      return sb.toString();
34465
    }
34466
 
34467
    public void validate() throws org.apache.thrift.TException {
34468
      // check for required fields
34469
    }
34470
 
34471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34472
      try {
34473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34474
      } catch (org.apache.thrift.TException te) {
34475
        throw new java.io.IOException(te);
34476
      }
34477
    }
34478
 
34479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34480
      try {
34481
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34482
        __isset_bit_vector = new BitSet(1);
34483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34484
      } catch (org.apache.thrift.TException te) {
34485
        throw new java.io.IOException(te);
34486
      }
34487
    }
34488
 
34489
  }
34490
 
34491
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
34492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
34493
 
34494
 
34495
 
34496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34498
;
34499
 
34500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34501
 
34502
      static {
34503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34504
          byName.put(field.getFieldName(), field);
34505
        }
34506
      }
34507
 
34508
      /**
34509
       * Find the _Fields constant that matches fieldId, or null if its not found.
34510
       */
34511
      public static _Fields findByThriftId(int fieldId) {
34512
        switch(fieldId) {
34513
          default:
34514
            return null;
34515
        }
34516
      }
34517
 
34518
      /**
34519
       * Find the _Fields constant that matches fieldId, throwing an exception
34520
       * if it is not found.
34521
       */
34522
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34523
        _Fields fields = findByThriftId(fieldId);
34524
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34525
        return fields;
34526
      }
34527
 
34528
      /**
34529
       * Find the _Fields constant that matches name, or null if its not found.
34530
       */
34531
      public static _Fields findByName(String name) {
34532
        return byName.get(name);
34533
      }
34534
 
34535
      private final short _thriftId;
34536
      private final String _fieldName;
34537
 
34538
      _Fields(short thriftId, String fieldName) {
34539
        _thriftId = thriftId;
34540
        _fieldName = fieldName;
34541
      }
34542
 
34543
      public short getThriftFieldId() {
34544
        return _thriftId;
34545
      }
34546
 
34547
      public String getFieldName() {
34548
        return _fieldName;
34549
      }
34550
    }
34551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34552
    static {
34553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34554
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34555
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
34556
    }
34557
 
34558
    public updateItemStockPurchaseParams_result() {
34559
    }
34560
 
34561
    /**
34562
     * Performs a deep copy on <i>other</i>.
34563
     */
34564
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
34565
    }
34566
 
34567
    public updateItemStockPurchaseParams_result deepCopy() {
34568
      return new updateItemStockPurchaseParams_result(this);
34569
    }
34570
 
34571
    @Override
34572
    public void clear() {
34573
    }
34574
 
34575
    public void setFieldValue(_Fields field, Object value) {
34576
      switch (field) {
34577
      }
34578
    }
34579
 
34580
    public Object getFieldValue(_Fields field) {
34581
      switch (field) {
34582
      }
34583
      throw new IllegalStateException();
34584
    }
34585
 
34586
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34587
    public boolean isSet(_Fields field) {
34588
      if (field == null) {
34589
        throw new IllegalArgumentException();
34590
      }
34591
 
34592
      switch (field) {
34593
      }
34594
      throw new IllegalStateException();
34595
    }
34596
 
34597
    @Override
34598
    public boolean equals(Object that) {
34599
      if (that == null)
34600
        return false;
34601
      if (that instanceof updateItemStockPurchaseParams_result)
34602
        return this.equals((updateItemStockPurchaseParams_result)that);
34603
      return false;
34604
    }
34605
 
34606
    public boolean equals(updateItemStockPurchaseParams_result that) {
34607
      if (that == null)
34608
        return false;
34609
 
34610
      return true;
34611
    }
34612
 
34613
    @Override
34614
    public int hashCode() {
34615
      return 0;
34616
    }
34617
 
34618
    public int compareTo(updateItemStockPurchaseParams_result other) {
34619
      if (!getClass().equals(other.getClass())) {
34620
        return getClass().getName().compareTo(other.getClass().getName());
34621
      }
34622
 
34623
      int lastComparison = 0;
34624
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
34625
 
34626
      return 0;
34627
    }
34628
 
34629
    public _Fields fieldForId(int fieldId) {
34630
      return _Fields.findByThriftId(fieldId);
34631
    }
34632
 
34633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34634
      org.apache.thrift.protocol.TField field;
34635
      iprot.readStructBegin();
34636
      while (true)
34637
      {
34638
        field = iprot.readFieldBegin();
34639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34640
          break;
34641
        }
34642
        switch (field.id) {
34643
          default:
34644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34645
        }
34646
        iprot.readFieldEnd();
34647
      }
34648
      iprot.readStructEnd();
34649
      validate();
34650
    }
34651
 
34652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34653
      oprot.writeStructBegin(STRUCT_DESC);
34654
 
34655
      oprot.writeFieldStop();
34656
      oprot.writeStructEnd();
34657
    }
34658
 
34659
    @Override
34660
    public String toString() {
34661
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
34662
      boolean first = true;
34663
 
34664
      sb.append(")");
34665
      return sb.toString();
34666
    }
34667
 
34668
    public void validate() throws org.apache.thrift.TException {
34669
      // check for required fields
34670
    }
34671
 
34672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34673
      try {
34674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34675
      } catch (org.apache.thrift.TException te) {
34676
        throw new java.io.IOException(te);
34677
      }
34678
    }
34679
 
34680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34681
      try {
34682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34683
      } catch (org.apache.thrift.TException te) {
34684
        throw new java.io.IOException(te);
34685
      }
34686
    }
34687
 
34688
  }
34689
 
34690
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
34691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
34692
 
34693
    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);
34694
 
34695
    private long itemId; // required
34696
 
34697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34699
      ITEM_ID((short)1, "itemId");
34700
 
34701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34702
 
34703
      static {
34704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34705
          byName.put(field.getFieldName(), field);
34706
        }
34707
      }
34708
 
34709
      /**
34710
       * Find the _Fields constant that matches fieldId, or null if its not found.
34711
       */
34712
      public static _Fields findByThriftId(int fieldId) {
34713
        switch(fieldId) {
34714
          case 1: // ITEM_ID
34715
            return ITEM_ID;
34716
          default:
34717
            return null;
34718
        }
34719
      }
34720
 
34721
      /**
34722
       * Find the _Fields constant that matches fieldId, throwing an exception
34723
       * if it is not found.
34724
       */
34725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34726
        _Fields fields = findByThriftId(fieldId);
34727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34728
        return fields;
34729
      }
34730
 
34731
      /**
34732
       * Find the _Fields constant that matches name, or null if its not found.
34733
       */
34734
      public static _Fields findByName(String name) {
34735
        return byName.get(name);
34736
      }
34737
 
34738
      private final short _thriftId;
34739
      private final String _fieldName;
34740
 
34741
      _Fields(short thriftId, String fieldName) {
34742
        _thriftId = thriftId;
34743
        _fieldName = fieldName;
34744
      }
34745
 
34746
      public short getThriftFieldId() {
34747
        return _thriftId;
34748
      }
34749
 
34750
      public String getFieldName() {
34751
        return _fieldName;
34752
      }
34753
    }
34754
 
34755
    // isset id assignments
34756
    private static final int __ITEMID_ISSET_ID = 0;
34757
    private BitSet __isset_bit_vector = new BitSet(1);
34758
 
34759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34760
    static {
34761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34762
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
34766
    }
34767
 
34768
    public getItemStockPurchaseParams_args() {
34769
    }
34770
 
34771
    public getItemStockPurchaseParams_args(
34772
      long itemId)
34773
    {
34774
      this();
34775
      this.itemId = itemId;
34776
      setItemIdIsSet(true);
34777
    }
34778
 
34779
    /**
34780
     * Performs a deep copy on <i>other</i>.
34781
     */
34782
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
34783
      __isset_bit_vector.clear();
34784
      __isset_bit_vector.or(other.__isset_bit_vector);
34785
      this.itemId = other.itemId;
34786
    }
34787
 
34788
    public getItemStockPurchaseParams_args deepCopy() {
34789
      return new getItemStockPurchaseParams_args(this);
34790
    }
34791
 
34792
    @Override
34793
    public void clear() {
34794
      setItemIdIsSet(false);
34795
      this.itemId = 0;
34796
    }
34797
 
34798
    public long getItemId() {
34799
      return this.itemId;
34800
    }
34801
 
34802
    public void setItemId(long itemId) {
34803
      this.itemId = itemId;
34804
      setItemIdIsSet(true);
34805
    }
34806
 
34807
    public void unsetItemId() {
34808
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
34809
    }
34810
 
34811
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
34812
    public boolean isSetItemId() {
34813
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
34814
    }
34815
 
34816
    public void setItemIdIsSet(boolean value) {
34817
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
34818
    }
34819
 
34820
    public void setFieldValue(_Fields field, Object value) {
34821
      switch (field) {
34822
      case ITEM_ID:
34823
        if (value == null) {
34824
          unsetItemId();
34825
        } else {
34826
          setItemId((Long)value);
34827
        }
34828
        break;
34829
 
34830
      }
34831
    }
34832
 
34833
    public Object getFieldValue(_Fields field) {
34834
      switch (field) {
34835
      case ITEM_ID:
34836
        return Long.valueOf(getItemId());
34837
 
34838
      }
34839
      throw new IllegalStateException();
34840
    }
34841
 
34842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34843
    public boolean isSet(_Fields field) {
34844
      if (field == null) {
34845
        throw new IllegalArgumentException();
34846
      }
34847
 
34848
      switch (field) {
34849
      case ITEM_ID:
34850
        return isSetItemId();
34851
      }
34852
      throw new IllegalStateException();
34853
    }
34854
 
34855
    @Override
34856
    public boolean equals(Object that) {
34857
      if (that == null)
34858
        return false;
34859
      if (that instanceof getItemStockPurchaseParams_args)
34860
        return this.equals((getItemStockPurchaseParams_args)that);
34861
      return false;
34862
    }
34863
 
34864
    public boolean equals(getItemStockPurchaseParams_args that) {
34865
      if (that == null)
34866
        return false;
34867
 
34868
      boolean this_present_itemId = true;
34869
      boolean that_present_itemId = true;
34870
      if (this_present_itemId || that_present_itemId) {
34871
        if (!(this_present_itemId && that_present_itemId))
34872
          return false;
34873
        if (this.itemId != that.itemId)
34874
          return false;
34875
      }
34876
 
34877
      return true;
34878
    }
34879
 
34880
    @Override
34881
    public int hashCode() {
34882
      return 0;
34883
    }
34884
 
34885
    public int compareTo(getItemStockPurchaseParams_args other) {
34886
      if (!getClass().equals(other.getClass())) {
34887
        return getClass().getName().compareTo(other.getClass().getName());
34888
      }
34889
 
34890
      int lastComparison = 0;
34891
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
34892
 
34893
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
34894
      if (lastComparison != 0) {
34895
        return lastComparison;
34896
      }
34897
      if (isSetItemId()) {
34898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
34899
        if (lastComparison != 0) {
34900
          return lastComparison;
34901
        }
34902
      }
34903
      return 0;
34904
    }
34905
 
34906
    public _Fields fieldForId(int fieldId) {
34907
      return _Fields.findByThriftId(fieldId);
34908
    }
34909
 
34910
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34911
      org.apache.thrift.protocol.TField field;
34912
      iprot.readStructBegin();
34913
      while (true)
34914
      {
34915
        field = iprot.readFieldBegin();
34916
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34917
          break;
34918
        }
34919
        switch (field.id) {
34920
          case 1: // ITEM_ID
34921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34922
              this.itemId = iprot.readI64();
34923
              setItemIdIsSet(true);
34924
            } else { 
34925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34926
            }
34927
            break;
34928
          default:
34929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34930
        }
34931
        iprot.readFieldEnd();
34932
      }
34933
      iprot.readStructEnd();
34934
      validate();
34935
    }
34936
 
34937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34938
      validate();
34939
 
34940
      oprot.writeStructBegin(STRUCT_DESC);
34941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
34942
      oprot.writeI64(this.itemId);
34943
      oprot.writeFieldEnd();
34944
      oprot.writeFieldStop();
34945
      oprot.writeStructEnd();
34946
    }
34947
 
34948
    @Override
34949
    public String toString() {
34950
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
34951
      boolean first = true;
34952
 
34953
      sb.append("itemId:");
34954
      sb.append(this.itemId);
34955
      first = false;
34956
      sb.append(")");
34957
      return sb.toString();
34958
    }
34959
 
34960
    public void validate() throws org.apache.thrift.TException {
34961
      // check for required fields
34962
    }
34963
 
34964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34965
      try {
34966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34967
      } catch (org.apache.thrift.TException te) {
34968
        throw new java.io.IOException(te);
34969
      }
34970
    }
34971
 
34972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34973
      try {
34974
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34975
        __isset_bit_vector = new BitSet(1);
34976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34977
      } catch (org.apache.thrift.TException te) {
34978
        throw new java.io.IOException(te);
34979
      }
34980
    }
34981
 
34982
  }
34983
 
34984
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
34985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
34986
 
34987
    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);
34988
 
34989
    private ItemStockPurchaseParams success; // required
34990
 
34991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34993
      SUCCESS((short)0, "success");
34994
 
34995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34996
 
34997
      static {
34998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34999
          byName.put(field.getFieldName(), field);
35000
        }
35001
      }
35002
 
35003
      /**
35004
       * Find the _Fields constant that matches fieldId, or null if its not found.
35005
       */
35006
      public static _Fields findByThriftId(int fieldId) {
35007
        switch(fieldId) {
35008
          case 0: // SUCCESS
35009
            return SUCCESS;
35010
          default:
35011
            return null;
35012
        }
35013
      }
35014
 
35015
      /**
35016
       * Find the _Fields constant that matches fieldId, throwing an exception
35017
       * if it is not found.
35018
       */
35019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35020
        _Fields fields = findByThriftId(fieldId);
35021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35022
        return fields;
35023
      }
35024
 
35025
      /**
35026
       * Find the _Fields constant that matches name, or null if its not found.
35027
       */
35028
      public static _Fields findByName(String name) {
35029
        return byName.get(name);
35030
      }
35031
 
35032
      private final short _thriftId;
35033
      private final String _fieldName;
35034
 
35035
      _Fields(short thriftId, String fieldName) {
35036
        _thriftId = thriftId;
35037
        _fieldName = fieldName;
35038
      }
35039
 
35040
      public short getThriftFieldId() {
35041
        return _thriftId;
35042
      }
35043
 
35044
      public String getFieldName() {
35045
        return _fieldName;
35046
      }
35047
    }
35048
 
35049
    // isset id assignments
35050
 
35051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35052
    static {
35053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35054
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35055
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
35056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
35058
    }
35059
 
35060
    public getItemStockPurchaseParams_result() {
35061
    }
35062
 
35063
    public getItemStockPurchaseParams_result(
35064
      ItemStockPurchaseParams success)
35065
    {
35066
      this();
35067
      this.success = success;
35068
    }
35069
 
35070
    /**
35071
     * Performs a deep copy on <i>other</i>.
35072
     */
35073
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
35074
      if (other.isSetSuccess()) {
35075
        this.success = new ItemStockPurchaseParams(other.success);
35076
      }
35077
    }
35078
 
35079
    public getItemStockPurchaseParams_result deepCopy() {
35080
      return new getItemStockPurchaseParams_result(this);
35081
    }
35082
 
35083
    @Override
35084
    public void clear() {
35085
      this.success = null;
35086
    }
35087
 
35088
    public ItemStockPurchaseParams getSuccess() {
35089
      return this.success;
35090
    }
35091
 
35092
    public void setSuccess(ItemStockPurchaseParams success) {
35093
      this.success = success;
35094
    }
35095
 
35096
    public void unsetSuccess() {
35097
      this.success = null;
35098
    }
35099
 
35100
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35101
    public boolean isSetSuccess() {
35102
      return this.success != null;
35103
    }
35104
 
35105
    public void setSuccessIsSet(boolean value) {
35106
      if (!value) {
35107
        this.success = null;
35108
      }
35109
    }
35110
 
35111
    public void setFieldValue(_Fields field, Object value) {
35112
      switch (field) {
35113
      case SUCCESS:
35114
        if (value == null) {
35115
          unsetSuccess();
35116
        } else {
35117
          setSuccess((ItemStockPurchaseParams)value);
35118
        }
35119
        break;
35120
 
35121
      }
35122
    }
35123
 
35124
    public Object getFieldValue(_Fields field) {
35125
      switch (field) {
35126
      case SUCCESS:
35127
        return getSuccess();
35128
 
35129
      }
35130
      throw new IllegalStateException();
35131
    }
35132
 
35133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35134
    public boolean isSet(_Fields field) {
35135
      if (field == null) {
35136
        throw new IllegalArgumentException();
35137
      }
35138
 
35139
      switch (field) {
35140
      case SUCCESS:
35141
        return isSetSuccess();
35142
      }
35143
      throw new IllegalStateException();
35144
    }
35145
 
35146
    @Override
35147
    public boolean equals(Object that) {
35148
      if (that == null)
35149
        return false;
35150
      if (that instanceof getItemStockPurchaseParams_result)
35151
        return this.equals((getItemStockPurchaseParams_result)that);
35152
      return false;
35153
    }
35154
 
35155
    public boolean equals(getItemStockPurchaseParams_result that) {
35156
      if (that == null)
35157
        return false;
35158
 
35159
      boolean this_present_success = true && this.isSetSuccess();
35160
      boolean that_present_success = true && that.isSetSuccess();
35161
      if (this_present_success || that_present_success) {
35162
        if (!(this_present_success && that_present_success))
35163
          return false;
35164
        if (!this.success.equals(that.success))
35165
          return false;
35166
      }
35167
 
35168
      return true;
35169
    }
35170
 
35171
    @Override
35172
    public int hashCode() {
35173
      return 0;
35174
    }
35175
 
35176
    public int compareTo(getItemStockPurchaseParams_result other) {
35177
      if (!getClass().equals(other.getClass())) {
35178
        return getClass().getName().compareTo(other.getClass().getName());
35179
      }
35180
 
35181
      int lastComparison = 0;
35182
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
35183
 
35184
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35185
      if (lastComparison != 0) {
35186
        return lastComparison;
35187
      }
35188
      if (isSetSuccess()) {
35189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35190
        if (lastComparison != 0) {
35191
          return lastComparison;
35192
        }
35193
      }
35194
      return 0;
35195
    }
35196
 
35197
    public _Fields fieldForId(int fieldId) {
35198
      return _Fields.findByThriftId(fieldId);
35199
    }
35200
 
35201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35202
      org.apache.thrift.protocol.TField field;
35203
      iprot.readStructBegin();
35204
      while (true)
35205
      {
35206
        field = iprot.readFieldBegin();
35207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35208
          break;
35209
        }
35210
        switch (field.id) {
35211
          case 0: // SUCCESS
35212
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35213
              this.success = new ItemStockPurchaseParams();
35214
              this.success.read(iprot);
35215
            } else { 
35216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35217
            }
35218
            break;
35219
          default:
35220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35221
        }
35222
        iprot.readFieldEnd();
35223
      }
35224
      iprot.readStructEnd();
35225
      validate();
35226
    }
35227
 
35228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35229
      oprot.writeStructBegin(STRUCT_DESC);
35230
 
35231
      if (this.isSetSuccess()) {
35232
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35233
        this.success.write(oprot);
35234
        oprot.writeFieldEnd();
35235
      }
35236
      oprot.writeFieldStop();
35237
      oprot.writeStructEnd();
35238
    }
35239
 
35240
    @Override
35241
    public String toString() {
35242
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
35243
      boolean first = true;
35244
 
35245
      sb.append("success:");
35246
      if (this.success == null) {
35247
        sb.append("null");
35248
      } else {
35249
        sb.append(this.success);
35250
      }
35251
      first = false;
35252
      sb.append(")");
35253
      return sb.toString();
35254
    }
35255
 
35256
    public void validate() throws org.apache.thrift.TException {
35257
      // check for required fields
35258
    }
35259
 
35260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35261
      try {
35262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35263
      } catch (org.apache.thrift.TException te) {
35264
        throw new java.io.IOException(te);
35265
      }
35266
    }
35267
 
35268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35269
      try {
35270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35271
      } catch (org.apache.thrift.TException te) {
35272
        throw new java.io.IOException(te);
35273
      }
35274
    }
35275
 
35276
  }
35277
 
35278
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
35279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
35280
 
35281
    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);
35282
    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);
35283
 
35284
    private Map<Long,Boolean> oosStatusMap; // required
35285
    private long date; // required
35286
 
35287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35289
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
35290
      DATE((short)2, "date");
35291
 
35292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35293
 
35294
      static {
35295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35296
          byName.put(field.getFieldName(), field);
35297
        }
35298
      }
35299
 
35300
      /**
35301
       * Find the _Fields constant that matches fieldId, or null if its not found.
35302
       */
35303
      public static _Fields findByThriftId(int fieldId) {
35304
        switch(fieldId) {
35305
          case 1: // OOS_STATUS_MAP
35306
            return OOS_STATUS_MAP;
35307
          case 2: // DATE
35308
            return DATE;
35309
          default:
35310
            return null;
35311
        }
35312
      }
35313
 
35314
      /**
35315
       * Find the _Fields constant that matches fieldId, throwing an exception
35316
       * if it is not found.
35317
       */
35318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35319
        _Fields fields = findByThriftId(fieldId);
35320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35321
        return fields;
35322
      }
35323
 
35324
      /**
35325
       * Find the _Fields constant that matches name, or null if its not found.
35326
       */
35327
      public static _Fields findByName(String name) {
35328
        return byName.get(name);
35329
      }
35330
 
35331
      private final short _thriftId;
35332
      private final String _fieldName;
35333
 
35334
      _Fields(short thriftId, String fieldName) {
35335
        _thriftId = thriftId;
35336
        _fieldName = fieldName;
35337
      }
35338
 
35339
      public short getThriftFieldId() {
35340
        return _thriftId;
35341
      }
35342
 
35343
      public String getFieldName() {
35344
        return _fieldName;
35345
      }
35346
    }
35347
 
35348
    // isset id assignments
35349
    private static final int __DATE_ISSET_ID = 0;
35350
    private BitSet __isset_bit_vector = new BitSet(1);
35351
 
35352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35353
    static {
35354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35355
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35356
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
35357
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
35358
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
35359
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
35363
    }
35364
 
35365
    public addOosStatusForItem_args() {
35366
    }
35367
 
35368
    public addOosStatusForItem_args(
35369
      Map<Long,Boolean> oosStatusMap,
35370
      long date)
35371
    {
35372
      this();
35373
      this.oosStatusMap = oosStatusMap;
35374
      this.date = date;
35375
      setDateIsSet(true);
35376
    }
35377
 
35378
    /**
35379
     * Performs a deep copy on <i>other</i>.
35380
     */
35381
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
35382
      __isset_bit_vector.clear();
35383
      __isset_bit_vector.or(other.__isset_bit_vector);
35384
      if (other.isSetOosStatusMap()) {
35385
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
35386
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
35387
 
35388
          Long other_element_key = other_element.getKey();
35389
          Boolean other_element_value = other_element.getValue();
35390
 
35391
          Long __this__oosStatusMap_copy_key = other_element_key;
35392
 
35393
          Boolean __this__oosStatusMap_copy_value = other_element_value;
35394
 
35395
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
35396
        }
35397
        this.oosStatusMap = __this__oosStatusMap;
35398
      }
35399
      this.date = other.date;
35400
    }
35401
 
35402
    public addOosStatusForItem_args deepCopy() {
35403
      return new addOosStatusForItem_args(this);
35404
    }
35405
 
35406
    @Override
35407
    public void clear() {
35408
      this.oosStatusMap = null;
35409
      setDateIsSet(false);
35410
      this.date = 0;
35411
    }
35412
 
35413
    public int getOosStatusMapSize() {
35414
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
35415
    }
35416
 
35417
    public void putToOosStatusMap(long key, boolean val) {
35418
      if (this.oosStatusMap == null) {
35419
        this.oosStatusMap = new HashMap<Long,Boolean>();
35420
      }
35421
      this.oosStatusMap.put(key, val);
35422
    }
35423
 
35424
    public Map<Long,Boolean> getOosStatusMap() {
35425
      return this.oosStatusMap;
35426
    }
35427
 
35428
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
35429
      this.oosStatusMap = oosStatusMap;
35430
    }
35431
 
35432
    public void unsetOosStatusMap() {
35433
      this.oosStatusMap = null;
35434
    }
35435
 
35436
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
35437
    public boolean isSetOosStatusMap() {
35438
      return this.oosStatusMap != null;
35439
    }
35440
 
35441
    public void setOosStatusMapIsSet(boolean value) {
35442
      if (!value) {
35443
        this.oosStatusMap = null;
35444
      }
35445
    }
35446
 
35447
    public long getDate() {
35448
      return this.date;
35449
    }
35450
 
35451
    public void setDate(long date) {
35452
      this.date = date;
35453
      setDateIsSet(true);
35454
    }
35455
 
35456
    public void unsetDate() {
35457
      __isset_bit_vector.clear(__DATE_ISSET_ID);
35458
    }
35459
 
35460
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
35461
    public boolean isSetDate() {
35462
      return __isset_bit_vector.get(__DATE_ISSET_ID);
35463
    }
35464
 
35465
    public void setDateIsSet(boolean value) {
35466
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
35467
    }
35468
 
35469
    public void setFieldValue(_Fields field, Object value) {
35470
      switch (field) {
35471
      case OOS_STATUS_MAP:
35472
        if (value == null) {
35473
          unsetOosStatusMap();
35474
        } else {
35475
          setOosStatusMap((Map<Long,Boolean>)value);
35476
        }
35477
        break;
35478
 
35479
      case DATE:
35480
        if (value == null) {
35481
          unsetDate();
35482
        } else {
35483
          setDate((Long)value);
35484
        }
35485
        break;
35486
 
35487
      }
35488
    }
35489
 
35490
    public Object getFieldValue(_Fields field) {
35491
      switch (field) {
35492
      case OOS_STATUS_MAP:
35493
        return getOosStatusMap();
35494
 
35495
      case DATE:
35496
        return Long.valueOf(getDate());
35497
 
35498
      }
35499
      throw new IllegalStateException();
35500
    }
35501
 
35502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35503
    public boolean isSet(_Fields field) {
35504
      if (field == null) {
35505
        throw new IllegalArgumentException();
35506
      }
35507
 
35508
      switch (field) {
35509
      case OOS_STATUS_MAP:
35510
        return isSetOosStatusMap();
35511
      case DATE:
35512
        return isSetDate();
35513
      }
35514
      throw new IllegalStateException();
35515
    }
35516
 
35517
    @Override
35518
    public boolean equals(Object that) {
35519
      if (that == null)
35520
        return false;
35521
      if (that instanceof addOosStatusForItem_args)
35522
        return this.equals((addOosStatusForItem_args)that);
35523
      return false;
35524
    }
35525
 
35526
    public boolean equals(addOosStatusForItem_args that) {
35527
      if (that == null)
35528
        return false;
35529
 
35530
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
35531
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
35532
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
35533
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
35534
          return false;
35535
        if (!this.oosStatusMap.equals(that.oosStatusMap))
35536
          return false;
35537
      }
35538
 
35539
      boolean this_present_date = true;
35540
      boolean that_present_date = true;
35541
      if (this_present_date || that_present_date) {
35542
        if (!(this_present_date && that_present_date))
35543
          return false;
35544
        if (this.date != that.date)
35545
          return false;
35546
      }
35547
 
35548
      return true;
35549
    }
35550
 
35551
    @Override
35552
    public int hashCode() {
35553
      return 0;
35554
    }
35555
 
35556
    public int compareTo(addOosStatusForItem_args other) {
35557
      if (!getClass().equals(other.getClass())) {
35558
        return getClass().getName().compareTo(other.getClass().getName());
35559
      }
35560
 
35561
      int lastComparison = 0;
35562
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
35563
 
35564
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
35565
      if (lastComparison != 0) {
35566
        return lastComparison;
35567
      }
35568
      if (isSetOosStatusMap()) {
35569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
35570
        if (lastComparison != 0) {
35571
          return lastComparison;
35572
        }
35573
      }
35574
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
35575
      if (lastComparison != 0) {
35576
        return lastComparison;
35577
      }
35578
      if (isSetDate()) {
35579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
35580
        if (lastComparison != 0) {
35581
          return lastComparison;
35582
        }
35583
      }
35584
      return 0;
35585
    }
35586
 
35587
    public _Fields fieldForId(int fieldId) {
35588
      return _Fields.findByThriftId(fieldId);
35589
    }
35590
 
35591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35592
      org.apache.thrift.protocol.TField field;
35593
      iprot.readStructBegin();
35594
      while (true)
35595
      {
35596
        field = iprot.readFieldBegin();
35597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35598
          break;
35599
        }
35600
        switch (field.id) {
35601
          case 1: // OOS_STATUS_MAP
35602
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
35603
              {
35604
                org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
35605
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map104.size);
35606
                for (int _i105 = 0; _i105 < _map104.size; ++_i105)
35607
                {
35608
                  long _key106; // required
35609
                  boolean _val107; // required
35610
                  _key106 = iprot.readI64();
35611
                  _val107 = iprot.readBool();
35612
                  this.oosStatusMap.put(_key106, _val107);
35613
                }
35614
                iprot.readMapEnd();
35615
              }
35616
            } else { 
35617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35618
            }
35619
            break;
35620
          case 2: // DATE
35621
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35622
              this.date = iprot.readI64();
35623
              setDateIsSet(true);
35624
            } else { 
35625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35626
            }
35627
            break;
35628
          default:
35629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35630
        }
35631
        iprot.readFieldEnd();
35632
      }
35633
      iprot.readStructEnd();
35634
      validate();
35635
    }
35636
 
35637
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35638
      validate();
35639
 
35640
      oprot.writeStructBegin(STRUCT_DESC);
35641
      if (this.oosStatusMap != null) {
35642
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
35643
        {
35644
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.oosStatusMap.size()));
35645
          for (Map.Entry<Long, Boolean> _iter108 : this.oosStatusMap.entrySet())
35646
          {
35647
            oprot.writeI64(_iter108.getKey());
35648
            oprot.writeBool(_iter108.getValue());
35649
          }
35650
          oprot.writeMapEnd();
35651
        }
35652
        oprot.writeFieldEnd();
35653
      }
35654
      oprot.writeFieldBegin(DATE_FIELD_DESC);
35655
      oprot.writeI64(this.date);
35656
      oprot.writeFieldEnd();
35657
      oprot.writeFieldStop();
35658
      oprot.writeStructEnd();
35659
    }
35660
 
35661
    @Override
35662
    public String toString() {
35663
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
35664
      boolean first = true;
35665
 
35666
      sb.append("oosStatusMap:");
35667
      if (this.oosStatusMap == null) {
35668
        sb.append("null");
35669
      } else {
35670
        sb.append(this.oosStatusMap);
35671
      }
35672
      first = false;
35673
      if (!first) sb.append(", ");
35674
      sb.append("date:");
35675
      sb.append(this.date);
35676
      first = false;
35677
      sb.append(")");
35678
      return sb.toString();
35679
    }
35680
 
35681
    public void validate() throws org.apache.thrift.TException {
35682
      // check for required fields
35683
    }
35684
 
35685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35686
      try {
35687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35688
      } catch (org.apache.thrift.TException te) {
35689
        throw new java.io.IOException(te);
35690
      }
35691
    }
35692
 
35693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35694
      try {
35695
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35696
        __isset_bit_vector = new BitSet(1);
35697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35698
      } catch (org.apache.thrift.TException te) {
35699
        throw new java.io.IOException(te);
35700
      }
35701
    }
35702
 
35703
  }
35704
 
35705
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
35706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
35707
 
35708
 
35709
 
35710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35712
;
35713
 
35714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35715
 
35716
      static {
35717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35718
          byName.put(field.getFieldName(), field);
35719
        }
35720
      }
35721
 
35722
      /**
35723
       * Find the _Fields constant that matches fieldId, or null if its not found.
35724
       */
35725
      public static _Fields findByThriftId(int fieldId) {
35726
        switch(fieldId) {
35727
          default:
35728
            return null;
35729
        }
35730
      }
35731
 
35732
      /**
35733
       * Find the _Fields constant that matches fieldId, throwing an exception
35734
       * if it is not found.
35735
       */
35736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35737
        _Fields fields = findByThriftId(fieldId);
35738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35739
        return fields;
35740
      }
35741
 
35742
      /**
35743
       * Find the _Fields constant that matches name, or null if its not found.
35744
       */
35745
      public static _Fields findByName(String name) {
35746
        return byName.get(name);
35747
      }
35748
 
35749
      private final short _thriftId;
35750
      private final String _fieldName;
35751
 
35752
      _Fields(short thriftId, String fieldName) {
35753
        _thriftId = thriftId;
35754
        _fieldName = fieldName;
35755
      }
35756
 
35757
      public short getThriftFieldId() {
35758
        return _thriftId;
35759
      }
35760
 
35761
      public String getFieldName() {
35762
        return _fieldName;
35763
      }
35764
    }
35765
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35766
    static {
35767
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
35770
    }
35771
 
35772
    public addOosStatusForItem_result() {
35773
    }
35774
 
35775
    /**
35776
     * Performs a deep copy on <i>other</i>.
35777
     */
35778
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
35779
    }
35780
 
35781
    public addOosStatusForItem_result deepCopy() {
35782
      return new addOosStatusForItem_result(this);
35783
    }
35784
 
35785
    @Override
35786
    public void clear() {
35787
    }
35788
 
35789
    public void setFieldValue(_Fields field, Object value) {
35790
      switch (field) {
35791
      }
35792
    }
35793
 
35794
    public Object getFieldValue(_Fields field) {
35795
      switch (field) {
35796
      }
35797
      throw new IllegalStateException();
35798
    }
35799
 
35800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35801
    public boolean isSet(_Fields field) {
35802
      if (field == null) {
35803
        throw new IllegalArgumentException();
35804
      }
35805
 
35806
      switch (field) {
35807
      }
35808
      throw new IllegalStateException();
35809
    }
35810
 
35811
    @Override
35812
    public boolean equals(Object that) {
35813
      if (that == null)
35814
        return false;
35815
      if (that instanceof addOosStatusForItem_result)
35816
        return this.equals((addOosStatusForItem_result)that);
35817
      return false;
35818
    }
35819
 
35820
    public boolean equals(addOosStatusForItem_result that) {
35821
      if (that == null)
35822
        return false;
35823
 
35824
      return true;
35825
    }
35826
 
35827
    @Override
35828
    public int hashCode() {
35829
      return 0;
35830
    }
35831
 
35832
    public int compareTo(addOosStatusForItem_result other) {
35833
      if (!getClass().equals(other.getClass())) {
35834
        return getClass().getName().compareTo(other.getClass().getName());
35835
      }
35836
 
35837
      int lastComparison = 0;
35838
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
35839
 
35840
      return 0;
35841
    }
35842
 
35843
    public _Fields fieldForId(int fieldId) {
35844
      return _Fields.findByThriftId(fieldId);
35845
    }
35846
 
35847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35848
      org.apache.thrift.protocol.TField field;
35849
      iprot.readStructBegin();
35850
      while (true)
35851
      {
35852
        field = iprot.readFieldBegin();
35853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35854
          break;
35855
        }
35856
        switch (field.id) {
35857
          default:
35858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35859
        }
35860
        iprot.readFieldEnd();
35861
      }
35862
      iprot.readStructEnd();
35863
      validate();
35864
    }
35865
 
35866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35867
      oprot.writeStructBegin(STRUCT_DESC);
35868
 
35869
      oprot.writeFieldStop();
35870
      oprot.writeStructEnd();
35871
    }
35872
 
35873
    @Override
35874
    public String toString() {
35875
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
35876
      boolean first = true;
35877
 
35878
      sb.append(")");
35879
      return sb.toString();
35880
    }
35881
 
35882
    public void validate() throws org.apache.thrift.TException {
35883
      // check for required fields
35884
    }
35885
 
35886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35887
      try {
35888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35889
      } catch (org.apache.thrift.TException te) {
35890
        throw new java.io.IOException(te);
35891
      }
35892
    }
35893
 
35894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35895
      try {
35896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35897
      } catch (org.apache.thrift.TException te) {
35898
        throw new java.io.IOException(te);
35899
      }
35900
    }
35901
 
35902
  }
35903
 
5945 mandeep.dh 35904
}