Subversion Repositories SmartDukaan

Rev

Rev 6484 | Rev 6747 | 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
 
5945 mandeep.dh 298
  }
299
 
300
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
301
 
302
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
303
 
304
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
305
 
306
    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;
307
 
308
    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;
309
 
310
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
311
 
312
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
313
 
314
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
315
 
316
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
317
 
5978 rajveer 318
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 319
 
320
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
323
 
324
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
325
 
5967 rajveer 326
    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 327
 
5967 rajveer 328
    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 329
 
5967 rajveer 330
    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;
331
 
5945 mandeep.dh 332
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
337
 
338
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
347
 
348
    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;
349
 
350
    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;
351
 
352
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
355
 
356
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
357
 
358
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
359
 
360
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
361
 
362
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
363
 
364
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
365
 
366
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
367
 
368
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
369
 
370
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
371
 
6096 amit.gupta 372
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
373
 
6467 amar.kumar 374
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
375
 
6484 amar.kumar 376
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
377
 
6531 vikram.rag 378
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
379
 
380
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
381
 
382
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
383
 
384
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
385
 
386
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
387
 
388
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
389
 
5945 mandeep.dh 390
  }
391
 
392
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
393
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
394
      public Factory() {}
395
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
396
        return new Client(prot);
397
      }
398
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
399
        return new Client(iprot, oprot);
400
      }
401
    }
402
 
403
    public Client(org.apache.thrift.protocol.TProtocol prot)
404
    {
405
      super(prot, prot);
406
    }
407
 
408
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
409
      super(iprot, oprot);
410
    }
411
 
412
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
413
    {
414
      send_addWarehouse(warehouse);
415
      return recv_addWarehouse();
416
    }
417
 
418
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
419
    {
420
      addWarehouse_args args = new addWarehouse_args();
421
      args.setWarehouse(warehouse);
422
      sendBase("addWarehouse", args);
423
    }
424
 
425
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
426
    {
427
      addWarehouse_result result = new addWarehouse_result();
428
      receiveBase(result, "addWarehouse");
429
      if (result.isSetSuccess()) {
430
        return result.success;
431
      }
432
      if (result.cex != null) {
433
        throw result.cex;
434
      }
435
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
436
    }
437
 
438
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
439
    {
440
      send_addVendor(vendor);
441
      return recv_addVendor();
442
    }
443
 
444
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
445
    {
446
      addVendor_args args = new addVendor_args();
447
      args.setVendor(vendor);
448
      sendBase("addVendor", args);
449
    }
450
 
451
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
452
    {
453
      addVendor_result result = new addVendor_result();
454
      receiveBase(result, "addVendor");
455
      if (result.isSetSuccess()) {
456
        return result.success;
457
      }
458
      if (result.cex != null) {
459
        throw result.cex;
460
      }
461
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
462
    }
463
 
464
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
465
    {
466
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
467
      recv_updateInventoryHistory();
468
    }
469
 
470
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
471
    {
472
      updateInventoryHistory_args args = new updateInventoryHistory_args();
473
      args.setWarehouse_id(warehouse_id);
474
      args.setTimestamp(timestamp);
475
      args.setAvailability(availability);
476
      sendBase("updateInventoryHistory", args);
477
    }
478
 
479
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
480
    {
481
      updateInventoryHistory_result result = new updateInventoryHistory_result();
482
      receiveBase(result, "updateInventoryHistory");
483
      if (result.cex != null) {
484
        throw result.cex;
485
      }
486
      return;
487
    }
488
 
489
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
490
    {
491
      send_updateInventory(warehouse_id, timestamp, availability);
492
      recv_updateInventory();
493
    }
494
 
495
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
496
    {
497
      updateInventory_args args = new updateInventory_args();
498
      args.setWarehouse_id(warehouse_id);
499
      args.setTimestamp(timestamp);
500
      args.setAvailability(availability);
501
      sendBase("updateInventory", args);
502
    }
503
 
504
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
505
    {
506
      updateInventory_result result = new updateInventory_result();
507
      receiveBase(result, "updateInventory");
508
      if (result.cex != null) {
509
        throw result.cex;
510
      }
511
      return;
512
    }
513
 
514
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
515
    {
516
      send_addInventory(itemId, warehouseId, quantity);
517
      recv_addInventory();
518
    }
519
 
520
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
521
    {
522
      addInventory_args args = new addInventory_args();
523
      args.setItemId(itemId);
524
      args.setWarehouseId(warehouseId);
525
      args.setQuantity(quantity);
526
      sendBase("addInventory", args);
527
    }
528
 
529
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
530
    {
531
      addInventory_result result = new addInventory_result();
532
      receiveBase(result, "addInventory");
533
      if (result.cex != null) {
534
        throw result.cex;
535
      }
536
      return;
537
    }
538
 
539
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
540
    {
541
      send_retireWarehouse(warehouse_id);
542
      recv_retireWarehouse();
543
    }
544
 
545
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
546
    {
547
      retireWarehouse_args args = new retireWarehouse_args();
548
      args.setWarehouse_id(warehouse_id);
549
      sendBase("retireWarehouse", args);
550
    }
551
 
552
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
553
    {
554
      retireWarehouse_result result = new retireWarehouse_result();
555
      receiveBase(result, "retireWarehouse");
556
      if (result.cex != null) {
557
        throw result.cex;
558
      }
559
      return;
560
    }
561
 
562
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
563
    {
564
      send_getItemInventoryByItemId(item_id);
565
      return recv_getItemInventoryByItemId();
566
    }
567
 
568
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
569
    {
570
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
571
      args.setItem_id(item_id);
572
      sendBase("getItemInventoryByItemId", args);
573
    }
574
 
575
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
576
    {
577
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
578
      receiveBase(result, "getItemInventoryByItemId");
579
      if (result.isSetSuccess()) {
580
        return result.success;
581
      }
582
      if (result.cex != null) {
583
        throw result.cex;
584
      }
585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
586
    }
587
 
588
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
589
    {
590
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
591
      return recv_getItemAvailibilityAtWarehouse();
592
    }
593
 
594
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
595
    {
596
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
597
      args.setWarehouse_id(warehouse_id);
598
      args.setItem_id(item_id);
599
      sendBase("getItemAvailibilityAtWarehouse", args);
600
    }
601
 
602
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
603
    {
604
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
605
      receiveBase(result, "getItemAvailibilityAtWarehouse");
606
      if (result.isSetSuccess()) {
607
        return result.success;
608
      }
609
      if (result.cex != null) {
610
        throw result.cex;
611
      }
612
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
613
    }
614
 
5978 rajveer 615
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 616
    {
5978 rajveer 617
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 618
      return recv_getItemAvailabilityAtLocation();
619
    }
620
 
5978 rajveer 621
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 622
    {
623
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
624
      args.setItemId(itemId);
5978 rajveer 625
      args.setSourceId(sourceId);
5945 mandeep.dh 626
      sendBase("getItemAvailabilityAtLocation", args);
627
    }
628
 
629
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
630
    {
631
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
632
      receiveBase(result, "getItemAvailabilityAtLocation");
633
      if (result.isSetSuccess()) {
634
        return result.success;
635
      }
636
      if (result.isex != null) {
637
        throw result.isex;
638
      }
639
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
640
    }
641
 
642
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
643
    {
644
      send_getAllWarehouses(isActive);
645
      return recv_getAllWarehouses();
646
    }
647
 
648
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
649
    {
650
      getAllWarehouses_args args = new getAllWarehouses_args();
651
      args.setIsActive(isActive);
652
      sendBase("getAllWarehouses", args);
653
    }
654
 
655
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
656
    {
657
      getAllWarehouses_result result = new getAllWarehouses_result();
658
      receiveBase(result, "getAllWarehouses");
659
      if (result.isSetSuccess()) {
660
        return result.success;
661
      }
662
      if (result.cex != null) {
663
        throw result.cex;
664
      }
665
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
666
    }
667
 
668
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
669
    {
670
      send_getWarehouse(warehouse_id);
671
      return recv_getWarehouse();
672
    }
673
 
674
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
675
    {
676
      getWarehouse_args args = new getWarehouse_args();
677
      args.setWarehouse_id(warehouse_id);
678
      sendBase("getWarehouse", args);
679
    }
680
 
681
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
682
    {
683
      getWarehouse_result result = new getWarehouse_result();
684
      receiveBase(result, "getWarehouse");
685
      if (result.isSetSuccess()) {
686
        return result.success;
687
      }
688
      if (result.cex != null) {
689
        throw result.cex;
690
      }
691
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
692
    }
693
 
694
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
695
    {
696
      send_getAllItemsForWarehouse(warehouse_id);
697
      return recv_getAllItemsForWarehouse();
698
    }
699
 
700
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
701
    {
702
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
703
      args.setWarehouse_id(warehouse_id);
704
      sendBase("getAllItemsForWarehouse", args);
705
    }
706
 
707
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
708
    {
709
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
710
      receiveBase(result, "getAllItemsForWarehouse");
711
      if (result.isSetSuccess()) {
712
        return result.success;
713
      }
714
      if (result.cex != null) {
715
        throw result.cex;
716
      }
717
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
718
    }
719
 
5967 rajveer 720
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 721
    {
5967 rajveer 722
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
723
      return recv_isOrderBillable();
724
    }
725
 
726
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
727
    {
728
      isOrderBillable_args args = new isOrderBillable_args();
729
      args.setItemId(itemId);
730
      args.setWarehouseId(warehouseId);
731
      args.setSourceId(sourceId);
732
      args.setOrderId(orderId);
733
      sendBase("isOrderBillable", args);
734
    }
735
 
736
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
737
    {
738
      isOrderBillable_result result = new isOrderBillable_result();
739
      receiveBase(result, "isOrderBillable");
740
      if (result.isSetSuccess()) {
741
        return result.success;
742
      }
743
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
744
    }
745
 
746
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
747
    {
748
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 749
      return recv_reserveItemInWarehouse();
750
    }
751
 
5967 rajveer 752
    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 753
    {
754
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
755
      args.setItemId(itemId);
756
      args.setWarehouseId(warehouseId);
5967 rajveer 757
      args.setSourceId(sourceId);
758
      args.setOrderId(orderId);
759
      args.setCreatedTimestamp(createdTimestamp);
760
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 761
      args.setQuantity(quantity);
762
      sendBase("reserveItemInWarehouse", args);
763
    }
764
 
765
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
766
    {
767
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
768
      receiveBase(result, "reserveItemInWarehouse");
769
      if (result.isSetSuccess()) {
770
        return result.success;
771
      }
772
      if (result.cex != null) {
773
        throw result.cex;
774
      }
775
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
776
    }
777
 
5967 rajveer 778
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 779
    {
5967 rajveer 780
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 781
      return recv_reduceReservationCount();
782
    }
783
 
5967 rajveer 784
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 785
    {
786
      reduceReservationCount_args args = new reduceReservationCount_args();
787
      args.setItemId(itemId);
788
      args.setWarehouseId(warehouseId);
5967 rajveer 789
      args.setSourceId(sourceId);
790
      args.setOrderId(orderId);
5945 mandeep.dh 791
      args.setQuantity(quantity);
792
      sendBase("reduceReservationCount", args);
793
    }
794
 
795
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
796
    {
797
      reduceReservationCount_result result = new reduceReservationCount_result();
798
      receiveBase(result, "reduceReservationCount");
799
      if (result.isSetSuccess()) {
800
        return result.success;
801
      }
802
      if (result.cex != null) {
803
        throw result.cex;
804
      }
805
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
806
    }
807
 
808
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
809
    {
810
      send_getItemPricing(itemId, vendorId);
811
      return recv_getItemPricing();
812
    }
813
 
814
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
815
    {
816
      getItemPricing_args args = new getItemPricing_args();
817
      args.setItemId(itemId);
818
      args.setVendorId(vendorId);
819
      sendBase("getItemPricing", args);
820
    }
821
 
822
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
823
    {
824
      getItemPricing_result result = new getItemPricing_result();
825
      receiveBase(result, "getItemPricing");
826
      if (result.isSetSuccess()) {
827
        return result.success;
828
      }
829
      if (result.cex != null) {
830
        throw result.cex;
831
      }
832
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
833
    }
834
 
835
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
836
    {
837
      send_getAllItemPricing(itemId);
838
      return recv_getAllItemPricing();
839
    }
840
 
841
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
842
    {
843
      getAllItemPricing_args args = new getAllItemPricing_args();
844
      args.setItemId(itemId);
845
      sendBase("getAllItemPricing", args);
846
    }
847
 
848
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
849
    {
850
      getAllItemPricing_result result = new getAllItemPricing_result();
851
      receiveBase(result, "getAllItemPricing");
852
      if (result.isSetSuccess()) {
853
        return result.success;
854
      }
855
      if (result.cex != null) {
856
        throw result.cex;
857
      }
858
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
859
    }
860
 
861
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
862
    {
863
      send_addVendorItemPricing(vendorItemPricing);
864
      recv_addVendorItemPricing();
865
    }
866
 
867
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
868
    {
869
      addVendorItemPricing_args args = new addVendorItemPricing_args();
870
      args.setVendorItemPricing(vendorItemPricing);
871
      sendBase("addVendorItemPricing", args);
872
    }
873
 
874
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
875
    {
876
      addVendorItemPricing_result result = new addVendorItemPricing_result();
877
      receiveBase(result, "addVendorItemPricing");
878
      if (result.cex != null) {
879
        throw result.cex;
880
      }
881
      return;
882
    }
883
 
884
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
885
    {
886
      send_getVendor(vendorId);
887
      return recv_getVendor();
888
    }
889
 
890
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
891
    {
892
      getVendor_args args = new getVendor_args();
893
      args.setVendorId(vendorId);
894
      sendBase("getVendor", args);
895
    }
896
 
897
    public Vendor recv_getVendor() throws org.apache.thrift.TException
898
    {
899
      getVendor_result result = new getVendor_result();
900
      receiveBase(result, "getVendor");
901
      if (result.isSetSuccess()) {
902
        return result.success;
903
      }
904
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
905
    }
906
 
907
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
908
    {
909
      send_getAllVendors();
910
      return recv_getAllVendors();
911
    }
912
 
913
    public void send_getAllVendors() throws org.apache.thrift.TException
914
    {
915
      getAllVendors_args args = new getAllVendors_args();
916
      sendBase("getAllVendors", args);
917
    }
918
 
919
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
920
    {
921
      getAllVendors_result result = new getAllVendors_result();
922
      receiveBase(result, "getAllVendors");
923
      if (result.isSetSuccess()) {
924
        return result.success;
925
      }
926
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
927
    }
928
 
929
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
930
    {
931
      send_addVendorItemMapping(key, vendorItemMapping);
932
      recv_addVendorItemMapping();
933
    }
934
 
935
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
936
    {
937
      addVendorItemMapping_args args = new addVendorItemMapping_args();
938
      args.setKey(key);
939
      args.setVendorItemMapping(vendorItemMapping);
940
      sendBase("addVendorItemMapping", args);
941
    }
942
 
943
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
944
    {
945
      addVendorItemMapping_result result = new addVendorItemMapping_result();
946
      receiveBase(result, "addVendorItemMapping");
947
      if (result.cex != null) {
948
        throw result.cex;
949
      }
950
      return;
951
    }
952
 
953
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
954
    {
955
      send_getVendorItemMappings(itemId);
956
      return recv_getVendorItemMappings();
957
    }
958
 
959
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
960
    {
961
      getVendorItemMappings_args args = new getVendorItemMappings_args();
962
      args.setItemId(itemId);
963
      sendBase("getVendorItemMappings", args);
964
    }
965
 
966
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
967
    {
968
      getVendorItemMappings_result result = new getVendorItemMappings_result();
969
      receiveBase(result, "getVendorItemMappings");
970
      if (result.isSetSuccess()) {
971
        return result.success;
972
      }
973
      if (result.cex != null) {
974
        throw result.cex;
975
      }
976
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
977
    }
978
 
979
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
980
    {
981
      send_getPendingOrdersInventory(vendorid);
982
      return recv_getPendingOrdersInventory();
983
    }
984
 
985
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
986
    {
987
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
988
      args.setVendorid(vendorid);
989
      sendBase("getPendingOrdersInventory", args);
990
    }
991
 
992
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
993
    {
994
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
995
      receiveBase(result, "getPendingOrdersInventory");
996
      if (result.isSetSuccess()) {
997
        return result.success;
998
      }
999
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1000
    }
1001
 
1002
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1003
    {
1004
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1005
      return recv_getWarehouses();
1006
    }
1007
 
1008
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1009
    {
1010
      getWarehouses_args args = new getWarehouses_args();
1011
      args.setWarehouseType(warehouseType);
1012
      args.setInventoryType(inventoryType);
1013
      args.setVendorId(vendorId);
1014
      args.setBillingWarehouseId(billingWarehouseId);
1015
      args.setShippingWarehouseId(shippingWarehouseId);
1016
      sendBase("getWarehouses", args);
1017
    }
1018
 
1019
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1020
    {
1021
      getWarehouses_result result = new getWarehouses_result();
1022
      receiveBase(result, "getWarehouses");
1023
      if (result.isSetSuccess()) {
1024
        return result.success;
1025
      }
1026
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1027
    }
1028
 
1029
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1030
    {
1031
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1032
      recv_resetAvailability();
1033
    }
1034
 
1035
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1036
    {
1037
      resetAvailability_args args = new resetAvailability_args();
1038
      args.setItemKey(itemKey);
1039
      args.setVendorId(vendorId);
1040
      args.setQuantity(quantity);
1041
      args.setWarehouseId(warehouseId);
1042
      sendBase("resetAvailability", args);
1043
    }
1044
 
1045
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1046
    {
1047
      resetAvailability_result result = new resetAvailability_result();
1048
      receiveBase(result, "resetAvailability");
1049
      if (result.cex != null) {
1050
        throw result.cex;
1051
      }
1052
      return;
1053
    }
1054
 
1055
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1056
    {
1057
      send_resetAvailabilityForWarehouse(warehouseId);
1058
      recv_resetAvailabilityForWarehouse();
1059
    }
1060
 
1061
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1062
    {
1063
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1064
      args.setWarehouseId(warehouseId);
1065
      sendBase("resetAvailabilityForWarehouse", args);
1066
    }
1067
 
1068
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1069
    {
1070
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1071
      receiveBase(result, "resetAvailabilityForWarehouse");
1072
      if (result.cex != null) {
1073
        throw result.cex;
1074
      }
1075
      return;
1076
    }
1077
 
1078
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1079
    {
1080
      send_getItemKeysToBeProcessed(warehouseId);
1081
      return recv_getItemKeysToBeProcessed();
1082
    }
1083
 
1084
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1085
    {
1086
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1087
      args.setWarehouseId(warehouseId);
1088
      sendBase("getItemKeysToBeProcessed", args);
1089
    }
1090
 
1091
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1092
    {
1093
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1094
      receiveBase(result, "getItemKeysToBeProcessed");
1095
      if (result.isSetSuccess()) {
1096
        return result.success;
1097
      }
1098
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1099
    }
1100
 
1101
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1102
    {
1103
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1104
      recv_markMissedInventoryUpdatesAsProcessed();
1105
    }
1106
 
1107
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1108
    {
1109
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1110
      args.setItemKey(itemKey);
1111
      args.setWarehouseId(warehouseId);
1112
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1113
    }
1114
 
1115
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1116
    {
1117
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1118
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1119
      return;
1120
    }
1121
 
1122
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1123
    {
1124
      send_getIgnoredItemKeys();
1125
      return recv_getIgnoredItemKeys();
1126
    }
1127
 
1128
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1129
    {
1130
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1131
      sendBase("getIgnoredItemKeys", args);
1132
    }
1133
 
1134
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1135
    {
1136
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1137
      receiveBase(result, "getIgnoredItemKeys");
1138
      if (result.isSetSuccess()) {
1139
        return result.success;
1140
      }
1141
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1142
    }
1143
 
1144
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1145
    {
1146
      send_addBadInventory(itemId, warehouseId, quantity);
1147
      recv_addBadInventory();
1148
    }
1149
 
1150
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1151
    {
1152
      addBadInventory_args args = new addBadInventory_args();
1153
      args.setItemId(itemId);
1154
      args.setWarehouseId(warehouseId);
1155
      args.setQuantity(quantity);
1156
      sendBase("addBadInventory", args);
1157
    }
1158
 
1159
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1160
    {
1161
      addBadInventory_result result = new addBadInventory_result();
1162
      receiveBase(result, "addBadInventory");
1163
      if (result.cex != null) {
1164
        throw result.cex;
1165
      }
1166
      return;
1167
    }
1168
 
1169
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1170
    {
1171
      send_getShippingLocations();
1172
      return recv_getShippingLocations();
1173
    }
1174
 
1175
    public void send_getShippingLocations() throws org.apache.thrift.TException
1176
    {
1177
      getShippingLocations_args args = new getShippingLocations_args();
1178
      sendBase("getShippingLocations", args);
1179
    }
1180
 
1181
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1182
    {
1183
      getShippingLocations_result result = new getShippingLocations_result();
1184
      receiveBase(result, "getShippingLocations");
1185
      if (result.isSetSuccess()) {
1186
        return result.success;
1187
      }
1188
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1189
    }
1190
 
1191
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1192
    {
1193
      send_getAllVendorItemMappings();
1194
      return recv_getAllVendorItemMappings();
1195
    }
1196
 
1197
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1198
    {
1199
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1200
      sendBase("getAllVendorItemMappings", args);
1201
    }
1202
 
1203
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1204
    {
1205
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1206
      receiveBase(result, "getAllVendorItemMappings");
1207
      if (result.isSetSuccess()) {
1208
        return result.success;
1209
      }
1210
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1211
    }
1212
 
1213
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1214
    {
1215
      send_getInventorySnapshot(warehouseId);
1216
      return recv_getInventorySnapshot();
1217
    }
1218
 
1219
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1220
    {
1221
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1222
      args.setWarehouseId(warehouseId);
1223
      sendBase("getInventorySnapshot", args);
1224
    }
1225
 
1226
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1227
    {
1228
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1229
      receiveBase(result, "getInventorySnapshot");
1230
      if (result.isSetSuccess()) {
1231
        return result.success;
1232
      }
1233
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1234
    }
1235
 
1236
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1237
    {
1238
      send_clearItemAvailabilityCache();
1239
      recv_clearItemAvailabilityCache();
1240
    }
1241
 
1242
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1243
    {
1244
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1245
      sendBase("clearItemAvailabilityCache", args);
1246
    }
1247
 
1248
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1249
    {
1250
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1251
      receiveBase(result, "clearItemAvailabilityCache");
1252
      return;
1253
    }
1254
 
1255
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1256
    {
1257
      send_updateVendorString(warehouseId, vendorString);
1258
      recv_updateVendorString();
1259
    }
1260
 
1261
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1262
    {
1263
      updateVendorString_args args = new updateVendorString_args();
1264
      args.setWarehouseId(warehouseId);
1265
      args.setVendorString(vendorString);
1266
      sendBase("updateVendorString", args);
1267
    }
1268
 
1269
    public void recv_updateVendorString() throws org.apache.thrift.TException
1270
    {
1271
      updateVendorString_result result = new updateVendorString_result();
1272
      receiveBase(result, "updateVendorString");
1273
      return;
1274
    }
1275
 
6096 amit.gupta 1276
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1277
    {
1278
      send_clearItemAvailabilityCacheForItem(item_id);
1279
      recv_clearItemAvailabilityCacheForItem();
1280
    }
1281
 
1282
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1283
    {
1284
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1285
      args.setItem_id(item_id);
1286
      sendBase("clearItemAvailabilityCacheForItem", args);
1287
    }
1288
 
1289
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1290
    {
1291
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1292
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1293
      return;
1294
    }
1295
 
6467 amar.kumar 1296
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1297
    {
1298
      send_getOurWarehouseIdForVendor(vendorId);
1299
      return recv_getOurWarehouseIdForVendor();
1300
    }
1301
 
1302
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1303
    {
1304
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1305
      args.setVendorId(vendorId);
1306
      sendBase("getOurWarehouseIdForVendor", args);
1307
    }
1308
 
1309
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1310
    {
1311
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1312
      receiveBase(result, "getOurWarehouseIdForVendor");
1313
      if (result.isSetSuccess()) {
1314
        return result.success;
1315
      }
1316
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1317
    }
1318
 
6484 amar.kumar 1319
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1320
    {
1321
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1322
      return recv_getItemAvailabilitiesAtOurWarehouses();
1323
    }
1324
 
1325
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1326
    {
1327
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1328
      args.setItem_ids(item_ids);
1329
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1330
    }
1331
 
1332
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1333
    {
1334
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1335
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1336
      if (result.isSetSuccess()) {
1337
        return result.success;
1338
      }
1339
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1340
    }
1341
 
6531 vikram.rag 1342
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1343
    {
1344
      send_getMonitoredWarehouseForVendors(vendorIds);
1345
      return recv_getMonitoredWarehouseForVendors();
1346
    }
1347
 
1348
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1349
    {
1350
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1351
      args.setVendorIds(vendorIds);
1352
      sendBase("getMonitoredWarehouseForVendors", args);
1353
    }
1354
 
1355
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1356
    {
1357
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1358
      receiveBase(result, "getMonitoredWarehouseForVendors");
1359
      if (result.isSetSuccess()) {
1360
        return result.success;
1361
      }
1362
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1363
    }
1364
 
1365
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1366
    {
1367
      send_getIgnoredWarehouseidsAndItemids();
1368
      return recv_getIgnoredWarehouseidsAndItemids();
1369
    }
1370
 
1371
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1372
    {
1373
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1374
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1375
    }
1376
 
1377
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1378
    {
1379
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1380
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1381
      if (result.isSetSuccess()) {
1382
        return result.success;
1383
      }
1384
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1385
    }
1386
 
1387
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1388
    {
1389
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1390
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1391
    }
1392
 
1393
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1394
    {
1395
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1396
      args.setItem_id(item_id);
1397
      args.setWarehouse_id(warehouse_id);
1398
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1399
    }
1400
 
1401
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1402
    {
1403
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1404
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1405
      if (result.isSetSuccess()) {
1406
        return result.success;
1407
      }
1408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1409
    }
1410
 
1411
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1412
    {
1413
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1414
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1415
    }
1416
 
1417
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1418
    {
1419
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1420
      args.setItem_id(item_id);
1421
      args.setWarehouse_id(warehouse_id);
1422
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1423
    }
1424
 
1425
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1426
    {
1427
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1428
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1429
      if (result.isSetSuccess()) {
1430
        return result.success;
1431
      }
1432
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1433
    }
1434
 
1435
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1436
    {
1437
      send_getAllIgnoredInventoryupdateItemsCount();
1438
      return recv_getAllIgnoredInventoryupdateItemsCount();
1439
    }
1440
 
1441
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1442
    {
1443
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1444
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1445
    }
1446
 
1447
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1448
    {
1449
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1450
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1451
      if (result.isSetSuccess()) {
1452
        return result.success;
1453
      }
1454
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1455
    }
1456
 
1457
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1458
    {
1459
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1460
      return recv_getIgnoredInventoryUpdateItemids();
1461
    }
1462
 
1463
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1464
    {
1465
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1466
      args.setOffset(offset);
1467
      args.setLimit(limit);
1468
      sendBase("getIgnoredInventoryUpdateItemids", args);
1469
    }
1470
 
1471
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1472
    {
1473
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1474
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1475
      if (result.isSetSuccess()) {
1476
        return result.success;
1477
      }
1478
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1479
    }
1480
 
5945 mandeep.dh 1481
  }
1482
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1483
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1484
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1485
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1486
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1487
        this.clientManager = clientManager;
1488
        this.protocolFactory = protocolFactory;
1489
      }
1490
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1491
        return new AsyncClient(protocolFactory, clientManager, transport);
1492
      }
1493
    }
1494
 
1495
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1496
      super(protocolFactory, clientManager, transport);
1497
    }
1498
 
1499
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1500
      checkReady();
1501
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1502
      this.___currentMethod = method_call;
1503
      ___manager.call(method_call);
1504
    }
1505
 
1506
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1507
      private Warehouse warehouse;
1508
      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 {
1509
        super(client, protocolFactory, transport, resultHandler, false);
1510
        this.warehouse = warehouse;
1511
      }
1512
 
1513
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1514
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1515
        addWarehouse_args args = new addWarehouse_args();
1516
        args.setWarehouse(warehouse);
1517
        args.write(prot);
1518
        prot.writeMessageEnd();
1519
      }
1520
 
1521
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1522
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1523
          throw new IllegalStateException("Method call not finished!");
1524
        }
1525
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1526
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1527
        return (new Client(prot)).recv_addWarehouse();
1528
      }
1529
    }
1530
 
1531
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1532
      checkReady();
1533
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1534
      this.___currentMethod = method_call;
1535
      ___manager.call(method_call);
1536
    }
1537
 
1538
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1539
      private Vendor vendor;
1540
      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 {
1541
        super(client, protocolFactory, transport, resultHandler, false);
1542
        this.vendor = vendor;
1543
      }
1544
 
1545
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1546
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1547
        addVendor_args args = new addVendor_args();
1548
        args.setVendor(vendor);
1549
        args.write(prot);
1550
        prot.writeMessageEnd();
1551
      }
1552
 
1553
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1554
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1555
          throw new IllegalStateException("Method call not finished!");
1556
        }
1557
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1558
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1559
        return (new Client(prot)).recv_addVendor();
1560
      }
1561
    }
1562
 
1563
    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 {
1564
      checkReady();
1565
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1566
      this.___currentMethod = method_call;
1567
      ___manager.call(method_call);
1568
    }
1569
 
1570
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1571
      private long warehouse_id;
1572
      private String timestamp;
1573
      private Map<String,Long> availability;
1574
      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 {
1575
        super(client, protocolFactory, transport, resultHandler, false);
1576
        this.warehouse_id = warehouse_id;
1577
        this.timestamp = timestamp;
1578
        this.availability = availability;
1579
      }
1580
 
1581
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1582
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1583
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1584
        args.setWarehouse_id(warehouse_id);
1585
        args.setTimestamp(timestamp);
1586
        args.setAvailability(availability);
1587
        args.write(prot);
1588
        prot.writeMessageEnd();
1589
      }
1590
 
1591
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1592
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1593
          throw new IllegalStateException("Method call not finished!");
1594
        }
1595
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1596
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1597
        (new Client(prot)).recv_updateInventoryHistory();
1598
      }
1599
    }
1600
 
1601
    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 {
1602
      checkReady();
1603
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1604
      this.___currentMethod = method_call;
1605
      ___manager.call(method_call);
1606
    }
1607
 
1608
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1609
      private long warehouse_id;
1610
      private String timestamp;
1611
      private Map<String,Long> availability;
1612
      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 {
1613
        super(client, protocolFactory, transport, resultHandler, false);
1614
        this.warehouse_id = warehouse_id;
1615
        this.timestamp = timestamp;
1616
        this.availability = availability;
1617
      }
1618
 
1619
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1620
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1621
        updateInventory_args args = new updateInventory_args();
1622
        args.setWarehouse_id(warehouse_id);
1623
        args.setTimestamp(timestamp);
1624
        args.setAvailability(availability);
1625
        args.write(prot);
1626
        prot.writeMessageEnd();
1627
      }
1628
 
1629
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1630
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1631
          throw new IllegalStateException("Method call not finished!");
1632
        }
1633
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1634
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1635
        (new Client(prot)).recv_updateInventory();
1636
      }
1637
    }
1638
 
1639
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
1640
      checkReady();
1641
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1642
      this.___currentMethod = method_call;
1643
      ___manager.call(method_call);
1644
    }
1645
 
1646
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1647
      private long itemId;
1648
      private long warehouseId;
1649
      private long quantity;
1650
      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 {
1651
        super(client, protocolFactory, transport, resultHandler, false);
1652
        this.itemId = itemId;
1653
        this.warehouseId = warehouseId;
1654
        this.quantity = quantity;
1655
      }
1656
 
1657
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1658
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1659
        addInventory_args args = new addInventory_args();
1660
        args.setItemId(itemId);
1661
        args.setWarehouseId(warehouseId);
1662
        args.setQuantity(quantity);
1663
        args.write(prot);
1664
        prot.writeMessageEnd();
1665
      }
1666
 
1667
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1668
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1669
          throw new IllegalStateException("Method call not finished!");
1670
        }
1671
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1672
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1673
        (new Client(prot)).recv_addInventory();
1674
      }
1675
    }
1676
 
1677
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1678
      checkReady();
1679
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1680
      this.___currentMethod = method_call;
1681
      ___manager.call(method_call);
1682
    }
1683
 
1684
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1685
      private long warehouse_id;
1686
      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 {
1687
        super(client, protocolFactory, transport, resultHandler, false);
1688
        this.warehouse_id = warehouse_id;
1689
      }
1690
 
1691
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1692
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1693
        retireWarehouse_args args = new retireWarehouse_args();
1694
        args.setWarehouse_id(warehouse_id);
1695
        args.write(prot);
1696
        prot.writeMessageEnd();
1697
      }
1698
 
1699
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1701
          throw new IllegalStateException("Method call not finished!");
1702
        }
1703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1705
        (new Client(prot)).recv_retireWarehouse();
1706
      }
1707
    }
1708
 
1709
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
1710
      checkReady();
1711
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
1712
      this.___currentMethod = method_call;
1713
      ___manager.call(method_call);
1714
    }
1715
 
1716
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
1717
      private long item_id;
1718
      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 {
1719
        super(client, protocolFactory, transport, resultHandler, false);
1720
        this.item_id = item_id;
1721
      }
1722
 
1723
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1724
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1725
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
1726
        args.setItem_id(item_id);
1727
        args.write(prot);
1728
        prot.writeMessageEnd();
1729
      }
1730
 
1731
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
1732
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1733
          throw new IllegalStateException("Method call not finished!");
1734
        }
1735
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1736
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1737
        return (new Client(prot)).recv_getItemInventoryByItemId();
1738
      }
1739
    }
1740
 
1741
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1742
      checkReady();
1743
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
1744
      this.___currentMethod = method_call;
1745
      ___manager.call(method_call);
1746
    }
1747
 
1748
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1749
      private long warehouse_id;
1750
      private long item_id;
1751
      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 {
1752
        super(client, protocolFactory, transport, resultHandler, false);
1753
        this.warehouse_id = warehouse_id;
1754
        this.item_id = item_id;
1755
      }
1756
 
1757
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1758
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1759
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
1760
        args.setWarehouse_id(warehouse_id);
1761
        args.setItem_id(item_id);
1762
        args.write(prot);
1763
        prot.writeMessageEnd();
1764
      }
1765
 
1766
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1767
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1768
          throw new IllegalStateException("Method call not finished!");
1769
        }
1770
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1771
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1772
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
1773
      }
1774
    }
1775
 
5978 rajveer 1776
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 1777
      checkReady();
5978 rajveer 1778
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1779
      this.___currentMethod = method_call;
1780
      ___manager.call(method_call);
1781
    }
1782
 
1783
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1784
      private long itemId;
5978 rajveer 1785
      private long sourceId;
1786
      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 1787
        super(client, protocolFactory, transport, resultHandler, false);
1788
        this.itemId = itemId;
5978 rajveer 1789
        this.sourceId = sourceId;
5945 mandeep.dh 1790
      }
1791
 
1792
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1793
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1794
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
1795
        args.setItemId(itemId);
5978 rajveer 1796
        args.setSourceId(sourceId);
5945 mandeep.dh 1797
        args.write(prot);
1798
        prot.writeMessageEnd();
1799
      }
1800
 
1801
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1802
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1803
          throw new IllegalStateException("Method call not finished!");
1804
        }
1805
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1806
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1807
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
1808
      }
1809
    }
1810
 
1811
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
1812
      checkReady();
1813
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
1814
      this.___currentMethod = method_call;
1815
      ___manager.call(method_call);
1816
    }
1817
 
1818
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
1819
      private boolean isActive;
1820
      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 {
1821
        super(client, protocolFactory, transport, resultHandler, false);
1822
        this.isActive = isActive;
1823
      }
1824
 
1825
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1826
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
1827
        getAllWarehouses_args args = new getAllWarehouses_args();
1828
        args.setIsActive(isActive);
1829
        args.write(prot);
1830
        prot.writeMessageEnd();
1831
      }
1832
 
1833
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1834
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1835
          throw new IllegalStateException("Method call not finished!");
1836
        }
1837
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1838
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1839
        return (new Client(prot)).recv_getAllWarehouses();
1840
      }
1841
    }
1842
 
1843
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1844
      checkReady();
1845
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1846
      this.___currentMethod = method_call;
1847
      ___manager.call(method_call);
1848
    }
1849
 
1850
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1851
      private long warehouse_id;
1852
      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 {
1853
        super(client, protocolFactory, transport, resultHandler, false);
1854
        this.warehouse_id = warehouse_id;
1855
      }
1856
 
1857
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1858
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1859
        getWarehouse_args args = new getWarehouse_args();
1860
        args.setWarehouse_id(warehouse_id);
1861
        args.write(prot);
1862
        prot.writeMessageEnd();
1863
      }
1864
 
1865
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
1866
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1867
          throw new IllegalStateException("Method call not finished!");
1868
        }
1869
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1870
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1871
        return (new Client(prot)).recv_getWarehouse();
1872
      }
1873
    }
1874
 
1875
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1876
      checkReady();
1877
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1878
      this.___currentMethod = method_call;
1879
      ___manager.call(method_call);
1880
    }
1881
 
1882
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1883
      private long warehouse_id;
1884
      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 {
1885
        super(client, protocolFactory, transport, resultHandler, false);
1886
        this.warehouse_id = warehouse_id;
1887
      }
1888
 
1889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1891
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
1892
        args.setWarehouse_id(warehouse_id);
1893
        args.write(prot);
1894
        prot.writeMessageEnd();
1895
      }
1896
 
1897
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1898
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1899
          throw new IllegalStateException("Method call not finished!");
1900
        }
1901
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1902
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1903
        return (new Client(prot)).recv_getAllItemsForWarehouse();
1904
      }
1905
    }
1906
 
5967 rajveer 1907
    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 1908
      checkReady();
5967 rajveer 1909
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1910
      this.___currentMethod = method_call;
1911
      ___manager.call(method_call);
1912
    }
1913
 
5967 rajveer 1914
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
1915
      private long itemId;
1916
      private long warehouseId;
1917
      private long sourceId;
1918
      private long orderId;
1919
      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 {
1920
        super(client, protocolFactory, transport, resultHandler, false);
1921
        this.itemId = itemId;
1922
        this.warehouseId = warehouseId;
1923
        this.sourceId = sourceId;
1924
        this.orderId = orderId;
1925
      }
1926
 
1927
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1928
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
1929
        isOrderBillable_args args = new isOrderBillable_args();
1930
        args.setItemId(itemId);
1931
        args.setWarehouseId(warehouseId);
1932
        args.setSourceId(sourceId);
1933
        args.setOrderId(orderId);
1934
        args.write(prot);
1935
        prot.writeMessageEnd();
1936
      }
1937
 
1938
      public boolean getResult() throws org.apache.thrift.TException {
1939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1940
          throw new IllegalStateException("Method call not finished!");
1941
        }
1942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1944
        return (new Client(prot)).recv_isOrderBillable();
1945
      }
1946
    }
1947
 
1948
    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 {
1949
      checkReady();
1950
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
1951
      this.___currentMethod = method_call;
1952
      ___manager.call(method_call);
1953
    }
1954
 
5945 mandeep.dh 1955
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1956
      private long itemId;
1957
      private long warehouseId;
5967 rajveer 1958
      private long sourceId;
1959
      private long orderId;
1960
      private long createdTimestamp;
1961
      private long promisedShippingTimestamp;
5945 mandeep.dh 1962
      private double quantity;
5967 rajveer 1963
      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 1964
        super(client, protocolFactory, transport, resultHandler, false);
1965
        this.itemId = itemId;
1966
        this.warehouseId = warehouseId;
5967 rajveer 1967
        this.sourceId = sourceId;
1968
        this.orderId = orderId;
1969
        this.createdTimestamp = createdTimestamp;
1970
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 1971
        this.quantity = quantity;
1972
      }
1973
 
1974
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1975
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1976
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
1977
        args.setItemId(itemId);
1978
        args.setWarehouseId(warehouseId);
5967 rajveer 1979
        args.setSourceId(sourceId);
1980
        args.setOrderId(orderId);
1981
        args.setCreatedTimestamp(createdTimestamp);
1982
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 1983
        args.setQuantity(quantity);
1984
        args.write(prot);
1985
        prot.writeMessageEnd();
1986
      }
1987
 
1988
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
1989
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1990
          throw new IllegalStateException("Method call not finished!");
1991
        }
1992
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1994
        return (new Client(prot)).recv_reserveItemInWarehouse();
1995
      }
1996
    }
1997
 
5967 rajveer 1998
    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 1999
      checkReady();
5967 rajveer 2000
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2001
      this.___currentMethod = method_call;
2002
      ___manager.call(method_call);
2003
    }
2004
 
2005
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2006
      private long itemId;
2007
      private long warehouseId;
5967 rajveer 2008
      private long sourceId;
2009
      private long orderId;
5945 mandeep.dh 2010
      private double quantity;
5967 rajveer 2011
      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 2012
        super(client, protocolFactory, transport, resultHandler, false);
2013
        this.itemId = itemId;
2014
        this.warehouseId = warehouseId;
5967 rajveer 2015
        this.sourceId = sourceId;
2016
        this.orderId = orderId;
5945 mandeep.dh 2017
        this.quantity = quantity;
2018
      }
2019
 
2020
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2021
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2022
        reduceReservationCount_args args = new reduceReservationCount_args();
2023
        args.setItemId(itemId);
2024
        args.setWarehouseId(warehouseId);
5967 rajveer 2025
        args.setSourceId(sourceId);
2026
        args.setOrderId(orderId);
5945 mandeep.dh 2027
        args.setQuantity(quantity);
2028
        args.write(prot);
2029
        prot.writeMessageEnd();
2030
      }
2031
 
2032
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2033
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2034
          throw new IllegalStateException("Method call not finished!");
2035
        }
2036
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2037
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2038
        return (new Client(prot)).recv_reduceReservationCount();
2039
      }
2040
    }
2041
 
2042
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2043
      checkReady();
2044
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2045
      this.___currentMethod = method_call;
2046
      ___manager.call(method_call);
2047
    }
2048
 
2049
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2050
      private long itemId;
2051
      private long vendorId;
2052
      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 {
2053
        super(client, protocolFactory, transport, resultHandler, false);
2054
        this.itemId = itemId;
2055
        this.vendorId = vendorId;
2056
      }
2057
 
2058
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2059
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2060
        getItemPricing_args args = new getItemPricing_args();
2061
        args.setItemId(itemId);
2062
        args.setVendorId(vendorId);
2063
        args.write(prot);
2064
        prot.writeMessageEnd();
2065
      }
2066
 
2067
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
2068
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2069
          throw new IllegalStateException("Method call not finished!");
2070
        }
2071
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2072
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2073
        return (new Client(prot)).recv_getItemPricing();
2074
      }
2075
    }
2076
 
2077
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2078
      checkReady();
2079
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2080
      this.___currentMethod = method_call;
2081
      ___manager.call(method_call);
2082
    }
2083
 
2084
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2085
      private long itemId;
2086
      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 {
2087
        super(client, protocolFactory, transport, resultHandler, false);
2088
        this.itemId = itemId;
2089
      }
2090
 
2091
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2092
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2093
        getAllItemPricing_args args = new getAllItemPricing_args();
2094
        args.setItemId(itemId);
2095
        args.write(prot);
2096
        prot.writeMessageEnd();
2097
      }
2098
 
2099
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2100
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2101
          throw new IllegalStateException("Method call not finished!");
2102
        }
2103
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2104
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2105
        return (new Client(prot)).recv_getAllItemPricing();
2106
      }
2107
    }
2108
 
2109
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2110
      checkReady();
2111
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
2112
      this.___currentMethod = method_call;
2113
      ___manager.call(method_call);
2114
    }
2115
 
2116
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2117
      private VendorItemPricing vendorItemPricing;
2118
      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 {
2119
        super(client, protocolFactory, transport, resultHandler, false);
2120
        this.vendorItemPricing = vendorItemPricing;
2121
      }
2122
 
2123
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2124
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2125
        addVendorItemPricing_args args = new addVendorItemPricing_args();
2126
        args.setVendorItemPricing(vendorItemPricing);
2127
        args.write(prot);
2128
        prot.writeMessageEnd();
2129
      }
2130
 
2131
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2132
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2133
          throw new IllegalStateException("Method call not finished!");
2134
        }
2135
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2136
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2137
        (new Client(prot)).recv_addVendorItemPricing();
2138
      }
2139
    }
2140
 
2141
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
2142
      checkReady();
2143
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2144
      this.___currentMethod = method_call;
2145
      ___manager.call(method_call);
2146
    }
2147
 
2148
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2149
      private long vendorId;
2150
      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 {
2151
        super(client, protocolFactory, transport, resultHandler, false);
2152
        this.vendorId = vendorId;
2153
      }
2154
 
2155
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2156
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2157
        getVendor_args args = new getVendor_args();
2158
        args.setVendorId(vendorId);
2159
        args.write(prot);
2160
        prot.writeMessageEnd();
2161
      }
2162
 
2163
      public Vendor getResult() throws org.apache.thrift.TException {
2164
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2165
          throw new IllegalStateException("Method call not finished!");
2166
        }
2167
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2168
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2169
        return (new Client(prot)).recv_getVendor();
2170
      }
2171
    }
2172
 
2173
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
2174
      checkReady();
2175
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
2176
      this.___currentMethod = method_call;
2177
      ___manager.call(method_call);
2178
    }
2179
 
2180
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2181
      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 {
2182
        super(client, protocolFactory, transport, resultHandler, false);
2183
      }
2184
 
2185
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2186
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2187
        getAllVendors_args args = new getAllVendors_args();
2188
        args.write(prot);
2189
        prot.writeMessageEnd();
2190
      }
2191
 
2192
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2194
          throw new IllegalStateException("Method call not finished!");
2195
        }
2196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2198
        return (new Client(prot)).recv_getAllVendors();
2199
      }
2200
    }
2201
 
2202
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2203
      checkReady();
2204
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2205
      this.___currentMethod = method_call;
2206
      ___manager.call(method_call);
2207
    }
2208
 
2209
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2210
      private String key;
2211
      private VendorItemMapping vendorItemMapping;
2212
      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 {
2213
        super(client, protocolFactory, transport, resultHandler, false);
2214
        this.key = key;
2215
        this.vendorItemMapping = vendorItemMapping;
2216
      }
2217
 
2218
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2219
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2220
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2221
        args.setKey(key);
2222
        args.setVendorItemMapping(vendorItemMapping);
2223
        args.write(prot);
2224
        prot.writeMessageEnd();
2225
      }
2226
 
2227
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2228
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2229
          throw new IllegalStateException("Method call not finished!");
2230
        }
2231
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2232
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2233
        (new Client(prot)).recv_addVendorItemMapping();
2234
      }
2235
    }
2236
 
2237
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2238
      checkReady();
2239
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2240
      this.___currentMethod = method_call;
2241
      ___manager.call(method_call);
2242
    }
2243
 
2244
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2245
      private long itemId;
2246
      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 {
2247
        super(client, protocolFactory, transport, resultHandler, false);
2248
        this.itemId = itemId;
2249
      }
2250
 
2251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2253
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2254
        args.setItemId(itemId);
2255
        args.write(prot);
2256
        prot.writeMessageEnd();
2257
      }
2258
 
2259
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2260
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2261
          throw new IllegalStateException("Method call not finished!");
2262
        }
2263
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2264
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2265
        return (new Client(prot)).recv_getVendorItemMappings();
2266
      }
2267
    }
2268
 
2269
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2270
      checkReady();
2271
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2272
      this.___currentMethod = method_call;
2273
      ___manager.call(method_call);
2274
    }
2275
 
2276
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2277
      private long vendorid;
2278
      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 {
2279
        super(client, protocolFactory, transport, resultHandler, false);
2280
        this.vendorid = vendorid;
2281
      }
2282
 
2283
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2284
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2285
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2286
        args.setVendorid(vendorid);
2287
        args.write(prot);
2288
        prot.writeMessageEnd();
2289
      }
2290
 
2291
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2292
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2293
          throw new IllegalStateException("Method call not finished!");
2294
        }
2295
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2296
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2297
        return (new Client(prot)).recv_getPendingOrdersInventory();
2298
      }
2299
    }
2300
 
2301
    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 {
2302
      checkReady();
2303
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2304
      this.___currentMethod = method_call;
2305
      ___manager.call(method_call);
2306
    }
2307
 
2308
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2309
      private WarehouseType warehouseType;
2310
      private InventoryType inventoryType;
2311
      private long vendorId;
2312
      private long billingWarehouseId;
2313
      private long shippingWarehouseId;
2314
      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 {
2315
        super(client, protocolFactory, transport, resultHandler, false);
2316
        this.warehouseType = warehouseType;
2317
        this.inventoryType = inventoryType;
2318
        this.vendorId = vendorId;
2319
        this.billingWarehouseId = billingWarehouseId;
2320
        this.shippingWarehouseId = shippingWarehouseId;
2321
      }
2322
 
2323
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2324
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2325
        getWarehouses_args args = new getWarehouses_args();
2326
        args.setWarehouseType(warehouseType);
2327
        args.setInventoryType(inventoryType);
2328
        args.setVendorId(vendorId);
2329
        args.setBillingWarehouseId(billingWarehouseId);
2330
        args.setShippingWarehouseId(shippingWarehouseId);
2331
        args.write(prot);
2332
        prot.writeMessageEnd();
2333
      }
2334
 
2335
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2336
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2337
          throw new IllegalStateException("Method call not finished!");
2338
        }
2339
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2340
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2341
        return (new Client(prot)).recv_getWarehouses();
2342
      }
2343
    }
2344
 
2345
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2346
      checkReady();
2347
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2348
      this.___currentMethod = method_call;
2349
      ___manager.call(method_call);
2350
    }
2351
 
2352
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2353
      private String itemKey;
2354
      private long vendorId;
2355
      private long quantity;
2356
      private long warehouseId;
2357
      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 {
2358
        super(client, protocolFactory, transport, resultHandler, false);
2359
        this.itemKey = itemKey;
2360
        this.vendorId = vendorId;
2361
        this.quantity = quantity;
2362
        this.warehouseId = warehouseId;
2363
      }
2364
 
2365
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2366
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2367
        resetAvailability_args args = new resetAvailability_args();
2368
        args.setItemKey(itemKey);
2369
        args.setVendorId(vendorId);
2370
        args.setQuantity(quantity);
2371
        args.setWarehouseId(warehouseId);
2372
        args.write(prot);
2373
        prot.writeMessageEnd();
2374
      }
2375
 
2376
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2377
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2378
          throw new IllegalStateException("Method call not finished!");
2379
        }
2380
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2381
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2382
        (new Client(prot)).recv_resetAvailability();
2383
      }
2384
    }
2385
 
2386
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2387
      checkReady();
2388
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2389
      this.___currentMethod = method_call;
2390
      ___manager.call(method_call);
2391
    }
2392
 
2393
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2394
      private long warehouseId;
2395
      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 {
2396
        super(client, protocolFactory, transport, resultHandler, false);
2397
        this.warehouseId = warehouseId;
2398
      }
2399
 
2400
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2401
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2402
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2403
        args.setWarehouseId(warehouseId);
2404
        args.write(prot);
2405
        prot.writeMessageEnd();
2406
      }
2407
 
2408
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2409
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2410
          throw new IllegalStateException("Method call not finished!");
2411
        }
2412
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2413
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2414
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2415
      }
2416
    }
2417
 
2418
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2419
      checkReady();
2420
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2421
      this.___currentMethod = method_call;
2422
      ___manager.call(method_call);
2423
    }
2424
 
2425
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2426
      private long warehouseId;
2427
      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 {
2428
        super(client, protocolFactory, transport, resultHandler, false);
2429
        this.warehouseId = warehouseId;
2430
      }
2431
 
2432
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2433
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2434
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2435
        args.setWarehouseId(warehouseId);
2436
        args.write(prot);
2437
        prot.writeMessageEnd();
2438
      }
2439
 
2440
      public List<String> getResult() throws org.apache.thrift.TException {
2441
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2442
          throw new IllegalStateException("Method call not finished!");
2443
        }
2444
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2445
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2446
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2447
      }
2448
    }
2449
 
2450
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2451
      checkReady();
2452
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2453
      this.___currentMethod = method_call;
2454
      ___manager.call(method_call);
2455
    }
2456
 
2457
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2458
      private String itemKey;
2459
      private long warehouseId;
2460
      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 {
2461
        super(client, protocolFactory, transport, resultHandler, false);
2462
        this.itemKey = itemKey;
2463
        this.warehouseId = warehouseId;
2464
      }
2465
 
2466
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2467
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2468
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2469
        args.setItemKey(itemKey);
2470
        args.setWarehouseId(warehouseId);
2471
        args.write(prot);
2472
        prot.writeMessageEnd();
2473
      }
2474
 
2475
      public void getResult() throws org.apache.thrift.TException {
2476
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2477
          throw new IllegalStateException("Method call not finished!");
2478
        }
2479
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2480
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2481
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2482
      }
2483
    }
2484
 
2485
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2486
      checkReady();
2487
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2488
      this.___currentMethod = method_call;
2489
      ___manager.call(method_call);
2490
    }
2491
 
2492
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2493
      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 {
2494
        super(client, protocolFactory, transport, resultHandler, false);
2495
      }
2496
 
2497
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2498
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2499
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2500
        args.write(prot);
2501
        prot.writeMessageEnd();
2502
      }
2503
 
2504
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2505
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2506
          throw new IllegalStateException("Method call not finished!");
2507
        }
2508
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2509
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2510
        return (new Client(prot)).recv_getIgnoredItemKeys();
2511
      }
2512
    }
2513
 
2514
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2515
      checkReady();
2516
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2517
      this.___currentMethod = method_call;
2518
      ___manager.call(method_call);
2519
    }
2520
 
2521
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2522
      private long itemId;
2523
      private long warehouseId;
2524
      private long quantity;
2525
      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 {
2526
        super(client, protocolFactory, transport, resultHandler, false);
2527
        this.itemId = itemId;
2528
        this.warehouseId = warehouseId;
2529
        this.quantity = quantity;
2530
      }
2531
 
2532
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2533
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2534
        addBadInventory_args args = new addBadInventory_args();
2535
        args.setItemId(itemId);
2536
        args.setWarehouseId(warehouseId);
2537
        args.setQuantity(quantity);
2538
        args.write(prot);
2539
        prot.writeMessageEnd();
2540
      }
2541
 
2542
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2543
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2544
          throw new IllegalStateException("Method call not finished!");
2545
        }
2546
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2547
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2548
        (new Client(prot)).recv_addBadInventory();
2549
      }
2550
    }
2551
 
2552
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2553
      checkReady();
2554
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2555
      this.___currentMethod = method_call;
2556
      ___manager.call(method_call);
2557
    }
2558
 
2559
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2560
      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 {
2561
        super(client, protocolFactory, transport, resultHandler, false);
2562
      }
2563
 
2564
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2565
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2566
        getShippingLocations_args args = new getShippingLocations_args();
2567
        args.write(prot);
2568
        prot.writeMessageEnd();
2569
      }
2570
 
2571
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2572
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2573
          throw new IllegalStateException("Method call not finished!");
2574
        }
2575
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2576
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2577
        return (new Client(prot)).recv_getShippingLocations();
2578
      }
2579
    }
2580
 
2581
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2582
      checkReady();
2583
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
2584
      this.___currentMethod = method_call;
2585
      ___manager.call(method_call);
2586
    }
2587
 
2588
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2589
      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 {
2590
        super(client, protocolFactory, transport, resultHandler, false);
2591
      }
2592
 
2593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2595
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
2596
        args.write(prot);
2597
        prot.writeMessageEnd();
2598
      }
2599
 
2600
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
2601
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2602
          throw new IllegalStateException("Method call not finished!");
2603
        }
2604
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2605
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2606
        return (new Client(prot)).recv_getAllVendorItemMappings();
2607
      }
2608
    }
2609
 
2610
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
2611
      checkReady();
2612
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2613
      this.___currentMethod = method_call;
2614
      ___manager.call(method_call);
2615
    }
2616
 
2617
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
2618
      private long warehouseId;
2619
      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 {
2620
        super(client, protocolFactory, transport, resultHandler, false);
2621
        this.warehouseId = warehouseId;
2622
      }
2623
 
2624
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2625
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2626
        getInventorySnapshot_args args = new getInventorySnapshot_args();
2627
        args.setWarehouseId(warehouseId);
2628
        args.write(prot);
2629
        prot.writeMessageEnd();
2630
      }
2631
 
2632
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
2633
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2634
          throw new IllegalStateException("Method call not finished!");
2635
        }
2636
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2637
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2638
        return (new Client(prot)).recv_getInventorySnapshot();
2639
      }
2640
    }
2641
 
2642
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
2643
      checkReady();
2644
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
2645
      this.___currentMethod = method_call;
2646
      ___manager.call(method_call);
2647
    }
2648
 
2649
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
2650
      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 {
2651
        super(client, protocolFactory, transport, resultHandler, false);
2652
      }
2653
 
2654
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2655
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
2656
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
2657
        args.write(prot);
2658
        prot.writeMessageEnd();
2659
      }
2660
 
2661
      public void getResult() throws org.apache.thrift.TException {
2662
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2663
          throw new IllegalStateException("Method call not finished!");
2664
        }
2665
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2666
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2667
        (new Client(prot)).recv_clearItemAvailabilityCache();
2668
      }
2669
    }
2670
 
2671
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
2672
      checkReady();
2673
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
2674
      this.___currentMethod = method_call;
2675
      ___manager.call(method_call);
2676
    }
2677
 
2678
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
2679
      private long warehouseId;
2680
      private String vendorString;
2681
      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 {
2682
        super(client, protocolFactory, transport, resultHandler, false);
2683
        this.warehouseId = warehouseId;
2684
        this.vendorString = vendorString;
2685
      }
2686
 
2687
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2688
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
2689
        updateVendorString_args args = new updateVendorString_args();
2690
        args.setWarehouseId(warehouseId);
2691
        args.setVendorString(vendorString);
2692
        args.write(prot);
2693
        prot.writeMessageEnd();
2694
      }
2695
 
2696
      public void getResult() throws org.apache.thrift.TException {
2697
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2698
          throw new IllegalStateException("Method call not finished!");
2699
        }
2700
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2701
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2702
        (new Client(prot)).recv_updateVendorString();
2703
      }
2704
    }
2705
 
6096 amit.gupta 2706
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
2707
      checkReady();
2708
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2709
      this.___currentMethod = method_call;
2710
      ___manager.call(method_call);
2711
    }
2712
 
2713
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2714
      private long item_id;
2715
      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 {
2716
        super(client, protocolFactory, transport, resultHandler, false);
2717
        this.item_id = item_id;
2718
      }
2719
 
2720
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2721
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2722
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
2723
        args.setItem_id(item_id);
2724
        args.write(prot);
2725
        prot.writeMessageEnd();
2726
      }
2727
 
2728
      public void getResult() throws org.apache.thrift.TException {
2729
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2730
          throw new IllegalStateException("Method call not finished!");
2731
        }
2732
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2733
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2734
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2735
      }
2736
    }
2737
 
6467 amar.kumar 2738
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
2739
      checkReady();
2740
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2741
      this.___currentMethod = method_call;
2742
      ___manager.call(method_call);
2743
    }
2744
 
2745
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2746
      private long vendorId;
2747
      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 {
2748
        super(client, protocolFactory, transport, resultHandler, false);
2749
        this.vendorId = vendorId;
2750
      }
2751
 
2752
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2753
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2754
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
2755
        args.setVendorId(vendorId);
2756
        args.write(prot);
2757
        prot.writeMessageEnd();
2758
      }
2759
 
2760
      public long getResult() throws org.apache.thrift.TException {
2761
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2762
          throw new IllegalStateException("Method call not finished!");
2763
        }
2764
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2765
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2766
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2767
      }
2768
    }
2769
 
6484 amar.kumar 2770
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2771
      checkReady();
2772
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
2773
      this.___currentMethod = method_call;
2774
      ___manager.call(method_call);
2775
    }
2776
 
2777
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2778
      private List<Long> item_ids;
2779
      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 {
2780
        super(client, protocolFactory, transport, resultHandler, false);
2781
        this.item_ids = item_ids;
2782
      }
2783
 
2784
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2785
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2786
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
2787
        args.setItem_ids(item_ids);
2788
        args.write(prot);
2789
        prot.writeMessageEnd();
2790
      }
2791
 
2792
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2793
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2794
          throw new IllegalStateException("Method call not finished!");
2795
        }
2796
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2797
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2798
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
2799
      }
2800
    }
2801
 
6531 vikram.rag 2802
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
2803
      checkReady();
2804
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
2805
      this.___currentMethod = method_call;
2806
      ___manager.call(method_call);
2807
    }
2808
 
2809
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2810
      private List<Long> vendorIds;
2811
      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 {
2812
        super(client, protocolFactory, transport, resultHandler, false);
2813
        this.vendorIds = vendorIds;
2814
      }
2815
 
2816
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2817
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2818
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
2819
        args.setVendorIds(vendorIds);
2820
        args.write(prot);
2821
        prot.writeMessageEnd();
2822
      }
2823
 
2824
      public List<Long> getResult() throws org.apache.thrift.TException {
2825
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2826
          throw new IllegalStateException("Method call not finished!");
2827
        }
2828
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2830
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
2831
      }
2832
    }
2833
 
2834
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
2835
      checkReady();
2836
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
2837
      this.___currentMethod = method_call;
2838
      ___manager.call(method_call);
2839
    }
2840
 
2841
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
2842
      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 {
2843
        super(client, protocolFactory, transport, resultHandler, false);
2844
      }
2845
 
2846
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2847
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
2848
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
2849
        args.write(prot);
2850
        prot.writeMessageEnd();
2851
      }
2852
 
2853
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
2854
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2855
          throw new IllegalStateException("Method call not finished!");
2856
        }
2857
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2858
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2859
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
2860
      }
2861
    }
2862
 
2863
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
2864
      checkReady();
2865
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2866
      this.___currentMethod = method_call;
2867
      ___manager.call(method_call);
2868
    }
2869
 
2870
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
2871
      private long item_id;
2872
      private long warehouse_id;
2873
      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 {
2874
        super(client, protocolFactory, transport, resultHandler, false);
2875
        this.item_id = item_id;
2876
        this.warehouse_id = warehouse_id;
2877
      }
2878
 
2879
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2880
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
2881
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
2882
        args.setItem_id(item_id);
2883
        args.setWarehouse_id(warehouse_id);
2884
        args.write(prot);
2885
        prot.writeMessageEnd();
2886
      }
2887
 
2888
      public boolean getResult() throws org.apache.thrift.TException {
2889
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2890
          throw new IllegalStateException("Method call not finished!");
2891
        }
2892
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2893
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2894
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
2895
      }
2896
    }
2897
 
2898
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
2899
      checkReady();
2900
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2901
      this.___currentMethod = method_call;
2902
      ___manager.call(method_call);
2903
    }
2904
 
2905
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
2906
      private long item_id;
2907
      private long warehouse_id;
2908
      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 {
2909
        super(client, protocolFactory, transport, resultHandler, false);
2910
        this.item_id = item_id;
2911
        this.warehouse_id = warehouse_id;
2912
      }
2913
 
2914
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2915
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
2916
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
2917
        args.setItem_id(item_id);
2918
        args.setWarehouse_id(warehouse_id);
2919
        args.write(prot);
2920
        prot.writeMessageEnd();
2921
      }
2922
 
2923
      public boolean getResult() throws org.apache.thrift.TException {
2924
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2925
          throw new IllegalStateException("Method call not finished!");
2926
        }
2927
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2928
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2929
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
2930
      }
2931
    }
2932
 
2933
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
2934
      checkReady();
2935
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
2936
      this.___currentMethod = method_call;
2937
      ___manager.call(method_call);
2938
    }
2939
 
2940
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2941
      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 {
2942
        super(client, protocolFactory, transport, resultHandler, false);
2943
      }
2944
 
2945
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2946
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2947
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
2948
        args.write(prot);
2949
        prot.writeMessageEnd();
2950
      }
2951
 
2952
      public int getResult() throws org.apache.thrift.TException {
2953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2954
          throw new IllegalStateException("Method call not finished!");
2955
        }
2956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2958
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
2959
      }
2960
    }
2961
 
2962
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
2963
      checkReady();
2964
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
2965
      this.___currentMethod = method_call;
2966
      ___manager.call(method_call);
2967
    }
2968
 
2969
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
2970
      private int offset;
2971
      private int limit;
2972
      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 {
2973
        super(client, protocolFactory, transport, resultHandler, false);
2974
        this.offset = offset;
2975
        this.limit = limit;
2976
      }
2977
 
2978
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2979
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
2980
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
2981
        args.setOffset(offset);
2982
        args.setLimit(limit);
2983
        args.write(prot);
2984
        prot.writeMessageEnd();
2985
      }
2986
 
2987
      public List<Long> getResult() throws org.apache.thrift.TException {
2988
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2989
          throw new IllegalStateException("Method call not finished!");
2990
        }
2991
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2993
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
2994
      }
2995
    }
2996
 
5945 mandeep.dh 2997
  }
2998
 
2999
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3000
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3001
    public Processor(I iface) {
3002
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3003
    }
3004
 
3005
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3006
      super(iface, getProcessMap(processMap));
3007
    }
3008
 
3009
    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) {
3010
      processMap.put("addWarehouse", new addWarehouse());
3011
      processMap.put("addVendor", new addVendor());
3012
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
3013
      processMap.put("updateInventory", new updateInventory());
3014
      processMap.put("addInventory", new addInventory());
3015
      processMap.put("retireWarehouse", new retireWarehouse());
3016
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
3017
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
3018
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
3019
      processMap.put("getAllWarehouses", new getAllWarehouses());
3020
      processMap.put("getWarehouse", new getWarehouse());
3021
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 3022
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 3023
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
3024
      processMap.put("reduceReservationCount", new reduceReservationCount());
3025
      processMap.put("getItemPricing", new getItemPricing());
3026
      processMap.put("getAllItemPricing", new getAllItemPricing());
3027
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3028
      processMap.put("getVendor", new getVendor());
3029
      processMap.put("getAllVendors", new getAllVendors());
3030
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
3031
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
3032
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
3033
      processMap.put("getWarehouses", new getWarehouses());
3034
      processMap.put("resetAvailability", new resetAvailability());
3035
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
3036
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
3037
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
3038
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
3039
      processMap.put("addBadInventory", new addBadInventory());
3040
      processMap.put("getShippingLocations", new getShippingLocations());
3041
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
3042
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
3043
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
3044
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 3045
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 3046
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 3047
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 3048
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
3049
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3050
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3051
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3052
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3053
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
5945 mandeep.dh 3054
      return processMap;
3055
    }
3056
 
3057
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3058
      public addWarehouse() {
3059
        super("addWarehouse");
3060
      }
3061
 
3062
      protected addWarehouse_args getEmptyArgsInstance() {
3063
        return new addWarehouse_args();
3064
      }
3065
 
3066
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
3067
        addWarehouse_result result = new addWarehouse_result();
3068
        try {
3069
          result.success = iface.addWarehouse(args.warehouse);
3070
          result.setSuccessIsSet(true);
3071
        } catch (InventoryServiceException cex) {
3072
          result.cex = cex;
3073
        }
3074
        return result;
3075
      }
3076
    }
3077
 
3078
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
3079
      public addVendor() {
3080
        super("addVendor");
3081
      }
3082
 
3083
      protected addVendor_args getEmptyArgsInstance() {
3084
        return new addVendor_args();
3085
      }
3086
 
3087
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
3088
        addVendor_result result = new addVendor_result();
3089
        try {
3090
          result.success = iface.addVendor(args.vendor);
3091
          result.setSuccessIsSet(true);
3092
        } catch (InventoryServiceException cex) {
3093
          result.cex = cex;
3094
        }
3095
        return result;
3096
      }
3097
    }
3098
 
3099
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
3100
      public updateInventoryHistory() {
3101
        super("updateInventoryHistory");
3102
      }
3103
 
3104
      protected updateInventoryHistory_args getEmptyArgsInstance() {
3105
        return new updateInventoryHistory_args();
3106
      }
3107
 
3108
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
3109
        updateInventoryHistory_result result = new updateInventoryHistory_result();
3110
        try {
3111
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
3112
        } catch (InventoryServiceException cex) {
3113
          result.cex = cex;
3114
        }
3115
        return result;
3116
      }
3117
    }
3118
 
3119
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
3120
      public updateInventory() {
3121
        super("updateInventory");
3122
      }
3123
 
3124
      protected updateInventory_args getEmptyArgsInstance() {
3125
        return new updateInventory_args();
3126
      }
3127
 
3128
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
3129
        updateInventory_result result = new updateInventory_result();
3130
        try {
3131
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
3132
        } catch (InventoryServiceException cex) {
3133
          result.cex = cex;
3134
        }
3135
        return result;
3136
      }
3137
    }
3138
 
3139
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
3140
      public addInventory() {
3141
        super("addInventory");
3142
      }
3143
 
3144
      protected addInventory_args getEmptyArgsInstance() {
3145
        return new addInventory_args();
3146
      }
3147
 
3148
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
3149
        addInventory_result result = new addInventory_result();
3150
        try {
3151
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
3152
        } catch (InventoryServiceException cex) {
3153
          result.cex = cex;
3154
        }
3155
        return result;
3156
      }
3157
    }
3158
 
3159
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
3160
      public retireWarehouse() {
3161
        super("retireWarehouse");
3162
      }
3163
 
3164
      protected retireWarehouse_args getEmptyArgsInstance() {
3165
        return new retireWarehouse_args();
3166
      }
3167
 
3168
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
3169
        retireWarehouse_result result = new retireWarehouse_result();
3170
        try {
3171
          iface.retireWarehouse(args.warehouse_id);
3172
        } catch (InventoryServiceException cex) {
3173
          result.cex = cex;
3174
        }
3175
        return result;
3176
      }
3177
    }
3178
 
3179
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
3180
      public getItemInventoryByItemId() {
3181
        super("getItemInventoryByItemId");
3182
      }
3183
 
3184
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
3185
        return new getItemInventoryByItemId_args();
3186
      }
3187
 
3188
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
3189
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
3190
        try {
3191
          result.success = iface.getItemInventoryByItemId(args.item_id);
3192
        } catch (InventoryServiceException cex) {
3193
          result.cex = cex;
3194
        }
3195
        return result;
3196
      }
3197
    }
3198
 
3199
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
3200
      public getItemAvailibilityAtWarehouse() {
3201
        super("getItemAvailibilityAtWarehouse");
3202
      }
3203
 
3204
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
3205
        return new getItemAvailibilityAtWarehouse_args();
3206
      }
3207
 
3208
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
3209
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
3210
        try {
3211
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
3212
          result.setSuccessIsSet(true);
3213
        } catch (InventoryServiceException cex) {
3214
          result.cex = cex;
3215
        }
3216
        return result;
3217
      }
3218
    }
3219
 
3220
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
3221
      public getItemAvailabilityAtLocation() {
3222
        super("getItemAvailabilityAtLocation");
3223
      }
3224
 
3225
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
3226
        return new getItemAvailabilityAtLocation_args();
3227
      }
3228
 
3229
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
3230
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
3231
        try {
5978 rajveer 3232
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 3233
        } catch (InventoryServiceException isex) {
3234
          result.isex = isex;
3235
        }
3236
        return result;
3237
      }
3238
    }
3239
 
3240
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
3241
      public getAllWarehouses() {
3242
        super("getAllWarehouses");
3243
      }
3244
 
3245
      protected getAllWarehouses_args getEmptyArgsInstance() {
3246
        return new getAllWarehouses_args();
3247
      }
3248
 
3249
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
3250
        getAllWarehouses_result result = new getAllWarehouses_result();
3251
        try {
3252
          result.success = iface.getAllWarehouses(args.isActive);
3253
        } catch (InventoryServiceException cex) {
3254
          result.cex = cex;
3255
        }
3256
        return result;
3257
      }
3258
    }
3259
 
3260
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
3261
      public getWarehouse() {
3262
        super("getWarehouse");
3263
      }
3264
 
3265
      protected getWarehouse_args getEmptyArgsInstance() {
3266
        return new getWarehouse_args();
3267
      }
3268
 
3269
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
3270
        getWarehouse_result result = new getWarehouse_result();
3271
        try {
3272
          result.success = iface.getWarehouse(args.warehouse_id);
3273
        } catch (InventoryServiceException cex) {
3274
          result.cex = cex;
3275
        }
3276
        return result;
3277
      }
3278
    }
3279
 
3280
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
3281
      public getAllItemsForWarehouse() {
3282
        super("getAllItemsForWarehouse");
3283
      }
3284
 
3285
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
3286
        return new getAllItemsForWarehouse_args();
3287
      }
3288
 
3289
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
3290
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
3291
        try {
3292
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
3293
        } catch (InventoryServiceException cex) {
3294
          result.cex = cex;
3295
        }
3296
        return result;
3297
      }
3298
    }
3299
 
5967 rajveer 3300
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
3301
      public isOrderBillable() {
3302
        super("isOrderBillable");
3303
      }
3304
 
3305
      protected isOrderBillable_args getEmptyArgsInstance() {
3306
        return new isOrderBillable_args();
3307
      }
3308
 
3309
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
3310
        isOrderBillable_result result = new isOrderBillable_result();
3311
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
3312
        result.setSuccessIsSet(true);
3313
        return result;
3314
      }
3315
    }
3316
 
5945 mandeep.dh 3317
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
3318
      public reserveItemInWarehouse() {
3319
        super("reserveItemInWarehouse");
3320
      }
3321
 
3322
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
3323
        return new reserveItemInWarehouse_args();
3324
      }
3325
 
3326
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
3327
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
3328
        try {
5967 rajveer 3329
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 3330
          result.setSuccessIsSet(true);
3331
        } catch (InventoryServiceException cex) {
3332
          result.cex = cex;
3333
        }
3334
        return result;
3335
      }
3336
    }
3337
 
3338
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
3339
      public reduceReservationCount() {
3340
        super("reduceReservationCount");
3341
      }
3342
 
3343
      protected reduceReservationCount_args getEmptyArgsInstance() {
3344
        return new reduceReservationCount_args();
3345
      }
3346
 
3347
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
3348
        reduceReservationCount_result result = new reduceReservationCount_result();
3349
        try {
5967 rajveer 3350
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 3351
          result.setSuccessIsSet(true);
3352
        } catch (InventoryServiceException cex) {
3353
          result.cex = cex;
3354
        }
3355
        return result;
3356
      }
3357
    }
3358
 
3359
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
3360
      public getItemPricing() {
3361
        super("getItemPricing");
3362
      }
3363
 
3364
      protected getItemPricing_args getEmptyArgsInstance() {
3365
        return new getItemPricing_args();
3366
      }
3367
 
3368
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
3369
        getItemPricing_result result = new getItemPricing_result();
3370
        try {
3371
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
3372
        } catch (InventoryServiceException cex) {
3373
          result.cex = cex;
3374
        }
3375
        return result;
3376
      }
3377
    }
3378
 
3379
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
3380
      public getAllItemPricing() {
3381
        super("getAllItemPricing");
3382
      }
3383
 
3384
      protected getAllItemPricing_args getEmptyArgsInstance() {
3385
        return new getAllItemPricing_args();
3386
      }
3387
 
3388
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
3389
        getAllItemPricing_result result = new getAllItemPricing_result();
3390
        try {
3391
          result.success = iface.getAllItemPricing(args.itemId);
3392
        } catch (InventoryServiceException cex) {
3393
          result.cex = cex;
3394
        }
3395
        return result;
3396
      }
3397
    }
3398
 
3399
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
3400
      public addVendorItemPricing() {
3401
        super("addVendorItemPricing");
3402
      }
3403
 
3404
      protected addVendorItemPricing_args getEmptyArgsInstance() {
3405
        return new addVendorItemPricing_args();
3406
      }
3407
 
3408
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
3409
        addVendorItemPricing_result result = new addVendorItemPricing_result();
3410
        try {
3411
          iface.addVendorItemPricing(args.vendorItemPricing);
3412
        } catch (InventoryServiceException cex) {
3413
          result.cex = cex;
3414
        }
3415
        return result;
3416
      }
3417
    }
3418
 
3419
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
3420
      public getVendor() {
3421
        super("getVendor");
3422
      }
3423
 
3424
      protected getVendor_args getEmptyArgsInstance() {
3425
        return new getVendor_args();
3426
      }
3427
 
3428
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
3429
        getVendor_result result = new getVendor_result();
3430
        result.success = iface.getVendor(args.vendorId);
3431
        return result;
3432
      }
3433
    }
3434
 
3435
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
3436
      public getAllVendors() {
3437
        super("getAllVendors");
3438
      }
3439
 
3440
      protected getAllVendors_args getEmptyArgsInstance() {
3441
        return new getAllVendors_args();
3442
      }
3443
 
3444
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
3445
        getAllVendors_result result = new getAllVendors_result();
3446
        result.success = iface.getAllVendors();
3447
        return result;
3448
      }
3449
    }
3450
 
3451
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
3452
      public addVendorItemMapping() {
3453
        super("addVendorItemMapping");
3454
      }
3455
 
3456
      protected addVendorItemMapping_args getEmptyArgsInstance() {
3457
        return new addVendorItemMapping_args();
3458
      }
3459
 
3460
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
3461
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3462
        try {
3463
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
3464
        } catch (InventoryServiceException cex) {
3465
          result.cex = cex;
3466
        }
3467
        return result;
3468
      }
3469
    }
3470
 
3471
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
3472
      public getVendorItemMappings() {
3473
        super("getVendorItemMappings");
3474
      }
3475
 
3476
      protected getVendorItemMappings_args getEmptyArgsInstance() {
3477
        return new getVendorItemMappings_args();
3478
      }
3479
 
3480
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
3481
        getVendorItemMappings_result result = new getVendorItemMappings_result();
3482
        try {
3483
          result.success = iface.getVendorItemMappings(args.itemId);
3484
        } catch (InventoryServiceException cex) {
3485
          result.cex = cex;
3486
        }
3487
        return result;
3488
      }
3489
    }
3490
 
3491
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
3492
      public getPendingOrdersInventory() {
3493
        super("getPendingOrdersInventory");
3494
      }
3495
 
3496
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
3497
        return new getPendingOrdersInventory_args();
3498
      }
3499
 
3500
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
3501
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
3502
        result.success = iface.getPendingOrdersInventory(args.vendorid);
3503
        return result;
3504
      }
3505
    }
3506
 
3507
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
3508
      public getWarehouses() {
3509
        super("getWarehouses");
3510
      }
3511
 
3512
      protected getWarehouses_args getEmptyArgsInstance() {
3513
        return new getWarehouses_args();
3514
      }
3515
 
3516
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
3517
        getWarehouses_result result = new getWarehouses_result();
3518
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
3519
        return result;
3520
      }
3521
    }
3522
 
3523
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
3524
      public resetAvailability() {
3525
        super("resetAvailability");
3526
      }
3527
 
3528
      protected resetAvailability_args getEmptyArgsInstance() {
3529
        return new resetAvailability_args();
3530
      }
3531
 
3532
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
3533
        resetAvailability_result result = new resetAvailability_result();
3534
        try {
3535
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
3536
        } catch (InventoryServiceException cex) {
3537
          result.cex = cex;
3538
        }
3539
        return result;
3540
      }
3541
    }
3542
 
3543
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
3544
      public resetAvailabilityForWarehouse() {
3545
        super("resetAvailabilityForWarehouse");
3546
      }
3547
 
3548
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
3549
        return new resetAvailabilityForWarehouse_args();
3550
      }
3551
 
3552
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
3553
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
3554
        try {
3555
          iface.resetAvailabilityForWarehouse(args.warehouseId);
3556
        } catch (InventoryServiceException cex) {
3557
          result.cex = cex;
3558
        }
3559
        return result;
3560
      }
3561
    }
3562
 
3563
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
3564
      public getItemKeysToBeProcessed() {
3565
        super("getItemKeysToBeProcessed");
3566
      }
3567
 
3568
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
3569
        return new getItemKeysToBeProcessed_args();
3570
      }
3571
 
3572
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
3573
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
3574
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
3575
        return result;
3576
      }
3577
    }
3578
 
3579
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
3580
      public markMissedInventoryUpdatesAsProcessed() {
3581
        super("markMissedInventoryUpdatesAsProcessed");
3582
      }
3583
 
3584
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
3585
        return new markMissedInventoryUpdatesAsProcessed_args();
3586
      }
3587
 
3588
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
3589
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
3590
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
3591
        return result;
3592
      }
3593
    }
3594
 
3595
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
3596
      public getIgnoredItemKeys() {
3597
        super("getIgnoredItemKeys");
3598
      }
3599
 
3600
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
3601
        return new getIgnoredItemKeys_args();
3602
      }
3603
 
3604
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
3605
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
3606
        result.success = iface.getIgnoredItemKeys();
3607
        return result;
3608
      }
3609
    }
3610
 
3611
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
3612
      public addBadInventory() {
3613
        super("addBadInventory");
3614
      }
3615
 
3616
      protected addBadInventory_args getEmptyArgsInstance() {
3617
        return new addBadInventory_args();
3618
      }
3619
 
3620
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
3621
        addBadInventory_result result = new addBadInventory_result();
3622
        try {
3623
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
3624
        } catch (InventoryServiceException cex) {
3625
          result.cex = cex;
3626
        }
3627
        return result;
3628
      }
3629
    }
3630
 
3631
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
3632
      public getShippingLocations() {
3633
        super("getShippingLocations");
3634
      }
3635
 
3636
      protected getShippingLocations_args getEmptyArgsInstance() {
3637
        return new getShippingLocations_args();
3638
      }
3639
 
3640
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
3641
        getShippingLocations_result result = new getShippingLocations_result();
3642
        result.success = iface.getShippingLocations();
3643
        return result;
3644
      }
3645
    }
3646
 
3647
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
3648
      public getAllVendorItemMappings() {
3649
        super("getAllVendorItemMappings");
3650
      }
3651
 
3652
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
3653
        return new getAllVendorItemMappings_args();
3654
      }
3655
 
3656
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
3657
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
3658
        result.success = iface.getAllVendorItemMappings();
3659
        return result;
3660
      }
3661
    }
3662
 
3663
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
3664
      public getInventorySnapshot() {
3665
        super("getInventorySnapshot");
3666
      }
3667
 
3668
      protected getInventorySnapshot_args getEmptyArgsInstance() {
3669
        return new getInventorySnapshot_args();
3670
      }
3671
 
3672
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
3673
        getInventorySnapshot_result result = new getInventorySnapshot_result();
3674
        result.success = iface.getInventorySnapshot(args.warehouseId);
3675
        return result;
3676
      }
3677
    }
3678
 
3679
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
3680
      public clearItemAvailabilityCache() {
3681
        super("clearItemAvailabilityCache");
3682
      }
3683
 
3684
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
3685
        return new clearItemAvailabilityCache_args();
3686
      }
3687
 
3688
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
3689
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
3690
        iface.clearItemAvailabilityCache();
3691
        return result;
3692
      }
3693
    }
3694
 
3695
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
3696
      public updateVendorString() {
3697
        super("updateVendorString");
3698
      }
3699
 
3700
      protected updateVendorString_args getEmptyArgsInstance() {
3701
        return new updateVendorString_args();
3702
      }
3703
 
3704
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
3705
        updateVendorString_result result = new updateVendorString_result();
3706
        iface.updateVendorString(args.warehouseId, args.vendorString);
3707
        return result;
3708
      }
3709
    }
3710
 
6096 amit.gupta 3711
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
3712
      public clearItemAvailabilityCacheForItem() {
3713
        super("clearItemAvailabilityCacheForItem");
3714
      }
3715
 
3716
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
3717
        return new clearItemAvailabilityCacheForItem_args();
3718
      }
3719
 
3720
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
3721
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
3722
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3723
        return result;
3724
      }
3725
    }
3726
 
6467 amar.kumar 3727
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
3728
      public getOurWarehouseIdForVendor() {
3729
        super("getOurWarehouseIdForVendor");
3730
      }
3731
 
3732
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
3733
        return new getOurWarehouseIdForVendor_args();
3734
      }
3735
 
3736
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
3737
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
3738
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
3739
        result.setSuccessIsSet(true);
3740
        return result;
3741
      }
3742
    }
3743
 
6484 amar.kumar 3744
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
3745
      public getItemAvailabilitiesAtOurWarehouses() {
3746
        super("getItemAvailabilitiesAtOurWarehouses");
3747
      }
3748
 
3749
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
3750
        return new getItemAvailabilitiesAtOurWarehouses_args();
3751
      }
3752
 
3753
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
3754
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
3755
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
3756
        return result;
3757
      }
3758
    }
3759
 
6531 vikram.rag 3760
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
3761
      public getMonitoredWarehouseForVendors() {
3762
        super("getMonitoredWarehouseForVendors");
3763
      }
3764
 
3765
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
3766
        return new getMonitoredWarehouseForVendors_args();
3767
      }
3768
 
3769
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
3770
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
3771
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
3772
        return result;
3773
      }
3774
    }
3775
 
3776
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
3777
      public getIgnoredWarehouseidsAndItemids() {
3778
        super("getIgnoredWarehouseidsAndItemids");
3779
      }
3780
 
3781
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
3782
        return new getIgnoredWarehouseidsAndItemids_args();
3783
      }
3784
 
3785
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
3786
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
3787
        result.success = iface.getIgnoredWarehouseidsAndItemids();
3788
        return result;
3789
      }
3790
    }
3791
 
3792
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
3793
      public insertItemtoIgnoreInventoryUpdatelist() {
3794
        super("insertItemtoIgnoreInventoryUpdatelist");
3795
      }
3796
 
3797
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
3798
        return new insertItemtoIgnoreInventoryUpdatelist_args();
3799
      }
3800
 
3801
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
3802
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
3803
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
3804
        result.setSuccessIsSet(true);
3805
        return result;
3806
      }
3807
    }
3808
 
3809
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
3810
      public deleteItemFromIgnoredInventoryUpdateList() {
3811
        super("deleteItemFromIgnoredInventoryUpdateList");
3812
      }
3813
 
3814
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
3815
        return new deleteItemFromIgnoredInventoryUpdateList_args();
3816
      }
3817
 
3818
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
3819
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
3820
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
3821
        result.setSuccessIsSet(true);
3822
        return result;
3823
      }
3824
    }
3825
 
3826
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
3827
      public getAllIgnoredInventoryupdateItemsCount() {
3828
        super("getAllIgnoredInventoryupdateItemsCount");
3829
      }
3830
 
3831
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
3832
        return new getAllIgnoredInventoryupdateItemsCount_args();
3833
      }
3834
 
3835
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
3836
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
3837
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
3838
        result.setSuccessIsSet(true);
3839
        return result;
3840
      }
3841
    }
3842
 
3843
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
3844
      public getIgnoredInventoryUpdateItemids() {
3845
        super("getIgnoredInventoryUpdateItemids");
3846
      }
3847
 
3848
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
3849
        return new getIgnoredInventoryUpdateItemids_args();
3850
      }
3851
 
3852
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
3853
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
3854
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
3855
        return result;
3856
      }
3857
    }
3858
 
5945 mandeep.dh 3859
  }
3860
 
3861
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3862
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3863
 
3864
    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);
3865
 
3866
    private Warehouse warehouse; // required
3867
 
3868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3870
      WAREHOUSE((short)1, "warehouse");
3871
 
3872
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3873
 
3874
      static {
3875
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3876
          byName.put(field.getFieldName(), field);
3877
        }
3878
      }
3879
 
3880
      /**
3881
       * Find the _Fields constant that matches fieldId, or null if its not found.
3882
       */
3883
      public static _Fields findByThriftId(int fieldId) {
3884
        switch(fieldId) {
3885
          case 1: // WAREHOUSE
3886
            return WAREHOUSE;
3887
          default:
3888
            return null;
3889
        }
3890
      }
3891
 
3892
      /**
3893
       * Find the _Fields constant that matches fieldId, throwing an exception
3894
       * if it is not found.
3895
       */
3896
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3897
        _Fields fields = findByThriftId(fieldId);
3898
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3899
        return fields;
3900
      }
3901
 
3902
      /**
3903
       * Find the _Fields constant that matches name, or null if its not found.
3904
       */
3905
      public static _Fields findByName(String name) {
3906
        return byName.get(name);
3907
      }
3908
 
3909
      private final short _thriftId;
3910
      private final String _fieldName;
3911
 
3912
      _Fields(short thriftId, String fieldName) {
3913
        _thriftId = thriftId;
3914
        _fieldName = fieldName;
3915
      }
3916
 
3917
      public short getThriftFieldId() {
3918
        return _thriftId;
3919
      }
3920
 
3921
      public String getFieldName() {
3922
        return _fieldName;
3923
      }
3924
    }
3925
 
3926
    // isset id assignments
3927
 
3928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3929
    static {
3930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3931
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3932
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
3933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
3935
    }
3936
 
3937
    public addWarehouse_args() {
3938
    }
3939
 
3940
    public addWarehouse_args(
3941
      Warehouse warehouse)
3942
    {
3943
      this();
3944
      this.warehouse = warehouse;
3945
    }
3946
 
3947
    /**
3948
     * Performs a deep copy on <i>other</i>.
3949
     */
3950
    public addWarehouse_args(addWarehouse_args other) {
3951
      if (other.isSetWarehouse()) {
3952
        this.warehouse = new Warehouse(other.warehouse);
3953
      }
3954
    }
3955
 
3956
    public addWarehouse_args deepCopy() {
3957
      return new addWarehouse_args(this);
3958
    }
3959
 
3960
    @Override
3961
    public void clear() {
3962
      this.warehouse = null;
3963
    }
3964
 
3965
    public Warehouse getWarehouse() {
3966
      return this.warehouse;
3967
    }
3968
 
3969
    public void setWarehouse(Warehouse warehouse) {
3970
      this.warehouse = warehouse;
3971
    }
3972
 
3973
    public void unsetWarehouse() {
3974
      this.warehouse = null;
3975
    }
3976
 
3977
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
3978
    public boolean isSetWarehouse() {
3979
      return this.warehouse != null;
3980
    }
3981
 
3982
    public void setWarehouseIsSet(boolean value) {
3983
      if (!value) {
3984
        this.warehouse = null;
3985
      }
3986
    }
3987
 
3988
    public void setFieldValue(_Fields field, Object value) {
3989
      switch (field) {
3990
      case WAREHOUSE:
3991
        if (value == null) {
3992
          unsetWarehouse();
3993
        } else {
3994
          setWarehouse((Warehouse)value);
3995
        }
3996
        break;
3997
 
3998
      }
3999
    }
4000
 
4001
    public Object getFieldValue(_Fields field) {
4002
      switch (field) {
4003
      case WAREHOUSE:
4004
        return getWarehouse();
4005
 
4006
      }
4007
      throw new IllegalStateException();
4008
    }
4009
 
4010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4011
    public boolean isSet(_Fields field) {
4012
      if (field == null) {
4013
        throw new IllegalArgumentException();
4014
      }
4015
 
4016
      switch (field) {
4017
      case WAREHOUSE:
4018
        return isSetWarehouse();
4019
      }
4020
      throw new IllegalStateException();
4021
    }
4022
 
4023
    @Override
4024
    public boolean equals(Object that) {
4025
      if (that == null)
4026
        return false;
4027
      if (that instanceof addWarehouse_args)
4028
        return this.equals((addWarehouse_args)that);
4029
      return false;
4030
    }
4031
 
4032
    public boolean equals(addWarehouse_args that) {
4033
      if (that == null)
4034
        return false;
4035
 
4036
      boolean this_present_warehouse = true && this.isSetWarehouse();
4037
      boolean that_present_warehouse = true && that.isSetWarehouse();
4038
      if (this_present_warehouse || that_present_warehouse) {
4039
        if (!(this_present_warehouse && that_present_warehouse))
4040
          return false;
4041
        if (!this.warehouse.equals(that.warehouse))
4042
          return false;
4043
      }
4044
 
4045
      return true;
4046
    }
4047
 
4048
    @Override
4049
    public int hashCode() {
4050
      return 0;
4051
    }
4052
 
4053
    public int compareTo(addWarehouse_args other) {
4054
      if (!getClass().equals(other.getClass())) {
4055
        return getClass().getName().compareTo(other.getClass().getName());
4056
      }
4057
 
4058
      int lastComparison = 0;
4059
      addWarehouse_args typedOther = (addWarehouse_args)other;
4060
 
4061
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
4062
      if (lastComparison != 0) {
4063
        return lastComparison;
4064
      }
4065
      if (isSetWarehouse()) {
4066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
4067
        if (lastComparison != 0) {
4068
          return lastComparison;
4069
        }
4070
      }
4071
      return 0;
4072
    }
4073
 
4074
    public _Fields fieldForId(int fieldId) {
4075
      return _Fields.findByThriftId(fieldId);
4076
    }
4077
 
4078
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4079
      org.apache.thrift.protocol.TField field;
4080
      iprot.readStructBegin();
4081
      while (true)
4082
      {
4083
        field = iprot.readFieldBegin();
4084
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4085
          break;
4086
        }
4087
        switch (field.id) {
4088
          case 1: // WAREHOUSE
4089
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4090
              this.warehouse = new Warehouse();
4091
              this.warehouse.read(iprot);
4092
            } else { 
4093
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4094
            }
4095
            break;
4096
          default:
4097
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4098
        }
4099
        iprot.readFieldEnd();
4100
      }
4101
      iprot.readStructEnd();
4102
      validate();
4103
    }
4104
 
4105
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4106
      validate();
4107
 
4108
      oprot.writeStructBegin(STRUCT_DESC);
4109
      if (this.warehouse != null) {
4110
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
4111
        this.warehouse.write(oprot);
4112
        oprot.writeFieldEnd();
4113
      }
4114
      oprot.writeFieldStop();
4115
      oprot.writeStructEnd();
4116
    }
4117
 
4118
    @Override
4119
    public String toString() {
4120
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
4121
      boolean first = true;
4122
 
4123
      sb.append("warehouse:");
4124
      if (this.warehouse == null) {
4125
        sb.append("null");
4126
      } else {
4127
        sb.append(this.warehouse);
4128
      }
4129
      first = false;
4130
      sb.append(")");
4131
      return sb.toString();
4132
    }
4133
 
4134
    public void validate() throws org.apache.thrift.TException {
4135
      // check for required fields
4136
    }
4137
 
4138
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4139
      try {
4140
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4141
      } catch (org.apache.thrift.TException te) {
4142
        throw new java.io.IOException(te);
4143
      }
4144
    }
4145
 
4146
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4147
      try {
4148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4149
      } catch (org.apache.thrift.TException te) {
4150
        throw new java.io.IOException(te);
4151
      }
4152
    }
4153
 
4154
  }
4155
 
4156
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
4157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
4158
 
4159
    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);
4160
    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);
4161
 
4162
    private long success; // required
4163
    private InventoryServiceException cex; // required
4164
 
4165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4167
      SUCCESS((short)0, "success"),
4168
      CEX((short)1, "cex");
4169
 
4170
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4171
 
4172
      static {
4173
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4174
          byName.put(field.getFieldName(), field);
4175
        }
4176
      }
4177
 
4178
      /**
4179
       * Find the _Fields constant that matches fieldId, or null if its not found.
4180
       */
4181
      public static _Fields findByThriftId(int fieldId) {
4182
        switch(fieldId) {
4183
          case 0: // SUCCESS
4184
            return SUCCESS;
4185
          case 1: // CEX
4186
            return CEX;
4187
          default:
4188
            return null;
4189
        }
4190
      }
4191
 
4192
      /**
4193
       * Find the _Fields constant that matches fieldId, throwing an exception
4194
       * if it is not found.
4195
       */
4196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4197
        _Fields fields = findByThriftId(fieldId);
4198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4199
        return fields;
4200
      }
4201
 
4202
      /**
4203
       * Find the _Fields constant that matches name, or null if its not found.
4204
       */
4205
      public static _Fields findByName(String name) {
4206
        return byName.get(name);
4207
      }
4208
 
4209
      private final short _thriftId;
4210
      private final String _fieldName;
4211
 
4212
      _Fields(short thriftId, String fieldName) {
4213
        _thriftId = thriftId;
4214
        _fieldName = fieldName;
4215
      }
4216
 
4217
      public short getThriftFieldId() {
4218
        return _thriftId;
4219
      }
4220
 
4221
      public String getFieldName() {
4222
        return _fieldName;
4223
      }
4224
    }
4225
 
4226
    // isset id assignments
4227
    private static final int __SUCCESS_ISSET_ID = 0;
4228
    private BitSet __isset_bit_vector = new BitSet(1);
4229
 
4230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4231
    static {
4232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4233
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4235
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4237
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4238
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
4239
    }
4240
 
4241
    public addWarehouse_result() {
4242
    }
4243
 
4244
    public addWarehouse_result(
4245
      long success,
4246
      InventoryServiceException cex)
4247
    {
4248
      this();
4249
      this.success = success;
4250
      setSuccessIsSet(true);
4251
      this.cex = cex;
4252
    }
4253
 
4254
    /**
4255
     * Performs a deep copy on <i>other</i>.
4256
     */
4257
    public addWarehouse_result(addWarehouse_result other) {
4258
      __isset_bit_vector.clear();
4259
      __isset_bit_vector.or(other.__isset_bit_vector);
4260
      this.success = other.success;
4261
      if (other.isSetCex()) {
4262
        this.cex = new InventoryServiceException(other.cex);
4263
      }
4264
    }
4265
 
4266
    public addWarehouse_result deepCopy() {
4267
      return new addWarehouse_result(this);
4268
    }
4269
 
4270
    @Override
4271
    public void clear() {
4272
      setSuccessIsSet(false);
4273
      this.success = 0;
4274
      this.cex = null;
4275
    }
4276
 
4277
    public long getSuccess() {
4278
      return this.success;
4279
    }
4280
 
4281
    public void setSuccess(long success) {
4282
      this.success = success;
4283
      setSuccessIsSet(true);
4284
    }
4285
 
4286
    public void unsetSuccess() {
4287
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4288
    }
4289
 
4290
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4291
    public boolean isSetSuccess() {
4292
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4293
    }
4294
 
4295
    public void setSuccessIsSet(boolean value) {
4296
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4297
    }
4298
 
4299
    public InventoryServiceException getCex() {
4300
      return this.cex;
4301
    }
4302
 
4303
    public void setCex(InventoryServiceException cex) {
4304
      this.cex = cex;
4305
    }
4306
 
4307
    public void unsetCex() {
4308
      this.cex = null;
4309
    }
4310
 
4311
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
4312
    public boolean isSetCex() {
4313
      return this.cex != null;
4314
    }
4315
 
4316
    public void setCexIsSet(boolean value) {
4317
      if (!value) {
4318
        this.cex = null;
4319
      }
4320
    }
4321
 
4322
    public void setFieldValue(_Fields field, Object value) {
4323
      switch (field) {
4324
      case SUCCESS:
4325
        if (value == null) {
4326
          unsetSuccess();
4327
        } else {
4328
          setSuccess((Long)value);
4329
        }
4330
        break;
4331
 
4332
      case CEX:
4333
        if (value == null) {
4334
          unsetCex();
4335
        } else {
4336
          setCex((InventoryServiceException)value);
4337
        }
4338
        break;
4339
 
4340
      }
4341
    }
4342
 
4343
    public Object getFieldValue(_Fields field) {
4344
      switch (field) {
4345
      case SUCCESS:
4346
        return Long.valueOf(getSuccess());
4347
 
4348
      case CEX:
4349
        return getCex();
4350
 
4351
      }
4352
      throw new IllegalStateException();
4353
    }
4354
 
4355
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4356
    public boolean isSet(_Fields field) {
4357
      if (field == null) {
4358
        throw new IllegalArgumentException();
4359
      }
4360
 
4361
      switch (field) {
4362
      case SUCCESS:
4363
        return isSetSuccess();
4364
      case CEX:
4365
        return isSetCex();
4366
      }
4367
      throw new IllegalStateException();
4368
    }
4369
 
4370
    @Override
4371
    public boolean equals(Object that) {
4372
      if (that == null)
4373
        return false;
4374
      if (that instanceof addWarehouse_result)
4375
        return this.equals((addWarehouse_result)that);
4376
      return false;
4377
    }
4378
 
4379
    public boolean equals(addWarehouse_result that) {
4380
      if (that == null)
4381
        return false;
4382
 
4383
      boolean this_present_success = true;
4384
      boolean that_present_success = true;
4385
      if (this_present_success || that_present_success) {
4386
        if (!(this_present_success && that_present_success))
4387
          return false;
4388
        if (this.success != that.success)
4389
          return false;
4390
      }
4391
 
4392
      boolean this_present_cex = true && this.isSetCex();
4393
      boolean that_present_cex = true && that.isSetCex();
4394
      if (this_present_cex || that_present_cex) {
4395
        if (!(this_present_cex && that_present_cex))
4396
          return false;
4397
        if (!this.cex.equals(that.cex))
4398
          return false;
4399
      }
4400
 
4401
      return true;
4402
    }
4403
 
4404
    @Override
4405
    public int hashCode() {
4406
      return 0;
4407
    }
4408
 
4409
    public int compareTo(addWarehouse_result other) {
4410
      if (!getClass().equals(other.getClass())) {
4411
        return getClass().getName().compareTo(other.getClass().getName());
4412
      }
4413
 
4414
      int lastComparison = 0;
4415
      addWarehouse_result typedOther = (addWarehouse_result)other;
4416
 
4417
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4418
      if (lastComparison != 0) {
4419
        return lastComparison;
4420
      }
4421
      if (isSetSuccess()) {
4422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4423
        if (lastComparison != 0) {
4424
          return lastComparison;
4425
        }
4426
      }
4427
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
4428
      if (lastComparison != 0) {
4429
        return lastComparison;
4430
      }
4431
      if (isSetCex()) {
4432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
4433
        if (lastComparison != 0) {
4434
          return lastComparison;
4435
        }
4436
      }
4437
      return 0;
4438
    }
4439
 
4440
    public _Fields fieldForId(int fieldId) {
4441
      return _Fields.findByThriftId(fieldId);
4442
    }
4443
 
4444
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4445
      org.apache.thrift.protocol.TField field;
4446
      iprot.readStructBegin();
4447
      while (true)
4448
      {
4449
        field = iprot.readFieldBegin();
4450
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4451
          break;
4452
        }
4453
        switch (field.id) {
4454
          case 0: // SUCCESS
4455
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4456
              this.success = iprot.readI64();
4457
              setSuccessIsSet(true);
4458
            } else { 
4459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4460
            }
4461
            break;
4462
          case 1: // CEX
4463
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4464
              this.cex = new InventoryServiceException();
4465
              this.cex.read(iprot);
4466
            } else { 
4467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4468
            }
4469
            break;
4470
          default:
4471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4472
        }
4473
        iprot.readFieldEnd();
4474
      }
4475
      iprot.readStructEnd();
4476
      validate();
4477
    }
4478
 
4479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4480
      oprot.writeStructBegin(STRUCT_DESC);
4481
 
4482
      if (this.isSetSuccess()) {
4483
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4484
        oprot.writeI64(this.success);
4485
        oprot.writeFieldEnd();
4486
      } else if (this.isSetCex()) {
4487
        oprot.writeFieldBegin(CEX_FIELD_DESC);
4488
        this.cex.write(oprot);
4489
        oprot.writeFieldEnd();
4490
      }
4491
      oprot.writeFieldStop();
4492
      oprot.writeStructEnd();
4493
    }
4494
 
4495
    @Override
4496
    public String toString() {
4497
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
4498
      boolean first = true;
4499
 
4500
      sb.append("success:");
4501
      sb.append(this.success);
4502
      first = false;
4503
      if (!first) sb.append(", ");
4504
      sb.append("cex:");
4505
      if (this.cex == null) {
4506
        sb.append("null");
4507
      } else {
4508
        sb.append(this.cex);
4509
      }
4510
      first = false;
4511
      sb.append(")");
4512
      return sb.toString();
4513
    }
4514
 
4515
    public void validate() throws org.apache.thrift.TException {
4516
      // check for required fields
4517
    }
4518
 
4519
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4520
      try {
4521
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4522
      } catch (org.apache.thrift.TException te) {
4523
        throw new java.io.IOException(te);
4524
      }
4525
    }
4526
 
4527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4528
      try {
4529
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4530
      } catch (org.apache.thrift.TException te) {
4531
        throw new java.io.IOException(te);
4532
      }
4533
    }
4534
 
4535
  }
4536
 
4537
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
4538
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
4539
 
4540
    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);
4541
 
4542
    private Vendor vendor; // required
4543
 
4544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4546
      VENDOR((short)1, "vendor");
4547
 
4548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4549
 
4550
      static {
4551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4552
          byName.put(field.getFieldName(), field);
4553
        }
4554
      }
4555
 
4556
      /**
4557
       * Find the _Fields constant that matches fieldId, or null if its not found.
4558
       */
4559
      public static _Fields findByThriftId(int fieldId) {
4560
        switch(fieldId) {
4561
          case 1: // VENDOR
4562
            return VENDOR;
4563
          default:
4564
            return null;
4565
        }
4566
      }
4567
 
4568
      /**
4569
       * Find the _Fields constant that matches fieldId, throwing an exception
4570
       * if it is not found.
4571
       */
4572
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4573
        _Fields fields = findByThriftId(fieldId);
4574
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4575
        return fields;
4576
      }
4577
 
4578
      /**
4579
       * Find the _Fields constant that matches name, or null if its not found.
4580
       */
4581
      public static _Fields findByName(String name) {
4582
        return byName.get(name);
4583
      }
4584
 
4585
      private final short _thriftId;
4586
      private final String _fieldName;
4587
 
4588
      _Fields(short thriftId, String fieldName) {
4589
        _thriftId = thriftId;
4590
        _fieldName = fieldName;
4591
      }
4592
 
4593
      public short getThriftFieldId() {
4594
        return _thriftId;
4595
      }
4596
 
4597
      public String getFieldName() {
4598
        return _fieldName;
4599
      }
4600
    }
4601
 
4602
    // isset id assignments
4603
 
4604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4605
    static {
4606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4607
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4608
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
4609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
4611
    }
4612
 
4613
    public addVendor_args() {
4614
    }
4615
 
4616
    public addVendor_args(
4617
      Vendor vendor)
4618
    {
4619
      this();
4620
      this.vendor = vendor;
4621
    }
4622
 
4623
    /**
4624
     * Performs a deep copy on <i>other</i>.
4625
     */
4626
    public addVendor_args(addVendor_args other) {
4627
      if (other.isSetVendor()) {
4628
        this.vendor = new Vendor(other.vendor);
4629
      }
4630
    }
4631
 
4632
    public addVendor_args deepCopy() {
4633
      return new addVendor_args(this);
4634
    }
4635
 
4636
    @Override
4637
    public void clear() {
4638
      this.vendor = null;
4639
    }
4640
 
4641
    public Vendor getVendor() {
4642
      return this.vendor;
4643
    }
4644
 
4645
    public void setVendor(Vendor vendor) {
4646
      this.vendor = vendor;
4647
    }
4648
 
4649
    public void unsetVendor() {
4650
      this.vendor = null;
4651
    }
4652
 
4653
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
4654
    public boolean isSetVendor() {
4655
      return this.vendor != null;
4656
    }
4657
 
4658
    public void setVendorIsSet(boolean value) {
4659
      if (!value) {
4660
        this.vendor = null;
4661
      }
4662
    }
4663
 
4664
    public void setFieldValue(_Fields field, Object value) {
4665
      switch (field) {
4666
      case VENDOR:
4667
        if (value == null) {
4668
          unsetVendor();
4669
        } else {
4670
          setVendor((Vendor)value);
4671
        }
4672
        break;
4673
 
4674
      }
4675
    }
4676
 
4677
    public Object getFieldValue(_Fields field) {
4678
      switch (field) {
4679
      case VENDOR:
4680
        return getVendor();
4681
 
4682
      }
4683
      throw new IllegalStateException();
4684
    }
4685
 
4686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4687
    public boolean isSet(_Fields field) {
4688
      if (field == null) {
4689
        throw new IllegalArgumentException();
4690
      }
4691
 
4692
      switch (field) {
4693
      case VENDOR:
4694
        return isSetVendor();
4695
      }
4696
      throw new IllegalStateException();
4697
    }
4698
 
4699
    @Override
4700
    public boolean equals(Object that) {
4701
      if (that == null)
4702
        return false;
4703
      if (that instanceof addVendor_args)
4704
        return this.equals((addVendor_args)that);
4705
      return false;
4706
    }
4707
 
4708
    public boolean equals(addVendor_args that) {
4709
      if (that == null)
4710
        return false;
4711
 
4712
      boolean this_present_vendor = true && this.isSetVendor();
4713
      boolean that_present_vendor = true && that.isSetVendor();
4714
      if (this_present_vendor || that_present_vendor) {
4715
        if (!(this_present_vendor && that_present_vendor))
4716
          return false;
4717
        if (!this.vendor.equals(that.vendor))
4718
          return false;
4719
      }
4720
 
4721
      return true;
4722
    }
4723
 
4724
    @Override
4725
    public int hashCode() {
4726
      return 0;
4727
    }
4728
 
4729
    public int compareTo(addVendor_args other) {
4730
      if (!getClass().equals(other.getClass())) {
4731
        return getClass().getName().compareTo(other.getClass().getName());
4732
      }
4733
 
4734
      int lastComparison = 0;
4735
      addVendor_args typedOther = (addVendor_args)other;
4736
 
4737
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
4738
      if (lastComparison != 0) {
4739
        return lastComparison;
4740
      }
4741
      if (isSetVendor()) {
4742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
4743
        if (lastComparison != 0) {
4744
          return lastComparison;
4745
        }
4746
      }
4747
      return 0;
4748
    }
4749
 
4750
    public _Fields fieldForId(int fieldId) {
4751
      return _Fields.findByThriftId(fieldId);
4752
    }
4753
 
4754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4755
      org.apache.thrift.protocol.TField field;
4756
      iprot.readStructBegin();
4757
      while (true)
4758
      {
4759
        field = iprot.readFieldBegin();
4760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4761
          break;
4762
        }
4763
        switch (field.id) {
4764
          case 1: // VENDOR
4765
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4766
              this.vendor = new Vendor();
4767
              this.vendor.read(iprot);
4768
            } else { 
4769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4770
            }
4771
            break;
4772
          default:
4773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4774
        }
4775
        iprot.readFieldEnd();
4776
      }
4777
      iprot.readStructEnd();
4778
      validate();
4779
    }
4780
 
4781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4782
      validate();
4783
 
4784
      oprot.writeStructBegin(STRUCT_DESC);
4785
      if (this.vendor != null) {
4786
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
4787
        this.vendor.write(oprot);
4788
        oprot.writeFieldEnd();
4789
      }
4790
      oprot.writeFieldStop();
4791
      oprot.writeStructEnd();
4792
    }
4793
 
4794
    @Override
4795
    public String toString() {
4796
      StringBuilder sb = new StringBuilder("addVendor_args(");
4797
      boolean first = true;
4798
 
4799
      sb.append("vendor:");
4800
      if (this.vendor == null) {
4801
        sb.append("null");
4802
      } else {
4803
        sb.append(this.vendor);
4804
      }
4805
      first = false;
4806
      sb.append(")");
4807
      return sb.toString();
4808
    }
4809
 
4810
    public void validate() throws org.apache.thrift.TException {
4811
      // check for required fields
4812
    }
4813
 
4814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4815
      try {
4816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4817
      } catch (org.apache.thrift.TException te) {
4818
        throw new java.io.IOException(te);
4819
      }
4820
    }
4821
 
4822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4823
      try {
4824
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4825
      } catch (org.apache.thrift.TException te) {
4826
        throw new java.io.IOException(te);
4827
      }
4828
    }
4829
 
4830
  }
4831
 
4832
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
4833
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
4834
 
4835
    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);
4836
    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);
4837
 
4838
    private long success; // required
4839
    private InventoryServiceException cex; // required
4840
 
4841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4842
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4843
      SUCCESS((short)0, "success"),
4844
      CEX((short)1, "cex");
4845
 
4846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4847
 
4848
      static {
4849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4850
          byName.put(field.getFieldName(), field);
4851
        }
4852
      }
4853
 
4854
      /**
4855
       * Find the _Fields constant that matches fieldId, or null if its not found.
4856
       */
4857
      public static _Fields findByThriftId(int fieldId) {
4858
        switch(fieldId) {
4859
          case 0: // SUCCESS
4860
            return SUCCESS;
4861
          case 1: // CEX
4862
            return CEX;
4863
          default:
4864
            return null;
4865
        }
4866
      }
4867
 
4868
      /**
4869
       * Find the _Fields constant that matches fieldId, throwing an exception
4870
       * if it is not found.
4871
       */
4872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4873
        _Fields fields = findByThriftId(fieldId);
4874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4875
        return fields;
4876
      }
4877
 
4878
      /**
4879
       * Find the _Fields constant that matches name, or null if its not found.
4880
       */
4881
      public static _Fields findByName(String name) {
4882
        return byName.get(name);
4883
      }
4884
 
4885
      private final short _thriftId;
4886
      private final String _fieldName;
4887
 
4888
      _Fields(short thriftId, String fieldName) {
4889
        _thriftId = thriftId;
4890
        _fieldName = fieldName;
4891
      }
4892
 
4893
      public short getThriftFieldId() {
4894
        return _thriftId;
4895
      }
4896
 
4897
      public String getFieldName() {
4898
        return _fieldName;
4899
      }
4900
    }
4901
 
4902
    // isset id assignments
4903
    private static final int __SUCCESS_ISSET_ID = 0;
4904
    private BitSet __isset_bit_vector = new BitSet(1);
4905
 
4906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4907
    static {
4908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4909
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4911
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4913
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4914
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
4915
    }
4916
 
4917
    public addVendor_result() {
4918
    }
4919
 
4920
    public addVendor_result(
4921
      long success,
4922
      InventoryServiceException cex)
4923
    {
4924
      this();
4925
      this.success = success;
4926
      setSuccessIsSet(true);
4927
      this.cex = cex;
4928
    }
4929
 
4930
    /**
4931
     * Performs a deep copy on <i>other</i>.
4932
     */
4933
    public addVendor_result(addVendor_result other) {
4934
      __isset_bit_vector.clear();
4935
      __isset_bit_vector.or(other.__isset_bit_vector);
4936
      this.success = other.success;
4937
      if (other.isSetCex()) {
4938
        this.cex = new InventoryServiceException(other.cex);
4939
      }
4940
    }
4941
 
4942
    public addVendor_result deepCopy() {
4943
      return new addVendor_result(this);
4944
    }
4945
 
4946
    @Override
4947
    public void clear() {
4948
      setSuccessIsSet(false);
4949
      this.success = 0;
4950
      this.cex = null;
4951
    }
4952
 
4953
    public long getSuccess() {
4954
      return this.success;
4955
    }
4956
 
4957
    public void setSuccess(long success) {
4958
      this.success = success;
4959
      setSuccessIsSet(true);
4960
    }
4961
 
4962
    public void unsetSuccess() {
4963
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4964
    }
4965
 
4966
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4967
    public boolean isSetSuccess() {
4968
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4969
    }
4970
 
4971
    public void setSuccessIsSet(boolean value) {
4972
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4973
    }
4974
 
4975
    public InventoryServiceException getCex() {
4976
      return this.cex;
4977
    }
4978
 
4979
    public void setCex(InventoryServiceException cex) {
4980
      this.cex = cex;
4981
    }
4982
 
4983
    public void unsetCex() {
4984
      this.cex = null;
4985
    }
4986
 
4987
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
4988
    public boolean isSetCex() {
4989
      return this.cex != null;
4990
    }
4991
 
4992
    public void setCexIsSet(boolean value) {
4993
      if (!value) {
4994
        this.cex = null;
4995
      }
4996
    }
4997
 
4998
    public void setFieldValue(_Fields field, Object value) {
4999
      switch (field) {
5000
      case SUCCESS:
5001
        if (value == null) {
5002
          unsetSuccess();
5003
        } else {
5004
          setSuccess((Long)value);
5005
        }
5006
        break;
5007
 
5008
      case CEX:
5009
        if (value == null) {
5010
          unsetCex();
5011
        } else {
5012
          setCex((InventoryServiceException)value);
5013
        }
5014
        break;
5015
 
5016
      }
5017
    }
5018
 
5019
    public Object getFieldValue(_Fields field) {
5020
      switch (field) {
5021
      case SUCCESS:
5022
        return Long.valueOf(getSuccess());
5023
 
5024
      case CEX:
5025
        return getCex();
5026
 
5027
      }
5028
      throw new IllegalStateException();
5029
    }
5030
 
5031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5032
    public boolean isSet(_Fields field) {
5033
      if (field == null) {
5034
        throw new IllegalArgumentException();
5035
      }
5036
 
5037
      switch (field) {
5038
      case SUCCESS:
5039
        return isSetSuccess();
5040
      case CEX:
5041
        return isSetCex();
5042
      }
5043
      throw new IllegalStateException();
5044
    }
5045
 
5046
    @Override
5047
    public boolean equals(Object that) {
5048
      if (that == null)
5049
        return false;
5050
      if (that instanceof addVendor_result)
5051
        return this.equals((addVendor_result)that);
5052
      return false;
5053
    }
5054
 
5055
    public boolean equals(addVendor_result that) {
5056
      if (that == null)
5057
        return false;
5058
 
5059
      boolean this_present_success = true;
5060
      boolean that_present_success = true;
5061
      if (this_present_success || that_present_success) {
5062
        if (!(this_present_success && that_present_success))
5063
          return false;
5064
        if (this.success != that.success)
5065
          return false;
5066
      }
5067
 
5068
      boolean this_present_cex = true && this.isSetCex();
5069
      boolean that_present_cex = true && that.isSetCex();
5070
      if (this_present_cex || that_present_cex) {
5071
        if (!(this_present_cex && that_present_cex))
5072
          return false;
5073
        if (!this.cex.equals(that.cex))
5074
          return false;
5075
      }
5076
 
5077
      return true;
5078
    }
5079
 
5080
    @Override
5081
    public int hashCode() {
5082
      return 0;
5083
    }
5084
 
5085
    public int compareTo(addVendor_result other) {
5086
      if (!getClass().equals(other.getClass())) {
5087
        return getClass().getName().compareTo(other.getClass().getName());
5088
      }
5089
 
5090
      int lastComparison = 0;
5091
      addVendor_result typedOther = (addVendor_result)other;
5092
 
5093
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5094
      if (lastComparison != 0) {
5095
        return lastComparison;
5096
      }
5097
      if (isSetSuccess()) {
5098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5099
        if (lastComparison != 0) {
5100
          return lastComparison;
5101
        }
5102
      }
5103
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5104
      if (lastComparison != 0) {
5105
        return lastComparison;
5106
      }
5107
      if (isSetCex()) {
5108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5109
        if (lastComparison != 0) {
5110
          return lastComparison;
5111
        }
5112
      }
5113
      return 0;
5114
    }
5115
 
5116
    public _Fields fieldForId(int fieldId) {
5117
      return _Fields.findByThriftId(fieldId);
5118
    }
5119
 
5120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5121
      org.apache.thrift.protocol.TField field;
5122
      iprot.readStructBegin();
5123
      while (true)
5124
      {
5125
        field = iprot.readFieldBegin();
5126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5127
          break;
5128
        }
5129
        switch (field.id) {
5130
          case 0: // SUCCESS
5131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5132
              this.success = iprot.readI64();
5133
              setSuccessIsSet(true);
5134
            } else { 
5135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5136
            }
5137
            break;
5138
          case 1: // CEX
5139
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5140
              this.cex = new InventoryServiceException();
5141
              this.cex.read(iprot);
5142
            } else { 
5143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5144
            }
5145
            break;
5146
          default:
5147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5148
        }
5149
        iprot.readFieldEnd();
5150
      }
5151
      iprot.readStructEnd();
5152
      validate();
5153
    }
5154
 
5155
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5156
      oprot.writeStructBegin(STRUCT_DESC);
5157
 
5158
      if (this.isSetSuccess()) {
5159
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5160
        oprot.writeI64(this.success);
5161
        oprot.writeFieldEnd();
5162
      } else if (this.isSetCex()) {
5163
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5164
        this.cex.write(oprot);
5165
        oprot.writeFieldEnd();
5166
      }
5167
      oprot.writeFieldStop();
5168
      oprot.writeStructEnd();
5169
    }
5170
 
5171
    @Override
5172
    public String toString() {
5173
      StringBuilder sb = new StringBuilder("addVendor_result(");
5174
      boolean first = true;
5175
 
5176
      sb.append("success:");
5177
      sb.append(this.success);
5178
      first = false;
5179
      if (!first) sb.append(", ");
5180
      sb.append("cex:");
5181
      if (this.cex == null) {
5182
        sb.append("null");
5183
      } else {
5184
        sb.append(this.cex);
5185
      }
5186
      first = false;
5187
      sb.append(")");
5188
      return sb.toString();
5189
    }
5190
 
5191
    public void validate() throws org.apache.thrift.TException {
5192
      // check for required fields
5193
    }
5194
 
5195
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5196
      try {
5197
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5198
      } catch (org.apache.thrift.TException te) {
5199
        throw new java.io.IOException(te);
5200
      }
5201
    }
5202
 
5203
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5204
      try {
5205
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5206
      } catch (org.apache.thrift.TException te) {
5207
        throw new java.io.IOException(te);
5208
      }
5209
    }
5210
 
5211
  }
5212
 
5213
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
5214
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
5215
 
5216
    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);
5217
    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);
5218
    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);
5219
 
5220
    private long warehouse_id; // required
5221
    private String timestamp; // required
5222
    private Map<String,Long> availability; // required
5223
 
5224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5226
      WAREHOUSE_ID((short)1, "warehouse_id"),
5227
      TIMESTAMP((short)2, "timestamp"),
5228
      AVAILABILITY((short)3, "availability");
5229
 
5230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5231
 
5232
      static {
5233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5234
          byName.put(field.getFieldName(), field);
5235
        }
5236
      }
5237
 
5238
      /**
5239
       * Find the _Fields constant that matches fieldId, or null if its not found.
5240
       */
5241
      public static _Fields findByThriftId(int fieldId) {
5242
        switch(fieldId) {
5243
          case 1: // WAREHOUSE_ID
5244
            return WAREHOUSE_ID;
5245
          case 2: // TIMESTAMP
5246
            return TIMESTAMP;
5247
          case 3: // AVAILABILITY
5248
            return AVAILABILITY;
5249
          default:
5250
            return null;
5251
        }
5252
      }
5253
 
5254
      /**
5255
       * Find the _Fields constant that matches fieldId, throwing an exception
5256
       * if it is not found.
5257
       */
5258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5259
        _Fields fields = findByThriftId(fieldId);
5260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5261
        return fields;
5262
      }
5263
 
5264
      /**
5265
       * Find the _Fields constant that matches name, or null if its not found.
5266
       */
5267
      public static _Fields findByName(String name) {
5268
        return byName.get(name);
5269
      }
5270
 
5271
      private final short _thriftId;
5272
      private final String _fieldName;
5273
 
5274
      _Fields(short thriftId, String fieldName) {
5275
        _thriftId = thriftId;
5276
        _fieldName = fieldName;
5277
      }
5278
 
5279
      public short getThriftFieldId() {
5280
        return _thriftId;
5281
      }
5282
 
5283
      public String getFieldName() {
5284
        return _fieldName;
5285
      }
5286
    }
5287
 
5288
    // isset id assignments
5289
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
5290
    private BitSet __isset_bit_vector = new BitSet(1);
5291
 
5292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5293
    static {
5294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5295
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5297
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5299
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5300
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
5301
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
5302
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
5303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
5305
    }
5306
 
5307
    public updateInventoryHistory_args() {
5308
    }
5309
 
5310
    public updateInventoryHistory_args(
5311
      long warehouse_id,
5312
      String timestamp,
5313
      Map<String,Long> availability)
5314
    {
5315
      this();
5316
      this.warehouse_id = warehouse_id;
5317
      setWarehouse_idIsSet(true);
5318
      this.timestamp = timestamp;
5319
      this.availability = availability;
5320
    }
5321
 
5322
    /**
5323
     * Performs a deep copy on <i>other</i>.
5324
     */
5325
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
5326
      __isset_bit_vector.clear();
5327
      __isset_bit_vector.or(other.__isset_bit_vector);
5328
      this.warehouse_id = other.warehouse_id;
5329
      if (other.isSetTimestamp()) {
5330
        this.timestamp = other.timestamp;
5331
      }
5332
      if (other.isSetAvailability()) {
5333
        Map<String,Long> __this__availability = new HashMap<String,Long>();
5334
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
5335
 
5336
          String other_element_key = other_element.getKey();
5337
          Long other_element_value = other_element.getValue();
5338
 
5339
          String __this__availability_copy_key = other_element_key;
5340
 
5341
          Long __this__availability_copy_value = other_element_value;
5342
 
5343
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
5344
        }
5345
        this.availability = __this__availability;
5346
      }
5347
    }
5348
 
5349
    public updateInventoryHistory_args deepCopy() {
5350
      return new updateInventoryHistory_args(this);
5351
    }
5352
 
5353
    @Override
5354
    public void clear() {
5355
      setWarehouse_idIsSet(false);
5356
      this.warehouse_id = 0;
5357
      this.timestamp = null;
5358
      this.availability = null;
5359
    }
5360
 
5361
    public long getWarehouse_id() {
5362
      return this.warehouse_id;
5363
    }
5364
 
5365
    public void setWarehouse_id(long warehouse_id) {
5366
      this.warehouse_id = warehouse_id;
5367
      setWarehouse_idIsSet(true);
5368
    }
5369
 
5370
    public void unsetWarehouse_id() {
5371
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
5372
    }
5373
 
5374
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
5375
    public boolean isSetWarehouse_id() {
5376
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
5377
    }
5378
 
5379
    public void setWarehouse_idIsSet(boolean value) {
5380
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
5381
    }
5382
 
5383
    public String getTimestamp() {
5384
      return this.timestamp;
5385
    }
5386
 
5387
    public void setTimestamp(String timestamp) {
5388
      this.timestamp = timestamp;
5389
    }
5390
 
5391
    public void unsetTimestamp() {
5392
      this.timestamp = null;
5393
    }
5394
 
5395
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
5396
    public boolean isSetTimestamp() {
5397
      return this.timestamp != null;
5398
    }
5399
 
5400
    public void setTimestampIsSet(boolean value) {
5401
      if (!value) {
5402
        this.timestamp = null;
5403
      }
5404
    }
5405
 
5406
    public int getAvailabilitySize() {
5407
      return (this.availability == null) ? 0 : this.availability.size();
5408
    }
5409
 
5410
    public void putToAvailability(String key, long val) {
5411
      if (this.availability == null) {
5412
        this.availability = new HashMap<String,Long>();
5413
      }
5414
      this.availability.put(key, val);
5415
    }
5416
 
5417
    public Map<String,Long> getAvailability() {
5418
      return this.availability;
5419
    }
5420
 
5421
    public void setAvailability(Map<String,Long> availability) {
5422
      this.availability = availability;
5423
    }
5424
 
5425
    public void unsetAvailability() {
5426
      this.availability = null;
5427
    }
5428
 
5429
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
5430
    public boolean isSetAvailability() {
5431
      return this.availability != null;
5432
    }
5433
 
5434
    public void setAvailabilityIsSet(boolean value) {
5435
      if (!value) {
5436
        this.availability = null;
5437
      }
5438
    }
5439
 
5440
    public void setFieldValue(_Fields field, Object value) {
5441
      switch (field) {
5442
      case WAREHOUSE_ID:
5443
        if (value == null) {
5444
          unsetWarehouse_id();
5445
        } else {
5446
          setWarehouse_id((Long)value);
5447
        }
5448
        break;
5449
 
5450
      case TIMESTAMP:
5451
        if (value == null) {
5452
          unsetTimestamp();
5453
        } else {
5454
          setTimestamp((String)value);
5455
        }
5456
        break;
5457
 
5458
      case AVAILABILITY:
5459
        if (value == null) {
5460
          unsetAvailability();
5461
        } else {
5462
          setAvailability((Map<String,Long>)value);
5463
        }
5464
        break;
5465
 
5466
      }
5467
    }
5468
 
5469
    public Object getFieldValue(_Fields field) {
5470
      switch (field) {
5471
      case WAREHOUSE_ID:
5472
        return Long.valueOf(getWarehouse_id());
5473
 
5474
      case TIMESTAMP:
5475
        return getTimestamp();
5476
 
5477
      case AVAILABILITY:
5478
        return getAvailability();
5479
 
5480
      }
5481
      throw new IllegalStateException();
5482
    }
5483
 
5484
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5485
    public boolean isSet(_Fields field) {
5486
      if (field == null) {
5487
        throw new IllegalArgumentException();
5488
      }
5489
 
5490
      switch (field) {
5491
      case WAREHOUSE_ID:
5492
        return isSetWarehouse_id();
5493
      case TIMESTAMP:
5494
        return isSetTimestamp();
5495
      case AVAILABILITY:
5496
        return isSetAvailability();
5497
      }
5498
      throw new IllegalStateException();
5499
    }
5500
 
5501
    @Override
5502
    public boolean equals(Object that) {
5503
      if (that == null)
5504
        return false;
5505
      if (that instanceof updateInventoryHistory_args)
5506
        return this.equals((updateInventoryHistory_args)that);
5507
      return false;
5508
    }
5509
 
5510
    public boolean equals(updateInventoryHistory_args that) {
5511
      if (that == null)
5512
        return false;
5513
 
5514
      boolean this_present_warehouse_id = true;
5515
      boolean that_present_warehouse_id = true;
5516
      if (this_present_warehouse_id || that_present_warehouse_id) {
5517
        if (!(this_present_warehouse_id && that_present_warehouse_id))
5518
          return false;
5519
        if (this.warehouse_id != that.warehouse_id)
5520
          return false;
5521
      }
5522
 
5523
      boolean this_present_timestamp = true && this.isSetTimestamp();
5524
      boolean that_present_timestamp = true && that.isSetTimestamp();
5525
      if (this_present_timestamp || that_present_timestamp) {
5526
        if (!(this_present_timestamp && that_present_timestamp))
5527
          return false;
5528
        if (!this.timestamp.equals(that.timestamp))
5529
          return false;
5530
      }
5531
 
5532
      boolean this_present_availability = true && this.isSetAvailability();
5533
      boolean that_present_availability = true && that.isSetAvailability();
5534
      if (this_present_availability || that_present_availability) {
5535
        if (!(this_present_availability && that_present_availability))
5536
          return false;
5537
        if (!this.availability.equals(that.availability))
5538
          return false;
5539
      }
5540
 
5541
      return true;
5542
    }
5543
 
5544
    @Override
5545
    public int hashCode() {
5546
      return 0;
5547
    }
5548
 
5549
    public int compareTo(updateInventoryHistory_args other) {
5550
      if (!getClass().equals(other.getClass())) {
5551
        return getClass().getName().compareTo(other.getClass().getName());
5552
      }
5553
 
5554
      int lastComparison = 0;
5555
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
5556
 
5557
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5558
      if (lastComparison != 0) {
5559
        return lastComparison;
5560
      }
5561
      if (isSetWarehouse_id()) {
5562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5563
        if (lastComparison != 0) {
5564
          return lastComparison;
5565
        }
5566
      }
5567
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5568
      if (lastComparison != 0) {
5569
        return lastComparison;
5570
      }
5571
      if (isSetTimestamp()) {
5572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5573
        if (lastComparison != 0) {
5574
          return lastComparison;
5575
        }
5576
      }
5577
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5578
      if (lastComparison != 0) {
5579
        return lastComparison;
5580
      }
5581
      if (isSetAvailability()) {
5582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5583
        if (lastComparison != 0) {
5584
          return lastComparison;
5585
        }
5586
      }
5587
      return 0;
5588
    }
5589
 
5590
    public _Fields fieldForId(int fieldId) {
5591
      return _Fields.findByThriftId(fieldId);
5592
    }
5593
 
5594
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5595
      org.apache.thrift.protocol.TField field;
5596
      iprot.readStructBegin();
5597
      while (true)
5598
      {
5599
        field = iprot.readFieldBegin();
5600
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5601
          break;
5602
        }
5603
        switch (field.id) {
5604
          case 1: // WAREHOUSE_ID
5605
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5606
              this.warehouse_id = iprot.readI64();
5607
              setWarehouse_idIsSet(true);
5608
            } else { 
5609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5610
            }
5611
            break;
5612
          case 2: // TIMESTAMP
5613
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5614
              this.timestamp = iprot.readString();
5615
            } else { 
5616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5617
            }
5618
            break;
5619
          case 3: // AVAILABILITY
5620
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5621
              {
5622
                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
5623
                this.availability = new HashMap<String,Long>(2*_map10.size);
5624
                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
5625
                {
5626
                  String _key12; // required
5627
                  long _val13; // required
5628
                  _key12 = iprot.readString();
5629
                  _val13 = iprot.readI64();
5630
                  this.availability.put(_key12, _val13);
5631
                }
5632
                iprot.readMapEnd();
5633
              }
5634
            } else { 
5635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5636
            }
5637
            break;
5638
          default:
5639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5640
        }
5641
        iprot.readFieldEnd();
5642
      }
5643
      iprot.readStructEnd();
5644
      validate();
5645
    }
5646
 
5647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5648
      validate();
5649
 
5650
      oprot.writeStructBegin(STRUCT_DESC);
5651
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5652
      oprot.writeI64(this.warehouse_id);
5653
      oprot.writeFieldEnd();
5654
      if (this.timestamp != null) {
5655
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
5656
        oprot.writeString(this.timestamp);
5657
        oprot.writeFieldEnd();
5658
      }
5659
      if (this.availability != null) {
5660
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5661
        {
5662
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
5663
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
5664
          {
5665
            oprot.writeString(_iter14.getKey());
5666
            oprot.writeI64(_iter14.getValue());
5667
          }
5668
          oprot.writeMapEnd();
5669
        }
5670
        oprot.writeFieldEnd();
5671
      }
5672
      oprot.writeFieldStop();
5673
      oprot.writeStructEnd();
5674
    }
5675
 
5676
    @Override
5677
    public String toString() {
5678
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
5679
      boolean first = true;
5680
 
5681
      sb.append("warehouse_id:");
5682
      sb.append(this.warehouse_id);
5683
      first = false;
5684
      if (!first) sb.append(", ");
5685
      sb.append("timestamp:");
5686
      if (this.timestamp == null) {
5687
        sb.append("null");
5688
      } else {
5689
        sb.append(this.timestamp);
5690
      }
5691
      first = false;
5692
      if (!first) sb.append(", ");
5693
      sb.append("availability:");
5694
      if (this.availability == null) {
5695
        sb.append("null");
5696
      } else {
5697
        sb.append(this.availability);
5698
      }
5699
      first = false;
5700
      sb.append(")");
5701
      return sb.toString();
5702
    }
5703
 
5704
    public void validate() throws org.apache.thrift.TException {
5705
      // check for required fields
5706
    }
5707
 
5708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5709
      try {
5710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5711
      } catch (org.apache.thrift.TException te) {
5712
        throw new java.io.IOException(te);
5713
      }
5714
    }
5715
 
5716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5717
      try {
6531 vikram.rag 5718
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5719
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 5720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5721
      } catch (org.apache.thrift.TException te) {
5722
        throw new java.io.IOException(te);
5723
      }
5724
    }
5725
 
5726
  }
5727
 
5728
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
5729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
5730
 
5731
    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);
5732
 
5733
    private InventoryServiceException cex; // required
5734
 
5735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5737
      CEX((short)1, "cex");
5738
 
5739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5740
 
5741
      static {
5742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5743
          byName.put(field.getFieldName(), field);
5744
        }
5745
      }
5746
 
5747
      /**
5748
       * Find the _Fields constant that matches fieldId, or null if its not found.
5749
       */
5750
      public static _Fields findByThriftId(int fieldId) {
5751
        switch(fieldId) {
5752
          case 1: // CEX
5753
            return CEX;
5754
          default:
5755
            return null;
5756
        }
5757
      }
5758
 
5759
      /**
5760
       * Find the _Fields constant that matches fieldId, throwing an exception
5761
       * if it is not found.
5762
       */
5763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5764
        _Fields fields = findByThriftId(fieldId);
5765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5766
        return fields;
5767
      }
5768
 
5769
      /**
5770
       * Find the _Fields constant that matches name, or null if its not found.
5771
       */
5772
      public static _Fields findByName(String name) {
5773
        return byName.get(name);
5774
      }
5775
 
5776
      private final short _thriftId;
5777
      private final String _fieldName;
5778
 
5779
      _Fields(short thriftId, String fieldName) {
5780
        _thriftId = thriftId;
5781
        _fieldName = fieldName;
5782
      }
5783
 
5784
      public short getThriftFieldId() {
5785
        return _thriftId;
5786
      }
5787
 
5788
      public String getFieldName() {
5789
        return _fieldName;
5790
      }
5791
    }
5792
 
5793
    // isset id assignments
5794
 
5795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5796
    static {
5797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5798
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5800
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5801
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
5802
    }
5803
 
5804
    public updateInventoryHistory_result() {
5805
    }
5806
 
5807
    public updateInventoryHistory_result(
5808
      InventoryServiceException cex)
5809
    {
5810
      this();
5811
      this.cex = cex;
5812
    }
5813
 
5814
    /**
5815
     * Performs a deep copy on <i>other</i>.
5816
     */
5817
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
5818
      if (other.isSetCex()) {
5819
        this.cex = new InventoryServiceException(other.cex);
5820
      }
5821
    }
5822
 
5823
    public updateInventoryHistory_result deepCopy() {
5824
      return new updateInventoryHistory_result(this);
5825
    }
5826
 
5827
    @Override
5828
    public void clear() {
5829
      this.cex = null;
5830
    }
5831
 
5832
    public InventoryServiceException getCex() {
5833
      return this.cex;
5834
    }
5835
 
5836
    public void setCex(InventoryServiceException cex) {
5837
      this.cex = cex;
5838
    }
5839
 
5840
    public void unsetCex() {
5841
      this.cex = null;
5842
    }
5843
 
5844
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5845
    public boolean isSetCex() {
5846
      return this.cex != null;
5847
    }
5848
 
5849
    public void setCexIsSet(boolean value) {
5850
      if (!value) {
5851
        this.cex = null;
5852
      }
5853
    }
5854
 
5855
    public void setFieldValue(_Fields field, Object value) {
5856
      switch (field) {
5857
      case CEX:
5858
        if (value == null) {
5859
          unsetCex();
5860
        } else {
5861
          setCex((InventoryServiceException)value);
5862
        }
5863
        break;
5864
 
5865
      }
5866
    }
5867
 
5868
    public Object getFieldValue(_Fields field) {
5869
      switch (field) {
5870
      case CEX:
5871
        return getCex();
5872
 
5873
      }
5874
      throw new IllegalStateException();
5875
    }
5876
 
5877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5878
    public boolean isSet(_Fields field) {
5879
      if (field == null) {
5880
        throw new IllegalArgumentException();
5881
      }
5882
 
5883
      switch (field) {
5884
      case CEX:
5885
        return isSetCex();
5886
      }
5887
      throw new IllegalStateException();
5888
    }
5889
 
5890
    @Override
5891
    public boolean equals(Object that) {
5892
      if (that == null)
5893
        return false;
5894
      if (that instanceof updateInventoryHistory_result)
5895
        return this.equals((updateInventoryHistory_result)that);
5896
      return false;
5897
    }
5898
 
5899
    public boolean equals(updateInventoryHistory_result that) {
5900
      if (that == null)
5901
        return false;
5902
 
5903
      boolean this_present_cex = true && this.isSetCex();
5904
      boolean that_present_cex = true && that.isSetCex();
5905
      if (this_present_cex || that_present_cex) {
5906
        if (!(this_present_cex && that_present_cex))
5907
          return false;
5908
        if (!this.cex.equals(that.cex))
5909
          return false;
5910
      }
5911
 
5912
      return true;
5913
    }
5914
 
5915
    @Override
5916
    public int hashCode() {
5917
      return 0;
5918
    }
5919
 
5920
    public int compareTo(updateInventoryHistory_result other) {
5921
      if (!getClass().equals(other.getClass())) {
5922
        return getClass().getName().compareTo(other.getClass().getName());
5923
      }
5924
 
5925
      int lastComparison = 0;
5926
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
5927
 
5928
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5929
      if (lastComparison != 0) {
5930
        return lastComparison;
5931
      }
5932
      if (isSetCex()) {
5933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5934
        if (lastComparison != 0) {
5935
          return lastComparison;
5936
        }
5937
      }
5938
      return 0;
5939
    }
5940
 
5941
    public _Fields fieldForId(int fieldId) {
5942
      return _Fields.findByThriftId(fieldId);
5943
    }
5944
 
5945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5946
      org.apache.thrift.protocol.TField field;
5947
      iprot.readStructBegin();
5948
      while (true)
5949
      {
5950
        field = iprot.readFieldBegin();
5951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5952
          break;
5953
        }
5954
        switch (field.id) {
5955
          case 1: // CEX
5956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5957
              this.cex = new InventoryServiceException();
5958
              this.cex.read(iprot);
5959
            } else { 
5960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5961
            }
5962
            break;
5963
          default:
5964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5965
        }
5966
        iprot.readFieldEnd();
5967
      }
5968
      iprot.readStructEnd();
5969
      validate();
5970
    }
5971
 
5972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5973
      oprot.writeStructBegin(STRUCT_DESC);
5974
 
5975
      if (this.isSetCex()) {
5976
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5977
        this.cex.write(oprot);
5978
        oprot.writeFieldEnd();
5979
      }
5980
      oprot.writeFieldStop();
5981
      oprot.writeStructEnd();
5982
    }
5983
 
5984
    @Override
5985
    public String toString() {
5986
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
5987
      boolean first = true;
5988
 
5989
      sb.append("cex:");
5990
      if (this.cex == null) {
5991
        sb.append("null");
5992
      } else {
5993
        sb.append(this.cex);
5994
      }
5995
      first = false;
5996
      sb.append(")");
5997
      return sb.toString();
5998
    }
5999
 
6000
    public void validate() throws org.apache.thrift.TException {
6001
      // check for required fields
6002
    }
6003
 
6004
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6005
      try {
6006
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6007
      } catch (org.apache.thrift.TException te) {
6008
        throw new java.io.IOException(te);
6009
      }
6010
    }
6011
 
6012
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6013
      try {
6014
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6015
      } catch (org.apache.thrift.TException te) {
6016
        throw new java.io.IOException(te);
6017
      }
6018
    }
6019
 
6020
  }
6021
 
6022
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
6023
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
6024
 
6025
    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);
6026
    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);
6027
    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);
6028
 
6029
    private long warehouse_id; // required
6030
    private String timestamp; // required
6031
    private Map<String,Long> availability; // required
6032
 
6033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6035
      WAREHOUSE_ID((short)1, "warehouse_id"),
6036
      TIMESTAMP((short)2, "timestamp"),
6037
      AVAILABILITY((short)3, "availability");
6038
 
6039
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6040
 
6041
      static {
6042
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6043
          byName.put(field.getFieldName(), field);
6044
        }
6045
      }
6046
 
6047
      /**
6048
       * Find the _Fields constant that matches fieldId, or null if its not found.
6049
       */
6050
      public static _Fields findByThriftId(int fieldId) {
6051
        switch(fieldId) {
6052
          case 1: // WAREHOUSE_ID
6053
            return WAREHOUSE_ID;
6054
          case 2: // TIMESTAMP
6055
            return TIMESTAMP;
6056
          case 3: // AVAILABILITY
6057
            return AVAILABILITY;
6058
          default:
6059
            return null;
6060
        }
6061
      }
6062
 
6063
      /**
6064
       * Find the _Fields constant that matches fieldId, throwing an exception
6065
       * if it is not found.
6066
       */
6067
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6068
        _Fields fields = findByThriftId(fieldId);
6069
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6070
        return fields;
6071
      }
6072
 
6073
      /**
6074
       * Find the _Fields constant that matches name, or null if its not found.
6075
       */
6076
      public static _Fields findByName(String name) {
6077
        return byName.get(name);
6078
      }
6079
 
6080
      private final short _thriftId;
6081
      private final String _fieldName;
6082
 
6083
      _Fields(short thriftId, String fieldName) {
6084
        _thriftId = thriftId;
6085
        _fieldName = fieldName;
6086
      }
6087
 
6088
      public short getThriftFieldId() {
6089
        return _thriftId;
6090
      }
6091
 
6092
      public String getFieldName() {
6093
        return _fieldName;
6094
      }
6095
    }
6096
 
6097
    // isset id assignments
6098
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6099
    private BitSet __isset_bit_vector = new BitSet(1);
6100
 
6101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6102
    static {
6103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6104
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6106
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6108
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6109
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6110
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6111
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
6114
    }
6115
 
6116
    public updateInventory_args() {
6117
    }
6118
 
6119
    public updateInventory_args(
6120
      long warehouse_id,
6121
      String timestamp,
6122
      Map<String,Long> availability)
6123
    {
6124
      this();
6125
      this.warehouse_id = warehouse_id;
6126
      setWarehouse_idIsSet(true);
6127
      this.timestamp = timestamp;
6128
      this.availability = availability;
6129
    }
6130
 
6131
    /**
6132
     * Performs a deep copy on <i>other</i>.
6133
     */
6134
    public updateInventory_args(updateInventory_args other) {
6135
      __isset_bit_vector.clear();
6136
      __isset_bit_vector.or(other.__isset_bit_vector);
6137
      this.warehouse_id = other.warehouse_id;
6138
      if (other.isSetTimestamp()) {
6139
        this.timestamp = other.timestamp;
6140
      }
6141
      if (other.isSetAvailability()) {
6142
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6143
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6144
 
6145
          String other_element_key = other_element.getKey();
6146
          Long other_element_value = other_element.getValue();
6147
 
6148
          String __this__availability_copy_key = other_element_key;
6149
 
6150
          Long __this__availability_copy_value = other_element_value;
6151
 
6152
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6153
        }
6154
        this.availability = __this__availability;
6155
      }
6156
    }
6157
 
6158
    public updateInventory_args deepCopy() {
6159
      return new updateInventory_args(this);
6160
    }
6161
 
6162
    @Override
6163
    public void clear() {
6164
      setWarehouse_idIsSet(false);
6165
      this.warehouse_id = 0;
6166
      this.timestamp = null;
6167
      this.availability = null;
6168
    }
6169
 
6170
    public long getWarehouse_id() {
6171
      return this.warehouse_id;
6172
    }
6173
 
6174
    public void setWarehouse_id(long warehouse_id) {
6175
      this.warehouse_id = warehouse_id;
6176
      setWarehouse_idIsSet(true);
6177
    }
6178
 
6179
    public void unsetWarehouse_id() {
6180
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6181
    }
6182
 
6183
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6184
    public boolean isSetWarehouse_id() {
6185
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6186
    }
6187
 
6188
    public void setWarehouse_idIsSet(boolean value) {
6189
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6190
    }
6191
 
6192
    public String getTimestamp() {
6193
      return this.timestamp;
6194
    }
6195
 
6196
    public void setTimestamp(String timestamp) {
6197
      this.timestamp = timestamp;
6198
    }
6199
 
6200
    public void unsetTimestamp() {
6201
      this.timestamp = null;
6202
    }
6203
 
6204
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6205
    public boolean isSetTimestamp() {
6206
      return this.timestamp != null;
6207
    }
6208
 
6209
    public void setTimestampIsSet(boolean value) {
6210
      if (!value) {
6211
        this.timestamp = null;
6212
      }
6213
    }
6214
 
6215
    public int getAvailabilitySize() {
6216
      return (this.availability == null) ? 0 : this.availability.size();
6217
    }
6218
 
6219
    public void putToAvailability(String key, long val) {
6220
      if (this.availability == null) {
6221
        this.availability = new HashMap<String,Long>();
6222
      }
6223
      this.availability.put(key, val);
6224
    }
6225
 
6226
    public Map<String,Long> getAvailability() {
6227
      return this.availability;
6228
    }
6229
 
6230
    public void setAvailability(Map<String,Long> availability) {
6231
      this.availability = availability;
6232
    }
6233
 
6234
    public void unsetAvailability() {
6235
      this.availability = null;
6236
    }
6237
 
6238
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
6239
    public boolean isSetAvailability() {
6240
      return this.availability != null;
6241
    }
6242
 
6243
    public void setAvailabilityIsSet(boolean value) {
6244
      if (!value) {
6245
        this.availability = null;
6246
      }
6247
    }
6248
 
6249
    public void setFieldValue(_Fields field, Object value) {
6250
      switch (field) {
6251
      case WAREHOUSE_ID:
6252
        if (value == null) {
6253
          unsetWarehouse_id();
6254
        } else {
6255
          setWarehouse_id((Long)value);
6256
        }
6257
        break;
6258
 
6259
      case TIMESTAMP:
6260
        if (value == null) {
6261
          unsetTimestamp();
6262
        } else {
6263
          setTimestamp((String)value);
6264
        }
6265
        break;
6266
 
6267
      case AVAILABILITY:
6268
        if (value == null) {
6269
          unsetAvailability();
6270
        } else {
6271
          setAvailability((Map<String,Long>)value);
6272
        }
6273
        break;
6274
 
6275
      }
6276
    }
6277
 
6278
    public Object getFieldValue(_Fields field) {
6279
      switch (field) {
6280
      case WAREHOUSE_ID:
6281
        return Long.valueOf(getWarehouse_id());
6282
 
6283
      case TIMESTAMP:
6284
        return getTimestamp();
6285
 
6286
      case AVAILABILITY:
6287
        return getAvailability();
6288
 
6289
      }
6290
      throw new IllegalStateException();
6291
    }
6292
 
6293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6294
    public boolean isSet(_Fields field) {
6295
      if (field == null) {
6296
        throw new IllegalArgumentException();
6297
      }
6298
 
6299
      switch (field) {
6300
      case WAREHOUSE_ID:
6301
        return isSetWarehouse_id();
6302
      case TIMESTAMP:
6303
        return isSetTimestamp();
6304
      case AVAILABILITY:
6305
        return isSetAvailability();
6306
      }
6307
      throw new IllegalStateException();
6308
    }
6309
 
6310
    @Override
6311
    public boolean equals(Object that) {
6312
      if (that == null)
6313
        return false;
6314
      if (that instanceof updateInventory_args)
6315
        return this.equals((updateInventory_args)that);
6316
      return false;
6317
    }
6318
 
6319
    public boolean equals(updateInventory_args that) {
6320
      if (that == null)
6321
        return false;
6322
 
6323
      boolean this_present_warehouse_id = true;
6324
      boolean that_present_warehouse_id = true;
6325
      if (this_present_warehouse_id || that_present_warehouse_id) {
6326
        if (!(this_present_warehouse_id && that_present_warehouse_id))
6327
          return false;
6328
        if (this.warehouse_id != that.warehouse_id)
6329
          return false;
6330
      }
6331
 
6332
      boolean this_present_timestamp = true && this.isSetTimestamp();
6333
      boolean that_present_timestamp = true && that.isSetTimestamp();
6334
      if (this_present_timestamp || that_present_timestamp) {
6335
        if (!(this_present_timestamp && that_present_timestamp))
6336
          return false;
6337
        if (!this.timestamp.equals(that.timestamp))
6338
          return false;
6339
      }
6340
 
6341
      boolean this_present_availability = true && this.isSetAvailability();
6342
      boolean that_present_availability = true && that.isSetAvailability();
6343
      if (this_present_availability || that_present_availability) {
6344
        if (!(this_present_availability && that_present_availability))
6345
          return false;
6346
        if (!this.availability.equals(that.availability))
6347
          return false;
6348
      }
6349
 
6350
      return true;
6351
    }
6352
 
6353
    @Override
6354
    public int hashCode() {
6355
      return 0;
6356
    }
6357
 
6358
    public int compareTo(updateInventory_args other) {
6359
      if (!getClass().equals(other.getClass())) {
6360
        return getClass().getName().compareTo(other.getClass().getName());
6361
      }
6362
 
6363
      int lastComparison = 0;
6364
      updateInventory_args typedOther = (updateInventory_args)other;
6365
 
6366
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
6367
      if (lastComparison != 0) {
6368
        return lastComparison;
6369
      }
6370
      if (isSetWarehouse_id()) {
6371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
6372
        if (lastComparison != 0) {
6373
          return lastComparison;
6374
        }
6375
      }
6376
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
6377
      if (lastComparison != 0) {
6378
        return lastComparison;
6379
      }
6380
      if (isSetTimestamp()) {
6381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
6382
        if (lastComparison != 0) {
6383
          return lastComparison;
6384
        }
6385
      }
6386
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
6387
      if (lastComparison != 0) {
6388
        return lastComparison;
6389
      }
6390
      if (isSetAvailability()) {
6391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
6392
        if (lastComparison != 0) {
6393
          return lastComparison;
6394
        }
6395
      }
6396
      return 0;
6397
    }
6398
 
6399
    public _Fields fieldForId(int fieldId) {
6400
      return _Fields.findByThriftId(fieldId);
6401
    }
6402
 
6403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6404
      org.apache.thrift.protocol.TField field;
6405
      iprot.readStructBegin();
6406
      while (true)
6407
      {
6408
        field = iprot.readFieldBegin();
6409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6410
          break;
6411
        }
6412
        switch (field.id) {
6413
          case 1: // WAREHOUSE_ID
6414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6415
              this.warehouse_id = iprot.readI64();
6416
              setWarehouse_idIsSet(true);
6417
            } else { 
6418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6419
            }
6420
            break;
6421
          case 2: // TIMESTAMP
6422
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6423
              this.timestamp = iprot.readString();
6424
            } else { 
6425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6426
            }
6427
            break;
6428
          case 3: // AVAILABILITY
6429
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
6430
              {
6431
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
6432
                this.availability = new HashMap<String,Long>(2*_map15.size);
6433
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
6434
                {
6435
                  String _key17; // required
6436
                  long _val18; // required
6437
                  _key17 = iprot.readString();
6438
                  _val18 = iprot.readI64();
6439
                  this.availability.put(_key17, _val18);
6440
                }
6441
                iprot.readMapEnd();
6442
              }
6443
            } else { 
6444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6445
            }
6446
            break;
6447
          default:
6448
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6449
        }
6450
        iprot.readFieldEnd();
6451
      }
6452
      iprot.readStructEnd();
6453
      validate();
6454
    }
6455
 
6456
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6457
      validate();
6458
 
6459
      oprot.writeStructBegin(STRUCT_DESC);
6460
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6461
      oprot.writeI64(this.warehouse_id);
6462
      oprot.writeFieldEnd();
6463
      if (this.timestamp != null) {
6464
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6465
        oprot.writeString(this.timestamp);
6466
        oprot.writeFieldEnd();
6467
      }
6468
      if (this.availability != null) {
6469
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6470
        {
6471
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
6472
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
6473
          {
6474
            oprot.writeString(_iter19.getKey());
6475
            oprot.writeI64(_iter19.getValue());
6476
          }
6477
          oprot.writeMapEnd();
6478
        }
6479
        oprot.writeFieldEnd();
6480
      }
6481
      oprot.writeFieldStop();
6482
      oprot.writeStructEnd();
6483
    }
6484
 
6485
    @Override
6486
    public String toString() {
6487
      StringBuilder sb = new StringBuilder("updateInventory_args(");
6488
      boolean first = true;
6489
 
6490
      sb.append("warehouse_id:");
6491
      sb.append(this.warehouse_id);
6492
      first = false;
6493
      if (!first) sb.append(", ");
6494
      sb.append("timestamp:");
6495
      if (this.timestamp == null) {
6496
        sb.append("null");
6497
      } else {
6498
        sb.append(this.timestamp);
6499
      }
6500
      first = false;
6501
      if (!first) sb.append(", ");
6502
      sb.append("availability:");
6503
      if (this.availability == null) {
6504
        sb.append("null");
6505
      } else {
6506
        sb.append(this.availability);
6507
      }
6508
      first = false;
6509
      sb.append(")");
6510
      return sb.toString();
6511
    }
6512
 
6513
    public void validate() throws org.apache.thrift.TException {
6514
      // check for required fields
6515
    }
6516
 
6517
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6518
      try {
6519
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6520
      } catch (org.apache.thrift.TException te) {
6521
        throw new java.io.IOException(te);
6522
      }
6523
    }
6524
 
6525
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6526
      try {
6527
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6528
        __isset_bit_vector = new BitSet(1);
6529
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6530
      } catch (org.apache.thrift.TException te) {
6531
        throw new java.io.IOException(te);
6532
      }
6533
    }
6534
 
6535
  }
6536
 
6537
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
6538
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
6539
 
6540
    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);
6541
 
6542
    private InventoryServiceException cex; // required
6543
 
6544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6546
      CEX((short)1, "cex");
6547
 
6548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6549
 
6550
      static {
6551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6552
          byName.put(field.getFieldName(), field);
6553
        }
6554
      }
6555
 
6556
      /**
6557
       * Find the _Fields constant that matches fieldId, or null if its not found.
6558
       */
6559
      public static _Fields findByThriftId(int fieldId) {
6560
        switch(fieldId) {
6561
          case 1: // CEX
6562
            return CEX;
6563
          default:
6564
            return null;
6565
        }
6566
      }
6567
 
6568
      /**
6569
       * Find the _Fields constant that matches fieldId, throwing an exception
6570
       * if it is not found.
6571
       */
6572
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6573
        _Fields fields = findByThriftId(fieldId);
6574
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6575
        return fields;
6576
      }
6577
 
6578
      /**
6579
       * Find the _Fields constant that matches name, or null if its not found.
6580
       */
6581
      public static _Fields findByName(String name) {
6582
        return byName.get(name);
6583
      }
6584
 
6585
      private final short _thriftId;
6586
      private final String _fieldName;
6587
 
6588
      _Fields(short thriftId, String fieldName) {
6589
        _thriftId = thriftId;
6590
        _fieldName = fieldName;
6591
      }
6592
 
6593
      public short getThriftFieldId() {
6594
        return _thriftId;
6595
      }
6596
 
6597
      public String getFieldName() {
6598
        return _fieldName;
6599
      }
6600
    }
6601
 
6602
    // isset id assignments
6603
 
6604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6605
    static {
6606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6607
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
6611
    }
6612
 
6613
    public updateInventory_result() {
6614
    }
6615
 
6616
    public updateInventory_result(
6617
      InventoryServiceException cex)
6618
    {
6619
      this();
6620
      this.cex = cex;
6621
    }
6622
 
6623
    /**
6624
     * Performs a deep copy on <i>other</i>.
6625
     */
6626
    public updateInventory_result(updateInventory_result other) {
6627
      if (other.isSetCex()) {
6628
        this.cex = new InventoryServiceException(other.cex);
6629
      }
6630
    }
6631
 
6632
    public updateInventory_result deepCopy() {
6633
      return new updateInventory_result(this);
6634
    }
6635
 
6636
    @Override
6637
    public void clear() {
6638
      this.cex = null;
6639
    }
6640
 
6641
    public InventoryServiceException getCex() {
6642
      return this.cex;
6643
    }
6644
 
6645
    public void setCex(InventoryServiceException cex) {
6646
      this.cex = cex;
6647
    }
6648
 
6649
    public void unsetCex() {
6650
      this.cex = null;
6651
    }
6652
 
6653
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6654
    public boolean isSetCex() {
6655
      return this.cex != null;
6656
    }
6657
 
6658
    public void setCexIsSet(boolean value) {
6659
      if (!value) {
6660
        this.cex = null;
6661
      }
6662
    }
6663
 
6664
    public void setFieldValue(_Fields field, Object value) {
6665
      switch (field) {
6666
      case CEX:
6667
        if (value == null) {
6668
          unsetCex();
6669
        } else {
6670
          setCex((InventoryServiceException)value);
6671
        }
6672
        break;
6673
 
6674
      }
6675
    }
6676
 
6677
    public Object getFieldValue(_Fields field) {
6678
      switch (field) {
6679
      case CEX:
6680
        return getCex();
6681
 
6682
      }
6683
      throw new IllegalStateException();
6684
    }
6685
 
6686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6687
    public boolean isSet(_Fields field) {
6688
      if (field == null) {
6689
        throw new IllegalArgumentException();
6690
      }
6691
 
6692
      switch (field) {
6693
      case CEX:
6694
        return isSetCex();
6695
      }
6696
      throw new IllegalStateException();
6697
    }
6698
 
6699
    @Override
6700
    public boolean equals(Object that) {
6701
      if (that == null)
6702
        return false;
6703
      if (that instanceof updateInventory_result)
6704
        return this.equals((updateInventory_result)that);
6705
      return false;
6706
    }
6707
 
6708
    public boolean equals(updateInventory_result that) {
6709
      if (that == null)
6710
        return false;
6711
 
6712
      boolean this_present_cex = true && this.isSetCex();
6713
      boolean that_present_cex = true && that.isSetCex();
6714
      if (this_present_cex || that_present_cex) {
6715
        if (!(this_present_cex && that_present_cex))
6716
          return false;
6717
        if (!this.cex.equals(that.cex))
6718
          return false;
6719
      }
6720
 
6721
      return true;
6722
    }
6723
 
6724
    @Override
6725
    public int hashCode() {
6726
      return 0;
6727
    }
6728
 
6729
    public int compareTo(updateInventory_result other) {
6730
      if (!getClass().equals(other.getClass())) {
6731
        return getClass().getName().compareTo(other.getClass().getName());
6732
      }
6733
 
6734
      int lastComparison = 0;
6735
      updateInventory_result typedOther = (updateInventory_result)other;
6736
 
6737
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6738
      if (lastComparison != 0) {
6739
        return lastComparison;
6740
      }
6741
      if (isSetCex()) {
6742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6743
        if (lastComparison != 0) {
6744
          return lastComparison;
6745
        }
6746
      }
6747
      return 0;
6748
    }
6749
 
6750
    public _Fields fieldForId(int fieldId) {
6751
      return _Fields.findByThriftId(fieldId);
6752
    }
6753
 
6754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6755
      org.apache.thrift.protocol.TField field;
6756
      iprot.readStructBegin();
6757
      while (true)
6758
      {
6759
        field = iprot.readFieldBegin();
6760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6761
          break;
6762
        }
6763
        switch (field.id) {
6764
          case 1: // CEX
6765
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6766
              this.cex = new InventoryServiceException();
6767
              this.cex.read(iprot);
6768
            } else { 
6769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6770
            }
6771
            break;
6772
          default:
6773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6774
        }
6775
        iprot.readFieldEnd();
6776
      }
6777
      iprot.readStructEnd();
6778
      validate();
6779
    }
6780
 
6781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6782
      oprot.writeStructBegin(STRUCT_DESC);
6783
 
6784
      if (this.isSetCex()) {
6785
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6786
        this.cex.write(oprot);
6787
        oprot.writeFieldEnd();
6788
      }
6789
      oprot.writeFieldStop();
6790
      oprot.writeStructEnd();
6791
    }
6792
 
6793
    @Override
6794
    public String toString() {
6795
      StringBuilder sb = new StringBuilder("updateInventory_result(");
6796
      boolean first = true;
6797
 
6798
      sb.append("cex:");
6799
      if (this.cex == null) {
6800
        sb.append("null");
6801
      } else {
6802
        sb.append(this.cex);
6803
      }
6804
      first = false;
6805
      sb.append(")");
6806
      return sb.toString();
6807
    }
6808
 
6809
    public void validate() throws org.apache.thrift.TException {
6810
      // check for required fields
6811
    }
6812
 
6813
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6814
      try {
6815
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6816
      } catch (org.apache.thrift.TException te) {
6817
        throw new java.io.IOException(te);
6818
      }
6819
    }
6820
 
6821
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6822
      try {
6823
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6824
      } catch (org.apache.thrift.TException te) {
6825
        throw new java.io.IOException(te);
6826
      }
6827
    }
6828
 
6829
  }
6830
 
6831
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
6832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
6833
 
6834
    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);
6835
    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);
6836
    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);
6837
 
6838
    private long itemId; // required
6839
    private long warehouseId; // required
6840
    private long quantity; // required
6841
 
6842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6843
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6844
      ITEM_ID((short)1, "itemId"),
6845
      WAREHOUSE_ID((short)2, "warehouseId"),
6846
      QUANTITY((short)3, "quantity");
6847
 
6848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6849
 
6850
      static {
6851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6852
          byName.put(field.getFieldName(), field);
6853
        }
6854
      }
6855
 
6856
      /**
6857
       * Find the _Fields constant that matches fieldId, or null if its not found.
6858
       */
6859
      public static _Fields findByThriftId(int fieldId) {
6860
        switch(fieldId) {
6861
          case 1: // ITEM_ID
6862
            return ITEM_ID;
6863
          case 2: // WAREHOUSE_ID
6864
            return WAREHOUSE_ID;
6865
          case 3: // QUANTITY
6866
            return QUANTITY;
6867
          default:
6868
            return null;
6869
        }
6870
      }
6871
 
6872
      /**
6873
       * Find the _Fields constant that matches fieldId, throwing an exception
6874
       * if it is not found.
6875
       */
6876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6877
        _Fields fields = findByThriftId(fieldId);
6878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6879
        return fields;
6880
      }
6881
 
6882
      /**
6883
       * Find the _Fields constant that matches name, or null if its not found.
6884
       */
6885
      public static _Fields findByName(String name) {
6886
        return byName.get(name);
6887
      }
6888
 
6889
      private final short _thriftId;
6890
      private final String _fieldName;
6891
 
6892
      _Fields(short thriftId, String fieldName) {
6893
        _thriftId = thriftId;
6894
        _fieldName = fieldName;
6895
      }
6896
 
6897
      public short getThriftFieldId() {
6898
        return _thriftId;
6899
      }
6900
 
6901
      public String getFieldName() {
6902
        return _fieldName;
6903
      }
6904
    }
6905
 
6906
    // isset id assignments
6907
    private static final int __ITEMID_ISSET_ID = 0;
6908
    private static final int __WAREHOUSEID_ISSET_ID = 1;
6909
    private static final int __QUANTITY_ISSET_ID = 2;
6910
    private BitSet __isset_bit_vector = new BitSet(3);
6911
 
6912
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6913
    static {
6914
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6915
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6916
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6917
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6919
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
6923
    }
6924
 
6925
    public addInventory_args() {
6926
    }
6927
 
6928
    public addInventory_args(
6929
      long itemId,
6930
      long warehouseId,
6931
      long quantity)
6932
    {
6933
      this();
6934
      this.itemId = itemId;
6935
      setItemIdIsSet(true);
6936
      this.warehouseId = warehouseId;
6937
      setWarehouseIdIsSet(true);
6938
      this.quantity = quantity;
6939
      setQuantityIsSet(true);
6940
    }
6941
 
6942
    /**
6943
     * Performs a deep copy on <i>other</i>.
6944
     */
6945
    public addInventory_args(addInventory_args other) {
6946
      __isset_bit_vector.clear();
6947
      __isset_bit_vector.or(other.__isset_bit_vector);
6948
      this.itemId = other.itemId;
6949
      this.warehouseId = other.warehouseId;
6950
      this.quantity = other.quantity;
6951
    }
6952
 
6953
    public addInventory_args deepCopy() {
6954
      return new addInventory_args(this);
6955
    }
6956
 
6957
    @Override
6958
    public void clear() {
6959
      setItemIdIsSet(false);
6960
      this.itemId = 0;
6961
      setWarehouseIdIsSet(false);
6962
      this.warehouseId = 0;
6963
      setQuantityIsSet(false);
6964
      this.quantity = 0;
6965
    }
6966
 
6967
    public long getItemId() {
6968
      return this.itemId;
6969
    }
6970
 
6971
    public void setItemId(long itemId) {
6972
      this.itemId = itemId;
6973
      setItemIdIsSet(true);
6974
    }
6975
 
6976
    public void unsetItemId() {
6977
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
6978
    }
6979
 
6980
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
6981
    public boolean isSetItemId() {
6982
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
6983
    }
6984
 
6985
    public void setItemIdIsSet(boolean value) {
6986
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
6987
    }
6988
 
6989
    public long getWarehouseId() {
6990
      return this.warehouseId;
6991
    }
6992
 
6993
    public void setWarehouseId(long warehouseId) {
6994
      this.warehouseId = warehouseId;
6995
      setWarehouseIdIsSet(true);
6996
    }
6997
 
6998
    public void unsetWarehouseId() {
6999
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
7000
    }
7001
 
7002
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
7003
    public boolean isSetWarehouseId() {
7004
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
7005
    }
7006
 
7007
    public void setWarehouseIdIsSet(boolean value) {
7008
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
7009
    }
7010
 
7011
    public long getQuantity() {
7012
      return this.quantity;
7013
    }
7014
 
7015
    public void setQuantity(long quantity) {
7016
      this.quantity = quantity;
7017
      setQuantityIsSet(true);
7018
    }
7019
 
7020
    public void unsetQuantity() {
7021
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7022
    }
7023
 
7024
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7025
    public boolean isSetQuantity() {
7026
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7027
    }
7028
 
7029
    public void setQuantityIsSet(boolean value) {
7030
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7031
    }
7032
 
7033
    public void setFieldValue(_Fields field, Object value) {
7034
      switch (field) {
7035
      case ITEM_ID:
7036
        if (value == null) {
7037
          unsetItemId();
7038
        } else {
7039
          setItemId((Long)value);
7040
        }
7041
        break;
7042
 
7043
      case WAREHOUSE_ID:
7044
        if (value == null) {
7045
          unsetWarehouseId();
7046
        } else {
7047
          setWarehouseId((Long)value);
7048
        }
7049
        break;
7050
 
7051
      case QUANTITY:
7052
        if (value == null) {
7053
          unsetQuantity();
7054
        } else {
7055
          setQuantity((Long)value);
7056
        }
7057
        break;
7058
 
7059
      }
7060
    }
7061
 
7062
    public Object getFieldValue(_Fields field) {
7063
      switch (field) {
7064
      case ITEM_ID:
7065
        return Long.valueOf(getItemId());
7066
 
7067
      case WAREHOUSE_ID:
7068
        return Long.valueOf(getWarehouseId());
7069
 
7070
      case QUANTITY:
7071
        return Long.valueOf(getQuantity());
7072
 
7073
      }
7074
      throw new IllegalStateException();
7075
    }
7076
 
7077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7078
    public boolean isSet(_Fields field) {
7079
      if (field == null) {
7080
        throw new IllegalArgumentException();
7081
      }
7082
 
7083
      switch (field) {
7084
      case ITEM_ID:
7085
        return isSetItemId();
7086
      case WAREHOUSE_ID:
7087
        return isSetWarehouseId();
7088
      case QUANTITY:
7089
        return isSetQuantity();
7090
      }
7091
      throw new IllegalStateException();
7092
    }
7093
 
7094
    @Override
7095
    public boolean equals(Object that) {
7096
      if (that == null)
7097
        return false;
7098
      if (that instanceof addInventory_args)
7099
        return this.equals((addInventory_args)that);
7100
      return false;
7101
    }
7102
 
7103
    public boolean equals(addInventory_args that) {
7104
      if (that == null)
7105
        return false;
7106
 
7107
      boolean this_present_itemId = true;
7108
      boolean that_present_itemId = true;
7109
      if (this_present_itemId || that_present_itemId) {
7110
        if (!(this_present_itemId && that_present_itemId))
7111
          return false;
7112
        if (this.itemId != that.itemId)
7113
          return false;
7114
      }
7115
 
7116
      boolean this_present_warehouseId = true;
7117
      boolean that_present_warehouseId = true;
7118
      if (this_present_warehouseId || that_present_warehouseId) {
7119
        if (!(this_present_warehouseId && that_present_warehouseId))
7120
          return false;
7121
        if (this.warehouseId != that.warehouseId)
7122
          return false;
7123
      }
7124
 
7125
      boolean this_present_quantity = true;
7126
      boolean that_present_quantity = true;
7127
      if (this_present_quantity || that_present_quantity) {
7128
        if (!(this_present_quantity && that_present_quantity))
7129
          return false;
7130
        if (this.quantity != that.quantity)
7131
          return false;
7132
      }
7133
 
7134
      return true;
7135
    }
7136
 
7137
    @Override
7138
    public int hashCode() {
7139
      return 0;
7140
    }
7141
 
7142
    public int compareTo(addInventory_args other) {
7143
      if (!getClass().equals(other.getClass())) {
7144
        return getClass().getName().compareTo(other.getClass().getName());
7145
      }
7146
 
7147
      int lastComparison = 0;
7148
      addInventory_args typedOther = (addInventory_args)other;
7149
 
7150
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
7151
      if (lastComparison != 0) {
7152
        return lastComparison;
7153
      }
7154
      if (isSetItemId()) {
7155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
7156
        if (lastComparison != 0) {
7157
          return lastComparison;
7158
        }
7159
      }
7160
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
7161
      if (lastComparison != 0) {
7162
        return lastComparison;
7163
      }
7164
      if (isSetWarehouseId()) {
7165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7166
        if (lastComparison != 0) {
7167
          return lastComparison;
7168
        }
7169
      }
7170
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
7171
      if (lastComparison != 0) {
7172
        return lastComparison;
7173
      }
7174
      if (isSetQuantity()) {
7175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
7176
        if (lastComparison != 0) {
7177
          return lastComparison;
7178
        }
7179
      }
7180
      return 0;
7181
    }
7182
 
7183
    public _Fields fieldForId(int fieldId) {
7184
      return _Fields.findByThriftId(fieldId);
7185
    }
7186
 
7187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7188
      org.apache.thrift.protocol.TField field;
7189
      iprot.readStructBegin();
7190
      while (true)
7191
      {
7192
        field = iprot.readFieldBegin();
7193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7194
          break;
7195
        }
7196
        switch (field.id) {
7197
          case 1: // ITEM_ID
7198
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7199
              this.itemId = iprot.readI64();
7200
              setItemIdIsSet(true);
7201
            } else { 
7202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7203
            }
7204
            break;
7205
          case 2: // WAREHOUSE_ID
7206
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7207
              this.warehouseId = iprot.readI64();
7208
              setWarehouseIdIsSet(true);
7209
            } else { 
7210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7211
            }
7212
            break;
7213
          case 3: // QUANTITY
7214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7215
              this.quantity = iprot.readI64();
7216
              setQuantityIsSet(true);
7217
            } else { 
7218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7219
            }
7220
            break;
7221
          default:
7222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7223
        }
7224
        iprot.readFieldEnd();
7225
      }
7226
      iprot.readStructEnd();
7227
      validate();
7228
    }
7229
 
7230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7231
      validate();
7232
 
7233
      oprot.writeStructBegin(STRUCT_DESC);
7234
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7235
      oprot.writeI64(this.itemId);
7236
      oprot.writeFieldEnd();
7237
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7238
      oprot.writeI64(this.warehouseId);
7239
      oprot.writeFieldEnd();
7240
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7241
      oprot.writeI64(this.quantity);
7242
      oprot.writeFieldEnd();
7243
      oprot.writeFieldStop();
7244
      oprot.writeStructEnd();
7245
    }
7246
 
7247
    @Override
7248
    public String toString() {
7249
      StringBuilder sb = new StringBuilder("addInventory_args(");
7250
      boolean first = true;
7251
 
7252
      sb.append("itemId:");
7253
      sb.append(this.itemId);
7254
      first = false;
7255
      if (!first) sb.append(", ");
7256
      sb.append("warehouseId:");
7257
      sb.append(this.warehouseId);
7258
      first = false;
7259
      if (!first) sb.append(", ");
7260
      sb.append("quantity:");
7261
      sb.append(this.quantity);
7262
      first = false;
7263
      sb.append(")");
7264
      return sb.toString();
7265
    }
7266
 
7267
    public void validate() throws org.apache.thrift.TException {
7268
      // check for required fields
7269
    }
7270
 
7271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7272
      try {
7273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7274
      } catch (org.apache.thrift.TException te) {
7275
        throw new java.io.IOException(te);
7276
      }
7277
    }
7278
 
7279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7280
      try {
7281
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7282
        __isset_bit_vector = new BitSet(1);
7283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7284
      } catch (org.apache.thrift.TException te) {
7285
        throw new java.io.IOException(te);
7286
      }
7287
    }
7288
 
7289
  }
7290
 
7291
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
7292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
7293
 
7294
    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);
7295
 
7296
    private InventoryServiceException cex; // required
7297
 
7298
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7299
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7300
      CEX((short)1, "cex");
7301
 
7302
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7303
 
7304
      static {
7305
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7306
          byName.put(field.getFieldName(), field);
7307
        }
7308
      }
7309
 
7310
      /**
7311
       * Find the _Fields constant that matches fieldId, or null if its not found.
7312
       */
7313
      public static _Fields findByThriftId(int fieldId) {
7314
        switch(fieldId) {
7315
          case 1: // CEX
7316
            return CEX;
7317
          default:
7318
            return null;
7319
        }
7320
      }
7321
 
7322
      /**
7323
       * Find the _Fields constant that matches fieldId, throwing an exception
7324
       * if it is not found.
7325
       */
7326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7327
        _Fields fields = findByThriftId(fieldId);
7328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7329
        return fields;
7330
      }
7331
 
7332
      /**
7333
       * Find the _Fields constant that matches name, or null if its not found.
7334
       */
7335
      public static _Fields findByName(String name) {
7336
        return byName.get(name);
7337
      }
7338
 
7339
      private final short _thriftId;
7340
      private final String _fieldName;
7341
 
7342
      _Fields(short thriftId, String fieldName) {
7343
        _thriftId = thriftId;
7344
        _fieldName = fieldName;
7345
      }
7346
 
7347
      public short getThriftFieldId() {
7348
        return _thriftId;
7349
      }
7350
 
7351
      public String getFieldName() {
7352
        return _fieldName;
7353
      }
7354
    }
7355
 
7356
    // isset id assignments
7357
 
7358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7359
    static {
7360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7361
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
7365
    }
7366
 
7367
    public addInventory_result() {
7368
    }
7369
 
7370
    public addInventory_result(
7371
      InventoryServiceException cex)
7372
    {
7373
      this();
7374
      this.cex = cex;
7375
    }
7376
 
7377
    /**
7378
     * Performs a deep copy on <i>other</i>.
7379
     */
7380
    public addInventory_result(addInventory_result other) {
7381
      if (other.isSetCex()) {
7382
        this.cex = new InventoryServiceException(other.cex);
7383
      }
7384
    }
7385
 
7386
    public addInventory_result deepCopy() {
7387
      return new addInventory_result(this);
7388
    }
7389
 
7390
    @Override
7391
    public void clear() {
7392
      this.cex = null;
7393
    }
7394
 
7395
    public InventoryServiceException getCex() {
7396
      return this.cex;
7397
    }
7398
 
7399
    public void setCex(InventoryServiceException cex) {
7400
      this.cex = cex;
7401
    }
7402
 
7403
    public void unsetCex() {
7404
      this.cex = null;
7405
    }
7406
 
7407
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7408
    public boolean isSetCex() {
7409
      return this.cex != null;
7410
    }
7411
 
7412
    public void setCexIsSet(boolean value) {
7413
      if (!value) {
7414
        this.cex = null;
7415
      }
7416
    }
7417
 
7418
    public void setFieldValue(_Fields field, Object value) {
7419
      switch (field) {
7420
      case CEX:
7421
        if (value == null) {
7422
          unsetCex();
7423
        } else {
7424
          setCex((InventoryServiceException)value);
7425
        }
7426
        break;
7427
 
7428
      }
7429
    }
7430
 
7431
    public Object getFieldValue(_Fields field) {
7432
      switch (field) {
7433
      case CEX:
7434
        return getCex();
7435
 
7436
      }
7437
      throw new IllegalStateException();
7438
    }
7439
 
7440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7441
    public boolean isSet(_Fields field) {
7442
      if (field == null) {
7443
        throw new IllegalArgumentException();
7444
      }
7445
 
7446
      switch (field) {
7447
      case CEX:
7448
        return isSetCex();
7449
      }
7450
      throw new IllegalStateException();
7451
    }
7452
 
7453
    @Override
7454
    public boolean equals(Object that) {
7455
      if (that == null)
7456
        return false;
7457
      if (that instanceof addInventory_result)
7458
        return this.equals((addInventory_result)that);
7459
      return false;
7460
    }
7461
 
7462
    public boolean equals(addInventory_result that) {
7463
      if (that == null)
7464
        return false;
7465
 
7466
      boolean this_present_cex = true && this.isSetCex();
7467
      boolean that_present_cex = true && that.isSetCex();
7468
      if (this_present_cex || that_present_cex) {
7469
        if (!(this_present_cex && that_present_cex))
7470
          return false;
7471
        if (!this.cex.equals(that.cex))
7472
          return false;
7473
      }
7474
 
7475
      return true;
7476
    }
7477
 
7478
    @Override
7479
    public int hashCode() {
7480
      return 0;
7481
    }
7482
 
7483
    public int compareTo(addInventory_result other) {
7484
      if (!getClass().equals(other.getClass())) {
7485
        return getClass().getName().compareTo(other.getClass().getName());
7486
      }
7487
 
7488
      int lastComparison = 0;
7489
      addInventory_result typedOther = (addInventory_result)other;
7490
 
7491
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7492
      if (lastComparison != 0) {
7493
        return lastComparison;
7494
      }
7495
      if (isSetCex()) {
7496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7497
        if (lastComparison != 0) {
7498
          return lastComparison;
7499
        }
7500
      }
7501
      return 0;
7502
    }
7503
 
7504
    public _Fields fieldForId(int fieldId) {
7505
      return _Fields.findByThriftId(fieldId);
7506
    }
7507
 
7508
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7509
      org.apache.thrift.protocol.TField field;
7510
      iprot.readStructBegin();
7511
      while (true)
7512
      {
7513
        field = iprot.readFieldBegin();
7514
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7515
          break;
7516
        }
7517
        switch (field.id) {
7518
          case 1: // CEX
7519
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7520
              this.cex = new InventoryServiceException();
7521
              this.cex.read(iprot);
7522
            } else { 
7523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7524
            }
7525
            break;
7526
          default:
7527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7528
        }
7529
        iprot.readFieldEnd();
7530
      }
7531
      iprot.readStructEnd();
7532
      validate();
7533
    }
7534
 
7535
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7536
      oprot.writeStructBegin(STRUCT_DESC);
7537
 
7538
      if (this.isSetCex()) {
7539
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7540
        this.cex.write(oprot);
7541
        oprot.writeFieldEnd();
7542
      }
7543
      oprot.writeFieldStop();
7544
      oprot.writeStructEnd();
7545
    }
7546
 
7547
    @Override
7548
    public String toString() {
7549
      StringBuilder sb = new StringBuilder("addInventory_result(");
7550
      boolean first = true;
7551
 
7552
      sb.append("cex:");
7553
      if (this.cex == null) {
7554
        sb.append("null");
7555
      } else {
7556
        sb.append(this.cex);
7557
      }
7558
      first = false;
7559
      sb.append(")");
7560
      return sb.toString();
7561
    }
7562
 
7563
    public void validate() throws org.apache.thrift.TException {
7564
      // check for required fields
7565
    }
7566
 
7567
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7568
      try {
7569
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7570
      } catch (org.apache.thrift.TException te) {
7571
        throw new java.io.IOException(te);
7572
      }
7573
    }
7574
 
7575
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7576
      try {
7577
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7578
      } catch (org.apache.thrift.TException te) {
7579
        throw new java.io.IOException(te);
7580
      }
7581
    }
7582
 
7583
  }
7584
 
7585
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7586
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
7587
 
7588
    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);
7589
 
7590
    private long warehouse_id; // required
7591
 
7592
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7593
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7594
      WAREHOUSE_ID((short)1, "warehouse_id");
7595
 
7596
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7597
 
7598
      static {
7599
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7600
          byName.put(field.getFieldName(), field);
7601
        }
7602
      }
7603
 
7604
      /**
7605
       * Find the _Fields constant that matches fieldId, or null if its not found.
7606
       */
7607
      public static _Fields findByThriftId(int fieldId) {
7608
        switch(fieldId) {
7609
          case 1: // WAREHOUSE_ID
7610
            return WAREHOUSE_ID;
7611
          default:
7612
            return null;
7613
        }
7614
      }
7615
 
7616
      /**
7617
       * Find the _Fields constant that matches fieldId, throwing an exception
7618
       * if it is not found.
7619
       */
7620
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7621
        _Fields fields = findByThriftId(fieldId);
7622
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7623
        return fields;
7624
      }
7625
 
7626
      /**
7627
       * Find the _Fields constant that matches name, or null if its not found.
7628
       */
7629
      public static _Fields findByName(String name) {
7630
        return byName.get(name);
7631
      }
7632
 
7633
      private final short _thriftId;
7634
      private final String _fieldName;
7635
 
7636
      _Fields(short thriftId, String fieldName) {
7637
        _thriftId = thriftId;
7638
        _fieldName = fieldName;
7639
      }
7640
 
7641
      public short getThriftFieldId() {
7642
        return _thriftId;
7643
      }
7644
 
7645
      public String getFieldName() {
7646
        return _fieldName;
7647
      }
7648
    }
7649
 
7650
    // isset id assignments
7651
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7652
    private BitSet __isset_bit_vector = new BitSet(1);
7653
 
7654
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7655
    static {
7656
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7657
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7658
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7659
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7660
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
7661
    }
7662
 
7663
    public retireWarehouse_args() {
7664
    }
7665
 
7666
    public retireWarehouse_args(
7667
      long warehouse_id)
7668
    {
7669
      this();
7670
      this.warehouse_id = warehouse_id;
7671
      setWarehouse_idIsSet(true);
7672
    }
7673
 
7674
    /**
7675
     * Performs a deep copy on <i>other</i>.
7676
     */
7677
    public retireWarehouse_args(retireWarehouse_args other) {
7678
      __isset_bit_vector.clear();
7679
      __isset_bit_vector.or(other.__isset_bit_vector);
7680
      this.warehouse_id = other.warehouse_id;
7681
    }
7682
 
7683
    public retireWarehouse_args deepCopy() {
7684
      return new retireWarehouse_args(this);
7685
    }
7686
 
7687
    @Override
7688
    public void clear() {
7689
      setWarehouse_idIsSet(false);
7690
      this.warehouse_id = 0;
7691
    }
7692
 
7693
    public long getWarehouse_id() {
7694
      return this.warehouse_id;
7695
    }
7696
 
7697
    public void setWarehouse_id(long warehouse_id) {
7698
      this.warehouse_id = warehouse_id;
7699
      setWarehouse_idIsSet(true);
7700
    }
7701
 
7702
    public void unsetWarehouse_id() {
7703
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7704
    }
7705
 
7706
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7707
    public boolean isSetWarehouse_id() {
7708
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7709
    }
7710
 
7711
    public void setWarehouse_idIsSet(boolean value) {
7712
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7713
    }
7714
 
7715
    public void setFieldValue(_Fields field, Object value) {
7716
      switch (field) {
7717
      case WAREHOUSE_ID:
7718
        if (value == null) {
7719
          unsetWarehouse_id();
7720
        } else {
7721
          setWarehouse_id((Long)value);
7722
        }
7723
        break;
7724
 
7725
      }
7726
    }
7727
 
7728
    public Object getFieldValue(_Fields field) {
7729
      switch (field) {
7730
      case WAREHOUSE_ID:
7731
        return Long.valueOf(getWarehouse_id());
7732
 
7733
      }
7734
      throw new IllegalStateException();
7735
    }
7736
 
7737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7738
    public boolean isSet(_Fields field) {
7739
      if (field == null) {
7740
        throw new IllegalArgumentException();
7741
      }
7742
 
7743
      switch (field) {
7744
      case WAREHOUSE_ID:
7745
        return isSetWarehouse_id();
7746
      }
7747
      throw new IllegalStateException();
7748
    }
7749
 
7750
    @Override
7751
    public boolean equals(Object that) {
7752
      if (that == null)
7753
        return false;
7754
      if (that instanceof retireWarehouse_args)
7755
        return this.equals((retireWarehouse_args)that);
7756
      return false;
7757
    }
7758
 
7759
    public boolean equals(retireWarehouse_args that) {
7760
      if (that == null)
7761
        return false;
7762
 
7763
      boolean this_present_warehouse_id = true;
7764
      boolean that_present_warehouse_id = true;
7765
      if (this_present_warehouse_id || that_present_warehouse_id) {
7766
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7767
          return false;
7768
        if (this.warehouse_id != that.warehouse_id)
7769
          return false;
7770
      }
7771
 
7772
      return true;
7773
    }
7774
 
7775
    @Override
7776
    public int hashCode() {
7777
      return 0;
7778
    }
7779
 
7780
    public int compareTo(retireWarehouse_args other) {
7781
      if (!getClass().equals(other.getClass())) {
7782
        return getClass().getName().compareTo(other.getClass().getName());
7783
      }
7784
 
7785
      int lastComparison = 0;
7786
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
7787
 
7788
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7789
      if (lastComparison != 0) {
7790
        return lastComparison;
7791
      }
7792
      if (isSetWarehouse_id()) {
7793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7794
        if (lastComparison != 0) {
7795
          return lastComparison;
7796
        }
7797
      }
7798
      return 0;
7799
    }
7800
 
7801
    public _Fields fieldForId(int fieldId) {
7802
      return _Fields.findByThriftId(fieldId);
7803
    }
7804
 
7805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7806
      org.apache.thrift.protocol.TField field;
7807
      iprot.readStructBegin();
7808
      while (true)
7809
      {
7810
        field = iprot.readFieldBegin();
7811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7812
          break;
7813
        }
7814
        switch (field.id) {
7815
          case 1: // WAREHOUSE_ID
7816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7817
              this.warehouse_id = iprot.readI64();
7818
              setWarehouse_idIsSet(true);
7819
            } else { 
7820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7821
            }
7822
            break;
7823
          default:
7824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7825
        }
7826
        iprot.readFieldEnd();
7827
      }
7828
      iprot.readStructEnd();
7829
      validate();
7830
    }
7831
 
7832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7833
      validate();
7834
 
7835
      oprot.writeStructBegin(STRUCT_DESC);
7836
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7837
      oprot.writeI64(this.warehouse_id);
7838
      oprot.writeFieldEnd();
7839
      oprot.writeFieldStop();
7840
      oprot.writeStructEnd();
7841
    }
7842
 
7843
    @Override
7844
    public String toString() {
7845
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
7846
      boolean first = true;
7847
 
7848
      sb.append("warehouse_id:");
7849
      sb.append(this.warehouse_id);
7850
      first = false;
7851
      sb.append(")");
7852
      return sb.toString();
7853
    }
7854
 
7855
    public void validate() throws org.apache.thrift.TException {
7856
      // check for required fields
7857
    }
7858
 
7859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7860
      try {
7861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7862
      } catch (org.apache.thrift.TException te) {
7863
        throw new java.io.IOException(te);
7864
      }
7865
    }
7866
 
7867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7868
      try {
7869
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7870
        __isset_bit_vector = new BitSet(1);
7871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7872
      } catch (org.apache.thrift.TException te) {
7873
        throw new java.io.IOException(te);
7874
      }
7875
    }
7876
 
7877
  }
7878
 
7879
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
7880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
7881
 
7882
    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);
7883
 
7884
    private InventoryServiceException cex; // required
7885
 
7886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7888
      CEX((short)1, "cex");
7889
 
7890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7891
 
7892
      static {
7893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7894
          byName.put(field.getFieldName(), field);
7895
        }
7896
      }
7897
 
7898
      /**
7899
       * Find the _Fields constant that matches fieldId, or null if its not found.
7900
       */
7901
      public static _Fields findByThriftId(int fieldId) {
7902
        switch(fieldId) {
7903
          case 1: // CEX
7904
            return CEX;
7905
          default:
7906
            return null;
7907
        }
7908
      }
7909
 
7910
      /**
7911
       * Find the _Fields constant that matches fieldId, throwing an exception
7912
       * if it is not found.
7913
       */
7914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7915
        _Fields fields = findByThriftId(fieldId);
7916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7917
        return fields;
7918
      }
7919
 
7920
      /**
7921
       * Find the _Fields constant that matches name, or null if its not found.
7922
       */
7923
      public static _Fields findByName(String name) {
7924
        return byName.get(name);
7925
      }
7926
 
7927
      private final short _thriftId;
7928
      private final String _fieldName;
7929
 
7930
      _Fields(short thriftId, String fieldName) {
7931
        _thriftId = thriftId;
7932
        _fieldName = fieldName;
7933
      }
7934
 
7935
      public short getThriftFieldId() {
7936
        return _thriftId;
7937
      }
7938
 
7939
      public String getFieldName() {
7940
        return _fieldName;
7941
      }
7942
    }
7943
 
7944
    // isset id assignments
7945
 
7946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7947
    static {
7948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7949
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
7953
    }
7954
 
7955
    public retireWarehouse_result() {
7956
    }
7957
 
7958
    public retireWarehouse_result(
7959
      InventoryServiceException cex)
7960
    {
7961
      this();
7962
      this.cex = cex;
7963
    }
7964
 
7965
    /**
7966
     * Performs a deep copy on <i>other</i>.
7967
     */
7968
    public retireWarehouse_result(retireWarehouse_result other) {
7969
      if (other.isSetCex()) {
7970
        this.cex = new InventoryServiceException(other.cex);
7971
      }
7972
    }
7973
 
7974
    public retireWarehouse_result deepCopy() {
7975
      return new retireWarehouse_result(this);
7976
    }
7977
 
7978
    @Override
7979
    public void clear() {
7980
      this.cex = null;
7981
    }
7982
 
7983
    public InventoryServiceException getCex() {
7984
      return this.cex;
7985
    }
7986
 
7987
    public void setCex(InventoryServiceException cex) {
7988
      this.cex = cex;
7989
    }
7990
 
7991
    public void unsetCex() {
7992
      this.cex = null;
7993
    }
7994
 
7995
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7996
    public boolean isSetCex() {
7997
      return this.cex != null;
7998
    }
7999
 
8000
    public void setCexIsSet(boolean value) {
8001
      if (!value) {
8002
        this.cex = null;
8003
      }
8004
    }
8005
 
8006
    public void setFieldValue(_Fields field, Object value) {
8007
      switch (field) {
8008
      case CEX:
8009
        if (value == null) {
8010
          unsetCex();
8011
        } else {
8012
          setCex((InventoryServiceException)value);
8013
        }
8014
        break;
8015
 
8016
      }
8017
    }
8018
 
8019
    public Object getFieldValue(_Fields field) {
8020
      switch (field) {
8021
      case CEX:
8022
        return getCex();
8023
 
8024
      }
8025
      throw new IllegalStateException();
8026
    }
8027
 
8028
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8029
    public boolean isSet(_Fields field) {
8030
      if (field == null) {
8031
        throw new IllegalArgumentException();
8032
      }
8033
 
8034
      switch (field) {
8035
      case CEX:
8036
        return isSetCex();
8037
      }
8038
      throw new IllegalStateException();
8039
    }
8040
 
8041
    @Override
8042
    public boolean equals(Object that) {
8043
      if (that == null)
8044
        return false;
8045
      if (that instanceof retireWarehouse_result)
8046
        return this.equals((retireWarehouse_result)that);
8047
      return false;
8048
    }
8049
 
8050
    public boolean equals(retireWarehouse_result that) {
8051
      if (that == null)
8052
        return false;
8053
 
8054
      boolean this_present_cex = true && this.isSetCex();
8055
      boolean that_present_cex = true && that.isSetCex();
8056
      if (this_present_cex || that_present_cex) {
8057
        if (!(this_present_cex && that_present_cex))
8058
          return false;
8059
        if (!this.cex.equals(that.cex))
8060
          return false;
8061
      }
8062
 
8063
      return true;
8064
    }
8065
 
8066
    @Override
8067
    public int hashCode() {
8068
      return 0;
8069
    }
8070
 
8071
    public int compareTo(retireWarehouse_result other) {
8072
      if (!getClass().equals(other.getClass())) {
8073
        return getClass().getName().compareTo(other.getClass().getName());
8074
      }
8075
 
8076
      int lastComparison = 0;
8077
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
8078
 
8079
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8080
      if (lastComparison != 0) {
8081
        return lastComparison;
8082
      }
8083
      if (isSetCex()) {
8084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8085
        if (lastComparison != 0) {
8086
          return lastComparison;
8087
        }
8088
      }
8089
      return 0;
8090
    }
8091
 
8092
    public _Fields fieldForId(int fieldId) {
8093
      return _Fields.findByThriftId(fieldId);
8094
    }
8095
 
8096
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8097
      org.apache.thrift.protocol.TField field;
8098
      iprot.readStructBegin();
8099
      while (true)
8100
      {
8101
        field = iprot.readFieldBegin();
8102
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8103
          break;
8104
        }
8105
        switch (field.id) {
8106
          case 1: // CEX
8107
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8108
              this.cex = new InventoryServiceException();
8109
              this.cex.read(iprot);
8110
            } else { 
8111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8112
            }
8113
            break;
8114
          default:
8115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8116
        }
8117
        iprot.readFieldEnd();
8118
      }
8119
      iprot.readStructEnd();
8120
      validate();
8121
    }
8122
 
8123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8124
      oprot.writeStructBegin(STRUCT_DESC);
8125
 
8126
      if (this.isSetCex()) {
8127
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8128
        this.cex.write(oprot);
8129
        oprot.writeFieldEnd();
8130
      }
8131
      oprot.writeFieldStop();
8132
      oprot.writeStructEnd();
8133
    }
8134
 
8135
    @Override
8136
    public String toString() {
8137
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
8138
      boolean first = true;
8139
 
8140
      sb.append("cex:");
8141
      if (this.cex == null) {
8142
        sb.append("null");
8143
      } else {
8144
        sb.append(this.cex);
8145
      }
8146
      first = false;
8147
      sb.append(")");
8148
      return sb.toString();
8149
    }
8150
 
8151
    public void validate() throws org.apache.thrift.TException {
8152
      // check for required fields
8153
    }
8154
 
8155
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8156
      try {
8157
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8158
      } catch (org.apache.thrift.TException te) {
8159
        throw new java.io.IOException(te);
8160
      }
8161
    }
8162
 
8163
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8164
      try {
8165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8166
      } catch (org.apache.thrift.TException te) {
8167
        throw new java.io.IOException(te);
8168
      }
8169
    }
8170
 
8171
  }
8172
 
8173
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
8174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
8175
 
8176
    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);
8177
 
8178
    private long item_id; // required
8179
 
8180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8182
      ITEM_ID((short)1, "item_id");
8183
 
8184
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8185
 
8186
      static {
8187
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8188
          byName.put(field.getFieldName(), field);
8189
        }
8190
      }
8191
 
8192
      /**
8193
       * Find the _Fields constant that matches fieldId, or null if its not found.
8194
       */
8195
      public static _Fields findByThriftId(int fieldId) {
8196
        switch(fieldId) {
8197
          case 1: // ITEM_ID
8198
            return ITEM_ID;
8199
          default:
8200
            return null;
8201
        }
8202
      }
8203
 
8204
      /**
8205
       * Find the _Fields constant that matches fieldId, throwing an exception
8206
       * if it is not found.
8207
       */
8208
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8209
        _Fields fields = findByThriftId(fieldId);
8210
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8211
        return fields;
8212
      }
8213
 
8214
      /**
8215
       * Find the _Fields constant that matches name, or null if its not found.
8216
       */
8217
      public static _Fields findByName(String name) {
8218
        return byName.get(name);
8219
      }
8220
 
8221
      private final short _thriftId;
8222
      private final String _fieldName;
8223
 
8224
      _Fields(short thriftId, String fieldName) {
8225
        _thriftId = thriftId;
8226
        _fieldName = fieldName;
8227
      }
8228
 
8229
      public short getThriftFieldId() {
8230
        return _thriftId;
8231
      }
8232
 
8233
      public String getFieldName() {
8234
        return _fieldName;
8235
      }
8236
    }
8237
 
8238
    // isset id assignments
8239
    private static final int __ITEM_ID_ISSET_ID = 0;
8240
    private BitSet __isset_bit_vector = new BitSet(1);
8241
 
8242
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8243
    static {
8244
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8245
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8246
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
8249
    }
8250
 
8251
    public getItemInventoryByItemId_args() {
8252
    }
8253
 
8254
    public getItemInventoryByItemId_args(
8255
      long item_id)
8256
    {
8257
      this();
8258
      this.item_id = item_id;
8259
      setItem_idIsSet(true);
8260
    }
8261
 
8262
    /**
8263
     * Performs a deep copy on <i>other</i>.
8264
     */
8265
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
8266
      __isset_bit_vector.clear();
8267
      __isset_bit_vector.or(other.__isset_bit_vector);
8268
      this.item_id = other.item_id;
8269
    }
8270
 
8271
    public getItemInventoryByItemId_args deepCopy() {
8272
      return new getItemInventoryByItemId_args(this);
8273
    }
8274
 
8275
    @Override
8276
    public void clear() {
8277
      setItem_idIsSet(false);
8278
      this.item_id = 0;
8279
    }
8280
 
8281
    public long getItem_id() {
8282
      return this.item_id;
8283
    }
8284
 
8285
    public void setItem_id(long item_id) {
8286
      this.item_id = item_id;
8287
      setItem_idIsSet(true);
8288
    }
8289
 
8290
    public void unsetItem_id() {
8291
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
8292
    }
8293
 
8294
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
8295
    public boolean isSetItem_id() {
8296
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
8297
    }
8298
 
8299
    public void setItem_idIsSet(boolean value) {
8300
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
8301
    }
8302
 
8303
    public void setFieldValue(_Fields field, Object value) {
8304
      switch (field) {
8305
      case ITEM_ID:
8306
        if (value == null) {
8307
          unsetItem_id();
8308
        } else {
8309
          setItem_id((Long)value);
8310
        }
8311
        break;
8312
 
8313
      }
8314
    }
8315
 
8316
    public Object getFieldValue(_Fields field) {
8317
      switch (field) {
8318
      case ITEM_ID:
8319
        return Long.valueOf(getItem_id());
8320
 
8321
      }
8322
      throw new IllegalStateException();
8323
    }
8324
 
8325
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8326
    public boolean isSet(_Fields field) {
8327
      if (field == null) {
8328
        throw new IllegalArgumentException();
8329
      }
8330
 
8331
      switch (field) {
8332
      case ITEM_ID:
8333
        return isSetItem_id();
8334
      }
8335
      throw new IllegalStateException();
8336
    }
8337
 
8338
    @Override
8339
    public boolean equals(Object that) {
8340
      if (that == null)
8341
        return false;
8342
      if (that instanceof getItemInventoryByItemId_args)
8343
        return this.equals((getItemInventoryByItemId_args)that);
8344
      return false;
8345
    }
8346
 
8347
    public boolean equals(getItemInventoryByItemId_args that) {
8348
      if (that == null)
8349
        return false;
8350
 
8351
      boolean this_present_item_id = true;
8352
      boolean that_present_item_id = true;
8353
      if (this_present_item_id || that_present_item_id) {
8354
        if (!(this_present_item_id && that_present_item_id))
8355
          return false;
8356
        if (this.item_id != that.item_id)
8357
          return false;
8358
      }
8359
 
8360
      return true;
8361
    }
8362
 
8363
    @Override
8364
    public int hashCode() {
8365
      return 0;
8366
    }
8367
 
8368
    public int compareTo(getItemInventoryByItemId_args other) {
8369
      if (!getClass().equals(other.getClass())) {
8370
        return getClass().getName().compareTo(other.getClass().getName());
8371
      }
8372
 
8373
      int lastComparison = 0;
8374
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
8375
 
8376
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
8377
      if (lastComparison != 0) {
8378
        return lastComparison;
8379
      }
8380
      if (isSetItem_id()) {
8381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
8382
        if (lastComparison != 0) {
8383
          return lastComparison;
8384
        }
8385
      }
8386
      return 0;
8387
    }
8388
 
8389
    public _Fields fieldForId(int fieldId) {
8390
      return _Fields.findByThriftId(fieldId);
8391
    }
8392
 
8393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8394
      org.apache.thrift.protocol.TField field;
8395
      iprot.readStructBegin();
8396
      while (true)
8397
      {
8398
        field = iprot.readFieldBegin();
8399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8400
          break;
8401
        }
8402
        switch (field.id) {
8403
          case 1: // ITEM_ID
8404
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8405
              this.item_id = iprot.readI64();
8406
              setItem_idIsSet(true);
8407
            } else { 
8408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8409
            }
8410
            break;
8411
          default:
8412
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8413
        }
8414
        iprot.readFieldEnd();
8415
      }
8416
      iprot.readStructEnd();
8417
      validate();
8418
    }
8419
 
8420
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8421
      validate();
8422
 
8423
      oprot.writeStructBegin(STRUCT_DESC);
8424
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8425
      oprot.writeI64(this.item_id);
8426
      oprot.writeFieldEnd();
8427
      oprot.writeFieldStop();
8428
      oprot.writeStructEnd();
8429
    }
8430
 
8431
    @Override
8432
    public String toString() {
8433
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
8434
      boolean first = true;
8435
 
8436
      sb.append("item_id:");
8437
      sb.append(this.item_id);
8438
      first = false;
8439
      sb.append(")");
8440
      return sb.toString();
8441
    }
8442
 
8443
    public void validate() throws org.apache.thrift.TException {
8444
      // check for required fields
8445
    }
8446
 
8447
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8448
      try {
8449
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8450
      } catch (org.apache.thrift.TException te) {
8451
        throw new java.io.IOException(te);
8452
      }
8453
    }
8454
 
8455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8456
      try {
8457
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8458
        __isset_bit_vector = new BitSet(1);
8459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8460
      } catch (org.apache.thrift.TException te) {
8461
        throw new java.io.IOException(te);
8462
      }
8463
    }
8464
 
8465
  }
8466
 
8467
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
8468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
8469
 
8470
    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);
8471
    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);
8472
 
8473
    private ItemInventory success; // required
8474
    private InventoryServiceException cex; // required
8475
 
8476
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8477
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8478
      SUCCESS((short)0, "success"),
8479
      CEX((short)1, "cex");
8480
 
8481
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8482
 
8483
      static {
8484
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8485
          byName.put(field.getFieldName(), field);
8486
        }
8487
      }
8488
 
8489
      /**
8490
       * Find the _Fields constant that matches fieldId, or null if its not found.
8491
       */
8492
      public static _Fields findByThriftId(int fieldId) {
8493
        switch(fieldId) {
8494
          case 0: // SUCCESS
8495
            return SUCCESS;
8496
          case 1: // CEX
8497
            return CEX;
8498
          default:
8499
            return null;
8500
        }
8501
      }
8502
 
8503
      /**
8504
       * Find the _Fields constant that matches fieldId, throwing an exception
8505
       * if it is not found.
8506
       */
8507
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8508
        _Fields fields = findByThriftId(fieldId);
8509
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8510
        return fields;
8511
      }
8512
 
8513
      /**
8514
       * Find the _Fields constant that matches name, or null if its not found.
8515
       */
8516
      public static _Fields findByName(String name) {
8517
        return byName.get(name);
8518
      }
8519
 
8520
      private final short _thriftId;
8521
      private final String _fieldName;
8522
 
8523
      _Fields(short thriftId, String fieldName) {
8524
        _thriftId = thriftId;
8525
        _fieldName = fieldName;
8526
      }
8527
 
8528
      public short getThriftFieldId() {
8529
        return _thriftId;
8530
      }
8531
 
8532
      public String getFieldName() {
8533
        return _fieldName;
8534
      }
8535
    }
8536
 
8537
    // isset id assignments
8538
 
8539
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8540
    static {
8541
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8542
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8543
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
8544
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8546
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8547
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
8548
    }
8549
 
8550
    public getItemInventoryByItemId_result() {
8551
    }
8552
 
8553
    public getItemInventoryByItemId_result(
8554
      ItemInventory success,
8555
      InventoryServiceException cex)
8556
    {
8557
      this();
8558
      this.success = success;
8559
      this.cex = cex;
8560
    }
8561
 
8562
    /**
8563
     * Performs a deep copy on <i>other</i>.
8564
     */
8565
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
8566
      if (other.isSetSuccess()) {
8567
        this.success = new ItemInventory(other.success);
8568
      }
8569
      if (other.isSetCex()) {
8570
        this.cex = new InventoryServiceException(other.cex);
8571
      }
8572
    }
8573
 
8574
    public getItemInventoryByItemId_result deepCopy() {
8575
      return new getItemInventoryByItemId_result(this);
8576
    }
8577
 
8578
    @Override
8579
    public void clear() {
8580
      this.success = null;
8581
      this.cex = null;
8582
    }
8583
 
8584
    public ItemInventory getSuccess() {
8585
      return this.success;
8586
    }
8587
 
8588
    public void setSuccess(ItemInventory success) {
8589
      this.success = success;
8590
    }
8591
 
8592
    public void unsetSuccess() {
8593
      this.success = null;
8594
    }
8595
 
8596
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8597
    public boolean isSetSuccess() {
8598
      return this.success != null;
8599
    }
8600
 
8601
    public void setSuccessIsSet(boolean value) {
8602
      if (!value) {
8603
        this.success = null;
8604
      }
8605
    }
8606
 
8607
    public InventoryServiceException getCex() {
8608
      return this.cex;
8609
    }
8610
 
8611
    public void setCex(InventoryServiceException cex) {
8612
      this.cex = cex;
8613
    }
8614
 
8615
    public void unsetCex() {
8616
      this.cex = null;
8617
    }
8618
 
8619
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8620
    public boolean isSetCex() {
8621
      return this.cex != null;
8622
    }
8623
 
8624
    public void setCexIsSet(boolean value) {
8625
      if (!value) {
8626
        this.cex = null;
8627
      }
8628
    }
8629
 
8630
    public void setFieldValue(_Fields field, Object value) {
8631
      switch (field) {
8632
      case SUCCESS:
8633
        if (value == null) {
8634
          unsetSuccess();
8635
        } else {
8636
          setSuccess((ItemInventory)value);
8637
        }
8638
        break;
8639
 
8640
      case CEX:
8641
        if (value == null) {
8642
          unsetCex();
8643
        } else {
8644
          setCex((InventoryServiceException)value);
8645
        }
8646
        break;
8647
 
8648
      }
8649
    }
8650
 
8651
    public Object getFieldValue(_Fields field) {
8652
      switch (field) {
8653
      case SUCCESS:
8654
        return getSuccess();
8655
 
8656
      case CEX:
8657
        return getCex();
8658
 
8659
      }
8660
      throw new IllegalStateException();
8661
    }
8662
 
8663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8664
    public boolean isSet(_Fields field) {
8665
      if (field == null) {
8666
        throw new IllegalArgumentException();
8667
      }
8668
 
8669
      switch (field) {
8670
      case SUCCESS:
8671
        return isSetSuccess();
8672
      case CEX:
8673
        return isSetCex();
8674
      }
8675
      throw new IllegalStateException();
8676
    }
8677
 
8678
    @Override
8679
    public boolean equals(Object that) {
8680
      if (that == null)
8681
        return false;
8682
      if (that instanceof getItemInventoryByItemId_result)
8683
        return this.equals((getItemInventoryByItemId_result)that);
8684
      return false;
8685
    }
8686
 
8687
    public boolean equals(getItemInventoryByItemId_result that) {
8688
      if (that == null)
8689
        return false;
8690
 
8691
      boolean this_present_success = true && this.isSetSuccess();
8692
      boolean that_present_success = true && that.isSetSuccess();
8693
      if (this_present_success || that_present_success) {
8694
        if (!(this_present_success && that_present_success))
8695
          return false;
8696
        if (!this.success.equals(that.success))
8697
          return false;
8698
      }
8699
 
8700
      boolean this_present_cex = true && this.isSetCex();
8701
      boolean that_present_cex = true && that.isSetCex();
8702
      if (this_present_cex || that_present_cex) {
8703
        if (!(this_present_cex && that_present_cex))
8704
          return false;
8705
        if (!this.cex.equals(that.cex))
8706
          return false;
8707
      }
8708
 
8709
      return true;
8710
    }
8711
 
8712
    @Override
8713
    public int hashCode() {
8714
      return 0;
8715
    }
8716
 
8717
    public int compareTo(getItemInventoryByItemId_result other) {
8718
      if (!getClass().equals(other.getClass())) {
8719
        return getClass().getName().compareTo(other.getClass().getName());
8720
      }
8721
 
8722
      int lastComparison = 0;
8723
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
8724
 
8725
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8726
      if (lastComparison != 0) {
8727
        return lastComparison;
8728
      }
8729
      if (isSetSuccess()) {
8730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8731
        if (lastComparison != 0) {
8732
          return lastComparison;
8733
        }
8734
      }
8735
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8736
      if (lastComparison != 0) {
8737
        return lastComparison;
8738
      }
8739
      if (isSetCex()) {
8740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8741
        if (lastComparison != 0) {
8742
          return lastComparison;
8743
        }
8744
      }
8745
      return 0;
8746
    }
8747
 
8748
    public _Fields fieldForId(int fieldId) {
8749
      return _Fields.findByThriftId(fieldId);
8750
    }
8751
 
8752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8753
      org.apache.thrift.protocol.TField field;
8754
      iprot.readStructBegin();
8755
      while (true)
8756
      {
8757
        field = iprot.readFieldBegin();
8758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8759
          break;
8760
        }
8761
        switch (field.id) {
8762
          case 0: // SUCCESS
8763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8764
              this.success = new ItemInventory();
8765
              this.success.read(iprot);
8766
            } else { 
8767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8768
            }
8769
            break;
8770
          case 1: // CEX
8771
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8772
              this.cex = new InventoryServiceException();
8773
              this.cex.read(iprot);
8774
            } else { 
8775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8776
            }
8777
            break;
8778
          default:
8779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8780
        }
8781
        iprot.readFieldEnd();
8782
      }
8783
      iprot.readStructEnd();
8784
      validate();
8785
    }
8786
 
8787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8788
      oprot.writeStructBegin(STRUCT_DESC);
8789
 
8790
      if (this.isSetSuccess()) {
8791
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8792
        this.success.write(oprot);
8793
        oprot.writeFieldEnd();
8794
      } else if (this.isSetCex()) {
8795
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8796
        this.cex.write(oprot);
8797
        oprot.writeFieldEnd();
8798
      }
8799
      oprot.writeFieldStop();
8800
      oprot.writeStructEnd();
8801
    }
8802
 
8803
    @Override
8804
    public String toString() {
8805
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
8806
      boolean first = true;
8807
 
8808
      sb.append("success:");
8809
      if (this.success == null) {
8810
        sb.append("null");
8811
      } else {
8812
        sb.append(this.success);
8813
      }
8814
      first = false;
8815
      if (!first) sb.append(", ");
8816
      sb.append("cex:");
8817
      if (this.cex == null) {
8818
        sb.append("null");
8819
      } else {
8820
        sb.append(this.cex);
8821
      }
8822
      first = false;
8823
      sb.append(")");
8824
      return sb.toString();
8825
    }
8826
 
8827
    public void validate() throws org.apache.thrift.TException {
8828
      // check for required fields
8829
    }
8830
 
8831
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8832
      try {
8833
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8834
      } catch (org.apache.thrift.TException te) {
8835
        throw new java.io.IOException(te);
8836
      }
8837
    }
8838
 
8839
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8840
      try {
8841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8842
      } catch (org.apache.thrift.TException te) {
8843
        throw new java.io.IOException(te);
8844
      }
8845
    }
8846
 
8847
  }
8848
 
8849
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8850
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
8851
 
8852
    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);
8853
    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);
8854
 
8855
    private long warehouse_id; // required
8856
    private long item_id; // required
8857
 
8858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8860
      WAREHOUSE_ID((short)1, "warehouse_id"),
8861
      ITEM_ID((short)2, "item_id");
8862
 
8863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8864
 
8865
      static {
8866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8867
          byName.put(field.getFieldName(), field);
8868
        }
8869
      }
8870
 
8871
      /**
8872
       * Find the _Fields constant that matches fieldId, or null if its not found.
8873
       */
8874
      public static _Fields findByThriftId(int fieldId) {
8875
        switch(fieldId) {
8876
          case 1: // WAREHOUSE_ID
8877
            return WAREHOUSE_ID;
8878
          case 2: // ITEM_ID
8879
            return ITEM_ID;
8880
          default:
8881
            return null;
8882
        }
8883
      }
8884
 
8885
      /**
8886
       * Find the _Fields constant that matches fieldId, throwing an exception
8887
       * if it is not found.
8888
       */
8889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8890
        _Fields fields = findByThriftId(fieldId);
8891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8892
        return fields;
8893
      }
8894
 
8895
      /**
8896
       * Find the _Fields constant that matches name, or null if its not found.
8897
       */
8898
      public static _Fields findByName(String name) {
8899
        return byName.get(name);
8900
      }
8901
 
8902
      private final short _thriftId;
8903
      private final String _fieldName;
8904
 
8905
      _Fields(short thriftId, String fieldName) {
8906
        _thriftId = thriftId;
8907
        _fieldName = fieldName;
8908
      }
8909
 
8910
      public short getThriftFieldId() {
8911
        return _thriftId;
8912
      }
8913
 
8914
      public String getFieldName() {
8915
        return _fieldName;
8916
      }
8917
    }
8918
 
8919
    // isset id assignments
8920
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8921
    private static final int __ITEM_ID_ISSET_ID = 1;
8922
    private BitSet __isset_bit_vector = new BitSet(2);
8923
 
8924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8925
    static {
8926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8927
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8929
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
8933
    }
8934
 
8935
    public getItemAvailibilityAtWarehouse_args() {
8936
    }
8937
 
8938
    public getItemAvailibilityAtWarehouse_args(
8939
      long warehouse_id,
8940
      long item_id)
8941
    {
8942
      this();
8943
      this.warehouse_id = warehouse_id;
8944
      setWarehouse_idIsSet(true);
8945
      this.item_id = item_id;
8946
      setItem_idIsSet(true);
8947
    }
8948
 
8949
    /**
8950
     * Performs a deep copy on <i>other</i>.
8951
     */
8952
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
8953
      __isset_bit_vector.clear();
8954
      __isset_bit_vector.or(other.__isset_bit_vector);
8955
      this.warehouse_id = other.warehouse_id;
8956
      this.item_id = other.item_id;
8957
    }
8958
 
8959
    public getItemAvailibilityAtWarehouse_args deepCopy() {
8960
      return new getItemAvailibilityAtWarehouse_args(this);
8961
    }
8962
 
8963
    @Override
8964
    public void clear() {
8965
      setWarehouse_idIsSet(false);
8966
      this.warehouse_id = 0;
8967
      setItem_idIsSet(false);
8968
      this.item_id = 0;
8969
    }
8970
 
8971
    public long getWarehouse_id() {
8972
      return this.warehouse_id;
8973
    }
8974
 
8975
    public void setWarehouse_id(long warehouse_id) {
8976
      this.warehouse_id = warehouse_id;
8977
      setWarehouse_idIsSet(true);
8978
    }
8979
 
8980
    public void unsetWarehouse_id() {
8981
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8982
    }
8983
 
8984
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8985
    public boolean isSetWarehouse_id() {
8986
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8987
    }
8988
 
8989
    public void setWarehouse_idIsSet(boolean value) {
8990
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8991
    }
8992
 
8993
    public long getItem_id() {
8994
      return this.item_id;
8995
    }
8996
 
8997
    public void setItem_id(long item_id) {
8998
      this.item_id = item_id;
8999
      setItem_idIsSet(true);
9000
    }
9001
 
9002
    public void unsetItem_id() {
9003
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9004
    }
9005
 
9006
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9007
    public boolean isSetItem_id() {
9008
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9009
    }
9010
 
9011
    public void setItem_idIsSet(boolean value) {
9012
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9013
    }
9014
 
9015
    public void setFieldValue(_Fields field, Object value) {
9016
      switch (field) {
9017
      case WAREHOUSE_ID:
9018
        if (value == null) {
9019
          unsetWarehouse_id();
9020
        } else {
9021
          setWarehouse_id((Long)value);
9022
        }
9023
        break;
9024
 
9025
      case ITEM_ID:
9026
        if (value == null) {
9027
          unsetItem_id();
9028
        } else {
9029
          setItem_id((Long)value);
9030
        }
9031
        break;
9032
 
9033
      }
9034
    }
9035
 
9036
    public Object getFieldValue(_Fields field) {
9037
      switch (field) {
9038
      case WAREHOUSE_ID:
9039
        return Long.valueOf(getWarehouse_id());
9040
 
9041
      case ITEM_ID:
9042
        return Long.valueOf(getItem_id());
9043
 
9044
      }
9045
      throw new IllegalStateException();
9046
    }
9047
 
9048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9049
    public boolean isSet(_Fields field) {
9050
      if (field == null) {
9051
        throw new IllegalArgumentException();
9052
      }
9053
 
9054
      switch (field) {
9055
      case WAREHOUSE_ID:
9056
        return isSetWarehouse_id();
9057
      case ITEM_ID:
9058
        return isSetItem_id();
9059
      }
9060
      throw new IllegalStateException();
9061
    }
9062
 
9063
    @Override
9064
    public boolean equals(Object that) {
9065
      if (that == null)
9066
        return false;
9067
      if (that instanceof getItemAvailibilityAtWarehouse_args)
9068
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
9069
      return false;
9070
    }
9071
 
9072
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
9073
      if (that == null)
9074
        return false;
9075
 
9076
      boolean this_present_warehouse_id = true;
9077
      boolean that_present_warehouse_id = true;
9078
      if (this_present_warehouse_id || that_present_warehouse_id) {
9079
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9080
          return false;
9081
        if (this.warehouse_id != that.warehouse_id)
9082
          return false;
9083
      }
9084
 
9085
      boolean this_present_item_id = true;
9086
      boolean that_present_item_id = true;
9087
      if (this_present_item_id || that_present_item_id) {
9088
        if (!(this_present_item_id && that_present_item_id))
9089
          return false;
9090
        if (this.item_id != that.item_id)
9091
          return false;
9092
      }
9093
 
9094
      return true;
9095
    }
9096
 
9097
    @Override
9098
    public int hashCode() {
9099
      return 0;
9100
    }
9101
 
9102
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
9103
      if (!getClass().equals(other.getClass())) {
9104
        return getClass().getName().compareTo(other.getClass().getName());
9105
      }
9106
 
9107
      int lastComparison = 0;
9108
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
9109
 
9110
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9111
      if (lastComparison != 0) {
9112
        return lastComparison;
9113
      }
9114
      if (isSetWarehouse_id()) {
9115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9116
        if (lastComparison != 0) {
9117
          return lastComparison;
9118
        }
9119
      }
9120
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9121
      if (lastComparison != 0) {
9122
        return lastComparison;
9123
      }
9124
      if (isSetItem_id()) {
9125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9126
        if (lastComparison != 0) {
9127
          return lastComparison;
9128
        }
9129
      }
9130
      return 0;
9131
    }
9132
 
9133
    public _Fields fieldForId(int fieldId) {
9134
      return _Fields.findByThriftId(fieldId);
9135
    }
9136
 
9137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9138
      org.apache.thrift.protocol.TField field;
9139
      iprot.readStructBegin();
9140
      while (true)
9141
      {
9142
        field = iprot.readFieldBegin();
9143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9144
          break;
9145
        }
9146
        switch (field.id) {
9147
          case 1: // WAREHOUSE_ID
9148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9149
              this.warehouse_id = iprot.readI64();
9150
              setWarehouse_idIsSet(true);
9151
            } else { 
9152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9153
            }
9154
            break;
9155
          case 2: // ITEM_ID
9156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9157
              this.item_id = iprot.readI64();
9158
              setItem_idIsSet(true);
9159
            } else { 
9160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9161
            }
9162
            break;
9163
          default:
9164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9165
        }
9166
        iprot.readFieldEnd();
9167
      }
9168
      iprot.readStructEnd();
9169
      validate();
9170
    }
9171
 
9172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9173
      validate();
9174
 
9175
      oprot.writeStructBegin(STRUCT_DESC);
9176
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9177
      oprot.writeI64(this.warehouse_id);
9178
      oprot.writeFieldEnd();
9179
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9180
      oprot.writeI64(this.item_id);
9181
      oprot.writeFieldEnd();
9182
      oprot.writeFieldStop();
9183
      oprot.writeStructEnd();
9184
    }
9185
 
9186
    @Override
9187
    public String toString() {
9188
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
9189
      boolean first = true;
9190
 
9191
      sb.append("warehouse_id:");
9192
      sb.append(this.warehouse_id);
9193
      first = false;
9194
      if (!first) sb.append(", ");
9195
      sb.append("item_id:");
9196
      sb.append(this.item_id);
9197
      first = false;
9198
      sb.append(")");
9199
      return sb.toString();
9200
    }
9201
 
9202
    public void validate() throws org.apache.thrift.TException {
9203
      // check for required fields
9204
    }
9205
 
9206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9207
      try {
9208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9209
      } catch (org.apache.thrift.TException te) {
9210
        throw new java.io.IOException(te);
9211
      }
9212
    }
9213
 
9214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9215
      try {
9216
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9217
        __isset_bit_vector = new BitSet(1);
9218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9219
      } catch (org.apache.thrift.TException te) {
9220
        throw new java.io.IOException(te);
9221
      }
9222
    }
9223
 
9224
  }
9225
 
9226
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
9227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
9228
 
9229
    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);
9230
    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);
9231
 
9232
    private long success; // required
9233
    private InventoryServiceException cex; // required
9234
 
9235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9237
      SUCCESS((short)0, "success"),
9238
      CEX((short)1, "cex");
9239
 
9240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9241
 
9242
      static {
9243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9244
          byName.put(field.getFieldName(), field);
9245
        }
9246
      }
9247
 
9248
      /**
9249
       * Find the _Fields constant that matches fieldId, or null if its not found.
9250
       */
9251
      public static _Fields findByThriftId(int fieldId) {
9252
        switch(fieldId) {
9253
          case 0: // SUCCESS
9254
            return SUCCESS;
9255
          case 1: // CEX
9256
            return CEX;
9257
          default:
9258
            return null;
9259
        }
9260
      }
9261
 
9262
      /**
9263
       * Find the _Fields constant that matches fieldId, throwing an exception
9264
       * if it is not found.
9265
       */
9266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9267
        _Fields fields = findByThriftId(fieldId);
9268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9269
        return fields;
9270
      }
9271
 
9272
      /**
9273
       * Find the _Fields constant that matches name, or null if its not found.
9274
       */
9275
      public static _Fields findByName(String name) {
9276
        return byName.get(name);
9277
      }
9278
 
9279
      private final short _thriftId;
9280
      private final String _fieldName;
9281
 
9282
      _Fields(short thriftId, String fieldName) {
9283
        _thriftId = thriftId;
9284
        _fieldName = fieldName;
9285
      }
9286
 
9287
      public short getThriftFieldId() {
9288
        return _thriftId;
9289
      }
9290
 
9291
      public String getFieldName() {
9292
        return _fieldName;
9293
      }
9294
    }
9295
 
9296
    // isset id assignments
9297
    private static final int __SUCCESS_ISSET_ID = 0;
9298
    private BitSet __isset_bit_vector = new BitSet(1);
9299
 
9300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9301
    static {
9302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9303
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9305
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
9309
    }
9310
 
9311
    public getItemAvailibilityAtWarehouse_result() {
9312
    }
9313
 
9314
    public getItemAvailibilityAtWarehouse_result(
9315
      long success,
9316
      InventoryServiceException cex)
9317
    {
9318
      this();
9319
      this.success = success;
9320
      setSuccessIsSet(true);
9321
      this.cex = cex;
9322
    }
9323
 
9324
    /**
9325
     * Performs a deep copy on <i>other</i>.
9326
     */
9327
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
9328
      __isset_bit_vector.clear();
9329
      __isset_bit_vector.or(other.__isset_bit_vector);
9330
      this.success = other.success;
9331
      if (other.isSetCex()) {
9332
        this.cex = new InventoryServiceException(other.cex);
9333
      }
9334
    }
9335
 
9336
    public getItemAvailibilityAtWarehouse_result deepCopy() {
9337
      return new getItemAvailibilityAtWarehouse_result(this);
9338
    }
9339
 
9340
    @Override
9341
    public void clear() {
9342
      setSuccessIsSet(false);
9343
      this.success = 0;
9344
      this.cex = null;
9345
    }
9346
 
9347
    public long getSuccess() {
9348
      return this.success;
9349
    }
9350
 
9351
    public void setSuccess(long success) {
9352
      this.success = success;
9353
      setSuccessIsSet(true);
9354
    }
9355
 
9356
    public void unsetSuccess() {
9357
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9358
    }
9359
 
9360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9361
    public boolean isSetSuccess() {
9362
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9363
    }
9364
 
9365
    public void setSuccessIsSet(boolean value) {
9366
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9367
    }
9368
 
9369
    public InventoryServiceException getCex() {
9370
      return this.cex;
9371
    }
9372
 
9373
    public void setCex(InventoryServiceException cex) {
9374
      this.cex = cex;
9375
    }
9376
 
9377
    public void unsetCex() {
9378
      this.cex = null;
9379
    }
9380
 
9381
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9382
    public boolean isSetCex() {
9383
      return this.cex != null;
9384
    }
9385
 
9386
    public void setCexIsSet(boolean value) {
9387
      if (!value) {
9388
        this.cex = null;
9389
      }
9390
    }
9391
 
9392
    public void setFieldValue(_Fields field, Object value) {
9393
      switch (field) {
9394
      case SUCCESS:
9395
        if (value == null) {
9396
          unsetSuccess();
9397
        } else {
9398
          setSuccess((Long)value);
9399
        }
9400
        break;
9401
 
9402
      case CEX:
9403
        if (value == null) {
9404
          unsetCex();
9405
        } else {
9406
          setCex((InventoryServiceException)value);
9407
        }
9408
        break;
9409
 
9410
      }
9411
    }
9412
 
9413
    public Object getFieldValue(_Fields field) {
9414
      switch (field) {
9415
      case SUCCESS:
9416
        return Long.valueOf(getSuccess());
9417
 
9418
      case CEX:
9419
        return getCex();
9420
 
9421
      }
9422
      throw new IllegalStateException();
9423
    }
9424
 
9425
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9426
    public boolean isSet(_Fields field) {
9427
      if (field == null) {
9428
        throw new IllegalArgumentException();
9429
      }
9430
 
9431
      switch (field) {
9432
      case SUCCESS:
9433
        return isSetSuccess();
9434
      case CEX:
9435
        return isSetCex();
9436
      }
9437
      throw new IllegalStateException();
9438
    }
9439
 
9440
    @Override
9441
    public boolean equals(Object that) {
9442
      if (that == null)
9443
        return false;
9444
      if (that instanceof getItemAvailibilityAtWarehouse_result)
9445
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
9446
      return false;
9447
    }
9448
 
9449
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
9450
      if (that == null)
9451
        return false;
9452
 
9453
      boolean this_present_success = true;
9454
      boolean that_present_success = true;
9455
      if (this_present_success || that_present_success) {
9456
        if (!(this_present_success && that_present_success))
9457
          return false;
9458
        if (this.success != that.success)
9459
          return false;
9460
      }
9461
 
9462
      boolean this_present_cex = true && this.isSetCex();
9463
      boolean that_present_cex = true && that.isSetCex();
9464
      if (this_present_cex || that_present_cex) {
9465
        if (!(this_present_cex && that_present_cex))
9466
          return false;
9467
        if (!this.cex.equals(that.cex))
9468
          return false;
9469
      }
9470
 
9471
      return true;
9472
    }
9473
 
9474
    @Override
9475
    public int hashCode() {
9476
      return 0;
9477
    }
9478
 
9479
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
9480
      if (!getClass().equals(other.getClass())) {
9481
        return getClass().getName().compareTo(other.getClass().getName());
9482
      }
9483
 
9484
      int lastComparison = 0;
9485
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
9486
 
9487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9488
      if (lastComparison != 0) {
9489
        return lastComparison;
9490
      }
9491
      if (isSetSuccess()) {
9492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9493
        if (lastComparison != 0) {
9494
          return lastComparison;
9495
        }
9496
      }
9497
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9498
      if (lastComparison != 0) {
9499
        return lastComparison;
9500
      }
9501
      if (isSetCex()) {
9502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9503
        if (lastComparison != 0) {
9504
          return lastComparison;
9505
        }
9506
      }
9507
      return 0;
9508
    }
9509
 
9510
    public _Fields fieldForId(int fieldId) {
9511
      return _Fields.findByThriftId(fieldId);
9512
    }
9513
 
9514
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9515
      org.apache.thrift.protocol.TField field;
9516
      iprot.readStructBegin();
9517
      while (true)
9518
      {
9519
        field = iprot.readFieldBegin();
9520
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9521
          break;
9522
        }
9523
        switch (field.id) {
9524
          case 0: // SUCCESS
9525
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9526
              this.success = iprot.readI64();
9527
              setSuccessIsSet(true);
9528
            } else { 
9529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9530
            }
9531
            break;
9532
          case 1: // CEX
9533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9534
              this.cex = new InventoryServiceException();
9535
              this.cex.read(iprot);
9536
            } else { 
9537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9538
            }
9539
            break;
9540
          default:
9541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9542
        }
9543
        iprot.readFieldEnd();
9544
      }
9545
      iprot.readStructEnd();
9546
      validate();
9547
    }
9548
 
9549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9550
      oprot.writeStructBegin(STRUCT_DESC);
9551
 
9552
      if (this.isSetSuccess()) {
9553
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9554
        oprot.writeI64(this.success);
9555
        oprot.writeFieldEnd();
9556
      } else if (this.isSetCex()) {
9557
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9558
        this.cex.write(oprot);
9559
        oprot.writeFieldEnd();
9560
      }
9561
      oprot.writeFieldStop();
9562
      oprot.writeStructEnd();
9563
    }
9564
 
9565
    @Override
9566
    public String toString() {
9567
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
9568
      boolean first = true;
9569
 
9570
      sb.append("success:");
9571
      sb.append(this.success);
9572
      first = false;
9573
      if (!first) sb.append(", ");
9574
      sb.append("cex:");
9575
      if (this.cex == null) {
9576
        sb.append("null");
9577
      } else {
9578
        sb.append(this.cex);
9579
      }
9580
      first = false;
9581
      sb.append(")");
9582
      return sb.toString();
9583
    }
9584
 
9585
    public void validate() throws org.apache.thrift.TException {
9586
      // check for required fields
9587
    }
9588
 
9589
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9590
      try {
9591
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9592
      } catch (org.apache.thrift.TException te) {
9593
        throw new java.io.IOException(te);
9594
      }
9595
    }
9596
 
9597
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9598
      try {
9599
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9600
      } catch (org.apache.thrift.TException te) {
9601
        throw new java.io.IOException(te);
9602
      }
9603
    }
9604
 
9605
  }
9606
 
9607
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
9608
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
9609
 
9610
    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 9611
    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 9612
 
9613
    private long itemId; // required
5978 rajveer 9614
    private long sourceId; // required
5945 mandeep.dh 9615
 
9616
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9617
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 9618
      ITEM_ID((short)1, "itemId"),
9619
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 9620
 
9621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9622
 
9623
      static {
9624
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9625
          byName.put(field.getFieldName(), field);
9626
        }
9627
      }
9628
 
9629
      /**
9630
       * Find the _Fields constant that matches fieldId, or null if its not found.
9631
       */
9632
      public static _Fields findByThriftId(int fieldId) {
9633
        switch(fieldId) {
9634
          case 1: // ITEM_ID
9635
            return ITEM_ID;
5978 rajveer 9636
          case 2: // SOURCE_ID
9637
            return SOURCE_ID;
5945 mandeep.dh 9638
          default:
9639
            return null;
9640
        }
9641
      }
9642
 
9643
      /**
9644
       * Find the _Fields constant that matches fieldId, throwing an exception
9645
       * if it is not found.
9646
       */
9647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9648
        _Fields fields = findByThriftId(fieldId);
9649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9650
        return fields;
9651
      }
9652
 
9653
      /**
9654
       * Find the _Fields constant that matches name, or null if its not found.
9655
       */
9656
      public static _Fields findByName(String name) {
9657
        return byName.get(name);
9658
      }
9659
 
9660
      private final short _thriftId;
9661
      private final String _fieldName;
9662
 
9663
      _Fields(short thriftId, String fieldName) {
9664
        _thriftId = thriftId;
9665
        _fieldName = fieldName;
9666
      }
9667
 
9668
      public short getThriftFieldId() {
9669
        return _thriftId;
9670
      }
9671
 
9672
      public String getFieldName() {
9673
        return _fieldName;
9674
      }
9675
    }
9676
 
9677
    // isset id assignments
9678
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 9679
    private static final int __SOURCEID_ISSET_ID = 1;
9680
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 9681
 
9682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9683
    static {
9684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9685
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 9687
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 9689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
9691
    }
9692
 
9693
    public getItemAvailabilityAtLocation_args() {
9694
    }
9695
 
9696
    public getItemAvailabilityAtLocation_args(
5978 rajveer 9697
      long itemId,
9698
      long sourceId)
5945 mandeep.dh 9699
    {
9700
      this();
9701
      this.itemId = itemId;
9702
      setItemIdIsSet(true);
5978 rajveer 9703
      this.sourceId = sourceId;
9704
      setSourceIdIsSet(true);
5945 mandeep.dh 9705
    }
9706
 
9707
    /**
9708
     * Performs a deep copy on <i>other</i>.
9709
     */
9710
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
9711
      __isset_bit_vector.clear();
9712
      __isset_bit_vector.or(other.__isset_bit_vector);
9713
      this.itemId = other.itemId;
5978 rajveer 9714
      this.sourceId = other.sourceId;
5945 mandeep.dh 9715
    }
9716
 
9717
    public getItemAvailabilityAtLocation_args deepCopy() {
9718
      return new getItemAvailabilityAtLocation_args(this);
9719
    }
9720
 
9721
    @Override
9722
    public void clear() {
9723
      setItemIdIsSet(false);
9724
      this.itemId = 0;
5978 rajveer 9725
      setSourceIdIsSet(false);
9726
      this.sourceId = 0;
5945 mandeep.dh 9727
    }
9728
 
9729
    public long getItemId() {
9730
      return this.itemId;
9731
    }
9732
 
9733
    public void setItemId(long itemId) {
9734
      this.itemId = itemId;
9735
      setItemIdIsSet(true);
9736
    }
9737
 
9738
    public void unsetItemId() {
9739
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9740
    }
9741
 
9742
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9743
    public boolean isSetItemId() {
9744
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9745
    }
9746
 
9747
    public void setItemIdIsSet(boolean value) {
9748
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9749
    }
9750
 
5978 rajveer 9751
    public long getSourceId() {
9752
      return this.sourceId;
9753
    }
9754
 
9755
    public void setSourceId(long sourceId) {
9756
      this.sourceId = sourceId;
9757
      setSourceIdIsSet(true);
9758
    }
9759
 
9760
    public void unsetSourceId() {
9761
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
9762
    }
9763
 
9764
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
9765
    public boolean isSetSourceId() {
9766
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
9767
    }
9768
 
9769
    public void setSourceIdIsSet(boolean value) {
9770
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
9771
    }
9772
 
5945 mandeep.dh 9773
    public void setFieldValue(_Fields field, Object value) {
9774
      switch (field) {
9775
      case ITEM_ID:
9776
        if (value == null) {
9777
          unsetItemId();
9778
        } else {
9779
          setItemId((Long)value);
9780
        }
9781
        break;
9782
 
5978 rajveer 9783
      case SOURCE_ID:
9784
        if (value == null) {
9785
          unsetSourceId();
9786
        } else {
9787
          setSourceId((Long)value);
9788
        }
9789
        break;
9790
 
5945 mandeep.dh 9791
      }
9792
    }
9793
 
9794
    public Object getFieldValue(_Fields field) {
9795
      switch (field) {
9796
      case ITEM_ID:
9797
        return Long.valueOf(getItemId());
9798
 
5978 rajveer 9799
      case SOURCE_ID:
9800
        return Long.valueOf(getSourceId());
9801
 
5945 mandeep.dh 9802
      }
9803
      throw new IllegalStateException();
9804
    }
9805
 
9806
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9807
    public boolean isSet(_Fields field) {
9808
      if (field == null) {
9809
        throw new IllegalArgumentException();
9810
      }
9811
 
9812
      switch (field) {
9813
      case ITEM_ID:
9814
        return isSetItemId();
5978 rajveer 9815
      case SOURCE_ID:
9816
        return isSetSourceId();
5945 mandeep.dh 9817
      }
9818
      throw new IllegalStateException();
9819
    }
9820
 
9821
    @Override
9822
    public boolean equals(Object that) {
9823
      if (that == null)
9824
        return false;
9825
      if (that instanceof getItemAvailabilityAtLocation_args)
9826
        return this.equals((getItemAvailabilityAtLocation_args)that);
9827
      return false;
9828
    }
9829
 
9830
    public boolean equals(getItemAvailabilityAtLocation_args that) {
9831
      if (that == null)
9832
        return false;
9833
 
9834
      boolean this_present_itemId = true;
9835
      boolean that_present_itemId = true;
9836
      if (this_present_itemId || that_present_itemId) {
9837
        if (!(this_present_itemId && that_present_itemId))
9838
          return false;
9839
        if (this.itemId != that.itemId)
9840
          return false;
9841
      }
9842
 
5978 rajveer 9843
      boolean this_present_sourceId = true;
9844
      boolean that_present_sourceId = true;
9845
      if (this_present_sourceId || that_present_sourceId) {
9846
        if (!(this_present_sourceId && that_present_sourceId))
9847
          return false;
9848
        if (this.sourceId != that.sourceId)
9849
          return false;
9850
      }
9851
 
5945 mandeep.dh 9852
      return true;
9853
    }
9854
 
9855
    @Override
9856
    public int hashCode() {
9857
      return 0;
9858
    }
9859
 
9860
    public int compareTo(getItemAvailabilityAtLocation_args other) {
9861
      if (!getClass().equals(other.getClass())) {
9862
        return getClass().getName().compareTo(other.getClass().getName());
9863
      }
9864
 
9865
      int lastComparison = 0;
9866
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
9867
 
9868
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9869
      if (lastComparison != 0) {
9870
        return lastComparison;
9871
      }
9872
      if (isSetItemId()) {
9873
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9874
        if (lastComparison != 0) {
9875
          return lastComparison;
9876
        }
9877
      }
5978 rajveer 9878
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
9879
      if (lastComparison != 0) {
9880
        return lastComparison;
9881
      }
9882
      if (isSetSourceId()) {
9883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
9884
        if (lastComparison != 0) {
9885
          return lastComparison;
9886
        }
9887
      }
5945 mandeep.dh 9888
      return 0;
9889
    }
9890
 
9891
    public _Fields fieldForId(int fieldId) {
9892
      return _Fields.findByThriftId(fieldId);
9893
    }
9894
 
9895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9896
      org.apache.thrift.protocol.TField field;
9897
      iprot.readStructBegin();
9898
      while (true)
9899
      {
9900
        field = iprot.readFieldBegin();
9901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9902
          break;
9903
        }
9904
        switch (field.id) {
9905
          case 1: // ITEM_ID
9906
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9907
              this.itemId = iprot.readI64();
9908
              setItemIdIsSet(true);
9909
            } else { 
9910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9911
            }
9912
            break;
5978 rajveer 9913
          case 2: // SOURCE_ID
9914
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9915
              this.sourceId = iprot.readI64();
9916
              setSourceIdIsSet(true);
9917
            } else { 
9918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9919
            }
9920
            break;
5945 mandeep.dh 9921
          default:
9922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9923
        }
9924
        iprot.readFieldEnd();
9925
      }
9926
      iprot.readStructEnd();
9927
      validate();
9928
    }
9929
 
9930
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9931
      validate();
9932
 
9933
      oprot.writeStructBegin(STRUCT_DESC);
9934
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9935
      oprot.writeI64(this.itemId);
9936
      oprot.writeFieldEnd();
5978 rajveer 9937
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
9938
      oprot.writeI64(this.sourceId);
9939
      oprot.writeFieldEnd();
5945 mandeep.dh 9940
      oprot.writeFieldStop();
9941
      oprot.writeStructEnd();
9942
    }
9943
 
9944
    @Override
9945
    public String toString() {
9946
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
9947
      boolean first = true;
9948
 
9949
      sb.append("itemId:");
9950
      sb.append(this.itemId);
9951
      first = false;
5978 rajveer 9952
      if (!first) sb.append(", ");
9953
      sb.append("sourceId:");
9954
      sb.append(this.sourceId);
9955
      first = false;
5945 mandeep.dh 9956
      sb.append(")");
9957
      return sb.toString();
9958
    }
9959
 
9960
    public void validate() throws org.apache.thrift.TException {
9961
      // check for required fields
9962
    }
9963
 
9964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9965
      try {
9966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9967
      } catch (org.apache.thrift.TException te) {
9968
        throw new java.io.IOException(te);
9969
      }
9970
    }
9971
 
9972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9973
      try {
9974
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9975
      } catch (org.apache.thrift.TException te) {
9976
        throw new java.io.IOException(te);
9977
      }
9978
    }
9979
 
9980
  }
9981
 
9982
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
9983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
9984
 
9985
    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);
9986
    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);
9987
 
9988
    private List<Long> success; // required
9989
    private InventoryServiceException isex; // required
9990
 
9991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9993
      SUCCESS((short)0, "success"),
9994
      ISEX((short)1, "isex");
9995
 
9996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9997
 
9998
      static {
9999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10000
          byName.put(field.getFieldName(), field);
10001
        }
10002
      }
10003
 
10004
      /**
10005
       * Find the _Fields constant that matches fieldId, or null if its not found.
10006
       */
10007
      public static _Fields findByThriftId(int fieldId) {
10008
        switch(fieldId) {
10009
          case 0: // SUCCESS
10010
            return SUCCESS;
10011
          case 1: // ISEX
10012
            return ISEX;
10013
          default:
10014
            return null;
10015
        }
10016
      }
10017
 
10018
      /**
10019
       * Find the _Fields constant that matches fieldId, throwing an exception
10020
       * if it is not found.
10021
       */
10022
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10023
        _Fields fields = findByThriftId(fieldId);
10024
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10025
        return fields;
10026
      }
10027
 
10028
      /**
10029
       * Find the _Fields constant that matches name, or null if its not found.
10030
       */
10031
      public static _Fields findByName(String name) {
10032
        return byName.get(name);
10033
      }
10034
 
10035
      private final short _thriftId;
10036
      private final String _fieldName;
10037
 
10038
      _Fields(short thriftId, String fieldName) {
10039
        _thriftId = thriftId;
10040
        _fieldName = fieldName;
10041
      }
10042
 
10043
      public short getThriftFieldId() {
10044
        return _thriftId;
10045
      }
10046
 
10047
      public String getFieldName() {
10048
        return _fieldName;
10049
      }
10050
    }
10051
 
10052
    // isset id assignments
10053
 
10054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10055
    static {
10056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10057
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10058
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10059
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10060
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10061
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10062
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10063
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
10064
    }
10065
 
10066
    public getItemAvailabilityAtLocation_result() {
10067
    }
10068
 
10069
    public getItemAvailabilityAtLocation_result(
10070
      List<Long> success,
10071
      InventoryServiceException isex)
10072
    {
10073
      this();
10074
      this.success = success;
10075
      this.isex = isex;
10076
    }
10077
 
10078
    /**
10079
     * Performs a deep copy on <i>other</i>.
10080
     */
10081
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
10082
      if (other.isSetSuccess()) {
10083
        List<Long> __this__success = new ArrayList<Long>();
10084
        for (Long other_element : other.success) {
10085
          __this__success.add(other_element);
10086
        }
10087
        this.success = __this__success;
10088
      }
10089
      if (other.isSetIsex()) {
10090
        this.isex = new InventoryServiceException(other.isex);
10091
      }
10092
    }
10093
 
10094
    public getItemAvailabilityAtLocation_result deepCopy() {
10095
      return new getItemAvailabilityAtLocation_result(this);
10096
    }
10097
 
10098
    @Override
10099
    public void clear() {
10100
      this.success = null;
10101
      this.isex = null;
10102
    }
10103
 
10104
    public int getSuccessSize() {
10105
      return (this.success == null) ? 0 : this.success.size();
10106
    }
10107
 
10108
    public java.util.Iterator<Long> getSuccessIterator() {
10109
      return (this.success == null) ? null : this.success.iterator();
10110
    }
10111
 
10112
    public void addToSuccess(long elem) {
10113
      if (this.success == null) {
10114
        this.success = new ArrayList<Long>();
10115
      }
10116
      this.success.add(elem);
10117
    }
10118
 
10119
    public List<Long> getSuccess() {
10120
      return this.success;
10121
    }
10122
 
10123
    public void setSuccess(List<Long> success) {
10124
      this.success = success;
10125
    }
10126
 
10127
    public void unsetSuccess() {
10128
      this.success = null;
10129
    }
10130
 
10131
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10132
    public boolean isSetSuccess() {
10133
      return this.success != null;
10134
    }
10135
 
10136
    public void setSuccessIsSet(boolean value) {
10137
      if (!value) {
10138
        this.success = null;
10139
      }
10140
    }
10141
 
10142
    public InventoryServiceException getIsex() {
10143
      return this.isex;
10144
    }
10145
 
10146
    public void setIsex(InventoryServiceException isex) {
10147
      this.isex = isex;
10148
    }
10149
 
10150
    public void unsetIsex() {
10151
      this.isex = null;
10152
    }
10153
 
10154
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
10155
    public boolean isSetIsex() {
10156
      return this.isex != null;
10157
    }
10158
 
10159
    public void setIsexIsSet(boolean value) {
10160
      if (!value) {
10161
        this.isex = null;
10162
      }
10163
    }
10164
 
10165
    public void setFieldValue(_Fields field, Object value) {
10166
      switch (field) {
10167
      case SUCCESS:
10168
        if (value == null) {
10169
          unsetSuccess();
10170
        } else {
10171
          setSuccess((List<Long>)value);
10172
        }
10173
        break;
10174
 
10175
      case ISEX:
10176
        if (value == null) {
10177
          unsetIsex();
10178
        } else {
10179
          setIsex((InventoryServiceException)value);
10180
        }
10181
        break;
10182
 
10183
      }
10184
    }
10185
 
10186
    public Object getFieldValue(_Fields field) {
10187
      switch (field) {
10188
      case SUCCESS:
10189
        return getSuccess();
10190
 
10191
      case ISEX:
10192
        return getIsex();
10193
 
10194
      }
10195
      throw new IllegalStateException();
10196
    }
10197
 
10198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10199
    public boolean isSet(_Fields field) {
10200
      if (field == null) {
10201
        throw new IllegalArgumentException();
10202
      }
10203
 
10204
      switch (field) {
10205
      case SUCCESS:
10206
        return isSetSuccess();
10207
      case ISEX:
10208
        return isSetIsex();
10209
      }
10210
      throw new IllegalStateException();
10211
    }
10212
 
10213
    @Override
10214
    public boolean equals(Object that) {
10215
      if (that == null)
10216
        return false;
10217
      if (that instanceof getItemAvailabilityAtLocation_result)
10218
        return this.equals((getItemAvailabilityAtLocation_result)that);
10219
      return false;
10220
    }
10221
 
10222
    public boolean equals(getItemAvailabilityAtLocation_result that) {
10223
      if (that == null)
10224
        return false;
10225
 
10226
      boolean this_present_success = true && this.isSetSuccess();
10227
      boolean that_present_success = true && that.isSetSuccess();
10228
      if (this_present_success || that_present_success) {
10229
        if (!(this_present_success && that_present_success))
10230
          return false;
10231
        if (!this.success.equals(that.success))
10232
          return false;
10233
      }
10234
 
10235
      boolean this_present_isex = true && this.isSetIsex();
10236
      boolean that_present_isex = true && that.isSetIsex();
10237
      if (this_present_isex || that_present_isex) {
10238
        if (!(this_present_isex && that_present_isex))
10239
          return false;
10240
        if (!this.isex.equals(that.isex))
10241
          return false;
10242
      }
10243
 
10244
      return true;
10245
    }
10246
 
10247
    @Override
10248
    public int hashCode() {
10249
      return 0;
10250
    }
10251
 
10252
    public int compareTo(getItemAvailabilityAtLocation_result other) {
10253
      if (!getClass().equals(other.getClass())) {
10254
        return getClass().getName().compareTo(other.getClass().getName());
10255
      }
10256
 
10257
      int lastComparison = 0;
10258
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
10259
 
10260
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10261
      if (lastComparison != 0) {
10262
        return lastComparison;
10263
      }
10264
      if (isSetSuccess()) {
10265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10266
        if (lastComparison != 0) {
10267
          return lastComparison;
10268
        }
10269
      }
10270
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
10271
      if (lastComparison != 0) {
10272
        return lastComparison;
10273
      }
10274
      if (isSetIsex()) {
10275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
10276
        if (lastComparison != 0) {
10277
          return lastComparison;
10278
        }
10279
      }
10280
      return 0;
10281
    }
10282
 
10283
    public _Fields fieldForId(int fieldId) {
10284
      return _Fields.findByThriftId(fieldId);
10285
    }
10286
 
10287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10288
      org.apache.thrift.protocol.TField field;
10289
      iprot.readStructBegin();
10290
      while (true)
10291
      {
10292
        field = iprot.readFieldBegin();
10293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10294
          break;
10295
        }
10296
        switch (field.id) {
10297
          case 0: // SUCCESS
10298
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10299
              {
10300
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
10301
                this.success = new ArrayList<Long>(_list20.size);
10302
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
10303
                {
10304
                  long _elem22; // required
10305
                  _elem22 = iprot.readI64();
10306
                  this.success.add(_elem22);
10307
                }
10308
                iprot.readListEnd();
10309
              }
10310
            } else { 
10311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10312
            }
10313
            break;
10314
          case 1: // ISEX
10315
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10316
              this.isex = new InventoryServiceException();
10317
              this.isex.read(iprot);
10318
            } else { 
10319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10320
            }
10321
            break;
10322
          default:
10323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10324
        }
10325
        iprot.readFieldEnd();
10326
      }
10327
      iprot.readStructEnd();
10328
      validate();
10329
    }
10330
 
10331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10332
      oprot.writeStructBegin(STRUCT_DESC);
10333
 
10334
      if (this.isSetSuccess()) {
10335
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10336
        {
10337
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
10338
          for (long _iter23 : this.success)
10339
          {
10340
            oprot.writeI64(_iter23);
10341
          }
10342
          oprot.writeListEnd();
10343
        }
10344
        oprot.writeFieldEnd();
10345
      } else if (this.isSetIsex()) {
10346
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
10347
        this.isex.write(oprot);
10348
        oprot.writeFieldEnd();
10349
      }
10350
      oprot.writeFieldStop();
10351
      oprot.writeStructEnd();
10352
    }
10353
 
10354
    @Override
10355
    public String toString() {
10356
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
10357
      boolean first = true;
10358
 
10359
      sb.append("success:");
10360
      if (this.success == null) {
10361
        sb.append("null");
10362
      } else {
10363
        sb.append(this.success);
10364
      }
10365
      first = false;
10366
      if (!first) sb.append(", ");
10367
      sb.append("isex:");
10368
      if (this.isex == null) {
10369
        sb.append("null");
10370
      } else {
10371
        sb.append(this.isex);
10372
      }
10373
      first = false;
10374
      sb.append(")");
10375
      return sb.toString();
10376
    }
10377
 
10378
    public void validate() throws org.apache.thrift.TException {
10379
      // check for required fields
10380
    }
10381
 
10382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10383
      try {
10384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10385
      } catch (org.apache.thrift.TException te) {
10386
        throw new java.io.IOException(te);
10387
      }
10388
    }
10389
 
10390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10391
      try {
10392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10393
      } catch (org.apache.thrift.TException te) {
10394
        throw new java.io.IOException(te);
10395
      }
10396
    }
10397
 
10398
  }
10399
 
10400
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
10401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
10402
 
10403
    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);
10404
 
10405
    private boolean isActive; // required
10406
 
10407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10409
      IS_ACTIVE((short)1, "isActive");
10410
 
10411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10412
 
10413
      static {
10414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10415
          byName.put(field.getFieldName(), field);
10416
        }
10417
      }
10418
 
10419
      /**
10420
       * Find the _Fields constant that matches fieldId, or null if its not found.
10421
       */
10422
      public static _Fields findByThriftId(int fieldId) {
10423
        switch(fieldId) {
10424
          case 1: // IS_ACTIVE
10425
            return IS_ACTIVE;
10426
          default:
10427
            return null;
10428
        }
10429
      }
10430
 
10431
      /**
10432
       * Find the _Fields constant that matches fieldId, throwing an exception
10433
       * if it is not found.
10434
       */
10435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10436
        _Fields fields = findByThriftId(fieldId);
10437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10438
        return fields;
10439
      }
10440
 
10441
      /**
10442
       * Find the _Fields constant that matches name, or null if its not found.
10443
       */
10444
      public static _Fields findByName(String name) {
10445
        return byName.get(name);
10446
      }
10447
 
10448
      private final short _thriftId;
10449
      private final String _fieldName;
10450
 
10451
      _Fields(short thriftId, String fieldName) {
10452
        _thriftId = thriftId;
10453
        _fieldName = fieldName;
10454
      }
10455
 
10456
      public short getThriftFieldId() {
10457
        return _thriftId;
10458
      }
10459
 
10460
      public String getFieldName() {
10461
        return _fieldName;
10462
      }
10463
    }
10464
 
10465
    // isset id assignments
10466
    private static final int __ISACTIVE_ISSET_ID = 0;
10467
    private BitSet __isset_bit_vector = new BitSet(1);
10468
 
10469
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10470
    static {
10471
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10472
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10473
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10474
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10475
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
10476
    }
10477
 
10478
    public getAllWarehouses_args() {
10479
    }
10480
 
10481
    public getAllWarehouses_args(
10482
      boolean isActive)
10483
    {
10484
      this();
10485
      this.isActive = isActive;
10486
      setIsActiveIsSet(true);
10487
    }
10488
 
10489
    /**
10490
     * Performs a deep copy on <i>other</i>.
10491
     */
10492
    public getAllWarehouses_args(getAllWarehouses_args other) {
10493
      __isset_bit_vector.clear();
10494
      __isset_bit_vector.or(other.__isset_bit_vector);
10495
      this.isActive = other.isActive;
10496
    }
10497
 
10498
    public getAllWarehouses_args deepCopy() {
10499
      return new getAllWarehouses_args(this);
10500
    }
10501
 
10502
    @Override
10503
    public void clear() {
10504
      setIsActiveIsSet(false);
10505
      this.isActive = false;
10506
    }
10507
 
10508
    public boolean isIsActive() {
10509
      return this.isActive;
10510
    }
10511
 
10512
    public void setIsActive(boolean isActive) {
10513
      this.isActive = isActive;
10514
      setIsActiveIsSet(true);
10515
    }
10516
 
10517
    public void unsetIsActive() {
10518
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
10519
    }
10520
 
10521
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
10522
    public boolean isSetIsActive() {
10523
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
10524
    }
10525
 
10526
    public void setIsActiveIsSet(boolean value) {
10527
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
10528
    }
10529
 
10530
    public void setFieldValue(_Fields field, Object value) {
10531
      switch (field) {
10532
      case IS_ACTIVE:
10533
        if (value == null) {
10534
          unsetIsActive();
10535
        } else {
10536
          setIsActive((Boolean)value);
10537
        }
10538
        break;
10539
 
10540
      }
10541
    }
10542
 
10543
    public Object getFieldValue(_Fields field) {
10544
      switch (field) {
10545
      case IS_ACTIVE:
10546
        return Boolean.valueOf(isIsActive());
10547
 
10548
      }
10549
      throw new IllegalStateException();
10550
    }
10551
 
10552
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10553
    public boolean isSet(_Fields field) {
10554
      if (field == null) {
10555
        throw new IllegalArgumentException();
10556
      }
10557
 
10558
      switch (field) {
10559
      case IS_ACTIVE:
10560
        return isSetIsActive();
10561
      }
10562
      throw new IllegalStateException();
10563
    }
10564
 
10565
    @Override
10566
    public boolean equals(Object that) {
10567
      if (that == null)
10568
        return false;
10569
      if (that instanceof getAllWarehouses_args)
10570
        return this.equals((getAllWarehouses_args)that);
10571
      return false;
10572
    }
10573
 
10574
    public boolean equals(getAllWarehouses_args that) {
10575
      if (that == null)
10576
        return false;
10577
 
10578
      boolean this_present_isActive = true;
10579
      boolean that_present_isActive = true;
10580
      if (this_present_isActive || that_present_isActive) {
10581
        if (!(this_present_isActive && that_present_isActive))
10582
          return false;
10583
        if (this.isActive != that.isActive)
10584
          return false;
10585
      }
10586
 
10587
      return true;
10588
    }
10589
 
10590
    @Override
10591
    public int hashCode() {
10592
      return 0;
10593
    }
10594
 
10595
    public int compareTo(getAllWarehouses_args other) {
10596
      if (!getClass().equals(other.getClass())) {
10597
        return getClass().getName().compareTo(other.getClass().getName());
10598
      }
10599
 
10600
      int lastComparison = 0;
10601
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
10602
 
10603
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
10604
      if (lastComparison != 0) {
10605
        return lastComparison;
10606
      }
10607
      if (isSetIsActive()) {
10608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
10609
        if (lastComparison != 0) {
10610
          return lastComparison;
10611
        }
10612
      }
10613
      return 0;
10614
    }
10615
 
10616
    public _Fields fieldForId(int fieldId) {
10617
      return _Fields.findByThriftId(fieldId);
10618
    }
10619
 
10620
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10621
      org.apache.thrift.protocol.TField field;
10622
      iprot.readStructBegin();
10623
      while (true)
10624
      {
10625
        field = iprot.readFieldBegin();
10626
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10627
          break;
10628
        }
10629
        switch (field.id) {
10630
          case 1: // IS_ACTIVE
10631
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10632
              this.isActive = iprot.readBool();
10633
              setIsActiveIsSet(true);
10634
            } else { 
10635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10636
            }
10637
            break;
10638
          default:
10639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10640
        }
10641
        iprot.readFieldEnd();
10642
      }
10643
      iprot.readStructEnd();
10644
      validate();
10645
    }
10646
 
10647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10648
      validate();
10649
 
10650
      oprot.writeStructBegin(STRUCT_DESC);
10651
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
10652
      oprot.writeBool(this.isActive);
10653
      oprot.writeFieldEnd();
10654
      oprot.writeFieldStop();
10655
      oprot.writeStructEnd();
10656
    }
10657
 
10658
    @Override
10659
    public String toString() {
10660
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
10661
      boolean first = true;
10662
 
10663
      sb.append("isActive:");
10664
      sb.append(this.isActive);
10665
      first = false;
10666
      sb.append(")");
10667
      return sb.toString();
10668
    }
10669
 
10670
    public void validate() throws org.apache.thrift.TException {
10671
      // check for required fields
10672
    }
10673
 
10674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10675
      try {
10676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10677
      } catch (org.apache.thrift.TException te) {
10678
        throw new java.io.IOException(te);
10679
      }
10680
    }
10681
 
10682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10683
      try {
10684
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10685
        __isset_bit_vector = new BitSet(1);
10686
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10687
      } catch (org.apache.thrift.TException te) {
10688
        throw new java.io.IOException(te);
10689
      }
10690
    }
10691
 
10692
  }
10693
 
10694
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
10695
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
10696
 
10697
    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);
10698
    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);
10699
 
10700
    private List<Warehouse> success; // required
10701
    private InventoryServiceException cex; // required
10702
 
10703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10705
      SUCCESS((short)0, "success"),
10706
      CEX((short)1, "cex");
10707
 
10708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10709
 
10710
      static {
10711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10712
          byName.put(field.getFieldName(), field);
10713
        }
10714
      }
10715
 
10716
      /**
10717
       * Find the _Fields constant that matches fieldId, or null if its not found.
10718
       */
10719
      public static _Fields findByThriftId(int fieldId) {
10720
        switch(fieldId) {
10721
          case 0: // SUCCESS
10722
            return SUCCESS;
10723
          case 1: // CEX
10724
            return CEX;
10725
          default:
10726
            return null;
10727
        }
10728
      }
10729
 
10730
      /**
10731
       * Find the _Fields constant that matches fieldId, throwing an exception
10732
       * if it is not found.
10733
       */
10734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10735
        _Fields fields = findByThriftId(fieldId);
10736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10737
        return fields;
10738
      }
10739
 
10740
      /**
10741
       * Find the _Fields constant that matches name, or null if its not found.
10742
       */
10743
      public static _Fields findByName(String name) {
10744
        return byName.get(name);
10745
      }
10746
 
10747
      private final short _thriftId;
10748
      private final String _fieldName;
10749
 
10750
      _Fields(short thriftId, String fieldName) {
10751
        _thriftId = thriftId;
10752
        _fieldName = fieldName;
10753
      }
10754
 
10755
      public short getThriftFieldId() {
10756
        return _thriftId;
10757
      }
10758
 
10759
      public String getFieldName() {
10760
        return _fieldName;
10761
      }
10762
    }
10763
 
10764
    // isset id assignments
10765
 
10766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10767
    static {
10768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10769
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10770
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10771
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
10772
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10773
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10774
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10775
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
10776
    }
10777
 
10778
    public getAllWarehouses_result() {
10779
    }
10780
 
10781
    public getAllWarehouses_result(
10782
      List<Warehouse> success,
10783
      InventoryServiceException cex)
10784
    {
10785
      this();
10786
      this.success = success;
10787
      this.cex = cex;
10788
    }
10789
 
10790
    /**
10791
     * Performs a deep copy on <i>other</i>.
10792
     */
10793
    public getAllWarehouses_result(getAllWarehouses_result other) {
10794
      if (other.isSetSuccess()) {
10795
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
10796
        for (Warehouse other_element : other.success) {
10797
          __this__success.add(new Warehouse(other_element));
10798
        }
10799
        this.success = __this__success;
10800
      }
10801
      if (other.isSetCex()) {
10802
        this.cex = new InventoryServiceException(other.cex);
10803
      }
10804
    }
10805
 
10806
    public getAllWarehouses_result deepCopy() {
10807
      return new getAllWarehouses_result(this);
10808
    }
10809
 
10810
    @Override
10811
    public void clear() {
10812
      this.success = null;
10813
      this.cex = null;
10814
    }
10815
 
10816
    public int getSuccessSize() {
10817
      return (this.success == null) ? 0 : this.success.size();
10818
    }
10819
 
10820
    public java.util.Iterator<Warehouse> getSuccessIterator() {
10821
      return (this.success == null) ? null : this.success.iterator();
10822
    }
10823
 
10824
    public void addToSuccess(Warehouse elem) {
10825
      if (this.success == null) {
10826
        this.success = new ArrayList<Warehouse>();
10827
      }
10828
      this.success.add(elem);
10829
    }
10830
 
10831
    public List<Warehouse> getSuccess() {
10832
      return this.success;
10833
    }
10834
 
10835
    public void setSuccess(List<Warehouse> success) {
10836
      this.success = success;
10837
    }
10838
 
10839
    public void unsetSuccess() {
10840
      this.success = null;
10841
    }
10842
 
10843
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10844
    public boolean isSetSuccess() {
10845
      return this.success != null;
10846
    }
10847
 
10848
    public void setSuccessIsSet(boolean value) {
10849
      if (!value) {
10850
        this.success = null;
10851
      }
10852
    }
10853
 
10854
    public InventoryServiceException getCex() {
10855
      return this.cex;
10856
    }
10857
 
10858
    public void setCex(InventoryServiceException cex) {
10859
      this.cex = cex;
10860
    }
10861
 
10862
    public void unsetCex() {
10863
      this.cex = null;
10864
    }
10865
 
10866
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10867
    public boolean isSetCex() {
10868
      return this.cex != null;
10869
    }
10870
 
10871
    public void setCexIsSet(boolean value) {
10872
      if (!value) {
10873
        this.cex = null;
10874
      }
10875
    }
10876
 
10877
    public void setFieldValue(_Fields field, Object value) {
10878
      switch (field) {
10879
      case SUCCESS:
10880
        if (value == null) {
10881
          unsetSuccess();
10882
        } else {
10883
          setSuccess((List<Warehouse>)value);
10884
        }
10885
        break;
10886
 
10887
      case CEX:
10888
        if (value == null) {
10889
          unsetCex();
10890
        } else {
10891
          setCex((InventoryServiceException)value);
10892
        }
10893
        break;
10894
 
10895
      }
10896
    }
10897
 
10898
    public Object getFieldValue(_Fields field) {
10899
      switch (field) {
10900
      case SUCCESS:
10901
        return getSuccess();
10902
 
10903
      case CEX:
10904
        return getCex();
10905
 
10906
      }
10907
      throw new IllegalStateException();
10908
    }
10909
 
10910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10911
    public boolean isSet(_Fields field) {
10912
      if (field == null) {
10913
        throw new IllegalArgumentException();
10914
      }
10915
 
10916
      switch (field) {
10917
      case SUCCESS:
10918
        return isSetSuccess();
10919
      case CEX:
10920
        return isSetCex();
10921
      }
10922
      throw new IllegalStateException();
10923
    }
10924
 
10925
    @Override
10926
    public boolean equals(Object that) {
10927
      if (that == null)
10928
        return false;
10929
      if (that instanceof getAllWarehouses_result)
10930
        return this.equals((getAllWarehouses_result)that);
10931
      return false;
10932
    }
10933
 
10934
    public boolean equals(getAllWarehouses_result that) {
10935
      if (that == null)
10936
        return false;
10937
 
10938
      boolean this_present_success = true && this.isSetSuccess();
10939
      boolean that_present_success = true && that.isSetSuccess();
10940
      if (this_present_success || that_present_success) {
10941
        if (!(this_present_success && that_present_success))
10942
          return false;
10943
        if (!this.success.equals(that.success))
10944
          return false;
10945
      }
10946
 
10947
      boolean this_present_cex = true && this.isSetCex();
10948
      boolean that_present_cex = true && that.isSetCex();
10949
      if (this_present_cex || that_present_cex) {
10950
        if (!(this_present_cex && that_present_cex))
10951
          return false;
10952
        if (!this.cex.equals(that.cex))
10953
          return false;
10954
      }
10955
 
10956
      return true;
10957
    }
10958
 
10959
    @Override
10960
    public int hashCode() {
10961
      return 0;
10962
    }
10963
 
10964
    public int compareTo(getAllWarehouses_result other) {
10965
      if (!getClass().equals(other.getClass())) {
10966
        return getClass().getName().compareTo(other.getClass().getName());
10967
      }
10968
 
10969
      int lastComparison = 0;
10970
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
10971
 
10972
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10973
      if (lastComparison != 0) {
10974
        return lastComparison;
10975
      }
10976
      if (isSetSuccess()) {
10977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10978
        if (lastComparison != 0) {
10979
          return lastComparison;
10980
        }
10981
      }
10982
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10983
      if (lastComparison != 0) {
10984
        return lastComparison;
10985
      }
10986
      if (isSetCex()) {
10987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10988
        if (lastComparison != 0) {
10989
          return lastComparison;
10990
        }
10991
      }
10992
      return 0;
10993
    }
10994
 
10995
    public _Fields fieldForId(int fieldId) {
10996
      return _Fields.findByThriftId(fieldId);
10997
    }
10998
 
10999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11000
      org.apache.thrift.protocol.TField field;
11001
      iprot.readStructBegin();
11002
      while (true)
11003
      {
11004
        field = iprot.readFieldBegin();
11005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11006
          break;
11007
        }
11008
        switch (field.id) {
11009
          case 0: // SUCCESS
11010
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11011
              {
11012
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
11013
                this.success = new ArrayList<Warehouse>(_list24.size);
11014
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11015
                {
11016
                  Warehouse _elem26; // required
11017
                  _elem26 = new Warehouse();
11018
                  _elem26.read(iprot);
11019
                  this.success.add(_elem26);
11020
                }
11021
                iprot.readListEnd();
11022
              }
11023
            } else { 
11024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11025
            }
11026
            break;
11027
          case 1: // CEX
11028
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11029
              this.cex = new InventoryServiceException();
11030
              this.cex.read(iprot);
11031
            } else { 
11032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11033
            }
11034
            break;
11035
          default:
11036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11037
        }
11038
        iprot.readFieldEnd();
11039
      }
11040
      iprot.readStructEnd();
11041
      validate();
11042
    }
11043
 
11044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11045
      oprot.writeStructBegin(STRUCT_DESC);
11046
 
11047
      if (this.isSetSuccess()) {
11048
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11049
        {
11050
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11051
          for (Warehouse _iter27 : this.success)
11052
          {
11053
            _iter27.write(oprot);
11054
          }
11055
          oprot.writeListEnd();
11056
        }
11057
        oprot.writeFieldEnd();
11058
      } else if (this.isSetCex()) {
11059
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11060
        this.cex.write(oprot);
11061
        oprot.writeFieldEnd();
11062
      }
11063
      oprot.writeFieldStop();
11064
      oprot.writeStructEnd();
11065
    }
11066
 
11067
    @Override
11068
    public String toString() {
11069
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
11070
      boolean first = true;
11071
 
11072
      sb.append("success:");
11073
      if (this.success == null) {
11074
        sb.append("null");
11075
      } else {
11076
        sb.append(this.success);
11077
      }
11078
      first = false;
11079
      if (!first) sb.append(", ");
11080
      sb.append("cex:");
11081
      if (this.cex == null) {
11082
        sb.append("null");
11083
      } else {
11084
        sb.append(this.cex);
11085
      }
11086
      first = false;
11087
      sb.append(")");
11088
      return sb.toString();
11089
    }
11090
 
11091
    public void validate() throws org.apache.thrift.TException {
11092
      // check for required fields
11093
    }
11094
 
11095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11096
      try {
11097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11098
      } catch (org.apache.thrift.TException te) {
11099
        throw new java.io.IOException(te);
11100
      }
11101
    }
11102
 
11103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11104
      try {
11105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11106
      } catch (org.apache.thrift.TException te) {
11107
        throw new java.io.IOException(te);
11108
      }
11109
    }
11110
 
11111
  }
11112
 
11113
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
11115
 
11116
    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);
11117
 
11118
    private long warehouse_id; // required
11119
 
11120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11122
      WAREHOUSE_ID((short)1, "warehouse_id");
11123
 
11124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11125
 
11126
      static {
11127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11128
          byName.put(field.getFieldName(), field);
11129
        }
11130
      }
11131
 
11132
      /**
11133
       * Find the _Fields constant that matches fieldId, or null if its not found.
11134
       */
11135
      public static _Fields findByThriftId(int fieldId) {
11136
        switch(fieldId) {
11137
          case 1: // WAREHOUSE_ID
11138
            return WAREHOUSE_ID;
11139
          default:
11140
            return null;
11141
        }
11142
      }
11143
 
11144
      /**
11145
       * Find the _Fields constant that matches fieldId, throwing an exception
11146
       * if it is not found.
11147
       */
11148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11149
        _Fields fields = findByThriftId(fieldId);
11150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11151
        return fields;
11152
      }
11153
 
11154
      /**
11155
       * Find the _Fields constant that matches name, or null if its not found.
11156
       */
11157
      public static _Fields findByName(String name) {
11158
        return byName.get(name);
11159
      }
11160
 
11161
      private final short _thriftId;
11162
      private final String _fieldName;
11163
 
11164
      _Fields(short thriftId, String fieldName) {
11165
        _thriftId = thriftId;
11166
        _fieldName = fieldName;
11167
      }
11168
 
11169
      public short getThriftFieldId() {
11170
        return _thriftId;
11171
      }
11172
 
11173
      public String getFieldName() {
11174
        return _fieldName;
11175
      }
11176
    }
11177
 
11178
    // isset id assignments
11179
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11180
    private BitSet __isset_bit_vector = new BitSet(1);
11181
 
11182
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11183
    static {
11184
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11185
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
11189
    }
11190
 
11191
    public getWarehouse_args() {
11192
    }
11193
 
11194
    public getWarehouse_args(
11195
      long warehouse_id)
11196
    {
11197
      this();
11198
      this.warehouse_id = warehouse_id;
11199
      setWarehouse_idIsSet(true);
11200
    }
11201
 
11202
    /**
11203
     * Performs a deep copy on <i>other</i>.
11204
     */
11205
    public getWarehouse_args(getWarehouse_args other) {
11206
      __isset_bit_vector.clear();
11207
      __isset_bit_vector.or(other.__isset_bit_vector);
11208
      this.warehouse_id = other.warehouse_id;
11209
    }
11210
 
11211
    public getWarehouse_args deepCopy() {
11212
      return new getWarehouse_args(this);
11213
    }
11214
 
11215
    @Override
11216
    public void clear() {
11217
      setWarehouse_idIsSet(false);
11218
      this.warehouse_id = 0;
11219
    }
11220
 
11221
    public long getWarehouse_id() {
11222
      return this.warehouse_id;
11223
    }
11224
 
11225
    public void setWarehouse_id(long warehouse_id) {
11226
      this.warehouse_id = warehouse_id;
11227
      setWarehouse_idIsSet(true);
11228
    }
11229
 
11230
    public void unsetWarehouse_id() {
11231
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11232
    }
11233
 
11234
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11235
    public boolean isSetWarehouse_id() {
11236
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11237
    }
11238
 
11239
    public void setWarehouse_idIsSet(boolean value) {
11240
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11241
    }
11242
 
11243
    public void setFieldValue(_Fields field, Object value) {
11244
      switch (field) {
11245
      case WAREHOUSE_ID:
11246
        if (value == null) {
11247
          unsetWarehouse_id();
11248
        } else {
11249
          setWarehouse_id((Long)value);
11250
        }
11251
        break;
11252
 
11253
      }
11254
    }
11255
 
11256
    public Object getFieldValue(_Fields field) {
11257
      switch (field) {
11258
      case WAREHOUSE_ID:
11259
        return Long.valueOf(getWarehouse_id());
11260
 
11261
      }
11262
      throw new IllegalStateException();
11263
    }
11264
 
11265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11266
    public boolean isSet(_Fields field) {
11267
      if (field == null) {
11268
        throw new IllegalArgumentException();
11269
      }
11270
 
11271
      switch (field) {
11272
      case WAREHOUSE_ID:
11273
        return isSetWarehouse_id();
11274
      }
11275
      throw new IllegalStateException();
11276
    }
11277
 
11278
    @Override
11279
    public boolean equals(Object that) {
11280
      if (that == null)
11281
        return false;
11282
      if (that instanceof getWarehouse_args)
11283
        return this.equals((getWarehouse_args)that);
11284
      return false;
11285
    }
11286
 
11287
    public boolean equals(getWarehouse_args that) {
11288
      if (that == null)
11289
        return false;
11290
 
11291
      boolean this_present_warehouse_id = true;
11292
      boolean that_present_warehouse_id = true;
11293
      if (this_present_warehouse_id || that_present_warehouse_id) {
11294
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11295
          return false;
11296
        if (this.warehouse_id != that.warehouse_id)
11297
          return false;
11298
      }
11299
 
11300
      return true;
11301
    }
11302
 
11303
    @Override
11304
    public int hashCode() {
11305
      return 0;
11306
    }
11307
 
11308
    public int compareTo(getWarehouse_args other) {
11309
      if (!getClass().equals(other.getClass())) {
11310
        return getClass().getName().compareTo(other.getClass().getName());
11311
      }
11312
 
11313
      int lastComparison = 0;
11314
      getWarehouse_args typedOther = (getWarehouse_args)other;
11315
 
11316
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11317
      if (lastComparison != 0) {
11318
        return lastComparison;
11319
      }
11320
      if (isSetWarehouse_id()) {
11321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11322
        if (lastComparison != 0) {
11323
          return lastComparison;
11324
        }
11325
      }
11326
      return 0;
11327
    }
11328
 
11329
    public _Fields fieldForId(int fieldId) {
11330
      return _Fields.findByThriftId(fieldId);
11331
    }
11332
 
11333
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11334
      org.apache.thrift.protocol.TField field;
11335
      iprot.readStructBegin();
11336
      while (true)
11337
      {
11338
        field = iprot.readFieldBegin();
11339
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11340
          break;
11341
        }
11342
        switch (field.id) {
11343
          case 1: // WAREHOUSE_ID
11344
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11345
              this.warehouse_id = iprot.readI64();
11346
              setWarehouse_idIsSet(true);
11347
            } else { 
11348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11349
            }
11350
            break;
11351
          default:
11352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11353
        }
11354
        iprot.readFieldEnd();
11355
      }
11356
      iprot.readStructEnd();
11357
      validate();
11358
    }
11359
 
11360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11361
      validate();
11362
 
11363
      oprot.writeStructBegin(STRUCT_DESC);
11364
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11365
      oprot.writeI64(this.warehouse_id);
11366
      oprot.writeFieldEnd();
11367
      oprot.writeFieldStop();
11368
      oprot.writeStructEnd();
11369
    }
11370
 
11371
    @Override
11372
    public String toString() {
11373
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
11374
      boolean first = true;
11375
 
11376
      sb.append("warehouse_id:");
11377
      sb.append(this.warehouse_id);
11378
      first = false;
11379
      sb.append(")");
11380
      return sb.toString();
11381
    }
11382
 
11383
    public void validate() throws org.apache.thrift.TException {
11384
      // check for required fields
11385
    }
11386
 
11387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11388
      try {
11389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11390
      } catch (org.apache.thrift.TException te) {
11391
        throw new java.io.IOException(te);
11392
      }
11393
    }
11394
 
11395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11396
      try {
11397
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11398
        __isset_bit_vector = new BitSet(1);
11399
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11400
      } catch (org.apache.thrift.TException te) {
11401
        throw new java.io.IOException(te);
11402
      }
11403
    }
11404
 
11405
  }
11406
 
11407
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11408
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
11409
 
11410
    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);
11411
    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);
11412
 
11413
    private Warehouse success; // required
11414
    private InventoryServiceException cex; // required
11415
 
11416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11418
      SUCCESS((short)0, "success"),
11419
      CEX((short)1, "cex");
11420
 
11421
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11422
 
11423
      static {
11424
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11425
          byName.put(field.getFieldName(), field);
11426
        }
11427
      }
11428
 
11429
      /**
11430
       * Find the _Fields constant that matches fieldId, or null if its not found.
11431
       */
11432
      public static _Fields findByThriftId(int fieldId) {
11433
        switch(fieldId) {
11434
          case 0: // SUCCESS
11435
            return SUCCESS;
11436
          case 1: // CEX
11437
            return CEX;
11438
          default:
11439
            return null;
11440
        }
11441
      }
11442
 
11443
      /**
11444
       * Find the _Fields constant that matches fieldId, throwing an exception
11445
       * if it is not found.
11446
       */
11447
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11448
        _Fields fields = findByThriftId(fieldId);
11449
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11450
        return fields;
11451
      }
11452
 
11453
      /**
11454
       * Find the _Fields constant that matches name, or null if its not found.
11455
       */
11456
      public static _Fields findByName(String name) {
11457
        return byName.get(name);
11458
      }
11459
 
11460
      private final short _thriftId;
11461
      private final String _fieldName;
11462
 
11463
      _Fields(short thriftId, String fieldName) {
11464
        _thriftId = thriftId;
11465
        _fieldName = fieldName;
11466
      }
11467
 
11468
      public short getThriftFieldId() {
11469
        return _thriftId;
11470
      }
11471
 
11472
      public String getFieldName() {
11473
        return _fieldName;
11474
      }
11475
    }
11476
 
11477
    // isset id assignments
11478
 
11479
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11480
    static {
11481
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11482
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11483
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
11484
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
11488
    }
11489
 
11490
    public getWarehouse_result() {
11491
    }
11492
 
11493
    public getWarehouse_result(
11494
      Warehouse success,
11495
      InventoryServiceException cex)
11496
    {
11497
      this();
11498
      this.success = success;
11499
      this.cex = cex;
11500
    }
11501
 
11502
    /**
11503
     * Performs a deep copy on <i>other</i>.
11504
     */
11505
    public getWarehouse_result(getWarehouse_result other) {
11506
      if (other.isSetSuccess()) {
11507
        this.success = new Warehouse(other.success);
11508
      }
11509
      if (other.isSetCex()) {
11510
        this.cex = new InventoryServiceException(other.cex);
11511
      }
11512
    }
11513
 
11514
    public getWarehouse_result deepCopy() {
11515
      return new getWarehouse_result(this);
11516
    }
11517
 
11518
    @Override
11519
    public void clear() {
11520
      this.success = null;
11521
      this.cex = null;
11522
    }
11523
 
11524
    public Warehouse getSuccess() {
11525
      return this.success;
11526
    }
11527
 
11528
    public void setSuccess(Warehouse success) {
11529
      this.success = success;
11530
    }
11531
 
11532
    public void unsetSuccess() {
11533
      this.success = null;
11534
    }
11535
 
11536
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11537
    public boolean isSetSuccess() {
11538
      return this.success != null;
11539
    }
11540
 
11541
    public void setSuccessIsSet(boolean value) {
11542
      if (!value) {
11543
        this.success = null;
11544
      }
11545
    }
11546
 
11547
    public InventoryServiceException getCex() {
11548
      return this.cex;
11549
    }
11550
 
11551
    public void setCex(InventoryServiceException cex) {
11552
      this.cex = cex;
11553
    }
11554
 
11555
    public void unsetCex() {
11556
      this.cex = null;
11557
    }
11558
 
11559
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11560
    public boolean isSetCex() {
11561
      return this.cex != null;
11562
    }
11563
 
11564
    public void setCexIsSet(boolean value) {
11565
      if (!value) {
11566
        this.cex = null;
11567
      }
11568
    }
11569
 
11570
    public void setFieldValue(_Fields field, Object value) {
11571
      switch (field) {
11572
      case SUCCESS:
11573
        if (value == null) {
11574
          unsetSuccess();
11575
        } else {
11576
          setSuccess((Warehouse)value);
11577
        }
11578
        break;
11579
 
11580
      case CEX:
11581
        if (value == null) {
11582
          unsetCex();
11583
        } else {
11584
          setCex((InventoryServiceException)value);
11585
        }
11586
        break;
11587
 
11588
      }
11589
    }
11590
 
11591
    public Object getFieldValue(_Fields field) {
11592
      switch (field) {
11593
      case SUCCESS:
11594
        return getSuccess();
11595
 
11596
      case CEX:
11597
        return getCex();
11598
 
11599
      }
11600
      throw new IllegalStateException();
11601
    }
11602
 
11603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11604
    public boolean isSet(_Fields field) {
11605
      if (field == null) {
11606
        throw new IllegalArgumentException();
11607
      }
11608
 
11609
      switch (field) {
11610
      case SUCCESS:
11611
        return isSetSuccess();
11612
      case CEX:
11613
        return isSetCex();
11614
      }
11615
      throw new IllegalStateException();
11616
    }
11617
 
11618
    @Override
11619
    public boolean equals(Object that) {
11620
      if (that == null)
11621
        return false;
11622
      if (that instanceof getWarehouse_result)
11623
        return this.equals((getWarehouse_result)that);
11624
      return false;
11625
    }
11626
 
11627
    public boolean equals(getWarehouse_result that) {
11628
      if (that == null)
11629
        return false;
11630
 
11631
      boolean this_present_success = true && this.isSetSuccess();
11632
      boolean that_present_success = true && that.isSetSuccess();
11633
      if (this_present_success || that_present_success) {
11634
        if (!(this_present_success && that_present_success))
11635
          return false;
11636
        if (!this.success.equals(that.success))
11637
          return false;
11638
      }
11639
 
11640
      boolean this_present_cex = true && this.isSetCex();
11641
      boolean that_present_cex = true && that.isSetCex();
11642
      if (this_present_cex || that_present_cex) {
11643
        if (!(this_present_cex && that_present_cex))
11644
          return false;
11645
        if (!this.cex.equals(that.cex))
11646
          return false;
11647
      }
11648
 
11649
      return true;
11650
    }
11651
 
11652
    @Override
11653
    public int hashCode() {
11654
      return 0;
11655
    }
11656
 
11657
    public int compareTo(getWarehouse_result other) {
11658
      if (!getClass().equals(other.getClass())) {
11659
        return getClass().getName().compareTo(other.getClass().getName());
11660
      }
11661
 
11662
      int lastComparison = 0;
11663
      getWarehouse_result typedOther = (getWarehouse_result)other;
11664
 
11665
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11666
      if (lastComparison != 0) {
11667
        return lastComparison;
11668
      }
11669
      if (isSetSuccess()) {
11670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11671
        if (lastComparison != 0) {
11672
          return lastComparison;
11673
        }
11674
      }
11675
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11676
      if (lastComparison != 0) {
11677
        return lastComparison;
11678
      }
11679
      if (isSetCex()) {
11680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11681
        if (lastComparison != 0) {
11682
          return lastComparison;
11683
        }
11684
      }
11685
      return 0;
11686
    }
11687
 
11688
    public _Fields fieldForId(int fieldId) {
11689
      return _Fields.findByThriftId(fieldId);
11690
    }
11691
 
11692
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11693
      org.apache.thrift.protocol.TField field;
11694
      iprot.readStructBegin();
11695
      while (true)
11696
      {
11697
        field = iprot.readFieldBegin();
11698
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11699
          break;
11700
        }
11701
        switch (field.id) {
11702
          case 0: // SUCCESS
11703
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11704
              this.success = new Warehouse();
11705
              this.success.read(iprot);
11706
            } else { 
11707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11708
            }
11709
            break;
11710
          case 1: // CEX
11711
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11712
              this.cex = new InventoryServiceException();
11713
              this.cex.read(iprot);
11714
            } else { 
11715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11716
            }
11717
            break;
11718
          default:
11719
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11720
        }
11721
        iprot.readFieldEnd();
11722
      }
11723
      iprot.readStructEnd();
11724
      validate();
11725
    }
11726
 
11727
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11728
      oprot.writeStructBegin(STRUCT_DESC);
11729
 
11730
      if (this.isSetSuccess()) {
11731
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11732
        this.success.write(oprot);
11733
        oprot.writeFieldEnd();
11734
      } else if (this.isSetCex()) {
11735
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11736
        this.cex.write(oprot);
11737
        oprot.writeFieldEnd();
11738
      }
11739
      oprot.writeFieldStop();
11740
      oprot.writeStructEnd();
11741
    }
11742
 
11743
    @Override
11744
    public String toString() {
11745
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
11746
      boolean first = true;
11747
 
11748
      sb.append("success:");
11749
      if (this.success == null) {
11750
        sb.append("null");
11751
      } else {
11752
        sb.append(this.success);
11753
      }
11754
      first = false;
11755
      if (!first) sb.append(", ");
11756
      sb.append("cex:");
11757
      if (this.cex == null) {
11758
        sb.append("null");
11759
      } else {
11760
        sb.append(this.cex);
11761
      }
11762
      first = false;
11763
      sb.append(")");
11764
      return sb.toString();
11765
    }
11766
 
11767
    public void validate() throws org.apache.thrift.TException {
11768
      // check for required fields
11769
    }
11770
 
11771
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11772
      try {
11773
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11774
      } catch (org.apache.thrift.TException te) {
11775
        throw new java.io.IOException(te);
11776
      }
11777
    }
11778
 
11779
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11780
      try {
11781
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11782
      } catch (org.apache.thrift.TException te) {
11783
        throw new java.io.IOException(te);
11784
      }
11785
    }
11786
 
11787
  }
11788
 
11789
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
11791
 
11792
    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);
11793
 
11794
    private long warehouse_id; // required
11795
 
11796
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11797
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11798
      WAREHOUSE_ID((short)1, "warehouse_id");
11799
 
11800
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11801
 
11802
      static {
11803
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11804
          byName.put(field.getFieldName(), field);
11805
        }
11806
      }
11807
 
11808
      /**
11809
       * Find the _Fields constant that matches fieldId, or null if its not found.
11810
       */
11811
      public static _Fields findByThriftId(int fieldId) {
11812
        switch(fieldId) {
11813
          case 1: // WAREHOUSE_ID
11814
            return WAREHOUSE_ID;
11815
          default:
11816
            return null;
11817
        }
11818
      }
11819
 
11820
      /**
11821
       * Find the _Fields constant that matches fieldId, throwing an exception
11822
       * if it is not found.
11823
       */
11824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11825
        _Fields fields = findByThriftId(fieldId);
11826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11827
        return fields;
11828
      }
11829
 
11830
      /**
11831
       * Find the _Fields constant that matches name, or null if its not found.
11832
       */
11833
      public static _Fields findByName(String name) {
11834
        return byName.get(name);
11835
      }
11836
 
11837
      private final short _thriftId;
11838
      private final String _fieldName;
11839
 
11840
      _Fields(short thriftId, String fieldName) {
11841
        _thriftId = thriftId;
11842
        _fieldName = fieldName;
11843
      }
11844
 
11845
      public short getThriftFieldId() {
11846
        return _thriftId;
11847
      }
11848
 
11849
      public String getFieldName() {
11850
        return _fieldName;
11851
      }
11852
    }
11853
 
11854
    // isset id assignments
11855
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11856
    private BitSet __isset_bit_vector = new BitSet(1);
11857
 
11858
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11859
    static {
11860
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11861
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11862
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
11865
    }
11866
 
11867
    public getAllItemsForWarehouse_args() {
11868
    }
11869
 
11870
    public getAllItemsForWarehouse_args(
11871
      long warehouse_id)
11872
    {
11873
      this();
11874
      this.warehouse_id = warehouse_id;
11875
      setWarehouse_idIsSet(true);
11876
    }
11877
 
11878
    /**
11879
     * Performs a deep copy on <i>other</i>.
11880
     */
11881
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
11882
      __isset_bit_vector.clear();
11883
      __isset_bit_vector.or(other.__isset_bit_vector);
11884
      this.warehouse_id = other.warehouse_id;
11885
    }
11886
 
11887
    public getAllItemsForWarehouse_args deepCopy() {
11888
      return new getAllItemsForWarehouse_args(this);
11889
    }
11890
 
11891
    @Override
11892
    public void clear() {
11893
      setWarehouse_idIsSet(false);
11894
      this.warehouse_id = 0;
11895
    }
11896
 
11897
    public long getWarehouse_id() {
11898
      return this.warehouse_id;
11899
    }
11900
 
11901
    public void setWarehouse_id(long warehouse_id) {
11902
      this.warehouse_id = warehouse_id;
11903
      setWarehouse_idIsSet(true);
11904
    }
11905
 
11906
    public void unsetWarehouse_id() {
11907
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11908
    }
11909
 
11910
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11911
    public boolean isSetWarehouse_id() {
11912
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11913
    }
11914
 
11915
    public void setWarehouse_idIsSet(boolean value) {
11916
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11917
    }
11918
 
11919
    public void setFieldValue(_Fields field, Object value) {
11920
      switch (field) {
11921
      case WAREHOUSE_ID:
11922
        if (value == null) {
11923
          unsetWarehouse_id();
11924
        } else {
11925
          setWarehouse_id((Long)value);
11926
        }
11927
        break;
11928
 
11929
      }
11930
    }
11931
 
11932
    public Object getFieldValue(_Fields field) {
11933
      switch (field) {
11934
      case WAREHOUSE_ID:
11935
        return Long.valueOf(getWarehouse_id());
11936
 
11937
      }
11938
      throw new IllegalStateException();
11939
    }
11940
 
11941
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11942
    public boolean isSet(_Fields field) {
11943
      if (field == null) {
11944
        throw new IllegalArgumentException();
11945
      }
11946
 
11947
      switch (field) {
11948
      case WAREHOUSE_ID:
11949
        return isSetWarehouse_id();
11950
      }
11951
      throw new IllegalStateException();
11952
    }
11953
 
11954
    @Override
11955
    public boolean equals(Object that) {
11956
      if (that == null)
11957
        return false;
11958
      if (that instanceof getAllItemsForWarehouse_args)
11959
        return this.equals((getAllItemsForWarehouse_args)that);
11960
      return false;
11961
    }
11962
 
11963
    public boolean equals(getAllItemsForWarehouse_args that) {
11964
      if (that == null)
11965
        return false;
11966
 
11967
      boolean this_present_warehouse_id = true;
11968
      boolean that_present_warehouse_id = true;
11969
      if (this_present_warehouse_id || that_present_warehouse_id) {
11970
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11971
          return false;
11972
        if (this.warehouse_id != that.warehouse_id)
11973
          return false;
11974
      }
11975
 
11976
      return true;
11977
    }
11978
 
11979
    @Override
11980
    public int hashCode() {
11981
      return 0;
11982
    }
11983
 
11984
    public int compareTo(getAllItemsForWarehouse_args other) {
11985
      if (!getClass().equals(other.getClass())) {
11986
        return getClass().getName().compareTo(other.getClass().getName());
11987
      }
11988
 
11989
      int lastComparison = 0;
11990
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
11991
 
11992
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11993
      if (lastComparison != 0) {
11994
        return lastComparison;
11995
      }
11996
      if (isSetWarehouse_id()) {
11997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11998
        if (lastComparison != 0) {
11999
          return lastComparison;
12000
        }
12001
      }
12002
      return 0;
12003
    }
12004
 
12005
    public _Fields fieldForId(int fieldId) {
12006
      return _Fields.findByThriftId(fieldId);
12007
    }
12008
 
12009
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12010
      org.apache.thrift.protocol.TField field;
12011
      iprot.readStructBegin();
12012
      while (true)
12013
      {
12014
        field = iprot.readFieldBegin();
12015
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12016
          break;
12017
        }
12018
        switch (field.id) {
12019
          case 1: // WAREHOUSE_ID
12020
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12021
              this.warehouse_id = iprot.readI64();
12022
              setWarehouse_idIsSet(true);
12023
            } else { 
12024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12025
            }
12026
            break;
12027
          default:
12028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12029
        }
12030
        iprot.readFieldEnd();
12031
      }
12032
      iprot.readStructEnd();
12033
      validate();
12034
    }
12035
 
12036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12037
      validate();
12038
 
12039
      oprot.writeStructBegin(STRUCT_DESC);
12040
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12041
      oprot.writeI64(this.warehouse_id);
12042
      oprot.writeFieldEnd();
12043
      oprot.writeFieldStop();
12044
      oprot.writeStructEnd();
12045
    }
12046
 
12047
    @Override
12048
    public String toString() {
12049
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
12050
      boolean first = true;
12051
 
12052
      sb.append("warehouse_id:");
12053
      sb.append(this.warehouse_id);
12054
      first = false;
12055
      sb.append(")");
12056
      return sb.toString();
12057
    }
12058
 
12059
    public void validate() throws org.apache.thrift.TException {
12060
      // check for required fields
12061
    }
12062
 
12063
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12064
      try {
12065
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12066
      } catch (org.apache.thrift.TException te) {
12067
        throw new java.io.IOException(te);
12068
      }
12069
    }
12070
 
12071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12072
      try {
12073
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12074
        __isset_bit_vector = new BitSet(1);
12075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12076
      } catch (org.apache.thrift.TException te) {
12077
        throw new java.io.IOException(te);
12078
      }
12079
    }
12080
 
12081
  }
12082
 
12083
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12084
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
12085
 
12086
    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);
12087
    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);
12088
 
12089
    private List<Long> success; // required
12090
    private InventoryServiceException cex; // required
12091
 
12092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12094
      SUCCESS((short)0, "success"),
12095
      CEX((short)1, "cex");
12096
 
12097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12098
 
12099
      static {
12100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12101
          byName.put(field.getFieldName(), field);
12102
        }
12103
      }
12104
 
12105
      /**
12106
       * Find the _Fields constant that matches fieldId, or null if its not found.
12107
       */
12108
      public static _Fields findByThriftId(int fieldId) {
12109
        switch(fieldId) {
12110
          case 0: // SUCCESS
12111
            return SUCCESS;
12112
          case 1: // CEX
12113
            return CEX;
12114
          default:
12115
            return null;
12116
        }
12117
      }
12118
 
12119
      /**
12120
       * Find the _Fields constant that matches fieldId, throwing an exception
12121
       * if it is not found.
12122
       */
12123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12124
        _Fields fields = findByThriftId(fieldId);
12125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12126
        return fields;
12127
      }
12128
 
12129
      /**
12130
       * Find the _Fields constant that matches name, or null if its not found.
12131
       */
12132
      public static _Fields findByName(String name) {
12133
        return byName.get(name);
12134
      }
12135
 
12136
      private final short _thriftId;
12137
      private final String _fieldName;
12138
 
12139
      _Fields(short thriftId, String fieldName) {
12140
        _thriftId = thriftId;
12141
        _fieldName = fieldName;
12142
      }
12143
 
12144
      public short getThriftFieldId() {
12145
        return _thriftId;
12146
      }
12147
 
12148
      public String getFieldName() {
12149
        return _fieldName;
12150
      }
12151
    }
12152
 
12153
    // isset id assignments
12154
 
12155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12156
    static {
12157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12158
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12159
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12160
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
12161
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12163
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12164
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
12165
    }
12166
 
12167
    public getAllItemsForWarehouse_result() {
12168
    }
12169
 
12170
    public getAllItemsForWarehouse_result(
12171
      List<Long> success,
12172
      InventoryServiceException cex)
12173
    {
12174
      this();
12175
      this.success = success;
12176
      this.cex = cex;
12177
    }
12178
 
12179
    /**
12180
     * Performs a deep copy on <i>other</i>.
12181
     */
12182
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
12183
      if (other.isSetSuccess()) {
12184
        List<Long> __this__success = new ArrayList<Long>();
12185
        for (Long other_element : other.success) {
12186
          __this__success.add(other_element);
12187
        }
12188
        this.success = __this__success;
12189
      }
12190
      if (other.isSetCex()) {
12191
        this.cex = new InventoryServiceException(other.cex);
12192
      }
12193
    }
12194
 
12195
    public getAllItemsForWarehouse_result deepCopy() {
12196
      return new getAllItemsForWarehouse_result(this);
12197
    }
12198
 
12199
    @Override
12200
    public void clear() {
12201
      this.success = null;
12202
      this.cex = null;
12203
    }
12204
 
12205
    public int getSuccessSize() {
12206
      return (this.success == null) ? 0 : this.success.size();
12207
    }
12208
 
12209
    public java.util.Iterator<Long> getSuccessIterator() {
12210
      return (this.success == null) ? null : this.success.iterator();
12211
    }
12212
 
12213
    public void addToSuccess(long elem) {
12214
      if (this.success == null) {
12215
        this.success = new ArrayList<Long>();
12216
      }
12217
      this.success.add(elem);
12218
    }
12219
 
12220
    public List<Long> getSuccess() {
12221
      return this.success;
12222
    }
12223
 
12224
    public void setSuccess(List<Long> success) {
12225
      this.success = success;
12226
    }
12227
 
12228
    public void unsetSuccess() {
12229
      this.success = null;
12230
    }
12231
 
12232
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12233
    public boolean isSetSuccess() {
12234
      return this.success != null;
12235
    }
12236
 
12237
    public void setSuccessIsSet(boolean value) {
12238
      if (!value) {
12239
        this.success = null;
12240
      }
12241
    }
12242
 
12243
    public InventoryServiceException getCex() {
12244
      return this.cex;
12245
    }
12246
 
12247
    public void setCex(InventoryServiceException cex) {
12248
      this.cex = cex;
12249
    }
12250
 
12251
    public void unsetCex() {
12252
      this.cex = null;
12253
    }
12254
 
12255
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12256
    public boolean isSetCex() {
12257
      return this.cex != null;
12258
    }
12259
 
12260
    public void setCexIsSet(boolean value) {
12261
      if (!value) {
12262
        this.cex = null;
12263
      }
12264
    }
12265
 
12266
    public void setFieldValue(_Fields field, Object value) {
12267
      switch (field) {
12268
      case SUCCESS:
12269
        if (value == null) {
12270
          unsetSuccess();
12271
        } else {
12272
          setSuccess((List<Long>)value);
12273
        }
12274
        break;
12275
 
12276
      case CEX:
12277
        if (value == null) {
12278
          unsetCex();
12279
        } else {
12280
          setCex((InventoryServiceException)value);
12281
        }
12282
        break;
12283
 
12284
      }
12285
    }
12286
 
12287
    public Object getFieldValue(_Fields field) {
12288
      switch (field) {
12289
      case SUCCESS:
12290
        return getSuccess();
12291
 
12292
      case CEX:
12293
        return getCex();
12294
 
12295
      }
12296
      throw new IllegalStateException();
12297
    }
12298
 
12299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12300
    public boolean isSet(_Fields field) {
12301
      if (field == null) {
12302
        throw new IllegalArgumentException();
12303
      }
12304
 
12305
      switch (field) {
12306
      case SUCCESS:
12307
        return isSetSuccess();
12308
      case CEX:
12309
        return isSetCex();
12310
      }
12311
      throw new IllegalStateException();
12312
    }
12313
 
12314
    @Override
12315
    public boolean equals(Object that) {
12316
      if (that == null)
12317
        return false;
12318
      if (that instanceof getAllItemsForWarehouse_result)
12319
        return this.equals((getAllItemsForWarehouse_result)that);
12320
      return false;
12321
    }
12322
 
12323
    public boolean equals(getAllItemsForWarehouse_result that) {
12324
      if (that == null)
12325
        return false;
12326
 
12327
      boolean this_present_success = true && this.isSetSuccess();
12328
      boolean that_present_success = true && that.isSetSuccess();
12329
      if (this_present_success || that_present_success) {
12330
        if (!(this_present_success && that_present_success))
12331
          return false;
12332
        if (!this.success.equals(that.success))
12333
          return false;
12334
      }
12335
 
12336
      boolean this_present_cex = true && this.isSetCex();
12337
      boolean that_present_cex = true && that.isSetCex();
12338
      if (this_present_cex || that_present_cex) {
12339
        if (!(this_present_cex && that_present_cex))
12340
          return false;
12341
        if (!this.cex.equals(that.cex))
12342
          return false;
12343
      }
12344
 
12345
      return true;
12346
    }
12347
 
12348
    @Override
12349
    public int hashCode() {
12350
      return 0;
12351
    }
12352
 
12353
    public int compareTo(getAllItemsForWarehouse_result other) {
12354
      if (!getClass().equals(other.getClass())) {
12355
        return getClass().getName().compareTo(other.getClass().getName());
12356
      }
12357
 
12358
      int lastComparison = 0;
12359
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
12360
 
12361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12362
      if (lastComparison != 0) {
12363
        return lastComparison;
12364
      }
12365
      if (isSetSuccess()) {
12366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12367
        if (lastComparison != 0) {
12368
          return lastComparison;
12369
        }
12370
      }
12371
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12372
      if (lastComparison != 0) {
12373
        return lastComparison;
12374
      }
12375
      if (isSetCex()) {
12376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12377
        if (lastComparison != 0) {
12378
          return lastComparison;
12379
        }
12380
      }
12381
      return 0;
12382
    }
12383
 
12384
    public _Fields fieldForId(int fieldId) {
12385
      return _Fields.findByThriftId(fieldId);
12386
    }
12387
 
12388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12389
      org.apache.thrift.protocol.TField field;
12390
      iprot.readStructBegin();
12391
      while (true)
12392
      {
12393
        field = iprot.readFieldBegin();
12394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12395
          break;
12396
        }
12397
        switch (field.id) {
12398
          case 0: // SUCCESS
12399
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12400
              {
12401
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
12402
                this.success = new ArrayList<Long>(_list28.size);
12403
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
12404
                {
12405
                  long _elem30; // required
12406
                  _elem30 = iprot.readI64();
12407
                  this.success.add(_elem30);
12408
                }
12409
                iprot.readListEnd();
12410
              }
12411
            } else { 
12412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12413
            }
12414
            break;
12415
          case 1: // CEX
12416
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12417
              this.cex = new InventoryServiceException();
12418
              this.cex.read(iprot);
12419
            } else { 
12420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12421
            }
12422
            break;
12423
          default:
12424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12425
        }
12426
        iprot.readFieldEnd();
12427
      }
12428
      iprot.readStructEnd();
12429
      validate();
12430
    }
12431
 
12432
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12433
      oprot.writeStructBegin(STRUCT_DESC);
12434
 
12435
      if (this.isSetSuccess()) {
12436
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12437
        {
12438
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
12439
          for (long _iter31 : this.success)
12440
          {
12441
            oprot.writeI64(_iter31);
12442
          }
12443
          oprot.writeListEnd();
12444
        }
12445
        oprot.writeFieldEnd();
12446
      } else if (this.isSetCex()) {
12447
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12448
        this.cex.write(oprot);
12449
        oprot.writeFieldEnd();
12450
      }
12451
      oprot.writeFieldStop();
12452
      oprot.writeStructEnd();
12453
    }
12454
 
12455
    @Override
12456
    public String toString() {
12457
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
12458
      boolean first = true;
12459
 
12460
      sb.append("success:");
12461
      if (this.success == null) {
12462
        sb.append("null");
12463
      } else {
12464
        sb.append(this.success);
12465
      }
12466
      first = false;
12467
      if (!first) sb.append(", ");
12468
      sb.append("cex:");
12469
      if (this.cex == null) {
12470
        sb.append("null");
12471
      } else {
12472
        sb.append(this.cex);
12473
      }
12474
      first = false;
12475
      sb.append(")");
12476
      return sb.toString();
12477
    }
12478
 
12479
    public void validate() throws org.apache.thrift.TException {
12480
      // check for required fields
12481
    }
12482
 
12483
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12484
      try {
12485
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12486
      } catch (org.apache.thrift.TException te) {
12487
        throw new java.io.IOException(te);
12488
      }
12489
    }
12490
 
12491
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12492
      try {
12493
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12494
      } catch (org.apache.thrift.TException te) {
12495
        throw new java.io.IOException(te);
12496
      }
12497
    }
12498
 
12499
  }
12500
 
5967 rajveer 12501
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
12502
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
12503
 
12504
    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);
12505
    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);
12506
    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);
12507
    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);
12508
 
12509
    private long itemId; // required
12510
    private long warehouseId; // required
12511
    private long sourceId; // required
12512
    private long orderId; // required
12513
 
12514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12516
      ITEM_ID((short)1, "itemId"),
12517
      WAREHOUSE_ID((short)2, "warehouseId"),
12518
      SOURCE_ID((short)3, "sourceId"),
12519
      ORDER_ID((short)4, "orderId");
12520
 
12521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12522
 
12523
      static {
12524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12525
          byName.put(field.getFieldName(), field);
12526
        }
12527
      }
12528
 
12529
      /**
12530
       * Find the _Fields constant that matches fieldId, or null if its not found.
12531
       */
12532
      public static _Fields findByThriftId(int fieldId) {
12533
        switch(fieldId) {
12534
          case 1: // ITEM_ID
12535
            return ITEM_ID;
12536
          case 2: // WAREHOUSE_ID
12537
            return WAREHOUSE_ID;
12538
          case 3: // SOURCE_ID
12539
            return SOURCE_ID;
12540
          case 4: // ORDER_ID
12541
            return ORDER_ID;
12542
          default:
12543
            return null;
12544
        }
12545
      }
12546
 
12547
      /**
12548
       * Find the _Fields constant that matches fieldId, throwing an exception
12549
       * if it is not found.
12550
       */
12551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12552
        _Fields fields = findByThriftId(fieldId);
12553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12554
        return fields;
12555
      }
12556
 
12557
      /**
12558
       * Find the _Fields constant that matches name, or null if its not found.
12559
       */
12560
      public static _Fields findByName(String name) {
12561
        return byName.get(name);
12562
      }
12563
 
12564
      private final short _thriftId;
12565
      private final String _fieldName;
12566
 
12567
      _Fields(short thriftId, String fieldName) {
12568
        _thriftId = thriftId;
12569
        _fieldName = fieldName;
12570
      }
12571
 
12572
      public short getThriftFieldId() {
12573
        return _thriftId;
12574
      }
12575
 
12576
      public String getFieldName() {
12577
        return _fieldName;
12578
      }
12579
    }
12580
 
12581
    // isset id assignments
12582
    private static final int __ITEMID_ISSET_ID = 0;
12583
    private static final int __WAREHOUSEID_ISSET_ID = 1;
12584
    private static final int __SOURCEID_ISSET_ID = 2;
12585
    private static final int __ORDERID_ISSET_ID = 3;
12586
    private BitSet __isset_bit_vector = new BitSet(4);
12587
 
12588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12589
    static {
12590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12591
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12593
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12595
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12597
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
12601
    }
12602
 
12603
    public isOrderBillable_args() {
12604
    }
12605
 
12606
    public isOrderBillable_args(
12607
      long itemId,
12608
      long warehouseId,
12609
      long sourceId,
12610
      long orderId)
12611
    {
12612
      this();
12613
      this.itemId = itemId;
12614
      setItemIdIsSet(true);
12615
      this.warehouseId = warehouseId;
12616
      setWarehouseIdIsSet(true);
12617
      this.sourceId = sourceId;
12618
      setSourceIdIsSet(true);
12619
      this.orderId = orderId;
12620
      setOrderIdIsSet(true);
12621
    }
12622
 
12623
    /**
12624
     * Performs a deep copy on <i>other</i>.
12625
     */
12626
    public isOrderBillable_args(isOrderBillable_args other) {
12627
      __isset_bit_vector.clear();
12628
      __isset_bit_vector.or(other.__isset_bit_vector);
12629
      this.itemId = other.itemId;
12630
      this.warehouseId = other.warehouseId;
12631
      this.sourceId = other.sourceId;
12632
      this.orderId = other.orderId;
12633
    }
12634
 
12635
    public isOrderBillable_args deepCopy() {
12636
      return new isOrderBillable_args(this);
12637
    }
12638
 
12639
    @Override
12640
    public void clear() {
12641
      setItemIdIsSet(false);
12642
      this.itemId = 0;
12643
      setWarehouseIdIsSet(false);
12644
      this.warehouseId = 0;
12645
      setSourceIdIsSet(false);
12646
      this.sourceId = 0;
12647
      setOrderIdIsSet(false);
12648
      this.orderId = 0;
12649
    }
12650
 
12651
    public long getItemId() {
12652
      return this.itemId;
12653
    }
12654
 
12655
    public void setItemId(long itemId) {
12656
      this.itemId = itemId;
12657
      setItemIdIsSet(true);
12658
    }
12659
 
12660
    public void unsetItemId() {
12661
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12662
    }
12663
 
12664
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12665
    public boolean isSetItemId() {
12666
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12667
    }
12668
 
12669
    public void setItemIdIsSet(boolean value) {
12670
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12671
    }
12672
 
12673
    public long getWarehouseId() {
12674
      return this.warehouseId;
12675
    }
12676
 
12677
    public void setWarehouseId(long warehouseId) {
12678
      this.warehouseId = warehouseId;
12679
      setWarehouseIdIsSet(true);
12680
    }
12681
 
12682
    public void unsetWarehouseId() {
12683
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12684
    }
12685
 
12686
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
12687
    public boolean isSetWarehouseId() {
12688
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12689
    }
12690
 
12691
    public void setWarehouseIdIsSet(boolean value) {
12692
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12693
    }
12694
 
12695
    public long getSourceId() {
12696
      return this.sourceId;
12697
    }
12698
 
12699
    public void setSourceId(long sourceId) {
12700
      this.sourceId = sourceId;
12701
      setSourceIdIsSet(true);
12702
    }
12703
 
12704
    public void unsetSourceId() {
12705
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12706
    }
12707
 
12708
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12709
    public boolean isSetSourceId() {
12710
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12711
    }
12712
 
12713
    public void setSourceIdIsSet(boolean value) {
12714
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12715
    }
12716
 
12717
    public long getOrderId() {
12718
      return this.orderId;
12719
    }
12720
 
12721
    public void setOrderId(long orderId) {
12722
      this.orderId = orderId;
12723
      setOrderIdIsSet(true);
12724
    }
12725
 
12726
    public void unsetOrderId() {
12727
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
12728
    }
12729
 
12730
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
12731
    public boolean isSetOrderId() {
12732
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
12733
    }
12734
 
12735
    public void setOrderIdIsSet(boolean value) {
12736
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
12737
    }
12738
 
12739
    public void setFieldValue(_Fields field, Object value) {
12740
      switch (field) {
12741
      case ITEM_ID:
12742
        if (value == null) {
12743
          unsetItemId();
12744
        } else {
12745
          setItemId((Long)value);
12746
        }
12747
        break;
12748
 
12749
      case WAREHOUSE_ID:
12750
        if (value == null) {
12751
          unsetWarehouseId();
12752
        } else {
12753
          setWarehouseId((Long)value);
12754
        }
12755
        break;
12756
 
12757
      case SOURCE_ID:
12758
        if (value == null) {
12759
          unsetSourceId();
12760
        } else {
12761
          setSourceId((Long)value);
12762
        }
12763
        break;
12764
 
12765
      case ORDER_ID:
12766
        if (value == null) {
12767
          unsetOrderId();
12768
        } else {
12769
          setOrderId((Long)value);
12770
        }
12771
        break;
12772
 
12773
      }
12774
    }
12775
 
12776
    public Object getFieldValue(_Fields field) {
12777
      switch (field) {
12778
      case ITEM_ID:
12779
        return Long.valueOf(getItemId());
12780
 
12781
      case WAREHOUSE_ID:
12782
        return Long.valueOf(getWarehouseId());
12783
 
12784
      case SOURCE_ID:
12785
        return Long.valueOf(getSourceId());
12786
 
12787
      case ORDER_ID:
12788
        return Long.valueOf(getOrderId());
12789
 
12790
      }
12791
      throw new IllegalStateException();
12792
    }
12793
 
12794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12795
    public boolean isSet(_Fields field) {
12796
      if (field == null) {
12797
        throw new IllegalArgumentException();
12798
      }
12799
 
12800
      switch (field) {
12801
      case ITEM_ID:
12802
        return isSetItemId();
12803
      case WAREHOUSE_ID:
12804
        return isSetWarehouseId();
12805
      case SOURCE_ID:
12806
        return isSetSourceId();
12807
      case ORDER_ID:
12808
        return isSetOrderId();
12809
      }
12810
      throw new IllegalStateException();
12811
    }
12812
 
12813
    @Override
12814
    public boolean equals(Object that) {
12815
      if (that == null)
12816
        return false;
12817
      if (that instanceof isOrderBillable_args)
12818
        return this.equals((isOrderBillable_args)that);
12819
      return false;
12820
    }
12821
 
12822
    public boolean equals(isOrderBillable_args that) {
12823
      if (that == null)
12824
        return false;
12825
 
12826
      boolean this_present_itemId = true;
12827
      boolean that_present_itemId = true;
12828
      if (this_present_itemId || that_present_itemId) {
12829
        if (!(this_present_itemId && that_present_itemId))
12830
          return false;
12831
        if (this.itemId != that.itemId)
12832
          return false;
12833
      }
12834
 
12835
      boolean this_present_warehouseId = true;
12836
      boolean that_present_warehouseId = true;
12837
      if (this_present_warehouseId || that_present_warehouseId) {
12838
        if (!(this_present_warehouseId && that_present_warehouseId))
12839
          return false;
12840
        if (this.warehouseId != that.warehouseId)
12841
          return false;
12842
      }
12843
 
12844
      boolean this_present_sourceId = true;
12845
      boolean that_present_sourceId = true;
12846
      if (this_present_sourceId || that_present_sourceId) {
12847
        if (!(this_present_sourceId && that_present_sourceId))
12848
          return false;
12849
        if (this.sourceId != that.sourceId)
12850
          return false;
12851
      }
12852
 
12853
      boolean this_present_orderId = true;
12854
      boolean that_present_orderId = true;
12855
      if (this_present_orderId || that_present_orderId) {
12856
        if (!(this_present_orderId && that_present_orderId))
12857
          return false;
12858
        if (this.orderId != that.orderId)
12859
          return false;
12860
      }
12861
 
12862
      return true;
12863
    }
12864
 
12865
    @Override
12866
    public int hashCode() {
12867
      return 0;
12868
    }
12869
 
12870
    public int compareTo(isOrderBillable_args other) {
12871
      if (!getClass().equals(other.getClass())) {
12872
        return getClass().getName().compareTo(other.getClass().getName());
12873
      }
12874
 
12875
      int lastComparison = 0;
12876
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
12877
 
12878
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12879
      if (lastComparison != 0) {
12880
        return lastComparison;
12881
      }
12882
      if (isSetItemId()) {
12883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12884
        if (lastComparison != 0) {
12885
          return lastComparison;
12886
        }
12887
      }
12888
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
12889
      if (lastComparison != 0) {
12890
        return lastComparison;
12891
      }
12892
      if (isSetWarehouseId()) {
12893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
12894
        if (lastComparison != 0) {
12895
          return lastComparison;
12896
        }
12897
      }
12898
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12899
      if (lastComparison != 0) {
12900
        return lastComparison;
12901
      }
12902
      if (isSetSourceId()) {
12903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12904
        if (lastComparison != 0) {
12905
          return lastComparison;
12906
        }
12907
      }
12908
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
12909
      if (lastComparison != 0) {
12910
        return lastComparison;
12911
      }
12912
      if (isSetOrderId()) {
12913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
12914
        if (lastComparison != 0) {
12915
          return lastComparison;
12916
        }
12917
      }
12918
      return 0;
12919
    }
12920
 
12921
    public _Fields fieldForId(int fieldId) {
12922
      return _Fields.findByThriftId(fieldId);
12923
    }
12924
 
12925
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12926
      org.apache.thrift.protocol.TField field;
12927
      iprot.readStructBegin();
12928
      while (true)
12929
      {
12930
        field = iprot.readFieldBegin();
12931
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12932
          break;
12933
        }
12934
        switch (field.id) {
12935
          case 1: // ITEM_ID
12936
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12937
              this.itemId = iprot.readI64();
12938
              setItemIdIsSet(true);
12939
            } else { 
12940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12941
            }
12942
            break;
12943
          case 2: // WAREHOUSE_ID
12944
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12945
              this.warehouseId = iprot.readI64();
12946
              setWarehouseIdIsSet(true);
12947
            } else { 
12948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12949
            }
12950
            break;
12951
          case 3: // SOURCE_ID
12952
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12953
              this.sourceId = iprot.readI64();
12954
              setSourceIdIsSet(true);
12955
            } else { 
12956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12957
            }
12958
            break;
12959
          case 4: // ORDER_ID
12960
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12961
              this.orderId = iprot.readI64();
12962
              setOrderIdIsSet(true);
12963
            } else { 
12964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12965
            }
12966
            break;
12967
          default:
12968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12969
        }
12970
        iprot.readFieldEnd();
12971
      }
12972
      iprot.readStructEnd();
12973
      validate();
12974
    }
12975
 
12976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12977
      validate();
12978
 
12979
      oprot.writeStructBegin(STRUCT_DESC);
12980
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12981
      oprot.writeI64(this.itemId);
12982
      oprot.writeFieldEnd();
12983
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12984
      oprot.writeI64(this.warehouseId);
12985
      oprot.writeFieldEnd();
12986
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12987
      oprot.writeI64(this.sourceId);
12988
      oprot.writeFieldEnd();
12989
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
12990
      oprot.writeI64(this.orderId);
12991
      oprot.writeFieldEnd();
12992
      oprot.writeFieldStop();
12993
      oprot.writeStructEnd();
12994
    }
12995
 
12996
    @Override
12997
    public String toString() {
12998
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
12999
      boolean first = true;
13000
 
13001
      sb.append("itemId:");
13002
      sb.append(this.itemId);
13003
      first = false;
13004
      if (!first) sb.append(", ");
13005
      sb.append("warehouseId:");
13006
      sb.append(this.warehouseId);
13007
      first = false;
13008
      if (!first) sb.append(", ");
13009
      sb.append("sourceId:");
13010
      sb.append(this.sourceId);
13011
      first = false;
13012
      if (!first) sb.append(", ");
13013
      sb.append("orderId:");
13014
      sb.append(this.orderId);
13015
      first = false;
13016
      sb.append(")");
13017
      return sb.toString();
13018
    }
13019
 
13020
    public void validate() throws org.apache.thrift.TException {
13021
      // check for required fields
13022
    }
13023
 
13024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13025
      try {
13026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13027
      } catch (org.apache.thrift.TException te) {
13028
        throw new java.io.IOException(te);
13029
      }
13030
    }
13031
 
13032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13033
      try {
13034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13035
      } catch (org.apache.thrift.TException te) {
13036
        throw new java.io.IOException(te);
13037
      }
13038
    }
13039
 
13040
  }
13041
 
13042
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
13043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
13044
 
13045
    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);
13046
 
13047
    private boolean success; // required
13048
 
13049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13051
      SUCCESS((short)0, "success");
13052
 
13053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13054
 
13055
      static {
13056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13057
          byName.put(field.getFieldName(), field);
13058
        }
13059
      }
13060
 
13061
      /**
13062
       * Find the _Fields constant that matches fieldId, or null if its not found.
13063
       */
13064
      public static _Fields findByThriftId(int fieldId) {
13065
        switch(fieldId) {
13066
          case 0: // SUCCESS
13067
            return SUCCESS;
13068
          default:
13069
            return null;
13070
        }
13071
      }
13072
 
13073
      /**
13074
       * Find the _Fields constant that matches fieldId, throwing an exception
13075
       * if it is not found.
13076
       */
13077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13078
        _Fields fields = findByThriftId(fieldId);
13079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13080
        return fields;
13081
      }
13082
 
13083
      /**
13084
       * Find the _Fields constant that matches name, or null if its not found.
13085
       */
13086
      public static _Fields findByName(String name) {
13087
        return byName.get(name);
13088
      }
13089
 
13090
      private final short _thriftId;
13091
      private final String _fieldName;
13092
 
13093
      _Fields(short thriftId, String fieldName) {
13094
        _thriftId = thriftId;
13095
        _fieldName = fieldName;
13096
      }
13097
 
13098
      public short getThriftFieldId() {
13099
        return _thriftId;
13100
      }
13101
 
13102
      public String getFieldName() {
13103
        return _fieldName;
13104
      }
13105
    }
13106
 
13107
    // isset id assignments
13108
    private static final int __SUCCESS_ISSET_ID = 0;
13109
    private BitSet __isset_bit_vector = new BitSet(1);
13110
 
13111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13112
    static {
13113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13114
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
13118
    }
13119
 
13120
    public isOrderBillable_result() {
13121
    }
13122
 
13123
    public isOrderBillable_result(
13124
      boolean success)
13125
    {
13126
      this();
13127
      this.success = success;
13128
      setSuccessIsSet(true);
13129
    }
13130
 
13131
    /**
13132
     * Performs a deep copy on <i>other</i>.
13133
     */
13134
    public isOrderBillable_result(isOrderBillable_result other) {
13135
      __isset_bit_vector.clear();
13136
      __isset_bit_vector.or(other.__isset_bit_vector);
13137
      this.success = other.success;
13138
    }
13139
 
13140
    public isOrderBillable_result deepCopy() {
13141
      return new isOrderBillable_result(this);
13142
    }
13143
 
13144
    @Override
13145
    public void clear() {
13146
      setSuccessIsSet(false);
13147
      this.success = false;
13148
    }
13149
 
13150
    public boolean isSuccess() {
13151
      return this.success;
13152
    }
13153
 
13154
    public void setSuccess(boolean success) {
13155
      this.success = success;
13156
      setSuccessIsSet(true);
13157
    }
13158
 
13159
    public void unsetSuccess() {
13160
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13161
    }
13162
 
13163
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13164
    public boolean isSetSuccess() {
13165
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13166
    }
13167
 
13168
    public void setSuccessIsSet(boolean value) {
13169
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13170
    }
13171
 
13172
    public void setFieldValue(_Fields field, Object value) {
13173
      switch (field) {
13174
      case SUCCESS:
13175
        if (value == null) {
13176
          unsetSuccess();
13177
        } else {
13178
          setSuccess((Boolean)value);
13179
        }
13180
        break;
13181
 
13182
      }
13183
    }
13184
 
13185
    public Object getFieldValue(_Fields field) {
13186
      switch (field) {
13187
      case SUCCESS:
13188
        return Boolean.valueOf(isSuccess());
13189
 
13190
      }
13191
      throw new IllegalStateException();
13192
    }
13193
 
13194
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13195
    public boolean isSet(_Fields field) {
13196
      if (field == null) {
13197
        throw new IllegalArgumentException();
13198
      }
13199
 
13200
      switch (field) {
13201
      case SUCCESS:
13202
        return isSetSuccess();
13203
      }
13204
      throw new IllegalStateException();
13205
    }
13206
 
13207
    @Override
13208
    public boolean equals(Object that) {
13209
      if (that == null)
13210
        return false;
13211
      if (that instanceof isOrderBillable_result)
13212
        return this.equals((isOrderBillable_result)that);
13213
      return false;
13214
    }
13215
 
13216
    public boolean equals(isOrderBillable_result that) {
13217
      if (that == null)
13218
        return false;
13219
 
13220
      boolean this_present_success = true;
13221
      boolean that_present_success = true;
13222
      if (this_present_success || that_present_success) {
13223
        if (!(this_present_success && that_present_success))
13224
          return false;
13225
        if (this.success != that.success)
13226
          return false;
13227
      }
13228
 
13229
      return true;
13230
    }
13231
 
13232
    @Override
13233
    public int hashCode() {
13234
      return 0;
13235
    }
13236
 
13237
    public int compareTo(isOrderBillable_result other) {
13238
      if (!getClass().equals(other.getClass())) {
13239
        return getClass().getName().compareTo(other.getClass().getName());
13240
      }
13241
 
13242
      int lastComparison = 0;
13243
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
13244
 
13245
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13246
      if (lastComparison != 0) {
13247
        return lastComparison;
13248
      }
13249
      if (isSetSuccess()) {
13250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13251
        if (lastComparison != 0) {
13252
          return lastComparison;
13253
        }
13254
      }
13255
      return 0;
13256
    }
13257
 
13258
    public _Fields fieldForId(int fieldId) {
13259
      return _Fields.findByThriftId(fieldId);
13260
    }
13261
 
13262
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13263
      org.apache.thrift.protocol.TField field;
13264
      iprot.readStructBegin();
13265
      while (true)
13266
      {
13267
        field = iprot.readFieldBegin();
13268
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13269
          break;
13270
        }
13271
        switch (field.id) {
13272
          case 0: // SUCCESS
13273
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13274
              this.success = iprot.readBool();
13275
              setSuccessIsSet(true);
13276
            } else { 
13277
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13278
            }
13279
            break;
13280
          default:
13281
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13282
        }
13283
        iprot.readFieldEnd();
13284
      }
13285
      iprot.readStructEnd();
13286
      validate();
13287
    }
13288
 
13289
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13290
      oprot.writeStructBegin(STRUCT_DESC);
13291
 
13292
      if (this.isSetSuccess()) {
13293
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13294
        oprot.writeBool(this.success);
13295
        oprot.writeFieldEnd();
13296
      }
13297
      oprot.writeFieldStop();
13298
      oprot.writeStructEnd();
13299
    }
13300
 
13301
    @Override
13302
    public String toString() {
13303
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
13304
      boolean first = true;
13305
 
13306
      sb.append("success:");
13307
      sb.append(this.success);
13308
      first = false;
13309
      sb.append(")");
13310
      return sb.toString();
13311
    }
13312
 
13313
    public void validate() throws org.apache.thrift.TException {
13314
      // check for required fields
13315
    }
13316
 
13317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13318
      try {
13319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13320
      } catch (org.apache.thrift.TException te) {
13321
        throw new java.io.IOException(te);
13322
      }
13323
    }
13324
 
13325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13326
      try {
13327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13328
      } catch (org.apache.thrift.TException te) {
13329
        throw new java.io.IOException(te);
13330
      }
13331
    }
13332
 
13333
  }
13334
 
5945 mandeep.dh 13335
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
13336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
13337
 
13338
    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);
13339
    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 13340
    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);
13341
    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);
13342
    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);
13343
    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);
13344
    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 13345
 
13346
    private long itemId; // required
13347
    private long warehouseId; // required
5967 rajveer 13348
    private long sourceId; // required
13349
    private long orderId; // required
13350
    private long createdTimestamp; // required
13351
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 13352
    private double quantity; // required
13353
 
13354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13356
      ITEM_ID((short)1, "itemId"),
13357
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 13358
      SOURCE_ID((short)3, "sourceId"),
13359
      ORDER_ID((short)4, "orderId"),
13360
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
13361
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
13362
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 13363
 
13364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13365
 
13366
      static {
13367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13368
          byName.put(field.getFieldName(), field);
13369
        }
13370
      }
13371
 
13372
      /**
13373
       * Find the _Fields constant that matches fieldId, or null if its not found.
13374
       */
13375
      public static _Fields findByThriftId(int fieldId) {
13376
        switch(fieldId) {
13377
          case 1: // ITEM_ID
13378
            return ITEM_ID;
13379
          case 2: // WAREHOUSE_ID
13380
            return WAREHOUSE_ID;
5967 rajveer 13381
          case 3: // SOURCE_ID
13382
            return SOURCE_ID;
13383
          case 4: // ORDER_ID
13384
            return ORDER_ID;
13385
          case 5: // CREATED_TIMESTAMP
13386
            return CREATED_TIMESTAMP;
13387
          case 6: // PROMISED_SHIPPING_TIMESTAMP
13388
            return PROMISED_SHIPPING_TIMESTAMP;
13389
          case 7: // QUANTITY
5945 mandeep.dh 13390
            return QUANTITY;
13391
          default:
13392
            return null;
13393
        }
13394
      }
13395
 
13396
      /**
13397
       * Find the _Fields constant that matches fieldId, throwing an exception
13398
       * if it is not found.
13399
       */
13400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13401
        _Fields fields = findByThriftId(fieldId);
13402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13403
        return fields;
13404
      }
13405
 
13406
      /**
13407
       * Find the _Fields constant that matches name, or null if its not found.
13408
       */
13409
      public static _Fields findByName(String name) {
13410
        return byName.get(name);
13411
      }
13412
 
13413
      private final short _thriftId;
13414
      private final String _fieldName;
13415
 
13416
      _Fields(short thriftId, String fieldName) {
13417
        _thriftId = thriftId;
13418
        _fieldName = fieldName;
13419
      }
13420
 
13421
      public short getThriftFieldId() {
13422
        return _thriftId;
13423
      }
13424
 
13425
      public String getFieldName() {
13426
        return _fieldName;
13427
      }
13428
    }
13429
 
13430
    // isset id assignments
13431
    private static final int __ITEMID_ISSET_ID = 0;
13432
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 13433
    private static final int __SOURCEID_ISSET_ID = 2;
13434
    private static final int __ORDERID_ISSET_ID = 3;
13435
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
13436
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
13437
    private static final int __QUANTITY_ISSET_ID = 6;
13438
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 13439
 
13440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13441
    static {
13442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13443
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13445
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 13447
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13449
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13451
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13453
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 13455
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
13457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
13459
    }
13460
 
13461
    public reserveItemInWarehouse_args() {
13462
    }
13463
 
13464
    public reserveItemInWarehouse_args(
13465
      long itemId,
13466
      long warehouseId,
5967 rajveer 13467
      long sourceId,
13468
      long orderId,
13469
      long createdTimestamp,
13470
      long promisedShippingTimestamp,
5945 mandeep.dh 13471
      double quantity)
13472
    {
13473
      this();
13474
      this.itemId = itemId;
13475
      setItemIdIsSet(true);
13476
      this.warehouseId = warehouseId;
13477
      setWarehouseIdIsSet(true);
5967 rajveer 13478
      this.sourceId = sourceId;
13479
      setSourceIdIsSet(true);
13480
      this.orderId = orderId;
13481
      setOrderIdIsSet(true);
13482
      this.createdTimestamp = createdTimestamp;
13483
      setCreatedTimestampIsSet(true);
13484
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13485
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 13486
      this.quantity = quantity;
13487
      setQuantityIsSet(true);
13488
    }
13489
 
13490
    /**
13491
     * Performs a deep copy on <i>other</i>.
13492
     */
13493
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
13494
      __isset_bit_vector.clear();
13495
      __isset_bit_vector.or(other.__isset_bit_vector);
13496
      this.itemId = other.itemId;
13497
      this.warehouseId = other.warehouseId;
5967 rajveer 13498
      this.sourceId = other.sourceId;
13499
      this.orderId = other.orderId;
13500
      this.createdTimestamp = other.createdTimestamp;
13501
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 13502
      this.quantity = other.quantity;
13503
    }
13504
 
13505
    public reserveItemInWarehouse_args deepCopy() {
13506
      return new reserveItemInWarehouse_args(this);
13507
    }
13508
 
13509
    @Override
13510
    public void clear() {
13511
      setItemIdIsSet(false);
13512
      this.itemId = 0;
13513
      setWarehouseIdIsSet(false);
13514
      this.warehouseId = 0;
5967 rajveer 13515
      setSourceIdIsSet(false);
13516
      this.sourceId = 0;
13517
      setOrderIdIsSet(false);
13518
      this.orderId = 0;
13519
      setCreatedTimestampIsSet(false);
13520
      this.createdTimestamp = 0;
13521
      setPromisedShippingTimestampIsSet(false);
13522
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 13523
      setQuantityIsSet(false);
13524
      this.quantity = 0.0;
13525
    }
13526
 
13527
    public long getItemId() {
13528
      return this.itemId;
13529
    }
13530
 
13531
    public void setItemId(long itemId) {
13532
      this.itemId = itemId;
13533
      setItemIdIsSet(true);
13534
    }
13535
 
13536
    public void unsetItemId() {
13537
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13538
    }
13539
 
13540
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13541
    public boolean isSetItemId() {
13542
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13543
    }
13544
 
13545
    public void setItemIdIsSet(boolean value) {
13546
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13547
    }
13548
 
13549
    public long getWarehouseId() {
13550
      return this.warehouseId;
13551
    }
13552
 
13553
    public void setWarehouseId(long warehouseId) {
13554
      this.warehouseId = warehouseId;
13555
      setWarehouseIdIsSet(true);
13556
    }
13557
 
13558
    public void unsetWarehouseId() {
13559
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13560
    }
13561
 
13562
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13563
    public boolean isSetWarehouseId() {
13564
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13565
    }
13566
 
13567
    public void setWarehouseIdIsSet(boolean value) {
13568
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13569
    }
13570
 
5967 rajveer 13571
    public long getSourceId() {
13572
      return this.sourceId;
13573
    }
13574
 
13575
    public void setSourceId(long sourceId) {
13576
      this.sourceId = sourceId;
13577
      setSourceIdIsSet(true);
13578
    }
13579
 
13580
    public void unsetSourceId() {
13581
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13582
    }
13583
 
13584
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13585
    public boolean isSetSourceId() {
13586
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13587
    }
13588
 
13589
    public void setSourceIdIsSet(boolean value) {
13590
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13591
    }
13592
 
13593
    public long getOrderId() {
13594
      return this.orderId;
13595
    }
13596
 
13597
    public void setOrderId(long orderId) {
13598
      this.orderId = orderId;
13599
      setOrderIdIsSet(true);
13600
    }
13601
 
13602
    public void unsetOrderId() {
13603
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13604
    }
13605
 
13606
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13607
    public boolean isSetOrderId() {
13608
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13609
    }
13610
 
13611
    public void setOrderIdIsSet(boolean value) {
13612
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13613
    }
13614
 
13615
    public long getCreatedTimestamp() {
13616
      return this.createdTimestamp;
13617
    }
13618
 
13619
    public void setCreatedTimestamp(long createdTimestamp) {
13620
      this.createdTimestamp = createdTimestamp;
13621
      setCreatedTimestampIsSet(true);
13622
    }
13623
 
13624
    public void unsetCreatedTimestamp() {
13625
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
13626
    }
13627
 
13628
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
13629
    public boolean isSetCreatedTimestamp() {
13630
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
13631
    }
13632
 
13633
    public void setCreatedTimestampIsSet(boolean value) {
13634
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
13635
    }
13636
 
13637
    public long getPromisedShippingTimestamp() {
13638
      return this.promisedShippingTimestamp;
13639
    }
13640
 
13641
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
13642
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13643
      setPromisedShippingTimestampIsSet(true);
13644
    }
13645
 
13646
    public void unsetPromisedShippingTimestamp() {
13647
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13648
    }
13649
 
13650
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
13651
    public boolean isSetPromisedShippingTimestamp() {
13652
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13653
    }
13654
 
13655
    public void setPromisedShippingTimestampIsSet(boolean value) {
13656
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
13657
    }
13658
 
5945 mandeep.dh 13659
    public double getQuantity() {
13660
      return this.quantity;
13661
    }
13662
 
13663
    public void setQuantity(double quantity) {
13664
      this.quantity = quantity;
13665
      setQuantityIsSet(true);
13666
    }
13667
 
13668
    public void unsetQuantity() {
13669
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
13670
    }
13671
 
13672
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
13673
    public boolean isSetQuantity() {
13674
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
13675
    }
13676
 
13677
    public void setQuantityIsSet(boolean value) {
13678
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
13679
    }
13680
 
13681
    public void setFieldValue(_Fields field, Object value) {
13682
      switch (field) {
13683
      case ITEM_ID:
13684
        if (value == null) {
13685
          unsetItemId();
13686
        } else {
13687
          setItemId((Long)value);
13688
        }
13689
        break;
13690
 
13691
      case WAREHOUSE_ID:
13692
        if (value == null) {
13693
          unsetWarehouseId();
13694
        } else {
13695
          setWarehouseId((Long)value);
13696
        }
13697
        break;
13698
 
5967 rajveer 13699
      case SOURCE_ID:
13700
        if (value == null) {
13701
          unsetSourceId();
13702
        } else {
13703
          setSourceId((Long)value);
13704
        }
13705
        break;
13706
 
13707
      case ORDER_ID:
13708
        if (value == null) {
13709
          unsetOrderId();
13710
        } else {
13711
          setOrderId((Long)value);
13712
        }
13713
        break;
13714
 
13715
      case CREATED_TIMESTAMP:
13716
        if (value == null) {
13717
          unsetCreatedTimestamp();
13718
        } else {
13719
          setCreatedTimestamp((Long)value);
13720
        }
13721
        break;
13722
 
13723
      case PROMISED_SHIPPING_TIMESTAMP:
13724
        if (value == null) {
13725
          unsetPromisedShippingTimestamp();
13726
        } else {
13727
          setPromisedShippingTimestamp((Long)value);
13728
        }
13729
        break;
13730
 
5945 mandeep.dh 13731
      case QUANTITY:
13732
        if (value == null) {
13733
          unsetQuantity();
13734
        } else {
13735
          setQuantity((Double)value);
13736
        }
13737
        break;
13738
 
13739
      }
13740
    }
13741
 
13742
    public Object getFieldValue(_Fields field) {
13743
      switch (field) {
13744
      case ITEM_ID:
13745
        return Long.valueOf(getItemId());
13746
 
13747
      case WAREHOUSE_ID:
13748
        return Long.valueOf(getWarehouseId());
13749
 
5967 rajveer 13750
      case SOURCE_ID:
13751
        return Long.valueOf(getSourceId());
13752
 
13753
      case ORDER_ID:
13754
        return Long.valueOf(getOrderId());
13755
 
13756
      case CREATED_TIMESTAMP:
13757
        return Long.valueOf(getCreatedTimestamp());
13758
 
13759
      case PROMISED_SHIPPING_TIMESTAMP:
13760
        return Long.valueOf(getPromisedShippingTimestamp());
13761
 
5945 mandeep.dh 13762
      case QUANTITY:
13763
        return Double.valueOf(getQuantity());
13764
 
13765
      }
13766
      throw new IllegalStateException();
13767
    }
13768
 
13769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13770
    public boolean isSet(_Fields field) {
13771
      if (field == null) {
13772
        throw new IllegalArgumentException();
13773
      }
13774
 
13775
      switch (field) {
13776
      case ITEM_ID:
13777
        return isSetItemId();
13778
      case WAREHOUSE_ID:
13779
        return isSetWarehouseId();
5967 rajveer 13780
      case SOURCE_ID:
13781
        return isSetSourceId();
13782
      case ORDER_ID:
13783
        return isSetOrderId();
13784
      case CREATED_TIMESTAMP:
13785
        return isSetCreatedTimestamp();
13786
      case PROMISED_SHIPPING_TIMESTAMP:
13787
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 13788
      case QUANTITY:
13789
        return isSetQuantity();
13790
      }
13791
      throw new IllegalStateException();
13792
    }
13793
 
13794
    @Override
13795
    public boolean equals(Object that) {
13796
      if (that == null)
13797
        return false;
13798
      if (that instanceof reserveItemInWarehouse_args)
13799
        return this.equals((reserveItemInWarehouse_args)that);
13800
      return false;
13801
    }
13802
 
13803
    public boolean equals(reserveItemInWarehouse_args that) {
13804
      if (that == null)
13805
        return false;
13806
 
13807
      boolean this_present_itemId = true;
13808
      boolean that_present_itemId = true;
13809
      if (this_present_itemId || that_present_itemId) {
13810
        if (!(this_present_itemId && that_present_itemId))
13811
          return false;
13812
        if (this.itemId != that.itemId)
13813
          return false;
13814
      }
13815
 
13816
      boolean this_present_warehouseId = true;
13817
      boolean that_present_warehouseId = true;
13818
      if (this_present_warehouseId || that_present_warehouseId) {
13819
        if (!(this_present_warehouseId && that_present_warehouseId))
13820
          return false;
13821
        if (this.warehouseId != that.warehouseId)
13822
          return false;
13823
      }
13824
 
5967 rajveer 13825
      boolean this_present_sourceId = true;
13826
      boolean that_present_sourceId = true;
13827
      if (this_present_sourceId || that_present_sourceId) {
13828
        if (!(this_present_sourceId && that_present_sourceId))
13829
          return false;
13830
        if (this.sourceId != that.sourceId)
13831
          return false;
13832
      }
13833
 
13834
      boolean this_present_orderId = true;
13835
      boolean that_present_orderId = true;
13836
      if (this_present_orderId || that_present_orderId) {
13837
        if (!(this_present_orderId && that_present_orderId))
13838
          return false;
13839
        if (this.orderId != that.orderId)
13840
          return false;
13841
      }
13842
 
13843
      boolean this_present_createdTimestamp = true;
13844
      boolean that_present_createdTimestamp = true;
13845
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
13846
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
13847
          return false;
13848
        if (this.createdTimestamp != that.createdTimestamp)
13849
          return false;
13850
      }
13851
 
13852
      boolean this_present_promisedShippingTimestamp = true;
13853
      boolean that_present_promisedShippingTimestamp = true;
13854
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
13855
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
13856
          return false;
13857
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
13858
          return false;
13859
      }
13860
 
5945 mandeep.dh 13861
      boolean this_present_quantity = true;
13862
      boolean that_present_quantity = true;
13863
      if (this_present_quantity || that_present_quantity) {
13864
        if (!(this_present_quantity && that_present_quantity))
13865
          return false;
13866
        if (this.quantity != that.quantity)
13867
          return false;
13868
      }
13869
 
13870
      return true;
13871
    }
13872
 
13873
    @Override
13874
    public int hashCode() {
13875
      return 0;
13876
    }
13877
 
13878
    public int compareTo(reserveItemInWarehouse_args other) {
13879
      if (!getClass().equals(other.getClass())) {
13880
        return getClass().getName().compareTo(other.getClass().getName());
13881
      }
13882
 
13883
      int lastComparison = 0;
13884
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
13885
 
13886
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13887
      if (lastComparison != 0) {
13888
        return lastComparison;
13889
      }
13890
      if (isSetItemId()) {
13891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13892
        if (lastComparison != 0) {
13893
          return lastComparison;
13894
        }
13895
      }
13896
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13897
      if (lastComparison != 0) {
13898
        return lastComparison;
13899
      }
13900
      if (isSetWarehouseId()) {
13901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13902
        if (lastComparison != 0) {
13903
          return lastComparison;
13904
        }
13905
      }
5967 rajveer 13906
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13907
      if (lastComparison != 0) {
13908
        return lastComparison;
13909
      }
13910
      if (isSetSourceId()) {
13911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13912
        if (lastComparison != 0) {
13913
          return lastComparison;
13914
        }
13915
      }
13916
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13917
      if (lastComparison != 0) {
13918
        return lastComparison;
13919
      }
13920
      if (isSetOrderId()) {
13921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13922
        if (lastComparison != 0) {
13923
          return lastComparison;
13924
        }
13925
      }
13926
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
13927
      if (lastComparison != 0) {
13928
        return lastComparison;
13929
      }
13930
      if (isSetCreatedTimestamp()) {
13931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
13932
        if (lastComparison != 0) {
13933
          return lastComparison;
13934
        }
13935
      }
13936
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
13937
      if (lastComparison != 0) {
13938
        return lastComparison;
13939
      }
13940
      if (isSetPromisedShippingTimestamp()) {
13941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
13942
        if (lastComparison != 0) {
13943
          return lastComparison;
13944
        }
13945
      }
5945 mandeep.dh 13946
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
13947
      if (lastComparison != 0) {
13948
        return lastComparison;
13949
      }
13950
      if (isSetQuantity()) {
13951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
13952
        if (lastComparison != 0) {
13953
          return lastComparison;
13954
        }
13955
      }
13956
      return 0;
13957
    }
13958
 
13959
    public _Fields fieldForId(int fieldId) {
13960
      return _Fields.findByThriftId(fieldId);
13961
    }
13962
 
13963
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13964
      org.apache.thrift.protocol.TField field;
13965
      iprot.readStructBegin();
13966
      while (true)
13967
      {
13968
        field = iprot.readFieldBegin();
13969
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13970
          break;
13971
        }
13972
        switch (field.id) {
13973
          case 1: // ITEM_ID
13974
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13975
              this.itemId = iprot.readI64();
13976
              setItemIdIsSet(true);
13977
            } else { 
13978
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13979
            }
13980
            break;
13981
          case 2: // WAREHOUSE_ID
13982
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13983
              this.warehouseId = iprot.readI64();
13984
              setWarehouseIdIsSet(true);
13985
            } else { 
13986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13987
            }
13988
            break;
5967 rajveer 13989
          case 3: // SOURCE_ID
13990
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13991
              this.sourceId = iprot.readI64();
13992
              setSourceIdIsSet(true);
13993
            } else { 
13994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13995
            }
13996
            break;
13997
          case 4: // ORDER_ID
13998
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13999
              this.orderId = iprot.readI64();
14000
              setOrderIdIsSet(true);
14001
            } else { 
14002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14003
            }
14004
            break;
14005
          case 5: // CREATED_TIMESTAMP
14006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14007
              this.createdTimestamp = iprot.readI64();
14008
              setCreatedTimestampIsSet(true);
14009
            } else { 
14010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14011
            }
14012
            break;
14013
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14015
              this.promisedShippingTimestamp = iprot.readI64();
14016
              setPromisedShippingTimestampIsSet(true);
14017
            } else { 
14018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14019
            }
14020
            break;
14021
          case 7: // QUANTITY
5945 mandeep.dh 14022
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14023
              this.quantity = iprot.readDouble();
14024
              setQuantityIsSet(true);
14025
            } else { 
14026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14027
            }
14028
            break;
14029
          default:
14030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14031
        }
14032
        iprot.readFieldEnd();
14033
      }
14034
      iprot.readStructEnd();
14035
      validate();
14036
    }
14037
 
14038
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14039
      validate();
14040
 
14041
      oprot.writeStructBegin(STRUCT_DESC);
14042
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14043
      oprot.writeI64(this.itemId);
14044
      oprot.writeFieldEnd();
14045
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14046
      oprot.writeI64(this.warehouseId);
14047
      oprot.writeFieldEnd();
5967 rajveer 14048
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14049
      oprot.writeI64(this.sourceId);
14050
      oprot.writeFieldEnd();
14051
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14052
      oprot.writeI64(this.orderId);
14053
      oprot.writeFieldEnd();
14054
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
14055
      oprot.writeI64(this.createdTimestamp);
14056
      oprot.writeFieldEnd();
14057
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
14058
      oprot.writeI64(this.promisedShippingTimestamp);
14059
      oprot.writeFieldEnd();
5945 mandeep.dh 14060
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14061
      oprot.writeDouble(this.quantity);
14062
      oprot.writeFieldEnd();
14063
      oprot.writeFieldStop();
14064
      oprot.writeStructEnd();
14065
    }
14066
 
14067
    @Override
14068
    public String toString() {
14069
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
14070
      boolean first = true;
14071
 
14072
      sb.append("itemId:");
14073
      sb.append(this.itemId);
14074
      first = false;
14075
      if (!first) sb.append(", ");
14076
      sb.append("warehouseId:");
14077
      sb.append(this.warehouseId);
14078
      first = false;
14079
      if (!first) sb.append(", ");
5967 rajveer 14080
      sb.append("sourceId:");
14081
      sb.append(this.sourceId);
14082
      first = false;
14083
      if (!first) sb.append(", ");
14084
      sb.append("orderId:");
14085
      sb.append(this.orderId);
14086
      first = false;
14087
      if (!first) sb.append(", ");
14088
      sb.append("createdTimestamp:");
14089
      sb.append(this.createdTimestamp);
14090
      first = false;
14091
      if (!first) sb.append(", ");
14092
      sb.append("promisedShippingTimestamp:");
14093
      sb.append(this.promisedShippingTimestamp);
14094
      first = false;
14095
      if (!first) sb.append(", ");
5945 mandeep.dh 14096
      sb.append("quantity:");
14097
      sb.append(this.quantity);
14098
      first = false;
14099
      sb.append(")");
14100
      return sb.toString();
14101
    }
14102
 
14103
    public void validate() throws org.apache.thrift.TException {
14104
      // check for required fields
14105
    }
14106
 
14107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14108
      try {
14109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14110
      } catch (org.apache.thrift.TException te) {
14111
        throw new java.io.IOException(te);
14112
      }
14113
    }
14114
 
14115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14116
      try {
14117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14118
      } catch (org.apache.thrift.TException te) {
14119
        throw new java.io.IOException(te);
14120
      }
14121
    }
14122
 
14123
  }
14124
 
14125
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
14127
 
14128
    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);
14129
    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);
14130
 
14131
    private boolean success; // required
14132
    private InventoryServiceException cex; // required
14133
 
14134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14136
      SUCCESS((short)0, "success"),
14137
      CEX((short)1, "cex");
14138
 
14139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14140
 
14141
      static {
14142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14143
          byName.put(field.getFieldName(), field);
14144
        }
14145
      }
14146
 
14147
      /**
14148
       * Find the _Fields constant that matches fieldId, or null if its not found.
14149
       */
14150
      public static _Fields findByThriftId(int fieldId) {
14151
        switch(fieldId) {
14152
          case 0: // SUCCESS
14153
            return SUCCESS;
14154
          case 1: // CEX
14155
            return CEX;
14156
          default:
14157
            return null;
14158
        }
14159
      }
14160
 
14161
      /**
14162
       * Find the _Fields constant that matches fieldId, throwing an exception
14163
       * if it is not found.
14164
       */
14165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14166
        _Fields fields = findByThriftId(fieldId);
14167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14168
        return fields;
14169
      }
14170
 
14171
      /**
14172
       * Find the _Fields constant that matches name, or null if its not found.
14173
       */
14174
      public static _Fields findByName(String name) {
14175
        return byName.get(name);
14176
      }
14177
 
14178
      private final short _thriftId;
14179
      private final String _fieldName;
14180
 
14181
      _Fields(short thriftId, String fieldName) {
14182
        _thriftId = thriftId;
14183
        _fieldName = fieldName;
14184
      }
14185
 
14186
      public short getThriftFieldId() {
14187
        return _thriftId;
14188
      }
14189
 
14190
      public String getFieldName() {
14191
        return _fieldName;
14192
      }
14193
    }
14194
 
14195
    // isset id assignments
14196
    private static final int __SUCCESS_ISSET_ID = 0;
14197
    private BitSet __isset_bit_vector = new BitSet(1);
14198
 
14199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14200
    static {
14201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14202
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14204
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14205
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14206
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14207
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
14208
    }
14209
 
14210
    public reserveItemInWarehouse_result() {
14211
    }
14212
 
14213
    public reserveItemInWarehouse_result(
14214
      boolean success,
14215
      InventoryServiceException cex)
14216
    {
14217
      this();
14218
      this.success = success;
14219
      setSuccessIsSet(true);
14220
      this.cex = cex;
14221
    }
14222
 
14223
    /**
14224
     * Performs a deep copy on <i>other</i>.
14225
     */
14226
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
14227
      __isset_bit_vector.clear();
14228
      __isset_bit_vector.or(other.__isset_bit_vector);
14229
      this.success = other.success;
14230
      if (other.isSetCex()) {
14231
        this.cex = new InventoryServiceException(other.cex);
14232
      }
14233
    }
14234
 
14235
    public reserveItemInWarehouse_result deepCopy() {
14236
      return new reserveItemInWarehouse_result(this);
14237
    }
14238
 
14239
    @Override
14240
    public void clear() {
14241
      setSuccessIsSet(false);
14242
      this.success = false;
14243
      this.cex = null;
14244
    }
14245
 
14246
    public boolean isSuccess() {
14247
      return this.success;
14248
    }
14249
 
14250
    public void setSuccess(boolean success) {
14251
      this.success = success;
14252
      setSuccessIsSet(true);
14253
    }
14254
 
14255
    public void unsetSuccess() {
14256
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14257
    }
14258
 
14259
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14260
    public boolean isSetSuccess() {
14261
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14262
    }
14263
 
14264
    public void setSuccessIsSet(boolean value) {
14265
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14266
    }
14267
 
14268
    public InventoryServiceException getCex() {
14269
      return this.cex;
14270
    }
14271
 
14272
    public void setCex(InventoryServiceException cex) {
14273
      this.cex = cex;
14274
    }
14275
 
14276
    public void unsetCex() {
14277
      this.cex = null;
14278
    }
14279
 
14280
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14281
    public boolean isSetCex() {
14282
      return this.cex != null;
14283
    }
14284
 
14285
    public void setCexIsSet(boolean value) {
14286
      if (!value) {
14287
        this.cex = null;
14288
      }
14289
    }
14290
 
14291
    public void setFieldValue(_Fields field, Object value) {
14292
      switch (field) {
14293
      case SUCCESS:
14294
        if (value == null) {
14295
          unsetSuccess();
14296
        } else {
14297
          setSuccess((Boolean)value);
14298
        }
14299
        break;
14300
 
14301
      case CEX:
14302
        if (value == null) {
14303
          unsetCex();
14304
        } else {
14305
          setCex((InventoryServiceException)value);
14306
        }
14307
        break;
14308
 
14309
      }
14310
    }
14311
 
14312
    public Object getFieldValue(_Fields field) {
14313
      switch (field) {
14314
      case SUCCESS:
14315
        return Boolean.valueOf(isSuccess());
14316
 
14317
      case CEX:
14318
        return getCex();
14319
 
14320
      }
14321
      throw new IllegalStateException();
14322
    }
14323
 
14324
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14325
    public boolean isSet(_Fields field) {
14326
      if (field == null) {
14327
        throw new IllegalArgumentException();
14328
      }
14329
 
14330
      switch (field) {
14331
      case SUCCESS:
14332
        return isSetSuccess();
14333
      case CEX:
14334
        return isSetCex();
14335
      }
14336
      throw new IllegalStateException();
14337
    }
14338
 
14339
    @Override
14340
    public boolean equals(Object that) {
14341
      if (that == null)
14342
        return false;
14343
      if (that instanceof reserveItemInWarehouse_result)
14344
        return this.equals((reserveItemInWarehouse_result)that);
14345
      return false;
14346
    }
14347
 
14348
    public boolean equals(reserveItemInWarehouse_result that) {
14349
      if (that == null)
14350
        return false;
14351
 
14352
      boolean this_present_success = true;
14353
      boolean that_present_success = true;
14354
      if (this_present_success || that_present_success) {
14355
        if (!(this_present_success && that_present_success))
14356
          return false;
14357
        if (this.success != that.success)
14358
          return false;
14359
      }
14360
 
14361
      boolean this_present_cex = true && this.isSetCex();
14362
      boolean that_present_cex = true && that.isSetCex();
14363
      if (this_present_cex || that_present_cex) {
14364
        if (!(this_present_cex && that_present_cex))
14365
          return false;
14366
        if (!this.cex.equals(that.cex))
14367
          return false;
14368
      }
14369
 
14370
      return true;
14371
    }
14372
 
14373
    @Override
14374
    public int hashCode() {
14375
      return 0;
14376
    }
14377
 
14378
    public int compareTo(reserveItemInWarehouse_result other) {
14379
      if (!getClass().equals(other.getClass())) {
14380
        return getClass().getName().compareTo(other.getClass().getName());
14381
      }
14382
 
14383
      int lastComparison = 0;
14384
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
14385
 
14386
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14387
      if (lastComparison != 0) {
14388
        return lastComparison;
14389
      }
14390
      if (isSetSuccess()) {
14391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14392
        if (lastComparison != 0) {
14393
          return lastComparison;
14394
        }
14395
      }
14396
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14397
      if (lastComparison != 0) {
14398
        return lastComparison;
14399
      }
14400
      if (isSetCex()) {
14401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14402
        if (lastComparison != 0) {
14403
          return lastComparison;
14404
        }
14405
      }
14406
      return 0;
14407
    }
14408
 
14409
    public _Fields fieldForId(int fieldId) {
14410
      return _Fields.findByThriftId(fieldId);
14411
    }
14412
 
14413
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14414
      org.apache.thrift.protocol.TField field;
14415
      iprot.readStructBegin();
14416
      while (true)
14417
      {
14418
        field = iprot.readFieldBegin();
14419
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14420
          break;
14421
        }
14422
        switch (field.id) {
14423
          case 0: // SUCCESS
14424
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14425
              this.success = iprot.readBool();
14426
              setSuccessIsSet(true);
14427
            } else { 
14428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14429
            }
14430
            break;
14431
          case 1: // CEX
14432
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14433
              this.cex = new InventoryServiceException();
14434
              this.cex.read(iprot);
14435
            } else { 
14436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14437
            }
14438
            break;
14439
          default:
14440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14441
        }
14442
        iprot.readFieldEnd();
14443
      }
14444
      iprot.readStructEnd();
14445
      validate();
14446
    }
14447
 
14448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14449
      oprot.writeStructBegin(STRUCT_DESC);
14450
 
14451
      if (this.isSetSuccess()) {
14452
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14453
        oprot.writeBool(this.success);
14454
        oprot.writeFieldEnd();
14455
      } else if (this.isSetCex()) {
14456
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14457
        this.cex.write(oprot);
14458
        oprot.writeFieldEnd();
14459
      }
14460
      oprot.writeFieldStop();
14461
      oprot.writeStructEnd();
14462
    }
14463
 
14464
    @Override
14465
    public String toString() {
14466
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
14467
      boolean first = true;
14468
 
14469
      sb.append("success:");
14470
      sb.append(this.success);
14471
      first = false;
14472
      if (!first) sb.append(", ");
14473
      sb.append("cex:");
14474
      if (this.cex == null) {
14475
        sb.append("null");
14476
      } else {
14477
        sb.append(this.cex);
14478
      }
14479
      first = false;
14480
      sb.append(")");
14481
      return sb.toString();
14482
    }
14483
 
14484
    public void validate() throws org.apache.thrift.TException {
14485
      // check for required fields
14486
    }
14487
 
14488
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14489
      try {
14490
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14491
      } catch (org.apache.thrift.TException te) {
14492
        throw new java.io.IOException(te);
14493
      }
14494
    }
14495
 
14496
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14497
      try {
14498
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14499
      } catch (org.apache.thrift.TException te) {
14500
        throw new java.io.IOException(te);
14501
      }
14502
    }
14503
 
14504
  }
14505
 
14506
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
14507
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
14508
 
14509
    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);
14510
    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 14511
    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);
14512
    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);
14513
    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 14514
 
14515
    private long itemId; // required
14516
    private long warehouseId; // required
5967 rajveer 14517
    private long sourceId; // required
14518
    private long orderId; // required
5945 mandeep.dh 14519
    private double quantity; // required
14520
 
14521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14523
      ITEM_ID((short)1, "itemId"),
14524
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14525
      SOURCE_ID((short)3, "sourceId"),
14526
      ORDER_ID((short)4, "orderId"),
14527
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 14528
 
14529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14530
 
14531
      static {
14532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14533
          byName.put(field.getFieldName(), field);
14534
        }
14535
      }
14536
 
14537
      /**
14538
       * Find the _Fields constant that matches fieldId, or null if its not found.
14539
       */
14540
      public static _Fields findByThriftId(int fieldId) {
14541
        switch(fieldId) {
14542
          case 1: // ITEM_ID
14543
            return ITEM_ID;
14544
          case 2: // WAREHOUSE_ID
14545
            return WAREHOUSE_ID;
5967 rajveer 14546
          case 3: // SOURCE_ID
14547
            return SOURCE_ID;
14548
          case 4: // ORDER_ID
14549
            return ORDER_ID;
14550
          case 5: // QUANTITY
5945 mandeep.dh 14551
            return QUANTITY;
14552
          default:
14553
            return null;
14554
        }
14555
      }
14556
 
14557
      /**
14558
       * Find the _Fields constant that matches fieldId, throwing an exception
14559
       * if it is not found.
14560
       */
14561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14562
        _Fields fields = findByThriftId(fieldId);
14563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14564
        return fields;
14565
      }
14566
 
14567
      /**
14568
       * Find the _Fields constant that matches name, or null if its not found.
14569
       */
14570
      public static _Fields findByName(String name) {
14571
        return byName.get(name);
14572
      }
14573
 
14574
      private final short _thriftId;
14575
      private final String _fieldName;
14576
 
14577
      _Fields(short thriftId, String fieldName) {
14578
        _thriftId = thriftId;
14579
        _fieldName = fieldName;
14580
      }
14581
 
14582
      public short getThriftFieldId() {
14583
        return _thriftId;
14584
      }
14585
 
14586
      public String getFieldName() {
14587
        return _fieldName;
14588
      }
14589
    }
14590
 
14591
    // isset id assignments
14592
    private static final int __ITEMID_ISSET_ID = 0;
14593
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14594
    private static final int __SOURCEID_ISSET_ID = 2;
14595
    private static final int __ORDERID_ISSET_ID = 3;
14596
    private static final int __QUANTITY_ISSET_ID = 4;
14597
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 14598
 
14599
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14600
    static {
14601
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14602
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14604
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14606
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14608
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14610
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14611
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14612
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14613
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
14614
    }
14615
 
14616
    public reduceReservationCount_args() {
14617
    }
14618
 
14619
    public reduceReservationCount_args(
14620
      long itemId,
14621
      long warehouseId,
5967 rajveer 14622
      long sourceId,
14623
      long orderId,
5945 mandeep.dh 14624
      double quantity)
14625
    {
14626
      this();
14627
      this.itemId = itemId;
14628
      setItemIdIsSet(true);
14629
      this.warehouseId = warehouseId;
14630
      setWarehouseIdIsSet(true);
5967 rajveer 14631
      this.sourceId = sourceId;
14632
      setSourceIdIsSet(true);
14633
      this.orderId = orderId;
14634
      setOrderIdIsSet(true);
5945 mandeep.dh 14635
      this.quantity = quantity;
14636
      setQuantityIsSet(true);
14637
    }
14638
 
14639
    /**
14640
     * Performs a deep copy on <i>other</i>.
14641
     */
14642
    public reduceReservationCount_args(reduceReservationCount_args other) {
14643
      __isset_bit_vector.clear();
14644
      __isset_bit_vector.or(other.__isset_bit_vector);
14645
      this.itemId = other.itemId;
14646
      this.warehouseId = other.warehouseId;
5967 rajveer 14647
      this.sourceId = other.sourceId;
14648
      this.orderId = other.orderId;
5945 mandeep.dh 14649
      this.quantity = other.quantity;
14650
    }
14651
 
14652
    public reduceReservationCount_args deepCopy() {
14653
      return new reduceReservationCount_args(this);
14654
    }
14655
 
14656
    @Override
14657
    public void clear() {
14658
      setItemIdIsSet(false);
14659
      this.itemId = 0;
14660
      setWarehouseIdIsSet(false);
14661
      this.warehouseId = 0;
5967 rajveer 14662
      setSourceIdIsSet(false);
14663
      this.sourceId = 0;
14664
      setOrderIdIsSet(false);
14665
      this.orderId = 0;
5945 mandeep.dh 14666
      setQuantityIsSet(false);
14667
      this.quantity = 0.0;
14668
    }
14669
 
14670
    public long getItemId() {
14671
      return this.itemId;
14672
    }
14673
 
14674
    public void setItemId(long itemId) {
14675
      this.itemId = itemId;
14676
      setItemIdIsSet(true);
14677
    }
14678
 
14679
    public void unsetItemId() {
14680
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14681
    }
14682
 
14683
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14684
    public boolean isSetItemId() {
14685
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14686
    }
14687
 
14688
    public void setItemIdIsSet(boolean value) {
14689
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14690
    }
14691
 
14692
    public long getWarehouseId() {
14693
      return this.warehouseId;
14694
    }
14695
 
14696
    public void setWarehouseId(long warehouseId) {
14697
      this.warehouseId = warehouseId;
14698
      setWarehouseIdIsSet(true);
14699
    }
14700
 
14701
    public void unsetWarehouseId() {
14702
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14703
    }
14704
 
14705
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14706
    public boolean isSetWarehouseId() {
14707
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14708
    }
14709
 
14710
    public void setWarehouseIdIsSet(boolean value) {
14711
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14712
    }
14713
 
5967 rajveer 14714
    public long getSourceId() {
14715
      return this.sourceId;
14716
    }
14717
 
14718
    public void setSourceId(long sourceId) {
14719
      this.sourceId = sourceId;
14720
      setSourceIdIsSet(true);
14721
    }
14722
 
14723
    public void unsetSourceId() {
14724
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14725
    }
14726
 
14727
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14728
    public boolean isSetSourceId() {
14729
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14730
    }
14731
 
14732
    public void setSourceIdIsSet(boolean value) {
14733
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14734
    }
14735
 
14736
    public long getOrderId() {
14737
      return this.orderId;
14738
    }
14739
 
14740
    public void setOrderId(long orderId) {
14741
      this.orderId = orderId;
14742
      setOrderIdIsSet(true);
14743
    }
14744
 
14745
    public void unsetOrderId() {
14746
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14747
    }
14748
 
14749
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14750
    public boolean isSetOrderId() {
14751
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14752
    }
14753
 
14754
    public void setOrderIdIsSet(boolean value) {
14755
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14756
    }
14757
 
5945 mandeep.dh 14758
    public double getQuantity() {
14759
      return this.quantity;
14760
    }
14761
 
14762
    public void setQuantity(double quantity) {
14763
      this.quantity = quantity;
14764
      setQuantityIsSet(true);
14765
    }
14766
 
14767
    public void unsetQuantity() {
14768
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14769
    }
14770
 
14771
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14772
    public boolean isSetQuantity() {
14773
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14774
    }
14775
 
14776
    public void setQuantityIsSet(boolean value) {
14777
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14778
    }
14779
 
14780
    public void setFieldValue(_Fields field, Object value) {
14781
      switch (field) {
14782
      case ITEM_ID:
14783
        if (value == null) {
14784
          unsetItemId();
14785
        } else {
14786
          setItemId((Long)value);
14787
        }
14788
        break;
14789
 
14790
      case WAREHOUSE_ID:
14791
        if (value == null) {
14792
          unsetWarehouseId();
14793
        } else {
14794
          setWarehouseId((Long)value);
14795
        }
14796
        break;
14797
 
5967 rajveer 14798
      case SOURCE_ID:
14799
        if (value == null) {
14800
          unsetSourceId();
14801
        } else {
14802
          setSourceId((Long)value);
14803
        }
14804
        break;
14805
 
14806
      case ORDER_ID:
14807
        if (value == null) {
14808
          unsetOrderId();
14809
        } else {
14810
          setOrderId((Long)value);
14811
        }
14812
        break;
14813
 
5945 mandeep.dh 14814
      case QUANTITY:
14815
        if (value == null) {
14816
          unsetQuantity();
14817
        } else {
14818
          setQuantity((Double)value);
14819
        }
14820
        break;
14821
 
14822
      }
14823
    }
14824
 
14825
    public Object getFieldValue(_Fields field) {
14826
      switch (field) {
14827
      case ITEM_ID:
14828
        return Long.valueOf(getItemId());
14829
 
14830
      case WAREHOUSE_ID:
14831
        return Long.valueOf(getWarehouseId());
14832
 
5967 rajveer 14833
      case SOURCE_ID:
14834
        return Long.valueOf(getSourceId());
14835
 
14836
      case ORDER_ID:
14837
        return Long.valueOf(getOrderId());
14838
 
5945 mandeep.dh 14839
      case QUANTITY:
14840
        return Double.valueOf(getQuantity());
14841
 
14842
      }
14843
      throw new IllegalStateException();
14844
    }
14845
 
14846
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14847
    public boolean isSet(_Fields field) {
14848
      if (field == null) {
14849
        throw new IllegalArgumentException();
14850
      }
14851
 
14852
      switch (field) {
14853
      case ITEM_ID:
14854
        return isSetItemId();
14855
      case WAREHOUSE_ID:
14856
        return isSetWarehouseId();
5967 rajveer 14857
      case SOURCE_ID:
14858
        return isSetSourceId();
14859
      case ORDER_ID:
14860
        return isSetOrderId();
5945 mandeep.dh 14861
      case QUANTITY:
14862
        return isSetQuantity();
14863
      }
14864
      throw new IllegalStateException();
14865
    }
14866
 
14867
    @Override
14868
    public boolean equals(Object that) {
14869
      if (that == null)
14870
        return false;
14871
      if (that instanceof reduceReservationCount_args)
14872
        return this.equals((reduceReservationCount_args)that);
14873
      return false;
14874
    }
14875
 
14876
    public boolean equals(reduceReservationCount_args that) {
14877
      if (that == null)
14878
        return false;
14879
 
14880
      boolean this_present_itemId = true;
14881
      boolean that_present_itemId = true;
14882
      if (this_present_itemId || that_present_itemId) {
14883
        if (!(this_present_itemId && that_present_itemId))
14884
          return false;
14885
        if (this.itemId != that.itemId)
14886
          return false;
14887
      }
14888
 
14889
      boolean this_present_warehouseId = true;
14890
      boolean that_present_warehouseId = true;
14891
      if (this_present_warehouseId || that_present_warehouseId) {
14892
        if (!(this_present_warehouseId && that_present_warehouseId))
14893
          return false;
14894
        if (this.warehouseId != that.warehouseId)
14895
          return false;
14896
      }
14897
 
5967 rajveer 14898
      boolean this_present_sourceId = true;
14899
      boolean that_present_sourceId = true;
14900
      if (this_present_sourceId || that_present_sourceId) {
14901
        if (!(this_present_sourceId && that_present_sourceId))
14902
          return false;
14903
        if (this.sourceId != that.sourceId)
14904
          return false;
14905
      }
14906
 
14907
      boolean this_present_orderId = true;
14908
      boolean that_present_orderId = true;
14909
      if (this_present_orderId || that_present_orderId) {
14910
        if (!(this_present_orderId && that_present_orderId))
14911
          return false;
14912
        if (this.orderId != that.orderId)
14913
          return false;
14914
      }
14915
 
5945 mandeep.dh 14916
      boolean this_present_quantity = true;
14917
      boolean that_present_quantity = true;
14918
      if (this_present_quantity || that_present_quantity) {
14919
        if (!(this_present_quantity && that_present_quantity))
14920
          return false;
14921
        if (this.quantity != that.quantity)
14922
          return false;
14923
      }
14924
 
14925
      return true;
14926
    }
14927
 
14928
    @Override
14929
    public int hashCode() {
14930
      return 0;
14931
    }
14932
 
14933
    public int compareTo(reduceReservationCount_args other) {
14934
      if (!getClass().equals(other.getClass())) {
14935
        return getClass().getName().compareTo(other.getClass().getName());
14936
      }
14937
 
14938
      int lastComparison = 0;
14939
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
14940
 
14941
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14942
      if (lastComparison != 0) {
14943
        return lastComparison;
14944
      }
14945
      if (isSetItemId()) {
14946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14947
        if (lastComparison != 0) {
14948
          return lastComparison;
14949
        }
14950
      }
14951
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14952
      if (lastComparison != 0) {
14953
        return lastComparison;
14954
      }
14955
      if (isSetWarehouseId()) {
14956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14957
        if (lastComparison != 0) {
14958
          return lastComparison;
14959
        }
14960
      }
5967 rajveer 14961
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14962
      if (lastComparison != 0) {
14963
        return lastComparison;
14964
      }
14965
      if (isSetSourceId()) {
14966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14967
        if (lastComparison != 0) {
14968
          return lastComparison;
14969
        }
14970
      }
14971
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14972
      if (lastComparison != 0) {
14973
        return lastComparison;
14974
      }
14975
      if (isSetOrderId()) {
14976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14977
        if (lastComparison != 0) {
14978
          return lastComparison;
14979
        }
14980
      }
5945 mandeep.dh 14981
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14982
      if (lastComparison != 0) {
14983
        return lastComparison;
14984
      }
14985
      if (isSetQuantity()) {
14986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14987
        if (lastComparison != 0) {
14988
          return lastComparison;
14989
        }
14990
      }
14991
      return 0;
14992
    }
14993
 
14994
    public _Fields fieldForId(int fieldId) {
14995
      return _Fields.findByThriftId(fieldId);
14996
    }
14997
 
14998
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14999
      org.apache.thrift.protocol.TField field;
15000
      iprot.readStructBegin();
15001
      while (true)
15002
      {
15003
        field = iprot.readFieldBegin();
15004
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15005
          break;
15006
        }
15007
        switch (field.id) {
15008
          case 1: // ITEM_ID
15009
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15010
              this.itemId = iprot.readI64();
15011
              setItemIdIsSet(true);
15012
            } else { 
15013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15014
            }
15015
            break;
15016
          case 2: // WAREHOUSE_ID
15017
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15018
              this.warehouseId = iprot.readI64();
15019
              setWarehouseIdIsSet(true);
15020
            } else { 
15021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15022
            }
15023
            break;
5967 rajveer 15024
          case 3: // SOURCE_ID
15025
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15026
              this.sourceId = iprot.readI64();
15027
              setSourceIdIsSet(true);
15028
            } else { 
15029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15030
            }
15031
            break;
15032
          case 4: // ORDER_ID
15033
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15034
              this.orderId = iprot.readI64();
15035
              setOrderIdIsSet(true);
15036
            } else { 
15037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15038
            }
15039
            break;
15040
          case 5: // QUANTITY
5945 mandeep.dh 15041
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15042
              this.quantity = iprot.readDouble();
15043
              setQuantityIsSet(true);
15044
            } else { 
15045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15046
            }
15047
            break;
15048
          default:
15049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15050
        }
15051
        iprot.readFieldEnd();
15052
      }
15053
      iprot.readStructEnd();
15054
      validate();
15055
    }
15056
 
15057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15058
      validate();
15059
 
15060
      oprot.writeStructBegin(STRUCT_DESC);
15061
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15062
      oprot.writeI64(this.itemId);
15063
      oprot.writeFieldEnd();
15064
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15065
      oprot.writeI64(this.warehouseId);
15066
      oprot.writeFieldEnd();
5967 rajveer 15067
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15068
      oprot.writeI64(this.sourceId);
15069
      oprot.writeFieldEnd();
15070
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15071
      oprot.writeI64(this.orderId);
15072
      oprot.writeFieldEnd();
5945 mandeep.dh 15073
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
15074
      oprot.writeDouble(this.quantity);
15075
      oprot.writeFieldEnd();
15076
      oprot.writeFieldStop();
15077
      oprot.writeStructEnd();
15078
    }
15079
 
15080
    @Override
15081
    public String toString() {
15082
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
15083
      boolean first = true;
15084
 
15085
      sb.append("itemId:");
15086
      sb.append(this.itemId);
15087
      first = false;
15088
      if (!first) sb.append(", ");
15089
      sb.append("warehouseId:");
15090
      sb.append(this.warehouseId);
15091
      first = false;
15092
      if (!first) sb.append(", ");
5967 rajveer 15093
      sb.append("sourceId:");
15094
      sb.append(this.sourceId);
15095
      first = false;
15096
      if (!first) sb.append(", ");
15097
      sb.append("orderId:");
15098
      sb.append(this.orderId);
15099
      first = false;
15100
      if (!first) sb.append(", ");
5945 mandeep.dh 15101
      sb.append("quantity:");
15102
      sb.append(this.quantity);
15103
      first = false;
15104
      sb.append(")");
15105
      return sb.toString();
15106
    }
15107
 
15108
    public void validate() throws org.apache.thrift.TException {
15109
      // check for required fields
15110
    }
15111
 
15112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15113
      try {
15114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15115
      } catch (org.apache.thrift.TException te) {
15116
        throw new java.io.IOException(te);
15117
      }
15118
    }
15119
 
15120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15121
      try {
15122
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15123
      } catch (org.apache.thrift.TException te) {
15124
        throw new java.io.IOException(te);
15125
      }
15126
    }
15127
 
15128
  }
15129
 
15130
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
15131
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
15132
 
15133
    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);
15134
    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);
15135
 
15136
    private boolean success; // required
15137
    private InventoryServiceException cex; // required
15138
 
15139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15141
      SUCCESS((short)0, "success"),
15142
      CEX((short)1, "cex");
15143
 
15144
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15145
 
15146
      static {
15147
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15148
          byName.put(field.getFieldName(), field);
15149
        }
15150
      }
15151
 
15152
      /**
15153
       * Find the _Fields constant that matches fieldId, or null if its not found.
15154
       */
15155
      public static _Fields findByThriftId(int fieldId) {
15156
        switch(fieldId) {
15157
          case 0: // SUCCESS
15158
            return SUCCESS;
15159
          case 1: // CEX
15160
            return CEX;
15161
          default:
15162
            return null;
15163
        }
15164
      }
15165
 
15166
      /**
15167
       * Find the _Fields constant that matches fieldId, throwing an exception
15168
       * if it is not found.
15169
       */
15170
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15171
        _Fields fields = findByThriftId(fieldId);
15172
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15173
        return fields;
15174
      }
15175
 
15176
      /**
15177
       * Find the _Fields constant that matches name, or null if its not found.
15178
       */
15179
      public static _Fields findByName(String name) {
15180
        return byName.get(name);
15181
      }
15182
 
15183
      private final short _thriftId;
15184
      private final String _fieldName;
15185
 
15186
      _Fields(short thriftId, String fieldName) {
15187
        _thriftId = thriftId;
15188
        _fieldName = fieldName;
15189
      }
15190
 
15191
      public short getThriftFieldId() {
15192
        return _thriftId;
15193
      }
15194
 
15195
      public String getFieldName() {
15196
        return _fieldName;
15197
      }
15198
    }
15199
 
15200
    // isset id assignments
15201
    private static final int __SUCCESS_ISSET_ID = 0;
15202
    private BitSet __isset_bit_vector = new BitSet(1);
15203
 
15204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15205
    static {
15206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15207
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15209
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
15213
    }
15214
 
15215
    public reduceReservationCount_result() {
15216
    }
15217
 
15218
    public reduceReservationCount_result(
15219
      boolean success,
15220
      InventoryServiceException cex)
15221
    {
15222
      this();
15223
      this.success = success;
15224
      setSuccessIsSet(true);
15225
      this.cex = cex;
15226
    }
15227
 
15228
    /**
15229
     * Performs a deep copy on <i>other</i>.
15230
     */
15231
    public reduceReservationCount_result(reduceReservationCount_result other) {
15232
      __isset_bit_vector.clear();
15233
      __isset_bit_vector.or(other.__isset_bit_vector);
15234
      this.success = other.success;
15235
      if (other.isSetCex()) {
15236
        this.cex = new InventoryServiceException(other.cex);
15237
      }
15238
    }
15239
 
15240
    public reduceReservationCount_result deepCopy() {
15241
      return new reduceReservationCount_result(this);
15242
    }
15243
 
15244
    @Override
15245
    public void clear() {
15246
      setSuccessIsSet(false);
15247
      this.success = false;
15248
      this.cex = null;
15249
    }
15250
 
15251
    public boolean isSuccess() {
15252
      return this.success;
15253
    }
15254
 
15255
    public void setSuccess(boolean success) {
15256
      this.success = success;
15257
      setSuccessIsSet(true);
15258
    }
15259
 
15260
    public void unsetSuccess() {
15261
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15262
    }
15263
 
15264
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15265
    public boolean isSetSuccess() {
15266
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15267
    }
15268
 
15269
    public void setSuccessIsSet(boolean value) {
15270
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15271
    }
15272
 
15273
    public InventoryServiceException getCex() {
15274
      return this.cex;
15275
    }
15276
 
15277
    public void setCex(InventoryServiceException cex) {
15278
      this.cex = cex;
15279
    }
15280
 
15281
    public void unsetCex() {
15282
      this.cex = null;
15283
    }
15284
 
15285
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15286
    public boolean isSetCex() {
15287
      return this.cex != null;
15288
    }
15289
 
15290
    public void setCexIsSet(boolean value) {
15291
      if (!value) {
15292
        this.cex = null;
15293
      }
15294
    }
15295
 
15296
    public void setFieldValue(_Fields field, Object value) {
15297
      switch (field) {
15298
      case SUCCESS:
15299
        if (value == null) {
15300
          unsetSuccess();
15301
        } else {
15302
          setSuccess((Boolean)value);
15303
        }
15304
        break;
15305
 
15306
      case CEX:
15307
        if (value == null) {
15308
          unsetCex();
15309
        } else {
15310
          setCex((InventoryServiceException)value);
15311
        }
15312
        break;
15313
 
15314
      }
15315
    }
15316
 
15317
    public Object getFieldValue(_Fields field) {
15318
      switch (field) {
15319
      case SUCCESS:
15320
        return Boolean.valueOf(isSuccess());
15321
 
15322
      case CEX:
15323
        return getCex();
15324
 
15325
      }
15326
      throw new IllegalStateException();
15327
    }
15328
 
15329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15330
    public boolean isSet(_Fields field) {
15331
      if (field == null) {
15332
        throw new IllegalArgumentException();
15333
      }
15334
 
15335
      switch (field) {
15336
      case SUCCESS:
15337
        return isSetSuccess();
15338
      case CEX:
15339
        return isSetCex();
15340
      }
15341
      throw new IllegalStateException();
15342
    }
15343
 
15344
    @Override
15345
    public boolean equals(Object that) {
15346
      if (that == null)
15347
        return false;
15348
      if (that instanceof reduceReservationCount_result)
15349
        return this.equals((reduceReservationCount_result)that);
15350
      return false;
15351
    }
15352
 
15353
    public boolean equals(reduceReservationCount_result that) {
15354
      if (that == null)
15355
        return false;
15356
 
15357
      boolean this_present_success = true;
15358
      boolean that_present_success = true;
15359
      if (this_present_success || that_present_success) {
15360
        if (!(this_present_success && that_present_success))
15361
          return false;
15362
        if (this.success != that.success)
15363
          return false;
15364
      }
15365
 
15366
      boolean this_present_cex = true && this.isSetCex();
15367
      boolean that_present_cex = true && that.isSetCex();
15368
      if (this_present_cex || that_present_cex) {
15369
        if (!(this_present_cex && that_present_cex))
15370
          return false;
15371
        if (!this.cex.equals(that.cex))
15372
          return false;
15373
      }
15374
 
15375
      return true;
15376
    }
15377
 
15378
    @Override
15379
    public int hashCode() {
15380
      return 0;
15381
    }
15382
 
15383
    public int compareTo(reduceReservationCount_result other) {
15384
      if (!getClass().equals(other.getClass())) {
15385
        return getClass().getName().compareTo(other.getClass().getName());
15386
      }
15387
 
15388
      int lastComparison = 0;
15389
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
15390
 
15391
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15392
      if (lastComparison != 0) {
15393
        return lastComparison;
15394
      }
15395
      if (isSetSuccess()) {
15396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15397
        if (lastComparison != 0) {
15398
          return lastComparison;
15399
        }
15400
      }
15401
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15402
      if (lastComparison != 0) {
15403
        return lastComparison;
15404
      }
15405
      if (isSetCex()) {
15406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15407
        if (lastComparison != 0) {
15408
          return lastComparison;
15409
        }
15410
      }
15411
      return 0;
15412
    }
15413
 
15414
    public _Fields fieldForId(int fieldId) {
15415
      return _Fields.findByThriftId(fieldId);
15416
    }
15417
 
15418
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15419
      org.apache.thrift.protocol.TField field;
15420
      iprot.readStructBegin();
15421
      while (true)
15422
      {
15423
        field = iprot.readFieldBegin();
15424
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15425
          break;
15426
        }
15427
        switch (field.id) {
15428
          case 0: // SUCCESS
15429
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15430
              this.success = iprot.readBool();
15431
              setSuccessIsSet(true);
15432
            } else { 
15433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15434
            }
15435
            break;
15436
          case 1: // CEX
15437
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15438
              this.cex = new InventoryServiceException();
15439
              this.cex.read(iprot);
15440
            } else { 
15441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15442
            }
15443
            break;
15444
          default:
15445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15446
        }
15447
        iprot.readFieldEnd();
15448
      }
15449
      iprot.readStructEnd();
15450
      validate();
15451
    }
15452
 
15453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15454
      oprot.writeStructBegin(STRUCT_DESC);
15455
 
15456
      if (this.isSetSuccess()) {
15457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15458
        oprot.writeBool(this.success);
15459
        oprot.writeFieldEnd();
15460
      } else if (this.isSetCex()) {
15461
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15462
        this.cex.write(oprot);
15463
        oprot.writeFieldEnd();
15464
      }
15465
      oprot.writeFieldStop();
15466
      oprot.writeStructEnd();
15467
    }
15468
 
15469
    @Override
15470
    public String toString() {
15471
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
15472
      boolean first = true;
15473
 
15474
      sb.append("success:");
15475
      sb.append(this.success);
15476
      first = false;
15477
      if (!first) sb.append(", ");
15478
      sb.append("cex:");
15479
      if (this.cex == null) {
15480
        sb.append("null");
15481
      } else {
15482
        sb.append(this.cex);
15483
      }
15484
      first = false;
15485
      sb.append(")");
15486
      return sb.toString();
15487
    }
15488
 
15489
    public void validate() throws org.apache.thrift.TException {
15490
      // check for required fields
15491
    }
15492
 
15493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15494
      try {
15495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15496
      } catch (org.apache.thrift.TException te) {
15497
        throw new java.io.IOException(te);
15498
      }
15499
    }
15500
 
15501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15502
      try {
15503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15504
      } catch (org.apache.thrift.TException te) {
15505
        throw new java.io.IOException(te);
15506
      }
15507
    }
15508
 
15509
  }
15510
 
15511
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
15513
 
15514
    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);
15515
    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);
15516
 
15517
    private long itemId; // required
15518
    private long vendorId; // required
15519
 
15520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15522
      ITEM_ID((short)1, "itemId"),
15523
      VENDOR_ID((short)2, "vendorId");
15524
 
15525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15526
 
15527
      static {
15528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15529
          byName.put(field.getFieldName(), field);
15530
        }
15531
      }
15532
 
15533
      /**
15534
       * Find the _Fields constant that matches fieldId, or null if its not found.
15535
       */
15536
      public static _Fields findByThriftId(int fieldId) {
15537
        switch(fieldId) {
15538
          case 1: // ITEM_ID
15539
            return ITEM_ID;
15540
          case 2: // VENDOR_ID
15541
            return VENDOR_ID;
15542
          default:
15543
            return null;
15544
        }
15545
      }
15546
 
15547
      /**
15548
       * Find the _Fields constant that matches fieldId, throwing an exception
15549
       * if it is not found.
15550
       */
15551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15552
        _Fields fields = findByThriftId(fieldId);
15553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15554
        return fields;
15555
      }
15556
 
15557
      /**
15558
       * Find the _Fields constant that matches name, or null if its not found.
15559
       */
15560
      public static _Fields findByName(String name) {
15561
        return byName.get(name);
15562
      }
15563
 
15564
      private final short _thriftId;
15565
      private final String _fieldName;
15566
 
15567
      _Fields(short thriftId, String fieldName) {
15568
        _thriftId = thriftId;
15569
        _fieldName = fieldName;
15570
      }
15571
 
15572
      public short getThriftFieldId() {
15573
        return _thriftId;
15574
      }
15575
 
15576
      public String getFieldName() {
15577
        return _fieldName;
15578
      }
15579
    }
15580
 
15581
    // isset id assignments
15582
    private static final int __ITEMID_ISSET_ID = 0;
15583
    private static final int __VENDORID_ISSET_ID = 1;
15584
    private BitSet __isset_bit_vector = new BitSet(2);
15585
 
15586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15587
    static {
15588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15589
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15591
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
15595
    }
15596
 
15597
    public getItemPricing_args() {
15598
    }
15599
 
15600
    public getItemPricing_args(
15601
      long itemId,
15602
      long vendorId)
15603
    {
15604
      this();
15605
      this.itemId = itemId;
15606
      setItemIdIsSet(true);
15607
      this.vendorId = vendorId;
15608
      setVendorIdIsSet(true);
15609
    }
15610
 
15611
    /**
15612
     * Performs a deep copy on <i>other</i>.
15613
     */
15614
    public getItemPricing_args(getItemPricing_args other) {
15615
      __isset_bit_vector.clear();
15616
      __isset_bit_vector.or(other.__isset_bit_vector);
15617
      this.itemId = other.itemId;
15618
      this.vendorId = other.vendorId;
15619
    }
15620
 
15621
    public getItemPricing_args deepCopy() {
15622
      return new getItemPricing_args(this);
15623
    }
15624
 
15625
    @Override
15626
    public void clear() {
15627
      setItemIdIsSet(false);
15628
      this.itemId = 0;
15629
      setVendorIdIsSet(false);
15630
      this.vendorId = 0;
15631
    }
15632
 
15633
    public long getItemId() {
15634
      return this.itemId;
15635
    }
15636
 
15637
    public void setItemId(long itemId) {
15638
      this.itemId = itemId;
15639
      setItemIdIsSet(true);
15640
    }
15641
 
15642
    public void unsetItemId() {
15643
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15644
    }
15645
 
15646
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15647
    public boolean isSetItemId() {
15648
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15649
    }
15650
 
15651
    public void setItemIdIsSet(boolean value) {
15652
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15653
    }
15654
 
15655
    public long getVendorId() {
15656
      return this.vendorId;
15657
    }
15658
 
15659
    public void setVendorId(long vendorId) {
15660
      this.vendorId = vendorId;
15661
      setVendorIdIsSet(true);
15662
    }
15663
 
15664
    public void unsetVendorId() {
15665
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
15666
    }
15667
 
15668
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
15669
    public boolean isSetVendorId() {
15670
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
15671
    }
15672
 
15673
    public void setVendorIdIsSet(boolean value) {
15674
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
15675
    }
15676
 
15677
    public void setFieldValue(_Fields field, Object value) {
15678
      switch (field) {
15679
      case ITEM_ID:
15680
        if (value == null) {
15681
          unsetItemId();
15682
        } else {
15683
          setItemId((Long)value);
15684
        }
15685
        break;
15686
 
15687
      case VENDOR_ID:
15688
        if (value == null) {
15689
          unsetVendorId();
15690
        } else {
15691
          setVendorId((Long)value);
15692
        }
15693
        break;
15694
 
15695
      }
15696
    }
15697
 
15698
    public Object getFieldValue(_Fields field) {
15699
      switch (field) {
15700
      case ITEM_ID:
15701
        return Long.valueOf(getItemId());
15702
 
15703
      case VENDOR_ID:
15704
        return Long.valueOf(getVendorId());
15705
 
15706
      }
15707
      throw new IllegalStateException();
15708
    }
15709
 
15710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15711
    public boolean isSet(_Fields field) {
15712
      if (field == null) {
15713
        throw new IllegalArgumentException();
15714
      }
15715
 
15716
      switch (field) {
15717
      case ITEM_ID:
15718
        return isSetItemId();
15719
      case VENDOR_ID:
15720
        return isSetVendorId();
15721
      }
15722
      throw new IllegalStateException();
15723
    }
15724
 
15725
    @Override
15726
    public boolean equals(Object that) {
15727
      if (that == null)
15728
        return false;
15729
      if (that instanceof getItemPricing_args)
15730
        return this.equals((getItemPricing_args)that);
15731
      return false;
15732
    }
15733
 
15734
    public boolean equals(getItemPricing_args that) {
15735
      if (that == null)
15736
        return false;
15737
 
15738
      boolean this_present_itemId = true;
15739
      boolean that_present_itemId = true;
15740
      if (this_present_itemId || that_present_itemId) {
15741
        if (!(this_present_itemId && that_present_itemId))
15742
          return false;
15743
        if (this.itemId != that.itemId)
15744
          return false;
15745
      }
15746
 
15747
      boolean this_present_vendorId = true;
15748
      boolean that_present_vendorId = true;
15749
      if (this_present_vendorId || that_present_vendorId) {
15750
        if (!(this_present_vendorId && that_present_vendorId))
15751
          return false;
15752
        if (this.vendorId != that.vendorId)
15753
          return false;
15754
      }
15755
 
15756
      return true;
15757
    }
15758
 
15759
    @Override
15760
    public int hashCode() {
15761
      return 0;
15762
    }
15763
 
15764
    public int compareTo(getItemPricing_args other) {
15765
      if (!getClass().equals(other.getClass())) {
15766
        return getClass().getName().compareTo(other.getClass().getName());
15767
      }
15768
 
15769
      int lastComparison = 0;
15770
      getItemPricing_args typedOther = (getItemPricing_args)other;
15771
 
15772
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15773
      if (lastComparison != 0) {
15774
        return lastComparison;
15775
      }
15776
      if (isSetItemId()) {
15777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15778
        if (lastComparison != 0) {
15779
          return lastComparison;
15780
        }
15781
      }
15782
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
15783
      if (lastComparison != 0) {
15784
        return lastComparison;
15785
      }
15786
      if (isSetVendorId()) {
15787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
15788
        if (lastComparison != 0) {
15789
          return lastComparison;
15790
        }
15791
      }
15792
      return 0;
15793
    }
15794
 
15795
    public _Fields fieldForId(int fieldId) {
15796
      return _Fields.findByThriftId(fieldId);
15797
    }
15798
 
15799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15800
      org.apache.thrift.protocol.TField field;
15801
      iprot.readStructBegin();
15802
      while (true)
15803
      {
15804
        field = iprot.readFieldBegin();
15805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15806
          break;
15807
        }
15808
        switch (field.id) {
15809
          case 1: // ITEM_ID
15810
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15811
              this.itemId = iprot.readI64();
15812
              setItemIdIsSet(true);
15813
            } else { 
15814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15815
            }
15816
            break;
15817
          case 2: // VENDOR_ID
15818
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15819
              this.vendorId = iprot.readI64();
15820
              setVendorIdIsSet(true);
15821
            } else { 
15822
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15823
            }
15824
            break;
15825
          default:
15826
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15827
        }
15828
        iprot.readFieldEnd();
15829
      }
15830
      iprot.readStructEnd();
15831
      validate();
15832
    }
15833
 
15834
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15835
      validate();
15836
 
15837
      oprot.writeStructBegin(STRUCT_DESC);
15838
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15839
      oprot.writeI64(this.itemId);
15840
      oprot.writeFieldEnd();
15841
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
15842
      oprot.writeI64(this.vendorId);
15843
      oprot.writeFieldEnd();
15844
      oprot.writeFieldStop();
15845
      oprot.writeStructEnd();
15846
    }
15847
 
15848
    @Override
15849
    public String toString() {
15850
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
15851
      boolean first = true;
15852
 
15853
      sb.append("itemId:");
15854
      sb.append(this.itemId);
15855
      first = false;
15856
      if (!first) sb.append(", ");
15857
      sb.append("vendorId:");
15858
      sb.append(this.vendorId);
15859
      first = false;
15860
      sb.append(")");
15861
      return sb.toString();
15862
    }
15863
 
15864
    public void validate() throws org.apache.thrift.TException {
15865
      // check for required fields
15866
    }
15867
 
15868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15869
      try {
15870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15871
      } catch (org.apache.thrift.TException te) {
15872
        throw new java.io.IOException(te);
15873
      }
15874
    }
15875
 
15876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15877
      try {
15878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15879
      } catch (org.apache.thrift.TException te) {
15880
        throw new java.io.IOException(te);
15881
      }
15882
    }
15883
 
15884
  }
15885
 
15886
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
15887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
15888
 
15889
    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);
15890
    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);
15891
 
15892
    private VendorItemPricing success; // required
15893
    private InventoryServiceException cex; // required
15894
 
15895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15897
      SUCCESS((short)0, "success"),
15898
      CEX((short)1, "cex");
15899
 
15900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15901
 
15902
      static {
15903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15904
          byName.put(field.getFieldName(), field);
15905
        }
15906
      }
15907
 
15908
      /**
15909
       * Find the _Fields constant that matches fieldId, or null if its not found.
15910
       */
15911
      public static _Fields findByThriftId(int fieldId) {
15912
        switch(fieldId) {
15913
          case 0: // SUCCESS
15914
            return SUCCESS;
15915
          case 1: // CEX
15916
            return CEX;
15917
          default:
15918
            return null;
15919
        }
15920
      }
15921
 
15922
      /**
15923
       * Find the _Fields constant that matches fieldId, throwing an exception
15924
       * if it is not found.
15925
       */
15926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15927
        _Fields fields = findByThriftId(fieldId);
15928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15929
        return fields;
15930
      }
15931
 
15932
      /**
15933
       * Find the _Fields constant that matches name, or null if its not found.
15934
       */
15935
      public static _Fields findByName(String name) {
15936
        return byName.get(name);
15937
      }
15938
 
15939
      private final short _thriftId;
15940
      private final String _fieldName;
15941
 
15942
      _Fields(short thriftId, String fieldName) {
15943
        _thriftId = thriftId;
15944
        _fieldName = fieldName;
15945
      }
15946
 
15947
      public short getThriftFieldId() {
15948
        return _thriftId;
15949
      }
15950
 
15951
      public String getFieldName() {
15952
        return _fieldName;
15953
      }
15954
    }
15955
 
15956
    // isset id assignments
15957
 
15958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15959
    static {
15960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15962
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
15963
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
15967
    }
15968
 
15969
    public getItemPricing_result() {
15970
    }
15971
 
15972
    public getItemPricing_result(
15973
      VendorItemPricing success,
15974
      InventoryServiceException cex)
15975
    {
15976
      this();
15977
      this.success = success;
15978
      this.cex = cex;
15979
    }
15980
 
15981
    /**
15982
     * Performs a deep copy on <i>other</i>.
15983
     */
15984
    public getItemPricing_result(getItemPricing_result other) {
15985
      if (other.isSetSuccess()) {
15986
        this.success = new VendorItemPricing(other.success);
15987
      }
15988
      if (other.isSetCex()) {
15989
        this.cex = new InventoryServiceException(other.cex);
15990
      }
15991
    }
15992
 
15993
    public getItemPricing_result deepCopy() {
15994
      return new getItemPricing_result(this);
15995
    }
15996
 
15997
    @Override
15998
    public void clear() {
15999
      this.success = null;
16000
      this.cex = null;
16001
    }
16002
 
16003
    public VendorItemPricing getSuccess() {
16004
      return this.success;
16005
    }
16006
 
16007
    public void setSuccess(VendorItemPricing success) {
16008
      this.success = success;
16009
    }
16010
 
16011
    public void unsetSuccess() {
16012
      this.success = null;
16013
    }
16014
 
16015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16016
    public boolean isSetSuccess() {
16017
      return this.success != null;
16018
    }
16019
 
16020
    public void setSuccessIsSet(boolean value) {
16021
      if (!value) {
16022
        this.success = null;
16023
      }
16024
    }
16025
 
16026
    public InventoryServiceException getCex() {
16027
      return this.cex;
16028
    }
16029
 
16030
    public void setCex(InventoryServiceException cex) {
16031
      this.cex = cex;
16032
    }
16033
 
16034
    public void unsetCex() {
16035
      this.cex = null;
16036
    }
16037
 
16038
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16039
    public boolean isSetCex() {
16040
      return this.cex != null;
16041
    }
16042
 
16043
    public void setCexIsSet(boolean value) {
16044
      if (!value) {
16045
        this.cex = null;
16046
      }
16047
    }
16048
 
16049
    public void setFieldValue(_Fields field, Object value) {
16050
      switch (field) {
16051
      case SUCCESS:
16052
        if (value == null) {
16053
          unsetSuccess();
16054
        } else {
16055
          setSuccess((VendorItemPricing)value);
16056
        }
16057
        break;
16058
 
16059
      case CEX:
16060
        if (value == null) {
16061
          unsetCex();
16062
        } else {
16063
          setCex((InventoryServiceException)value);
16064
        }
16065
        break;
16066
 
16067
      }
16068
    }
16069
 
16070
    public Object getFieldValue(_Fields field) {
16071
      switch (field) {
16072
      case SUCCESS:
16073
        return getSuccess();
16074
 
16075
      case CEX:
16076
        return getCex();
16077
 
16078
      }
16079
      throw new IllegalStateException();
16080
    }
16081
 
16082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16083
    public boolean isSet(_Fields field) {
16084
      if (field == null) {
16085
        throw new IllegalArgumentException();
16086
      }
16087
 
16088
      switch (field) {
16089
      case SUCCESS:
16090
        return isSetSuccess();
16091
      case CEX:
16092
        return isSetCex();
16093
      }
16094
      throw new IllegalStateException();
16095
    }
16096
 
16097
    @Override
16098
    public boolean equals(Object that) {
16099
      if (that == null)
16100
        return false;
16101
      if (that instanceof getItemPricing_result)
16102
        return this.equals((getItemPricing_result)that);
16103
      return false;
16104
    }
16105
 
16106
    public boolean equals(getItemPricing_result that) {
16107
      if (that == null)
16108
        return false;
16109
 
16110
      boolean this_present_success = true && this.isSetSuccess();
16111
      boolean that_present_success = true && that.isSetSuccess();
16112
      if (this_present_success || that_present_success) {
16113
        if (!(this_present_success && that_present_success))
16114
          return false;
16115
        if (!this.success.equals(that.success))
16116
          return false;
16117
      }
16118
 
16119
      boolean this_present_cex = true && this.isSetCex();
16120
      boolean that_present_cex = true && that.isSetCex();
16121
      if (this_present_cex || that_present_cex) {
16122
        if (!(this_present_cex && that_present_cex))
16123
          return false;
16124
        if (!this.cex.equals(that.cex))
16125
          return false;
16126
      }
16127
 
16128
      return true;
16129
    }
16130
 
16131
    @Override
16132
    public int hashCode() {
16133
      return 0;
16134
    }
16135
 
16136
    public int compareTo(getItemPricing_result other) {
16137
      if (!getClass().equals(other.getClass())) {
16138
        return getClass().getName().compareTo(other.getClass().getName());
16139
      }
16140
 
16141
      int lastComparison = 0;
16142
      getItemPricing_result typedOther = (getItemPricing_result)other;
16143
 
16144
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16145
      if (lastComparison != 0) {
16146
        return lastComparison;
16147
      }
16148
      if (isSetSuccess()) {
16149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16150
        if (lastComparison != 0) {
16151
          return lastComparison;
16152
        }
16153
      }
16154
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16155
      if (lastComparison != 0) {
16156
        return lastComparison;
16157
      }
16158
      if (isSetCex()) {
16159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16160
        if (lastComparison != 0) {
16161
          return lastComparison;
16162
        }
16163
      }
16164
      return 0;
16165
    }
16166
 
16167
    public _Fields fieldForId(int fieldId) {
16168
      return _Fields.findByThriftId(fieldId);
16169
    }
16170
 
16171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16172
      org.apache.thrift.protocol.TField field;
16173
      iprot.readStructBegin();
16174
      while (true)
16175
      {
16176
        field = iprot.readFieldBegin();
16177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16178
          break;
16179
        }
16180
        switch (field.id) {
16181
          case 0: // SUCCESS
16182
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16183
              this.success = new VendorItemPricing();
16184
              this.success.read(iprot);
16185
            } else { 
16186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16187
            }
16188
            break;
16189
          case 1: // CEX
16190
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16191
              this.cex = new InventoryServiceException();
16192
              this.cex.read(iprot);
16193
            } else { 
16194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16195
            }
16196
            break;
16197
          default:
16198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16199
        }
16200
        iprot.readFieldEnd();
16201
      }
16202
      iprot.readStructEnd();
16203
      validate();
16204
    }
16205
 
16206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16207
      oprot.writeStructBegin(STRUCT_DESC);
16208
 
16209
      if (this.isSetSuccess()) {
16210
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16211
        this.success.write(oprot);
16212
        oprot.writeFieldEnd();
16213
      } else if (this.isSetCex()) {
16214
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16215
        this.cex.write(oprot);
16216
        oprot.writeFieldEnd();
16217
      }
16218
      oprot.writeFieldStop();
16219
      oprot.writeStructEnd();
16220
    }
16221
 
16222
    @Override
16223
    public String toString() {
16224
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
16225
      boolean first = true;
16226
 
16227
      sb.append("success:");
16228
      if (this.success == null) {
16229
        sb.append("null");
16230
      } else {
16231
        sb.append(this.success);
16232
      }
16233
      first = false;
16234
      if (!first) sb.append(", ");
16235
      sb.append("cex:");
16236
      if (this.cex == null) {
16237
        sb.append("null");
16238
      } else {
16239
        sb.append(this.cex);
16240
      }
16241
      first = false;
16242
      sb.append(")");
16243
      return sb.toString();
16244
    }
16245
 
16246
    public void validate() throws org.apache.thrift.TException {
16247
      // check for required fields
16248
    }
16249
 
16250
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16251
      try {
16252
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16253
      } catch (org.apache.thrift.TException te) {
16254
        throw new java.io.IOException(te);
16255
      }
16256
    }
16257
 
16258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16259
      try {
16260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16261
      } catch (org.apache.thrift.TException te) {
16262
        throw new java.io.IOException(te);
16263
      }
16264
    }
16265
 
16266
  }
16267
 
16268
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
16270
 
16271
    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);
16272
 
16273
    private long itemId; // required
16274
 
16275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16277
      ITEM_ID((short)1, "itemId");
16278
 
16279
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16280
 
16281
      static {
16282
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16283
          byName.put(field.getFieldName(), field);
16284
        }
16285
      }
16286
 
16287
      /**
16288
       * Find the _Fields constant that matches fieldId, or null if its not found.
16289
       */
16290
      public static _Fields findByThriftId(int fieldId) {
16291
        switch(fieldId) {
16292
          case 1: // ITEM_ID
16293
            return ITEM_ID;
16294
          default:
16295
            return null;
16296
        }
16297
      }
16298
 
16299
      /**
16300
       * Find the _Fields constant that matches fieldId, throwing an exception
16301
       * if it is not found.
16302
       */
16303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16304
        _Fields fields = findByThriftId(fieldId);
16305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16306
        return fields;
16307
      }
16308
 
16309
      /**
16310
       * Find the _Fields constant that matches name, or null if its not found.
16311
       */
16312
      public static _Fields findByName(String name) {
16313
        return byName.get(name);
16314
      }
16315
 
16316
      private final short _thriftId;
16317
      private final String _fieldName;
16318
 
16319
      _Fields(short thriftId, String fieldName) {
16320
        _thriftId = thriftId;
16321
        _fieldName = fieldName;
16322
      }
16323
 
16324
      public short getThriftFieldId() {
16325
        return _thriftId;
16326
      }
16327
 
16328
      public String getFieldName() {
16329
        return _fieldName;
16330
      }
16331
    }
16332
 
16333
    // isset id assignments
16334
    private static final int __ITEMID_ISSET_ID = 0;
16335
    private BitSet __isset_bit_vector = new BitSet(1);
16336
 
16337
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16338
    static {
16339
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16340
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16342
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16343
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
16344
    }
16345
 
16346
    public getAllItemPricing_args() {
16347
    }
16348
 
16349
    public getAllItemPricing_args(
16350
      long itemId)
16351
    {
16352
      this();
16353
      this.itemId = itemId;
16354
      setItemIdIsSet(true);
16355
    }
16356
 
16357
    /**
16358
     * Performs a deep copy on <i>other</i>.
16359
     */
16360
    public getAllItemPricing_args(getAllItemPricing_args other) {
16361
      __isset_bit_vector.clear();
16362
      __isset_bit_vector.or(other.__isset_bit_vector);
16363
      this.itemId = other.itemId;
16364
    }
16365
 
16366
    public getAllItemPricing_args deepCopy() {
16367
      return new getAllItemPricing_args(this);
16368
    }
16369
 
16370
    @Override
16371
    public void clear() {
16372
      setItemIdIsSet(false);
16373
      this.itemId = 0;
16374
    }
16375
 
16376
    public long getItemId() {
16377
      return this.itemId;
16378
    }
16379
 
16380
    public void setItemId(long itemId) {
16381
      this.itemId = itemId;
16382
      setItemIdIsSet(true);
16383
    }
16384
 
16385
    public void unsetItemId() {
16386
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16387
    }
16388
 
16389
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16390
    public boolean isSetItemId() {
16391
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16392
    }
16393
 
16394
    public void setItemIdIsSet(boolean value) {
16395
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16396
    }
16397
 
16398
    public void setFieldValue(_Fields field, Object value) {
16399
      switch (field) {
16400
      case ITEM_ID:
16401
        if (value == null) {
16402
          unsetItemId();
16403
        } else {
16404
          setItemId((Long)value);
16405
        }
16406
        break;
16407
 
16408
      }
16409
    }
16410
 
16411
    public Object getFieldValue(_Fields field) {
16412
      switch (field) {
16413
      case ITEM_ID:
16414
        return Long.valueOf(getItemId());
16415
 
16416
      }
16417
      throw new IllegalStateException();
16418
    }
16419
 
16420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16421
    public boolean isSet(_Fields field) {
16422
      if (field == null) {
16423
        throw new IllegalArgumentException();
16424
      }
16425
 
16426
      switch (field) {
16427
      case ITEM_ID:
16428
        return isSetItemId();
16429
      }
16430
      throw new IllegalStateException();
16431
    }
16432
 
16433
    @Override
16434
    public boolean equals(Object that) {
16435
      if (that == null)
16436
        return false;
16437
      if (that instanceof getAllItemPricing_args)
16438
        return this.equals((getAllItemPricing_args)that);
16439
      return false;
16440
    }
16441
 
16442
    public boolean equals(getAllItemPricing_args that) {
16443
      if (that == null)
16444
        return false;
16445
 
16446
      boolean this_present_itemId = true;
16447
      boolean that_present_itemId = true;
16448
      if (this_present_itemId || that_present_itemId) {
16449
        if (!(this_present_itemId && that_present_itemId))
16450
          return false;
16451
        if (this.itemId != that.itemId)
16452
          return false;
16453
      }
16454
 
16455
      return true;
16456
    }
16457
 
16458
    @Override
16459
    public int hashCode() {
16460
      return 0;
16461
    }
16462
 
16463
    public int compareTo(getAllItemPricing_args other) {
16464
      if (!getClass().equals(other.getClass())) {
16465
        return getClass().getName().compareTo(other.getClass().getName());
16466
      }
16467
 
16468
      int lastComparison = 0;
16469
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
16470
 
16471
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16472
      if (lastComparison != 0) {
16473
        return lastComparison;
16474
      }
16475
      if (isSetItemId()) {
16476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16477
        if (lastComparison != 0) {
16478
          return lastComparison;
16479
        }
16480
      }
16481
      return 0;
16482
    }
16483
 
16484
    public _Fields fieldForId(int fieldId) {
16485
      return _Fields.findByThriftId(fieldId);
16486
    }
16487
 
16488
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16489
      org.apache.thrift.protocol.TField field;
16490
      iprot.readStructBegin();
16491
      while (true)
16492
      {
16493
        field = iprot.readFieldBegin();
16494
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16495
          break;
16496
        }
16497
        switch (field.id) {
16498
          case 1: // ITEM_ID
16499
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16500
              this.itemId = iprot.readI64();
16501
              setItemIdIsSet(true);
16502
            } else { 
16503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16504
            }
16505
            break;
16506
          default:
16507
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16508
        }
16509
        iprot.readFieldEnd();
16510
      }
16511
      iprot.readStructEnd();
16512
      validate();
16513
    }
16514
 
16515
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16516
      validate();
16517
 
16518
      oprot.writeStructBegin(STRUCT_DESC);
16519
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16520
      oprot.writeI64(this.itemId);
16521
      oprot.writeFieldEnd();
16522
      oprot.writeFieldStop();
16523
      oprot.writeStructEnd();
16524
    }
16525
 
16526
    @Override
16527
    public String toString() {
16528
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
16529
      boolean first = true;
16530
 
16531
      sb.append("itemId:");
16532
      sb.append(this.itemId);
16533
      first = false;
16534
      sb.append(")");
16535
      return sb.toString();
16536
    }
16537
 
16538
    public void validate() throws org.apache.thrift.TException {
16539
      // check for required fields
16540
    }
16541
 
16542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16543
      try {
16544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16545
      } catch (org.apache.thrift.TException te) {
16546
        throw new java.io.IOException(te);
16547
      }
16548
    }
16549
 
16550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16551
      try {
16552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16553
      } catch (org.apache.thrift.TException te) {
16554
        throw new java.io.IOException(te);
16555
      }
16556
    }
16557
 
16558
  }
16559
 
16560
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
16562
 
16563
    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);
16564
    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);
16565
 
16566
    private List<VendorItemPricing> success; // required
16567
    private InventoryServiceException cex; // required
16568
 
16569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16571
      SUCCESS((short)0, "success"),
16572
      CEX((short)1, "cex");
16573
 
16574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16575
 
16576
      static {
16577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16578
          byName.put(field.getFieldName(), field);
16579
        }
16580
      }
16581
 
16582
      /**
16583
       * Find the _Fields constant that matches fieldId, or null if its not found.
16584
       */
16585
      public static _Fields findByThriftId(int fieldId) {
16586
        switch(fieldId) {
16587
          case 0: // SUCCESS
16588
            return SUCCESS;
16589
          case 1: // CEX
16590
            return CEX;
16591
          default:
16592
            return null;
16593
        }
16594
      }
16595
 
16596
      /**
16597
       * Find the _Fields constant that matches fieldId, throwing an exception
16598
       * if it is not found.
16599
       */
16600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16601
        _Fields fields = findByThriftId(fieldId);
16602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16603
        return fields;
16604
      }
16605
 
16606
      /**
16607
       * Find the _Fields constant that matches name, or null if its not found.
16608
       */
16609
      public static _Fields findByName(String name) {
16610
        return byName.get(name);
16611
      }
16612
 
16613
      private final short _thriftId;
16614
      private final String _fieldName;
16615
 
16616
      _Fields(short thriftId, String fieldName) {
16617
        _thriftId = thriftId;
16618
        _fieldName = fieldName;
16619
      }
16620
 
16621
      public short getThriftFieldId() {
16622
        return _thriftId;
16623
      }
16624
 
16625
      public String getFieldName() {
16626
        return _fieldName;
16627
      }
16628
    }
16629
 
16630
    // isset id assignments
16631
 
16632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16633
    static {
16634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16635
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16636
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16637
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
16638
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
16642
    }
16643
 
16644
    public getAllItemPricing_result() {
16645
    }
16646
 
16647
    public getAllItemPricing_result(
16648
      List<VendorItemPricing> success,
16649
      InventoryServiceException cex)
16650
    {
16651
      this();
16652
      this.success = success;
16653
      this.cex = cex;
16654
    }
16655
 
16656
    /**
16657
     * Performs a deep copy on <i>other</i>.
16658
     */
16659
    public getAllItemPricing_result(getAllItemPricing_result other) {
16660
      if (other.isSetSuccess()) {
16661
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
16662
        for (VendorItemPricing other_element : other.success) {
16663
          __this__success.add(new VendorItemPricing(other_element));
16664
        }
16665
        this.success = __this__success;
16666
      }
16667
      if (other.isSetCex()) {
16668
        this.cex = new InventoryServiceException(other.cex);
16669
      }
16670
    }
16671
 
16672
    public getAllItemPricing_result deepCopy() {
16673
      return new getAllItemPricing_result(this);
16674
    }
16675
 
16676
    @Override
16677
    public void clear() {
16678
      this.success = null;
16679
      this.cex = null;
16680
    }
16681
 
16682
    public int getSuccessSize() {
16683
      return (this.success == null) ? 0 : this.success.size();
16684
    }
16685
 
16686
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
16687
      return (this.success == null) ? null : this.success.iterator();
16688
    }
16689
 
16690
    public void addToSuccess(VendorItemPricing elem) {
16691
      if (this.success == null) {
16692
        this.success = new ArrayList<VendorItemPricing>();
16693
      }
16694
      this.success.add(elem);
16695
    }
16696
 
16697
    public List<VendorItemPricing> getSuccess() {
16698
      return this.success;
16699
    }
16700
 
16701
    public void setSuccess(List<VendorItemPricing> success) {
16702
      this.success = success;
16703
    }
16704
 
16705
    public void unsetSuccess() {
16706
      this.success = null;
16707
    }
16708
 
16709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16710
    public boolean isSetSuccess() {
16711
      return this.success != null;
16712
    }
16713
 
16714
    public void setSuccessIsSet(boolean value) {
16715
      if (!value) {
16716
        this.success = null;
16717
      }
16718
    }
16719
 
16720
    public InventoryServiceException getCex() {
16721
      return this.cex;
16722
    }
16723
 
16724
    public void setCex(InventoryServiceException cex) {
16725
      this.cex = cex;
16726
    }
16727
 
16728
    public void unsetCex() {
16729
      this.cex = null;
16730
    }
16731
 
16732
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16733
    public boolean isSetCex() {
16734
      return this.cex != null;
16735
    }
16736
 
16737
    public void setCexIsSet(boolean value) {
16738
      if (!value) {
16739
        this.cex = null;
16740
      }
16741
    }
16742
 
16743
    public void setFieldValue(_Fields field, Object value) {
16744
      switch (field) {
16745
      case SUCCESS:
16746
        if (value == null) {
16747
          unsetSuccess();
16748
        } else {
16749
          setSuccess((List<VendorItemPricing>)value);
16750
        }
16751
        break;
16752
 
16753
      case CEX:
16754
        if (value == null) {
16755
          unsetCex();
16756
        } else {
16757
          setCex((InventoryServiceException)value);
16758
        }
16759
        break;
16760
 
16761
      }
16762
    }
16763
 
16764
    public Object getFieldValue(_Fields field) {
16765
      switch (field) {
16766
      case SUCCESS:
16767
        return getSuccess();
16768
 
16769
      case CEX:
16770
        return getCex();
16771
 
16772
      }
16773
      throw new IllegalStateException();
16774
    }
16775
 
16776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16777
    public boolean isSet(_Fields field) {
16778
      if (field == null) {
16779
        throw new IllegalArgumentException();
16780
      }
16781
 
16782
      switch (field) {
16783
      case SUCCESS:
16784
        return isSetSuccess();
16785
      case CEX:
16786
        return isSetCex();
16787
      }
16788
      throw new IllegalStateException();
16789
    }
16790
 
16791
    @Override
16792
    public boolean equals(Object that) {
16793
      if (that == null)
16794
        return false;
16795
      if (that instanceof getAllItemPricing_result)
16796
        return this.equals((getAllItemPricing_result)that);
16797
      return false;
16798
    }
16799
 
16800
    public boolean equals(getAllItemPricing_result that) {
16801
      if (that == null)
16802
        return false;
16803
 
16804
      boolean this_present_success = true && this.isSetSuccess();
16805
      boolean that_present_success = true && that.isSetSuccess();
16806
      if (this_present_success || that_present_success) {
16807
        if (!(this_present_success && that_present_success))
16808
          return false;
16809
        if (!this.success.equals(that.success))
16810
          return false;
16811
      }
16812
 
16813
      boolean this_present_cex = true && this.isSetCex();
16814
      boolean that_present_cex = true && that.isSetCex();
16815
      if (this_present_cex || that_present_cex) {
16816
        if (!(this_present_cex && that_present_cex))
16817
          return false;
16818
        if (!this.cex.equals(that.cex))
16819
          return false;
16820
      }
16821
 
16822
      return true;
16823
    }
16824
 
16825
    @Override
16826
    public int hashCode() {
16827
      return 0;
16828
    }
16829
 
16830
    public int compareTo(getAllItemPricing_result other) {
16831
      if (!getClass().equals(other.getClass())) {
16832
        return getClass().getName().compareTo(other.getClass().getName());
16833
      }
16834
 
16835
      int lastComparison = 0;
16836
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
16837
 
16838
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16839
      if (lastComparison != 0) {
16840
        return lastComparison;
16841
      }
16842
      if (isSetSuccess()) {
16843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16844
        if (lastComparison != 0) {
16845
          return lastComparison;
16846
        }
16847
      }
16848
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16849
      if (lastComparison != 0) {
16850
        return lastComparison;
16851
      }
16852
      if (isSetCex()) {
16853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16854
        if (lastComparison != 0) {
16855
          return lastComparison;
16856
        }
16857
      }
16858
      return 0;
16859
    }
16860
 
16861
    public _Fields fieldForId(int fieldId) {
16862
      return _Fields.findByThriftId(fieldId);
16863
    }
16864
 
16865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16866
      org.apache.thrift.protocol.TField field;
16867
      iprot.readStructBegin();
16868
      while (true)
16869
      {
16870
        field = iprot.readFieldBegin();
16871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16872
          break;
16873
        }
16874
        switch (field.id) {
16875
          case 0: // SUCCESS
16876
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16877
              {
16878
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16879
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
16880
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16881
                {
16882
                  VendorItemPricing _elem34; // required
16883
                  _elem34 = new VendorItemPricing();
16884
                  _elem34.read(iprot);
16885
                  this.success.add(_elem34);
16886
                }
16887
                iprot.readListEnd();
16888
              }
16889
            } else { 
16890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16891
            }
16892
            break;
16893
          case 1: // CEX
16894
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16895
              this.cex = new InventoryServiceException();
16896
              this.cex.read(iprot);
16897
            } else { 
16898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16899
            }
16900
            break;
16901
          default:
16902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16903
        }
16904
        iprot.readFieldEnd();
16905
      }
16906
      iprot.readStructEnd();
16907
      validate();
16908
    }
16909
 
16910
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16911
      oprot.writeStructBegin(STRUCT_DESC);
16912
 
16913
      if (this.isSetSuccess()) {
16914
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16915
        {
16916
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16917
          for (VendorItemPricing _iter35 : this.success)
16918
          {
16919
            _iter35.write(oprot);
16920
          }
16921
          oprot.writeListEnd();
16922
        }
16923
        oprot.writeFieldEnd();
16924
      } else if (this.isSetCex()) {
16925
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16926
        this.cex.write(oprot);
16927
        oprot.writeFieldEnd();
16928
      }
16929
      oprot.writeFieldStop();
16930
      oprot.writeStructEnd();
16931
    }
16932
 
16933
    @Override
16934
    public String toString() {
16935
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
16936
      boolean first = true;
16937
 
16938
      sb.append("success:");
16939
      if (this.success == null) {
16940
        sb.append("null");
16941
      } else {
16942
        sb.append(this.success);
16943
      }
16944
      first = false;
16945
      if (!first) sb.append(", ");
16946
      sb.append("cex:");
16947
      if (this.cex == null) {
16948
        sb.append("null");
16949
      } else {
16950
        sb.append(this.cex);
16951
      }
16952
      first = false;
16953
      sb.append(")");
16954
      return sb.toString();
16955
    }
16956
 
16957
    public void validate() throws org.apache.thrift.TException {
16958
      // check for required fields
16959
    }
16960
 
16961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16962
      try {
16963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16964
      } catch (org.apache.thrift.TException te) {
16965
        throw new java.io.IOException(te);
16966
      }
16967
    }
16968
 
16969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16970
      try {
16971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16972
      } catch (org.apache.thrift.TException te) {
16973
        throw new java.io.IOException(te);
16974
      }
16975
    }
16976
 
16977
  }
16978
 
16979
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
16981
 
16982
    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);
16983
 
16984
    private VendorItemPricing vendorItemPricing; // required
16985
 
16986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16988
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
16989
 
16990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16991
 
16992
      static {
16993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16994
          byName.put(field.getFieldName(), field);
16995
        }
16996
      }
16997
 
16998
      /**
16999
       * Find the _Fields constant that matches fieldId, or null if its not found.
17000
       */
17001
      public static _Fields findByThriftId(int fieldId) {
17002
        switch(fieldId) {
17003
          case 1: // VENDOR_ITEM_PRICING
17004
            return VENDOR_ITEM_PRICING;
17005
          default:
17006
            return null;
17007
        }
17008
      }
17009
 
17010
      /**
17011
       * Find the _Fields constant that matches fieldId, throwing an exception
17012
       * if it is not found.
17013
       */
17014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17015
        _Fields fields = findByThriftId(fieldId);
17016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17017
        return fields;
17018
      }
17019
 
17020
      /**
17021
       * Find the _Fields constant that matches name, or null if its not found.
17022
       */
17023
      public static _Fields findByName(String name) {
17024
        return byName.get(name);
17025
      }
17026
 
17027
      private final short _thriftId;
17028
      private final String _fieldName;
17029
 
17030
      _Fields(short thriftId, String fieldName) {
17031
        _thriftId = thriftId;
17032
        _fieldName = fieldName;
17033
      }
17034
 
17035
      public short getThriftFieldId() {
17036
        return _thriftId;
17037
      }
17038
 
17039
      public String getFieldName() {
17040
        return _fieldName;
17041
      }
17042
    }
17043
 
17044
    // isset id assignments
17045
 
17046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17047
    static {
17048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17049
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17050
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
17051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
17053
    }
17054
 
17055
    public addVendorItemPricing_args() {
17056
    }
17057
 
17058
    public addVendorItemPricing_args(
17059
      VendorItemPricing vendorItemPricing)
17060
    {
17061
      this();
17062
      this.vendorItemPricing = vendorItemPricing;
17063
    }
17064
 
17065
    /**
17066
     * Performs a deep copy on <i>other</i>.
17067
     */
17068
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
17069
      if (other.isSetVendorItemPricing()) {
17070
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
17071
      }
17072
    }
17073
 
17074
    public addVendorItemPricing_args deepCopy() {
17075
      return new addVendorItemPricing_args(this);
17076
    }
17077
 
17078
    @Override
17079
    public void clear() {
17080
      this.vendorItemPricing = null;
17081
    }
17082
 
17083
    public VendorItemPricing getVendorItemPricing() {
17084
      return this.vendorItemPricing;
17085
    }
17086
 
17087
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
17088
      this.vendorItemPricing = vendorItemPricing;
17089
    }
17090
 
17091
    public void unsetVendorItemPricing() {
17092
      this.vendorItemPricing = null;
17093
    }
17094
 
17095
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
17096
    public boolean isSetVendorItemPricing() {
17097
      return this.vendorItemPricing != null;
17098
    }
17099
 
17100
    public void setVendorItemPricingIsSet(boolean value) {
17101
      if (!value) {
17102
        this.vendorItemPricing = null;
17103
      }
17104
    }
17105
 
17106
    public void setFieldValue(_Fields field, Object value) {
17107
      switch (field) {
17108
      case VENDOR_ITEM_PRICING:
17109
        if (value == null) {
17110
          unsetVendorItemPricing();
17111
        } else {
17112
          setVendorItemPricing((VendorItemPricing)value);
17113
        }
17114
        break;
17115
 
17116
      }
17117
    }
17118
 
17119
    public Object getFieldValue(_Fields field) {
17120
      switch (field) {
17121
      case VENDOR_ITEM_PRICING:
17122
        return getVendorItemPricing();
17123
 
17124
      }
17125
      throw new IllegalStateException();
17126
    }
17127
 
17128
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17129
    public boolean isSet(_Fields field) {
17130
      if (field == null) {
17131
        throw new IllegalArgumentException();
17132
      }
17133
 
17134
      switch (field) {
17135
      case VENDOR_ITEM_PRICING:
17136
        return isSetVendorItemPricing();
17137
      }
17138
      throw new IllegalStateException();
17139
    }
17140
 
17141
    @Override
17142
    public boolean equals(Object that) {
17143
      if (that == null)
17144
        return false;
17145
      if (that instanceof addVendorItemPricing_args)
17146
        return this.equals((addVendorItemPricing_args)that);
17147
      return false;
17148
    }
17149
 
17150
    public boolean equals(addVendorItemPricing_args that) {
17151
      if (that == null)
17152
        return false;
17153
 
17154
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
17155
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
17156
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
17157
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
17158
          return false;
17159
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
17160
          return false;
17161
      }
17162
 
17163
      return true;
17164
    }
17165
 
17166
    @Override
17167
    public int hashCode() {
17168
      return 0;
17169
    }
17170
 
17171
    public int compareTo(addVendorItemPricing_args other) {
17172
      if (!getClass().equals(other.getClass())) {
17173
        return getClass().getName().compareTo(other.getClass().getName());
17174
      }
17175
 
17176
      int lastComparison = 0;
17177
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
17178
 
17179
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
17180
      if (lastComparison != 0) {
17181
        return lastComparison;
17182
      }
17183
      if (isSetVendorItemPricing()) {
17184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
17185
        if (lastComparison != 0) {
17186
          return lastComparison;
17187
        }
17188
      }
17189
      return 0;
17190
    }
17191
 
17192
    public _Fields fieldForId(int fieldId) {
17193
      return _Fields.findByThriftId(fieldId);
17194
    }
17195
 
17196
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17197
      org.apache.thrift.protocol.TField field;
17198
      iprot.readStructBegin();
17199
      while (true)
17200
      {
17201
        field = iprot.readFieldBegin();
17202
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17203
          break;
17204
        }
17205
        switch (field.id) {
17206
          case 1: // VENDOR_ITEM_PRICING
17207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17208
              this.vendorItemPricing = new VendorItemPricing();
17209
              this.vendorItemPricing.read(iprot);
17210
            } else { 
17211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17212
            }
17213
            break;
17214
          default:
17215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17216
        }
17217
        iprot.readFieldEnd();
17218
      }
17219
      iprot.readStructEnd();
17220
      validate();
17221
    }
17222
 
17223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17224
      validate();
17225
 
17226
      oprot.writeStructBegin(STRUCT_DESC);
17227
      if (this.vendorItemPricing != null) {
17228
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
17229
        this.vendorItemPricing.write(oprot);
17230
        oprot.writeFieldEnd();
17231
      }
17232
      oprot.writeFieldStop();
17233
      oprot.writeStructEnd();
17234
    }
17235
 
17236
    @Override
17237
    public String toString() {
17238
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
17239
      boolean first = true;
17240
 
17241
      sb.append("vendorItemPricing:");
17242
      if (this.vendorItemPricing == null) {
17243
        sb.append("null");
17244
      } else {
17245
        sb.append(this.vendorItemPricing);
17246
      }
17247
      first = false;
17248
      sb.append(")");
17249
      return sb.toString();
17250
    }
17251
 
17252
    public void validate() throws org.apache.thrift.TException {
17253
      // check for required fields
17254
    }
17255
 
17256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17257
      try {
17258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17259
      } catch (org.apache.thrift.TException te) {
17260
        throw new java.io.IOException(te);
17261
      }
17262
    }
17263
 
17264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17265
      try {
17266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17267
      } catch (org.apache.thrift.TException te) {
17268
        throw new java.io.IOException(te);
17269
      }
17270
    }
17271
 
17272
  }
17273
 
17274
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
17275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
17276
 
17277
    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);
17278
 
17279
    private InventoryServiceException cex; // required
17280
 
17281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17283
      CEX((short)1, "cex");
17284
 
17285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17286
 
17287
      static {
17288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17289
          byName.put(field.getFieldName(), field);
17290
        }
17291
      }
17292
 
17293
      /**
17294
       * Find the _Fields constant that matches fieldId, or null if its not found.
17295
       */
17296
      public static _Fields findByThriftId(int fieldId) {
17297
        switch(fieldId) {
17298
          case 1: // CEX
17299
            return CEX;
17300
          default:
17301
            return null;
17302
        }
17303
      }
17304
 
17305
      /**
17306
       * Find the _Fields constant that matches fieldId, throwing an exception
17307
       * if it is not found.
17308
       */
17309
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17310
        _Fields fields = findByThriftId(fieldId);
17311
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17312
        return fields;
17313
      }
17314
 
17315
      /**
17316
       * Find the _Fields constant that matches name, or null if its not found.
17317
       */
17318
      public static _Fields findByName(String name) {
17319
        return byName.get(name);
17320
      }
17321
 
17322
      private final short _thriftId;
17323
      private final String _fieldName;
17324
 
17325
      _Fields(short thriftId, String fieldName) {
17326
        _thriftId = thriftId;
17327
        _fieldName = fieldName;
17328
      }
17329
 
17330
      public short getThriftFieldId() {
17331
        return _thriftId;
17332
      }
17333
 
17334
      public String getFieldName() {
17335
        return _fieldName;
17336
      }
17337
    }
17338
 
17339
    // isset id assignments
17340
 
17341
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17342
    static {
17343
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17344
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17346
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17347
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
17348
    }
17349
 
17350
    public addVendorItemPricing_result() {
17351
    }
17352
 
17353
    public addVendorItemPricing_result(
17354
      InventoryServiceException cex)
17355
    {
17356
      this();
17357
      this.cex = cex;
17358
    }
17359
 
17360
    /**
17361
     * Performs a deep copy on <i>other</i>.
17362
     */
17363
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
17364
      if (other.isSetCex()) {
17365
        this.cex = new InventoryServiceException(other.cex);
17366
      }
17367
    }
17368
 
17369
    public addVendorItemPricing_result deepCopy() {
17370
      return new addVendorItemPricing_result(this);
17371
    }
17372
 
17373
    @Override
17374
    public void clear() {
17375
      this.cex = null;
17376
    }
17377
 
17378
    public InventoryServiceException getCex() {
17379
      return this.cex;
17380
    }
17381
 
17382
    public void setCex(InventoryServiceException cex) {
17383
      this.cex = cex;
17384
    }
17385
 
17386
    public void unsetCex() {
17387
      this.cex = null;
17388
    }
17389
 
17390
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17391
    public boolean isSetCex() {
17392
      return this.cex != null;
17393
    }
17394
 
17395
    public void setCexIsSet(boolean value) {
17396
      if (!value) {
17397
        this.cex = null;
17398
      }
17399
    }
17400
 
17401
    public void setFieldValue(_Fields field, Object value) {
17402
      switch (field) {
17403
      case CEX:
17404
        if (value == null) {
17405
          unsetCex();
17406
        } else {
17407
          setCex((InventoryServiceException)value);
17408
        }
17409
        break;
17410
 
17411
      }
17412
    }
17413
 
17414
    public Object getFieldValue(_Fields field) {
17415
      switch (field) {
17416
      case CEX:
17417
        return getCex();
17418
 
17419
      }
17420
      throw new IllegalStateException();
17421
    }
17422
 
17423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17424
    public boolean isSet(_Fields field) {
17425
      if (field == null) {
17426
        throw new IllegalArgumentException();
17427
      }
17428
 
17429
      switch (field) {
17430
      case CEX:
17431
        return isSetCex();
17432
      }
17433
      throw new IllegalStateException();
17434
    }
17435
 
17436
    @Override
17437
    public boolean equals(Object that) {
17438
      if (that == null)
17439
        return false;
17440
      if (that instanceof addVendorItemPricing_result)
17441
        return this.equals((addVendorItemPricing_result)that);
17442
      return false;
17443
    }
17444
 
17445
    public boolean equals(addVendorItemPricing_result that) {
17446
      if (that == null)
17447
        return false;
17448
 
17449
      boolean this_present_cex = true && this.isSetCex();
17450
      boolean that_present_cex = true && that.isSetCex();
17451
      if (this_present_cex || that_present_cex) {
17452
        if (!(this_present_cex && that_present_cex))
17453
          return false;
17454
        if (!this.cex.equals(that.cex))
17455
          return false;
17456
      }
17457
 
17458
      return true;
17459
    }
17460
 
17461
    @Override
17462
    public int hashCode() {
17463
      return 0;
17464
    }
17465
 
17466
    public int compareTo(addVendorItemPricing_result other) {
17467
      if (!getClass().equals(other.getClass())) {
17468
        return getClass().getName().compareTo(other.getClass().getName());
17469
      }
17470
 
17471
      int lastComparison = 0;
17472
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
17473
 
17474
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17475
      if (lastComparison != 0) {
17476
        return lastComparison;
17477
      }
17478
      if (isSetCex()) {
17479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17480
        if (lastComparison != 0) {
17481
          return lastComparison;
17482
        }
17483
      }
17484
      return 0;
17485
    }
17486
 
17487
    public _Fields fieldForId(int fieldId) {
17488
      return _Fields.findByThriftId(fieldId);
17489
    }
17490
 
17491
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17492
      org.apache.thrift.protocol.TField field;
17493
      iprot.readStructBegin();
17494
      while (true)
17495
      {
17496
        field = iprot.readFieldBegin();
17497
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17498
          break;
17499
        }
17500
        switch (field.id) {
17501
          case 1: // CEX
17502
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17503
              this.cex = new InventoryServiceException();
17504
              this.cex.read(iprot);
17505
            } else { 
17506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17507
            }
17508
            break;
17509
          default:
17510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17511
        }
17512
        iprot.readFieldEnd();
17513
      }
17514
      iprot.readStructEnd();
17515
      validate();
17516
    }
17517
 
17518
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17519
      oprot.writeStructBegin(STRUCT_DESC);
17520
 
17521
      if (this.isSetCex()) {
17522
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17523
        this.cex.write(oprot);
17524
        oprot.writeFieldEnd();
17525
      }
17526
      oprot.writeFieldStop();
17527
      oprot.writeStructEnd();
17528
    }
17529
 
17530
    @Override
17531
    public String toString() {
17532
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
17533
      boolean first = true;
17534
 
17535
      sb.append("cex:");
17536
      if (this.cex == null) {
17537
        sb.append("null");
17538
      } else {
17539
        sb.append(this.cex);
17540
      }
17541
      first = false;
17542
      sb.append(")");
17543
      return sb.toString();
17544
    }
17545
 
17546
    public void validate() throws org.apache.thrift.TException {
17547
      // check for required fields
17548
    }
17549
 
17550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17551
      try {
17552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17553
      } catch (org.apache.thrift.TException te) {
17554
        throw new java.io.IOException(te);
17555
      }
17556
    }
17557
 
17558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17559
      try {
17560
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17561
      } catch (org.apache.thrift.TException te) {
17562
        throw new java.io.IOException(te);
17563
      }
17564
    }
17565
 
17566
  }
17567
 
17568
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
17569
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
17570
 
17571
    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);
17572
 
17573
    private long vendorId; // required
17574
 
17575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17577
      VENDOR_ID((short)1, "vendorId");
17578
 
17579
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17580
 
17581
      static {
17582
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17583
          byName.put(field.getFieldName(), field);
17584
        }
17585
      }
17586
 
17587
      /**
17588
       * Find the _Fields constant that matches fieldId, or null if its not found.
17589
       */
17590
      public static _Fields findByThriftId(int fieldId) {
17591
        switch(fieldId) {
17592
          case 1: // VENDOR_ID
17593
            return VENDOR_ID;
17594
          default:
17595
            return null;
17596
        }
17597
      }
17598
 
17599
      /**
17600
       * Find the _Fields constant that matches fieldId, throwing an exception
17601
       * if it is not found.
17602
       */
17603
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17604
        _Fields fields = findByThriftId(fieldId);
17605
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17606
        return fields;
17607
      }
17608
 
17609
      /**
17610
       * Find the _Fields constant that matches name, or null if its not found.
17611
       */
17612
      public static _Fields findByName(String name) {
17613
        return byName.get(name);
17614
      }
17615
 
17616
      private final short _thriftId;
17617
      private final String _fieldName;
17618
 
17619
      _Fields(short thriftId, String fieldName) {
17620
        _thriftId = thriftId;
17621
        _fieldName = fieldName;
17622
      }
17623
 
17624
      public short getThriftFieldId() {
17625
        return _thriftId;
17626
      }
17627
 
17628
      public String getFieldName() {
17629
        return _fieldName;
17630
      }
17631
    }
17632
 
17633
    // isset id assignments
17634
    private static final int __VENDORID_ISSET_ID = 0;
17635
    private BitSet __isset_bit_vector = new BitSet(1);
17636
 
17637
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17638
    static {
17639
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17640
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
17644
    }
17645
 
17646
    public getVendor_args() {
17647
    }
17648
 
17649
    public getVendor_args(
17650
      long vendorId)
17651
    {
17652
      this();
17653
      this.vendorId = vendorId;
17654
      setVendorIdIsSet(true);
17655
    }
17656
 
17657
    /**
17658
     * Performs a deep copy on <i>other</i>.
17659
     */
17660
    public getVendor_args(getVendor_args other) {
17661
      __isset_bit_vector.clear();
17662
      __isset_bit_vector.or(other.__isset_bit_vector);
17663
      this.vendorId = other.vendorId;
17664
    }
17665
 
17666
    public getVendor_args deepCopy() {
17667
      return new getVendor_args(this);
17668
    }
17669
 
17670
    @Override
17671
    public void clear() {
17672
      setVendorIdIsSet(false);
17673
      this.vendorId = 0;
17674
    }
17675
 
17676
    public long getVendorId() {
17677
      return this.vendorId;
17678
    }
17679
 
17680
    public void setVendorId(long vendorId) {
17681
      this.vendorId = vendorId;
17682
      setVendorIdIsSet(true);
17683
    }
17684
 
17685
    public void unsetVendorId() {
17686
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17687
    }
17688
 
17689
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17690
    public boolean isSetVendorId() {
17691
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17692
    }
17693
 
17694
    public void setVendorIdIsSet(boolean value) {
17695
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17696
    }
17697
 
17698
    public void setFieldValue(_Fields field, Object value) {
17699
      switch (field) {
17700
      case VENDOR_ID:
17701
        if (value == null) {
17702
          unsetVendorId();
17703
        } else {
17704
          setVendorId((Long)value);
17705
        }
17706
        break;
17707
 
17708
      }
17709
    }
17710
 
17711
    public Object getFieldValue(_Fields field) {
17712
      switch (field) {
17713
      case VENDOR_ID:
17714
        return Long.valueOf(getVendorId());
17715
 
17716
      }
17717
      throw new IllegalStateException();
17718
    }
17719
 
17720
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17721
    public boolean isSet(_Fields field) {
17722
      if (field == null) {
17723
        throw new IllegalArgumentException();
17724
      }
17725
 
17726
      switch (field) {
17727
      case VENDOR_ID:
17728
        return isSetVendorId();
17729
      }
17730
      throw new IllegalStateException();
17731
    }
17732
 
17733
    @Override
17734
    public boolean equals(Object that) {
17735
      if (that == null)
17736
        return false;
17737
      if (that instanceof getVendor_args)
17738
        return this.equals((getVendor_args)that);
17739
      return false;
17740
    }
17741
 
17742
    public boolean equals(getVendor_args that) {
17743
      if (that == null)
17744
        return false;
17745
 
17746
      boolean this_present_vendorId = true;
17747
      boolean that_present_vendorId = true;
17748
      if (this_present_vendorId || that_present_vendorId) {
17749
        if (!(this_present_vendorId && that_present_vendorId))
17750
          return false;
17751
        if (this.vendorId != that.vendorId)
17752
          return false;
17753
      }
17754
 
17755
      return true;
17756
    }
17757
 
17758
    @Override
17759
    public int hashCode() {
17760
      return 0;
17761
    }
17762
 
17763
    public int compareTo(getVendor_args other) {
17764
      if (!getClass().equals(other.getClass())) {
17765
        return getClass().getName().compareTo(other.getClass().getName());
17766
      }
17767
 
17768
      int lastComparison = 0;
17769
      getVendor_args typedOther = (getVendor_args)other;
17770
 
17771
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17772
      if (lastComparison != 0) {
17773
        return lastComparison;
17774
      }
17775
      if (isSetVendorId()) {
17776
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17777
        if (lastComparison != 0) {
17778
          return lastComparison;
17779
        }
17780
      }
17781
      return 0;
17782
    }
17783
 
17784
    public _Fields fieldForId(int fieldId) {
17785
      return _Fields.findByThriftId(fieldId);
17786
    }
17787
 
17788
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17789
      org.apache.thrift.protocol.TField field;
17790
      iprot.readStructBegin();
17791
      while (true)
17792
      {
17793
        field = iprot.readFieldBegin();
17794
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17795
          break;
17796
        }
17797
        switch (field.id) {
17798
          case 1: // VENDOR_ID
17799
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17800
              this.vendorId = iprot.readI64();
17801
              setVendorIdIsSet(true);
17802
            } else { 
17803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17804
            }
17805
            break;
17806
          default:
17807
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17808
        }
17809
        iprot.readFieldEnd();
17810
      }
17811
      iprot.readStructEnd();
17812
      validate();
17813
    }
17814
 
17815
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17816
      validate();
17817
 
17818
      oprot.writeStructBegin(STRUCT_DESC);
17819
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17820
      oprot.writeI64(this.vendorId);
17821
      oprot.writeFieldEnd();
17822
      oprot.writeFieldStop();
17823
      oprot.writeStructEnd();
17824
    }
17825
 
17826
    @Override
17827
    public String toString() {
17828
      StringBuilder sb = new StringBuilder("getVendor_args(");
17829
      boolean first = true;
17830
 
17831
      sb.append("vendorId:");
17832
      sb.append(this.vendorId);
17833
      first = false;
17834
      sb.append(")");
17835
      return sb.toString();
17836
    }
17837
 
17838
    public void validate() throws org.apache.thrift.TException {
17839
      // check for required fields
17840
    }
17841
 
17842
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17843
      try {
17844
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17845
      } catch (org.apache.thrift.TException te) {
17846
        throw new java.io.IOException(te);
17847
      }
17848
    }
17849
 
17850
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17851
      try {
17852
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17853
        __isset_bit_vector = new BitSet(1);
17854
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17855
      } catch (org.apache.thrift.TException te) {
17856
        throw new java.io.IOException(te);
17857
      }
17858
    }
17859
 
17860
  }
17861
 
17862
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
17863
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
17864
 
17865
    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);
17866
 
17867
    private Vendor success; // required
17868
 
17869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17870
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17871
      SUCCESS((short)0, "success");
17872
 
17873
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17874
 
17875
      static {
17876
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17877
          byName.put(field.getFieldName(), field);
17878
        }
17879
      }
17880
 
17881
      /**
17882
       * Find the _Fields constant that matches fieldId, or null if its not found.
17883
       */
17884
      public static _Fields findByThriftId(int fieldId) {
17885
        switch(fieldId) {
17886
          case 0: // SUCCESS
17887
            return SUCCESS;
17888
          default:
17889
            return null;
17890
        }
17891
      }
17892
 
17893
      /**
17894
       * Find the _Fields constant that matches fieldId, throwing an exception
17895
       * if it is not found.
17896
       */
17897
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17898
        _Fields fields = findByThriftId(fieldId);
17899
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17900
        return fields;
17901
      }
17902
 
17903
      /**
17904
       * Find the _Fields constant that matches name, or null if its not found.
17905
       */
17906
      public static _Fields findByName(String name) {
17907
        return byName.get(name);
17908
      }
17909
 
17910
      private final short _thriftId;
17911
      private final String _fieldName;
17912
 
17913
      _Fields(short thriftId, String fieldName) {
17914
        _thriftId = thriftId;
17915
        _fieldName = fieldName;
17916
      }
17917
 
17918
      public short getThriftFieldId() {
17919
        return _thriftId;
17920
      }
17921
 
17922
      public String getFieldName() {
17923
        return _fieldName;
17924
      }
17925
    }
17926
 
17927
    // isset id assignments
17928
 
17929
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17930
    static {
17931
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17932
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17933
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
17934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
17936
    }
17937
 
17938
    public getVendor_result() {
17939
    }
17940
 
17941
    public getVendor_result(
17942
      Vendor success)
17943
    {
17944
      this();
17945
      this.success = success;
17946
    }
17947
 
17948
    /**
17949
     * Performs a deep copy on <i>other</i>.
17950
     */
17951
    public getVendor_result(getVendor_result other) {
17952
      if (other.isSetSuccess()) {
17953
        this.success = new Vendor(other.success);
17954
      }
17955
    }
17956
 
17957
    public getVendor_result deepCopy() {
17958
      return new getVendor_result(this);
17959
    }
17960
 
17961
    @Override
17962
    public void clear() {
17963
      this.success = null;
17964
    }
17965
 
17966
    public Vendor getSuccess() {
17967
      return this.success;
17968
    }
17969
 
17970
    public void setSuccess(Vendor success) {
17971
      this.success = success;
17972
    }
17973
 
17974
    public void unsetSuccess() {
17975
      this.success = null;
17976
    }
17977
 
17978
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17979
    public boolean isSetSuccess() {
17980
      return this.success != null;
17981
    }
17982
 
17983
    public void setSuccessIsSet(boolean value) {
17984
      if (!value) {
17985
        this.success = null;
17986
      }
17987
    }
17988
 
17989
    public void setFieldValue(_Fields field, Object value) {
17990
      switch (field) {
17991
      case SUCCESS:
17992
        if (value == null) {
17993
          unsetSuccess();
17994
        } else {
17995
          setSuccess((Vendor)value);
17996
        }
17997
        break;
17998
 
17999
      }
18000
    }
18001
 
18002
    public Object getFieldValue(_Fields field) {
18003
      switch (field) {
18004
      case SUCCESS:
18005
        return getSuccess();
18006
 
18007
      }
18008
      throw new IllegalStateException();
18009
    }
18010
 
18011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18012
    public boolean isSet(_Fields field) {
18013
      if (field == null) {
18014
        throw new IllegalArgumentException();
18015
      }
18016
 
18017
      switch (field) {
18018
      case SUCCESS:
18019
        return isSetSuccess();
18020
      }
18021
      throw new IllegalStateException();
18022
    }
18023
 
18024
    @Override
18025
    public boolean equals(Object that) {
18026
      if (that == null)
18027
        return false;
18028
      if (that instanceof getVendor_result)
18029
        return this.equals((getVendor_result)that);
18030
      return false;
18031
    }
18032
 
18033
    public boolean equals(getVendor_result that) {
18034
      if (that == null)
18035
        return false;
18036
 
18037
      boolean this_present_success = true && this.isSetSuccess();
18038
      boolean that_present_success = true && that.isSetSuccess();
18039
      if (this_present_success || that_present_success) {
18040
        if (!(this_present_success && that_present_success))
18041
          return false;
18042
        if (!this.success.equals(that.success))
18043
          return false;
18044
      }
18045
 
18046
      return true;
18047
    }
18048
 
18049
    @Override
18050
    public int hashCode() {
18051
      return 0;
18052
    }
18053
 
18054
    public int compareTo(getVendor_result other) {
18055
      if (!getClass().equals(other.getClass())) {
18056
        return getClass().getName().compareTo(other.getClass().getName());
18057
      }
18058
 
18059
      int lastComparison = 0;
18060
      getVendor_result typedOther = (getVendor_result)other;
18061
 
18062
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18063
      if (lastComparison != 0) {
18064
        return lastComparison;
18065
      }
18066
      if (isSetSuccess()) {
18067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18068
        if (lastComparison != 0) {
18069
          return lastComparison;
18070
        }
18071
      }
18072
      return 0;
18073
    }
18074
 
18075
    public _Fields fieldForId(int fieldId) {
18076
      return _Fields.findByThriftId(fieldId);
18077
    }
18078
 
18079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18080
      org.apache.thrift.protocol.TField field;
18081
      iprot.readStructBegin();
18082
      while (true)
18083
      {
18084
        field = iprot.readFieldBegin();
18085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18086
          break;
18087
        }
18088
        switch (field.id) {
18089
          case 0: // SUCCESS
18090
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18091
              this.success = new Vendor();
18092
              this.success.read(iprot);
18093
            } else { 
18094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18095
            }
18096
            break;
18097
          default:
18098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18099
        }
18100
        iprot.readFieldEnd();
18101
      }
18102
      iprot.readStructEnd();
18103
      validate();
18104
    }
18105
 
18106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18107
      oprot.writeStructBegin(STRUCT_DESC);
18108
 
18109
      if (this.isSetSuccess()) {
18110
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18111
        this.success.write(oprot);
18112
        oprot.writeFieldEnd();
18113
      }
18114
      oprot.writeFieldStop();
18115
      oprot.writeStructEnd();
18116
    }
18117
 
18118
    @Override
18119
    public String toString() {
18120
      StringBuilder sb = new StringBuilder("getVendor_result(");
18121
      boolean first = true;
18122
 
18123
      sb.append("success:");
18124
      if (this.success == null) {
18125
        sb.append("null");
18126
      } else {
18127
        sb.append(this.success);
18128
      }
18129
      first = false;
18130
      sb.append(")");
18131
      return sb.toString();
18132
    }
18133
 
18134
    public void validate() throws org.apache.thrift.TException {
18135
      // check for required fields
18136
    }
18137
 
18138
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18139
      try {
18140
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18141
      } catch (org.apache.thrift.TException te) {
18142
        throw new java.io.IOException(te);
18143
      }
18144
    }
18145
 
18146
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18147
      try {
18148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18149
      } catch (org.apache.thrift.TException te) {
18150
        throw new java.io.IOException(te);
18151
      }
18152
    }
18153
 
18154
  }
18155
 
18156
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
18157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
18158
 
18159
 
18160
 
18161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18163
;
18164
 
18165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18166
 
18167
      static {
18168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18169
          byName.put(field.getFieldName(), field);
18170
        }
18171
      }
18172
 
18173
      /**
18174
       * Find the _Fields constant that matches fieldId, or null if its not found.
18175
       */
18176
      public static _Fields findByThriftId(int fieldId) {
18177
        switch(fieldId) {
18178
          default:
18179
            return null;
18180
        }
18181
      }
18182
 
18183
      /**
18184
       * Find the _Fields constant that matches fieldId, throwing an exception
18185
       * if it is not found.
18186
       */
18187
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18188
        _Fields fields = findByThriftId(fieldId);
18189
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18190
        return fields;
18191
      }
18192
 
18193
      /**
18194
       * Find the _Fields constant that matches name, or null if its not found.
18195
       */
18196
      public static _Fields findByName(String name) {
18197
        return byName.get(name);
18198
      }
18199
 
18200
      private final short _thriftId;
18201
      private final String _fieldName;
18202
 
18203
      _Fields(short thriftId, String fieldName) {
18204
        _thriftId = thriftId;
18205
        _fieldName = fieldName;
18206
      }
18207
 
18208
      public short getThriftFieldId() {
18209
        return _thriftId;
18210
      }
18211
 
18212
      public String getFieldName() {
18213
        return _fieldName;
18214
      }
18215
    }
18216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18217
    static {
18218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
18221
    }
18222
 
18223
    public getAllVendors_args() {
18224
    }
18225
 
18226
    /**
18227
     * Performs a deep copy on <i>other</i>.
18228
     */
18229
    public getAllVendors_args(getAllVendors_args other) {
18230
    }
18231
 
18232
    public getAllVendors_args deepCopy() {
18233
      return new getAllVendors_args(this);
18234
    }
18235
 
18236
    @Override
18237
    public void clear() {
18238
    }
18239
 
18240
    public void setFieldValue(_Fields field, Object value) {
18241
      switch (field) {
18242
      }
18243
    }
18244
 
18245
    public Object getFieldValue(_Fields field) {
18246
      switch (field) {
18247
      }
18248
      throw new IllegalStateException();
18249
    }
18250
 
18251
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18252
    public boolean isSet(_Fields field) {
18253
      if (field == null) {
18254
        throw new IllegalArgumentException();
18255
      }
18256
 
18257
      switch (field) {
18258
      }
18259
      throw new IllegalStateException();
18260
    }
18261
 
18262
    @Override
18263
    public boolean equals(Object that) {
18264
      if (that == null)
18265
        return false;
18266
      if (that instanceof getAllVendors_args)
18267
        return this.equals((getAllVendors_args)that);
18268
      return false;
18269
    }
18270
 
18271
    public boolean equals(getAllVendors_args that) {
18272
      if (that == null)
18273
        return false;
18274
 
18275
      return true;
18276
    }
18277
 
18278
    @Override
18279
    public int hashCode() {
18280
      return 0;
18281
    }
18282
 
18283
    public int compareTo(getAllVendors_args other) {
18284
      if (!getClass().equals(other.getClass())) {
18285
        return getClass().getName().compareTo(other.getClass().getName());
18286
      }
18287
 
18288
      int lastComparison = 0;
18289
      getAllVendors_args typedOther = (getAllVendors_args)other;
18290
 
18291
      return 0;
18292
    }
18293
 
18294
    public _Fields fieldForId(int fieldId) {
18295
      return _Fields.findByThriftId(fieldId);
18296
    }
18297
 
18298
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18299
      org.apache.thrift.protocol.TField field;
18300
      iprot.readStructBegin();
18301
      while (true)
18302
      {
18303
        field = iprot.readFieldBegin();
18304
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18305
          break;
18306
        }
18307
        switch (field.id) {
18308
          default:
18309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18310
        }
18311
        iprot.readFieldEnd();
18312
      }
18313
      iprot.readStructEnd();
18314
      validate();
18315
    }
18316
 
18317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18318
      validate();
18319
 
18320
      oprot.writeStructBegin(STRUCT_DESC);
18321
      oprot.writeFieldStop();
18322
      oprot.writeStructEnd();
18323
    }
18324
 
18325
    @Override
18326
    public String toString() {
18327
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
18328
      boolean first = true;
18329
 
18330
      sb.append(")");
18331
      return sb.toString();
18332
    }
18333
 
18334
    public void validate() throws org.apache.thrift.TException {
18335
      // check for required fields
18336
    }
18337
 
18338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18339
      try {
18340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18341
      } catch (org.apache.thrift.TException te) {
18342
        throw new java.io.IOException(te);
18343
      }
18344
    }
18345
 
18346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18347
      try {
18348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18349
      } catch (org.apache.thrift.TException te) {
18350
        throw new java.io.IOException(te);
18351
      }
18352
    }
18353
 
18354
  }
18355
 
18356
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
18357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
18358
 
18359
    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);
18360
 
18361
    private List<Vendor> success; // required
18362
 
18363
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18364
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18365
      SUCCESS((short)0, "success");
18366
 
18367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18368
 
18369
      static {
18370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18371
          byName.put(field.getFieldName(), field);
18372
        }
18373
      }
18374
 
18375
      /**
18376
       * Find the _Fields constant that matches fieldId, or null if its not found.
18377
       */
18378
      public static _Fields findByThriftId(int fieldId) {
18379
        switch(fieldId) {
18380
          case 0: // SUCCESS
18381
            return SUCCESS;
18382
          default:
18383
            return null;
18384
        }
18385
      }
18386
 
18387
      /**
18388
       * Find the _Fields constant that matches fieldId, throwing an exception
18389
       * if it is not found.
18390
       */
18391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18392
        _Fields fields = findByThriftId(fieldId);
18393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18394
        return fields;
18395
      }
18396
 
18397
      /**
18398
       * Find the _Fields constant that matches name, or null if its not found.
18399
       */
18400
      public static _Fields findByName(String name) {
18401
        return byName.get(name);
18402
      }
18403
 
18404
      private final short _thriftId;
18405
      private final String _fieldName;
18406
 
18407
      _Fields(short thriftId, String fieldName) {
18408
        _thriftId = thriftId;
18409
        _fieldName = fieldName;
18410
      }
18411
 
18412
      public short getThriftFieldId() {
18413
        return _thriftId;
18414
      }
18415
 
18416
      public String getFieldName() {
18417
        return _fieldName;
18418
      }
18419
    }
18420
 
18421
    // isset id assignments
18422
 
18423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18424
    static {
18425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18426
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18427
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18428
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
18429
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18430
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
18431
    }
18432
 
18433
    public getAllVendors_result() {
18434
    }
18435
 
18436
    public getAllVendors_result(
18437
      List<Vendor> success)
18438
    {
18439
      this();
18440
      this.success = success;
18441
    }
18442
 
18443
    /**
18444
     * Performs a deep copy on <i>other</i>.
18445
     */
18446
    public getAllVendors_result(getAllVendors_result other) {
18447
      if (other.isSetSuccess()) {
18448
        List<Vendor> __this__success = new ArrayList<Vendor>();
18449
        for (Vendor other_element : other.success) {
18450
          __this__success.add(new Vendor(other_element));
18451
        }
18452
        this.success = __this__success;
18453
      }
18454
    }
18455
 
18456
    public getAllVendors_result deepCopy() {
18457
      return new getAllVendors_result(this);
18458
    }
18459
 
18460
    @Override
18461
    public void clear() {
18462
      this.success = null;
18463
    }
18464
 
18465
    public int getSuccessSize() {
18466
      return (this.success == null) ? 0 : this.success.size();
18467
    }
18468
 
18469
    public java.util.Iterator<Vendor> getSuccessIterator() {
18470
      return (this.success == null) ? null : this.success.iterator();
18471
    }
18472
 
18473
    public void addToSuccess(Vendor elem) {
18474
      if (this.success == null) {
18475
        this.success = new ArrayList<Vendor>();
18476
      }
18477
      this.success.add(elem);
18478
    }
18479
 
18480
    public List<Vendor> getSuccess() {
18481
      return this.success;
18482
    }
18483
 
18484
    public void setSuccess(List<Vendor> success) {
18485
      this.success = success;
18486
    }
18487
 
18488
    public void unsetSuccess() {
18489
      this.success = null;
18490
    }
18491
 
18492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18493
    public boolean isSetSuccess() {
18494
      return this.success != null;
18495
    }
18496
 
18497
    public void setSuccessIsSet(boolean value) {
18498
      if (!value) {
18499
        this.success = null;
18500
      }
18501
    }
18502
 
18503
    public void setFieldValue(_Fields field, Object value) {
18504
      switch (field) {
18505
      case SUCCESS:
18506
        if (value == null) {
18507
          unsetSuccess();
18508
        } else {
18509
          setSuccess((List<Vendor>)value);
18510
        }
18511
        break;
18512
 
18513
      }
18514
    }
18515
 
18516
    public Object getFieldValue(_Fields field) {
18517
      switch (field) {
18518
      case SUCCESS:
18519
        return getSuccess();
18520
 
18521
      }
18522
      throw new IllegalStateException();
18523
    }
18524
 
18525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18526
    public boolean isSet(_Fields field) {
18527
      if (field == null) {
18528
        throw new IllegalArgumentException();
18529
      }
18530
 
18531
      switch (field) {
18532
      case SUCCESS:
18533
        return isSetSuccess();
18534
      }
18535
      throw new IllegalStateException();
18536
    }
18537
 
18538
    @Override
18539
    public boolean equals(Object that) {
18540
      if (that == null)
18541
        return false;
18542
      if (that instanceof getAllVendors_result)
18543
        return this.equals((getAllVendors_result)that);
18544
      return false;
18545
    }
18546
 
18547
    public boolean equals(getAllVendors_result that) {
18548
      if (that == null)
18549
        return false;
18550
 
18551
      boolean this_present_success = true && this.isSetSuccess();
18552
      boolean that_present_success = true && that.isSetSuccess();
18553
      if (this_present_success || that_present_success) {
18554
        if (!(this_present_success && that_present_success))
18555
          return false;
18556
        if (!this.success.equals(that.success))
18557
          return false;
18558
      }
18559
 
18560
      return true;
18561
    }
18562
 
18563
    @Override
18564
    public int hashCode() {
18565
      return 0;
18566
    }
18567
 
18568
    public int compareTo(getAllVendors_result other) {
18569
      if (!getClass().equals(other.getClass())) {
18570
        return getClass().getName().compareTo(other.getClass().getName());
18571
      }
18572
 
18573
      int lastComparison = 0;
18574
      getAllVendors_result typedOther = (getAllVendors_result)other;
18575
 
18576
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18577
      if (lastComparison != 0) {
18578
        return lastComparison;
18579
      }
18580
      if (isSetSuccess()) {
18581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18582
        if (lastComparison != 0) {
18583
          return lastComparison;
18584
        }
18585
      }
18586
      return 0;
18587
    }
18588
 
18589
    public _Fields fieldForId(int fieldId) {
18590
      return _Fields.findByThriftId(fieldId);
18591
    }
18592
 
18593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18594
      org.apache.thrift.protocol.TField field;
18595
      iprot.readStructBegin();
18596
      while (true)
18597
      {
18598
        field = iprot.readFieldBegin();
18599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18600
          break;
18601
        }
18602
        switch (field.id) {
18603
          case 0: // SUCCESS
18604
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18605
              {
18606
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18607
                this.success = new ArrayList<Vendor>(_list36.size);
18608
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18609
                {
18610
                  Vendor _elem38; // required
18611
                  _elem38 = new Vendor();
18612
                  _elem38.read(iprot);
18613
                  this.success.add(_elem38);
18614
                }
18615
                iprot.readListEnd();
18616
              }
18617
            } else { 
18618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18619
            }
18620
            break;
18621
          default:
18622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18623
        }
18624
        iprot.readFieldEnd();
18625
      }
18626
      iprot.readStructEnd();
18627
      validate();
18628
    }
18629
 
18630
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18631
      oprot.writeStructBegin(STRUCT_DESC);
18632
 
18633
      if (this.isSetSuccess()) {
18634
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18635
        {
18636
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18637
          for (Vendor _iter39 : this.success)
18638
          {
18639
            _iter39.write(oprot);
18640
          }
18641
          oprot.writeListEnd();
18642
        }
18643
        oprot.writeFieldEnd();
18644
      }
18645
      oprot.writeFieldStop();
18646
      oprot.writeStructEnd();
18647
    }
18648
 
18649
    @Override
18650
    public String toString() {
18651
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
18652
      boolean first = true;
18653
 
18654
      sb.append("success:");
18655
      if (this.success == null) {
18656
        sb.append("null");
18657
      } else {
18658
        sb.append(this.success);
18659
      }
18660
      first = false;
18661
      sb.append(")");
18662
      return sb.toString();
18663
    }
18664
 
18665
    public void validate() throws org.apache.thrift.TException {
18666
      // check for required fields
18667
    }
18668
 
18669
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18670
      try {
18671
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18672
      } catch (org.apache.thrift.TException te) {
18673
        throw new java.io.IOException(te);
18674
      }
18675
    }
18676
 
18677
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18678
      try {
18679
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18680
      } catch (org.apache.thrift.TException te) {
18681
        throw new java.io.IOException(te);
18682
      }
18683
    }
18684
 
18685
  }
18686
 
18687
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
18688
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
18689
 
18690
    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);
18691
    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);
18692
 
18693
    private String key; // required
18694
    private VendorItemMapping vendorItemMapping; // required
18695
 
18696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18698
      KEY((short)1, "key"),
18699
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
18700
 
18701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18702
 
18703
      static {
18704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18705
          byName.put(field.getFieldName(), field);
18706
        }
18707
      }
18708
 
18709
      /**
18710
       * Find the _Fields constant that matches fieldId, or null if its not found.
18711
       */
18712
      public static _Fields findByThriftId(int fieldId) {
18713
        switch(fieldId) {
18714
          case 1: // KEY
18715
            return KEY;
18716
          case 2: // VENDOR_ITEM_MAPPING
18717
            return VENDOR_ITEM_MAPPING;
18718
          default:
18719
            return null;
18720
        }
18721
      }
18722
 
18723
      /**
18724
       * Find the _Fields constant that matches fieldId, throwing an exception
18725
       * if it is not found.
18726
       */
18727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18728
        _Fields fields = findByThriftId(fieldId);
18729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18730
        return fields;
18731
      }
18732
 
18733
      /**
18734
       * Find the _Fields constant that matches name, or null if its not found.
18735
       */
18736
      public static _Fields findByName(String name) {
18737
        return byName.get(name);
18738
      }
18739
 
18740
      private final short _thriftId;
18741
      private final String _fieldName;
18742
 
18743
      _Fields(short thriftId, String fieldName) {
18744
        _thriftId = thriftId;
18745
        _fieldName = fieldName;
18746
      }
18747
 
18748
      public short getThriftFieldId() {
18749
        return _thriftId;
18750
      }
18751
 
18752
      public String getFieldName() {
18753
        return _fieldName;
18754
      }
18755
    }
18756
 
18757
    // isset id assignments
18758
 
18759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18760
    static {
18761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18762
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18764
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18765
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
18766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
18768
    }
18769
 
18770
    public addVendorItemMapping_args() {
18771
    }
18772
 
18773
    public addVendorItemMapping_args(
18774
      String key,
18775
      VendorItemMapping vendorItemMapping)
18776
    {
18777
      this();
18778
      this.key = key;
18779
      this.vendorItemMapping = vendorItemMapping;
18780
    }
18781
 
18782
    /**
18783
     * Performs a deep copy on <i>other</i>.
18784
     */
18785
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
18786
      if (other.isSetKey()) {
18787
        this.key = other.key;
18788
      }
18789
      if (other.isSetVendorItemMapping()) {
18790
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
18791
      }
18792
    }
18793
 
18794
    public addVendorItemMapping_args deepCopy() {
18795
      return new addVendorItemMapping_args(this);
18796
    }
18797
 
18798
    @Override
18799
    public void clear() {
18800
      this.key = null;
18801
      this.vendorItemMapping = null;
18802
    }
18803
 
18804
    public String getKey() {
18805
      return this.key;
18806
    }
18807
 
18808
    public void setKey(String key) {
18809
      this.key = key;
18810
    }
18811
 
18812
    public void unsetKey() {
18813
      this.key = null;
18814
    }
18815
 
18816
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
18817
    public boolean isSetKey() {
18818
      return this.key != null;
18819
    }
18820
 
18821
    public void setKeyIsSet(boolean value) {
18822
      if (!value) {
18823
        this.key = null;
18824
      }
18825
    }
18826
 
18827
    public VendorItemMapping getVendorItemMapping() {
18828
      return this.vendorItemMapping;
18829
    }
18830
 
18831
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
18832
      this.vendorItemMapping = vendorItemMapping;
18833
    }
18834
 
18835
    public void unsetVendorItemMapping() {
18836
      this.vendorItemMapping = null;
18837
    }
18838
 
18839
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
18840
    public boolean isSetVendorItemMapping() {
18841
      return this.vendorItemMapping != null;
18842
    }
18843
 
18844
    public void setVendorItemMappingIsSet(boolean value) {
18845
      if (!value) {
18846
        this.vendorItemMapping = null;
18847
      }
18848
    }
18849
 
18850
    public void setFieldValue(_Fields field, Object value) {
18851
      switch (field) {
18852
      case KEY:
18853
        if (value == null) {
18854
          unsetKey();
18855
        } else {
18856
          setKey((String)value);
18857
        }
18858
        break;
18859
 
18860
      case VENDOR_ITEM_MAPPING:
18861
        if (value == null) {
18862
          unsetVendorItemMapping();
18863
        } else {
18864
          setVendorItemMapping((VendorItemMapping)value);
18865
        }
18866
        break;
18867
 
18868
      }
18869
    }
18870
 
18871
    public Object getFieldValue(_Fields field) {
18872
      switch (field) {
18873
      case KEY:
18874
        return getKey();
18875
 
18876
      case VENDOR_ITEM_MAPPING:
18877
        return getVendorItemMapping();
18878
 
18879
      }
18880
      throw new IllegalStateException();
18881
    }
18882
 
18883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18884
    public boolean isSet(_Fields field) {
18885
      if (field == null) {
18886
        throw new IllegalArgumentException();
18887
      }
18888
 
18889
      switch (field) {
18890
      case KEY:
18891
        return isSetKey();
18892
      case VENDOR_ITEM_MAPPING:
18893
        return isSetVendorItemMapping();
18894
      }
18895
      throw new IllegalStateException();
18896
    }
18897
 
18898
    @Override
18899
    public boolean equals(Object that) {
18900
      if (that == null)
18901
        return false;
18902
      if (that instanceof addVendorItemMapping_args)
18903
        return this.equals((addVendorItemMapping_args)that);
18904
      return false;
18905
    }
18906
 
18907
    public boolean equals(addVendorItemMapping_args that) {
18908
      if (that == null)
18909
        return false;
18910
 
18911
      boolean this_present_key = true && this.isSetKey();
18912
      boolean that_present_key = true && that.isSetKey();
18913
      if (this_present_key || that_present_key) {
18914
        if (!(this_present_key && that_present_key))
18915
          return false;
18916
        if (!this.key.equals(that.key))
18917
          return false;
18918
      }
18919
 
18920
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
18921
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
18922
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
18923
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
18924
          return false;
18925
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
18926
          return false;
18927
      }
18928
 
18929
      return true;
18930
    }
18931
 
18932
    @Override
18933
    public int hashCode() {
18934
      return 0;
18935
    }
18936
 
18937
    public int compareTo(addVendorItemMapping_args other) {
18938
      if (!getClass().equals(other.getClass())) {
18939
        return getClass().getName().compareTo(other.getClass().getName());
18940
      }
18941
 
18942
      int lastComparison = 0;
18943
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
18944
 
18945
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
18946
      if (lastComparison != 0) {
18947
        return lastComparison;
18948
      }
18949
      if (isSetKey()) {
18950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
18951
        if (lastComparison != 0) {
18952
          return lastComparison;
18953
        }
18954
      }
18955
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
18956
      if (lastComparison != 0) {
18957
        return lastComparison;
18958
      }
18959
      if (isSetVendorItemMapping()) {
18960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
18961
        if (lastComparison != 0) {
18962
          return lastComparison;
18963
        }
18964
      }
18965
      return 0;
18966
    }
18967
 
18968
    public _Fields fieldForId(int fieldId) {
18969
      return _Fields.findByThriftId(fieldId);
18970
    }
18971
 
18972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18973
      org.apache.thrift.protocol.TField field;
18974
      iprot.readStructBegin();
18975
      while (true)
18976
      {
18977
        field = iprot.readFieldBegin();
18978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18979
          break;
18980
        }
18981
        switch (field.id) {
18982
          case 1: // KEY
18983
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18984
              this.key = iprot.readString();
18985
            } else { 
18986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18987
            }
18988
            break;
18989
          case 2: // VENDOR_ITEM_MAPPING
18990
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18991
              this.vendorItemMapping = new VendorItemMapping();
18992
              this.vendorItemMapping.read(iprot);
18993
            } else { 
18994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18995
            }
18996
            break;
18997
          default:
18998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18999
        }
19000
        iprot.readFieldEnd();
19001
      }
19002
      iprot.readStructEnd();
19003
      validate();
19004
    }
19005
 
19006
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19007
      validate();
19008
 
19009
      oprot.writeStructBegin(STRUCT_DESC);
19010
      if (this.key != null) {
19011
        oprot.writeFieldBegin(KEY_FIELD_DESC);
19012
        oprot.writeString(this.key);
19013
        oprot.writeFieldEnd();
19014
      }
19015
      if (this.vendorItemMapping != null) {
19016
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
19017
        this.vendorItemMapping.write(oprot);
19018
        oprot.writeFieldEnd();
19019
      }
19020
      oprot.writeFieldStop();
19021
      oprot.writeStructEnd();
19022
    }
19023
 
19024
    @Override
19025
    public String toString() {
19026
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
19027
      boolean first = true;
19028
 
19029
      sb.append("key:");
19030
      if (this.key == null) {
19031
        sb.append("null");
19032
      } else {
19033
        sb.append(this.key);
19034
      }
19035
      first = false;
19036
      if (!first) sb.append(", ");
19037
      sb.append("vendorItemMapping:");
19038
      if (this.vendorItemMapping == null) {
19039
        sb.append("null");
19040
      } else {
19041
        sb.append(this.vendorItemMapping);
19042
      }
19043
      first = false;
19044
      sb.append(")");
19045
      return sb.toString();
19046
    }
19047
 
19048
    public void validate() throws org.apache.thrift.TException {
19049
      // check for required fields
19050
    }
19051
 
19052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19053
      try {
19054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19055
      } catch (org.apache.thrift.TException te) {
19056
        throw new java.io.IOException(te);
19057
      }
19058
    }
19059
 
19060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19061
      try {
19062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19063
      } catch (org.apache.thrift.TException te) {
19064
        throw new java.io.IOException(te);
19065
      }
19066
    }
19067
 
19068
  }
19069
 
19070
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
19071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
19072
 
19073
    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);
19074
 
19075
    private InventoryServiceException cex; // required
19076
 
19077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19079
      CEX((short)1, "cex");
19080
 
19081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19082
 
19083
      static {
19084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19085
          byName.put(field.getFieldName(), field);
19086
        }
19087
      }
19088
 
19089
      /**
19090
       * Find the _Fields constant that matches fieldId, or null if its not found.
19091
       */
19092
      public static _Fields findByThriftId(int fieldId) {
19093
        switch(fieldId) {
19094
          case 1: // CEX
19095
            return CEX;
19096
          default:
19097
            return null;
19098
        }
19099
      }
19100
 
19101
      /**
19102
       * Find the _Fields constant that matches fieldId, throwing an exception
19103
       * if it is not found.
19104
       */
19105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19106
        _Fields fields = findByThriftId(fieldId);
19107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19108
        return fields;
19109
      }
19110
 
19111
      /**
19112
       * Find the _Fields constant that matches name, or null if its not found.
19113
       */
19114
      public static _Fields findByName(String name) {
19115
        return byName.get(name);
19116
      }
19117
 
19118
      private final short _thriftId;
19119
      private final String _fieldName;
19120
 
19121
      _Fields(short thriftId, String fieldName) {
19122
        _thriftId = thriftId;
19123
        _fieldName = fieldName;
19124
      }
19125
 
19126
      public short getThriftFieldId() {
19127
        return _thriftId;
19128
      }
19129
 
19130
      public String getFieldName() {
19131
        return _fieldName;
19132
      }
19133
    }
19134
 
19135
    // isset id assignments
19136
 
19137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19138
    static {
19139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19140
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
19144
    }
19145
 
19146
    public addVendorItemMapping_result() {
19147
    }
19148
 
19149
    public addVendorItemMapping_result(
19150
      InventoryServiceException cex)
19151
    {
19152
      this();
19153
      this.cex = cex;
19154
    }
19155
 
19156
    /**
19157
     * Performs a deep copy on <i>other</i>.
19158
     */
19159
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
19160
      if (other.isSetCex()) {
19161
        this.cex = new InventoryServiceException(other.cex);
19162
      }
19163
    }
19164
 
19165
    public addVendorItemMapping_result deepCopy() {
19166
      return new addVendorItemMapping_result(this);
19167
    }
19168
 
19169
    @Override
19170
    public void clear() {
19171
      this.cex = null;
19172
    }
19173
 
19174
    public InventoryServiceException getCex() {
19175
      return this.cex;
19176
    }
19177
 
19178
    public void setCex(InventoryServiceException cex) {
19179
      this.cex = cex;
19180
    }
19181
 
19182
    public void unsetCex() {
19183
      this.cex = null;
19184
    }
19185
 
19186
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19187
    public boolean isSetCex() {
19188
      return this.cex != null;
19189
    }
19190
 
19191
    public void setCexIsSet(boolean value) {
19192
      if (!value) {
19193
        this.cex = null;
19194
      }
19195
    }
19196
 
19197
    public void setFieldValue(_Fields field, Object value) {
19198
      switch (field) {
19199
      case CEX:
19200
        if (value == null) {
19201
          unsetCex();
19202
        } else {
19203
          setCex((InventoryServiceException)value);
19204
        }
19205
        break;
19206
 
19207
      }
19208
    }
19209
 
19210
    public Object getFieldValue(_Fields field) {
19211
      switch (field) {
19212
      case CEX:
19213
        return getCex();
19214
 
19215
      }
19216
      throw new IllegalStateException();
19217
    }
19218
 
19219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19220
    public boolean isSet(_Fields field) {
19221
      if (field == null) {
19222
        throw new IllegalArgumentException();
19223
      }
19224
 
19225
      switch (field) {
19226
      case CEX:
19227
        return isSetCex();
19228
      }
19229
      throw new IllegalStateException();
19230
    }
19231
 
19232
    @Override
19233
    public boolean equals(Object that) {
19234
      if (that == null)
19235
        return false;
19236
      if (that instanceof addVendorItemMapping_result)
19237
        return this.equals((addVendorItemMapping_result)that);
19238
      return false;
19239
    }
19240
 
19241
    public boolean equals(addVendorItemMapping_result that) {
19242
      if (that == null)
19243
        return false;
19244
 
19245
      boolean this_present_cex = true && this.isSetCex();
19246
      boolean that_present_cex = true && that.isSetCex();
19247
      if (this_present_cex || that_present_cex) {
19248
        if (!(this_present_cex && that_present_cex))
19249
          return false;
19250
        if (!this.cex.equals(that.cex))
19251
          return false;
19252
      }
19253
 
19254
      return true;
19255
    }
19256
 
19257
    @Override
19258
    public int hashCode() {
19259
      return 0;
19260
    }
19261
 
19262
    public int compareTo(addVendorItemMapping_result other) {
19263
      if (!getClass().equals(other.getClass())) {
19264
        return getClass().getName().compareTo(other.getClass().getName());
19265
      }
19266
 
19267
      int lastComparison = 0;
19268
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
19269
 
19270
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19271
      if (lastComparison != 0) {
19272
        return lastComparison;
19273
      }
19274
      if (isSetCex()) {
19275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19276
        if (lastComparison != 0) {
19277
          return lastComparison;
19278
        }
19279
      }
19280
      return 0;
19281
    }
19282
 
19283
    public _Fields fieldForId(int fieldId) {
19284
      return _Fields.findByThriftId(fieldId);
19285
    }
19286
 
19287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19288
      org.apache.thrift.protocol.TField field;
19289
      iprot.readStructBegin();
19290
      while (true)
19291
      {
19292
        field = iprot.readFieldBegin();
19293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19294
          break;
19295
        }
19296
        switch (field.id) {
19297
          case 1: // CEX
19298
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19299
              this.cex = new InventoryServiceException();
19300
              this.cex.read(iprot);
19301
            } else { 
19302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19303
            }
19304
            break;
19305
          default:
19306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19307
        }
19308
        iprot.readFieldEnd();
19309
      }
19310
      iprot.readStructEnd();
19311
      validate();
19312
    }
19313
 
19314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19315
      oprot.writeStructBegin(STRUCT_DESC);
19316
 
19317
      if (this.isSetCex()) {
19318
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19319
        this.cex.write(oprot);
19320
        oprot.writeFieldEnd();
19321
      }
19322
      oprot.writeFieldStop();
19323
      oprot.writeStructEnd();
19324
    }
19325
 
19326
    @Override
19327
    public String toString() {
19328
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
19329
      boolean first = true;
19330
 
19331
      sb.append("cex:");
19332
      if (this.cex == null) {
19333
        sb.append("null");
19334
      } else {
19335
        sb.append(this.cex);
19336
      }
19337
      first = false;
19338
      sb.append(")");
19339
      return sb.toString();
19340
    }
19341
 
19342
    public void validate() throws org.apache.thrift.TException {
19343
      // check for required fields
19344
    }
19345
 
19346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19347
      try {
19348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19349
      } catch (org.apache.thrift.TException te) {
19350
        throw new java.io.IOException(te);
19351
      }
19352
    }
19353
 
19354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19355
      try {
19356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19357
      } catch (org.apache.thrift.TException te) {
19358
        throw new java.io.IOException(te);
19359
      }
19360
    }
19361
 
19362
  }
19363
 
19364
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
19365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
19366
 
19367
    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);
19368
 
19369
    private long itemId; // required
19370
 
19371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19373
      ITEM_ID((short)1, "itemId");
19374
 
19375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19376
 
19377
      static {
19378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19379
          byName.put(field.getFieldName(), field);
19380
        }
19381
      }
19382
 
19383
      /**
19384
       * Find the _Fields constant that matches fieldId, or null if its not found.
19385
       */
19386
      public static _Fields findByThriftId(int fieldId) {
19387
        switch(fieldId) {
19388
          case 1: // ITEM_ID
19389
            return ITEM_ID;
19390
          default:
19391
            return null;
19392
        }
19393
      }
19394
 
19395
      /**
19396
       * Find the _Fields constant that matches fieldId, throwing an exception
19397
       * if it is not found.
19398
       */
19399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19400
        _Fields fields = findByThriftId(fieldId);
19401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19402
        return fields;
19403
      }
19404
 
19405
      /**
19406
       * Find the _Fields constant that matches name, or null if its not found.
19407
       */
19408
      public static _Fields findByName(String name) {
19409
        return byName.get(name);
19410
      }
19411
 
19412
      private final short _thriftId;
19413
      private final String _fieldName;
19414
 
19415
      _Fields(short thriftId, String fieldName) {
19416
        _thriftId = thriftId;
19417
        _fieldName = fieldName;
19418
      }
19419
 
19420
      public short getThriftFieldId() {
19421
        return _thriftId;
19422
      }
19423
 
19424
      public String getFieldName() {
19425
        return _fieldName;
19426
      }
19427
    }
19428
 
19429
    // isset id assignments
19430
    private static final int __ITEMID_ISSET_ID = 0;
19431
    private BitSet __isset_bit_vector = new BitSet(1);
19432
 
19433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19434
    static {
19435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19436
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
19440
    }
19441
 
19442
    public getVendorItemMappings_args() {
19443
    }
19444
 
19445
    public getVendorItemMappings_args(
19446
      long itemId)
19447
    {
19448
      this();
19449
      this.itemId = itemId;
19450
      setItemIdIsSet(true);
19451
    }
19452
 
19453
    /**
19454
     * Performs a deep copy on <i>other</i>.
19455
     */
19456
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
19457
      __isset_bit_vector.clear();
19458
      __isset_bit_vector.or(other.__isset_bit_vector);
19459
      this.itemId = other.itemId;
19460
    }
19461
 
19462
    public getVendorItemMappings_args deepCopy() {
19463
      return new getVendorItemMappings_args(this);
19464
    }
19465
 
19466
    @Override
19467
    public void clear() {
19468
      setItemIdIsSet(false);
19469
      this.itemId = 0;
19470
    }
19471
 
19472
    public long getItemId() {
19473
      return this.itemId;
19474
    }
19475
 
19476
    public void setItemId(long itemId) {
19477
      this.itemId = itemId;
19478
      setItemIdIsSet(true);
19479
    }
19480
 
19481
    public void unsetItemId() {
19482
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19483
    }
19484
 
19485
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19486
    public boolean isSetItemId() {
19487
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19488
    }
19489
 
19490
    public void setItemIdIsSet(boolean value) {
19491
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19492
    }
19493
 
19494
    public void setFieldValue(_Fields field, Object value) {
19495
      switch (field) {
19496
      case ITEM_ID:
19497
        if (value == null) {
19498
          unsetItemId();
19499
        } else {
19500
          setItemId((Long)value);
19501
        }
19502
        break;
19503
 
19504
      }
19505
    }
19506
 
19507
    public Object getFieldValue(_Fields field) {
19508
      switch (field) {
19509
      case ITEM_ID:
19510
        return Long.valueOf(getItemId());
19511
 
19512
      }
19513
      throw new IllegalStateException();
19514
    }
19515
 
19516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19517
    public boolean isSet(_Fields field) {
19518
      if (field == null) {
19519
        throw new IllegalArgumentException();
19520
      }
19521
 
19522
      switch (field) {
19523
      case ITEM_ID:
19524
        return isSetItemId();
19525
      }
19526
      throw new IllegalStateException();
19527
    }
19528
 
19529
    @Override
19530
    public boolean equals(Object that) {
19531
      if (that == null)
19532
        return false;
19533
      if (that instanceof getVendorItemMappings_args)
19534
        return this.equals((getVendorItemMappings_args)that);
19535
      return false;
19536
    }
19537
 
19538
    public boolean equals(getVendorItemMappings_args that) {
19539
      if (that == null)
19540
        return false;
19541
 
19542
      boolean this_present_itemId = true;
19543
      boolean that_present_itemId = true;
19544
      if (this_present_itemId || that_present_itemId) {
19545
        if (!(this_present_itemId && that_present_itemId))
19546
          return false;
19547
        if (this.itemId != that.itemId)
19548
          return false;
19549
      }
19550
 
19551
      return true;
19552
    }
19553
 
19554
    @Override
19555
    public int hashCode() {
19556
      return 0;
19557
    }
19558
 
19559
    public int compareTo(getVendorItemMappings_args other) {
19560
      if (!getClass().equals(other.getClass())) {
19561
        return getClass().getName().compareTo(other.getClass().getName());
19562
      }
19563
 
19564
      int lastComparison = 0;
19565
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
19566
 
19567
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19568
      if (lastComparison != 0) {
19569
        return lastComparison;
19570
      }
19571
      if (isSetItemId()) {
19572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19573
        if (lastComparison != 0) {
19574
          return lastComparison;
19575
        }
19576
      }
19577
      return 0;
19578
    }
19579
 
19580
    public _Fields fieldForId(int fieldId) {
19581
      return _Fields.findByThriftId(fieldId);
19582
    }
19583
 
19584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19585
      org.apache.thrift.protocol.TField field;
19586
      iprot.readStructBegin();
19587
      while (true)
19588
      {
19589
        field = iprot.readFieldBegin();
19590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19591
          break;
19592
        }
19593
        switch (field.id) {
19594
          case 1: // ITEM_ID
19595
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19596
              this.itemId = iprot.readI64();
19597
              setItemIdIsSet(true);
19598
            } else { 
19599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19600
            }
19601
            break;
19602
          default:
19603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19604
        }
19605
        iprot.readFieldEnd();
19606
      }
19607
      iprot.readStructEnd();
19608
      validate();
19609
    }
19610
 
19611
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19612
      validate();
19613
 
19614
      oprot.writeStructBegin(STRUCT_DESC);
19615
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19616
      oprot.writeI64(this.itemId);
19617
      oprot.writeFieldEnd();
19618
      oprot.writeFieldStop();
19619
      oprot.writeStructEnd();
19620
    }
19621
 
19622
    @Override
19623
    public String toString() {
19624
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
19625
      boolean first = true;
19626
 
19627
      sb.append("itemId:");
19628
      sb.append(this.itemId);
19629
      first = false;
19630
      sb.append(")");
19631
      return sb.toString();
19632
    }
19633
 
19634
    public void validate() throws org.apache.thrift.TException {
19635
      // check for required fields
19636
    }
19637
 
19638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19639
      try {
19640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19641
      } catch (org.apache.thrift.TException te) {
19642
        throw new java.io.IOException(te);
19643
      }
19644
    }
19645
 
19646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19647
      try {
19648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19649
      } catch (org.apache.thrift.TException te) {
19650
        throw new java.io.IOException(te);
19651
      }
19652
    }
19653
 
19654
  }
19655
 
19656
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
19657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
19658
 
19659
    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);
19660
    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);
19661
 
19662
    private List<VendorItemMapping> success; // required
19663
    private InventoryServiceException cex; // required
19664
 
19665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19667
      SUCCESS((short)0, "success"),
19668
      CEX((short)1, "cex");
19669
 
19670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19671
 
19672
      static {
19673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19674
          byName.put(field.getFieldName(), field);
19675
        }
19676
      }
19677
 
19678
      /**
19679
       * Find the _Fields constant that matches fieldId, or null if its not found.
19680
       */
19681
      public static _Fields findByThriftId(int fieldId) {
19682
        switch(fieldId) {
19683
          case 0: // SUCCESS
19684
            return SUCCESS;
19685
          case 1: // CEX
19686
            return CEX;
19687
          default:
19688
            return null;
19689
        }
19690
      }
19691
 
19692
      /**
19693
       * Find the _Fields constant that matches fieldId, throwing an exception
19694
       * if it is not found.
19695
       */
19696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19697
        _Fields fields = findByThriftId(fieldId);
19698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19699
        return fields;
19700
      }
19701
 
19702
      /**
19703
       * Find the _Fields constant that matches name, or null if its not found.
19704
       */
19705
      public static _Fields findByName(String name) {
19706
        return byName.get(name);
19707
      }
19708
 
19709
      private final short _thriftId;
19710
      private final String _fieldName;
19711
 
19712
      _Fields(short thriftId, String fieldName) {
19713
        _thriftId = thriftId;
19714
        _fieldName = fieldName;
19715
      }
19716
 
19717
      public short getThriftFieldId() {
19718
        return _thriftId;
19719
      }
19720
 
19721
      public String getFieldName() {
19722
        return _fieldName;
19723
      }
19724
    }
19725
 
19726
    // isset id assignments
19727
 
19728
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19729
    static {
19730
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19731
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19732
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19733
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
19734
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
19738
    }
19739
 
19740
    public getVendorItemMappings_result() {
19741
    }
19742
 
19743
    public getVendorItemMappings_result(
19744
      List<VendorItemMapping> success,
19745
      InventoryServiceException cex)
19746
    {
19747
      this();
19748
      this.success = success;
19749
      this.cex = cex;
19750
    }
19751
 
19752
    /**
19753
     * Performs a deep copy on <i>other</i>.
19754
     */
19755
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
19756
      if (other.isSetSuccess()) {
19757
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
19758
        for (VendorItemMapping other_element : other.success) {
19759
          __this__success.add(new VendorItemMapping(other_element));
19760
        }
19761
        this.success = __this__success;
19762
      }
19763
      if (other.isSetCex()) {
19764
        this.cex = new InventoryServiceException(other.cex);
19765
      }
19766
    }
19767
 
19768
    public getVendorItemMappings_result deepCopy() {
19769
      return new getVendorItemMappings_result(this);
19770
    }
19771
 
19772
    @Override
19773
    public void clear() {
19774
      this.success = null;
19775
      this.cex = null;
19776
    }
19777
 
19778
    public int getSuccessSize() {
19779
      return (this.success == null) ? 0 : this.success.size();
19780
    }
19781
 
19782
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
19783
      return (this.success == null) ? null : this.success.iterator();
19784
    }
19785
 
19786
    public void addToSuccess(VendorItemMapping elem) {
19787
      if (this.success == null) {
19788
        this.success = new ArrayList<VendorItemMapping>();
19789
      }
19790
      this.success.add(elem);
19791
    }
19792
 
19793
    public List<VendorItemMapping> getSuccess() {
19794
      return this.success;
19795
    }
19796
 
19797
    public void setSuccess(List<VendorItemMapping> success) {
19798
      this.success = success;
19799
    }
19800
 
19801
    public void unsetSuccess() {
19802
      this.success = null;
19803
    }
19804
 
19805
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19806
    public boolean isSetSuccess() {
19807
      return this.success != null;
19808
    }
19809
 
19810
    public void setSuccessIsSet(boolean value) {
19811
      if (!value) {
19812
        this.success = null;
19813
      }
19814
    }
19815
 
19816
    public InventoryServiceException getCex() {
19817
      return this.cex;
19818
    }
19819
 
19820
    public void setCex(InventoryServiceException cex) {
19821
      this.cex = cex;
19822
    }
19823
 
19824
    public void unsetCex() {
19825
      this.cex = null;
19826
    }
19827
 
19828
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19829
    public boolean isSetCex() {
19830
      return this.cex != null;
19831
    }
19832
 
19833
    public void setCexIsSet(boolean value) {
19834
      if (!value) {
19835
        this.cex = null;
19836
      }
19837
    }
19838
 
19839
    public void setFieldValue(_Fields field, Object value) {
19840
      switch (field) {
19841
      case SUCCESS:
19842
        if (value == null) {
19843
          unsetSuccess();
19844
        } else {
19845
          setSuccess((List<VendorItemMapping>)value);
19846
        }
19847
        break;
19848
 
19849
      case CEX:
19850
        if (value == null) {
19851
          unsetCex();
19852
        } else {
19853
          setCex((InventoryServiceException)value);
19854
        }
19855
        break;
19856
 
19857
      }
19858
    }
19859
 
19860
    public Object getFieldValue(_Fields field) {
19861
      switch (field) {
19862
      case SUCCESS:
19863
        return getSuccess();
19864
 
19865
      case CEX:
19866
        return getCex();
19867
 
19868
      }
19869
      throw new IllegalStateException();
19870
    }
19871
 
19872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19873
    public boolean isSet(_Fields field) {
19874
      if (field == null) {
19875
        throw new IllegalArgumentException();
19876
      }
19877
 
19878
      switch (field) {
19879
      case SUCCESS:
19880
        return isSetSuccess();
19881
      case CEX:
19882
        return isSetCex();
19883
      }
19884
      throw new IllegalStateException();
19885
    }
19886
 
19887
    @Override
19888
    public boolean equals(Object that) {
19889
      if (that == null)
19890
        return false;
19891
      if (that instanceof getVendorItemMappings_result)
19892
        return this.equals((getVendorItemMappings_result)that);
19893
      return false;
19894
    }
19895
 
19896
    public boolean equals(getVendorItemMappings_result that) {
19897
      if (that == null)
19898
        return false;
19899
 
19900
      boolean this_present_success = true && this.isSetSuccess();
19901
      boolean that_present_success = true && that.isSetSuccess();
19902
      if (this_present_success || that_present_success) {
19903
        if (!(this_present_success && that_present_success))
19904
          return false;
19905
        if (!this.success.equals(that.success))
19906
          return false;
19907
      }
19908
 
19909
      boolean this_present_cex = true && this.isSetCex();
19910
      boolean that_present_cex = true && that.isSetCex();
19911
      if (this_present_cex || that_present_cex) {
19912
        if (!(this_present_cex && that_present_cex))
19913
          return false;
19914
        if (!this.cex.equals(that.cex))
19915
          return false;
19916
      }
19917
 
19918
      return true;
19919
    }
19920
 
19921
    @Override
19922
    public int hashCode() {
19923
      return 0;
19924
    }
19925
 
19926
    public int compareTo(getVendorItemMappings_result other) {
19927
      if (!getClass().equals(other.getClass())) {
19928
        return getClass().getName().compareTo(other.getClass().getName());
19929
      }
19930
 
19931
      int lastComparison = 0;
19932
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
19933
 
19934
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19935
      if (lastComparison != 0) {
19936
        return lastComparison;
19937
      }
19938
      if (isSetSuccess()) {
19939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19940
        if (lastComparison != 0) {
19941
          return lastComparison;
19942
        }
19943
      }
19944
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19945
      if (lastComparison != 0) {
19946
        return lastComparison;
19947
      }
19948
      if (isSetCex()) {
19949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19950
        if (lastComparison != 0) {
19951
          return lastComparison;
19952
        }
19953
      }
19954
      return 0;
19955
    }
19956
 
19957
    public _Fields fieldForId(int fieldId) {
19958
      return _Fields.findByThriftId(fieldId);
19959
    }
19960
 
19961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19962
      org.apache.thrift.protocol.TField field;
19963
      iprot.readStructBegin();
19964
      while (true)
19965
      {
19966
        field = iprot.readFieldBegin();
19967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19968
          break;
19969
        }
19970
        switch (field.id) {
19971
          case 0: // SUCCESS
19972
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19973
              {
19974
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
19975
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
19976
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
19977
                {
19978
                  VendorItemMapping _elem42; // required
19979
                  _elem42 = new VendorItemMapping();
19980
                  _elem42.read(iprot);
19981
                  this.success.add(_elem42);
19982
                }
19983
                iprot.readListEnd();
19984
              }
19985
            } else { 
19986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19987
            }
19988
            break;
19989
          case 1: // CEX
19990
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19991
              this.cex = new InventoryServiceException();
19992
              this.cex.read(iprot);
19993
            } else { 
19994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19995
            }
19996
            break;
19997
          default:
19998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19999
        }
20000
        iprot.readFieldEnd();
20001
      }
20002
      iprot.readStructEnd();
20003
      validate();
20004
    }
20005
 
20006
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20007
      oprot.writeStructBegin(STRUCT_DESC);
20008
 
20009
      if (this.isSetSuccess()) {
20010
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20011
        {
20012
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20013
          for (VendorItemMapping _iter43 : this.success)
20014
          {
20015
            _iter43.write(oprot);
20016
          }
20017
          oprot.writeListEnd();
20018
        }
20019
        oprot.writeFieldEnd();
20020
      } else if (this.isSetCex()) {
20021
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20022
        this.cex.write(oprot);
20023
        oprot.writeFieldEnd();
20024
      }
20025
      oprot.writeFieldStop();
20026
      oprot.writeStructEnd();
20027
    }
20028
 
20029
    @Override
20030
    public String toString() {
20031
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
20032
      boolean first = true;
20033
 
20034
      sb.append("success:");
20035
      if (this.success == null) {
20036
        sb.append("null");
20037
      } else {
20038
        sb.append(this.success);
20039
      }
20040
      first = false;
20041
      if (!first) sb.append(", ");
20042
      sb.append("cex:");
20043
      if (this.cex == null) {
20044
        sb.append("null");
20045
      } else {
20046
        sb.append(this.cex);
20047
      }
20048
      first = false;
20049
      sb.append(")");
20050
      return sb.toString();
20051
    }
20052
 
20053
    public void validate() throws org.apache.thrift.TException {
20054
      // check for required fields
20055
    }
20056
 
20057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20058
      try {
20059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20060
      } catch (org.apache.thrift.TException te) {
20061
        throw new java.io.IOException(te);
20062
      }
20063
    }
20064
 
20065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20066
      try {
20067
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20068
      } catch (org.apache.thrift.TException te) {
20069
        throw new java.io.IOException(te);
20070
      }
20071
    }
20072
 
20073
  }
20074
 
20075
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
20076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
20077
 
20078
    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);
20079
 
20080
    private long vendorid; // required
20081
 
20082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20084
      VENDORID((short)1, "vendorid");
20085
 
20086
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20087
 
20088
      static {
20089
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20090
          byName.put(field.getFieldName(), field);
20091
        }
20092
      }
20093
 
20094
      /**
20095
       * Find the _Fields constant that matches fieldId, or null if its not found.
20096
       */
20097
      public static _Fields findByThriftId(int fieldId) {
20098
        switch(fieldId) {
20099
          case 1: // VENDORID
20100
            return VENDORID;
20101
          default:
20102
            return null;
20103
        }
20104
      }
20105
 
20106
      /**
20107
       * Find the _Fields constant that matches fieldId, throwing an exception
20108
       * if it is not found.
20109
       */
20110
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20111
        _Fields fields = findByThriftId(fieldId);
20112
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20113
        return fields;
20114
      }
20115
 
20116
      /**
20117
       * Find the _Fields constant that matches name, or null if its not found.
20118
       */
20119
      public static _Fields findByName(String name) {
20120
        return byName.get(name);
20121
      }
20122
 
20123
      private final short _thriftId;
20124
      private final String _fieldName;
20125
 
20126
      _Fields(short thriftId, String fieldName) {
20127
        _thriftId = thriftId;
20128
        _fieldName = fieldName;
20129
      }
20130
 
20131
      public short getThriftFieldId() {
20132
        return _thriftId;
20133
      }
20134
 
20135
      public String getFieldName() {
20136
        return _fieldName;
20137
      }
20138
    }
20139
 
20140
    // isset id assignments
20141
    private static final int __VENDORID_ISSET_ID = 0;
20142
    private BitSet __isset_bit_vector = new BitSet(1);
20143
 
20144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20145
    static {
20146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20147
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20148
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20149
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20150
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
20151
    }
20152
 
20153
    public getPendingOrdersInventory_args() {
20154
    }
20155
 
20156
    public getPendingOrdersInventory_args(
20157
      long vendorid)
20158
    {
20159
      this();
20160
      this.vendorid = vendorid;
20161
      setVendoridIsSet(true);
20162
    }
20163
 
20164
    /**
20165
     * Performs a deep copy on <i>other</i>.
20166
     */
20167
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
20168
      __isset_bit_vector.clear();
20169
      __isset_bit_vector.or(other.__isset_bit_vector);
20170
      this.vendorid = other.vendorid;
20171
    }
20172
 
20173
    public getPendingOrdersInventory_args deepCopy() {
20174
      return new getPendingOrdersInventory_args(this);
20175
    }
20176
 
20177
    @Override
20178
    public void clear() {
20179
      setVendoridIsSet(false);
20180
      this.vendorid = 0;
20181
    }
20182
 
20183
    public long getVendorid() {
20184
      return this.vendorid;
20185
    }
20186
 
20187
    public void setVendorid(long vendorid) {
20188
      this.vendorid = vendorid;
20189
      setVendoridIsSet(true);
20190
    }
20191
 
20192
    public void unsetVendorid() {
20193
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20194
    }
20195
 
20196
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
20197
    public boolean isSetVendorid() {
20198
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20199
    }
20200
 
20201
    public void setVendoridIsSet(boolean value) {
20202
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20203
    }
20204
 
20205
    public void setFieldValue(_Fields field, Object value) {
20206
      switch (field) {
20207
      case VENDORID:
20208
        if (value == null) {
20209
          unsetVendorid();
20210
        } else {
20211
          setVendorid((Long)value);
20212
        }
20213
        break;
20214
 
20215
      }
20216
    }
20217
 
20218
    public Object getFieldValue(_Fields field) {
20219
      switch (field) {
20220
      case VENDORID:
20221
        return Long.valueOf(getVendorid());
20222
 
20223
      }
20224
      throw new IllegalStateException();
20225
    }
20226
 
20227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20228
    public boolean isSet(_Fields field) {
20229
      if (field == null) {
20230
        throw new IllegalArgumentException();
20231
      }
20232
 
20233
      switch (field) {
20234
      case VENDORID:
20235
        return isSetVendorid();
20236
      }
20237
      throw new IllegalStateException();
20238
    }
20239
 
20240
    @Override
20241
    public boolean equals(Object that) {
20242
      if (that == null)
20243
        return false;
20244
      if (that instanceof getPendingOrdersInventory_args)
20245
        return this.equals((getPendingOrdersInventory_args)that);
20246
      return false;
20247
    }
20248
 
20249
    public boolean equals(getPendingOrdersInventory_args that) {
20250
      if (that == null)
20251
        return false;
20252
 
20253
      boolean this_present_vendorid = true;
20254
      boolean that_present_vendorid = true;
20255
      if (this_present_vendorid || that_present_vendorid) {
20256
        if (!(this_present_vendorid && that_present_vendorid))
20257
          return false;
20258
        if (this.vendorid != that.vendorid)
20259
          return false;
20260
      }
20261
 
20262
      return true;
20263
    }
20264
 
20265
    @Override
20266
    public int hashCode() {
20267
      return 0;
20268
    }
20269
 
20270
    public int compareTo(getPendingOrdersInventory_args other) {
20271
      if (!getClass().equals(other.getClass())) {
20272
        return getClass().getName().compareTo(other.getClass().getName());
20273
      }
20274
 
20275
      int lastComparison = 0;
20276
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
20277
 
20278
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
20279
      if (lastComparison != 0) {
20280
        return lastComparison;
20281
      }
20282
      if (isSetVendorid()) {
20283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
20284
        if (lastComparison != 0) {
20285
          return lastComparison;
20286
        }
20287
      }
20288
      return 0;
20289
    }
20290
 
20291
    public _Fields fieldForId(int fieldId) {
20292
      return _Fields.findByThriftId(fieldId);
20293
    }
20294
 
20295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20296
      org.apache.thrift.protocol.TField field;
20297
      iprot.readStructBegin();
20298
      while (true)
20299
      {
20300
        field = iprot.readFieldBegin();
20301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20302
          break;
20303
        }
20304
        switch (field.id) {
20305
          case 1: // VENDORID
20306
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20307
              this.vendorid = iprot.readI64();
20308
              setVendoridIsSet(true);
20309
            } else { 
20310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20311
            }
20312
            break;
20313
          default:
20314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20315
        }
20316
        iprot.readFieldEnd();
20317
      }
20318
      iprot.readStructEnd();
20319
      validate();
20320
    }
20321
 
20322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20323
      validate();
20324
 
20325
      oprot.writeStructBegin(STRUCT_DESC);
20326
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
20327
      oprot.writeI64(this.vendorid);
20328
      oprot.writeFieldEnd();
20329
      oprot.writeFieldStop();
20330
      oprot.writeStructEnd();
20331
    }
20332
 
20333
    @Override
20334
    public String toString() {
20335
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
20336
      boolean first = true;
20337
 
20338
      sb.append("vendorid:");
20339
      sb.append(this.vendorid);
20340
      first = false;
20341
      sb.append(")");
20342
      return sb.toString();
20343
    }
20344
 
20345
    public void validate() throws org.apache.thrift.TException {
20346
      // check for required fields
20347
    }
20348
 
20349
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20350
      try {
20351
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20352
      } catch (org.apache.thrift.TException te) {
20353
        throw new java.io.IOException(te);
20354
      }
20355
    }
20356
 
20357
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20358
      try {
20359
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20360
        __isset_bit_vector = new BitSet(1);
20361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20362
      } catch (org.apache.thrift.TException te) {
20363
        throw new java.io.IOException(te);
20364
      }
20365
    }
20366
 
20367
  }
20368
 
20369
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
20370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
20371
 
20372
    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);
20373
 
20374
    private List<AvailableAndReservedStock> success; // required
20375
 
20376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20377
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20378
      SUCCESS((short)0, "success");
20379
 
20380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20381
 
20382
      static {
20383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20384
          byName.put(field.getFieldName(), field);
20385
        }
20386
      }
20387
 
20388
      /**
20389
       * Find the _Fields constant that matches fieldId, or null if its not found.
20390
       */
20391
      public static _Fields findByThriftId(int fieldId) {
20392
        switch(fieldId) {
20393
          case 0: // SUCCESS
20394
            return SUCCESS;
20395
          default:
20396
            return null;
20397
        }
20398
      }
20399
 
20400
      /**
20401
       * Find the _Fields constant that matches fieldId, throwing an exception
20402
       * if it is not found.
20403
       */
20404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20405
        _Fields fields = findByThriftId(fieldId);
20406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20407
        return fields;
20408
      }
20409
 
20410
      /**
20411
       * Find the _Fields constant that matches name, or null if its not found.
20412
       */
20413
      public static _Fields findByName(String name) {
20414
        return byName.get(name);
20415
      }
20416
 
20417
      private final short _thriftId;
20418
      private final String _fieldName;
20419
 
20420
      _Fields(short thriftId, String fieldName) {
20421
        _thriftId = thriftId;
20422
        _fieldName = fieldName;
20423
      }
20424
 
20425
      public short getThriftFieldId() {
20426
        return _thriftId;
20427
      }
20428
 
20429
      public String getFieldName() {
20430
        return _fieldName;
20431
      }
20432
    }
20433
 
20434
    // isset id assignments
20435
 
20436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20437
    static {
20438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20439
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20440
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20441
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
20442
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20443
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
20444
    }
20445
 
20446
    public getPendingOrdersInventory_result() {
20447
    }
20448
 
20449
    public getPendingOrdersInventory_result(
20450
      List<AvailableAndReservedStock> success)
20451
    {
20452
      this();
20453
      this.success = success;
20454
    }
20455
 
20456
    /**
20457
     * Performs a deep copy on <i>other</i>.
20458
     */
20459
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
20460
      if (other.isSetSuccess()) {
20461
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
20462
        for (AvailableAndReservedStock other_element : other.success) {
20463
          __this__success.add(new AvailableAndReservedStock(other_element));
20464
        }
20465
        this.success = __this__success;
20466
      }
20467
    }
20468
 
20469
    public getPendingOrdersInventory_result deepCopy() {
20470
      return new getPendingOrdersInventory_result(this);
20471
    }
20472
 
20473
    @Override
20474
    public void clear() {
20475
      this.success = null;
20476
    }
20477
 
20478
    public int getSuccessSize() {
20479
      return (this.success == null) ? 0 : this.success.size();
20480
    }
20481
 
20482
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
20483
      return (this.success == null) ? null : this.success.iterator();
20484
    }
20485
 
20486
    public void addToSuccess(AvailableAndReservedStock elem) {
20487
      if (this.success == null) {
20488
        this.success = new ArrayList<AvailableAndReservedStock>();
20489
      }
20490
      this.success.add(elem);
20491
    }
20492
 
20493
    public List<AvailableAndReservedStock> getSuccess() {
20494
      return this.success;
20495
    }
20496
 
20497
    public void setSuccess(List<AvailableAndReservedStock> success) {
20498
      this.success = success;
20499
    }
20500
 
20501
    public void unsetSuccess() {
20502
      this.success = null;
20503
    }
20504
 
20505
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20506
    public boolean isSetSuccess() {
20507
      return this.success != null;
20508
    }
20509
 
20510
    public void setSuccessIsSet(boolean value) {
20511
      if (!value) {
20512
        this.success = null;
20513
      }
20514
    }
20515
 
20516
    public void setFieldValue(_Fields field, Object value) {
20517
      switch (field) {
20518
      case SUCCESS:
20519
        if (value == null) {
20520
          unsetSuccess();
20521
        } else {
20522
          setSuccess((List<AvailableAndReservedStock>)value);
20523
        }
20524
        break;
20525
 
20526
      }
20527
    }
20528
 
20529
    public Object getFieldValue(_Fields field) {
20530
      switch (field) {
20531
      case SUCCESS:
20532
        return getSuccess();
20533
 
20534
      }
20535
      throw new IllegalStateException();
20536
    }
20537
 
20538
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20539
    public boolean isSet(_Fields field) {
20540
      if (field == null) {
20541
        throw new IllegalArgumentException();
20542
      }
20543
 
20544
      switch (field) {
20545
      case SUCCESS:
20546
        return isSetSuccess();
20547
      }
20548
      throw new IllegalStateException();
20549
    }
20550
 
20551
    @Override
20552
    public boolean equals(Object that) {
20553
      if (that == null)
20554
        return false;
20555
      if (that instanceof getPendingOrdersInventory_result)
20556
        return this.equals((getPendingOrdersInventory_result)that);
20557
      return false;
20558
    }
20559
 
20560
    public boolean equals(getPendingOrdersInventory_result that) {
20561
      if (that == null)
20562
        return false;
20563
 
20564
      boolean this_present_success = true && this.isSetSuccess();
20565
      boolean that_present_success = true && that.isSetSuccess();
20566
      if (this_present_success || that_present_success) {
20567
        if (!(this_present_success && that_present_success))
20568
          return false;
20569
        if (!this.success.equals(that.success))
20570
          return false;
20571
      }
20572
 
20573
      return true;
20574
    }
20575
 
20576
    @Override
20577
    public int hashCode() {
20578
      return 0;
20579
    }
20580
 
20581
    public int compareTo(getPendingOrdersInventory_result other) {
20582
      if (!getClass().equals(other.getClass())) {
20583
        return getClass().getName().compareTo(other.getClass().getName());
20584
      }
20585
 
20586
      int lastComparison = 0;
20587
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
20588
 
20589
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20590
      if (lastComparison != 0) {
20591
        return lastComparison;
20592
      }
20593
      if (isSetSuccess()) {
20594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20595
        if (lastComparison != 0) {
20596
          return lastComparison;
20597
        }
20598
      }
20599
      return 0;
20600
    }
20601
 
20602
    public _Fields fieldForId(int fieldId) {
20603
      return _Fields.findByThriftId(fieldId);
20604
    }
20605
 
20606
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20607
      org.apache.thrift.protocol.TField field;
20608
      iprot.readStructBegin();
20609
      while (true)
20610
      {
20611
        field = iprot.readFieldBegin();
20612
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20613
          break;
20614
        }
20615
        switch (field.id) {
20616
          case 0: // SUCCESS
20617
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20618
              {
20619
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
20620
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
20621
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20622
                {
20623
                  AvailableAndReservedStock _elem46; // required
20624
                  _elem46 = new AvailableAndReservedStock();
20625
                  _elem46.read(iprot);
20626
                  this.success.add(_elem46);
20627
                }
20628
                iprot.readListEnd();
20629
              }
20630
            } else { 
20631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20632
            }
20633
            break;
20634
          default:
20635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20636
        }
20637
        iprot.readFieldEnd();
20638
      }
20639
      iprot.readStructEnd();
20640
      validate();
20641
    }
20642
 
20643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20644
      oprot.writeStructBegin(STRUCT_DESC);
20645
 
20646
      if (this.isSetSuccess()) {
20647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20648
        {
20649
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20650
          for (AvailableAndReservedStock _iter47 : this.success)
20651
          {
20652
            _iter47.write(oprot);
20653
          }
20654
          oprot.writeListEnd();
20655
        }
20656
        oprot.writeFieldEnd();
20657
      }
20658
      oprot.writeFieldStop();
20659
      oprot.writeStructEnd();
20660
    }
20661
 
20662
    @Override
20663
    public String toString() {
20664
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
20665
      boolean first = true;
20666
 
20667
      sb.append("success:");
20668
      if (this.success == null) {
20669
        sb.append("null");
20670
      } else {
20671
        sb.append(this.success);
20672
      }
20673
      first = false;
20674
      sb.append(")");
20675
      return sb.toString();
20676
    }
20677
 
20678
    public void validate() throws org.apache.thrift.TException {
20679
      // check for required fields
20680
    }
20681
 
20682
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20683
      try {
20684
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20685
      } catch (org.apache.thrift.TException te) {
20686
        throw new java.io.IOException(te);
20687
      }
20688
    }
20689
 
20690
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20691
      try {
20692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20693
      } catch (org.apache.thrift.TException te) {
20694
        throw new java.io.IOException(te);
20695
      }
20696
    }
20697
 
20698
  }
20699
 
20700
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
20701
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
20702
 
20703
    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);
20704
    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);
20705
    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);
20706
    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);
20707
    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);
20708
 
20709
    private WarehouseType warehouseType; // required
20710
    private InventoryType inventoryType; // required
20711
    private long vendorId; // required
20712
    private long billingWarehouseId; // required
20713
    private long shippingWarehouseId; // required
20714
 
20715
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20716
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20717
      /**
20718
       * 
20719
       * @see WarehouseType
20720
       */
20721
      WAREHOUSE_TYPE((short)1, "warehouseType"),
20722
      /**
20723
       * 
20724
       * @see InventoryType
20725
       */
20726
      INVENTORY_TYPE((short)2, "inventoryType"),
20727
      VENDOR_ID((short)3, "vendorId"),
20728
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
20729
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
20730
 
20731
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20732
 
20733
      static {
20734
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20735
          byName.put(field.getFieldName(), field);
20736
        }
20737
      }
20738
 
20739
      /**
20740
       * Find the _Fields constant that matches fieldId, or null if its not found.
20741
       */
20742
      public static _Fields findByThriftId(int fieldId) {
20743
        switch(fieldId) {
20744
          case 1: // WAREHOUSE_TYPE
20745
            return WAREHOUSE_TYPE;
20746
          case 2: // INVENTORY_TYPE
20747
            return INVENTORY_TYPE;
20748
          case 3: // VENDOR_ID
20749
            return VENDOR_ID;
20750
          case 4: // BILLING_WAREHOUSE_ID
20751
            return BILLING_WAREHOUSE_ID;
20752
          case 5: // SHIPPING_WAREHOUSE_ID
20753
            return SHIPPING_WAREHOUSE_ID;
20754
          default:
20755
            return null;
20756
        }
20757
      }
20758
 
20759
      /**
20760
       * Find the _Fields constant that matches fieldId, throwing an exception
20761
       * if it is not found.
20762
       */
20763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20764
        _Fields fields = findByThriftId(fieldId);
20765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20766
        return fields;
20767
      }
20768
 
20769
      /**
20770
       * Find the _Fields constant that matches name, or null if its not found.
20771
       */
20772
      public static _Fields findByName(String name) {
20773
        return byName.get(name);
20774
      }
20775
 
20776
      private final short _thriftId;
20777
      private final String _fieldName;
20778
 
20779
      _Fields(short thriftId, String fieldName) {
20780
        _thriftId = thriftId;
20781
        _fieldName = fieldName;
20782
      }
20783
 
20784
      public short getThriftFieldId() {
20785
        return _thriftId;
20786
      }
20787
 
20788
      public String getFieldName() {
20789
        return _fieldName;
20790
      }
20791
    }
20792
 
20793
    // isset id assignments
20794
    private static final int __VENDORID_ISSET_ID = 0;
20795
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
20796
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
20797
    private BitSet __isset_bit_vector = new BitSet(3);
20798
 
20799
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20800
    static {
20801
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20802
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20803
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
20804
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20805
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
20806
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20808
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20810
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
20814
    }
20815
 
20816
    public getWarehouses_args() {
20817
    }
20818
 
20819
    public getWarehouses_args(
20820
      WarehouseType warehouseType,
20821
      InventoryType inventoryType,
20822
      long vendorId,
20823
      long billingWarehouseId,
20824
      long shippingWarehouseId)
20825
    {
20826
      this();
20827
      this.warehouseType = warehouseType;
20828
      this.inventoryType = inventoryType;
20829
      this.vendorId = vendorId;
20830
      setVendorIdIsSet(true);
20831
      this.billingWarehouseId = billingWarehouseId;
20832
      setBillingWarehouseIdIsSet(true);
20833
      this.shippingWarehouseId = shippingWarehouseId;
20834
      setShippingWarehouseIdIsSet(true);
20835
    }
20836
 
20837
    /**
20838
     * Performs a deep copy on <i>other</i>.
20839
     */
20840
    public getWarehouses_args(getWarehouses_args other) {
20841
      __isset_bit_vector.clear();
20842
      __isset_bit_vector.or(other.__isset_bit_vector);
20843
      if (other.isSetWarehouseType()) {
20844
        this.warehouseType = other.warehouseType;
20845
      }
20846
      if (other.isSetInventoryType()) {
20847
        this.inventoryType = other.inventoryType;
20848
      }
20849
      this.vendorId = other.vendorId;
20850
      this.billingWarehouseId = other.billingWarehouseId;
20851
      this.shippingWarehouseId = other.shippingWarehouseId;
20852
    }
20853
 
20854
    public getWarehouses_args deepCopy() {
20855
      return new getWarehouses_args(this);
20856
    }
20857
 
20858
    @Override
20859
    public void clear() {
20860
      this.warehouseType = null;
20861
      this.inventoryType = null;
20862
      setVendorIdIsSet(false);
20863
      this.vendorId = 0;
20864
      setBillingWarehouseIdIsSet(false);
20865
      this.billingWarehouseId = 0;
20866
      setShippingWarehouseIdIsSet(false);
20867
      this.shippingWarehouseId = 0;
20868
    }
20869
 
20870
    /**
20871
     * 
20872
     * @see WarehouseType
20873
     */
20874
    public WarehouseType getWarehouseType() {
20875
      return this.warehouseType;
20876
    }
20877
 
20878
    /**
20879
     * 
20880
     * @see WarehouseType
20881
     */
20882
    public void setWarehouseType(WarehouseType warehouseType) {
20883
      this.warehouseType = warehouseType;
20884
    }
20885
 
20886
    public void unsetWarehouseType() {
20887
      this.warehouseType = null;
20888
    }
20889
 
20890
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
20891
    public boolean isSetWarehouseType() {
20892
      return this.warehouseType != null;
20893
    }
20894
 
20895
    public void setWarehouseTypeIsSet(boolean value) {
20896
      if (!value) {
20897
        this.warehouseType = null;
20898
      }
20899
    }
20900
 
20901
    /**
20902
     * 
20903
     * @see InventoryType
20904
     */
20905
    public InventoryType getInventoryType() {
20906
      return this.inventoryType;
20907
    }
20908
 
20909
    /**
20910
     * 
20911
     * @see InventoryType
20912
     */
20913
    public void setInventoryType(InventoryType inventoryType) {
20914
      this.inventoryType = inventoryType;
20915
    }
20916
 
20917
    public void unsetInventoryType() {
20918
      this.inventoryType = null;
20919
    }
20920
 
20921
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
20922
    public boolean isSetInventoryType() {
20923
      return this.inventoryType != null;
20924
    }
20925
 
20926
    public void setInventoryTypeIsSet(boolean value) {
20927
      if (!value) {
20928
        this.inventoryType = null;
20929
      }
20930
    }
20931
 
20932
    public long getVendorId() {
20933
      return this.vendorId;
20934
    }
20935
 
20936
    public void setVendorId(long vendorId) {
20937
      this.vendorId = vendorId;
20938
      setVendorIdIsSet(true);
20939
    }
20940
 
20941
    public void unsetVendorId() {
20942
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20943
    }
20944
 
20945
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
20946
    public boolean isSetVendorId() {
20947
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20948
    }
20949
 
20950
    public void setVendorIdIsSet(boolean value) {
20951
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20952
    }
20953
 
20954
    public long getBillingWarehouseId() {
20955
      return this.billingWarehouseId;
20956
    }
20957
 
20958
    public void setBillingWarehouseId(long billingWarehouseId) {
20959
      this.billingWarehouseId = billingWarehouseId;
20960
      setBillingWarehouseIdIsSet(true);
20961
    }
20962
 
20963
    public void unsetBillingWarehouseId() {
20964
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
20965
    }
20966
 
20967
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
20968
    public boolean isSetBillingWarehouseId() {
20969
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
20970
    }
20971
 
20972
    public void setBillingWarehouseIdIsSet(boolean value) {
20973
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
20974
    }
20975
 
20976
    public long getShippingWarehouseId() {
20977
      return this.shippingWarehouseId;
20978
    }
20979
 
20980
    public void setShippingWarehouseId(long shippingWarehouseId) {
20981
      this.shippingWarehouseId = shippingWarehouseId;
20982
      setShippingWarehouseIdIsSet(true);
20983
    }
20984
 
20985
    public void unsetShippingWarehouseId() {
20986
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
20987
    }
20988
 
20989
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
20990
    public boolean isSetShippingWarehouseId() {
20991
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
20992
    }
20993
 
20994
    public void setShippingWarehouseIdIsSet(boolean value) {
20995
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
20996
    }
20997
 
20998
    public void setFieldValue(_Fields field, Object value) {
20999
      switch (field) {
21000
      case WAREHOUSE_TYPE:
21001
        if (value == null) {
21002
          unsetWarehouseType();
21003
        } else {
21004
          setWarehouseType((WarehouseType)value);
21005
        }
21006
        break;
21007
 
21008
      case INVENTORY_TYPE:
21009
        if (value == null) {
21010
          unsetInventoryType();
21011
        } else {
21012
          setInventoryType((InventoryType)value);
21013
        }
21014
        break;
21015
 
21016
      case VENDOR_ID:
21017
        if (value == null) {
21018
          unsetVendorId();
21019
        } else {
21020
          setVendorId((Long)value);
21021
        }
21022
        break;
21023
 
21024
      case BILLING_WAREHOUSE_ID:
21025
        if (value == null) {
21026
          unsetBillingWarehouseId();
21027
        } else {
21028
          setBillingWarehouseId((Long)value);
21029
        }
21030
        break;
21031
 
21032
      case SHIPPING_WAREHOUSE_ID:
21033
        if (value == null) {
21034
          unsetShippingWarehouseId();
21035
        } else {
21036
          setShippingWarehouseId((Long)value);
21037
        }
21038
        break;
21039
 
21040
      }
21041
    }
21042
 
21043
    public Object getFieldValue(_Fields field) {
21044
      switch (field) {
21045
      case WAREHOUSE_TYPE:
21046
        return getWarehouseType();
21047
 
21048
      case INVENTORY_TYPE:
21049
        return getInventoryType();
21050
 
21051
      case VENDOR_ID:
21052
        return Long.valueOf(getVendorId());
21053
 
21054
      case BILLING_WAREHOUSE_ID:
21055
        return Long.valueOf(getBillingWarehouseId());
21056
 
21057
      case SHIPPING_WAREHOUSE_ID:
21058
        return Long.valueOf(getShippingWarehouseId());
21059
 
21060
      }
21061
      throw new IllegalStateException();
21062
    }
21063
 
21064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21065
    public boolean isSet(_Fields field) {
21066
      if (field == null) {
21067
        throw new IllegalArgumentException();
21068
      }
21069
 
21070
      switch (field) {
21071
      case WAREHOUSE_TYPE:
21072
        return isSetWarehouseType();
21073
      case INVENTORY_TYPE:
21074
        return isSetInventoryType();
21075
      case VENDOR_ID:
21076
        return isSetVendorId();
21077
      case BILLING_WAREHOUSE_ID:
21078
        return isSetBillingWarehouseId();
21079
      case SHIPPING_WAREHOUSE_ID:
21080
        return isSetShippingWarehouseId();
21081
      }
21082
      throw new IllegalStateException();
21083
    }
21084
 
21085
    @Override
21086
    public boolean equals(Object that) {
21087
      if (that == null)
21088
        return false;
21089
      if (that instanceof getWarehouses_args)
21090
        return this.equals((getWarehouses_args)that);
21091
      return false;
21092
    }
21093
 
21094
    public boolean equals(getWarehouses_args that) {
21095
      if (that == null)
21096
        return false;
21097
 
21098
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
21099
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
21100
      if (this_present_warehouseType || that_present_warehouseType) {
21101
        if (!(this_present_warehouseType && that_present_warehouseType))
21102
          return false;
21103
        if (!this.warehouseType.equals(that.warehouseType))
21104
          return false;
21105
      }
21106
 
21107
      boolean this_present_inventoryType = true && this.isSetInventoryType();
21108
      boolean that_present_inventoryType = true && that.isSetInventoryType();
21109
      if (this_present_inventoryType || that_present_inventoryType) {
21110
        if (!(this_present_inventoryType && that_present_inventoryType))
21111
          return false;
21112
        if (!this.inventoryType.equals(that.inventoryType))
21113
          return false;
21114
      }
21115
 
21116
      boolean this_present_vendorId = true;
21117
      boolean that_present_vendorId = true;
21118
      if (this_present_vendorId || that_present_vendorId) {
21119
        if (!(this_present_vendorId && that_present_vendorId))
21120
          return false;
21121
        if (this.vendorId != that.vendorId)
21122
          return false;
21123
      }
21124
 
21125
      boolean this_present_billingWarehouseId = true;
21126
      boolean that_present_billingWarehouseId = true;
21127
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21128
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21129
          return false;
21130
        if (this.billingWarehouseId != that.billingWarehouseId)
21131
          return false;
21132
      }
21133
 
21134
      boolean this_present_shippingWarehouseId = true;
21135
      boolean that_present_shippingWarehouseId = true;
21136
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
21137
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
21138
          return false;
21139
        if (this.shippingWarehouseId != that.shippingWarehouseId)
21140
          return false;
21141
      }
21142
 
21143
      return true;
21144
    }
21145
 
21146
    @Override
21147
    public int hashCode() {
21148
      return 0;
21149
    }
21150
 
21151
    public int compareTo(getWarehouses_args other) {
21152
      if (!getClass().equals(other.getClass())) {
21153
        return getClass().getName().compareTo(other.getClass().getName());
21154
      }
21155
 
21156
      int lastComparison = 0;
21157
      getWarehouses_args typedOther = (getWarehouses_args)other;
21158
 
21159
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
21160
      if (lastComparison != 0) {
21161
        return lastComparison;
21162
      }
21163
      if (isSetWarehouseType()) {
21164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
21165
        if (lastComparison != 0) {
21166
          return lastComparison;
21167
        }
21168
      }
21169
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
21170
      if (lastComparison != 0) {
21171
        return lastComparison;
21172
      }
21173
      if (isSetInventoryType()) {
21174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
21175
        if (lastComparison != 0) {
21176
          return lastComparison;
21177
        }
21178
      }
21179
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21180
      if (lastComparison != 0) {
21181
        return lastComparison;
21182
      }
21183
      if (isSetVendorId()) {
21184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21185
        if (lastComparison != 0) {
21186
          return lastComparison;
21187
        }
21188
      }
21189
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21190
      if (lastComparison != 0) {
21191
        return lastComparison;
21192
      }
21193
      if (isSetBillingWarehouseId()) {
21194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21195
        if (lastComparison != 0) {
21196
          return lastComparison;
21197
        }
21198
      }
21199
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
21200
      if (lastComparison != 0) {
21201
        return lastComparison;
21202
      }
21203
      if (isSetShippingWarehouseId()) {
21204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
21205
        if (lastComparison != 0) {
21206
          return lastComparison;
21207
        }
21208
      }
21209
      return 0;
21210
    }
21211
 
21212
    public _Fields fieldForId(int fieldId) {
21213
      return _Fields.findByThriftId(fieldId);
21214
    }
21215
 
21216
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21217
      org.apache.thrift.protocol.TField field;
21218
      iprot.readStructBegin();
21219
      while (true)
21220
      {
21221
        field = iprot.readFieldBegin();
21222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21223
          break;
21224
        }
21225
        switch (field.id) {
21226
          case 1: // WAREHOUSE_TYPE
21227
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21228
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
21229
            } else { 
21230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21231
            }
21232
            break;
21233
          case 2: // INVENTORY_TYPE
21234
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21235
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
21236
            } else { 
21237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21238
            }
21239
            break;
21240
          case 3: // VENDOR_ID
21241
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21242
              this.vendorId = iprot.readI64();
21243
              setVendorIdIsSet(true);
21244
            } else { 
21245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21246
            }
21247
            break;
21248
          case 4: // BILLING_WAREHOUSE_ID
21249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21250
              this.billingWarehouseId = iprot.readI64();
21251
              setBillingWarehouseIdIsSet(true);
21252
            } else { 
21253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21254
            }
21255
            break;
21256
          case 5: // SHIPPING_WAREHOUSE_ID
21257
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21258
              this.shippingWarehouseId = iprot.readI64();
21259
              setShippingWarehouseIdIsSet(true);
21260
            } else { 
21261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21262
            }
21263
            break;
21264
          default:
21265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21266
        }
21267
        iprot.readFieldEnd();
21268
      }
21269
      iprot.readStructEnd();
21270
      validate();
21271
    }
21272
 
21273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21274
      validate();
21275
 
21276
      oprot.writeStructBegin(STRUCT_DESC);
21277
      if (this.warehouseType != null) {
21278
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
21279
        oprot.writeI32(this.warehouseType.getValue());
21280
        oprot.writeFieldEnd();
21281
      }
21282
      if (this.inventoryType != null) {
21283
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
21284
        oprot.writeI32(this.inventoryType.getValue());
21285
        oprot.writeFieldEnd();
21286
      }
21287
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21288
      oprot.writeI64(this.vendorId);
21289
      oprot.writeFieldEnd();
21290
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21291
      oprot.writeI64(this.billingWarehouseId);
21292
      oprot.writeFieldEnd();
21293
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
21294
      oprot.writeI64(this.shippingWarehouseId);
21295
      oprot.writeFieldEnd();
21296
      oprot.writeFieldStop();
21297
      oprot.writeStructEnd();
21298
    }
21299
 
21300
    @Override
21301
    public String toString() {
21302
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
21303
      boolean first = true;
21304
 
21305
      sb.append("warehouseType:");
21306
      if (this.warehouseType == null) {
21307
        sb.append("null");
21308
      } else {
21309
        sb.append(this.warehouseType);
21310
      }
21311
      first = false;
21312
      if (!first) sb.append(", ");
21313
      sb.append("inventoryType:");
21314
      if (this.inventoryType == null) {
21315
        sb.append("null");
21316
      } else {
21317
        sb.append(this.inventoryType);
21318
      }
21319
      first = false;
21320
      if (!first) sb.append(", ");
21321
      sb.append("vendorId:");
21322
      sb.append(this.vendorId);
21323
      first = false;
21324
      if (!first) sb.append(", ");
21325
      sb.append("billingWarehouseId:");
21326
      sb.append(this.billingWarehouseId);
21327
      first = false;
21328
      if (!first) sb.append(", ");
21329
      sb.append("shippingWarehouseId:");
21330
      sb.append(this.shippingWarehouseId);
21331
      first = false;
21332
      sb.append(")");
21333
      return sb.toString();
21334
    }
21335
 
21336
    public void validate() throws org.apache.thrift.TException {
21337
      // check for required fields
21338
    }
21339
 
21340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21341
      try {
21342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21343
      } catch (org.apache.thrift.TException te) {
21344
        throw new java.io.IOException(te);
21345
      }
21346
    }
21347
 
21348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21349
      try {
21350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21351
      } catch (org.apache.thrift.TException te) {
21352
        throw new java.io.IOException(te);
21353
      }
21354
    }
21355
 
21356
  }
21357
 
21358
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
21359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
21360
 
21361
    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);
21362
 
21363
    private List<Warehouse> success; // required
21364
 
21365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21367
      SUCCESS((short)0, "success");
21368
 
21369
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21370
 
21371
      static {
21372
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21373
          byName.put(field.getFieldName(), field);
21374
        }
21375
      }
21376
 
21377
      /**
21378
       * Find the _Fields constant that matches fieldId, or null if its not found.
21379
       */
21380
      public static _Fields findByThriftId(int fieldId) {
21381
        switch(fieldId) {
21382
          case 0: // SUCCESS
21383
            return SUCCESS;
21384
          default:
21385
            return null;
21386
        }
21387
      }
21388
 
21389
      /**
21390
       * Find the _Fields constant that matches fieldId, throwing an exception
21391
       * if it is not found.
21392
       */
21393
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21394
        _Fields fields = findByThriftId(fieldId);
21395
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21396
        return fields;
21397
      }
21398
 
21399
      /**
21400
       * Find the _Fields constant that matches name, or null if its not found.
21401
       */
21402
      public static _Fields findByName(String name) {
21403
        return byName.get(name);
21404
      }
21405
 
21406
      private final short _thriftId;
21407
      private final String _fieldName;
21408
 
21409
      _Fields(short thriftId, String fieldName) {
21410
        _thriftId = thriftId;
21411
        _fieldName = fieldName;
21412
      }
21413
 
21414
      public short getThriftFieldId() {
21415
        return _thriftId;
21416
      }
21417
 
21418
      public String getFieldName() {
21419
        return _fieldName;
21420
      }
21421
    }
21422
 
21423
    // isset id assignments
21424
 
21425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21426
    static {
21427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21428
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21429
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21430
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
21431
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21432
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
21433
    }
21434
 
21435
    public getWarehouses_result() {
21436
    }
21437
 
21438
    public getWarehouses_result(
21439
      List<Warehouse> success)
21440
    {
21441
      this();
21442
      this.success = success;
21443
    }
21444
 
21445
    /**
21446
     * Performs a deep copy on <i>other</i>.
21447
     */
21448
    public getWarehouses_result(getWarehouses_result other) {
21449
      if (other.isSetSuccess()) {
21450
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
21451
        for (Warehouse other_element : other.success) {
21452
          __this__success.add(new Warehouse(other_element));
21453
        }
21454
        this.success = __this__success;
21455
      }
21456
    }
21457
 
21458
    public getWarehouses_result deepCopy() {
21459
      return new getWarehouses_result(this);
21460
    }
21461
 
21462
    @Override
21463
    public void clear() {
21464
      this.success = null;
21465
    }
21466
 
21467
    public int getSuccessSize() {
21468
      return (this.success == null) ? 0 : this.success.size();
21469
    }
21470
 
21471
    public java.util.Iterator<Warehouse> getSuccessIterator() {
21472
      return (this.success == null) ? null : this.success.iterator();
21473
    }
21474
 
21475
    public void addToSuccess(Warehouse elem) {
21476
      if (this.success == null) {
21477
        this.success = new ArrayList<Warehouse>();
21478
      }
21479
      this.success.add(elem);
21480
    }
21481
 
21482
    public List<Warehouse> getSuccess() {
21483
      return this.success;
21484
    }
21485
 
21486
    public void setSuccess(List<Warehouse> success) {
21487
      this.success = success;
21488
    }
21489
 
21490
    public void unsetSuccess() {
21491
      this.success = null;
21492
    }
21493
 
21494
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21495
    public boolean isSetSuccess() {
21496
      return this.success != null;
21497
    }
21498
 
21499
    public void setSuccessIsSet(boolean value) {
21500
      if (!value) {
21501
        this.success = null;
21502
      }
21503
    }
21504
 
21505
    public void setFieldValue(_Fields field, Object value) {
21506
      switch (field) {
21507
      case SUCCESS:
21508
        if (value == null) {
21509
          unsetSuccess();
21510
        } else {
21511
          setSuccess((List<Warehouse>)value);
21512
        }
21513
        break;
21514
 
21515
      }
21516
    }
21517
 
21518
    public Object getFieldValue(_Fields field) {
21519
      switch (field) {
21520
      case SUCCESS:
21521
        return getSuccess();
21522
 
21523
      }
21524
      throw new IllegalStateException();
21525
    }
21526
 
21527
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21528
    public boolean isSet(_Fields field) {
21529
      if (field == null) {
21530
        throw new IllegalArgumentException();
21531
      }
21532
 
21533
      switch (field) {
21534
      case SUCCESS:
21535
        return isSetSuccess();
21536
      }
21537
      throw new IllegalStateException();
21538
    }
21539
 
21540
    @Override
21541
    public boolean equals(Object that) {
21542
      if (that == null)
21543
        return false;
21544
      if (that instanceof getWarehouses_result)
21545
        return this.equals((getWarehouses_result)that);
21546
      return false;
21547
    }
21548
 
21549
    public boolean equals(getWarehouses_result that) {
21550
      if (that == null)
21551
        return false;
21552
 
21553
      boolean this_present_success = true && this.isSetSuccess();
21554
      boolean that_present_success = true && that.isSetSuccess();
21555
      if (this_present_success || that_present_success) {
21556
        if (!(this_present_success && that_present_success))
21557
          return false;
21558
        if (!this.success.equals(that.success))
21559
          return false;
21560
      }
21561
 
21562
      return true;
21563
    }
21564
 
21565
    @Override
21566
    public int hashCode() {
21567
      return 0;
21568
    }
21569
 
21570
    public int compareTo(getWarehouses_result other) {
21571
      if (!getClass().equals(other.getClass())) {
21572
        return getClass().getName().compareTo(other.getClass().getName());
21573
      }
21574
 
21575
      int lastComparison = 0;
21576
      getWarehouses_result typedOther = (getWarehouses_result)other;
21577
 
21578
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21579
      if (lastComparison != 0) {
21580
        return lastComparison;
21581
      }
21582
      if (isSetSuccess()) {
21583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21584
        if (lastComparison != 0) {
21585
          return lastComparison;
21586
        }
21587
      }
21588
      return 0;
21589
    }
21590
 
21591
    public _Fields fieldForId(int fieldId) {
21592
      return _Fields.findByThriftId(fieldId);
21593
    }
21594
 
21595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21596
      org.apache.thrift.protocol.TField field;
21597
      iprot.readStructBegin();
21598
      while (true)
21599
      {
21600
        field = iprot.readFieldBegin();
21601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21602
          break;
21603
        }
21604
        switch (field.id) {
21605
          case 0: // SUCCESS
21606
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21607
              {
21608
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21609
                this.success = new ArrayList<Warehouse>(_list48.size);
21610
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21611
                {
21612
                  Warehouse _elem50; // required
21613
                  _elem50 = new Warehouse();
21614
                  _elem50.read(iprot);
21615
                  this.success.add(_elem50);
21616
                }
21617
                iprot.readListEnd();
21618
              }
21619
            } else { 
21620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21621
            }
21622
            break;
21623
          default:
21624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21625
        }
21626
        iprot.readFieldEnd();
21627
      }
21628
      iprot.readStructEnd();
21629
      validate();
21630
    }
21631
 
21632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21633
      oprot.writeStructBegin(STRUCT_DESC);
21634
 
21635
      if (this.isSetSuccess()) {
21636
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21637
        {
21638
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21639
          for (Warehouse _iter51 : this.success)
21640
          {
21641
            _iter51.write(oprot);
21642
          }
21643
          oprot.writeListEnd();
21644
        }
21645
        oprot.writeFieldEnd();
21646
      }
21647
      oprot.writeFieldStop();
21648
      oprot.writeStructEnd();
21649
    }
21650
 
21651
    @Override
21652
    public String toString() {
21653
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
21654
      boolean first = true;
21655
 
21656
      sb.append("success:");
21657
      if (this.success == null) {
21658
        sb.append("null");
21659
      } else {
21660
        sb.append(this.success);
21661
      }
21662
      first = false;
21663
      sb.append(")");
21664
      return sb.toString();
21665
    }
21666
 
21667
    public void validate() throws org.apache.thrift.TException {
21668
      // check for required fields
21669
    }
21670
 
21671
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21672
      try {
21673
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21674
      } catch (org.apache.thrift.TException te) {
21675
        throw new java.io.IOException(te);
21676
      }
21677
    }
21678
 
21679
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21680
      try {
21681
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21682
      } catch (org.apache.thrift.TException te) {
21683
        throw new java.io.IOException(te);
21684
      }
21685
    }
21686
 
21687
  }
21688
 
21689
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
21690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
21691
 
21692
    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);
21693
    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);
21694
    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);
21695
    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);
21696
 
21697
    private String itemKey; // required
21698
    private long vendorId; // required
21699
    private long quantity; // required
21700
    private long warehouseId; // required
21701
 
21702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21704
      ITEM_KEY((short)1, "itemKey"),
21705
      VENDOR_ID((short)2, "vendorId"),
21706
      QUANTITY((short)3, "quantity"),
21707
      WAREHOUSE_ID((short)4, "warehouseId");
21708
 
21709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21710
 
21711
      static {
21712
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21713
          byName.put(field.getFieldName(), field);
21714
        }
21715
      }
21716
 
21717
      /**
21718
       * Find the _Fields constant that matches fieldId, or null if its not found.
21719
       */
21720
      public static _Fields findByThriftId(int fieldId) {
21721
        switch(fieldId) {
21722
          case 1: // ITEM_KEY
21723
            return ITEM_KEY;
21724
          case 2: // VENDOR_ID
21725
            return VENDOR_ID;
21726
          case 3: // QUANTITY
21727
            return QUANTITY;
21728
          case 4: // WAREHOUSE_ID
21729
            return WAREHOUSE_ID;
21730
          default:
21731
            return null;
21732
        }
21733
      }
21734
 
21735
      /**
21736
       * Find the _Fields constant that matches fieldId, throwing an exception
21737
       * if it is not found.
21738
       */
21739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21740
        _Fields fields = findByThriftId(fieldId);
21741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21742
        return fields;
21743
      }
21744
 
21745
      /**
21746
       * Find the _Fields constant that matches name, or null if its not found.
21747
       */
21748
      public static _Fields findByName(String name) {
21749
        return byName.get(name);
21750
      }
21751
 
21752
      private final short _thriftId;
21753
      private final String _fieldName;
21754
 
21755
      _Fields(short thriftId, String fieldName) {
21756
        _thriftId = thriftId;
21757
        _fieldName = fieldName;
21758
      }
21759
 
21760
      public short getThriftFieldId() {
21761
        return _thriftId;
21762
      }
21763
 
21764
      public String getFieldName() {
21765
        return _fieldName;
21766
      }
21767
    }
21768
 
21769
    // isset id assignments
21770
    private static final int __VENDORID_ISSET_ID = 0;
21771
    private static final int __QUANTITY_ISSET_ID = 1;
21772
    private static final int __WAREHOUSEID_ISSET_ID = 2;
21773
    private BitSet __isset_bit_vector = new BitSet(3);
21774
 
21775
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21776
    static {
21777
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21778
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21780
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21782
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21784
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
21788
    }
21789
 
21790
    public resetAvailability_args() {
21791
    }
21792
 
21793
    public resetAvailability_args(
21794
      String itemKey,
21795
      long vendorId,
21796
      long quantity,
21797
      long warehouseId)
21798
    {
21799
      this();
21800
      this.itemKey = itemKey;
21801
      this.vendorId = vendorId;
21802
      setVendorIdIsSet(true);
21803
      this.quantity = quantity;
21804
      setQuantityIsSet(true);
21805
      this.warehouseId = warehouseId;
21806
      setWarehouseIdIsSet(true);
21807
    }
21808
 
21809
    /**
21810
     * Performs a deep copy on <i>other</i>.
21811
     */
21812
    public resetAvailability_args(resetAvailability_args other) {
21813
      __isset_bit_vector.clear();
21814
      __isset_bit_vector.or(other.__isset_bit_vector);
21815
      if (other.isSetItemKey()) {
21816
        this.itemKey = other.itemKey;
21817
      }
21818
      this.vendorId = other.vendorId;
21819
      this.quantity = other.quantity;
21820
      this.warehouseId = other.warehouseId;
21821
    }
21822
 
21823
    public resetAvailability_args deepCopy() {
21824
      return new resetAvailability_args(this);
21825
    }
21826
 
21827
    @Override
21828
    public void clear() {
21829
      this.itemKey = null;
21830
      setVendorIdIsSet(false);
21831
      this.vendorId = 0;
21832
      setQuantityIsSet(false);
21833
      this.quantity = 0;
21834
      setWarehouseIdIsSet(false);
21835
      this.warehouseId = 0;
21836
    }
21837
 
21838
    public String getItemKey() {
21839
      return this.itemKey;
21840
    }
21841
 
21842
    public void setItemKey(String itemKey) {
21843
      this.itemKey = itemKey;
21844
    }
21845
 
21846
    public void unsetItemKey() {
21847
      this.itemKey = null;
21848
    }
21849
 
21850
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
21851
    public boolean isSetItemKey() {
21852
      return this.itemKey != null;
21853
    }
21854
 
21855
    public void setItemKeyIsSet(boolean value) {
21856
      if (!value) {
21857
        this.itemKey = null;
21858
      }
21859
    }
21860
 
21861
    public long getVendorId() {
21862
      return this.vendorId;
21863
    }
21864
 
21865
    public void setVendorId(long vendorId) {
21866
      this.vendorId = vendorId;
21867
      setVendorIdIsSet(true);
21868
    }
21869
 
21870
    public void unsetVendorId() {
21871
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21872
    }
21873
 
21874
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21875
    public boolean isSetVendorId() {
21876
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21877
    }
21878
 
21879
    public void setVendorIdIsSet(boolean value) {
21880
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21881
    }
21882
 
21883
    public long getQuantity() {
21884
      return this.quantity;
21885
    }
21886
 
21887
    public void setQuantity(long quantity) {
21888
      this.quantity = quantity;
21889
      setQuantityIsSet(true);
21890
    }
21891
 
21892
    public void unsetQuantity() {
21893
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
21894
    }
21895
 
21896
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
21897
    public boolean isSetQuantity() {
21898
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
21899
    }
21900
 
21901
    public void setQuantityIsSet(boolean value) {
21902
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
21903
    }
21904
 
21905
    public long getWarehouseId() {
21906
      return this.warehouseId;
21907
    }
21908
 
21909
    public void setWarehouseId(long warehouseId) {
21910
      this.warehouseId = warehouseId;
21911
      setWarehouseIdIsSet(true);
21912
    }
21913
 
21914
    public void unsetWarehouseId() {
21915
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
21916
    }
21917
 
21918
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
21919
    public boolean isSetWarehouseId() {
21920
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
21921
    }
21922
 
21923
    public void setWarehouseIdIsSet(boolean value) {
21924
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
21925
    }
21926
 
21927
    public void setFieldValue(_Fields field, Object value) {
21928
      switch (field) {
21929
      case ITEM_KEY:
21930
        if (value == null) {
21931
          unsetItemKey();
21932
        } else {
21933
          setItemKey((String)value);
21934
        }
21935
        break;
21936
 
21937
      case VENDOR_ID:
21938
        if (value == null) {
21939
          unsetVendorId();
21940
        } else {
21941
          setVendorId((Long)value);
21942
        }
21943
        break;
21944
 
21945
      case QUANTITY:
21946
        if (value == null) {
21947
          unsetQuantity();
21948
        } else {
21949
          setQuantity((Long)value);
21950
        }
21951
        break;
21952
 
21953
      case WAREHOUSE_ID:
21954
        if (value == null) {
21955
          unsetWarehouseId();
21956
        } else {
21957
          setWarehouseId((Long)value);
21958
        }
21959
        break;
21960
 
21961
      }
21962
    }
21963
 
21964
    public Object getFieldValue(_Fields field) {
21965
      switch (field) {
21966
      case ITEM_KEY:
21967
        return getItemKey();
21968
 
21969
      case VENDOR_ID:
21970
        return Long.valueOf(getVendorId());
21971
 
21972
      case QUANTITY:
21973
        return Long.valueOf(getQuantity());
21974
 
21975
      case WAREHOUSE_ID:
21976
        return Long.valueOf(getWarehouseId());
21977
 
21978
      }
21979
      throw new IllegalStateException();
21980
    }
21981
 
21982
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21983
    public boolean isSet(_Fields field) {
21984
      if (field == null) {
21985
        throw new IllegalArgumentException();
21986
      }
21987
 
21988
      switch (field) {
21989
      case ITEM_KEY:
21990
        return isSetItemKey();
21991
      case VENDOR_ID:
21992
        return isSetVendorId();
21993
      case QUANTITY:
21994
        return isSetQuantity();
21995
      case WAREHOUSE_ID:
21996
        return isSetWarehouseId();
21997
      }
21998
      throw new IllegalStateException();
21999
    }
22000
 
22001
    @Override
22002
    public boolean equals(Object that) {
22003
      if (that == null)
22004
        return false;
22005
      if (that instanceof resetAvailability_args)
22006
        return this.equals((resetAvailability_args)that);
22007
      return false;
22008
    }
22009
 
22010
    public boolean equals(resetAvailability_args that) {
22011
      if (that == null)
22012
        return false;
22013
 
22014
      boolean this_present_itemKey = true && this.isSetItemKey();
22015
      boolean that_present_itemKey = true && that.isSetItemKey();
22016
      if (this_present_itemKey || that_present_itemKey) {
22017
        if (!(this_present_itemKey && that_present_itemKey))
22018
          return false;
22019
        if (!this.itemKey.equals(that.itemKey))
22020
          return false;
22021
      }
22022
 
22023
      boolean this_present_vendorId = true;
22024
      boolean that_present_vendorId = true;
22025
      if (this_present_vendorId || that_present_vendorId) {
22026
        if (!(this_present_vendorId && that_present_vendorId))
22027
          return false;
22028
        if (this.vendorId != that.vendorId)
22029
          return false;
22030
      }
22031
 
22032
      boolean this_present_quantity = true;
22033
      boolean that_present_quantity = true;
22034
      if (this_present_quantity || that_present_quantity) {
22035
        if (!(this_present_quantity && that_present_quantity))
22036
          return false;
22037
        if (this.quantity != that.quantity)
22038
          return false;
22039
      }
22040
 
22041
      boolean this_present_warehouseId = true;
22042
      boolean that_present_warehouseId = true;
22043
      if (this_present_warehouseId || that_present_warehouseId) {
22044
        if (!(this_present_warehouseId && that_present_warehouseId))
22045
          return false;
22046
        if (this.warehouseId != that.warehouseId)
22047
          return false;
22048
      }
22049
 
22050
      return true;
22051
    }
22052
 
22053
    @Override
22054
    public int hashCode() {
22055
      return 0;
22056
    }
22057
 
22058
    public int compareTo(resetAvailability_args other) {
22059
      if (!getClass().equals(other.getClass())) {
22060
        return getClass().getName().compareTo(other.getClass().getName());
22061
      }
22062
 
22063
      int lastComparison = 0;
22064
      resetAvailability_args typedOther = (resetAvailability_args)other;
22065
 
22066
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
22067
      if (lastComparison != 0) {
22068
        return lastComparison;
22069
      }
22070
      if (isSetItemKey()) {
22071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
22072
        if (lastComparison != 0) {
22073
          return lastComparison;
22074
        }
22075
      }
22076
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
22077
      if (lastComparison != 0) {
22078
        return lastComparison;
22079
      }
22080
      if (isSetVendorId()) {
22081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
22082
        if (lastComparison != 0) {
22083
          return lastComparison;
22084
        }
22085
      }
22086
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
22087
      if (lastComparison != 0) {
22088
        return lastComparison;
22089
      }
22090
      if (isSetQuantity()) {
22091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
22092
        if (lastComparison != 0) {
22093
          return lastComparison;
22094
        }
22095
      }
22096
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22097
      if (lastComparison != 0) {
22098
        return lastComparison;
22099
      }
22100
      if (isSetWarehouseId()) {
22101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22102
        if (lastComparison != 0) {
22103
          return lastComparison;
22104
        }
22105
      }
22106
      return 0;
22107
    }
22108
 
22109
    public _Fields fieldForId(int fieldId) {
22110
      return _Fields.findByThriftId(fieldId);
22111
    }
22112
 
22113
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22114
      org.apache.thrift.protocol.TField field;
22115
      iprot.readStructBegin();
22116
      while (true)
22117
      {
22118
        field = iprot.readFieldBegin();
22119
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22120
          break;
22121
        }
22122
        switch (field.id) {
22123
          case 1: // ITEM_KEY
22124
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22125
              this.itemKey = iprot.readString();
22126
            } else { 
22127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22128
            }
22129
            break;
22130
          case 2: // VENDOR_ID
22131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22132
              this.vendorId = iprot.readI64();
22133
              setVendorIdIsSet(true);
22134
            } else { 
22135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22136
            }
22137
            break;
22138
          case 3: // QUANTITY
22139
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22140
              this.quantity = iprot.readI64();
22141
              setQuantityIsSet(true);
22142
            } else { 
22143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22144
            }
22145
            break;
22146
          case 4: // WAREHOUSE_ID
22147
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22148
              this.warehouseId = iprot.readI64();
22149
              setWarehouseIdIsSet(true);
22150
            } else { 
22151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22152
            }
22153
            break;
22154
          default:
22155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22156
        }
22157
        iprot.readFieldEnd();
22158
      }
22159
      iprot.readStructEnd();
22160
      validate();
22161
    }
22162
 
22163
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22164
      validate();
22165
 
22166
      oprot.writeStructBegin(STRUCT_DESC);
22167
      if (this.itemKey != null) {
22168
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
22169
        oprot.writeString(this.itemKey);
22170
        oprot.writeFieldEnd();
22171
      }
22172
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22173
      oprot.writeI64(this.vendorId);
22174
      oprot.writeFieldEnd();
22175
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
22176
      oprot.writeI64(this.quantity);
22177
      oprot.writeFieldEnd();
22178
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22179
      oprot.writeI64(this.warehouseId);
22180
      oprot.writeFieldEnd();
22181
      oprot.writeFieldStop();
22182
      oprot.writeStructEnd();
22183
    }
22184
 
22185
    @Override
22186
    public String toString() {
22187
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
22188
      boolean first = true;
22189
 
22190
      sb.append("itemKey:");
22191
      if (this.itemKey == null) {
22192
        sb.append("null");
22193
      } else {
22194
        sb.append(this.itemKey);
22195
      }
22196
      first = false;
22197
      if (!first) sb.append(", ");
22198
      sb.append("vendorId:");
22199
      sb.append(this.vendorId);
22200
      first = false;
22201
      if (!first) sb.append(", ");
22202
      sb.append("quantity:");
22203
      sb.append(this.quantity);
22204
      first = false;
22205
      if (!first) sb.append(", ");
22206
      sb.append("warehouseId:");
22207
      sb.append(this.warehouseId);
22208
      first = false;
22209
      sb.append(")");
22210
      return sb.toString();
22211
    }
22212
 
22213
    public void validate() throws org.apache.thrift.TException {
22214
      // check for required fields
22215
    }
22216
 
22217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22218
      try {
22219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22220
      } catch (org.apache.thrift.TException te) {
22221
        throw new java.io.IOException(te);
22222
      }
22223
    }
22224
 
22225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22226
      try {
22227
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22228
        __isset_bit_vector = new BitSet(1);
22229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22230
      } catch (org.apache.thrift.TException te) {
22231
        throw new java.io.IOException(te);
22232
      }
22233
    }
22234
 
22235
  }
22236
 
22237
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
22238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
22239
 
22240
    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);
22241
 
22242
    private InventoryServiceException cex; // required
22243
 
22244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22245
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22246
      CEX((short)1, "cex");
22247
 
22248
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22249
 
22250
      static {
22251
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22252
          byName.put(field.getFieldName(), field);
22253
        }
22254
      }
22255
 
22256
      /**
22257
       * Find the _Fields constant that matches fieldId, or null if its not found.
22258
       */
22259
      public static _Fields findByThriftId(int fieldId) {
22260
        switch(fieldId) {
22261
          case 1: // CEX
22262
            return CEX;
22263
          default:
22264
            return null;
22265
        }
22266
      }
22267
 
22268
      /**
22269
       * Find the _Fields constant that matches fieldId, throwing an exception
22270
       * if it is not found.
22271
       */
22272
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22273
        _Fields fields = findByThriftId(fieldId);
22274
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22275
        return fields;
22276
      }
22277
 
22278
      /**
22279
       * Find the _Fields constant that matches name, or null if its not found.
22280
       */
22281
      public static _Fields findByName(String name) {
22282
        return byName.get(name);
22283
      }
22284
 
22285
      private final short _thriftId;
22286
      private final String _fieldName;
22287
 
22288
      _Fields(short thriftId, String fieldName) {
22289
        _thriftId = thriftId;
22290
        _fieldName = fieldName;
22291
      }
22292
 
22293
      public short getThriftFieldId() {
22294
        return _thriftId;
22295
      }
22296
 
22297
      public String getFieldName() {
22298
        return _fieldName;
22299
      }
22300
    }
22301
 
22302
    // isset id assignments
22303
 
22304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22305
    static {
22306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22307
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
22311
    }
22312
 
22313
    public resetAvailability_result() {
22314
    }
22315
 
22316
    public resetAvailability_result(
22317
      InventoryServiceException cex)
22318
    {
22319
      this();
22320
      this.cex = cex;
22321
    }
22322
 
22323
    /**
22324
     * Performs a deep copy on <i>other</i>.
22325
     */
22326
    public resetAvailability_result(resetAvailability_result other) {
22327
      if (other.isSetCex()) {
22328
        this.cex = new InventoryServiceException(other.cex);
22329
      }
22330
    }
22331
 
22332
    public resetAvailability_result deepCopy() {
22333
      return new resetAvailability_result(this);
22334
    }
22335
 
22336
    @Override
22337
    public void clear() {
22338
      this.cex = null;
22339
    }
22340
 
22341
    public InventoryServiceException getCex() {
22342
      return this.cex;
22343
    }
22344
 
22345
    public void setCex(InventoryServiceException cex) {
22346
      this.cex = cex;
22347
    }
22348
 
22349
    public void unsetCex() {
22350
      this.cex = null;
22351
    }
22352
 
22353
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22354
    public boolean isSetCex() {
22355
      return this.cex != null;
22356
    }
22357
 
22358
    public void setCexIsSet(boolean value) {
22359
      if (!value) {
22360
        this.cex = null;
22361
      }
22362
    }
22363
 
22364
    public void setFieldValue(_Fields field, Object value) {
22365
      switch (field) {
22366
      case CEX:
22367
        if (value == null) {
22368
          unsetCex();
22369
        } else {
22370
          setCex((InventoryServiceException)value);
22371
        }
22372
        break;
22373
 
22374
      }
22375
    }
22376
 
22377
    public Object getFieldValue(_Fields field) {
22378
      switch (field) {
22379
      case CEX:
22380
        return getCex();
22381
 
22382
      }
22383
      throw new IllegalStateException();
22384
    }
22385
 
22386
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22387
    public boolean isSet(_Fields field) {
22388
      if (field == null) {
22389
        throw new IllegalArgumentException();
22390
      }
22391
 
22392
      switch (field) {
22393
      case CEX:
22394
        return isSetCex();
22395
      }
22396
      throw new IllegalStateException();
22397
    }
22398
 
22399
    @Override
22400
    public boolean equals(Object that) {
22401
      if (that == null)
22402
        return false;
22403
      if (that instanceof resetAvailability_result)
22404
        return this.equals((resetAvailability_result)that);
22405
      return false;
22406
    }
22407
 
22408
    public boolean equals(resetAvailability_result that) {
22409
      if (that == null)
22410
        return false;
22411
 
22412
      boolean this_present_cex = true && this.isSetCex();
22413
      boolean that_present_cex = true && that.isSetCex();
22414
      if (this_present_cex || that_present_cex) {
22415
        if (!(this_present_cex && that_present_cex))
22416
          return false;
22417
        if (!this.cex.equals(that.cex))
22418
          return false;
22419
      }
22420
 
22421
      return true;
22422
    }
22423
 
22424
    @Override
22425
    public int hashCode() {
22426
      return 0;
22427
    }
22428
 
22429
    public int compareTo(resetAvailability_result other) {
22430
      if (!getClass().equals(other.getClass())) {
22431
        return getClass().getName().compareTo(other.getClass().getName());
22432
      }
22433
 
22434
      int lastComparison = 0;
22435
      resetAvailability_result typedOther = (resetAvailability_result)other;
22436
 
22437
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22438
      if (lastComparison != 0) {
22439
        return lastComparison;
22440
      }
22441
      if (isSetCex()) {
22442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22443
        if (lastComparison != 0) {
22444
          return lastComparison;
22445
        }
22446
      }
22447
      return 0;
22448
    }
22449
 
22450
    public _Fields fieldForId(int fieldId) {
22451
      return _Fields.findByThriftId(fieldId);
22452
    }
22453
 
22454
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22455
      org.apache.thrift.protocol.TField field;
22456
      iprot.readStructBegin();
22457
      while (true)
22458
      {
22459
        field = iprot.readFieldBegin();
22460
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22461
          break;
22462
        }
22463
        switch (field.id) {
22464
          case 1: // CEX
22465
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22466
              this.cex = new InventoryServiceException();
22467
              this.cex.read(iprot);
22468
            } else { 
22469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22470
            }
22471
            break;
22472
          default:
22473
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22474
        }
22475
        iprot.readFieldEnd();
22476
      }
22477
      iprot.readStructEnd();
22478
      validate();
22479
    }
22480
 
22481
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22482
      oprot.writeStructBegin(STRUCT_DESC);
22483
 
22484
      if (this.isSetCex()) {
22485
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22486
        this.cex.write(oprot);
22487
        oprot.writeFieldEnd();
22488
      }
22489
      oprot.writeFieldStop();
22490
      oprot.writeStructEnd();
22491
    }
22492
 
22493
    @Override
22494
    public String toString() {
22495
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
22496
      boolean first = true;
22497
 
22498
      sb.append("cex:");
22499
      if (this.cex == null) {
22500
        sb.append("null");
22501
      } else {
22502
        sb.append(this.cex);
22503
      }
22504
      first = false;
22505
      sb.append(")");
22506
      return sb.toString();
22507
    }
22508
 
22509
    public void validate() throws org.apache.thrift.TException {
22510
      // check for required fields
22511
    }
22512
 
22513
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22514
      try {
22515
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22516
      } catch (org.apache.thrift.TException te) {
22517
        throw new java.io.IOException(te);
22518
      }
22519
    }
22520
 
22521
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22522
      try {
22523
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22524
      } catch (org.apache.thrift.TException te) {
22525
        throw new java.io.IOException(te);
22526
      }
22527
    }
22528
 
22529
  }
22530
 
22531
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
22532
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
22533
 
22534
    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);
22535
 
22536
    private long warehouseId; // required
22537
 
22538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22540
      WAREHOUSE_ID((short)1, "warehouseId");
22541
 
22542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22543
 
22544
      static {
22545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22546
          byName.put(field.getFieldName(), field);
22547
        }
22548
      }
22549
 
22550
      /**
22551
       * Find the _Fields constant that matches fieldId, or null if its not found.
22552
       */
22553
      public static _Fields findByThriftId(int fieldId) {
22554
        switch(fieldId) {
22555
          case 1: // WAREHOUSE_ID
22556
            return WAREHOUSE_ID;
22557
          default:
22558
            return null;
22559
        }
22560
      }
22561
 
22562
      /**
22563
       * Find the _Fields constant that matches fieldId, throwing an exception
22564
       * if it is not found.
22565
       */
22566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22567
        _Fields fields = findByThriftId(fieldId);
22568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22569
        return fields;
22570
      }
22571
 
22572
      /**
22573
       * Find the _Fields constant that matches name, or null if its not found.
22574
       */
22575
      public static _Fields findByName(String name) {
22576
        return byName.get(name);
22577
      }
22578
 
22579
      private final short _thriftId;
22580
      private final String _fieldName;
22581
 
22582
      _Fields(short thriftId, String fieldName) {
22583
        _thriftId = thriftId;
22584
        _fieldName = fieldName;
22585
      }
22586
 
22587
      public short getThriftFieldId() {
22588
        return _thriftId;
22589
      }
22590
 
22591
      public String getFieldName() {
22592
        return _fieldName;
22593
      }
22594
    }
22595
 
22596
    // isset id assignments
22597
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22598
    private BitSet __isset_bit_vector = new BitSet(1);
22599
 
22600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22601
    static {
22602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22603
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
22607
    }
22608
 
22609
    public resetAvailabilityForWarehouse_args() {
22610
    }
22611
 
22612
    public resetAvailabilityForWarehouse_args(
22613
      long warehouseId)
22614
    {
22615
      this();
22616
      this.warehouseId = warehouseId;
22617
      setWarehouseIdIsSet(true);
22618
    }
22619
 
22620
    /**
22621
     * Performs a deep copy on <i>other</i>.
22622
     */
22623
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
22624
      __isset_bit_vector.clear();
22625
      __isset_bit_vector.or(other.__isset_bit_vector);
22626
      this.warehouseId = other.warehouseId;
22627
    }
22628
 
22629
    public resetAvailabilityForWarehouse_args deepCopy() {
22630
      return new resetAvailabilityForWarehouse_args(this);
22631
    }
22632
 
22633
    @Override
22634
    public void clear() {
22635
      setWarehouseIdIsSet(false);
22636
      this.warehouseId = 0;
22637
    }
22638
 
22639
    public long getWarehouseId() {
22640
      return this.warehouseId;
22641
    }
22642
 
22643
    public void setWarehouseId(long warehouseId) {
22644
      this.warehouseId = warehouseId;
22645
      setWarehouseIdIsSet(true);
22646
    }
22647
 
22648
    public void unsetWarehouseId() {
22649
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22650
    }
22651
 
22652
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22653
    public boolean isSetWarehouseId() {
22654
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22655
    }
22656
 
22657
    public void setWarehouseIdIsSet(boolean value) {
22658
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22659
    }
22660
 
22661
    public void setFieldValue(_Fields field, Object value) {
22662
      switch (field) {
22663
      case WAREHOUSE_ID:
22664
        if (value == null) {
22665
          unsetWarehouseId();
22666
        } else {
22667
          setWarehouseId((Long)value);
22668
        }
22669
        break;
22670
 
22671
      }
22672
    }
22673
 
22674
    public Object getFieldValue(_Fields field) {
22675
      switch (field) {
22676
      case WAREHOUSE_ID:
22677
        return Long.valueOf(getWarehouseId());
22678
 
22679
      }
22680
      throw new IllegalStateException();
22681
    }
22682
 
22683
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22684
    public boolean isSet(_Fields field) {
22685
      if (field == null) {
22686
        throw new IllegalArgumentException();
22687
      }
22688
 
22689
      switch (field) {
22690
      case WAREHOUSE_ID:
22691
        return isSetWarehouseId();
22692
      }
22693
      throw new IllegalStateException();
22694
    }
22695
 
22696
    @Override
22697
    public boolean equals(Object that) {
22698
      if (that == null)
22699
        return false;
22700
      if (that instanceof resetAvailabilityForWarehouse_args)
22701
        return this.equals((resetAvailabilityForWarehouse_args)that);
22702
      return false;
22703
    }
22704
 
22705
    public boolean equals(resetAvailabilityForWarehouse_args that) {
22706
      if (that == null)
22707
        return false;
22708
 
22709
      boolean this_present_warehouseId = true;
22710
      boolean that_present_warehouseId = true;
22711
      if (this_present_warehouseId || that_present_warehouseId) {
22712
        if (!(this_present_warehouseId && that_present_warehouseId))
22713
          return false;
22714
        if (this.warehouseId != that.warehouseId)
22715
          return false;
22716
      }
22717
 
22718
      return true;
22719
    }
22720
 
22721
    @Override
22722
    public int hashCode() {
22723
      return 0;
22724
    }
22725
 
22726
    public int compareTo(resetAvailabilityForWarehouse_args other) {
22727
      if (!getClass().equals(other.getClass())) {
22728
        return getClass().getName().compareTo(other.getClass().getName());
22729
      }
22730
 
22731
      int lastComparison = 0;
22732
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
22733
 
22734
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22735
      if (lastComparison != 0) {
22736
        return lastComparison;
22737
      }
22738
      if (isSetWarehouseId()) {
22739
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22740
        if (lastComparison != 0) {
22741
          return lastComparison;
22742
        }
22743
      }
22744
      return 0;
22745
    }
22746
 
22747
    public _Fields fieldForId(int fieldId) {
22748
      return _Fields.findByThriftId(fieldId);
22749
    }
22750
 
22751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22752
      org.apache.thrift.protocol.TField field;
22753
      iprot.readStructBegin();
22754
      while (true)
22755
      {
22756
        field = iprot.readFieldBegin();
22757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22758
          break;
22759
        }
22760
        switch (field.id) {
22761
          case 1: // WAREHOUSE_ID
22762
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22763
              this.warehouseId = iprot.readI64();
22764
              setWarehouseIdIsSet(true);
22765
            } else { 
22766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22767
            }
22768
            break;
22769
          default:
22770
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22771
        }
22772
        iprot.readFieldEnd();
22773
      }
22774
      iprot.readStructEnd();
22775
      validate();
22776
    }
22777
 
22778
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22779
      validate();
22780
 
22781
      oprot.writeStructBegin(STRUCT_DESC);
22782
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22783
      oprot.writeI64(this.warehouseId);
22784
      oprot.writeFieldEnd();
22785
      oprot.writeFieldStop();
22786
      oprot.writeStructEnd();
22787
    }
22788
 
22789
    @Override
22790
    public String toString() {
22791
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
22792
      boolean first = true;
22793
 
22794
      sb.append("warehouseId:");
22795
      sb.append(this.warehouseId);
22796
      first = false;
22797
      sb.append(")");
22798
      return sb.toString();
22799
    }
22800
 
22801
    public void validate() throws org.apache.thrift.TException {
22802
      // check for required fields
22803
    }
22804
 
22805
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22806
      try {
22807
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22808
      } catch (org.apache.thrift.TException te) {
22809
        throw new java.io.IOException(te);
22810
      }
22811
    }
22812
 
22813
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22814
      try {
22815
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22816
        __isset_bit_vector = new BitSet(1);
22817
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22818
      } catch (org.apache.thrift.TException te) {
22819
        throw new java.io.IOException(te);
22820
      }
22821
    }
22822
 
22823
  }
22824
 
22825
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
22826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
22827
 
22828
    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);
22829
 
22830
    private InventoryServiceException cex; // required
22831
 
22832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22834
      CEX((short)1, "cex");
22835
 
22836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22837
 
22838
      static {
22839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22840
          byName.put(field.getFieldName(), field);
22841
        }
22842
      }
22843
 
22844
      /**
22845
       * Find the _Fields constant that matches fieldId, or null if its not found.
22846
       */
22847
      public static _Fields findByThriftId(int fieldId) {
22848
        switch(fieldId) {
22849
          case 1: // CEX
22850
            return CEX;
22851
          default:
22852
            return null;
22853
        }
22854
      }
22855
 
22856
      /**
22857
       * Find the _Fields constant that matches fieldId, throwing an exception
22858
       * if it is not found.
22859
       */
22860
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22861
        _Fields fields = findByThriftId(fieldId);
22862
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22863
        return fields;
22864
      }
22865
 
22866
      /**
22867
       * Find the _Fields constant that matches name, or null if its not found.
22868
       */
22869
      public static _Fields findByName(String name) {
22870
        return byName.get(name);
22871
      }
22872
 
22873
      private final short _thriftId;
22874
      private final String _fieldName;
22875
 
22876
      _Fields(short thriftId, String fieldName) {
22877
        _thriftId = thriftId;
22878
        _fieldName = fieldName;
22879
      }
22880
 
22881
      public short getThriftFieldId() {
22882
        return _thriftId;
22883
      }
22884
 
22885
      public String getFieldName() {
22886
        return _fieldName;
22887
      }
22888
    }
22889
 
22890
    // isset id assignments
22891
 
22892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22893
    static {
22894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22895
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
22899
    }
22900
 
22901
    public resetAvailabilityForWarehouse_result() {
22902
    }
22903
 
22904
    public resetAvailabilityForWarehouse_result(
22905
      InventoryServiceException cex)
22906
    {
22907
      this();
22908
      this.cex = cex;
22909
    }
22910
 
22911
    /**
22912
     * Performs a deep copy on <i>other</i>.
22913
     */
22914
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
22915
      if (other.isSetCex()) {
22916
        this.cex = new InventoryServiceException(other.cex);
22917
      }
22918
    }
22919
 
22920
    public resetAvailabilityForWarehouse_result deepCopy() {
22921
      return new resetAvailabilityForWarehouse_result(this);
22922
    }
22923
 
22924
    @Override
22925
    public void clear() {
22926
      this.cex = null;
22927
    }
22928
 
22929
    public InventoryServiceException getCex() {
22930
      return this.cex;
22931
    }
22932
 
22933
    public void setCex(InventoryServiceException cex) {
22934
      this.cex = cex;
22935
    }
22936
 
22937
    public void unsetCex() {
22938
      this.cex = null;
22939
    }
22940
 
22941
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22942
    public boolean isSetCex() {
22943
      return this.cex != null;
22944
    }
22945
 
22946
    public void setCexIsSet(boolean value) {
22947
      if (!value) {
22948
        this.cex = null;
22949
      }
22950
    }
22951
 
22952
    public void setFieldValue(_Fields field, Object value) {
22953
      switch (field) {
22954
      case CEX:
22955
        if (value == null) {
22956
          unsetCex();
22957
        } else {
22958
          setCex((InventoryServiceException)value);
22959
        }
22960
        break;
22961
 
22962
      }
22963
    }
22964
 
22965
    public Object getFieldValue(_Fields field) {
22966
      switch (field) {
22967
      case CEX:
22968
        return getCex();
22969
 
22970
      }
22971
      throw new IllegalStateException();
22972
    }
22973
 
22974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22975
    public boolean isSet(_Fields field) {
22976
      if (field == null) {
22977
        throw new IllegalArgumentException();
22978
      }
22979
 
22980
      switch (field) {
22981
      case CEX:
22982
        return isSetCex();
22983
      }
22984
      throw new IllegalStateException();
22985
    }
22986
 
22987
    @Override
22988
    public boolean equals(Object that) {
22989
      if (that == null)
22990
        return false;
22991
      if (that instanceof resetAvailabilityForWarehouse_result)
22992
        return this.equals((resetAvailabilityForWarehouse_result)that);
22993
      return false;
22994
    }
22995
 
22996
    public boolean equals(resetAvailabilityForWarehouse_result that) {
22997
      if (that == null)
22998
        return false;
22999
 
23000
      boolean this_present_cex = true && this.isSetCex();
23001
      boolean that_present_cex = true && that.isSetCex();
23002
      if (this_present_cex || that_present_cex) {
23003
        if (!(this_present_cex && that_present_cex))
23004
          return false;
23005
        if (!this.cex.equals(that.cex))
23006
          return false;
23007
      }
23008
 
23009
      return true;
23010
    }
23011
 
23012
    @Override
23013
    public int hashCode() {
23014
      return 0;
23015
    }
23016
 
23017
    public int compareTo(resetAvailabilityForWarehouse_result other) {
23018
      if (!getClass().equals(other.getClass())) {
23019
        return getClass().getName().compareTo(other.getClass().getName());
23020
      }
23021
 
23022
      int lastComparison = 0;
23023
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
23024
 
23025
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23026
      if (lastComparison != 0) {
23027
        return lastComparison;
23028
      }
23029
      if (isSetCex()) {
23030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23031
        if (lastComparison != 0) {
23032
          return lastComparison;
23033
        }
23034
      }
23035
      return 0;
23036
    }
23037
 
23038
    public _Fields fieldForId(int fieldId) {
23039
      return _Fields.findByThriftId(fieldId);
23040
    }
23041
 
23042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23043
      org.apache.thrift.protocol.TField field;
23044
      iprot.readStructBegin();
23045
      while (true)
23046
      {
23047
        field = iprot.readFieldBegin();
23048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23049
          break;
23050
        }
23051
        switch (field.id) {
23052
          case 1: // CEX
23053
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23054
              this.cex = new InventoryServiceException();
23055
              this.cex.read(iprot);
23056
            } else { 
23057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23058
            }
23059
            break;
23060
          default:
23061
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23062
        }
23063
        iprot.readFieldEnd();
23064
      }
23065
      iprot.readStructEnd();
23066
      validate();
23067
    }
23068
 
23069
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23070
      oprot.writeStructBegin(STRUCT_DESC);
23071
 
23072
      if (this.isSetCex()) {
23073
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23074
        this.cex.write(oprot);
23075
        oprot.writeFieldEnd();
23076
      }
23077
      oprot.writeFieldStop();
23078
      oprot.writeStructEnd();
23079
    }
23080
 
23081
    @Override
23082
    public String toString() {
23083
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
23084
      boolean first = true;
23085
 
23086
      sb.append("cex:");
23087
      if (this.cex == null) {
23088
        sb.append("null");
23089
      } else {
23090
        sb.append(this.cex);
23091
      }
23092
      first = false;
23093
      sb.append(")");
23094
      return sb.toString();
23095
    }
23096
 
23097
    public void validate() throws org.apache.thrift.TException {
23098
      // check for required fields
23099
    }
23100
 
23101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23102
      try {
23103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23104
      } catch (org.apache.thrift.TException te) {
23105
        throw new java.io.IOException(te);
23106
      }
23107
    }
23108
 
23109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23110
      try {
23111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23112
      } catch (org.apache.thrift.TException te) {
23113
        throw new java.io.IOException(te);
23114
      }
23115
    }
23116
 
23117
  }
23118
 
23119
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
23121
 
23122
    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);
23123
 
23124
    private long warehouseId; // required
23125
 
23126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23128
      WAREHOUSE_ID((short)1, "warehouseId");
23129
 
23130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23131
 
23132
      static {
23133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23134
          byName.put(field.getFieldName(), field);
23135
        }
23136
      }
23137
 
23138
      /**
23139
       * Find the _Fields constant that matches fieldId, or null if its not found.
23140
       */
23141
      public static _Fields findByThriftId(int fieldId) {
23142
        switch(fieldId) {
23143
          case 1: // WAREHOUSE_ID
23144
            return WAREHOUSE_ID;
23145
          default:
23146
            return null;
23147
        }
23148
      }
23149
 
23150
      /**
23151
       * Find the _Fields constant that matches fieldId, throwing an exception
23152
       * if it is not found.
23153
       */
23154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23155
        _Fields fields = findByThriftId(fieldId);
23156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23157
        return fields;
23158
      }
23159
 
23160
      /**
23161
       * Find the _Fields constant that matches name, or null if its not found.
23162
       */
23163
      public static _Fields findByName(String name) {
23164
        return byName.get(name);
23165
      }
23166
 
23167
      private final short _thriftId;
23168
      private final String _fieldName;
23169
 
23170
      _Fields(short thriftId, String fieldName) {
23171
        _thriftId = thriftId;
23172
        _fieldName = fieldName;
23173
      }
23174
 
23175
      public short getThriftFieldId() {
23176
        return _thriftId;
23177
      }
23178
 
23179
      public String getFieldName() {
23180
        return _fieldName;
23181
      }
23182
    }
23183
 
23184
    // isset id assignments
23185
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23186
    private BitSet __isset_bit_vector = new BitSet(1);
23187
 
23188
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23189
    static {
23190
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23191
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23192
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23193
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23194
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
23195
    }
23196
 
23197
    public getItemKeysToBeProcessed_args() {
23198
    }
23199
 
23200
    public getItemKeysToBeProcessed_args(
23201
      long warehouseId)
23202
    {
23203
      this();
23204
      this.warehouseId = warehouseId;
23205
      setWarehouseIdIsSet(true);
23206
    }
23207
 
23208
    /**
23209
     * Performs a deep copy on <i>other</i>.
23210
     */
23211
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
23212
      __isset_bit_vector.clear();
23213
      __isset_bit_vector.or(other.__isset_bit_vector);
23214
      this.warehouseId = other.warehouseId;
23215
    }
23216
 
23217
    public getItemKeysToBeProcessed_args deepCopy() {
23218
      return new getItemKeysToBeProcessed_args(this);
23219
    }
23220
 
23221
    @Override
23222
    public void clear() {
23223
      setWarehouseIdIsSet(false);
23224
      this.warehouseId = 0;
23225
    }
23226
 
23227
    public long getWarehouseId() {
23228
      return this.warehouseId;
23229
    }
23230
 
23231
    public void setWarehouseId(long warehouseId) {
23232
      this.warehouseId = warehouseId;
23233
      setWarehouseIdIsSet(true);
23234
    }
23235
 
23236
    public void unsetWarehouseId() {
23237
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23238
    }
23239
 
23240
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23241
    public boolean isSetWarehouseId() {
23242
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23243
    }
23244
 
23245
    public void setWarehouseIdIsSet(boolean value) {
23246
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23247
    }
23248
 
23249
    public void setFieldValue(_Fields field, Object value) {
23250
      switch (field) {
23251
      case WAREHOUSE_ID:
23252
        if (value == null) {
23253
          unsetWarehouseId();
23254
        } else {
23255
          setWarehouseId((Long)value);
23256
        }
23257
        break;
23258
 
23259
      }
23260
    }
23261
 
23262
    public Object getFieldValue(_Fields field) {
23263
      switch (field) {
23264
      case WAREHOUSE_ID:
23265
        return Long.valueOf(getWarehouseId());
23266
 
23267
      }
23268
      throw new IllegalStateException();
23269
    }
23270
 
23271
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23272
    public boolean isSet(_Fields field) {
23273
      if (field == null) {
23274
        throw new IllegalArgumentException();
23275
      }
23276
 
23277
      switch (field) {
23278
      case WAREHOUSE_ID:
23279
        return isSetWarehouseId();
23280
      }
23281
      throw new IllegalStateException();
23282
    }
23283
 
23284
    @Override
23285
    public boolean equals(Object that) {
23286
      if (that == null)
23287
        return false;
23288
      if (that instanceof getItemKeysToBeProcessed_args)
23289
        return this.equals((getItemKeysToBeProcessed_args)that);
23290
      return false;
23291
    }
23292
 
23293
    public boolean equals(getItemKeysToBeProcessed_args that) {
23294
      if (that == null)
23295
        return false;
23296
 
23297
      boolean this_present_warehouseId = true;
23298
      boolean that_present_warehouseId = true;
23299
      if (this_present_warehouseId || that_present_warehouseId) {
23300
        if (!(this_present_warehouseId && that_present_warehouseId))
23301
          return false;
23302
        if (this.warehouseId != that.warehouseId)
23303
          return false;
23304
      }
23305
 
23306
      return true;
23307
    }
23308
 
23309
    @Override
23310
    public int hashCode() {
23311
      return 0;
23312
    }
23313
 
23314
    public int compareTo(getItemKeysToBeProcessed_args other) {
23315
      if (!getClass().equals(other.getClass())) {
23316
        return getClass().getName().compareTo(other.getClass().getName());
23317
      }
23318
 
23319
      int lastComparison = 0;
23320
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
23321
 
23322
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23323
      if (lastComparison != 0) {
23324
        return lastComparison;
23325
      }
23326
      if (isSetWarehouseId()) {
23327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23328
        if (lastComparison != 0) {
23329
          return lastComparison;
23330
        }
23331
      }
23332
      return 0;
23333
    }
23334
 
23335
    public _Fields fieldForId(int fieldId) {
23336
      return _Fields.findByThriftId(fieldId);
23337
    }
23338
 
23339
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23340
      org.apache.thrift.protocol.TField field;
23341
      iprot.readStructBegin();
23342
      while (true)
23343
      {
23344
        field = iprot.readFieldBegin();
23345
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23346
          break;
23347
        }
23348
        switch (field.id) {
23349
          case 1: // WAREHOUSE_ID
23350
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23351
              this.warehouseId = iprot.readI64();
23352
              setWarehouseIdIsSet(true);
23353
            } else { 
23354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23355
            }
23356
            break;
23357
          default:
23358
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23359
        }
23360
        iprot.readFieldEnd();
23361
      }
23362
      iprot.readStructEnd();
23363
      validate();
23364
    }
23365
 
23366
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23367
      validate();
23368
 
23369
      oprot.writeStructBegin(STRUCT_DESC);
23370
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23371
      oprot.writeI64(this.warehouseId);
23372
      oprot.writeFieldEnd();
23373
      oprot.writeFieldStop();
23374
      oprot.writeStructEnd();
23375
    }
23376
 
23377
    @Override
23378
    public String toString() {
23379
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
23380
      boolean first = true;
23381
 
23382
      sb.append("warehouseId:");
23383
      sb.append(this.warehouseId);
23384
      first = false;
23385
      sb.append(")");
23386
      return sb.toString();
23387
    }
23388
 
23389
    public void validate() throws org.apache.thrift.TException {
23390
      // check for required fields
23391
    }
23392
 
23393
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23394
      try {
23395
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23396
      } catch (org.apache.thrift.TException te) {
23397
        throw new java.io.IOException(te);
23398
      }
23399
    }
23400
 
23401
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23402
      try {
23403
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23404
      } catch (org.apache.thrift.TException te) {
23405
        throw new java.io.IOException(te);
23406
      }
23407
    }
23408
 
23409
  }
23410
 
23411
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
23412
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
23413
 
23414
    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);
23415
 
23416
    private List<String> success; // required
23417
 
23418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23420
      SUCCESS((short)0, "success");
23421
 
23422
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23423
 
23424
      static {
23425
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23426
          byName.put(field.getFieldName(), field);
23427
        }
23428
      }
23429
 
23430
      /**
23431
       * Find the _Fields constant that matches fieldId, or null if its not found.
23432
       */
23433
      public static _Fields findByThriftId(int fieldId) {
23434
        switch(fieldId) {
23435
          case 0: // SUCCESS
23436
            return SUCCESS;
23437
          default:
23438
            return null;
23439
        }
23440
      }
23441
 
23442
      /**
23443
       * Find the _Fields constant that matches fieldId, throwing an exception
23444
       * if it is not found.
23445
       */
23446
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23447
        _Fields fields = findByThriftId(fieldId);
23448
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23449
        return fields;
23450
      }
23451
 
23452
      /**
23453
       * Find the _Fields constant that matches name, or null if its not found.
23454
       */
23455
      public static _Fields findByName(String name) {
23456
        return byName.get(name);
23457
      }
23458
 
23459
      private final short _thriftId;
23460
      private final String _fieldName;
23461
 
23462
      _Fields(short thriftId, String fieldName) {
23463
        _thriftId = thriftId;
23464
        _fieldName = fieldName;
23465
      }
23466
 
23467
      public short getThriftFieldId() {
23468
        return _thriftId;
23469
      }
23470
 
23471
      public String getFieldName() {
23472
        return _fieldName;
23473
      }
23474
    }
23475
 
23476
    // isset id assignments
23477
 
23478
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23479
    static {
23480
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23481
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23482
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23483
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23484
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23485
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
23486
    }
23487
 
23488
    public getItemKeysToBeProcessed_result() {
23489
    }
23490
 
23491
    public getItemKeysToBeProcessed_result(
23492
      List<String> success)
23493
    {
23494
      this();
23495
      this.success = success;
23496
    }
23497
 
23498
    /**
23499
     * Performs a deep copy on <i>other</i>.
23500
     */
23501
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
23502
      if (other.isSetSuccess()) {
23503
        List<String> __this__success = new ArrayList<String>();
23504
        for (String other_element : other.success) {
23505
          __this__success.add(other_element);
23506
        }
23507
        this.success = __this__success;
23508
      }
23509
    }
23510
 
23511
    public getItemKeysToBeProcessed_result deepCopy() {
23512
      return new getItemKeysToBeProcessed_result(this);
23513
    }
23514
 
23515
    @Override
23516
    public void clear() {
23517
      this.success = null;
23518
    }
23519
 
23520
    public int getSuccessSize() {
23521
      return (this.success == null) ? 0 : this.success.size();
23522
    }
23523
 
23524
    public java.util.Iterator<String> getSuccessIterator() {
23525
      return (this.success == null) ? null : this.success.iterator();
23526
    }
23527
 
23528
    public void addToSuccess(String elem) {
23529
      if (this.success == null) {
23530
        this.success = new ArrayList<String>();
23531
      }
23532
      this.success.add(elem);
23533
    }
23534
 
23535
    public List<String> getSuccess() {
23536
      return this.success;
23537
    }
23538
 
23539
    public void setSuccess(List<String> success) {
23540
      this.success = success;
23541
    }
23542
 
23543
    public void unsetSuccess() {
23544
      this.success = null;
23545
    }
23546
 
23547
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23548
    public boolean isSetSuccess() {
23549
      return this.success != null;
23550
    }
23551
 
23552
    public void setSuccessIsSet(boolean value) {
23553
      if (!value) {
23554
        this.success = null;
23555
      }
23556
    }
23557
 
23558
    public void setFieldValue(_Fields field, Object value) {
23559
      switch (field) {
23560
      case SUCCESS:
23561
        if (value == null) {
23562
          unsetSuccess();
23563
        } else {
23564
          setSuccess((List<String>)value);
23565
        }
23566
        break;
23567
 
23568
      }
23569
    }
23570
 
23571
    public Object getFieldValue(_Fields field) {
23572
      switch (field) {
23573
      case SUCCESS:
23574
        return getSuccess();
23575
 
23576
      }
23577
      throw new IllegalStateException();
23578
    }
23579
 
23580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23581
    public boolean isSet(_Fields field) {
23582
      if (field == null) {
23583
        throw new IllegalArgumentException();
23584
      }
23585
 
23586
      switch (field) {
23587
      case SUCCESS:
23588
        return isSetSuccess();
23589
      }
23590
      throw new IllegalStateException();
23591
    }
23592
 
23593
    @Override
23594
    public boolean equals(Object that) {
23595
      if (that == null)
23596
        return false;
23597
      if (that instanceof getItemKeysToBeProcessed_result)
23598
        return this.equals((getItemKeysToBeProcessed_result)that);
23599
      return false;
23600
    }
23601
 
23602
    public boolean equals(getItemKeysToBeProcessed_result that) {
23603
      if (that == null)
23604
        return false;
23605
 
23606
      boolean this_present_success = true && this.isSetSuccess();
23607
      boolean that_present_success = true && that.isSetSuccess();
23608
      if (this_present_success || that_present_success) {
23609
        if (!(this_present_success && that_present_success))
23610
          return false;
23611
        if (!this.success.equals(that.success))
23612
          return false;
23613
      }
23614
 
23615
      return true;
23616
    }
23617
 
23618
    @Override
23619
    public int hashCode() {
23620
      return 0;
23621
    }
23622
 
23623
    public int compareTo(getItemKeysToBeProcessed_result other) {
23624
      if (!getClass().equals(other.getClass())) {
23625
        return getClass().getName().compareTo(other.getClass().getName());
23626
      }
23627
 
23628
      int lastComparison = 0;
23629
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
23630
 
23631
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23632
      if (lastComparison != 0) {
23633
        return lastComparison;
23634
      }
23635
      if (isSetSuccess()) {
23636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23637
        if (lastComparison != 0) {
23638
          return lastComparison;
23639
        }
23640
      }
23641
      return 0;
23642
    }
23643
 
23644
    public _Fields fieldForId(int fieldId) {
23645
      return _Fields.findByThriftId(fieldId);
23646
    }
23647
 
23648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23649
      org.apache.thrift.protocol.TField field;
23650
      iprot.readStructBegin();
23651
      while (true)
23652
      {
23653
        field = iprot.readFieldBegin();
23654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23655
          break;
23656
        }
23657
        switch (field.id) {
23658
          case 0: // SUCCESS
23659
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23660
              {
23661
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23662
                this.success = new ArrayList<String>(_list52.size);
23663
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23664
                {
23665
                  String _elem54; // required
23666
                  _elem54 = iprot.readString();
23667
                  this.success.add(_elem54);
23668
                }
23669
                iprot.readListEnd();
23670
              }
23671
            } else { 
23672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23673
            }
23674
            break;
23675
          default:
23676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23677
        }
23678
        iprot.readFieldEnd();
23679
      }
23680
      iprot.readStructEnd();
23681
      validate();
23682
    }
23683
 
23684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23685
      oprot.writeStructBegin(STRUCT_DESC);
23686
 
23687
      if (this.isSetSuccess()) {
23688
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23689
        {
23690
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
23691
          for (String _iter55 : this.success)
23692
          {
23693
            oprot.writeString(_iter55);
23694
          }
23695
          oprot.writeListEnd();
23696
        }
23697
        oprot.writeFieldEnd();
23698
      }
23699
      oprot.writeFieldStop();
23700
      oprot.writeStructEnd();
23701
    }
23702
 
23703
    @Override
23704
    public String toString() {
23705
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
23706
      boolean first = true;
23707
 
23708
      sb.append("success:");
23709
      if (this.success == null) {
23710
        sb.append("null");
23711
      } else {
23712
        sb.append(this.success);
23713
      }
23714
      first = false;
23715
      sb.append(")");
23716
      return sb.toString();
23717
    }
23718
 
23719
    public void validate() throws org.apache.thrift.TException {
23720
      // check for required fields
23721
    }
23722
 
23723
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23724
      try {
23725
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23726
      } catch (org.apache.thrift.TException te) {
23727
        throw new java.io.IOException(te);
23728
      }
23729
    }
23730
 
23731
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23732
      try {
23733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23734
      } catch (org.apache.thrift.TException te) {
23735
        throw new java.io.IOException(te);
23736
      }
23737
    }
23738
 
23739
  }
23740
 
23741
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
23743
 
23744
    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);
23745
    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);
23746
 
23747
    private String itemKey; // required
23748
    private long warehouseId; // required
23749
 
23750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23752
      ITEM_KEY((short)1, "itemKey"),
23753
      WAREHOUSE_ID((short)2, "warehouseId");
23754
 
23755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23756
 
23757
      static {
23758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23759
          byName.put(field.getFieldName(), field);
23760
        }
23761
      }
23762
 
23763
      /**
23764
       * Find the _Fields constant that matches fieldId, or null if its not found.
23765
       */
23766
      public static _Fields findByThriftId(int fieldId) {
23767
        switch(fieldId) {
23768
          case 1: // ITEM_KEY
23769
            return ITEM_KEY;
23770
          case 2: // WAREHOUSE_ID
23771
            return WAREHOUSE_ID;
23772
          default:
23773
            return null;
23774
        }
23775
      }
23776
 
23777
      /**
23778
       * Find the _Fields constant that matches fieldId, throwing an exception
23779
       * if it is not found.
23780
       */
23781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23782
        _Fields fields = findByThriftId(fieldId);
23783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23784
        return fields;
23785
      }
23786
 
23787
      /**
23788
       * Find the _Fields constant that matches name, or null if its not found.
23789
       */
23790
      public static _Fields findByName(String name) {
23791
        return byName.get(name);
23792
      }
23793
 
23794
      private final short _thriftId;
23795
      private final String _fieldName;
23796
 
23797
      _Fields(short thriftId, String fieldName) {
23798
        _thriftId = thriftId;
23799
        _fieldName = fieldName;
23800
      }
23801
 
23802
      public short getThriftFieldId() {
23803
        return _thriftId;
23804
      }
23805
 
23806
      public String getFieldName() {
23807
        return _fieldName;
23808
      }
23809
    }
23810
 
23811
    // isset id assignments
23812
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23813
    private BitSet __isset_bit_vector = new BitSet(1);
23814
 
23815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23816
    static {
23817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23818
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23820
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23821
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
23824
    }
23825
 
23826
    public markMissedInventoryUpdatesAsProcessed_args() {
23827
    }
23828
 
23829
    public markMissedInventoryUpdatesAsProcessed_args(
23830
      String itemKey,
23831
      long warehouseId)
23832
    {
23833
      this();
23834
      this.itemKey = itemKey;
23835
      this.warehouseId = warehouseId;
23836
      setWarehouseIdIsSet(true);
23837
    }
23838
 
23839
    /**
23840
     * Performs a deep copy on <i>other</i>.
23841
     */
23842
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
23843
      __isset_bit_vector.clear();
23844
      __isset_bit_vector.or(other.__isset_bit_vector);
23845
      if (other.isSetItemKey()) {
23846
        this.itemKey = other.itemKey;
23847
      }
23848
      this.warehouseId = other.warehouseId;
23849
    }
23850
 
23851
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
23852
      return new markMissedInventoryUpdatesAsProcessed_args(this);
23853
    }
23854
 
23855
    @Override
23856
    public void clear() {
23857
      this.itemKey = null;
23858
      setWarehouseIdIsSet(false);
23859
      this.warehouseId = 0;
23860
    }
23861
 
23862
    public String getItemKey() {
23863
      return this.itemKey;
23864
    }
23865
 
23866
    public void setItemKey(String itemKey) {
23867
      this.itemKey = itemKey;
23868
    }
23869
 
23870
    public void unsetItemKey() {
23871
      this.itemKey = null;
23872
    }
23873
 
23874
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
23875
    public boolean isSetItemKey() {
23876
      return this.itemKey != null;
23877
    }
23878
 
23879
    public void setItemKeyIsSet(boolean value) {
23880
      if (!value) {
23881
        this.itemKey = null;
23882
      }
23883
    }
23884
 
23885
    public long getWarehouseId() {
23886
      return this.warehouseId;
23887
    }
23888
 
23889
    public void setWarehouseId(long warehouseId) {
23890
      this.warehouseId = warehouseId;
23891
      setWarehouseIdIsSet(true);
23892
    }
23893
 
23894
    public void unsetWarehouseId() {
23895
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23896
    }
23897
 
23898
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23899
    public boolean isSetWarehouseId() {
23900
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23901
    }
23902
 
23903
    public void setWarehouseIdIsSet(boolean value) {
23904
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23905
    }
23906
 
23907
    public void setFieldValue(_Fields field, Object value) {
23908
      switch (field) {
23909
      case ITEM_KEY:
23910
        if (value == null) {
23911
          unsetItemKey();
23912
        } else {
23913
          setItemKey((String)value);
23914
        }
23915
        break;
23916
 
23917
      case WAREHOUSE_ID:
23918
        if (value == null) {
23919
          unsetWarehouseId();
23920
        } else {
23921
          setWarehouseId((Long)value);
23922
        }
23923
        break;
23924
 
23925
      }
23926
    }
23927
 
23928
    public Object getFieldValue(_Fields field) {
23929
      switch (field) {
23930
      case ITEM_KEY:
23931
        return getItemKey();
23932
 
23933
      case WAREHOUSE_ID:
23934
        return Long.valueOf(getWarehouseId());
23935
 
23936
      }
23937
      throw new IllegalStateException();
23938
    }
23939
 
23940
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23941
    public boolean isSet(_Fields field) {
23942
      if (field == null) {
23943
        throw new IllegalArgumentException();
23944
      }
23945
 
23946
      switch (field) {
23947
      case ITEM_KEY:
23948
        return isSetItemKey();
23949
      case WAREHOUSE_ID:
23950
        return isSetWarehouseId();
23951
      }
23952
      throw new IllegalStateException();
23953
    }
23954
 
23955
    @Override
23956
    public boolean equals(Object that) {
23957
      if (that == null)
23958
        return false;
23959
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
23960
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
23961
      return false;
23962
    }
23963
 
23964
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
23965
      if (that == null)
23966
        return false;
23967
 
23968
      boolean this_present_itemKey = true && this.isSetItemKey();
23969
      boolean that_present_itemKey = true && that.isSetItemKey();
23970
      if (this_present_itemKey || that_present_itemKey) {
23971
        if (!(this_present_itemKey && that_present_itemKey))
23972
          return false;
23973
        if (!this.itemKey.equals(that.itemKey))
23974
          return false;
23975
      }
23976
 
23977
      boolean this_present_warehouseId = true;
23978
      boolean that_present_warehouseId = true;
23979
      if (this_present_warehouseId || that_present_warehouseId) {
23980
        if (!(this_present_warehouseId && that_present_warehouseId))
23981
          return false;
23982
        if (this.warehouseId != that.warehouseId)
23983
          return false;
23984
      }
23985
 
23986
      return true;
23987
    }
23988
 
23989
    @Override
23990
    public int hashCode() {
23991
      return 0;
23992
    }
23993
 
23994
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
23995
      if (!getClass().equals(other.getClass())) {
23996
        return getClass().getName().compareTo(other.getClass().getName());
23997
      }
23998
 
23999
      int lastComparison = 0;
24000
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
24001
 
24002
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
24003
      if (lastComparison != 0) {
24004
        return lastComparison;
24005
      }
24006
      if (isSetItemKey()) {
24007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
24008
        if (lastComparison != 0) {
24009
          return lastComparison;
24010
        }
24011
      }
24012
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24013
      if (lastComparison != 0) {
24014
        return lastComparison;
24015
      }
24016
      if (isSetWarehouseId()) {
24017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24018
        if (lastComparison != 0) {
24019
          return lastComparison;
24020
        }
24021
      }
24022
      return 0;
24023
    }
24024
 
24025
    public _Fields fieldForId(int fieldId) {
24026
      return _Fields.findByThriftId(fieldId);
24027
    }
24028
 
24029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24030
      org.apache.thrift.protocol.TField field;
24031
      iprot.readStructBegin();
24032
      while (true)
24033
      {
24034
        field = iprot.readFieldBegin();
24035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24036
          break;
24037
        }
24038
        switch (field.id) {
24039
          case 1: // ITEM_KEY
24040
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24041
              this.itemKey = iprot.readString();
24042
            } else { 
24043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24044
            }
24045
            break;
24046
          case 2: // WAREHOUSE_ID
24047
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24048
              this.warehouseId = iprot.readI64();
24049
              setWarehouseIdIsSet(true);
24050
            } else { 
24051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24052
            }
24053
            break;
24054
          default:
24055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24056
        }
24057
        iprot.readFieldEnd();
24058
      }
24059
      iprot.readStructEnd();
24060
      validate();
24061
    }
24062
 
24063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24064
      validate();
24065
 
24066
      oprot.writeStructBegin(STRUCT_DESC);
24067
      if (this.itemKey != null) {
24068
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
24069
        oprot.writeString(this.itemKey);
24070
        oprot.writeFieldEnd();
24071
      }
24072
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24073
      oprot.writeI64(this.warehouseId);
24074
      oprot.writeFieldEnd();
24075
      oprot.writeFieldStop();
24076
      oprot.writeStructEnd();
24077
    }
24078
 
24079
    @Override
24080
    public String toString() {
24081
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
24082
      boolean first = true;
24083
 
24084
      sb.append("itemKey:");
24085
      if (this.itemKey == null) {
24086
        sb.append("null");
24087
      } else {
24088
        sb.append(this.itemKey);
24089
      }
24090
      first = false;
24091
      if (!first) sb.append(", ");
24092
      sb.append("warehouseId:");
24093
      sb.append(this.warehouseId);
24094
      first = false;
24095
      sb.append(")");
24096
      return sb.toString();
24097
    }
24098
 
24099
    public void validate() throws org.apache.thrift.TException {
24100
      // check for required fields
24101
    }
24102
 
24103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24104
      try {
24105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24106
      } catch (org.apache.thrift.TException te) {
24107
        throw new java.io.IOException(te);
24108
      }
24109
    }
24110
 
24111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24112
      try {
24113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24114
      } catch (org.apache.thrift.TException te) {
24115
        throw new java.io.IOException(te);
24116
      }
24117
    }
24118
 
24119
  }
24120
 
24121
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
24122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
24123
 
24124
 
24125
 
24126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24128
;
24129
 
24130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24131
 
24132
      static {
24133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24134
          byName.put(field.getFieldName(), field);
24135
        }
24136
      }
24137
 
24138
      /**
24139
       * Find the _Fields constant that matches fieldId, or null if its not found.
24140
       */
24141
      public static _Fields findByThriftId(int fieldId) {
24142
        switch(fieldId) {
24143
          default:
24144
            return null;
24145
        }
24146
      }
24147
 
24148
      /**
24149
       * Find the _Fields constant that matches fieldId, throwing an exception
24150
       * if it is not found.
24151
       */
24152
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24153
        _Fields fields = findByThriftId(fieldId);
24154
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24155
        return fields;
24156
      }
24157
 
24158
      /**
24159
       * Find the _Fields constant that matches name, or null if its not found.
24160
       */
24161
      public static _Fields findByName(String name) {
24162
        return byName.get(name);
24163
      }
24164
 
24165
      private final short _thriftId;
24166
      private final String _fieldName;
24167
 
24168
      _Fields(short thriftId, String fieldName) {
24169
        _thriftId = thriftId;
24170
        _fieldName = fieldName;
24171
      }
24172
 
24173
      public short getThriftFieldId() {
24174
        return _thriftId;
24175
      }
24176
 
24177
      public String getFieldName() {
24178
        return _fieldName;
24179
      }
24180
    }
24181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24182
    static {
24183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
24186
    }
24187
 
24188
    public markMissedInventoryUpdatesAsProcessed_result() {
24189
    }
24190
 
24191
    /**
24192
     * Performs a deep copy on <i>other</i>.
24193
     */
24194
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
24195
    }
24196
 
24197
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
24198
      return new markMissedInventoryUpdatesAsProcessed_result(this);
24199
    }
24200
 
24201
    @Override
24202
    public void clear() {
24203
    }
24204
 
24205
    public void setFieldValue(_Fields field, Object value) {
24206
      switch (field) {
24207
      }
24208
    }
24209
 
24210
    public Object getFieldValue(_Fields field) {
24211
      switch (field) {
24212
      }
24213
      throw new IllegalStateException();
24214
    }
24215
 
24216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24217
    public boolean isSet(_Fields field) {
24218
      if (field == null) {
24219
        throw new IllegalArgumentException();
24220
      }
24221
 
24222
      switch (field) {
24223
      }
24224
      throw new IllegalStateException();
24225
    }
24226
 
24227
    @Override
24228
    public boolean equals(Object that) {
24229
      if (that == null)
24230
        return false;
24231
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
24232
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
24233
      return false;
24234
    }
24235
 
24236
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
24237
      if (that == null)
24238
        return false;
24239
 
24240
      return true;
24241
    }
24242
 
24243
    @Override
24244
    public int hashCode() {
24245
      return 0;
24246
    }
24247
 
24248
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
24249
      if (!getClass().equals(other.getClass())) {
24250
        return getClass().getName().compareTo(other.getClass().getName());
24251
      }
24252
 
24253
      int lastComparison = 0;
24254
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
24255
 
24256
      return 0;
24257
    }
24258
 
24259
    public _Fields fieldForId(int fieldId) {
24260
      return _Fields.findByThriftId(fieldId);
24261
    }
24262
 
24263
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24264
      org.apache.thrift.protocol.TField field;
24265
      iprot.readStructBegin();
24266
      while (true)
24267
      {
24268
        field = iprot.readFieldBegin();
24269
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24270
          break;
24271
        }
24272
        switch (field.id) {
24273
          default:
24274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24275
        }
24276
        iprot.readFieldEnd();
24277
      }
24278
      iprot.readStructEnd();
24279
      validate();
24280
    }
24281
 
24282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24283
      oprot.writeStructBegin(STRUCT_DESC);
24284
 
24285
      oprot.writeFieldStop();
24286
      oprot.writeStructEnd();
24287
    }
24288
 
24289
    @Override
24290
    public String toString() {
24291
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
24292
      boolean first = true;
24293
 
24294
      sb.append(")");
24295
      return sb.toString();
24296
    }
24297
 
24298
    public void validate() throws org.apache.thrift.TException {
24299
      // check for required fields
24300
    }
24301
 
24302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24303
      try {
24304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24305
      } catch (org.apache.thrift.TException te) {
24306
        throw new java.io.IOException(te);
24307
      }
24308
    }
24309
 
24310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24311
      try {
24312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24313
      } catch (org.apache.thrift.TException te) {
24314
        throw new java.io.IOException(te);
24315
      }
24316
    }
24317
 
24318
  }
24319
 
24320
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
24321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
24322
 
24323
 
24324
 
24325
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24326
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24327
;
24328
 
24329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24330
 
24331
      static {
24332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24333
          byName.put(field.getFieldName(), field);
24334
        }
24335
      }
24336
 
24337
      /**
24338
       * Find the _Fields constant that matches fieldId, or null if its not found.
24339
       */
24340
      public static _Fields findByThriftId(int fieldId) {
24341
        switch(fieldId) {
24342
          default:
24343
            return null;
24344
        }
24345
      }
24346
 
24347
      /**
24348
       * Find the _Fields constant that matches fieldId, throwing an exception
24349
       * if it is not found.
24350
       */
24351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24352
        _Fields fields = findByThriftId(fieldId);
24353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24354
        return fields;
24355
      }
24356
 
24357
      /**
24358
       * Find the _Fields constant that matches name, or null if its not found.
24359
       */
24360
      public static _Fields findByName(String name) {
24361
        return byName.get(name);
24362
      }
24363
 
24364
      private final short _thriftId;
24365
      private final String _fieldName;
24366
 
24367
      _Fields(short thriftId, String fieldName) {
24368
        _thriftId = thriftId;
24369
        _fieldName = fieldName;
24370
      }
24371
 
24372
      public short getThriftFieldId() {
24373
        return _thriftId;
24374
      }
24375
 
24376
      public String getFieldName() {
24377
        return _fieldName;
24378
      }
24379
    }
24380
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24381
    static {
24382
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
24385
    }
24386
 
24387
    public getIgnoredItemKeys_args() {
24388
    }
24389
 
24390
    /**
24391
     * Performs a deep copy on <i>other</i>.
24392
     */
24393
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
24394
    }
24395
 
24396
    public getIgnoredItemKeys_args deepCopy() {
24397
      return new getIgnoredItemKeys_args(this);
24398
    }
24399
 
24400
    @Override
24401
    public void clear() {
24402
    }
24403
 
24404
    public void setFieldValue(_Fields field, Object value) {
24405
      switch (field) {
24406
      }
24407
    }
24408
 
24409
    public Object getFieldValue(_Fields field) {
24410
      switch (field) {
24411
      }
24412
      throw new IllegalStateException();
24413
    }
24414
 
24415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24416
    public boolean isSet(_Fields field) {
24417
      if (field == null) {
24418
        throw new IllegalArgumentException();
24419
      }
24420
 
24421
      switch (field) {
24422
      }
24423
      throw new IllegalStateException();
24424
    }
24425
 
24426
    @Override
24427
    public boolean equals(Object that) {
24428
      if (that == null)
24429
        return false;
24430
      if (that instanceof getIgnoredItemKeys_args)
24431
        return this.equals((getIgnoredItemKeys_args)that);
24432
      return false;
24433
    }
24434
 
24435
    public boolean equals(getIgnoredItemKeys_args that) {
24436
      if (that == null)
24437
        return false;
24438
 
24439
      return true;
24440
    }
24441
 
24442
    @Override
24443
    public int hashCode() {
24444
      return 0;
24445
    }
24446
 
24447
    public int compareTo(getIgnoredItemKeys_args other) {
24448
      if (!getClass().equals(other.getClass())) {
24449
        return getClass().getName().compareTo(other.getClass().getName());
24450
      }
24451
 
24452
      int lastComparison = 0;
24453
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
24454
 
24455
      return 0;
24456
    }
24457
 
24458
    public _Fields fieldForId(int fieldId) {
24459
      return _Fields.findByThriftId(fieldId);
24460
    }
24461
 
24462
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24463
      org.apache.thrift.protocol.TField field;
24464
      iprot.readStructBegin();
24465
      while (true)
24466
      {
24467
        field = iprot.readFieldBegin();
24468
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24469
          break;
24470
        }
24471
        switch (field.id) {
24472
          default:
24473
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24474
        }
24475
        iprot.readFieldEnd();
24476
      }
24477
      iprot.readStructEnd();
24478
      validate();
24479
    }
24480
 
24481
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24482
      validate();
24483
 
24484
      oprot.writeStructBegin(STRUCT_DESC);
24485
      oprot.writeFieldStop();
24486
      oprot.writeStructEnd();
24487
    }
24488
 
24489
    @Override
24490
    public String toString() {
24491
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
24492
      boolean first = true;
24493
 
24494
      sb.append(")");
24495
      return sb.toString();
24496
    }
24497
 
24498
    public void validate() throws org.apache.thrift.TException {
24499
      // check for required fields
24500
    }
24501
 
24502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24503
      try {
24504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24505
      } catch (org.apache.thrift.TException te) {
24506
        throw new java.io.IOException(te);
24507
      }
24508
    }
24509
 
24510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24511
      try {
24512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24513
      } catch (org.apache.thrift.TException te) {
24514
        throw new java.io.IOException(te);
24515
      }
24516
    }
24517
 
24518
  }
24519
 
24520
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
24521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
24522
 
24523
    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);
24524
 
24525
    private Map<String,Map<Long,Long>> success; // required
24526
 
24527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24529
      SUCCESS((short)0, "success");
24530
 
24531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24532
 
24533
      static {
24534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24535
          byName.put(field.getFieldName(), field);
24536
        }
24537
      }
24538
 
24539
      /**
24540
       * Find the _Fields constant that matches fieldId, or null if its not found.
24541
       */
24542
      public static _Fields findByThriftId(int fieldId) {
24543
        switch(fieldId) {
24544
          case 0: // SUCCESS
24545
            return SUCCESS;
24546
          default:
24547
            return null;
24548
        }
24549
      }
24550
 
24551
      /**
24552
       * Find the _Fields constant that matches fieldId, throwing an exception
24553
       * if it is not found.
24554
       */
24555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24556
        _Fields fields = findByThriftId(fieldId);
24557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24558
        return fields;
24559
      }
24560
 
24561
      /**
24562
       * Find the _Fields constant that matches name, or null if its not found.
24563
       */
24564
      public static _Fields findByName(String name) {
24565
        return byName.get(name);
24566
      }
24567
 
24568
      private final short _thriftId;
24569
      private final String _fieldName;
24570
 
24571
      _Fields(short thriftId, String fieldName) {
24572
        _thriftId = thriftId;
24573
        _fieldName = fieldName;
24574
      }
24575
 
24576
      public short getThriftFieldId() {
24577
        return _thriftId;
24578
      }
24579
 
24580
      public String getFieldName() {
24581
        return _fieldName;
24582
      }
24583
    }
24584
 
24585
    // isset id assignments
24586
 
24587
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24588
    static {
24589
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24590
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24591
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24592
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
24593
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24594
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
24595
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
24596
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24597
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
24598
    }
24599
 
24600
    public getIgnoredItemKeys_result() {
24601
    }
24602
 
24603
    public getIgnoredItemKeys_result(
24604
      Map<String,Map<Long,Long>> success)
24605
    {
24606
      this();
24607
      this.success = success;
24608
    }
24609
 
24610
    /**
24611
     * Performs a deep copy on <i>other</i>.
24612
     */
24613
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
24614
      if (other.isSetSuccess()) {
24615
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
24616
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
24617
 
24618
          String other_element_key = other_element.getKey();
24619
          Map<Long,Long> other_element_value = other_element.getValue();
24620
 
24621
          String __this__success_copy_key = other_element_key;
24622
 
24623
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
24624
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
24625
 
24626
            Long other_element_value_element_key = other_element_value_element.getKey();
24627
            Long other_element_value_element_value = other_element_value_element.getValue();
24628
 
24629
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
24630
 
24631
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
24632
 
24633
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
24634
          }
24635
 
24636
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
24637
        }
24638
        this.success = __this__success;
24639
      }
24640
    }
24641
 
24642
    public getIgnoredItemKeys_result deepCopy() {
24643
      return new getIgnoredItemKeys_result(this);
24644
    }
24645
 
24646
    @Override
24647
    public void clear() {
24648
      this.success = null;
24649
    }
24650
 
24651
    public int getSuccessSize() {
24652
      return (this.success == null) ? 0 : this.success.size();
24653
    }
24654
 
24655
    public void putToSuccess(String key, Map<Long,Long> val) {
24656
      if (this.success == null) {
24657
        this.success = new HashMap<String,Map<Long,Long>>();
24658
      }
24659
      this.success.put(key, val);
24660
    }
24661
 
24662
    public Map<String,Map<Long,Long>> getSuccess() {
24663
      return this.success;
24664
    }
24665
 
24666
    public void setSuccess(Map<String,Map<Long,Long>> success) {
24667
      this.success = success;
24668
    }
24669
 
24670
    public void unsetSuccess() {
24671
      this.success = null;
24672
    }
24673
 
24674
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24675
    public boolean isSetSuccess() {
24676
      return this.success != null;
24677
    }
24678
 
24679
    public void setSuccessIsSet(boolean value) {
24680
      if (!value) {
24681
        this.success = null;
24682
      }
24683
    }
24684
 
24685
    public void setFieldValue(_Fields field, Object value) {
24686
      switch (field) {
24687
      case SUCCESS:
24688
        if (value == null) {
24689
          unsetSuccess();
24690
        } else {
24691
          setSuccess((Map<String,Map<Long,Long>>)value);
24692
        }
24693
        break;
24694
 
24695
      }
24696
    }
24697
 
24698
    public Object getFieldValue(_Fields field) {
24699
      switch (field) {
24700
      case SUCCESS:
24701
        return getSuccess();
24702
 
24703
      }
24704
      throw new IllegalStateException();
24705
    }
24706
 
24707
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24708
    public boolean isSet(_Fields field) {
24709
      if (field == null) {
24710
        throw new IllegalArgumentException();
24711
      }
24712
 
24713
      switch (field) {
24714
      case SUCCESS:
24715
        return isSetSuccess();
24716
      }
24717
      throw new IllegalStateException();
24718
    }
24719
 
24720
    @Override
24721
    public boolean equals(Object that) {
24722
      if (that == null)
24723
        return false;
24724
      if (that instanceof getIgnoredItemKeys_result)
24725
        return this.equals((getIgnoredItemKeys_result)that);
24726
      return false;
24727
    }
24728
 
24729
    public boolean equals(getIgnoredItemKeys_result that) {
24730
      if (that == null)
24731
        return false;
24732
 
24733
      boolean this_present_success = true && this.isSetSuccess();
24734
      boolean that_present_success = true && that.isSetSuccess();
24735
      if (this_present_success || that_present_success) {
24736
        if (!(this_present_success && that_present_success))
24737
          return false;
24738
        if (!this.success.equals(that.success))
24739
          return false;
24740
      }
24741
 
24742
      return true;
24743
    }
24744
 
24745
    @Override
24746
    public int hashCode() {
24747
      return 0;
24748
    }
24749
 
24750
    public int compareTo(getIgnoredItemKeys_result other) {
24751
      if (!getClass().equals(other.getClass())) {
24752
        return getClass().getName().compareTo(other.getClass().getName());
24753
      }
24754
 
24755
      int lastComparison = 0;
24756
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
24757
 
24758
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24759
      if (lastComparison != 0) {
24760
        return lastComparison;
24761
      }
24762
      if (isSetSuccess()) {
24763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24764
        if (lastComparison != 0) {
24765
          return lastComparison;
24766
        }
24767
      }
24768
      return 0;
24769
    }
24770
 
24771
    public _Fields fieldForId(int fieldId) {
24772
      return _Fields.findByThriftId(fieldId);
24773
    }
24774
 
24775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24776
      org.apache.thrift.protocol.TField field;
24777
      iprot.readStructBegin();
24778
      while (true)
24779
      {
24780
        field = iprot.readFieldBegin();
24781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24782
          break;
24783
        }
24784
        switch (field.id) {
24785
          case 0: // SUCCESS
24786
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
24787
              {
24788
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
24789
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
24790
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
24791
                {
24792
                  String _key58; // required
24793
                  Map<Long,Long> _val59; // required
24794
                  _key58 = iprot.readString();
24795
                  {
24796
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
24797
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
24798
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
24799
                    {
24800
                      long _key62; // required
24801
                      long _val63; // required
24802
                      _key62 = iprot.readI64();
24803
                      _val63 = iprot.readI64();
24804
                      _val59.put(_key62, _val63);
24805
                    }
24806
                    iprot.readMapEnd();
24807
                  }
24808
                  this.success.put(_key58, _val59);
24809
                }
24810
                iprot.readMapEnd();
24811
              }
24812
            } else { 
24813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24814
            }
24815
            break;
24816
          default:
24817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24818
        }
24819
        iprot.readFieldEnd();
24820
      }
24821
      iprot.readStructEnd();
24822
      validate();
24823
    }
24824
 
24825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24826
      oprot.writeStructBegin(STRUCT_DESC);
24827
 
24828
      if (this.isSetSuccess()) {
24829
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24830
        {
24831
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
24832
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
24833
          {
24834
            oprot.writeString(_iter64.getKey());
24835
            {
24836
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
24837
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
24838
              {
24839
                oprot.writeI64(_iter65.getKey());
24840
                oprot.writeI64(_iter65.getValue());
24841
              }
24842
              oprot.writeMapEnd();
24843
            }
24844
          }
24845
          oprot.writeMapEnd();
24846
        }
24847
        oprot.writeFieldEnd();
24848
      }
24849
      oprot.writeFieldStop();
24850
      oprot.writeStructEnd();
24851
    }
24852
 
24853
    @Override
24854
    public String toString() {
24855
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
24856
      boolean first = true;
24857
 
24858
      sb.append("success:");
24859
      if (this.success == null) {
24860
        sb.append("null");
24861
      } else {
24862
        sb.append(this.success);
24863
      }
24864
      first = false;
24865
      sb.append(")");
24866
      return sb.toString();
24867
    }
24868
 
24869
    public void validate() throws org.apache.thrift.TException {
24870
      // check for required fields
24871
    }
24872
 
24873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24874
      try {
24875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24876
      } catch (org.apache.thrift.TException te) {
24877
        throw new java.io.IOException(te);
24878
      }
24879
    }
24880
 
24881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24882
      try {
24883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24884
      } catch (org.apache.thrift.TException te) {
24885
        throw new java.io.IOException(te);
24886
      }
24887
    }
24888
 
24889
  }
24890
 
24891
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
24892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
24893
 
24894
    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);
24895
    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);
24896
    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);
24897
 
24898
    private long itemId; // required
24899
    private long warehouseId; // required
24900
    private long quantity; // required
24901
 
24902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24904
      ITEM_ID((short)1, "itemId"),
24905
      WAREHOUSE_ID((short)2, "warehouseId"),
24906
      QUANTITY((short)3, "quantity");
24907
 
24908
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24909
 
24910
      static {
24911
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24912
          byName.put(field.getFieldName(), field);
24913
        }
24914
      }
24915
 
24916
      /**
24917
       * Find the _Fields constant that matches fieldId, or null if its not found.
24918
       */
24919
      public static _Fields findByThriftId(int fieldId) {
24920
        switch(fieldId) {
24921
          case 1: // ITEM_ID
24922
            return ITEM_ID;
24923
          case 2: // WAREHOUSE_ID
24924
            return WAREHOUSE_ID;
24925
          case 3: // QUANTITY
24926
            return QUANTITY;
24927
          default:
24928
            return null;
24929
        }
24930
      }
24931
 
24932
      /**
24933
       * Find the _Fields constant that matches fieldId, throwing an exception
24934
       * if it is not found.
24935
       */
24936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24937
        _Fields fields = findByThriftId(fieldId);
24938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24939
        return fields;
24940
      }
24941
 
24942
      /**
24943
       * Find the _Fields constant that matches name, or null if its not found.
24944
       */
24945
      public static _Fields findByName(String name) {
24946
        return byName.get(name);
24947
      }
24948
 
24949
      private final short _thriftId;
24950
      private final String _fieldName;
24951
 
24952
      _Fields(short thriftId, String fieldName) {
24953
        _thriftId = thriftId;
24954
        _fieldName = fieldName;
24955
      }
24956
 
24957
      public short getThriftFieldId() {
24958
        return _thriftId;
24959
      }
24960
 
24961
      public String getFieldName() {
24962
        return _fieldName;
24963
      }
24964
    }
24965
 
24966
    // isset id assignments
24967
    private static final int __ITEMID_ISSET_ID = 0;
24968
    private static final int __WAREHOUSEID_ISSET_ID = 1;
24969
    private static final int __QUANTITY_ISSET_ID = 2;
24970
    private BitSet __isset_bit_vector = new BitSet(3);
24971
 
24972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24973
    static {
24974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24975
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24977
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24979
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
24983
    }
24984
 
24985
    public addBadInventory_args() {
24986
    }
24987
 
24988
    public addBadInventory_args(
24989
      long itemId,
24990
      long warehouseId,
24991
      long quantity)
24992
    {
24993
      this();
24994
      this.itemId = itemId;
24995
      setItemIdIsSet(true);
24996
      this.warehouseId = warehouseId;
24997
      setWarehouseIdIsSet(true);
24998
      this.quantity = quantity;
24999
      setQuantityIsSet(true);
25000
    }
25001
 
25002
    /**
25003
     * Performs a deep copy on <i>other</i>.
25004
     */
25005
    public addBadInventory_args(addBadInventory_args other) {
25006
      __isset_bit_vector.clear();
25007
      __isset_bit_vector.or(other.__isset_bit_vector);
25008
      this.itemId = other.itemId;
25009
      this.warehouseId = other.warehouseId;
25010
      this.quantity = other.quantity;
25011
    }
25012
 
25013
    public addBadInventory_args deepCopy() {
25014
      return new addBadInventory_args(this);
25015
    }
25016
 
25017
    @Override
25018
    public void clear() {
25019
      setItemIdIsSet(false);
25020
      this.itemId = 0;
25021
      setWarehouseIdIsSet(false);
25022
      this.warehouseId = 0;
25023
      setQuantityIsSet(false);
25024
      this.quantity = 0;
25025
    }
25026
 
25027
    public long getItemId() {
25028
      return this.itemId;
25029
    }
25030
 
25031
    public void setItemId(long itemId) {
25032
      this.itemId = itemId;
25033
      setItemIdIsSet(true);
25034
    }
25035
 
25036
    public void unsetItemId() {
25037
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
25038
    }
25039
 
25040
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
25041
    public boolean isSetItemId() {
25042
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
25043
    }
25044
 
25045
    public void setItemIdIsSet(boolean value) {
25046
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
25047
    }
25048
 
25049
    public long getWarehouseId() {
25050
      return this.warehouseId;
25051
    }
25052
 
25053
    public void setWarehouseId(long warehouseId) {
25054
      this.warehouseId = warehouseId;
25055
      setWarehouseIdIsSet(true);
25056
    }
25057
 
25058
    public void unsetWarehouseId() {
25059
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25060
    }
25061
 
25062
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25063
    public boolean isSetWarehouseId() {
25064
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25065
    }
25066
 
25067
    public void setWarehouseIdIsSet(boolean value) {
25068
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25069
    }
25070
 
25071
    public long getQuantity() {
25072
      return this.quantity;
25073
    }
25074
 
25075
    public void setQuantity(long quantity) {
25076
      this.quantity = quantity;
25077
      setQuantityIsSet(true);
25078
    }
25079
 
25080
    public void unsetQuantity() {
25081
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
25082
    }
25083
 
25084
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
25085
    public boolean isSetQuantity() {
25086
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
25087
    }
25088
 
25089
    public void setQuantityIsSet(boolean value) {
25090
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
25091
    }
25092
 
25093
    public void setFieldValue(_Fields field, Object value) {
25094
      switch (field) {
25095
      case ITEM_ID:
25096
        if (value == null) {
25097
          unsetItemId();
25098
        } else {
25099
          setItemId((Long)value);
25100
        }
25101
        break;
25102
 
25103
      case WAREHOUSE_ID:
25104
        if (value == null) {
25105
          unsetWarehouseId();
25106
        } else {
25107
          setWarehouseId((Long)value);
25108
        }
25109
        break;
25110
 
25111
      case QUANTITY:
25112
        if (value == null) {
25113
          unsetQuantity();
25114
        } else {
25115
          setQuantity((Long)value);
25116
        }
25117
        break;
25118
 
25119
      }
25120
    }
25121
 
25122
    public Object getFieldValue(_Fields field) {
25123
      switch (field) {
25124
      case ITEM_ID:
25125
        return Long.valueOf(getItemId());
25126
 
25127
      case WAREHOUSE_ID:
25128
        return Long.valueOf(getWarehouseId());
25129
 
25130
      case QUANTITY:
25131
        return Long.valueOf(getQuantity());
25132
 
25133
      }
25134
      throw new IllegalStateException();
25135
    }
25136
 
25137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25138
    public boolean isSet(_Fields field) {
25139
      if (field == null) {
25140
        throw new IllegalArgumentException();
25141
      }
25142
 
25143
      switch (field) {
25144
      case ITEM_ID:
25145
        return isSetItemId();
25146
      case WAREHOUSE_ID:
25147
        return isSetWarehouseId();
25148
      case QUANTITY:
25149
        return isSetQuantity();
25150
      }
25151
      throw new IllegalStateException();
25152
    }
25153
 
25154
    @Override
25155
    public boolean equals(Object that) {
25156
      if (that == null)
25157
        return false;
25158
      if (that instanceof addBadInventory_args)
25159
        return this.equals((addBadInventory_args)that);
25160
      return false;
25161
    }
25162
 
25163
    public boolean equals(addBadInventory_args that) {
25164
      if (that == null)
25165
        return false;
25166
 
25167
      boolean this_present_itemId = true;
25168
      boolean that_present_itemId = true;
25169
      if (this_present_itemId || that_present_itemId) {
25170
        if (!(this_present_itemId && that_present_itemId))
25171
          return false;
25172
        if (this.itemId != that.itemId)
25173
          return false;
25174
      }
25175
 
25176
      boolean this_present_warehouseId = true;
25177
      boolean that_present_warehouseId = true;
25178
      if (this_present_warehouseId || that_present_warehouseId) {
25179
        if (!(this_present_warehouseId && that_present_warehouseId))
25180
          return false;
25181
        if (this.warehouseId != that.warehouseId)
25182
          return false;
25183
      }
25184
 
25185
      boolean this_present_quantity = true;
25186
      boolean that_present_quantity = true;
25187
      if (this_present_quantity || that_present_quantity) {
25188
        if (!(this_present_quantity && that_present_quantity))
25189
          return false;
25190
        if (this.quantity != that.quantity)
25191
          return false;
25192
      }
25193
 
25194
      return true;
25195
    }
25196
 
25197
    @Override
25198
    public int hashCode() {
25199
      return 0;
25200
    }
25201
 
25202
    public int compareTo(addBadInventory_args other) {
25203
      if (!getClass().equals(other.getClass())) {
25204
        return getClass().getName().compareTo(other.getClass().getName());
25205
      }
25206
 
25207
      int lastComparison = 0;
25208
      addBadInventory_args typedOther = (addBadInventory_args)other;
25209
 
25210
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
25211
      if (lastComparison != 0) {
25212
        return lastComparison;
25213
      }
25214
      if (isSetItemId()) {
25215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
25216
        if (lastComparison != 0) {
25217
          return lastComparison;
25218
        }
25219
      }
25220
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25221
      if (lastComparison != 0) {
25222
        return lastComparison;
25223
      }
25224
      if (isSetWarehouseId()) {
25225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25226
        if (lastComparison != 0) {
25227
          return lastComparison;
25228
        }
25229
      }
25230
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
25231
      if (lastComparison != 0) {
25232
        return lastComparison;
25233
      }
25234
      if (isSetQuantity()) {
25235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
25236
        if (lastComparison != 0) {
25237
          return lastComparison;
25238
        }
25239
      }
25240
      return 0;
25241
    }
25242
 
25243
    public _Fields fieldForId(int fieldId) {
25244
      return _Fields.findByThriftId(fieldId);
25245
    }
25246
 
25247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25248
      org.apache.thrift.protocol.TField field;
25249
      iprot.readStructBegin();
25250
      while (true)
25251
      {
25252
        field = iprot.readFieldBegin();
25253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25254
          break;
25255
        }
25256
        switch (field.id) {
25257
          case 1: // ITEM_ID
25258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25259
              this.itemId = iprot.readI64();
25260
              setItemIdIsSet(true);
25261
            } else { 
25262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25263
            }
25264
            break;
25265
          case 2: // WAREHOUSE_ID
25266
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25267
              this.warehouseId = iprot.readI64();
25268
              setWarehouseIdIsSet(true);
25269
            } else { 
25270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25271
            }
25272
            break;
25273
          case 3: // QUANTITY
25274
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25275
              this.quantity = iprot.readI64();
25276
              setQuantityIsSet(true);
25277
            } else { 
25278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25279
            }
25280
            break;
25281
          default:
25282
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25283
        }
25284
        iprot.readFieldEnd();
25285
      }
25286
      iprot.readStructEnd();
25287
      validate();
25288
    }
25289
 
25290
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25291
      validate();
25292
 
25293
      oprot.writeStructBegin(STRUCT_DESC);
25294
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
25295
      oprot.writeI64(this.itemId);
25296
      oprot.writeFieldEnd();
25297
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25298
      oprot.writeI64(this.warehouseId);
25299
      oprot.writeFieldEnd();
25300
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
25301
      oprot.writeI64(this.quantity);
25302
      oprot.writeFieldEnd();
25303
      oprot.writeFieldStop();
25304
      oprot.writeStructEnd();
25305
    }
25306
 
25307
    @Override
25308
    public String toString() {
25309
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
25310
      boolean first = true;
25311
 
25312
      sb.append("itemId:");
25313
      sb.append(this.itemId);
25314
      first = false;
25315
      if (!first) sb.append(", ");
25316
      sb.append("warehouseId:");
25317
      sb.append(this.warehouseId);
25318
      first = false;
25319
      if (!first) sb.append(", ");
25320
      sb.append("quantity:");
25321
      sb.append(this.quantity);
25322
      first = false;
25323
      sb.append(")");
25324
      return sb.toString();
25325
    }
25326
 
25327
    public void validate() throws org.apache.thrift.TException {
25328
      // check for required fields
25329
    }
25330
 
25331
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25332
      try {
25333
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25334
      } catch (org.apache.thrift.TException te) {
25335
        throw new java.io.IOException(te);
25336
      }
25337
    }
25338
 
25339
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25340
      try {
6531 vikram.rag 25341
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25342
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 25343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25344
      } catch (org.apache.thrift.TException te) {
25345
        throw new java.io.IOException(te);
25346
      }
25347
    }
25348
 
25349
  }
25350
 
25351
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
25352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
25353
 
25354
    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);
25355
 
25356
    private InventoryServiceException cex; // required
25357
 
25358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25360
      CEX((short)1, "cex");
25361
 
25362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25363
 
25364
      static {
25365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25366
          byName.put(field.getFieldName(), field);
25367
        }
25368
      }
25369
 
25370
      /**
25371
       * Find the _Fields constant that matches fieldId, or null if its not found.
25372
       */
25373
      public static _Fields findByThriftId(int fieldId) {
25374
        switch(fieldId) {
25375
          case 1: // CEX
25376
            return CEX;
25377
          default:
25378
            return null;
25379
        }
25380
      }
25381
 
25382
      /**
25383
       * Find the _Fields constant that matches fieldId, throwing an exception
25384
       * if it is not found.
25385
       */
25386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25387
        _Fields fields = findByThriftId(fieldId);
25388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25389
        return fields;
25390
      }
25391
 
25392
      /**
25393
       * Find the _Fields constant that matches name, or null if its not found.
25394
       */
25395
      public static _Fields findByName(String name) {
25396
        return byName.get(name);
25397
      }
25398
 
25399
      private final short _thriftId;
25400
      private final String _fieldName;
25401
 
25402
      _Fields(short thriftId, String fieldName) {
25403
        _thriftId = thriftId;
25404
        _fieldName = fieldName;
25405
      }
25406
 
25407
      public short getThriftFieldId() {
25408
        return _thriftId;
25409
      }
25410
 
25411
      public String getFieldName() {
25412
        return _fieldName;
25413
      }
25414
    }
25415
 
25416
    // isset id assignments
25417
 
25418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25419
    static {
25420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25421
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
25425
    }
25426
 
25427
    public addBadInventory_result() {
25428
    }
25429
 
25430
    public addBadInventory_result(
25431
      InventoryServiceException cex)
25432
    {
25433
      this();
25434
      this.cex = cex;
25435
    }
25436
 
25437
    /**
25438
     * Performs a deep copy on <i>other</i>.
25439
     */
25440
    public addBadInventory_result(addBadInventory_result other) {
25441
      if (other.isSetCex()) {
25442
        this.cex = new InventoryServiceException(other.cex);
25443
      }
25444
    }
25445
 
25446
    public addBadInventory_result deepCopy() {
25447
      return new addBadInventory_result(this);
25448
    }
25449
 
25450
    @Override
25451
    public void clear() {
25452
      this.cex = null;
25453
    }
25454
 
25455
    public InventoryServiceException getCex() {
25456
      return this.cex;
25457
    }
25458
 
25459
    public void setCex(InventoryServiceException cex) {
25460
      this.cex = cex;
25461
    }
25462
 
25463
    public void unsetCex() {
25464
      this.cex = null;
25465
    }
25466
 
25467
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
25468
    public boolean isSetCex() {
25469
      return this.cex != null;
25470
    }
25471
 
25472
    public void setCexIsSet(boolean value) {
25473
      if (!value) {
25474
        this.cex = null;
25475
      }
25476
    }
25477
 
25478
    public void setFieldValue(_Fields field, Object value) {
25479
      switch (field) {
25480
      case CEX:
25481
        if (value == null) {
25482
          unsetCex();
25483
        } else {
25484
          setCex((InventoryServiceException)value);
25485
        }
25486
        break;
25487
 
25488
      }
25489
    }
25490
 
25491
    public Object getFieldValue(_Fields field) {
25492
      switch (field) {
25493
      case CEX:
25494
        return getCex();
25495
 
25496
      }
25497
      throw new IllegalStateException();
25498
    }
25499
 
25500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25501
    public boolean isSet(_Fields field) {
25502
      if (field == null) {
25503
        throw new IllegalArgumentException();
25504
      }
25505
 
25506
      switch (field) {
25507
      case CEX:
25508
        return isSetCex();
25509
      }
25510
      throw new IllegalStateException();
25511
    }
25512
 
25513
    @Override
25514
    public boolean equals(Object that) {
25515
      if (that == null)
25516
        return false;
25517
      if (that instanceof addBadInventory_result)
25518
        return this.equals((addBadInventory_result)that);
25519
      return false;
25520
    }
25521
 
25522
    public boolean equals(addBadInventory_result that) {
25523
      if (that == null)
25524
        return false;
25525
 
25526
      boolean this_present_cex = true && this.isSetCex();
25527
      boolean that_present_cex = true && that.isSetCex();
25528
      if (this_present_cex || that_present_cex) {
25529
        if (!(this_present_cex && that_present_cex))
25530
          return false;
25531
        if (!this.cex.equals(that.cex))
25532
          return false;
25533
      }
25534
 
25535
      return true;
25536
    }
25537
 
25538
    @Override
25539
    public int hashCode() {
25540
      return 0;
25541
    }
25542
 
25543
    public int compareTo(addBadInventory_result other) {
25544
      if (!getClass().equals(other.getClass())) {
25545
        return getClass().getName().compareTo(other.getClass().getName());
25546
      }
25547
 
25548
      int lastComparison = 0;
25549
      addBadInventory_result typedOther = (addBadInventory_result)other;
25550
 
25551
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25552
      if (lastComparison != 0) {
25553
        return lastComparison;
25554
      }
25555
      if (isSetCex()) {
25556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25557
        if (lastComparison != 0) {
25558
          return lastComparison;
25559
        }
25560
      }
25561
      return 0;
25562
    }
25563
 
25564
    public _Fields fieldForId(int fieldId) {
25565
      return _Fields.findByThriftId(fieldId);
25566
    }
25567
 
25568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25569
      org.apache.thrift.protocol.TField field;
25570
      iprot.readStructBegin();
25571
      while (true)
25572
      {
25573
        field = iprot.readFieldBegin();
25574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25575
          break;
25576
        }
25577
        switch (field.id) {
25578
          case 1: // CEX
25579
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25580
              this.cex = new InventoryServiceException();
25581
              this.cex.read(iprot);
25582
            } else { 
25583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25584
            }
25585
            break;
25586
          default:
25587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25588
        }
25589
        iprot.readFieldEnd();
25590
      }
25591
      iprot.readStructEnd();
25592
      validate();
25593
    }
25594
 
25595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25596
      oprot.writeStructBegin(STRUCT_DESC);
25597
 
25598
      if (this.isSetCex()) {
25599
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25600
        this.cex.write(oprot);
25601
        oprot.writeFieldEnd();
25602
      }
25603
      oprot.writeFieldStop();
25604
      oprot.writeStructEnd();
25605
    }
25606
 
25607
    @Override
25608
    public String toString() {
25609
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
25610
      boolean first = true;
25611
 
25612
      sb.append("cex:");
25613
      if (this.cex == null) {
25614
        sb.append("null");
25615
      } else {
25616
        sb.append(this.cex);
25617
      }
25618
      first = false;
25619
      sb.append(")");
25620
      return sb.toString();
25621
    }
25622
 
25623
    public void validate() throws org.apache.thrift.TException {
25624
      // check for required fields
25625
    }
25626
 
25627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25628
      try {
25629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25630
      } catch (org.apache.thrift.TException te) {
25631
        throw new java.io.IOException(te);
25632
      }
25633
    }
25634
 
25635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25636
      try {
25637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25638
      } catch (org.apache.thrift.TException te) {
25639
        throw new java.io.IOException(te);
25640
      }
25641
    }
25642
 
25643
  }
25644
 
25645
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
25646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
25647
 
25648
 
25649
 
25650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25652
;
25653
 
25654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25655
 
25656
      static {
25657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25658
          byName.put(field.getFieldName(), field);
25659
        }
25660
      }
25661
 
25662
      /**
25663
       * Find the _Fields constant that matches fieldId, or null if its not found.
25664
       */
25665
      public static _Fields findByThriftId(int fieldId) {
25666
        switch(fieldId) {
25667
          default:
25668
            return null;
25669
        }
25670
      }
25671
 
25672
      /**
25673
       * Find the _Fields constant that matches fieldId, throwing an exception
25674
       * if it is not found.
25675
       */
25676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25677
        _Fields fields = findByThriftId(fieldId);
25678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25679
        return fields;
25680
      }
25681
 
25682
      /**
25683
       * Find the _Fields constant that matches name, or null if its not found.
25684
       */
25685
      public static _Fields findByName(String name) {
25686
        return byName.get(name);
25687
      }
25688
 
25689
      private final short _thriftId;
25690
      private final String _fieldName;
25691
 
25692
      _Fields(short thriftId, String fieldName) {
25693
        _thriftId = thriftId;
25694
        _fieldName = fieldName;
25695
      }
25696
 
25697
      public short getThriftFieldId() {
25698
        return _thriftId;
25699
      }
25700
 
25701
      public String getFieldName() {
25702
        return _fieldName;
25703
      }
25704
    }
25705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25706
    static {
25707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
25710
    }
25711
 
25712
    public getShippingLocations_args() {
25713
    }
25714
 
25715
    /**
25716
     * Performs a deep copy on <i>other</i>.
25717
     */
25718
    public getShippingLocations_args(getShippingLocations_args other) {
25719
    }
25720
 
25721
    public getShippingLocations_args deepCopy() {
25722
      return new getShippingLocations_args(this);
25723
    }
25724
 
25725
    @Override
25726
    public void clear() {
25727
    }
25728
 
25729
    public void setFieldValue(_Fields field, Object value) {
25730
      switch (field) {
25731
      }
25732
    }
25733
 
25734
    public Object getFieldValue(_Fields field) {
25735
      switch (field) {
25736
      }
25737
      throw new IllegalStateException();
25738
    }
25739
 
25740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25741
    public boolean isSet(_Fields field) {
25742
      if (field == null) {
25743
        throw new IllegalArgumentException();
25744
      }
25745
 
25746
      switch (field) {
25747
      }
25748
      throw new IllegalStateException();
25749
    }
25750
 
25751
    @Override
25752
    public boolean equals(Object that) {
25753
      if (that == null)
25754
        return false;
25755
      if (that instanceof getShippingLocations_args)
25756
        return this.equals((getShippingLocations_args)that);
25757
      return false;
25758
    }
25759
 
25760
    public boolean equals(getShippingLocations_args that) {
25761
      if (that == null)
25762
        return false;
25763
 
25764
      return true;
25765
    }
25766
 
25767
    @Override
25768
    public int hashCode() {
25769
      return 0;
25770
    }
25771
 
25772
    public int compareTo(getShippingLocations_args other) {
25773
      if (!getClass().equals(other.getClass())) {
25774
        return getClass().getName().compareTo(other.getClass().getName());
25775
      }
25776
 
25777
      int lastComparison = 0;
25778
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
25779
 
25780
      return 0;
25781
    }
25782
 
25783
    public _Fields fieldForId(int fieldId) {
25784
      return _Fields.findByThriftId(fieldId);
25785
    }
25786
 
25787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25788
      org.apache.thrift.protocol.TField field;
25789
      iprot.readStructBegin();
25790
      while (true)
25791
      {
25792
        field = iprot.readFieldBegin();
25793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25794
          break;
25795
        }
25796
        switch (field.id) {
25797
          default:
25798
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25799
        }
25800
        iprot.readFieldEnd();
25801
      }
25802
      iprot.readStructEnd();
25803
      validate();
25804
    }
25805
 
25806
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25807
      validate();
25808
 
25809
      oprot.writeStructBegin(STRUCT_DESC);
25810
      oprot.writeFieldStop();
25811
      oprot.writeStructEnd();
25812
    }
25813
 
25814
    @Override
25815
    public String toString() {
25816
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
25817
      boolean first = true;
25818
 
25819
      sb.append(")");
25820
      return sb.toString();
25821
    }
25822
 
25823
    public void validate() throws org.apache.thrift.TException {
25824
      // check for required fields
25825
    }
25826
 
25827
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25828
      try {
25829
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25830
      } catch (org.apache.thrift.TException te) {
25831
        throw new java.io.IOException(te);
25832
      }
25833
    }
25834
 
25835
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25836
      try {
25837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25838
      } catch (org.apache.thrift.TException te) {
25839
        throw new java.io.IOException(te);
25840
      }
25841
    }
25842
 
25843
  }
25844
 
25845
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
25846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
25847
 
25848
    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);
25849
 
25850
    private List<Warehouse> success; // required
25851
 
25852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25854
      SUCCESS((short)0, "success");
25855
 
25856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25857
 
25858
      static {
25859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25860
          byName.put(field.getFieldName(), field);
25861
        }
25862
      }
25863
 
25864
      /**
25865
       * Find the _Fields constant that matches fieldId, or null if its not found.
25866
       */
25867
      public static _Fields findByThriftId(int fieldId) {
25868
        switch(fieldId) {
25869
          case 0: // SUCCESS
25870
            return SUCCESS;
25871
          default:
25872
            return null;
25873
        }
25874
      }
25875
 
25876
      /**
25877
       * Find the _Fields constant that matches fieldId, throwing an exception
25878
       * if it is not found.
25879
       */
25880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25881
        _Fields fields = findByThriftId(fieldId);
25882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25883
        return fields;
25884
      }
25885
 
25886
      /**
25887
       * Find the _Fields constant that matches name, or null if its not found.
25888
       */
25889
      public static _Fields findByName(String name) {
25890
        return byName.get(name);
25891
      }
25892
 
25893
      private final short _thriftId;
25894
      private final String _fieldName;
25895
 
25896
      _Fields(short thriftId, String fieldName) {
25897
        _thriftId = thriftId;
25898
        _fieldName = fieldName;
25899
      }
25900
 
25901
      public short getThriftFieldId() {
25902
        return _thriftId;
25903
      }
25904
 
25905
      public String getFieldName() {
25906
        return _fieldName;
25907
      }
25908
    }
25909
 
25910
    // isset id assignments
25911
 
25912
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25913
    static {
25914
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25915
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25916
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25917
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25918
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25919
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
25920
    }
25921
 
25922
    public getShippingLocations_result() {
25923
    }
25924
 
25925
    public getShippingLocations_result(
25926
      List<Warehouse> success)
25927
    {
25928
      this();
25929
      this.success = success;
25930
    }
25931
 
25932
    /**
25933
     * Performs a deep copy on <i>other</i>.
25934
     */
25935
    public getShippingLocations_result(getShippingLocations_result other) {
25936
      if (other.isSetSuccess()) {
25937
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25938
        for (Warehouse other_element : other.success) {
25939
          __this__success.add(new Warehouse(other_element));
25940
        }
25941
        this.success = __this__success;
25942
      }
25943
    }
25944
 
25945
    public getShippingLocations_result deepCopy() {
25946
      return new getShippingLocations_result(this);
25947
    }
25948
 
25949
    @Override
25950
    public void clear() {
25951
      this.success = null;
25952
    }
25953
 
25954
    public int getSuccessSize() {
25955
      return (this.success == null) ? 0 : this.success.size();
25956
    }
25957
 
25958
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25959
      return (this.success == null) ? null : this.success.iterator();
25960
    }
25961
 
25962
    public void addToSuccess(Warehouse elem) {
25963
      if (this.success == null) {
25964
        this.success = new ArrayList<Warehouse>();
25965
      }
25966
      this.success.add(elem);
25967
    }
25968
 
25969
    public List<Warehouse> getSuccess() {
25970
      return this.success;
25971
    }
25972
 
25973
    public void setSuccess(List<Warehouse> success) {
25974
      this.success = success;
25975
    }
25976
 
25977
    public void unsetSuccess() {
25978
      this.success = null;
25979
    }
25980
 
25981
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25982
    public boolean isSetSuccess() {
25983
      return this.success != null;
25984
    }
25985
 
25986
    public void setSuccessIsSet(boolean value) {
25987
      if (!value) {
25988
        this.success = null;
25989
      }
25990
    }
25991
 
25992
    public void setFieldValue(_Fields field, Object value) {
25993
      switch (field) {
25994
      case SUCCESS:
25995
        if (value == null) {
25996
          unsetSuccess();
25997
        } else {
25998
          setSuccess((List<Warehouse>)value);
25999
        }
26000
        break;
26001
 
26002
      }
26003
    }
26004
 
26005
    public Object getFieldValue(_Fields field) {
26006
      switch (field) {
26007
      case SUCCESS:
26008
        return getSuccess();
26009
 
26010
      }
26011
      throw new IllegalStateException();
26012
    }
26013
 
26014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26015
    public boolean isSet(_Fields field) {
26016
      if (field == null) {
26017
        throw new IllegalArgumentException();
26018
      }
26019
 
26020
      switch (field) {
26021
      case SUCCESS:
26022
        return isSetSuccess();
26023
      }
26024
      throw new IllegalStateException();
26025
    }
26026
 
26027
    @Override
26028
    public boolean equals(Object that) {
26029
      if (that == null)
26030
        return false;
26031
      if (that instanceof getShippingLocations_result)
26032
        return this.equals((getShippingLocations_result)that);
26033
      return false;
26034
    }
26035
 
26036
    public boolean equals(getShippingLocations_result that) {
26037
      if (that == null)
26038
        return false;
26039
 
26040
      boolean this_present_success = true && this.isSetSuccess();
26041
      boolean that_present_success = true && that.isSetSuccess();
26042
      if (this_present_success || that_present_success) {
26043
        if (!(this_present_success && that_present_success))
26044
          return false;
26045
        if (!this.success.equals(that.success))
26046
          return false;
26047
      }
26048
 
26049
      return true;
26050
    }
26051
 
26052
    @Override
26053
    public int hashCode() {
26054
      return 0;
26055
    }
26056
 
26057
    public int compareTo(getShippingLocations_result other) {
26058
      if (!getClass().equals(other.getClass())) {
26059
        return getClass().getName().compareTo(other.getClass().getName());
26060
      }
26061
 
26062
      int lastComparison = 0;
26063
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
26064
 
26065
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26066
      if (lastComparison != 0) {
26067
        return lastComparison;
26068
      }
26069
      if (isSetSuccess()) {
26070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26071
        if (lastComparison != 0) {
26072
          return lastComparison;
26073
        }
26074
      }
26075
      return 0;
26076
    }
26077
 
26078
    public _Fields fieldForId(int fieldId) {
26079
      return _Fields.findByThriftId(fieldId);
26080
    }
26081
 
26082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26083
      org.apache.thrift.protocol.TField field;
26084
      iprot.readStructBegin();
26085
      while (true)
26086
      {
26087
        field = iprot.readFieldBegin();
26088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26089
          break;
26090
        }
26091
        switch (field.id) {
26092
          case 0: // SUCCESS
26093
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26094
              {
26095
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
26096
                this.success = new ArrayList<Warehouse>(_list66.size);
26097
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
26098
                {
26099
                  Warehouse _elem68; // required
26100
                  _elem68 = new Warehouse();
26101
                  _elem68.read(iprot);
26102
                  this.success.add(_elem68);
26103
                }
26104
                iprot.readListEnd();
26105
              }
26106
            } else { 
26107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26108
            }
26109
            break;
26110
          default:
26111
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26112
        }
26113
        iprot.readFieldEnd();
26114
      }
26115
      iprot.readStructEnd();
26116
      validate();
26117
    }
26118
 
26119
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26120
      oprot.writeStructBegin(STRUCT_DESC);
26121
 
26122
      if (this.isSetSuccess()) {
26123
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26124
        {
26125
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26126
          for (Warehouse _iter69 : this.success)
26127
          {
26128
            _iter69.write(oprot);
26129
          }
26130
          oprot.writeListEnd();
26131
        }
26132
        oprot.writeFieldEnd();
26133
      }
26134
      oprot.writeFieldStop();
26135
      oprot.writeStructEnd();
26136
    }
26137
 
26138
    @Override
26139
    public String toString() {
26140
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
26141
      boolean first = true;
26142
 
26143
      sb.append("success:");
26144
      if (this.success == null) {
26145
        sb.append("null");
26146
      } else {
26147
        sb.append(this.success);
26148
      }
26149
      first = false;
26150
      sb.append(")");
26151
      return sb.toString();
26152
    }
26153
 
26154
    public void validate() throws org.apache.thrift.TException {
26155
      // check for required fields
26156
    }
26157
 
26158
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26159
      try {
26160
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26161
      } catch (org.apache.thrift.TException te) {
26162
        throw new java.io.IOException(te);
26163
      }
26164
    }
26165
 
26166
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26167
      try {
26168
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26169
      } catch (org.apache.thrift.TException te) {
26170
        throw new java.io.IOException(te);
26171
      }
26172
    }
26173
 
26174
  }
26175
 
26176
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
26177
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
26178
 
26179
 
26180
 
26181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26183
;
26184
 
26185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26186
 
26187
      static {
26188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26189
          byName.put(field.getFieldName(), field);
26190
        }
26191
      }
26192
 
26193
      /**
26194
       * Find the _Fields constant that matches fieldId, or null if its not found.
26195
       */
26196
      public static _Fields findByThriftId(int fieldId) {
26197
        switch(fieldId) {
26198
          default:
26199
            return null;
26200
        }
26201
      }
26202
 
26203
      /**
26204
       * Find the _Fields constant that matches fieldId, throwing an exception
26205
       * if it is not found.
26206
       */
26207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26208
        _Fields fields = findByThriftId(fieldId);
26209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26210
        return fields;
26211
      }
26212
 
26213
      /**
26214
       * Find the _Fields constant that matches name, or null if its not found.
26215
       */
26216
      public static _Fields findByName(String name) {
26217
        return byName.get(name);
26218
      }
26219
 
26220
      private final short _thriftId;
26221
      private final String _fieldName;
26222
 
26223
      _Fields(short thriftId, String fieldName) {
26224
        _thriftId = thriftId;
26225
        _fieldName = fieldName;
26226
      }
26227
 
26228
      public short getThriftFieldId() {
26229
        return _thriftId;
26230
      }
26231
 
26232
      public String getFieldName() {
26233
        return _fieldName;
26234
      }
26235
    }
26236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26237
    static {
26238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
26241
    }
26242
 
26243
    public getAllVendorItemMappings_args() {
26244
    }
26245
 
26246
    /**
26247
     * Performs a deep copy on <i>other</i>.
26248
     */
26249
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
26250
    }
26251
 
26252
    public getAllVendorItemMappings_args deepCopy() {
26253
      return new getAllVendorItemMappings_args(this);
26254
    }
26255
 
26256
    @Override
26257
    public void clear() {
26258
    }
26259
 
26260
    public void setFieldValue(_Fields field, Object value) {
26261
      switch (field) {
26262
      }
26263
    }
26264
 
26265
    public Object getFieldValue(_Fields field) {
26266
      switch (field) {
26267
      }
26268
      throw new IllegalStateException();
26269
    }
26270
 
26271
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26272
    public boolean isSet(_Fields field) {
26273
      if (field == null) {
26274
        throw new IllegalArgumentException();
26275
      }
26276
 
26277
      switch (field) {
26278
      }
26279
      throw new IllegalStateException();
26280
    }
26281
 
26282
    @Override
26283
    public boolean equals(Object that) {
26284
      if (that == null)
26285
        return false;
26286
      if (that instanceof getAllVendorItemMappings_args)
26287
        return this.equals((getAllVendorItemMappings_args)that);
26288
      return false;
26289
    }
26290
 
26291
    public boolean equals(getAllVendorItemMappings_args that) {
26292
      if (that == null)
26293
        return false;
26294
 
26295
      return true;
26296
    }
26297
 
26298
    @Override
26299
    public int hashCode() {
26300
      return 0;
26301
    }
26302
 
26303
    public int compareTo(getAllVendorItemMappings_args other) {
26304
      if (!getClass().equals(other.getClass())) {
26305
        return getClass().getName().compareTo(other.getClass().getName());
26306
      }
26307
 
26308
      int lastComparison = 0;
26309
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
26310
 
26311
      return 0;
26312
    }
26313
 
26314
    public _Fields fieldForId(int fieldId) {
26315
      return _Fields.findByThriftId(fieldId);
26316
    }
26317
 
26318
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26319
      org.apache.thrift.protocol.TField field;
26320
      iprot.readStructBegin();
26321
      while (true)
26322
      {
26323
        field = iprot.readFieldBegin();
26324
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26325
          break;
26326
        }
26327
        switch (field.id) {
26328
          default:
26329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26330
        }
26331
        iprot.readFieldEnd();
26332
      }
26333
      iprot.readStructEnd();
26334
      validate();
26335
    }
26336
 
26337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26338
      validate();
26339
 
26340
      oprot.writeStructBegin(STRUCT_DESC);
26341
      oprot.writeFieldStop();
26342
      oprot.writeStructEnd();
26343
    }
26344
 
26345
    @Override
26346
    public String toString() {
26347
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
26348
      boolean first = true;
26349
 
26350
      sb.append(")");
26351
      return sb.toString();
26352
    }
26353
 
26354
    public void validate() throws org.apache.thrift.TException {
26355
      // check for required fields
26356
    }
26357
 
26358
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26359
      try {
26360
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26361
      } catch (org.apache.thrift.TException te) {
26362
        throw new java.io.IOException(te);
26363
      }
26364
    }
26365
 
26366
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26367
      try {
26368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26369
      } catch (org.apache.thrift.TException te) {
26370
        throw new java.io.IOException(te);
26371
      }
26372
    }
26373
 
26374
  }
26375
 
26376
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
26377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
26378
 
26379
    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);
26380
 
26381
    private List<VendorItemMapping> success; // required
26382
 
26383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26385
      SUCCESS((short)0, "success");
26386
 
26387
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26388
 
26389
      static {
26390
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26391
          byName.put(field.getFieldName(), field);
26392
        }
26393
      }
26394
 
26395
      /**
26396
       * Find the _Fields constant that matches fieldId, or null if its not found.
26397
       */
26398
      public static _Fields findByThriftId(int fieldId) {
26399
        switch(fieldId) {
26400
          case 0: // SUCCESS
26401
            return SUCCESS;
26402
          default:
26403
            return null;
26404
        }
26405
      }
26406
 
26407
      /**
26408
       * Find the _Fields constant that matches fieldId, throwing an exception
26409
       * if it is not found.
26410
       */
26411
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26412
        _Fields fields = findByThriftId(fieldId);
26413
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26414
        return fields;
26415
      }
26416
 
26417
      /**
26418
       * Find the _Fields constant that matches name, or null if its not found.
26419
       */
26420
      public static _Fields findByName(String name) {
26421
        return byName.get(name);
26422
      }
26423
 
26424
      private final short _thriftId;
26425
      private final String _fieldName;
26426
 
26427
      _Fields(short thriftId, String fieldName) {
26428
        _thriftId = thriftId;
26429
        _fieldName = fieldName;
26430
      }
26431
 
26432
      public short getThriftFieldId() {
26433
        return _thriftId;
26434
      }
26435
 
26436
      public String getFieldName() {
26437
        return _fieldName;
26438
      }
26439
    }
26440
 
26441
    // isset id assignments
26442
 
26443
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26444
    static {
26445
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26446
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26447
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26448
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
26449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
26451
    }
26452
 
26453
    public getAllVendorItemMappings_result() {
26454
    }
26455
 
26456
    public getAllVendorItemMappings_result(
26457
      List<VendorItemMapping> success)
26458
    {
26459
      this();
26460
      this.success = success;
26461
    }
26462
 
26463
    /**
26464
     * Performs a deep copy on <i>other</i>.
26465
     */
26466
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
26467
      if (other.isSetSuccess()) {
26468
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
26469
        for (VendorItemMapping other_element : other.success) {
26470
          __this__success.add(new VendorItemMapping(other_element));
26471
        }
26472
        this.success = __this__success;
26473
      }
26474
    }
26475
 
26476
    public getAllVendorItemMappings_result deepCopy() {
26477
      return new getAllVendorItemMappings_result(this);
26478
    }
26479
 
26480
    @Override
26481
    public void clear() {
26482
      this.success = null;
26483
    }
26484
 
26485
    public int getSuccessSize() {
26486
      return (this.success == null) ? 0 : this.success.size();
26487
    }
26488
 
26489
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
26490
      return (this.success == null) ? null : this.success.iterator();
26491
    }
26492
 
26493
    public void addToSuccess(VendorItemMapping elem) {
26494
      if (this.success == null) {
26495
        this.success = new ArrayList<VendorItemMapping>();
26496
      }
26497
      this.success.add(elem);
26498
    }
26499
 
26500
    public List<VendorItemMapping> getSuccess() {
26501
      return this.success;
26502
    }
26503
 
26504
    public void setSuccess(List<VendorItemMapping> success) {
26505
      this.success = success;
26506
    }
26507
 
26508
    public void unsetSuccess() {
26509
      this.success = null;
26510
    }
26511
 
26512
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26513
    public boolean isSetSuccess() {
26514
      return this.success != null;
26515
    }
26516
 
26517
    public void setSuccessIsSet(boolean value) {
26518
      if (!value) {
26519
        this.success = null;
26520
      }
26521
    }
26522
 
26523
    public void setFieldValue(_Fields field, Object value) {
26524
      switch (field) {
26525
      case SUCCESS:
26526
        if (value == null) {
26527
          unsetSuccess();
26528
        } else {
26529
          setSuccess((List<VendorItemMapping>)value);
26530
        }
26531
        break;
26532
 
26533
      }
26534
    }
26535
 
26536
    public Object getFieldValue(_Fields field) {
26537
      switch (field) {
26538
      case SUCCESS:
26539
        return getSuccess();
26540
 
26541
      }
26542
      throw new IllegalStateException();
26543
    }
26544
 
26545
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26546
    public boolean isSet(_Fields field) {
26547
      if (field == null) {
26548
        throw new IllegalArgumentException();
26549
      }
26550
 
26551
      switch (field) {
26552
      case SUCCESS:
26553
        return isSetSuccess();
26554
      }
26555
      throw new IllegalStateException();
26556
    }
26557
 
26558
    @Override
26559
    public boolean equals(Object that) {
26560
      if (that == null)
26561
        return false;
26562
      if (that instanceof getAllVendorItemMappings_result)
26563
        return this.equals((getAllVendorItemMappings_result)that);
26564
      return false;
26565
    }
26566
 
26567
    public boolean equals(getAllVendorItemMappings_result that) {
26568
      if (that == null)
26569
        return false;
26570
 
26571
      boolean this_present_success = true && this.isSetSuccess();
26572
      boolean that_present_success = true && that.isSetSuccess();
26573
      if (this_present_success || that_present_success) {
26574
        if (!(this_present_success && that_present_success))
26575
          return false;
26576
        if (!this.success.equals(that.success))
26577
          return false;
26578
      }
26579
 
26580
      return true;
26581
    }
26582
 
26583
    @Override
26584
    public int hashCode() {
26585
      return 0;
26586
    }
26587
 
26588
    public int compareTo(getAllVendorItemMappings_result other) {
26589
      if (!getClass().equals(other.getClass())) {
26590
        return getClass().getName().compareTo(other.getClass().getName());
26591
      }
26592
 
26593
      int lastComparison = 0;
26594
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
26595
 
26596
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26597
      if (lastComparison != 0) {
26598
        return lastComparison;
26599
      }
26600
      if (isSetSuccess()) {
26601
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26602
        if (lastComparison != 0) {
26603
          return lastComparison;
26604
        }
26605
      }
26606
      return 0;
26607
    }
26608
 
26609
    public _Fields fieldForId(int fieldId) {
26610
      return _Fields.findByThriftId(fieldId);
26611
    }
26612
 
26613
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26614
      org.apache.thrift.protocol.TField field;
26615
      iprot.readStructBegin();
26616
      while (true)
26617
      {
26618
        field = iprot.readFieldBegin();
26619
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26620
          break;
26621
        }
26622
        switch (field.id) {
26623
          case 0: // SUCCESS
26624
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26625
              {
26626
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
26627
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
26628
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
26629
                {
26630
                  VendorItemMapping _elem72; // required
26631
                  _elem72 = new VendorItemMapping();
26632
                  _elem72.read(iprot);
26633
                  this.success.add(_elem72);
26634
                }
26635
                iprot.readListEnd();
26636
              }
26637
            } else { 
26638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26639
            }
26640
            break;
26641
          default:
26642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26643
        }
26644
        iprot.readFieldEnd();
26645
      }
26646
      iprot.readStructEnd();
26647
      validate();
26648
    }
26649
 
26650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26651
      oprot.writeStructBegin(STRUCT_DESC);
26652
 
26653
      if (this.isSetSuccess()) {
26654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26655
        {
26656
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26657
          for (VendorItemMapping _iter73 : this.success)
26658
          {
26659
            _iter73.write(oprot);
26660
          }
26661
          oprot.writeListEnd();
26662
        }
26663
        oprot.writeFieldEnd();
26664
      }
26665
      oprot.writeFieldStop();
26666
      oprot.writeStructEnd();
26667
    }
26668
 
26669
    @Override
26670
    public String toString() {
26671
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
26672
      boolean first = true;
26673
 
26674
      sb.append("success:");
26675
      if (this.success == null) {
26676
        sb.append("null");
26677
      } else {
26678
        sb.append(this.success);
26679
      }
26680
      first = false;
26681
      sb.append(")");
26682
      return sb.toString();
26683
    }
26684
 
26685
    public void validate() throws org.apache.thrift.TException {
26686
      // check for required fields
26687
    }
26688
 
26689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26690
      try {
26691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26692
      } catch (org.apache.thrift.TException te) {
26693
        throw new java.io.IOException(te);
26694
      }
26695
    }
26696
 
26697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26698
      try {
26699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26700
      } catch (org.apache.thrift.TException te) {
26701
        throw new java.io.IOException(te);
26702
      }
26703
    }
26704
 
26705
  }
26706
 
26707
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
26708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
26709
 
26710
    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);
26711
 
26712
    private long warehouseId; // required
26713
 
26714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26716
      WAREHOUSE_ID((short)1, "warehouseId");
26717
 
26718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26719
 
26720
      static {
26721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26722
          byName.put(field.getFieldName(), field);
26723
        }
26724
      }
26725
 
26726
      /**
26727
       * Find the _Fields constant that matches fieldId, or null if its not found.
26728
       */
26729
      public static _Fields findByThriftId(int fieldId) {
26730
        switch(fieldId) {
26731
          case 1: // WAREHOUSE_ID
26732
            return WAREHOUSE_ID;
26733
          default:
26734
            return null;
26735
        }
26736
      }
26737
 
26738
      /**
26739
       * Find the _Fields constant that matches fieldId, throwing an exception
26740
       * if it is not found.
26741
       */
26742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26743
        _Fields fields = findByThriftId(fieldId);
26744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26745
        return fields;
26746
      }
26747
 
26748
      /**
26749
       * Find the _Fields constant that matches name, or null if its not found.
26750
       */
26751
      public static _Fields findByName(String name) {
26752
        return byName.get(name);
26753
      }
26754
 
26755
      private final short _thriftId;
26756
      private final String _fieldName;
26757
 
26758
      _Fields(short thriftId, String fieldName) {
26759
        _thriftId = thriftId;
26760
        _fieldName = fieldName;
26761
      }
26762
 
26763
      public short getThriftFieldId() {
26764
        return _thriftId;
26765
      }
26766
 
26767
      public String getFieldName() {
26768
        return _fieldName;
26769
      }
26770
    }
26771
 
26772
    // isset id assignments
26773
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26774
    private BitSet __isset_bit_vector = new BitSet(1);
26775
 
26776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26777
    static {
26778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26779
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
26783
    }
26784
 
26785
    public getInventorySnapshot_args() {
26786
    }
26787
 
26788
    public getInventorySnapshot_args(
26789
      long warehouseId)
26790
    {
26791
      this();
26792
      this.warehouseId = warehouseId;
26793
      setWarehouseIdIsSet(true);
26794
    }
26795
 
26796
    /**
26797
     * Performs a deep copy on <i>other</i>.
26798
     */
26799
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
26800
      __isset_bit_vector.clear();
26801
      __isset_bit_vector.or(other.__isset_bit_vector);
26802
      this.warehouseId = other.warehouseId;
26803
    }
26804
 
26805
    public getInventorySnapshot_args deepCopy() {
26806
      return new getInventorySnapshot_args(this);
26807
    }
26808
 
26809
    @Override
26810
    public void clear() {
26811
      setWarehouseIdIsSet(false);
26812
      this.warehouseId = 0;
26813
    }
26814
 
26815
    public long getWarehouseId() {
26816
      return this.warehouseId;
26817
    }
26818
 
26819
    public void setWarehouseId(long warehouseId) {
26820
      this.warehouseId = warehouseId;
26821
      setWarehouseIdIsSet(true);
26822
    }
26823
 
26824
    public void unsetWarehouseId() {
26825
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26826
    }
26827
 
26828
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26829
    public boolean isSetWarehouseId() {
26830
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26831
    }
26832
 
26833
    public void setWarehouseIdIsSet(boolean value) {
26834
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26835
    }
26836
 
26837
    public void setFieldValue(_Fields field, Object value) {
26838
      switch (field) {
26839
      case WAREHOUSE_ID:
26840
        if (value == null) {
26841
          unsetWarehouseId();
26842
        } else {
26843
          setWarehouseId((Long)value);
26844
        }
26845
        break;
26846
 
26847
      }
26848
    }
26849
 
26850
    public Object getFieldValue(_Fields field) {
26851
      switch (field) {
26852
      case WAREHOUSE_ID:
26853
        return Long.valueOf(getWarehouseId());
26854
 
26855
      }
26856
      throw new IllegalStateException();
26857
    }
26858
 
26859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26860
    public boolean isSet(_Fields field) {
26861
      if (field == null) {
26862
        throw new IllegalArgumentException();
26863
      }
26864
 
26865
      switch (field) {
26866
      case WAREHOUSE_ID:
26867
        return isSetWarehouseId();
26868
      }
26869
      throw new IllegalStateException();
26870
    }
26871
 
26872
    @Override
26873
    public boolean equals(Object that) {
26874
      if (that == null)
26875
        return false;
26876
      if (that instanceof getInventorySnapshot_args)
26877
        return this.equals((getInventorySnapshot_args)that);
26878
      return false;
26879
    }
26880
 
26881
    public boolean equals(getInventorySnapshot_args that) {
26882
      if (that == null)
26883
        return false;
26884
 
26885
      boolean this_present_warehouseId = true;
26886
      boolean that_present_warehouseId = true;
26887
      if (this_present_warehouseId || that_present_warehouseId) {
26888
        if (!(this_present_warehouseId && that_present_warehouseId))
26889
          return false;
26890
        if (this.warehouseId != that.warehouseId)
26891
          return false;
26892
      }
26893
 
26894
      return true;
26895
    }
26896
 
26897
    @Override
26898
    public int hashCode() {
26899
      return 0;
26900
    }
26901
 
26902
    public int compareTo(getInventorySnapshot_args other) {
26903
      if (!getClass().equals(other.getClass())) {
26904
        return getClass().getName().compareTo(other.getClass().getName());
26905
      }
26906
 
26907
      int lastComparison = 0;
26908
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
26909
 
26910
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26911
      if (lastComparison != 0) {
26912
        return lastComparison;
26913
      }
26914
      if (isSetWarehouseId()) {
26915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26916
        if (lastComparison != 0) {
26917
          return lastComparison;
26918
        }
26919
      }
26920
      return 0;
26921
    }
26922
 
26923
    public _Fields fieldForId(int fieldId) {
26924
      return _Fields.findByThriftId(fieldId);
26925
    }
26926
 
26927
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26928
      org.apache.thrift.protocol.TField field;
26929
      iprot.readStructBegin();
26930
      while (true)
26931
      {
26932
        field = iprot.readFieldBegin();
26933
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26934
          break;
26935
        }
26936
        switch (field.id) {
26937
          case 1: // WAREHOUSE_ID
26938
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26939
              this.warehouseId = iprot.readI64();
26940
              setWarehouseIdIsSet(true);
26941
            } else { 
26942
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26943
            }
26944
            break;
26945
          default:
26946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26947
        }
26948
        iprot.readFieldEnd();
26949
      }
26950
      iprot.readStructEnd();
26951
      validate();
26952
    }
26953
 
26954
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26955
      validate();
26956
 
26957
      oprot.writeStructBegin(STRUCT_DESC);
26958
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26959
      oprot.writeI64(this.warehouseId);
26960
      oprot.writeFieldEnd();
26961
      oprot.writeFieldStop();
26962
      oprot.writeStructEnd();
26963
    }
26964
 
26965
    @Override
26966
    public String toString() {
26967
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
26968
      boolean first = true;
26969
 
26970
      sb.append("warehouseId:");
26971
      sb.append(this.warehouseId);
26972
      first = false;
26973
      sb.append(")");
26974
      return sb.toString();
26975
    }
26976
 
26977
    public void validate() throws org.apache.thrift.TException {
26978
      // check for required fields
26979
    }
26980
 
26981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26982
      try {
26983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26984
      } catch (org.apache.thrift.TException te) {
26985
        throw new java.io.IOException(te);
26986
      }
26987
    }
26988
 
26989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26990
      try {
26991
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26992
        __isset_bit_vector = new BitSet(1);
26993
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26994
      } catch (org.apache.thrift.TException te) {
26995
        throw new java.io.IOException(te);
26996
      }
26997
    }
26998
 
26999
  }
27000
 
27001
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
27002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
27003
 
27004
    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);
27005
 
27006
    private Map<Long,ItemInventory> success; // required
27007
 
27008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27010
      SUCCESS((short)0, "success");
27011
 
27012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27013
 
27014
      static {
27015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27016
          byName.put(field.getFieldName(), field);
27017
        }
27018
      }
27019
 
27020
      /**
27021
       * Find the _Fields constant that matches fieldId, or null if its not found.
27022
       */
27023
      public static _Fields findByThriftId(int fieldId) {
27024
        switch(fieldId) {
27025
          case 0: // SUCCESS
27026
            return SUCCESS;
27027
          default:
27028
            return null;
27029
        }
27030
      }
27031
 
27032
      /**
27033
       * Find the _Fields constant that matches fieldId, throwing an exception
27034
       * if it is not found.
27035
       */
27036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27037
        _Fields fields = findByThriftId(fieldId);
27038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27039
        return fields;
27040
      }
27041
 
27042
      /**
27043
       * Find the _Fields constant that matches name, or null if its not found.
27044
       */
27045
      public static _Fields findByName(String name) {
27046
        return byName.get(name);
27047
      }
27048
 
27049
      private final short _thriftId;
27050
      private final String _fieldName;
27051
 
27052
      _Fields(short thriftId, String fieldName) {
27053
        _thriftId = thriftId;
27054
        _fieldName = fieldName;
27055
      }
27056
 
27057
      public short getThriftFieldId() {
27058
        return _thriftId;
27059
      }
27060
 
27061
      public String getFieldName() {
27062
        return _fieldName;
27063
      }
27064
    }
27065
 
27066
    // isset id assignments
27067
 
27068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27069
    static {
27070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27071
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27072
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
27073
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
27074
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
27075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
27077
    }
27078
 
27079
    public getInventorySnapshot_result() {
27080
    }
27081
 
27082
    public getInventorySnapshot_result(
27083
      Map<Long,ItemInventory> success)
27084
    {
27085
      this();
27086
      this.success = success;
27087
    }
27088
 
27089
    /**
27090
     * Performs a deep copy on <i>other</i>.
27091
     */
27092
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
27093
      if (other.isSetSuccess()) {
27094
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
27095
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
27096
 
27097
          Long other_element_key = other_element.getKey();
27098
          ItemInventory other_element_value = other_element.getValue();
27099
 
27100
          Long __this__success_copy_key = other_element_key;
27101
 
27102
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
27103
 
27104
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
27105
        }
27106
        this.success = __this__success;
27107
      }
27108
    }
27109
 
27110
    public getInventorySnapshot_result deepCopy() {
27111
      return new getInventorySnapshot_result(this);
27112
    }
27113
 
27114
    @Override
27115
    public void clear() {
27116
      this.success = null;
27117
    }
27118
 
27119
    public int getSuccessSize() {
27120
      return (this.success == null) ? 0 : this.success.size();
27121
    }
27122
 
27123
    public void putToSuccess(long key, ItemInventory val) {
27124
      if (this.success == null) {
27125
        this.success = new HashMap<Long,ItemInventory>();
27126
      }
27127
      this.success.put(key, val);
27128
    }
27129
 
27130
    public Map<Long,ItemInventory> getSuccess() {
27131
      return this.success;
27132
    }
27133
 
27134
    public void setSuccess(Map<Long,ItemInventory> success) {
27135
      this.success = success;
27136
    }
27137
 
27138
    public void unsetSuccess() {
27139
      this.success = null;
27140
    }
27141
 
27142
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27143
    public boolean isSetSuccess() {
27144
      return this.success != null;
27145
    }
27146
 
27147
    public void setSuccessIsSet(boolean value) {
27148
      if (!value) {
27149
        this.success = null;
27150
      }
27151
    }
27152
 
27153
    public void setFieldValue(_Fields field, Object value) {
27154
      switch (field) {
27155
      case SUCCESS:
27156
        if (value == null) {
27157
          unsetSuccess();
27158
        } else {
27159
          setSuccess((Map<Long,ItemInventory>)value);
27160
        }
27161
        break;
27162
 
27163
      }
27164
    }
27165
 
27166
    public Object getFieldValue(_Fields field) {
27167
      switch (field) {
27168
      case SUCCESS:
27169
        return getSuccess();
27170
 
27171
      }
27172
      throw new IllegalStateException();
27173
    }
27174
 
27175
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27176
    public boolean isSet(_Fields field) {
27177
      if (field == null) {
27178
        throw new IllegalArgumentException();
27179
      }
27180
 
27181
      switch (field) {
27182
      case SUCCESS:
27183
        return isSetSuccess();
27184
      }
27185
      throw new IllegalStateException();
27186
    }
27187
 
27188
    @Override
27189
    public boolean equals(Object that) {
27190
      if (that == null)
27191
        return false;
27192
      if (that instanceof getInventorySnapshot_result)
27193
        return this.equals((getInventorySnapshot_result)that);
27194
      return false;
27195
    }
27196
 
27197
    public boolean equals(getInventorySnapshot_result that) {
27198
      if (that == null)
27199
        return false;
27200
 
27201
      boolean this_present_success = true && this.isSetSuccess();
27202
      boolean that_present_success = true && that.isSetSuccess();
27203
      if (this_present_success || that_present_success) {
27204
        if (!(this_present_success && that_present_success))
27205
          return false;
27206
        if (!this.success.equals(that.success))
27207
          return false;
27208
      }
27209
 
27210
      return true;
27211
    }
27212
 
27213
    @Override
27214
    public int hashCode() {
27215
      return 0;
27216
    }
27217
 
27218
    public int compareTo(getInventorySnapshot_result other) {
27219
      if (!getClass().equals(other.getClass())) {
27220
        return getClass().getName().compareTo(other.getClass().getName());
27221
      }
27222
 
27223
      int lastComparison = 0;
27224
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
27225
 
27226
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27227
      if (lastComparison != 0) {
27228
        return lastComparison;
27229
      }
27230
      if (isSetSuccess()) {
27231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27232
        if (lastComparison != 0) {
27233
          return lastComparison;
27234
        }
27235
      }
27236
      return 0;
27237
    }
27238
 
27239
    public _Fields fieldForId(int fieldId) {
27240
      return _Fields.findByThriftId(fieldId);
27241
    }
27242
 
27243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27244
      org.apache.thrift.protocol.TField field;
27245
      iprot.readStructBegin();
27246
      while (true)
27247
      {
27248
        field = iprot.readFieldBegin();
27249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27250
          break;
27251
        }
27252
        switch (field.id) {
27253
          case 0: // SUCCESS
27254
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
27255
              {
27256
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
27257
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
27258
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
27259
                {
27260
                  long _key76; // required
27261
                  ItemInventory _val77; // required
27262
                  _key76 = iprot.readI64();
27263
                  _val77 = new ItemInventory();
27264
                  _val77.read(iprot);
27265
                  this.success.put(_key76, _val77);
27266
                }
27267
                iprot.readMapEnd();
27268
              }
27269
            } else { 
27270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27271
            }
27272
            break;
27273
          default:
27274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27275
        }
27276
        iprot.readFieldEnd();
27277
      }
27278
      iprot.readStructEnd();
27279
      validate();
27280
    }
27281
 
27282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27283
      oprot.writeStructBegin(STRUCT_DESC);
27284
 
27285
      if (this.isSetSuccess()) {
27286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27287
        {
27288
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27289
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
27290
          {
27291
            oprot.writeI64(_iter78.getKey());
27292
            _iter78.getValue().write(oprot);
27293
          }
27294
          oprot.writeMapEnd();
27295
        }
27296
        oprot.writeFieldEnd();
27297
      }
27298
      oprot.writeFieldStop();
27299
      oprot.writeStructEnd();
27300
    }
27301
 
27302
    @Override
27303
    public String toString() {
27304
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
27305
      boolean first = true;
27306
 
27307
      sb.append("success:");
27308
      if (this.success == null) {
27309
        sb.append("null");
27310
      } else {
27311
        sb.append(this.success);
27312
      }
27313
      first = false;
27314
      sb.append(")");
27315
      return sb.toString();
27316
    }
27317
 
27318
    public void validate() throws org.apache.thrift.TException {
27319
      // check for required fields
27320
    }
27321
 
27322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27323
      try {
27324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27325
      } catch (org.apache.thrift.TException te) {
27326
        throw new java.io.IOException(te);
27327
      }
27328
    }
27329
 
27330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27331
      try {
27332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27333
      } catch (org.apache.thrift.TException te) {
27334
        throw new java.io.IOException(te);
27335
      }
27336
    }
27337
 
27338
  }
27339
 
27340
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
27341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
27342
 
27343
 
27344
 
27345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27347
;
27348
 
27349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27350
 
27351
      static {
27352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27353
          byName.put(field.getFieldName(), field);
27354
        }
27355
      }
27356
 
27357
      /**
27358
       * Find the _Fields constant that matches fieldId, or null if its not found.
27359
       */
27360
      public static _Fields findByThriftId(int fieldId) {
27361
        switch(fieldId) {
27362
          default:
27363
            return null;
27364
        }
27365
      }
27366
 
27367
      /**
27368
       * Find the _Fields constant that matches fieldId, throwing an exception
27369
       * if it is not found.
27370
       */
27371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27372
        _Fields fields = findByThriftId(fieldId);
27373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27374
        return fields;
27375
      }
27376
 
27377
      /**
27378
       * Find the _Fields constant that matches name, or null if its not found.
27379
       */
27380
      public static _Fields findByName(String name) {
27381
        return byName.get(name);
27382
      }
27383
 
27384
      private final short _thriftId;
27385
      private final String _fieldName;
27386
 
27387
      _Fields(short thriftId, String fieldName) {
27388
        _thriftId = thriftId;
27389
        _fieldName = fieldName;
27390
      }
27391
 
27392
      public short getThriftFieldId() {
27393
        return _thriftId;
27394
      }
27395
 
27396
      public String getFieldName() {
27397
        return _fieldName;
27398
      }
27399
    }
27400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27401
    static {
27402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
27405
    }
27406
 
27407
    public clearItemAvailabilityCache_args() {
27408
    }
27409
 
27410
    /**
27411
     * Performs a deep copy on <i>other</i>.
27412
     */
27413
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
27414
    }
27415
 
27416
    public clearItemAvailabilityCache_args deepCopy() {
27417
      return new clearItemAvailabilityCache_args(this);
27418
    }
27419
 
27420
    @Override
27421
    public void clear() {
27422
    }
27423
 
27424
    public void setFieldValue(_Fields field, Object value) {
27425
      switch (field) {
27426
      }
27427
    }
27428
 
27429
    public Object getFieldValue(_Fields field) {
27430
      switch (field) {
27431
      }
27432
      throw new IllegalStateException();
27433
    }
27434
 
27435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27436
    public boolean isSet(_Fields field) {
27437
      if (field == null) {
27438
        throw new IllegalArgumentException();
27439
      }
27440
 
27441
      switch (field) {
27442
      }
27443
      throw new IllegalStateException();
27444
    }
27445
 
27446
    @Override
27447
    public boolean equals(Object that) {
27448
      if (that == null)
27449
        return false;
27450
      if (that instanceof clearItemAvailabilityCache_args)
27451
        return this.equals((clearItemAvailabilityCache_args)that);
27452
      return false;
27453
    }
27454
 
27455
    public boolean equals(clearItemAvailabilityCache_args that) {
27456
      if (that == null)
27457
        return false;
27458
 
27459
      return true;
27460
    }
27461
 
27462
    @Override
27463
    public int hashCode() {
27464
      return 0;
27465
    }
27466
 
27467
    public int compareTo(clearItemAvailabilityCache_args other) {
27468
      if (!getClass().equals(other.getClass())) {
27469
        return getClass().getName().compareTo(other.getClass().getName());
27470
      }
27471
 
27472
      int lastComparison = 0;
27473
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
27474
 
27475
      return 0;
27476
    }
27477
 
27478
    public _Fields fieldForId(int fieldId) {
27479
      return _Fields.findByThriftId(fieldId);
27480
    }
27481
 
27482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27483
      org.apache.thrift.protocol.TField field;
27484
      iprot.readStructBegin();
27485
      while (true)
27486
      {
27487
        field = iprot.readFieldBegin();
27488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27489
          break;
27490
        }
27491
        switch (field.id) {
27492
          default:
27493
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27494
        }
27495
        iprot.readFieldEnd();
27496
      }
27497
      iprot.readStructEnd();
27498
      validate();
27499
    }
27500
 
27501
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27502
      validate();
27503
 
27504
      oprot.writeStructBegin(STRUCT_DESC);
27505
      oprot.writeFieldStop();
27506
      oprot.writeStructEnd();
27507
    }
27508
 
27509
    @Override
27510
    public String toString() {
27511
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
27512
      boolean first = true;
27513
 
27514
      sb.append(")");
27515
      return sb.toString();
27516
    }
27517
 
27518
    public void validate() throws org.apache.thrift.TException {
27519
      // check for required fields
27520
    }
27521
 
27522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27523
      try {
27524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27525
      } catch (org.apache.thrift.TException te) {
27526
        throw new java.io.IOException(te);
27527
      }
27528
    }
27529
 
27530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27531
      try {
27532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27533
      } catch (org.apache.thrift.TException te) {
27534
        throw new java.io.IOException(te);
27535
      }
27536
    }
27537
 
27538
  }
27539
 
27540
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
27541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
27542
 
27543
 
27544
 
27545
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27546
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27547
;
27548
 
27549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27550
 
27551
      static {
27552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27553
          byName.put(field.getFieldName(), field);
27554
        }
27555
      }
27556
 
27557
      /**
27558
       * Find the _Fields constant that matches fieldId, or null if its not found.
27559
       */
27560
      public static _Fields findByThriftId(int fieldId) {
27561
        switch(fieldId) {
27562
          default:
27563
            return null;
27564
        }
27565
      }
27566
 
27567
      /**
27568
       * Find the _Fields constant that matches fieldId, throwing an exception
27569
       * if it is not found.
27570
       */
27571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27572
        _Fields fields = findByThriftId(fieldId);
27573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27574
        return fields;
27575
      }
27576
 
27577
      /**
27578
       * Find the _Fields constant that matches name, or null if its not found.
27579
       */
27580
      public static _Fields findByName(String name) {
27581
        return byName.get(name);
27582
      }
27583
 
27584
      private final short _thriftId;
27585
      private final String _fieldName;
27586
 
27587
      _Fields(short thriftId, String fieldName) {
27588
        _thriftId = thriftId;
27589
        _fieldName = fieldName;
27590
      }
27591
 
27592
      public short getThriftFieldId() {
27593
        return _thriftId;
27594
      }
27595
 
27596
      public String getFieldName() {
27597
        return _fieldName;
27598
      }
27599
    }
27600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27601
    static {
27602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
27605
    }
27606
 
27607
    public clearItemAvailabilityCache_result() {
27608
    }
27609
 
27610
    /**
27611
     * Performs a deep copy on <i>other</i>.
27612
     */
27613
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
27614
    }
27615
 
27616
    public clearItemAvailabilityCache_result deepCopy() {
27617
      return new clearItemAvailabilityCache_result(this);
27618
    }
27619
 
27620
    @Override
27621
    public void clear() {
27622
    }
27623
 
27624
    public void setFieldValue(_Fields field, Object value) {
27625
      switch (field) {
27626
      }
27627
    }
27628
 
27629
    public Object getFieldValue(_Fields field) {
27630
      switch (field) {
27631
      }
27632
      throw new IllegalStateException();
27633
    }
27634
 
27635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27636
    public boolean isSet(_Fields field) {
27637
      if (field == null) {
27638
        throw new IllegalArgumentException();
27639
      }
27640
 
27641
      switch (field) {
27642
      }
27643
      throw new IllegalStateException();
27644
    }
27645
 
27646
    @Override
27647
    public boolean equals(Object that) {
27648
      if (that == null)
27649
        return false;
27650
      if (that instanceof clearItemAvailabilityCache_result)
27651
        return this.equals((clearItemAvailabilityCache_result)that);
27652
      return false;
27653
    }
27654
 
27655
    public boolean equals(clearItemAvailabilityCache_result that) {
27656
      if (that == null)
27657
        return false;
27658
 
27659
      return true;
27660
    }
27661
 
27662
    @Override
27663
    public int hashCode() {
27664
      return 0;
27665
    }
27666
 
27667
    public int compareTo(clearItemAvailabilityCache_result other) {
27668
      if (!getClass().equals(other.getClass())) {
27669
        return getClass().getName().compareTo(other.getClass().getName());
27670
      }
27671
 
27672
      int lastComparison = 0;
27673
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
27674
 
27675
      return 0;
27676
    }
27677
 
27678
    public _Fields fieldForId(int fieldId) {
27679
      return _Fields.findByThriftId(fieldId);
27680
    }
27681
 
27682
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27683
      org.apache.thrift.protocol.TField field;
27684
      iprot.readStructBegin();
27685
      while (true)
27686
      {
27687
        field = iprot.readFieldBegin();
27688
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27689
          break;
27690
        }
27691
        switch (field.id) {
27692
          default:
27693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27694
        }
27695
        iprot.readFieldEnd();
27696
      }
27697
      iprot.readStructEnd();
27698
      validate();
27699
    }
27700
 
27701
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27702
      oprot.writeStructBegin(STRUCT_DESC);
27703
 
27704
      oprot.writeFieldStop();
27705
      oprot.writeStructEnd();
27706
    }
27707
 
27708
    @Override
27709
    public String toString() {
27710
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
27711
      boolean first = true;
27712
 
27713
      sb.append(")");
27714
      return sb.toString();
27715
    }
27716
 
27717
    public void validate() throws org.apache.thrift.TException {
27718
      // check for required fields
27719
    }
27720
 
27721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27722
      try {
27723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27724
      } catch (org.apache.thrift.TException te) {
27725
        throw new java.io.IOException(te);
27726
      }
27727
    }
27728
 
27729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27730
      try {
27731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27732
      } catch (org.apache.thrift.TException te) {
27733
        throw new java.io.IOException(te);
27734
      }
27735
    }
27736
 
27737
  }
27738
 
27739
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
27740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
27741
 
27742
    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);
27743
    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);
27744
 
27745
    private long warehouseId; // required
27746
    private String vendorString; // required
27747
 
27748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27750
      WAREHOUSE_ID((short)1, "warehouseId"),
27751
      VENDOR_STRING((short)2, "vendorString");
27752
 
27753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27754
 
27755
      static {
27756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27757
          byName.put(field.getFieldName(), field);
27758
        }
27759
      }
27760
 
27761
      /**
27762
       * Find the _Fields constant that matches fieldId, or null if its not found.
27763
       */
27764
      public static _Fields findByThriftId(int fieldId) {
27765
        switch(fieldId) {
27766
          case 1: // WAREHOUSE_ID
27767
            return WAREHOUSE_ID;
27768
          case 2: // VENDOR_STRING
27769
            return VENDOR_STRING;
27770
          default:
27771
            return null;
27772
        }
27773
      }
27774
 
27775
      /**
27776
       * Find the _Fields constant that matches fieldId, throwing an exception
27777
       * if it is not found.
27778
       */
27779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27780
        _Fields fields = findByThriftId(fieldId);
27781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27782
        return fields;
27783
      }
27784
 
27785
      /**
27786
       * Find the _Fields constant that matches name, or null if its not found.
27787
       */
27788
      public static _Fields findByName(String name) {
27789
        return byName.get(name);
27790
      }
27791
 
27792
      private final short _thriftId;
27793
      private final String _fieldName;
27794
 
27795
      _Fields(short thriftId, String fieldName) {
27796
        _thriftId = thriftId;
27797
        _fieldName = fieldName;
27798
      }
27799
 
27800
      public short getThriftFieldId() {
27801
        return _thriftId;
27802
      }
27803
 
27804
      public String getFieldName() {
27805
        return _fieldName;
27806
      }
27807
    }
27808
 
27809
    // isset id assignments
27810
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27811
    private BitSet __isset_bit_vector = new BitSet(1);
27812
 
27813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27814
    static {
27815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27816
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27818
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
27822
    }
27823
 
27824
    public updateVendorString_args() {
27825
    }
27826
 
27827
    public updateVendorString_args(
27828
      long warehouseId,
27829
      String vendorString)
27830
    {
27831
      this();
27832
      this.warehouseId = warehouseId;
27833
      setWarehouseIdIsSet(true);
27834
      this.vendorString = vendorString;
27835
    }
27836
 
27837
    /**
27838
     * Performs a deep copy on <i>other</i>.
27839
     */
27840
    public updateVendorString_args(updateVendorString_args other) {
27841
      __isset_bit_vector.clear();
27842
      __isset_bit_vector.or(other.__isset_bit_vector);
27843
      this.warehouseId = other.warehouseId;
27844
      if (other.isSetVendorString()) {
27845
        this.vendorString = other.vendorString;
27846
      }
27847
    }
27848
 
27849
    public updateVendorString_args deepCopy() {
27850
      return new updateVendorString_args(this);
27851
    }
27852
 
27853
    @Override
27854
    public void clear() {
27855
      setWarehouseIdIsSet(false);
27856
      this.warehouseId = 0;
27857
      this.vendorString = null;
27858
    }
27859
 
27860
    public long getWarehouseId() {
27861
      return this.warehouseId;
27862
    }
27863
 
27864
    public void setWarehouseId(long warehouseId) {
27865
      this.warehouseId = warehouseId;
27866
      setWarehouseIdIsSet(true);
27867
    }
27868
 
27869
    public void unsetWarehouseId() {
27870
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27871
    }
27872
 
27873
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27874
    public boolean isSetWarehouseId() {
27875
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27876
    }
27877
 
27878
    public void setWarehouseIdIsSet(boolean value) {
27879
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27880
    }
27881
 
27882
    public String getVendorString() {
27883
      return this.vendorString;
27884
    }
27885
 
27886
    public void setVendorString(String vendorString) {
27887
      this.vendorString = vendorString;
27888
    }
27889
 
27890
    public void unsetVendorString() {
27891
      this.vendorString = null;
27892
    }
27893
 
27894
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
27895
    public boolean isSetVendorString() {
27896
      return this.vendorString != null;
27897
    }
27898
 
27899
    public void setVendorStringIsSet(boolean value) {
27900
      if (!value) {
27901
        this.vendorString = null;
27902
      }
27903
    }
27904
 
27905
    public void setFieldValue(_Fields field, Object value) {
27906
      switch (field) {
27907
      case WAREHOUSE_ID:
27908
        if (value == null) {
27909
          unsetWarehouseId();
27910
        } else {
27911
          setWarehouseId((Long)value);
27912
        }
27913
        break;
27914
 
27915
      case VENDOR_STRING:
27916
        if (value == null) {
27917
          unsetVendorString();
27918
        } else {
27919
          setVendorString((String)value);
27920
        }
27921
        break;
27922
 
27923
      }
27924
    }
27925
 
27926
    public Object getFieldValue(_Fields field) {
27927
      switch (field) {
27928
      case WAREHOUSE_ID:
27929
        return Long.valueOf(getWarehouseId());
27930
 
27931
      case VENDOR_STRING:
27932
        return getVendorString();
27933
 
27934
      }
27935
      throw new IllegalStateException();
27936
    }
27937
 
27938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27939
    public boolean isSet(_Fields field) {
27940
      if (field == null) {
27941
        throw new IllegalArgumentException();
27942
      }
27943
 
27944
      switch (field) {
27945
      case WAREHOUSE_ID:
27946
        return isSetWarehouseId();
27947
      case VENDOR_STRING:
27948
        return isSetVendorString();
27949
      }
27950
      throw new IllegalStateException();
27951
    }
27952
 
27953
    @Override
27954
    public boolean equals(Object that) {
27955
      if (that == null)
27956
        return false;
27957
      if (that instanceof updateVendorString_args)
27958
        return this.equals((updateVendorString_args)that);
27959
      return false;
27960
    }
27961
 
27962
    public boolean equals(updateVendorString_args that) {
27963
      if (that == null)
27964
        return false;
27965
 
27966
      boolean this_present_warehouseId = true;
27967
      boolean that_present_warehouseId = true;
27968
      if (this_present_warehouseId || that_present_warehouseId) {
27969
        if (!(this_present_warehouseId && that_present_warehouseId))
27970
          return false;
27971
        if (this.warehouseId != that.warehouseId)
27972
          return false;
27973
      }
27974
 
27975
      boolean this_present_vendorString = true && this.isSetVendorString();
27976
      boolean that_present_vendorString = true && that.isSetVendorString();
27977
      if (this_present_vendorString || that_present_vendorString) {
27978
        if (!(this_present_vendorString && that_present_vendorString))
27979
          return false;
27980
        if (!this.vendorString.equals(that.vendorString))
27981
          return false;
27982
      }
27983
 
27984
      return true;
27985
    }
27986
 
27987
    @Override
27988
    public int hashCode() {
27989
      return 0;
27990
    }
27991
 
27992
    public int compareTo(updateVendorString_args other) {
27993
      if (!getClass().equals(other.getClass())) {
27994
        return getClass().getName().compareTo(other.getClass().getName());
27995
      }
27996
 
27997
      int lastComparison = 0;
27998
      updateVendorString_args typedOther = (updateVendorString_args)other;
27999
 
28000
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
28001
      if (lastComparison != 0) {
28002
        return lastComparison;
28003
      }
28004
      if (isSetWarehouseId()) {
28005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
28006
        if (lastComparison != 0) {
28007
          return lastComparison;
28008
        }
28009
      }
28010
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
28011
      if (lastComparison != 0) {
28012
        return lastComparison;
28013
      }
28014
      if (isSetVendorString()) {
28015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
28016
        if (lastComparison != 0) {
28017
          return lastComparison;
28018
        }
28019
      }
28020
      return 0;
28021
    }
28022
 
28023
    public _Fields fieldForId(int fieldId) {
28024
      return _Fields.findByThriftId(fieldId);
28025
    }
28026
 
28027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28028
      org.apache.thrift.protocol.TField field;
28029
      iprot.readStructBegin();
28030
      while (true)
28031
      {
28032
        field = iprot.readFieldBegin();
28033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28034
          break;
28035
        }
28036
        switch (field.id) {
28037
          case 1: // WAREHOUSE_ID
28038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28039
              this.warehouseId = iprot.readI64();
28040
              setWarehouseIdIsSet(true);
28041
            } else { 
28042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28043
            }
28044
            break;
28045
          case 2: // VENDOR_STRING
28046
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28047
              this.vendorString = iprot.readString();
28048
            } else { 
28049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28050
            }
28051
            break;
28052
          default:
28053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28054
        }
28055
        iprot.readFieldEnd();
28056
      }
28057
      iprot.readStructEnd();
28058
      validate();
28059
    }
28060
 
28061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28062
      validate();
28063
 
28064
      oprot.writeStructBegin(STRUCT_DESC);
28065
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
28066
      oprot.writeI64(this.warehouseId);
28067
      oprot.writeFieldEnd();
28068
      if (this.vendorString != null) {
28069
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
28070
        oprot.writeString(this.vendorString);
28071
        oprot.writeFieldEnd();
28072
      }
28073
      oprot.writeFieldStop();
28074
      oprot.writeStructEnd();
28075
    }
28076
 
28077
    @Override
28078
    public String toString() {
28079
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
28080
      boolean first = true;
28081
 
28082
      sb.append("warehouseId:");
28083
      sb.append(this.warehouseId);
28084
      first = false;
28085
      if (!first) sb.append(", ");
28086
      sb.append("vendorString:");
28087
      if (this.vendorString == null) {
28088
        sb.append("null");
28089
      } else {
28090
        sb.append(this.vendorString);
28091
      }
28092
      first = false;
28093
      sb.append(")");
28094
      return sb.toString();
28095
    }
28096
 
28097
    public void validate() throws org.apache.thrift.TException {
28098
      // check for required fields
28099
    }
28100
 
28101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28102
      try {
28103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28104
      } catch (org.apache.thrift.TException te) {
28105
        throw new java.io.IOException(te);
28106
      }
28107
    }
28108
 
28109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28110
      try {
5967 rajveer 28111
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28112
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 28113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28114
      } catch (org.apache.thrift.TException te) {
28115
        throw new java.io.IOException(te);
28116
      }
28117
    }
28118
 
28119
  }
28120
 
28121
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
28122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
28123
 
28124
 
28125
 
28126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28128
;
28129
 
28130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28131
 
28132
      static {
28133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28134
          byName.put(field.getFieldName(), field);
28135
        }
28136
      }
28137
 
28138
      /**
28139
       * Find the _Fields constant that matches fieldId, or null if its not found.
28140
       */
28141
      public static _Fields findByThriftId(int fieldId) {
28142
        switch(fieldId) {
28143
          default:
28144
            return null;
28145
        }
28146
      }
28147
 
28148
      /**
28149
       * Find the _Fields constant that matches fieldId, throwing an exception
28150
       * if it is not found.
28151
       */
28152
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28153
        _Fields fields = findByThriftId(fieldId);
28154
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28155
        return fields;
28156
      }
28157
 
28158
      /**
28159
       * Find the _Fields constant that matches name, or null if its not found.
28160
       */
28161
      public static _Fields findByName(String name) {
28162
        return byName.get(name);
28163
      }
28164
 
28165
      private final short _thriftId;
28166
      private final String _fieldName;
28167
 
28168
      _Fields(short thriftId, String fieldName) {
28169
        _thriftId = thriftId;
28170
        _fieldName = fieldName;
28171
      }
28172
 
28173
      public short getThriftFieldId() {
28174
        return _thriftId;
28175
      }
28176
 
28177
      public String getFieldName() {
28178
        return _fieldName;
28179
      }
28180
    }
28181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28182
    static {
28183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
28186
    }
28187
 
28188
    public updateVendorString_result() {
28189
    }
28190
 
28191
    /**
28192
     * Performs a deep copy on <i>other</i>.
28193
     */
28194
    public updateVendorString_result(updateVendorString_result other) {
28195
    }
28196
 
28197
    public updateVendorString_result deepCopy() {
28198
      return new updateVendorString_result(this);
28199
    }
28200
 
28201
    @Override
28202
    public void clear() {
28203
    }
28204
 
28205
    public void setFieldValue(_Fields field, Object value) {
28206
      switch (field) {
28207
      }
28208
    }
28209
 
28210
    public Object getFieldValue(_Fields field) {
28211
      switch (field) {
28212
      }
28213
      throw new IllegalStateException();
28214
    }
28215
 
28216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28217
    public boolean isSet(_Fields field) {
28218
      if (field == null) {
28219
        throw new IllegalArgumentException();
28220
      }
28221
 
28222
      switch (field) {
28223
      }
28224
      throw new IllegalStateException();
28225
    }
28226
 
28227
    @Override
28228
    public boolean equals(Object that) {
28229
      if (that == null)
28230
        return false;
28231
      if (that instanceof updateVendorString_result)
28232
        return this.equals((updateVendorString_result)that);
28233
      return false;
28234
    }
28235
 
28236
    public boolean equals(updateVendorString_result that) {
28237
      if (that == null)
28238
        return false;
28239
 
28240
      return true;
28241
    }
28242
 
28243
    @Override
28244
    public int hashCode() {
28245
      return 0;
28246
    }
28247
 
28248
    public int compareTo(updateVendorString_result other) {
28249
      if (!getClass().equals(other.getClass())) {
28250
        return getClass().getName().compareTo(other.getClass().getName());
28251
      }
28252
 
28253
      int lastComparison = 0;
28254
      updateVendorString_result typedOther = (updateVendorString_result)other;
28255
 
28256
      return 0;
28257
    }
28258
 
28259
    public _Fields fieldForId(int fieldId) {
28260
      return _Fields.findByThriftId(fieldId);
28261
    }
28262
 
28263
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28264
      org.apache.thrift.protocol.TField field;
28265
      iprot.readStructBegin();
28266
      while (true)
28267
      {
28268
        field = iprot.readFieldBegin();
28269
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28270
          break;
28271
        }
28272
        switch (field.id) {
28273
          default:
28274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28275
        }
28276
        iprot.readFieldEnd();
28277
      }
28278
      iprot.readStructEnd();
28279
      validate();
28280
    }
28281
 
28282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28283
      oprot.writeStructBegin(STRUCT_DESC);
28284
 
28285
      oprot.writeFieldStop();
28286
      oprot.writeStructEnd();
28287
    }
28288
 
28289
    @Override
28290
    public String toString() {
28291
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
28292
      boolean first = true;
28293
 
28294
      sb.append(")");
28295
      return sb.toString();
28296
    }
28297
 
28298
    public void validate() throws org.apache.thrift.TException {
28299
      // check for required fields
28300
    }
28301
 
28302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28303
      try {
28304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28305
      } catch (org.apache.thrift.TException te) {
28306
        throw new java.io.IOException(te);
28307
      }
28308
    }
28309
 
28310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28311
      try {
28312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28313
      } catch (org.apache.thrift.TException te) {
28314
        throw new java.io.IOException(te);
28315
      }
28316
    }
28317
 
28318
  }
28319
 
6096 amit.gupta 28320
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
28321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
28322
 
28323
    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);
28324
 
28325
    private long item_id; // required
28326
 
28327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28329
      ITEM_ID((short)1, "item_id");
28330
 
28331
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28332
 
28333
      static {
28334
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28335
          byName.put(field.getFieldName(), field);
28336
        }
28337
      }
28338
 
28339
      /**
28340
       * Find the _Fields constant that matches fieldId, or null if its not found.
28341
       */
28342
      public static _Fields findByThriftId(int fieldId) {
28343
        switch(fieldId) {
28344
          case 1: // ITEM_ID
28345
            return ITEM_ID;
28346
          default:
28347
            return null;
28348
        }
28349
      }
28350
 
28351
      /**
28352
       * Find the _Fields constant that matches fieldId, throwing an exception
28353
       * if it is not found.
28354
       */
28355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28356
        _Fields fields = findByThriftId(fieldId);
28357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28358
        return fields;
28359
      }
28360
 
28361
      /**
28362
       * Find the _Fields constant that matches name, or null if its not found.
28363
       */
28364
      public static _Fields findByName(String name) {
28365
        return byName.get(name);
28366
      }
28367
 
28368
      private final short _thriftId;
28369
      private final String _fieldName;
28370
 
28371
      _Fields(short thriftId, String fieldName) {
28372
        _thriftId = thriftId;
28373
        _fieldName = fieldName;
28374
      }
28375
 
28376
      public short getThriftFieldId() {
28377
        return _thriftId;
28378
      }
28379
 
28380
      public String getFieldName() {
28381
        return _fieldName;
28382
      }
28383
    }
28384
 
28385
    // isset id assignments
28386
    private static final int __ITEM_ID_ISSET_ID = 0;
28387
    private BitSet __isset_bit_vector = new BitSet(1);
28388
 
28389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28390
    static {
28391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28392
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28394
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28395
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
28396
    }
28397
 
28398
    public clearItemAvailabilityCacheForItem_args() {
28399
    }
28400
 
28401
    public clearItemAvailabilityCacheForItem_args(
28402
      long item_id)
28403
    {
28404
      this();
28405
      this.item_id = item_id;
28406
      setItem_idIsSet(true);
28407
    }
28408
 
28409
    /**
28410
     * Performs a deep copy on <i>other</i>.
28411
     */
28412
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
28413
      __isset_bit_vector.clear();
28414
      __isset_bit_vector.or(other.__isset_bit_vector);
28415
      this.item_id = other.item_id;
28416
    }
28417
 
28418
    public clearItemAvailabilityCacheForItem_args deepCopy() {
28419
      return new clearItemAvailabilityCacheForItem_args(this);
28420
    }
28421
 
28422
    @Override
28423
    public void clear() {
28424
      setItem_idIsSet(false);
28425
      this.item_id = 0;
28426
    }
28427
 
28428
    public long getItem_id() {
28429
      return this.item_id;
28430
    }
28431
 
28432
    public void setItem_id(long item_id) {
28433
      this.item_id = item_id;
28434
      setItem_idIsSet(true);
28435
    }
28436
 
28437
    public void unsetItem_id() {
28438
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
28439
    }
28440
 
28441
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
28442
    public boolean isSetItem_id() {
28443
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
28444
    }
28445
 
28446
    public void setItem_idIsSet(boolean value) {
28447
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
28448
    }
28449
 
28450
    public void setFieldValue(_Fields field, Object value) {
28451
      switch (field) {
28452
      case ITEM_ID:
28453
        if (value == null) {
28454
          unsetItem_id();
28455
        } else {
28456
          setItem_id((Long)value);
28457
        }
28458
        break;
28459
 
28460
      }
28461
    }
28462
 
28463
    public Object getFieldValue(_Fields field) {
28464
      switch (field) {
28465
      case ITEM_ID:
28466
        return Long.valueOf(getItem_id());
28467
 
28468
      }
28469
      throw new IllegalStateException();
28470
    }
28471
 
28472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28473
    public boolean isSet(_Fields field) {
28474
      if (field == null) {
28475
        throw new IllegalArgumentException();
28476
      }
28477
 
28478
      switch (field) {
28479
      case ITEM_ID:
28480
        return isSetItem_id();
28481
      }
28482
      throw new IllegalStateException();
28483
    }
28484
 
28485
    @Override
28486
    public boolean equals(Object that) {
28487
      if (that == null)
28488
        return false;
28489
      if (that instanceof clearItemAvailabilityCacheForItem_args)
28490
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
28491
      return false;
28492
    }
28493
 
28494
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
28495
      if (that == null)
28496
        return false;
28497
 
28498
      boolean this_present_item_id = true;
28499
      boolean that_present_item_id = true;
28500
      if (this_present_item_id || that_present_item_id) {
28501
        if (!(this_present_item_id && that_present_item_id))
28502
          return false;
28503
        if (this.item_id != that.item_id)
28504
          return false;
28505
      }
28506
 
28507
      return true;
28508
    }
28509
 
28510
    @Override
28511
    public int hashCode() {
28512
      return 0;
28513
    }
28514
 
28515
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
28516
      if (!getClass().equals(other.getClass())) {
28517
        return getClass().getName().compareTo(other.getClass().getName());
28518
      }
28519
 
28520
      int lastComparison = 0;
28521
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
28522
 
28523
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
28524
      if (lastComparison != 0) {
28525
        return lastComparison;
28526
      }
28527
      if (isSetItem_id()) {
28528
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
28529
        if (lastComparison != 0) {
28530
          return lastComparison;
28531
        }
28532
      }
28533
      return 0;
28534
    }
28535
 
28536
    public _Fields fieldForId(int fieldId) {
28537
      return _Fields.findByThriftId(fieldId);
28538
    }
28539
 
28540
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28541
      org.apache.thrift.protocol.TField field;
28542
      iprot.readStructBegin();
28543
      while (true)
28544
      {
28545
        field = iprot.readFieldBegin();
28546
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28547
          break;
28548
        }
28549
        switch (field.id) {
28550
          case 1: // ITEM_ID
28551
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28552
              this.item_id = iprot.readI64();
28553
              setItem_idIsSet(true);
28554
            } else { 
28555
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28556
            }
28557
            break;
28558
          default:
28559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28560
        }
28561
        iprot.readFieldEnd();
28562
      }
28563
      iprot.readStructEnd();
28564
      validate();
28565
    }
28566
 
28567
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28568
      validate();
28569
 
28570
      oprot.writeStructBegin(STRUCT_DESC);
28571
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28572
      oprot.writeI64(this.item_id);
28573
      oprot.writeFieldEnd();
28574
      oprot.writeFieldStop();
28575
      oprot.writeStructEnd();
28576
    }
28577
 
28578
    @Override
28579
    public String toString() {
28580
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
28581
      boolean first = true;
28582
 
28583
      sb.append("item_id:");
28584
      sb.append(this.item_id);
28585
      first = false;
28586
      sb.append(")");
28587
      return sb.toString();
28588
    }
28589
 
28590
    public void validate() throws org.apache.thrift.TException {
28591
      // check for required fields
28592
    }
28593
 
28594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28595
      try {
28596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28597
      } catch (org.apache.thrift.TException te) {
28598
        throw new java.io.IOException(te);
28599
      }
28600
    }
28601
 
28602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28603
      try {
28604
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28605
        __isset_bit_vector = new BitSet(1);
28606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28607
      } catch (org.apache.thrift.TException te) {
28608
        throw new java.io.IOException(te);
28609
      }
28610
    }
28611
 
28612
  }
28613
 
28614
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
28615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
28616
 
28617
 
28618
 
28619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28621
;
28622
 
28623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28624
 
28625
      static {
28626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28627
          byName.put(field.getFieldName(), field);
28628
        }
28629
      }
28630
 
28631
      /**
28632
       * Find the _Fields constant that matches fieldId, or null if its not found.
28633
       */
28634
      public static _Fields findByThriftId(int fieldId) {
28635
        switch(fieldId) {
28636
          default:
28637
            return null;
28638
        }
28639
      }
28640
 
28641
      /**
28642
       * Find the _Fields constant that matches fieldId, throwing an exception
28643
       * if it is not found.
28644
       */
28645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28646
        _Fields fields = findByThriftId(fieldId);
28647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28648
        return fields;
28649
      }
28650
 
28651
      /**
28652
       * Find the _Fields constant that matches name, or null if its not found.
28653
       */
28654
      public static _Fields findByName(String name) {
28655
        return byName.get(name);
28656
      }
28657
 
28658
      private final short _thriftId;
28659
      private final String _fieldName;
28660
 
28661
      _Fields(short thriftId, String fieldName) {
28662
        _thriftId = thriftId;
28663
        _fieldName = fieldName;
28664
      }
28665
 
28666
      public short getThriftFieldId() {
28667
        return _thriftId;
28668
      }
28669
 
28670
      public String getFieldName() {
28671
        return _fieldName;
28672
      }
28673
    }
28674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28675
    static {
28676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28677
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28678
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
28679
    }
28680
 
28681
    public clearItemAvailabilityCacheForItem_result() {
28682
    }
28683
 
28684
    /**
28685
     * Performs a deep copy on <i>other</i>.
28686
     */
28687
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
28688
    }
28689
 
28690
    public clearItemAvailabilityCacheForItem_result deepCopy() {
28691
      return new clearItemAvailabilityCacheForItem_result(this);
28692
    }
28693
 
28694
    @Override
28695
    public void clear() {
28696
    }
28697
 
28698
    public void setFieldValue(_Fields field, Object value) {
28699
      switch (field) {
28700
      }
28701
    }
28702
 
28703
    public Object getFieldValue(_Fields field) {
28704
      switch (field) {
28705
      }
28706
      throw new IllegalStateException();
28707
    }
28708
 
28709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28710
    public boolean isSet(_Fields field) {
28711
      if (field == null) {
28712
        throw new IllegalArgumentException();
28713
      }
28714
 
28715
      switch (field) {
28716
      }
28717
      throw new IllegalStateException();
28718
    }
28719
 
28720
    @Override
28721
    public boolean equals(Object that) {
28722
      if (that == null)
28723
        return false;
28724
      if (that instanceof clearItemAvailabilityCacheForItem_result)
28725
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
28726
      return false;
28727
    }
28728
 
28729
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
28730
      if (that == null)
28731
        return false;
28732
 
28733
      return true;
28734
    }
28735
 
28736
    @Override
28737
    public int hashCode() {
28738
      return 0;
28739
    }
28740
 
28741
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
28742
      if (!getClass().equals(other.getClass())) {
28743
        return getClass().getName().compareTo(other.getClass().getName());
28744
      }
28745
 
28746
      int lastComparison = 0;
28747
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
28748
 
28749
      return 0;
28750
    }
28751
 
28752
    public _Fields fieldForId(int fieldId) {
28753
      return _Fields.findByThriftId(fieldId);
28754
    }
28755
 
28756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28757
      org.apache.thrift.protocol.TField field;
28758
      iprot.readStructBegin();
28759
      while (true)
28760
      {
28761
        field = iprot.readFieldBegin();
28762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28763
          break;
28764
        }
28765
        switch (field.id) {
28766
          default:
28767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28768
        }
28769
        iprot.readFieldEnd();
28770
      }
28771
      iprot.readStructEnd();
28772
      validate();
28773
    }
28774
 
28775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28776
      oprot.writeStructBegin(STRUCT_DESC);
28777
 
28778
      oprot.writeFieldStop();
28779
      oprot.writeStructEnd();
28780
    }
28781
 
28782
    @Override
28783
    public String toString() {
28784
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
28785
      boolean first = true;
28786
 
28787
      sb.append(")");
28788
      return sb.toString();
28789
    }
28790
 
28791
    public void validate() throws org.apache.thrift.TException {
28792
      // check for required fields
28793
    }
28794
 
28795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28796
      try {
28797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28798
      } catch (org.apache.thrift.TException te) {
28799
        throw new java.io.IOException(te);
28800
      }
28801
    }
28802
 
28803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28804
      try {
28805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28806
      } catch (org.apache.thrift.TException te) {
28807
        throw new java.io.IOException(te);
28808
      }
28809
    }
28810
 
28811
  }
28812
 
6467 amar.kumar 28813
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
28814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
28815
 
28816
    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);
28817
 
28818
    private long vendorId; // required
28819
 
28820
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28821
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28822
      VENDOR_ID((short)1, "vendorId");
28823
 
28824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28825
 
28826
      static {
28827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28828
          byName.put(field.getFieldName(), field);
28829
        }
28830
      }
28831
 
28832
      /**
28833
       * Find the _Fields constant that matches fieldId, or null if its not found.
28834
       */
28835
      public static _Fields findByThriftId(int fieldId) {
28836
        switch(fieldId) {
28837
          case 1: // VENDOR_ID
28838
            return VENDOR_ID;
28839
          default:
28840
            return null;
28841
        }
28842
      }
28843
 
28844
      /**
28845
       * Find the _Fields constant that matches fieldId, throwing an exception
28846
       * if it is not found.
28847
       */
28848
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28849
        _Fields fields = findByThriftId(fieldId);
28850
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28851
        return fields;
28852
      }
28853
 
28854
      /**
28855
       * Find the _Fields constant that matches name, or null if its not found.
28856
       */
28857
      public static _Fields findByName(String name) {
28858
        return byName.get(name);
28859
      }
28860
 
28861
      private final short _thriftId;
28862
      private final String _fieldName;
28863
 
28864
      _Fields(short thriftId, String fieldName) {
28865
        _thriftId = thriftId;
28866
        _fieldName = fieldName;
28867
      }
28868
 
28869
      public short getThriftFieldId() {
28870
        return _thriftId;
28871
      }
28872
 
28873
      public String getFieldName() {
28874
        return _fieldName;
28875
      }
28876
    }
28877
 
28878
    // isset id assignments
28879
    private static final int __VENDORID_ISSET_ID = 0;
28880
    private BitSet __isset_bit_vector = new BitSet(1);
28881
 
28882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28883
    static {
28884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28885
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28886
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28887
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28888
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
28889
    }
28890
 
28891
    public getOurWarehouseIdForVendor_args() {
28892
    }
28893
 
28894
    public getOurWarehouseIdForVendor_args(
28895
      long vendorId)
28896
    {
28897
      this();
28898
      this.vendorId = vendorId;
28899
      setVendorIdIsSet(true);
28900
    }
28901
 
28902
    /**
28903
     * Performs a deep copy on <i>other</i>.
28904
     */
28905
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
28906
      __isset_bit_vector.clear();
28907
      __isset_bit_vector.or(other.__isset_bit_vector);
28908
      this.vendorId = other.vendorId;
28909
    }
28910
 
28911
    public getOurWarehouseIdForVendor_args deepCopy() {
28912
      return new getOurWarehouseIdForVendor_args(this);
28913
    }
28914
 
28915
    @Override
28916
    public void clear() {
28917
      setVendorIdIsSet(false);
28918
      this.vendorId = 0;
28919
    }
28920
 
28921
    public long getVendorId() {
28922
      return this.vendorId;
28923
    }
28924
 
28925
    public void setVendorId(long vendorId) {
28926
      this.vendorId = vendorId;
28927
      setVendorIdIsSet(true);
28928
    }
28929
 
28930
    public void unsetVendorId() {
28931
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
28932
    }
28933
 
28934
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
28935
    public boolean isSetVendorId() {
28936
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
28937
    }
28938
 
28939
    public void setVendorIdIsSet(boolean value) {
28940
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
28941
    }
28942
 
28943
    public void setFieldValue(_Fields field, Object value) {
28944
      switch (field) {
28945
      case VENDOR_ID:
28946
        if (value == null) {
28947
          unsetVendorId();
28948
        } else {
28949
          setVendorId((Long)value);
28950
        }
28951
        break;
28952
 
28953
      }
28954
    }
28955
 
28956
    public Object getFieldValue(_Fields field) {
28957
      switch (field) {
28958
      case VENDOR_ID:
28959
        return Long.valueOf(getVendorId());
28960
 
28961
      }
28962
      throw new IllegalStateException();
28963
    }
28964
 
28965
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28966
    public boolean isSet(_Fields field) {
28967
      if (field == null) {
28968
        throw new IllegalArgumentException();
28969
      }
28970
 
28971
      switch (field) {
28972
      case VENDOR_ID:
28973
        return isSetVendorId();
28974
      }
28975
      throw new IllegalStateException();
28976
    }
28977
 
28978
    @Override
28979
    public boolean equals(Object that) {
28980
      if (that == null)
28981
        return false;
28982
      if (that instanceof getOurWarehouseIdForVendor_args)
28983
        return this.equals((getOurWarehouseIdForVendor_args)that);
28984
      return false;
28985
    }
28986
 
28987
    public boolean equals(getOurWarehouseIdForVendor_args that) {
28988
      if (that == null)
28989
        return false;
28990
 
28991
      boolean this_present_vendorId = true;
28992
      boolean that_present_vendorId = true;
28993
      if (this_present_vendorId || that_present_vendorId) {
28994
        if (!(this_present_vendorId && that_present_vendorId))
28995
          return false;
28996
        if (this.vendorId != that.vendorId)
28997
          return false;
28998
      }
28999
 
29000
      return true;
29001
    }
29002
 
29003
    @Override
29004
    public int hashCode() {
29005
      return 0;
29006
    }
29007
 
29008
    public int compareTo(getOurWarehouseIdForVendor_args other) {
29009
      if (!getClass().equals(other.getClass())) {
29010
        return getClass().getName().compareTo(other.getClass().getName());
29011
      }
29012
 
29013
      int lastComparison = 0;
29014
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
29015
 
29016
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
29017
      if (lastComparison != 0) {
29018
        return lastComparison;
29019
      }
29020
      if (isSetVendorId()) {
29021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
29022
        if (lastComparison != 0) {
29023
          return lastComparison;
29024
        }
29025
      }
29026
      return 0;
29027
    }
29028
 
29029
    public _Fields fieldForId(int fieldId) {
29030
      return _Fields.findByThriftId(fieldId);
29031
    }
29032
 
29033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29034
      org.apache.thrift.protocol.TField field;
29035
      iprot.readStructBegin();
29036
      while (true)
29037
      {
29038
        field = iprot.readFieldBegin();
29039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29040
          break;
29041
        }
29042
        switch (field.id) {
29043
          case 1: // VENDOR_ID
29044
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29045
              this.vendorId = iprot.readI64();
29046
              setVendorIdIsSet(true);
29047
            } else { 
29048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29049
            }
29050
            break;
29051
          default:
29052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29053
        }
29054
        iprot.readFieldEnd();
29055
      }
29056
      iprot.readStructEnd();
29057
      validate();
29058
    }
29059
 
29060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29061
      validate();
29062
 
29063
      oprot.writeStructBegin(STRUCT_DESC);
29064
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
29065
      oprot.writeI64(this.vendorId);
29066
      oprot.writeFieldEnd();
29067
      oprot.writeFieldStop();
29068
      oprot.writeStructEnd();
29069
    }
29070
 
29071
    @Override
29072
    public String toString() {
29073
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
29074
      boolean first = true;
29075
 
29076
      sb.append("vendorId:");
29077
      sb.append(this.vendorId);
29078
      first = false;
29079
      sb.append(")");
29080
      return sb.toString();
29081
    }
29082
 
29083
    public void validate() throws org.apache.thrift.TException {
29084
      // check for required fields
29085
    }
29086
 
29087
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29088
      try {
29089
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29090
      } catch (org.apache.thrift.TException te) {
29091
        throw new java.io.IOException(te);
29092
      }
29093
    }
29094
 
29095
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29096
      try {
29097
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29098
        __isset_bit_vector = new BitSet(1);
29099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29100
      } catch (org.apache.thrift.TException te) {
29101
        throw new java.io.IOException(te);
29102
      }
29103
    }
29104
 
29105
  }
29106
 
29107
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
29108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
29109
 
29110
    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);
29111
 
29112
    private long success; // required
29113
 
29114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29116
      SUCCESS((short)0, "success");
29117
 
29118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29119
 
29120
      static {
29121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29122
          byName.put(field.getFieldName(), field);
29123
        }
29124
      }
29125
 
29126
      /**
29127
       * Find the _Fields constant that matches fieldId, or null if its not found.
29128
       */
29129
      public static _Fields findByThriftId(int fieldId) {
29130
        switch(fieldId) {
29131
          case 0: // SUCCESS
29132
            return SUCCESS;
29133
          default:
29134
            return null;
29135
        }
29136
      }
29137
 
29138
      /**
29139
       * Find the _Fields constant that matches fieldId, throwing an exception
29140
       * if it is not found.
29141
       */
29142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29143
        _Fields fields = findByThriftId(fieldId);
29144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29145
        return fields;
29146
      }
29147
 
29148
      /**
29149
       * Find the _Fields constant that matches name, or null if its not found.
29150
       */
29151
      public static _Fields findByName(String name) {
29152
        return byName.get(name);
29153
      }
29154
 
29155
      private final short _thriftId;
29156
      private final String _fieldName;
29157
 
29158
      _Fields(short thriftId, String fieldName) {
29159
        _thriftId = thriftId;
29160
        _fieldName = fieldName;
29161
      }
29162
 
29163
      public short getThriftFieldId() {
29164
        return _thriftId;
29165
      }
29166
 
29167
      public String getFieldName() {
29168
        return _fieldName;
29169
      }
29170
    }
29171
 
29172
    // isset id assignments
29173
    private static final int __SUCCESS_ISSET_ID = 0;
29174
    private BitSet __isset_bit_vector = new BitSet(1);
29175
 
29176
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29177
    static {
29178
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29179
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
29183
    }
29184
 
29185
    public getOurWarehouseIdForVendor_result() {
29186
    }
29187
 
29188
    public getOurWarehouseIdForVendor_result(
29189
      long success)
29190
    {
29191
      this();
29192
      this.success = success;
29193
      setSuccessIsSet(true);
29194
    }
29195
 
29196
    /**
29197
     * Performs a deep copy on <i>other</i>.
29198
     */
29199
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
29200
      __isset_bit_vector.clear();
29201
      __isset_bit_vector.or(other.__isset_bit_vector);
29202
      this.success = other.success;
29203
    }
29204
 
29205
    public getOurWarehouseIdForVendor_result deepCopy() {
29206
      return new getOurWarehouseIdForVendor_result(this);
29207
    }
29208
 
29209
    @Override
29210
    public void clear() {
29211
      setSuccessIsSet(false);
29212
      this.success = 0;
29213
    }
29214
 
29215
    public long getSuccess() {
29216
      return this.success;
29217
    }
29218
 
29219
    public void setSuccess(long success) {
29220
      this.success = success;
29221
      setSuccessIsSet(true);
29222
    }
29223
 
29224
    public void unsetSuccess() {
29225
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
29226
    }
29227
 
29228
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29229
    public boolean isSetSuccess() {
29230
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
29231
    }
29232
 
29233
    public void setSuccessIsSet(boolean value) {
29234
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
29235
    }
29236
 
29237
    public void setFieldValue(_Fields field, Object value) {
29238
      switch (field) {
29239
      case SUCCESS:
29240
        if (value == null) {
29241
          unsetSuccess();
29242
        } else {
29243
          setSuccess((Long)value);
29244
        }
29245
        break;
29246
 
29247
      }
29248
    }
29249
 
29250
    public Object getFieldValue(_Fields field) {
29251
      switch (field) {
29252
      case SUCCESS:
29253
        return Long.valueOf(getSuccess());
29254
 
29255
      }
29256
      throw new IllegalStateException();
29257
    }
29258
 
29259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29260
    public boolean isSet(_Fields field) {
29261
      if (field == null) {
29262
        throw new IllegalArgumentException();
29263
      }
29264
 
29265
      switch (field) {
29266
      case SUCCESS:
29267
        return isSetSuccess();
29268
      }
29269
      throw new IllegalStateException();
29270
    }
29271
 
29272
    @Override
29273
    public boolean equals(Object that) {
29274
      if (that == null)
29275
        return false;
29276
      if (that instanceof getOurWarehouseIdForVendor_result)
29277
        return this.equals((getOurWarehouseIdForVendor_result)that);
29278
      return false;
29279
    }
29280
 
29281
    public boolean equals(getOurWarehouseIdForVendor_result that) {
29282
      if (that == null)
29283
        return false;
29284
 
29285
      boolean this_present_success = true;
29286
      boolean that_present_success = true;
29287
      if (this_present_success || that_present_success) {
29288
        if (!(this_present_success && that_present_success))
29289
          return false;
29290
        if (this.success != that.success)
29291
          return false;
29292
      }
29293
 
29294
      return true;
29295
    }
29296
 
29297
    @Override
29298
    public int hashCode() {
29299
      return 0;
29300
    }
29301
 
29302
    public int compareTo(getOurWarehouseIdForVendor_result other) {
29303
      if (!getClass().equals(other.getClass())) {
29304
        return getClass().getName().compareTo(other.getClass().getName());
29305
      }
29306
 
29307
      int lastComparison = 0;
29308
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
29309
 
29310
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29311
      if (lastComparison != 0) {
29312
        return lastComparison;
29313
      }
29314
      if (isSetSuccess()) {
29315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29316
        if (lastComparison != 0) {
29317
          return lastComparison;
29318
        }
29319
      }
29320
      return 0;
29321
    }
29322
 
29323
    public _Fields fieldForId(int fieldId) {
29324
      return _Fields.findByThriftId(fieldId);
29325
    }
29326
 
29327
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29328
      org.apache.thrift.protocol.TField field;
29329
      iprot.readStructBegin();
29330
      while (true)
29331
      {
29332
        field = iprot.readFieldBegin();
29333
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29334
          break;
29335
        }
29336
        switch (field.id) {
29337
          case 0: // SUCCESS
29338
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29339
              this.success = iprot.readI64();
29340
              setSuccessIsSet(true);
29341
            } else { 
29342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29343
            }
29344
            break;
29345
          default:
29346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29347
        }
29348
        iprot.readFieldEnd();
29349
      }
29350
      iprot.readStructEnd();
29351
      validate();
29352
    }
29353
 
29354
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29355
      oprot.writeStructBegin(STRUCT_DESC);
29356
 
29357
      if (this.isSetSuccess()) {
29358
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29359
        oprot.writeI64(this.success);
29360
        oprot.writeFieldEnd();
29361
      }
29362
      oprot.writeFieldStop();
29363
      oprot.writeStructEnd();
29364
    }
29365
 
29366
    @Override
29367
    public String toString() {
29368
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
29369
      boolean first = true;
29370
 
29371
      sb.append("success:");
29372
      sb.append(this.success);
29373
      first = false;
29374
      sb.append(")");
29375
      return sb.toString();
29376
    }
29377
 
29378
    public void validate() throws org.apache.thrift.TException {
29379
      // check for required fields
29380
    }
29381
 
29382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29383
      try {
29384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29385
      } catch (org.apache.thrift.TException te) {
29386
        throw new java.io.IOException(te);
29387
      }
29388
    }
29389
 
29390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29391
      try {
29392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29393
      } catch (org.apache.thrift.TException te) {
29394
        throw new java.io.IOException(te);
29395
      }
29396
    }
29397
 
29398
  }
29399
 
6484 amar.kumar 29400
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
29401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
29402
 
29403
    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);
29404
 
29405
    private List<Long> item_ids; // required
29406
 
29407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29409
      ITEM_IDS((short)1, "item_ids");
29410
 
29411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29412
 
29413
      static {
29414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29415
          byName.put(field.getFieldName(), field);
29416
        }
29417
      }
29418
 
29419
      /**
29420
       * Find the _Fields constant that matches fieldId, or null if its not found.
29421
       */
29422
      public static _Fields findByThriftId(int fieldId) {
29423
        switch(fieldId) {
29424
          case 1: // ITEM_IDS
29425
            return ITEM_IDS;
29426
          default:
29427
            return null;
29428
        }
29429
      }
29430
 
29431
      /**
29432
       * Find the _Fields constant that matches fieldId, throwing an exception
29433
       * if it is not found.
29434
       */
29435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29436
        _Fields fields = findByThriftId(fieldId);
29437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29438
        return fields;
29439
      }
29440
 
29441
      /**
29442
       * Find the _Fields constant that matches name, or null if its not found.
29443
       */
29444
      public static _Fields findByName(String name) {
29445
        return byName.get(name);
29446
      }
29447
 
29448
      private final short _thriftId;
29449
      private final String _fieldName;
29450
 
29451
      _Fields(short thriftId, String fieldName) {
29452
        _thriftId = thriftId;
29453
        _fieldName = fieldName;
29454
      }
29455
 
29456
      public short getThriftFieldId() {
29457
        return _thriftId;
29458
      }
29459
 
29460
      public String getFieldName() {
29461
        return _fieldName;
29462
      }
29463
    }
29464
 
29465
    // isset id assignments
29466
 
29467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29468
    static {
29469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29470
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29471
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29472
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29473
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29474
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
29475
    }
29476
 
29477
    public getItemAvailabilitiesAtOurWarehouses_args() {
29478
    }
29479
 
29480
    public getItemAvailabilitiesAtOurWarehouses_args(
29481
      List<Long> item_ids)
29482
    {
29483
      this();
29484
      this.item_ids = item_ids;
29485
    }
29486
 
29487
    /**
29488
     * Performs a deep copy on <i>other</i>.
29489
     */
29490
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
29491
      if (other.isSetItem_ids()) {
29492
        List<Long> __this__item_ids = new ArrayList<Long>();
29493
        for (Long other_element : other.item_ids) {
29494
          __this__item_ids.add(other_element);
29495
        }
29496
        this.item_ids = __this__item_ids;
29497
      }
29498
    }
29499
 
29500
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
29501
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
29502
    }
29503
 
29504
    @Override
29505
    public void clear() {
29506
      this.item_ids = null;
29507
    }
29508
 
29509
    public int getItem_idsSize() {
29510
      return (this.item_ids == null) ? 0 : this.item_ids.size();
29511
    }
29512
 
29513
    public java.util.Iterator<Long> getItem_idsIterator() {
29514
      return (this.item_ids == null) ? null : this.item_ids.iterator();
29515
    }
29516
 
29517
    public void addToItem_ids(long elem) {
29518
      if (this.item_ids == null) {
29519
        this.item_ids = new ArrayList<Long>();
29520
      }
29521
      this.item_ids.add(elem);
29522
    }
29523
 
29524
    public List<Long> getItem_ids() {
29525
      return this.item_ids;
29526
    }
29527
 
29528
    public void setItem_ids(List<Long> item_ids) {
29529
      this.item_ids = item_ids;
29530
    }
29531
 
29532
    public void unsetItem_ids() {
29533
      this.item_ids = null;
29534
    }
29535
 
29536
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
29537
    public boolean isSetItem_ids() {
29538
      return this.item_ids != null;
29539
    }
29540
 
29541
    public void setItem_idsIsSet(boolean value) {
29542
      if (!value) {
29543
        this.item_ids = null;
29544
      }
29545
    }
29546
 
29547
    public void setFieldValue(_Fields field, Object value) {
29548
      switch (field) {
29549
      case ITEM_IDS:
29550
        if (value == null) {
29551
          unsetItem_ids();
29552
        } else {
29553
          setItem_ids((List<Long>)value);
29554
        }
29555
        break;
29556
 
29557
      }
29558
    }
29559
 
29560
    public Object getFieldValue(_Fields field) {
29561
      switch (field) {
29562
      case ITEM_IDS:
29563
        return getItem_ids();
29564
 
29565
      }
29566
      throw new IllegalStateException();
29567
    }
29568
 
29569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29570
    public boolean isSet(_Fields field) {
29571
      if (field == null) {
29572
        throw new IllegalArgumentException();
29573
      }
29574
 
29575
      switch (field) {
29576
      case ITEM_IDS:
29577
        return isSetItem_ids();
29578
      }
29579
      throw new IllegalStateException();
29580
    }
29581
 
29582
    @Override
29583
    public boolean equals(Object that) {
29584
      if (that == null)
29585
        return false;
29586
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
29587
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
29588
      return false;
29589
    }
29590
 
29591
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
29592
      if (that == null)
29593
        return false;
29594
 
29595
      boolean this_present_item_ids = true && this.isSetItem_ids();
29596
      boolean that_present_item_ids = true && that.isSetItem_ids();
29597
      if (this_present_item_ids || that_present_item_ids) {
29598
        if (!(this_present_item_ids && that_present_item_ids))
29599
          return false;
29600
        if (!this.item_ids.equals(that.item_ids))
29601
          return false;
29602
      }
29603
 
29604
      return true;
29605
    }
29606
 
29607
    @Override
29608
    public int hashCode() {
29609
      return 0;
29610
    }
29611
 
29612
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
29613
      if (!getClass().equals(other.getClass())) {
29614
        return getClass().getName().compareTo(other.getClass().getName());
29615
      }
29616
 
29617
      int lastComparison = 0;
29618
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
29619
 
29620
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
29621
      if (lastComparison != 0) {
29622
        return lastComparison;
29623
      }
29624
      if (isSetItem_ids()) {
29625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
29626
        if (lastComparison != 0) {
29627
          return lastComparison;
29628
        }
29629
      }
29630
      return 0;
29631
    }
29632
 
29633
    public _Fields fieldForId(int fieldId) {
29634
      return _Fields.findByThriftId(fieldId);
29635
    }
29636
 
29637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29638
      org.apache.thrift.protocol.TField field;
29639
      iprot.readStructBegin();
29640
      while (true)
29641
      {
29642
        field = iprot.readFieldBegin();
29643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29644
          break;
29645
        }
29646
        switch (field.id) {
29647
          case 1: // ITEM_IDS
29648
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29649
              {
29650
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
29651
                this.item_ids = new ArrayList<Long>(_list79.size);
29652
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
29653
                {
29654
                  long _elem81; // required
29655
                  _elem81 = iprot.readI64();
29656
                  this.item_ids.add(_elem81);
29657
                }
29658
                iprot.readListEnd();
29659
              }
29660
            } else { 
29661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29662
            }
29663
            break;
29664
          default:
29665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29666
        }
29667
        iprot.readFieldEnd();
29668
      }
29669
      iprot.readStructEnd();
29670
      validate();
29671
    }
29672
 
29673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29674
      validate();
29675
 
29676
      oprot.writeStructBegin(STRUCT_DESC);
29677
      if (this.item_ids != null) {
29678
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
29679
        {
29680
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
29681
          for (long _iter82 : this.item_ids)
29682
          {
29683
            oprot.writeI64(_iter82);
29684
          }
29685
          oprot.writeListEnd();
29686
        }
29687
        oprot.writeFieldEnd();
29688
      }
29689
      oprot.writeFieldStop();
29690
      oprot.writeStructEnd();
29691
    }
29692
 
29693
    @Override
29694
    public String toString() {
29695
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
29696
      boolean first = true;
29697
 
29698
      sb.append("item_ids:");
29699
      if (this.item_ids == null) {
29700
        sb.append("null");
29701
      } else {
29702
        sb.append(this.item_ids);
29703
      }
29704
      first = false;
29705
      sb.append(")");
29706
      return sb.toString();
29707
    }
29708
 
29709
    public void validate() throws org.apache.thrift.TException {
29710
      // check for required fields
29711
    }
29712
 
29713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29714
      try {
29715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29716
      } catch (org.apache.thrift.TException te) {
29717
        throw new java.io.IOException(te);
29718
      }
29719
    }
29720
 
29721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29722
      try {
29723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29724
      } catch (org.apache.thrift.TException te) {
29725
        throw new java.io.IOException(te);
29726
      }
29727
    }
29728
 
29729
  }
29730
 
29731
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
29732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
29733
 
29734
    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);
29735
 
29736
    private Map<Long,Long> success; // required
29737
 
29738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29740
      SUCCESS((short)0, "success");
29741
 
29742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29743
 
29744
      static {
29745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29746
          byName.put(field.getFieldName(), field);
29747
        }
29748
      }
29749
 
29750
      /**
29751
       * Find the _Fields constant that matches fieldId, or null if its not found.
29752
       */
29753
      public static _Fields findByThriftId(int fieldId) {
29754
        switch(fieldId) {
29755
          case 0: // SUCCESS
29756
            return SUCCESS;
29757
          default:
29758
            return null;
29759
        }
29760
      }
29761
 
29762
      /**
29763
       * Find the _Fields constant that matches fieldId, throwing an exception
29764
       * if it is not found.
29765
       */
29766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29767
        _Fields fields = findByThriftId(fieldId);
29768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29769
        return fields;
29770
      }
29771
 
29772
      /**
29773
       * Find the _Fields constant that matches name, or null if its not found.
29774
       */
29775
      public static _Fields findByName(String name) {
29776
        return byName.get(name);
29777
      }
29778
 
29779
      private final short _thriftId;
29780
      private final String _fieldName;
29781
 
29782
      _Fields(short thriftId, String fieldName) {
29783
        _thriftId = thriftId;
29784
        _fieldName = fieldName;
29785
      }
29786
 
29787
      public short getThriftFieldId() {
29788
        return _thriftId;
29789
      }
29790
 
29791
      public String getFieldName() {
29792
        return _fieldName;
29793
      }
29794
    }
29795
 
29796
    // isset id assignments
29797
 
29798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29799
    static {
29800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29801
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29802
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
29803
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
29804
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
29807
    }
29808
 
29809
    public getItemAvailabilitiesAtOurWarehouses_result() {
29810
    }
29811
 
29812
    public getItemAvailabilitiesAtOurWarehouses_result(
29813
      Map<Long,Long> success)
29814
    {
29815
      this();
29816
      this.success = success;
29817
    }
29818
 
29819
    /**
29820
     * Performs a deep copy on <i>other</i>.
29821
     */
29822
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
29823
      if (other.isSetSuccess()) {
29824
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
29825
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
29826
 
29827
          Long other_element_key = other_element.getKey();
29828
          Long other_element_value = other_element.getValue();
29829
 
29830
          Long __this__success_copy_key = other_element_key;
29831
 
29832
          Long __this__success_copy_value = other_element_value;
29833
 
29834
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
29835
        }
29836
        this.success = __this__success;
29837
      }
29838
    }
29839
 
29840
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
29841
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
29842
    }
29843
 
29844
    @Override
29845
    public void clear() {
29846
      this.success = null;
29847
    }
29848
 
29849
    public int getSuccessSize() {
29850
      return (this.success == null) ? 0 : this.success.size();
29851
    }
29852
 
29853
    public void putToSuccess(long key, long val) {
29854
      if (this.success == null) {
29855
        this.success = new HashMap<Long,Long>();
29856
      }
29857
      this.success.put(key, val);
29858
    }
29859
 
29860
    public Map<Long,Long> getSuccess() {
29861
      return this.success;
29862
    }
29863
 
29864
    public void setSuccess(Map<Long,Long> success) {
29865
      this.success = success;
29866
    }
29867
 
29868
    public void unsetSuccess() {
29869
      this.success = null;
29870
    }
29871
 
29872
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29873
    public boolean isSetSuccess() {
29874
      return this.success != null;
29875
    }
29876
 
29877
    public void setSuccessIsSet(boolean value) {
29878
      if (!value) {
29879
        this.success = null;
29880
      }
29881
    }
29882
 
29883
    public void setFieldValue(_Fields field, Object value) {
29884
      switch (field) {
29885
      case SUCCESS:
29886
        if (value == null) {
29887
          unsetSuccess();
29888
        } else {
29889
          setSuccess((Map<Long,Long>)value);
29890
        }
29891
        break;
29892
 
29893
      }
29894
    }
29895
 
29896
    public Object getFieldValue(_Fields field) {
29897
      switch (field) {
29898
      case SUCCESS:
29899
        return getSuccess();
29900
 
29901
      }
29902
      throw new IllegalStateException();
29903
    }
29904
 
29905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29906
    public boolean isSet(_Fields field) {
29907
      if (field == null) {
29908
        throw new IllegalArgumentException();
29909
      }
29910
 
29911
      switch (field) {
29912
      case SUCCESS:
29913
        return isSetSuccess();
29914
      }
29915
      throw new IllegalStateException();
29916
    }
29917
 
29918
    @Override
29919
    public boolean equals(Object that) {
29920
      if (that == null)
29921
        return false;
29922
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
29923
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
29924
      return false;
29925
    }
29926
 
29927
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
29928
      if (that == null)
29929
        return false;
29930
 
29931
      boolean this_present_success = true && this.isSetSuccess();
29932
      boolean that_present_success = true && that.isSetSuccess();
29933
      if (this_present_success || that_present_success) {
29934
        if (!(this_present_success && that_present_success))
29935
          return false;
29936
        if (!this.success.equals(that.success))
29937
          return false;
29938
      }
29939
 
29940
      return true;
29941
    }
29942
 
29943
    @Override
29944
    public int hashCode() {
29945
      return 0;
29946
    }
29947
 
29948
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
29949
      if (!getClass().equals(other.getClass())) {
29950
        return getClass().getName().compareTo(other.getClass().getName());
29951
      }
29952
 
29953
      int lastComparison = 0;
29954
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
29955
 
29956
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29957
      if (lastComparison != 0) {
29958
        return lastComparison;
29959
      }
29960
      if (isSetSuccess()) {
29961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29962
        if (lastComparison != 0) {
29963
          return lastComparison;
29964
        }
29965
      }
29966
      return 0;
29967
    }
29968
 
29969
    public _Fields fieldForId(int fieldId) {
29970
      return _Fields.findByThriftId(fieldId);
29971
    }
29972
 
29973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29974
      org.apache.thrift.protocol.TField field;
29975
      iprot.readStructBegin();
29976
      while (true)
29977
      {
29978
        field = iprot.readFieldBegin();
29979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29980
          break;
29981
        }
29982
        switch (field.id) {
29983
          case 0: // SUCCESS
29984
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
29985
              {
29986
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
29987
                this.success = new HashMap<Long,Long>(2*_map83.size);
29988
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
29989
                {
29990
                  long _key85; // required
29991
                  long _val86; // required
29992
                  _key85 = iprot.readI64();
29993
                  _val86 = iprot.readI64();
29994
                  this.success.put(_key85, _val86);
29995
                }
29996
                iprot.readMapEnd();
29997
              }
29998
            } else { 
29999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30000
            }
30001
            break;
30002
          default:
30003
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30004
        }
30005
        iprot.readFieldEnd();
30006
      }
30007
      iprot.readStructEnd();
30008
      validate();
30009
    }
30010
 
30011
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30012
      oprot.writeStructBegin(STRUCT_DESC);
30013
 
30014
      if (this.isSetSuccess()) {
30015
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30016
        {
30017
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
30018
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
30019
          {
30020
            oprot.writeI64(_iter87.getKey());
30021
            oprot.writeI64(_iter87.getValue());
30022
          }
30023
          oprot.writeMapEnd();
30024
        }
30025
        oprot.writeFieldEnd();
30026
      }
30027
      oprot.writeFieldStop();
30028
      oprot.writeStructEnd();
30029
    }
30030
 
30031
    @Override
30032
    public String toString() {
30033
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
30034
      boolean first = true;
30035
 
30036
      sb.append("success:");
30037
      if (this.success == null) {
30038
        sb.append("null");
30039
      } else {
30040
        sb.append(this.success);
30041
      }
30042
      first = false;
30043
      sb.append(")");
30044
      return sb.toString();
30045
    }
30046
 
30047
    public void validate() throws org.apache.thrift.TException {
30048
      // check for required fields
30049
    }
30050
 
30051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30052
      try {
30053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30054
      } catch (org.apache.thrift.TException te) {
30055
        throw new java.io.IOException(te);
30056
      }
30057
    }
30058
 
30059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30060
      try {
30061
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30062
      } catch (org.apache.thrift.TException te) {
30063
        throw new java.io.IOException(te);
30064
      }
30065
    }
30066
 
30067
  }
30068
 
6531 vikram.rag 30069
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
30070
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
30071
 
30072
    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);
30073
 
30074
    private List<Long> vendorIds; // required
30075
 
30076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30078
      VENDOR_IDS((short)1, "vendorIds");
30079
 
30080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30081
 
30082
      static {
30083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30084
          byName.put(field.getFieldName(), field);
30085
        }
30086
      }
30087
 
30088
      /**
30089
       * Find the _Fields constant that matches fieldId, or null if its not found.
30090
       */
30091
      public static _Fields findByThriftId(int fieldId) {
30092
        switch(fieldId) {
30093
          case 1: // VENDOR_IDS
30094
            return VENDOR_IDS;
30095
          default:
30096
            return null;
30097
        }
30098
      }
30099
 
30100
      /**
30101
       * Find the _Fields constant that matches fieldId, throwing an exception
30102
       * if it is not found.
30103
       */
30104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30105
        _Fields fields = findByThriftId(fieldId);
30106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30107
        return fields;
30108
      }
30109
 
30110
      /**
30111
       * Find the _Fields constant that matches name, or null if its not found.
30112
       */
30113
      public static _Fields findByName(String name) {
30114
        return byName.get(name);
30115
      }
30116
 
30117
      private final short _thriftId;
30118
      private final String _fieldName;
30119
 
30120
      _Fields(short thriftId, String fieldName) {
30121
        _thriftId = thriftId;
30122
        _fieldName = fieldName;
30123
      }
30124
 
30125
      public short getThriftFieldId() {
30126
        return _thriftId;
30127
      }
30128
 
30129
      public String getFieldName() {
30130
        return _fieldName;
30131
      }
30132
    }
30133
 
30134
    // isset id assignments
30135
 
30136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30137
    static {
30138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30139
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30140
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30141
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
30144
    }
30145
 
30146
    public getMonitoredWarehouseForVendors_args() {
30147
    }
30148
 
30149
    public getMonitoredWarehouseForVendors_args(
30150
      List<Long> vendorIds)
30151
    {
30152
      this();
30153
      this.vendorIds = vendorIds;
30154
    }
30155
 
30156
    /**
30157
     * Performs a deep copy on <i>other</i>.
30158
     */
30159
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
30160
      if (other.isSetVendorIds()) {
30161
        List<Long> __this__vendorIds = new ArrayList<Long>();
30162
        for (Long other_element : other.vendorIds) {
30163
          __this__vendorIds.add(other_element);
30164
        }
30165
        this.vendorIds = __this__vendorIds;
30166
      }
30167
    }
30168
 
30169
    public getMonitoredWarehouseForVendors_args deepCopy() {
30170
      return new getMonitoredWarehouseForVendors_args(this);
30171
    }
30172
 
30173
    @Override
30174
    public void clear() {
30175
      this.vendorIds = null;
30176
    }
30177
 
30178
    public int getVendorIdsSize() {
30179
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
30180
    }
30181
 
30182
    public java.util.Iterator<Long> getVendorIdsIterator() {
30183
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
30184
    }
30185
 
30186
    public void addToVendorIds(long elem) {
30187
      if (this.vendorIds == null) {
30188
        this.vendorIds = new ArrayList<Long>();
30189
      }
30190
      this.vendorIds.add(elem);
30191
    }
30192
 
30193
    public List<Long> getVendorIds() {
30194
      return this.vendorIds;
30195
    }
30196
 
30197
    public void setVendorIds(List<Long> vendorIds) {
30198
      this.vendorIds = vendorIds;
30199
    }
30200
 
30201
    public void unsetVendorIds() {
30202
      this.vendorIds = null;
30203
    }
30204
 
30205
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
30206
    public boolean isSetVendorIds() {
30207
      return this.vendorIds != null;
30208
    }
30209
 
30210
    public void setVendorIdsIsSet(boolean value) {
30211
      if (!value) {
30212
        this.vendorIds = null;
30213
      }
30214
    }
30215
 
30216
    public void setFieldValue(_Fields field, Object value) {
30217
      switch (field) {
30218
      case VENDOR_IDS:
30219
        if (value == null) {
30220
          unsetVendorIds();
30221
        } else {
30222
          setVendorIds((List<Long>)value);
30223
        }
30224
        break;
30225
 
30226
      }
30227
    }
30228
 
30229
    public Object getFieldValue(_Fields field) {
30230
      switch (field) {
30231
      case VENDOR_IDS:
30232
        return getVendorIds();
30233
 
30234
      }
30235
      throw new IllegalStateException();
30236
    }
30237
 
30238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30239
    public boolean isSet(_Fields field) {
30240
      if (field == null) {
30241
        throw new IllegalArgumentException();
30242
      }
30243
 
30244
      switch (field) {
30245
      case VENDOR_IDS:
30246
        return isSetVendorIds();
30247
      }
30248
      throw new IllegalStateException();
30249
    }
30250
 
30251
    @Override
30252
    public boolean equals(Object that) {
30253
      if (that == null)
30254
        return false;
30255
      if (that instanceof getMonitoredWarehouseForVendors_args)
30256
        return this.equals((getMonitoredWarehouseForVendors_args)that);
30257
      return false;
30258
    }
30259
 
30260
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
30261
      if (that == null)
30262
        return false;
30263
 
30264
      boolean this_present_vendorIds = true && this.isSetVendorIds();
30265
      boolean that_present_vendorIds = true && that.isSetVendorIds();
30266
      if (this_present_vendorIds || that_present_vendorIds) {
30267
        if (!(this_present_vendorIds && that_present_vendorIds))
30268
          return false;
30269
        if (!this.vendorIds.equals(that.vendorIds))
30270
          return false;
30271
      }
30272
 
30273
      return true;
30274
    }
30275
 
30276
    @Override
30277
    public int hashCode() {
30278
      return 0;
30279
    }
30280
 
30281
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
30282
      if (!getClass().equals(other.getClass())) {
30283
        return getClass().getName().compareTo(other.getClass().getName());
30284
      }
30285
 
30286
      int lastComparison = 0;
30287
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
30288
 
30289
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
30290
      if (lastComparison != 0) {
30291
        return lastComparison;
30292
      }
30293
      if (isSetVendorIds()) {
30294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
30295
        if (lastComparison != 0) {
30296
          return lastComparison;
30297
        }
30298
      }
30299
      return 0;
30300
    }
30301
 
30302
    public _Fields fieldForId(int fieldId) {
30303
      return _Fields.findByThriftId(fieldId);
30304
    }
30305
 
30306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30307
      org.apache.thrift.protocol.TField field;
30308
      iprot.readStructBegin();
30309
      while (true)
30310
      {
30311
        field = iprot.readFieldBegin();
30312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30313
          break;
30314
        }
30315
        switch (field.id) {
30316
          case 1: // VENDOR_IDS
30317
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30318
              {
30319
                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
30320
                this.vendorIds = new ArrayList<Long>(_list88.size);
30321
                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
30322
                {
30323
                  long _elem90; // required
30324
                  _elem90 = iprot.readI64();
30325
                  this.vendorIds.add(_elem90);
30326
                }
30327
                iprot.readListEnd();
30328
              }
30329
            } else { 
30330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30331
            }
30332
            break;
30333
          default:
30334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30335
        }
30336
        iprot.readFieldEnd();
30337
      }
30338
      iprot.readStructEnd();
30339
      validate();
30340
    }
30341
 
30342
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30343
      validate();
30344
 
30345
      oprot.writeStructBegin(STRUCT_DESC);
30346
      if (this.vendorIds != null) {
30347
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
30348
        {
30349
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
30350
          for (long _iter91 : this.vendorIds)
30351
          {
30352
            oprot.writeI64(_iter91);
30353
          }
30354
          oprot.writeListEnd();
30355
        }
30356
        oprot.writeFieldEnd();
30357
      }
30358
      oprot.writeFieldStop();
30359
      oprot.writeStructEnd();
30360
    }
30361
 
30362
    @Override
30363
    public String toString() {
30364
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
30365
      boolean first = true;
30366
 
30367
      sb.append("vendorIds:");
30368
      if (this.vendorIds == null) {
30369
        sb.append("null");
30370
      } else {
30371
        sb.append(this.vendorIds);
30372
      }
30373
      first = false;
30374
      sb.append(")");
30375
      return sb.toString();
30376
    }
30377
 
30378
    public void validate() throws org.apache.thrift.TException {
30379
      // check for required fields
30380
    }
30381
 
30382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30383
      try {
30384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30385
      } catch (org.apache.thrift.TException te) {
30386
        throw new java.io.IOException(te);
30387
      }
30388
    }
30389
 
30390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30391
      try {
30392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30393
      } catch (org.apache.thrift.TException te) {
30394
        throw new java.io.IOException(te);
30395
      }
30396
    }
30397
 
30398
  }
30399
 
30400
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
30401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
30402
 
30403
    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);
30404
 
30405
    private List<Long> success; // required
30406
 
30407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30409
      SUCCESS((short)0, "success");
30410
 
30411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30412
 
30413
      static {
30414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30415
          byName.put(field.getFieldName(), field);
30416
        }
30417
      }
30418
 
30419
      /**
30420
       * Find the _Fields constant that matches fieldId, or null if its not found.
30421
       */
30422
      public static _Fields findByThriftId(int fieldId) {
30423
        switch(fieldId) {
30424
          case 0: // SUCCESS
30425
            return SUCCESS;
30426
          default:
30427
            return null;
30428
        }
30429
      }
30430
 
30431
      /**
30432
       * Find the _Fields constant that matches fieldId, throwing an exception
30433
       * if it is not found.
30434
       */
30435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30436
        _Fields fields = findByThriftId(fieldId);
30437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30438
        return fields;
30439
      }
30440
 
30441
      /**
30442
       * Find the _Fields constant that matches name, or null if its not found.
30443
       */
30444
      public static _Fields findByName(String name) {
30445
        return byName.get(name);
30446
      }
30447
 
30448
      private final short _thriftId;
30449
      private final String _fieldName;
30450
 
30451
      _Fields(short thriftId, String fieldName) {
30452
        _thriftId = thriftId;
30453
        _fieldName = fieldName;
30454
      }
30455
 
30456
      public short getThriftFieldId() {
30457
        return _thriftId;
30458
      }
30459
 
30460
      public String getFieldName() {
30461
        return _fieldName;
30462
      }
30463
    }
30464
 
30465
    // isset id assignments
30466
 
30467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30468
    static {
30469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30470
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30471
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30472
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30473
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30474
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
30475
    }
30476
 
30477
    public getMonitoredWarehouseForVendors_result() {
30478
    }
30479
 
30480
    public getMonitoredWarehouseForVendors_result(
30481
      List<Long> success)
30482
    {
30483
      this();
30484
      this.success = success;
30485
    }
30486
 
30487
    /**
30488
     * Performs a deep copy on <i>other</i>.
30489
     */
30490
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
30491
      if (other.isSetSuccess()) {
30492
        List<Long> __this__success = new ArrayList<Long>();
30493
        for (Long other_element : other.success) {
30494
          __this__success.add(other_element);
30495
        }
30496
        this.success = __this__success;
30497
      }
30498
    }
30499
 
30500
    public getMonitoredWarehouseForVendors_result deepCopy() {
30501
      return new getMonitoredWarehouseForVendors_result(this);
30502
    }
30503
 
30504
    @Override
30505
    public void clear() {
30506
      this.success = null;
30507
    }
30508
 
30509
    public int getSuccessSize() {
30510
      return (this.success == null) ? 0 : this.success.size();
30511
    }
30512
 
30513
    public java.util.Iterator<Long> getSuccessIterator() {
30514
      return (this.success == null) ? null : this.success.iterator();
30515
    }
30516
 
30517
    public void addToSuccess(long elem) {
30518
      if (this.success == null) {
30519
        this.success = new ArrayList<Long>();
30520
      }
30521
      this.success.add(elem);
30522
    }
30523
 
30524
    public List<Long> getSuccess() {
30525
      return this.success;
30526
    }
30527
 
30528
    public void setSuccess(List<Long> success) {
30529
      this.success = success;
30530
    }
30531
 
30532
    public void unsetSuccess() {
30533
      this.success = null;
30534
    }
30535
 
30536
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30537
    public boolean isSetSuccess() {
30538
      return this.success != null;
30539
    }
30540
 
30541
    public void setSuccessIsSet(boolean value) {
30542
      if (!value) {
30543
        this.success = null;
30544
      }
30545
    }
30546
 
30547
    public void setFieldValue(_Fields field, Object value) {
30548
      switch (field) {
30549
      case SUCCESS:
30550
        if (value == null) {
30551
          unsetSuccess();
30552
        } else {
30553
          setSuccess((List<Long>)value);
30554
        }
30555
        break;
30556
 
30557
      }
30558
    }
30559
 
30560
    public Object getFieldValue(_Fields field) {
30561
      switch (field) {
30562
      case SUCCESS:
30563
        return getSuccess();
30564
 
30565
      }
30566
      throw new IllegalStateException();
30567
    }
30568
 
30569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30570
    public boolean isSet(_Fields field) {
30571
      if (field == null) {
30572
        throw new IllegalArgumentException();
30573
      }
30574
 
30575
      switch (field) {
30576
      case SUCCESS:
30577
        return isSetSuccess();
30578
      }
30579
      throw new IllegalStateException();
30580
    }
30581
 
30582
    @Override
30583
    public boolean equals(Object that) {
30584
      if (that == null)
30585
        return false;
30586
      if (that instanceof getMonitoredWarehouseForVendors_result)
30587
        return this.equals((getMonitoredWarehouseForVendors_result)that);
30588
      return false;
30589
    }
30590
 
30591
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
30592
      if (that == null)
30593
        return false;
30594
 
30595
      boolean this_present_success = true && this.isSetSuccess();
30596
      boolean that_present_success = true && that.isSetSuccess();
30597
      if (this_present_success || that_present_success) {
30598
        if (!(this_present_success && that_present_success))
30599
          return false;
30600
        if (!this.success.equals(that.success))
30601
          return false;
30602
      }
30603
 
30604
      return true;
30605
    }
30606
 
30607
    @Override
30608
    public int hashCode() {
30609
      return 0;
30610
    }
30611
 
30612
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
30613
      if (!getClass().equals(other.getClass())) {
30614
        return getClass().getName().compareTo(other.getClass().getName());
30615
      }
30616
 
30617
      int lastComparison = 0;
30618
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
30619
 
30620
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30621
      if (lastComparison != 0) {
30622
        return lastComparison;
30623
      }
30624
      if (isSetSuccess()) {
30625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30626
        if (lastComparison != 0) {
30627
          return lastComparison;
30628
        }
30629
      }
30630
      return 0;
30631
    }
30632
 
30633
    public _Fields fieldForId(int fieldId) {
30634
      return _Fields.findByThriftId(fieldId);
30635
    }
30636
 
30637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30638
      org.apache.thrift.protocol.TField field;
30639
      iprot.readStructBegin();
30640
      while (true)
30641
      {
30642
        field = iprot.readFieldBegin();
30643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30644
          break;
30645
        }
30646
        switch (field.id) {
30647
          case 0: // SUCCESS
30648
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30649
              {
30650
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
30651
                this.success = new ArrayList<Long>(_list92.size);
30652
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
30653
                {
30654
                  long _elem94; // required
30655
                  _elem94 = iprot.readI64();
30656
                  this.success.add(_elem94);
30657
                }
30658
                iprot.readListEnd();
30659
              }
30660
            } else { 
30661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30662
            }
30663
            break;
30664
          default:
30665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30666
        }
30667
        iprot.readFieldEnd();
30668
      }
30669
      iprot.readStructEnd();
30670
      validate();
30671
    }
30672
 
30673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30674
      oprot.writeStructBegin(STRUCT_DESC);
30675
 
30676
      if (this.isSetSuccess()) {
30677
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30678
        {
30679
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30680
          for (long _iter95 : this.success)
30681
          {
30682
            oprot.writeI64(_iter95);
30683
          }
30684
          oprot.writeListEnd();
30685
        }
30686
        oprot.writeFieldEnd();
30687
      }
30688
      oprot.writeFieldStop();
30689
      oprot.writeStructEnd();
30690
    }
30691
 
30692
    @Override
30693
    public String toString() {
30694
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
30695
      boolean first = true;
30696
 
30697
      sb.append("success:");
30698
      if (this.success == null) {
30699
        sb.append("null");
30700
      } else {
30701
        sb.append(this.success);
30702
      }
30703
      first = false;
30704
      sb.append(")");
30705
      return sb.toString();
30706
    }
30707
 
30708
    public void validate() throws org.apache.thrift.TException {
30709
      // check for required fields
30710
    }
30711
 
30712
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30713
      try {
30714
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30715
      } catch (org.apache.thrift.TException te) {
30716
        throw new java.io.IOException(te);
30717
      }
30718
    }
30719
 
30720
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30721
      try {
30722
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30723
      } catch (org.apache.thrift.TException te) {
30724
        throw new java.io.IOException(te);
30725
      }
30726
    }
30727
 
30728
  }
30729
 
30730
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
30731
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
30732
 
30733
 
30734
 
30735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30737
;
30738
 
30739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30740
 
30741
      static {
30742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30743
          byName.put(field.getFieldName(), field);
30744
        }
30745
      }
30746
 
30747
      /**
30748
       * Find the _Fields constant that matches fieldId, or null if its not found.
30749
       */
30750
      public static _Fields findByThriftId(int fieldId) {
30751
        switch(fieldId) {
30752
          default:
30753
            return null;
30754
        }
30755
      }
30756
 
30757
      /**
30758
       * Find the _Fields constant that matches fieldId, throwing an exception
30759
       * if it is not found.
30760
       */
30761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30762
        _Fields fields = findByThriftId(fieldId);
30763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30764
        return fields;
30765
      }
30766
 
30767
      /**
30768
       * Find the _Fields constant that matches name, or null if its not found.
30769
       */
30770
      public static _Fields findByName(String name) {
30771
        return byName.get(name);
30772
      }
30773
 
30774
      private final short _thriftId;
30775
      private final String _fieldName;
30776
 
30777
      _Fields(short thriftId, String fieldName) {
30778
        _thriftId = thriftId;
30779
        _fieldName = fieldName;
30780
      }
30781
 
30782
      public short getThriftFieldId() {
30783
        return _thriftId;
30784
      }
30785
 
30786
      public String getFieldName() {
30787
        return _fieldName;
30788
      }
30789
    }
30790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30791
    static {
30792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
30795
    }
30796
 
30797
    public getIgnoredWarehouseidsAndItemids_args() {
30798
    }
30799
 
30800
    /**
30801
     * Performs a deep copy on <i>other</i>.
30802
     */
30803
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
30804
    }
30805
 
30806
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
30807
      return new getIgnoredWarehouseidsAndItemids_args(this);
30808
    }
30809
 
30810
    @Override
30811
    public void clear() {
30812
    }
30813
 
30814
    public void setFieldValue(_Fields field, Object value) {
30815
      switch (field) {
30816
      }
30817
    }
30818
 
30819
    public Object getFieldValue(_Fields field) {
30820
      switch (field) {
30821
      }
30822
      throw new IllegalStateException();
30823
    }
30824
 
30825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30826
    public boolean isSet(_Fields field) {
30827
      if (field == null) {
30828
        throw new IllegalArgumentException();
30829
      }
30830
 
30831
      switch (field) {
30832
      }
30833
      throw new IllegalStateException();
30834
    }
30835
 
30836
    @Override
30837
    public boolean equals(Object that) {
30838
      if (that == null)
30839
        return false;
30840
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
30841
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
30842
      return false;
30843
    }
30844
 
30845
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
30846
      if (that == null)
30847
        return false;
30848
 
30849
      return true;
30850
    }
30851
 
30852
    @Override
30853
    public int hashCode() {
30854
      return 0;
30855
    }
30856
 
30857
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
30858
      if (!getClass().equals(other.getClass())) {
30859
        return getClass().getName().compareTo(other.getClass().getName());
30860
      }
30861
 
30862
      int lastComparison = 0;
30863
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
30864
 
30865
      return 0;
30866
    }
30867
 
30868
    public _Fields fieldForId(int fieldId) {
30869
      return _Fields.findByThriftId(fieldId);
30870
    }
30871
 
30872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30873
      org.apache.thrift.protocol.TField field;
30874
      iprot.readStructBegin();
30875
      while (true)
30876
      {
30877
        field = iprot.readFieldBegin();
30878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30879
          break;
30880
        }
30881
        switch (field.id) {
30882
          default:
30883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30884
        }
30885
        iprot.readFieldEnd();
30886
      }
30887
      iprot.readStructEnd();
30888
      validate();
30889
    }
30890
 
30891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30892
      validate();
30893
 
30894
      oprot.writeStructBegin(STRUCT_DESC);
30895
      oprot.writeFieldStop();
30896
      oprot.writeStructEnd();
30897
    }
30898
 
30899
    @Override
30900
    public String toString() {
30901
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
30902
      boolean first = true;
30903
 
30904
      sb.append(")");
30905
      return sb.toString();
30906
    }
30907
 
30908
    public void validate() throws org.apache.thrift.TException {
30909
      // check for required fields
30910
    }
30911
 
30912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30913
      try {
30914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30915
      } catch (org.apache.thrift.TException te) {
30916
        throw new java.io.IOException(te);
30917
      }
30918
    }
30919
 
30920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30921
      try {
30922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30923
      } catch (org.apache.thrift.TException te) {
30924
        throw new java.io.IOException(te);
30925
      }
30926
    }
30927
 
30928
  }
30929
 
30930
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
30931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
30932
 
30933
    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);
30934
 
30935
    private List<IgnoredInventoryUpdateItems> success; // required
30936
 
30937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30939
      SUCCESS((short)0, "success");
30940
 
30941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30942
 
30943
      static {
30944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30945
          byName.put(field.getFieldName(), field);
30946
        }
30947
      }
30948
 
30949
      /**
30950
       * Find the _Fields constant that matches fieldId, or null if its not found.
30951
       */
30952
      public static _Fields findByThriftId(int fieldId) {
30953
        switch(fieldId) {
30954
          case 0: // SUCCESS
30955
            return SUCCESS;
30956
          default:
30957
            return null;
30958
        }
30959
      }
30960
 
30961
      /**
30962
       * Find the _Fields constant that matches fieldId, throwing an exception
30963
       * if it is not found.
30964
       */
30965
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30966
        _Fields fields = findByThriftId(fieldId);
30967
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30968
        return fields;
30969
      }
30970
 
30971
      /**
30972
       * Find the _Fields constant that matches name, or null if its not found.
30973
       */
30974
      public static _Fields findByName(String name) {
30975
        return byName.get(name);
30976
      }
30977
 
30978
      private final short _thriftId;
30979
      private final String _fieldName;
30980
 
30981
      _Fields(short thriftId, String fieldName) {
30982
        _thriftId = thriftId;
30983
        _fieldName = fieldName;
30984
      }
30985
 
30986
      public short getThriftFieldId() {
30987
        return _thriftId;
30988
      }
30989
 
30990
      public String getFieldName() {
30991
        return _fieldName;
30992
      }
30993
    }
30994
 
30995
    // isset id assignments
30996
 
30997
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30998
    static {
30999
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31000
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31001
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31002
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
31003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
31005
    }
31006
 
31007
    public getIgnoredWarehouseidsAndItemids_result() {
31008
    }
31009
 
31010
    public getIgnoredWarehouseidsAndItemids_result(
31011
      List<IgnoredInventoryUpdateItems> success)
31012
    {
31013
      this();
31014
      this.success = success;
31015
    }
31016
 
31017
    /**
31018
     * Performs a deep copy on <i>other</i>.
31019
     */
31020
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
31021
      if (other.isSetSuccess()) {
31022
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
31023
        for (IgnoredInventoryUpdateItems other_element : other.success) {
31024
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
31025
        }
31026
        this.success = __this__success;
31027
      }
31028
    }
31029
 
31030
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
31031
      return new getIgnoredWarehouseidsAndItemids_result(this);
31032
    }
31033
 
31034
    @Override
31035
    public void clear() {
31036
      this.success = null;
31037
    }
31038
 
31039
    public int getSuccessSize() {
31040
      return (this.success == null) ? 0 : this.success.size();
31041
    }
31042
 
31043
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
31044
      return (this.success == null) ? null : this.success.iterator();
31045
    }
31046
 
31047
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
31048
      if (this.success == null) {
31049
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
31050
      }
31051
      this.success.add(elem);
31052
    }
31053
 
31054
    public List<IgnoredInventoryUpdateItems> getSuccess() {
31055
      return this.success;
31056
    }
31057
 
31058
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
31059
      this.success = success;
31060
    }
31061
 
31062
    public void unsetSuccess() {
31063
      this.success = null;
31064
    }
31065
 
31066
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31067
    public boolean isSetSuccess() {
31068
      return this.success != null;
31069
    }
31070
 
31071
    public void setSuccessIsSet(boolean value) {
31072
      if (!value) {
31073
        this.success = null;
31074
      }
31075
    }
31076
 
31077
    public void setFieldValue(_Fields field, Object value) {
31078
      switch (field) {
31079
      case SUCCESS:
31080
        if (value == null) {
31081
          unsetSuccess();
31082
        } else {
31083
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
31084
        }
31085
        break;
31086
 
31087
      }
31088
    }
31089
 
31090
    public Object getFieldValue(_Fields field) {
31091
      switch (field) {
31092
      case SUCCESS:
31093
        return getSuccess();
31094
 
31095
      }
31096
      throw new IllegalStateException();
31097
    }
31098
 
31099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31100
    public boolean isSet(_Fields field) {
31101
      if (field == null) {
31102
        throw new IllegalArgumentException();
31103
      }
31104
 
31105
      switch (field) {
31106
      case SUCCESS:
31107
        return isSetSuccess();
31108
      }
31109
      throw new IllegalStateException();
31110
    }
31111
 
31112
    @Override
31113
    public boolean equals(Object that) {
31114
      if (that == null)
31115
        return false;
31116
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
31117
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
31118
      return false;
31119
    }
31120
 
31121
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
31122
      if (that == null)
31123
        return false;
31124
 
31125
      boolean this_present_success = true && this.isSetSuccess();
31126
      boolean that_present_success = true && that.isSetSuccess();
31127
      if (this_present_success || that_present_success) {
31128
        if (!(this_present_success && that_present_success))
31129
          return false;
31130
        if (!this.success.equals(that.success))
31131
          return false;
31132
      }
31133
 
31134
      return true;
31135
    }
31136
 
31137
    @Override
31138
    public int hashCode() {
31139
      return 0;
31140
    }
31141
 
31142
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
31143
      if (!getClass().equals(other.getClass())) {
31144
        return getClass().getName().compareTo(other.getClass().getName());
31145
      }
31146
 
31147
      int lastComparison = 0;
31148
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
31149
 
31150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31151
      if (lastComparison != 0) {
31152
        return lastComparison;
31153
      }
31154
      if (isSetSuccess()) {
31155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31156
        if (lastComparison != 0) {
31157
          return lastComparison;
31158
        }
31159
      }
31160
      return 0;
31161
    }
31162
 
31163
    public _Fields fieldForId(int fieldId) {
31164
      return _Fields.findByThriftId(fieldId);
31165
    }
31166
 
31167
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31168
      org.apache.thrift.protocol.TField field;
31169
      iprot.readStructBegin();
31170
      while (true)
31171
      {
31172
        field = iprot.readFieldBegin();
31173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31174
          break;
31175
        }
31176
        switch (field.id) {
31177
          case 0: // SUCCESS
31178
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31179
              {
31180
                org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
31181
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list96.size);
31182
                for (int _i97 = 0; _i97 < _list96.size; ++_i97)
31183
                {
31184
                  IgnoredInventoryUpdateItems _elem98; // required
31185
                  _elem98 = new IgnoredInventoryUpdateItems();
31186
                  _elem98.read(iprot);
31187
                  this.success.add(_elem98);
31188
                }
31189
                iprot.readListEnd();
31190
              }
31191
            } else { 
31192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31193
            }
31194
            break;
31195
          default:
31196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31197
        }
31198
        iprot.readFieldEnd();
31199
      }
31200
      iprot.readStructEnd();
31201
      validate();
31202
    }
31203
 
31204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31205
      oprot.writeStructBegin(STRUCT_DESC);
31206
 
31207
      if (this.isSetSuccess()) {
31208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31209
        {
31210
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31211
          for (IgnoredInventoryUpdateItems _iter99 : this.success)
31212
          {
31213
            _iter99.write(oprot);
31214
          }
31215
          oprot.writeListEnd();
31216
        }
31217
        oprot.writeFieldEnd();
31218
      }
31219
      oprot.writeFieldStop();
31220
      oprot.writeStructEnd();
31221
    }
31222
 
31223
    @Override
31224
    public String toString() {
31225
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
31226
      boolean first = true;
31227
 
31228
      sb.append("success:");
31229
      if (this.success == null) {
31230
        sb.append("null");
31231
      } else {
31232
        sb.append(this.success);
31233
      }
31234
      first = false;
31235
      sb.append(")");
31236
      return sb.toString();
31237
    }
31238
 
31239
    public void validate() throws org.apache.thrift.TException {
31240
      // check for required fields
31241
    }
31242
 
31243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31244
      try {
31245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31246
      } catch (org.apache.thrift.TException te) {
31247
        throw new java.io.IOException(te);
31248
      }
31249
    }
31250
 
31251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31252
      try {
31253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31254
      } catch (org.apache.thrift.TException te) {
31255
        throw new java.io.IOException(te);
31256
      }
31257
    }
31258
 
31259
  }
31260
 
31261
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
31262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
31263
 
31264
    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);
31265
    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);
31266
 
31267
    private long item_id; // required
31268
    private long warehouse_id; // required
31269
 
31270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31272
      ITEM_ID((short)1, "item_id"),
31273
      WAREHOUSE_ID((short)2, "warehouse_id");
31274
 
31275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31276
 
31277
      static {
31278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31279
          byName.put(field.getFieldName(), field);
31280
        }
31281
      }
31282
 
31283
      /**
31284
       * Find the _Fields constant that matches fieldId, or null if its not found.
31285
       */
31286
      public static _Fields findByThriftId(int fieldId) {
31287
        switch(fieldId) {
31288
          case 1: // ITEM_ID
31289
            return ITEM_ID;
31290
          case 2: // WAREHOUSE_ID
31291
            return WAREHOUSE_ID;
31292
          default:
31293
            return null;
31294
        }
31295
      }
31296
 
31297
      /**
31298
       * Find the _Fields constant that matches fieldId, throwing an exception
31299
       * if it is not found.
31300
       */
31301
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31302
        _Fields fields = findByThriftId(fieldId);
31303
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31304
        return fields;
31305
      }
31306
 
31307
      /**
31308
       * Find the _Fields constant that matches name, or null if its not found.
31309
       */
31310
      public static _Fields findByName(String name) {
31311
        return byName.get(name);
31312
      }
31313
 
31314
      private final short _thriftId;
31315
      private final String _fieldName;
31316
 
31317
      _Fields(short thriftId, String fieldName) {
31318
        _thriftId = thriftId;
31319
        _fieldName = fieldName;
31320
      }
31321
 
31322
      public short getThriftFieldId() {
31323
        return _thriftId;
31324
      }
31325
 
31326
      public String getFieldName() {
31327
        return _fieldName;
31328
      }
31329
    }
31330
 
31331
    // isset id assignments
31332
    private static final int __ITEM_ID_ISSET_ID = 0;
31333
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
31334
    private BitSet __isset_bit_vector = new BitSet(2);
31335
 
31336
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31337
    static {
31338
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31339
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31340
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31341
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31343
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31344
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
31345
    }
31346
 
31347
    public insertItemtoIgnoreInventoryUpdatelist_args() {
31348
    }
31349
 
31350
    public insertItemtoIgnoreInventoryUpdatelist_args(
31351
      long item_id,
31352
      long warehouse_id)
31353
    {
31354
      this();
31355
      this.item_id = item_id;
31356
      setItem_idIsSet(true);
31357
      this.warehouse_id = warehouse_id;
31358
      setWarehouse_idIsSet(true);
31359
    }
31360
 
31361
    /**
31362
     * Performs a deep copy on <i>other</i>.
31363
     */
31364
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
31365
      __isset_bit_vector.clear();
31366
      __isset_bit_vector.or(other.__isset_bit_vector);
31367
      this.item_id = other.item_id;
31368
      this.warehouse_id = other.warehouse_id;
31369
    }
31370
 
31371
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
31372
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
31373
    }
31374
 
31375
    @Override
31376
    public void clear() {
31377
      setItem_idIsSet(false);
31378
      this.item_id = 0;
31379
      setWarehouse_idIsSet(false);
31380
      this.warehouse_id = 0;
31381
    }
31382
 
31383
    public long getItem_id() {
31384
      return this.item_id;
31385
    }
31386
 
31387
    public void setItem_id(long item_id) {
31388
      this.item_id = item_id;
31389
      setItem_idIsSet(true);
31390
    }
31391
 
31392
    public void unsetItem_id() {
31393
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
31394
    }
31395
 
31396
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
31397
    public boolean isSetItem_id() {
31398
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
31399
    }
31400
 
31401
    public void setItem_idIsSet(boolean value) {
31402
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
31403
    }
31404
 
31405
    public long getWarehouse_id() {
31406
      return this.warehouse_id;
31407
    }
31408
 
31409
    public void setWarehouse_id(long warehouse_id) {
31410
      this.warehouse_id = warehouse_id;
31411
      setWarehouse_idIsSet(true);
31412
    }
31413
 
31414
    public void unsetWarehouse_id() {
31415
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
31416
    }
31417
 
31418
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
31419
    public boolean isSetWarehouse_id() {
31420
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
31421
    }
31422
 
31423
    public void setWarehouse_idIsSet(boolean value) {
31424
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
31425
    }
31426
 
31427
    public void setFieldValue(_Fields field, Object value) {
31428
      switch (field) {
31429
      case ITEM_ID:
31430
        if (value == null) {
31431
          unsetItem_id();
31432
        } else {
31433
          setItem_id((Long)value);
31434
        }
31435
        break;
31436
 
31437
      case WAREHOUSE_ID:
31438
        if (value == null) {
31439
          unsetWarehouse_id();
31440
        } else {
31441
          setWarehouse_id((Long)value);
31442
        }
31443
        break;
31444
 
31445
      }
31446
    }
31447
 
31448
    public Object getFieldValue(_Fields field) {
31449
      switch (field) {
31450
      case ITEM_ID:
31451
        return Long.valueOf(getItem_id());
31452
 
31453
      case WAREHOUSE_ID:
31454
        return Long.valueOf(getWarehouse_id());
31455
 
31456
      }
31457
      throw new IllegalStateException();
31458
    }
31459
 
31460
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31461
    public boolean isSet(_Fields field) {
31462
      if (field == null) {
31463
        throw new IllegalArgumentException();
31464
      }
31465
 
31466
      switch (field) {
31467
      case ITEM_ID:
31468
        return isSetItem_id();
31469
      case WAREHOUSE_ID:
31470
        return isSetWarehouse_id();
31471
      }
31472
      throw new IllegalStateException();
31473
    }
31474
 
31475
    @Override
31476
    public boolean equals(Object that) {
31477
      if (that == null)
31478
        return false;
31479
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
31480
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
31481
      return false;
31482
    }
31483
 
31484
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
31485
      if (that == null)
31486
        return false;
31487
 
31488
      boolean this_present_item_id = true;
31489
      boolean that_present_item_id = true;
31490
      if (this_present_item_id || that_present_item_id) {
31491
        if (!(this_present_item_id && that_present_item_id))
31492
          return false;
31493
        if (this.item_id != that.item_id)
31494
          return false;
31495
      }
31496
 
31497
      boolean this_present_warehouse_id = true;
31498
      boolean that_present_warehouse_id = true;
31499
      if (this_present_warehouse_id || that_present_warehouse_id) {
31500
        if (!(this_present_warehouse_id && that_present_warehouse_id))
31501
          return false;
31502
        if (this.warehouse_id != that.warehouse_id)
31503
          return false;
31504
      }
31505
 
31506
      return true;
31507
    }
31508
 
31509
    @Override
31510
    public int hashCode() {
31511
      return 0;
31512
    }
31513
 
31514
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
31515
      if (!getClass().equals(other.getClass())) {
31516
        return getClass().getName().compareTo(other.getClass().getName());
31517
      }
31518
 
31519
      int lastComparison = 0;
31520
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
31521
 
31522
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
31523
      if (lastComparison != 0) {
31524
        return lastComparison;
31525
      }
31526
      if (isSetItem_id()) {
31527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
31528
        if (lastComparison != 0) {
31529
          return lastComparison;
31530
        }
31531
      }
31532
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
31533
      if (lastComparison != 0) {
31534
        return lastComparison;
31535
      }
31536
      if (isSetWarehouse_id()) {
31537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
31538
        if (lastComparison != 0) {
31539
          return lastComparison;
31540
        }
31541
      }
31542
      return 0;
31543
    }
31544
 
31545
    public _Fields fieldForId(int fieldId) {
31546
      return _Fields.findByThriftId(fieldId);
31547
    }
31548
 
31549
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31550
      org.apache.thrift.protocol.TField field;
31551
      iprot.readStructBegin();
31552
      while (true)
31553
      {
31554
        field = iprot.readFieldBegin();
31555
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31556
          break;
31557
        }
31558
        switch (field.id) {
31559
          case 1: // ITEM_ID
31560
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31561
              this.item_id = iprot.readI64();
31562
              setItem_idIsSet(true);
31563
            } else { 
31564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31565
            }
31566
            break;
31567
          case 2: // WAREHOUSE_ID
31568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31569
              this.warehouse_id = iprot.readI64();
31570
              setWarehouse_idIsSet(true);
31571
            } else { 
31572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31573
            }
31574
            break;
31575
          default:
31576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31577
        }
31578
        iprot.readFieldEnd();
31579
      }
31580
      iprot.readStructEnd();
31581
      validate();
31582
    }
31583
 
31584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31585
      validate();
31586
 
31587
      oprot.writeStructBegin(STRUCT_DESC);
31588
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31589
      oprot.writeI64(this.item_id);
31590
      oprot.writeFieldEnd();
31591
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31592
      oprot.writeI64(this.warehouse_id);
31593
      oprot.writeFieldEnd();
31594
      oprot.writeFieldStop();
31595
      oprot.writeStructEnd();
31596
    }
31597
 
31598
    @Override
31599
    public String toString() {
31600
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
31601
      boolean first = true;
31602
 
31603
      sb.append("item_id:");
31604
      sb.append(this.item_id);
31605
      first = false;
31606
      if (!first) sb.append(", ");
31607
      sb.append("warehouse_id:");
31608
      sb.append(this.warehouse_id);
31609
      first = false;
31610
      sb.append(")");
31611
      return sb.toString();
31612
    }
31613
 
31614
    public void validate() throws org.apache.thrift.TException {
31615
      // check for required fields
31616
    }
31617
 
31618
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31619
      try {
31620
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31621
      } catch (org.apache.thrift.TException te) {
31622
        throw new java.io.IOException(te);
31623
      }
31624
    }
31625
 
31626
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31627
      try {
31628
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31629
        __isset_bit_vector = new BitSet(1);
31630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31631
      } catch (org.apache.thrift.TException te) {
31632
        throw new java.io.IOException(te);
31633
      }
31634
    }
31635
 
31636
  }
31637
 
31638
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
31639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
31640
 
31641
    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);
31642
 
31643
    private boolean success; // required
31644
 
31645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31647
      SUCCESS((short)0, "success");
31648
 
31649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31650
 
31651
      static {
31652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31653
          byName.put(field.getFieldName(), field);
31654
        }
31655
      }
31656
 
31657
      /**
31658
       * Find the _Fields constant that matches fieldId, or null if its not found.
31659
       */
31660
      public static _Fields findByThriftId(int fieldId) {
31661
        switch(fieldId) {
31662
          case 0: // SUCCESS
31663
            return SUCCESS;
31664
          default:
31665
            return null;
31666
        }
31667
      }
31668
 
31669
      /**
31670
       * Find the _Fields constant that matches fieldId, throwing an exception
31671
       * if it is not found.
31672
       */
31673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31674
        _Fields fields = findByThriftId(fieldId);
31675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31676
        return fields;
31677
      }
31678
 
31679
      /**
31680
       * Find the _Fields constant that matches name, or null if its not found.
31681
       */
31682
      public static _Fields findByName(String name) {
31683
        return byName.get(name);
31684
      }
31685
 
31686
      private final short _thriftId;
31687
      private final String _fieldName;
31688
 
31689
      _Fields(short thriftId, String fieldName) {
31690
        _thriftId = thriftId;
31691
        _fieldName = fieldName;
31692
      }
31693
 
31694
      public short getThriftFieldId() {
31695
        return _thriftId;
31696
      }
31697
 
31698
      public String getFieldName() {
31699
        return _fieldName;
31700
      }
31701
    }
31702
 
31703
    // isset id assignments
31704
    private static final int __SUCCESS_ISSET_ID = 0;
31705
    private BitSet __isset_bit_vector = new BitSet(1);
31706
 
31707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31708
    static {
31709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31710
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31712
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31713
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
31714
    }
31715
 
31716
    public insertItemtoIgnoreInventoryUpdatelist_result() {
31717
    }
31718
 
31719
    public insertItemtoIgnoreInventoryUpdatelist_result(
31720
      boolean success)
31721
    {
31722
      this();
31723
      this.success = success;
31724
      setSuccessIsSet(true);
31725
    }
31726
 
31727
    /**
31728
     * Performs a deep copy on <i>other</i>.
31729
     */
31730
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
31731
      __isset_bit_vector.clear();
31732
      __isset_bit_vector.or(other.__isset_bit_vector);
31733
      this.success = other.success;
31734
    }
31735
 
31736
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
31737
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
31738
    }
31739
 
31740
    @Override
31741
    public void clear() {
31742
      setSuccessIsSet(false);
31743
      this.success = false;
31744
    }
31745
 
31746
    public boolean isSuccess() {
31747
      return this.success;
31748
    }
31749
 
31750
    public void setSuccess(boolean success) {
31751
      this.success = success;
31752
      setSuccessIsSet(true);
31753
    }
31754
 
31755
    public void unsetSuccess() {
31756
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31757
    }
31758
 
31759
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31760
    public boolean isSetSuccess() {
31761
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31762
    }
31763
 
31764
    public void setSuccessIsSet(boolean value) {
31765
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31766
    }
31767
 
31768
    public void setFieldValue(_Fields field, Object value) {
31769
      switch (field) {
31770
      case SUCCESS:
31771
        if (value == null) {
31772
          unsetSuccess();
31773
        } else {
31774
          setSuccess((Boolean)value);
31775
        }
31776
        break;
31777
 
31778
      }
31779
    }
31780
 
31781
    public Object getFieldValue(_Fields field) {
31782
      switch (field) {
31783
      case SUCCESS:
31784
        return Boolean.valueOf(isSuccess());
31785
 
31786
      }
31787
      throw new IllegalStateException();
31788
    }
31789
 
31790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31791
    public boolean isSet(_Fields field) {
31792
      if (field == null) {
31793
        throw new IllegalArgumentException();
31794
      }
31795
 
31796
      switch (field) {
31797
      case SUCCESS:
31798
        return isSetSuccess();
31799
      }
31800
      throw new IllegalStateException();
31801
    }
31802
 
31803
    @Override
31804
    public boolean equals(Object that) {
31805
      if (that == null)
31806
        return false;
31807
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
31808
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
31809
      return false;
31810
    }
31811
 
31812
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
31813
      if (that == null)
31814
        return false;
31815
 
31816
      boolean this_present_success = true;
31817
      boolean that_present_success = true;
31818
      if (this_present_success || that_present_success) {
31819
        if (!(this_present_success && that_present_success))
31820
          return false;
31821
        if (this.success != that.success)
31822
          return false;
31823
      }
31824
 
31825
      return true;
31826
    }
31827
 
31828
    @Override
31829
    public int hashCode() {
31830
      return 0;
31831
    }
31832
 
31833
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
31834
      if (!getClass().equals(other.getClass())) {
31835
        return getClass().getName().compareTo(other.getClass().getName());
31836
      }
31837
 
31838
      int lastComparison = 0;
31839
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
31840
 
31841
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31842
      if (lastComparison != 0) {
31843
        return lastComparison;
31844
      }
31845
      if (isSetSuccess()) {
31846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31847
        if (lastComparison != 0) {
31848
          return lastComparison;
31849
        }
31850
      }
31851
      return 0;
31852
    }
31853
 
31854
    public _Fields fieldForId(int fieldId) {
31855
      return _Fields.findByThriftId(fieldId);
31856
    }
31857
 
31858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31859
      org.apache.thrift.protocol.TField field;
31860
      iprot.readStructBegin();
31861
      while (true)
31862
      {
31863
        field = iprot.readFieldBegin();
31864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31865
          break;
31866
        }
31867
        switch (field.id) {
31868
          case 0: // SUCCESS
31869
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31870
              this.success = iprot.readBool();
31871
              setSuccessIsSet(true);
31872
            } else { 
31873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31874
            }
31875
            break;
31876
          default:
31877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31878
        }
31879
        iprot.readFieldEnd();
31880
      }
31881
      iprot.readStructEnd();
31882
      validate();
31883
    }
31884
 
31885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31886
      oprot.writeStructBegin(STRUCT_DESC);
31887
 
31888
      if (this.isSetSuccess()) {
31889
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31890
        oprot.writeBool(this.success);
31891
        oprot.writeFieldEnd();
31892
      }
31893
      oprot.writeFieldStop();
31894
      oprot.writeStructEnd();
31895
    }
31896
 
31897
    @Override
31898
    public String toString() {
31899
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
31900
      boolean first = true;
31901
 
31902
      sb.append("success:");
31903
      sb.append(this.success);
31904
      first = false;
31905
      sb.append(")");
31906
      return sb.toString();
31907
    }
31908
 
31909
    public void validate() throws org.apache.thrift.TException {
31910
      // check for required fields
31911
    }
31912
 
31913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31914
      try {
31915
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31916
      } catch (org.apache.thrift.TException te) {
31917
        throw new java.io.IOException(te);
31918
      }
31919
    }
31920
 
31921
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31922
      try {
31923
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31924
      } catch (org.apache.thrift.TException te) {
31925
        throw new java.io.IOException(te);
31926
      }
31927
    }
31928
 
31929
  }
31930
 
31931
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
31932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
31933
 
31934
    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);
31935
    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);
31936
 
31937
    private long item_id; // required
31938
    private long warehouse_id; // required
31939
 
31940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31942
      ITEM_ID((short)1, "item_id"),
31943
      WAREHOUSE_ID((short)2, "warehouse_id");
31944
 
31945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31946
 
31947
      static {
31948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31949
          byName.put(field.getFieldName(), field);
31950
        }
31951
      }
31952
 
31953
      /**
31954
       * Find the _Fields constant that matches fieldId, or null if its not found.
31955
       */
31956
      public static _Fields findByThriftId(int fieldId) {
31957
        switch(fieldId) {
31958
          case 1: // ITEM_ID
31959
            return ITEM_ID;
31960
          case 2: // WAREHOUSE_ID
31961
            return WAREHOUSE_ID;
31962
          default:
31963
            return null;
31964
        }
31965
      }
31966
 
31967
      /**
31968
       * Find the _Fields constant that matches fieldId, throwing an exception
31969
       * if it is not found.
31970
       */
31971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31972
        _Fields fields = findByThriftId(fieldId);
31973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31974
        return fields;
31975
      }
31976
 
31977
      /**
31978
       * Find the _Fields constant that matches name, or null if its not found.
31979
       */
31980
      public static _Fields findByName(String name) {
31981
        return byName.get(name);
31982
      }
31983
 
31984
      private final short _thriftId;
31985
      private final String _fieldName;
31986
 
31987
      _Fields(short thriftId, String fieldName) {
31988
        _thriftId = thriftId;
31989
        _fieldName = fieldName;
31990
      }
31991
 
31992
      public short getThriftFieldId() {
31993
        return _thriftId;
31994
      }
31995
 
31996
      public String getFieldName() {
31997
        return _fieldName;
31998
      }
31999
    }
32000
 
32001
    // isset id assignments
32002
    private static final int __ITEM_ID_ISSET_ID = 0;
32003
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
32004
    private BitSet __isset_bit_vector = new BitSet(2);
32005
 
32006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32007
    static {
32008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32009
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32010
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32011
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32012
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32013
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32014
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
32015
    }
32016
 
32017
    public deleteItemFromIgnoredInventoryUpdateList_args() {
32018
    }
32019
 
32020
    public deleteItemFromIgnoredInventoryUpdateList_args(
32021
      long item_id,
32022
      long warehouse_id)
32023
    {
32024
      this();
32025
      this.item_id = item_id;
32026
      setItem_idIsSet(true);
32027
      this.warehouse_id = warehouse_id;
32028
      setWarehouse_idIsSet(true);
32029
    }
32030
 
32031
    /**
32032
     * Performs a deep copy on <i>other</i>.
32033
     */
32034
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
32035
      __isset_bit_vector.clear();
32036
      __isset_bit_vector.or(other.__isset_bit_vector);
32037
      this.item_id = other.item_id;
32038
      this.warehouse_id = other.warehouse_id;
32039
    }
32040
 
32041
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
32042
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
32043
    }
32044
 
32045
    @Override
32046
    public void clear() {
32047
      setItem_idIsSet(false);
32048
      this.item_id = 0;
32049
      setWarehouse_idIsSet(false);
32050
      this.warehouse_id = 0;
32051
    }
32052
 
32053
    public long getItem_id() {
32054
      return this.item_id;
32055
    }
32056
 
32057
    public void setItem_id(long item_id) {
32058
      this.item_id = item_id;
32059
      setItem_idIsSet(true);
32060
    }
32061
 
32062
    public void unsetItem_id() {
32063
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32064
    }
32065
 
32066
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32067
    public boolean isSetItem_id() {
32068
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32069
    }
32070
 
32071
    public void setItem_idIsSet(boolean value) {
32072
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32073
    }
32074
 
32075
    public long getWarehouse_id() {
32076
      return this.warehouse_id;
32077
    }
32078
 
32079
    public void setWarehouse_id(long warehouse_id) {
32080
      this.warehouse_id = warehouse_id;
32081
      setWarehouse_idIsSet(true);
32082
    }
32083
 
32084
    public void unsetWarehouse_id() {
32085
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
32086
    }
32087
 
32088
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
32089
    public boolean isSetWarehouse_id() {
32090
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
32091
    }
32092
 
32093
    public void setWarehouse_idIsSet(boolean value) {
32094
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
32095
    }
32096
 
32097
    public void setFieldValue(_Fields field, Object value) {
32098
      switch (field) {
32099
      case ITEM_ID:
32100
        if (value == null) {
32101
          unsetItem_id();
32102
        } else {
32103
          setItem_id((Long)value);
32104
        }
32105
        break;
32106
 
32107
      case WAREHOUSE_ID:
32108
        if (value == null) {
32109
          unsetWarehouse_id();
32110
        } else {
32111
          setWarehouse_id((Long)value);
32112
        }
32113
        break;
32114
 
32115
      }
32116
    }
32117
 
32118
    public Object getFieldValue(_Fields field) {
32119
      switch (field) {
32120
      case ITEM_ID:
32121
        return Long.valueOf(getItem_id());
32122
 
32123
      case WAREHOUSE_ID:
32124
        return Long.valueOf(getWarehouse_id());
32125
 
32126
      }
32127
      throw new IllegalStateException();
32128
    }
32129
 
32130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32131
    public boolean isSet(_Fields field) {
32132
      if (field == null) {
32133
        throw new IllegalArgumentException();
32134
      }
32135
 
32136
      switch (field) {
32137
      case ITEM_ID:
32138
        return isSetItem_id();
32139
      case WAREHOUSE_ID:
32140
        return isSetWarehouse_id();
32141
      }
32142
      throw new IllegalStateException();
32143
    }
32144
 
32145
    @Override
32146
    public boolean equals(Object that) {
32147
      if (that == null)
32148
        return false;
32149
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
32150
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
32151
      return false;
32152
    }
32153
 
32154
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
32155
      if (that == null)
32156
        return false;
32157
 
32158
      boolean this_present_item_id = true;
32159
      boolean that_present_item_id = true;
32160
      if (this_present_item_id || that_present_item_id) {
32161
        if (!(this_present_item_id && that_present_item_id))
32162
          return false;
32163
        if (this.item_id != that.item_id)
32164
          return false;
32165
      }
32166
 
32167
      boolean this_present_warehouse_id = true;
32168
      boolean that_present_warehouse_id = true;
32169
      if (this_present_warehouse_id || that_present_warehouse_id) {
32170
        if (!(this_present_warehouse_id && that_present_warehouse_id))
32171
          return false;
32172
        if (this.warehouse_id != that.warehouse_id)
32173
          return false;
32174
      }
32175
 
32176
      return true;
32177
    }
32178
 
32179
    @Override
32180
    public int hashCode() {
32181
      return 0;
32182
    }
32183
 
32184
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
32185
      if (!getClass().equals(other.getClass())) {
32186
        return getClass().getName().compareTo(other.getClass().getName());
32187
      }
32188
 
32189
      int lastComparison = 0;
32190
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
32191
 
32192
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32193
      if (lastComparison != 0) {
32194
        return lastComparison;
32195
      }
32196
      if (isSetItem_id()) {
32197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32198
        if (lastComparison != 0) {
32199
          return lastComparison;
32200
        }
32201
      }
32202
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
32203
      if (lastComparison != 0) {
32204
        return lastComparison;
32205
      }
32206
      if (isSetWarehouse_id()) {
32207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
32208
        if (lastComparison != 0) {
32209
          return lastComparison;
32210
        }
32211
      }
32212
      return 0;
32213
    }
32214
 
32215
    public _Fields fieldForId(int fieldId) {
32216
      return _Fields.findByThriftId(fieldId);
32217
    }
32218
 
32219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32220
      org.apache.thrift.protocol.TField field;
32221
      iprot.readStructBegin();
32222
      while (true)
32223
      {
32224
        field = iprot.readFieldBegin();
32225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32226
          break;
32227
        }
32228
        switch (field.id) {
32229
          case 1: // ITEM_ID
32230
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32231
              this.item_id = iprot.readI64();
32232
              setItem_idIsSet(true);
32233
            } else { 
32234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32235
            }
32236
            break;
32237
          case 2: // WAREHOUSE_ID
32238
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32239
              this.warehouse_id = iprot.readI64();
32240
              setWarehouse_idIsSet(true);
32241
            } else { 
32242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32243
            }
32244
            break;
32245
          default:
32246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32247
        }
32248
        iprot.readFieldEnd();
32249
      }
32250
      iprot.readStructEnd();
32251
      validate();
32252
    }
32253
 
32254
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32255
      validate();
32256
 
32257
      oprot.writeStructBegin(STRUCT_DESC);
32258
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32259
      oprot.writeI64(this.item_id);
32260
      oprot.writeFieldEnd();
32261
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32262
      oprot.writeI64(this.warehouse_id);
32263
      oprot.writeFieldEnd();
32264
      oprot.writeFieldStop();
32265
      oprot.writeStructEnd();
32266
    }
32267
 
32268
    @Override
32269
    public String toString() {
32270
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
32271
      boolean first = true;
32272
 
32273
      sb.append("item_id:");
32274
      sb.append(this.item_id);
32275
      first = false;
32276
      if (!first) sb.append(", ");
32277
      sb.append("warehouse_id:");
32278
      sb.append(this.warehouse_id);
32279
      first = false;
32280
      sb.append(")");
32281
      return sb.toString();
32282
    }
32283
 
32284
    public void validate() throws org.apache.thrift.TException {
32285
      // check for required fields
32286
    }
32287
 
32288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32289
      try {
32290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32291
      } catch (org.apache.thrift.TException te) {
32292
        throw new java.io.IOException(te);
32293
      }
32294
    }
32295
 
32296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32297
      try {
32298
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32299
        __isset_bit_vector = new BitSet(1);
32300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32301
      } catch (org.apache.thrift.TException te) {
32302
        throw new java.io.IOException(te);
32303
      }
32304
    }
32305
 
32306
  }
32307
 
32308
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
32309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
32310
 
32311
    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);
32312
 
32313
    private boolean success; // required
32314
 
32315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32317
      SUCCESS((short)0, "success");
32318
 
32319
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32320
 
32321
      static {
32322
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32323
          byName.put(field.getFieldName(), field);
32324
        }
32325
      }
32326
 
32327
      /**
32328
       * Find the _Fields constant that matches fieldId, or null if its not found.
32329
       */
32330
      public static _Fields findByThriftId(int fieldId) {
32331
        switch(fieldId) {
32332
          case 0: // SUCCESS
32333
            return SUCCESS;
32334
          default:
32335
            return null;
32336
        }
32337
      }
32338
 
32339
      /**
32340
       * Find the _Fields constant that matches fieldId, throwing an exception
32341
       * if it is not found.
32342
       */
32343
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32344
        _Fields fields = findByThriftId(fieldId);
32345
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32346
        return fields;
32347
      }
32348
 
32349
      /**
32350
       * Find the _Fields constant that matches name, or null if its not found.
32351
       */
32352
      public static _Fields findByName(String name) {
32353
        return byName.get(name);
32354
      }
32355
 
32356
      private final short _thriftId;
32357
      private final String _fieldName;
32358
 
32359
      _Fields(short thriftId, String fieldName) {
32360
        _thriftId = thriftId;
32361
        _fieldName = fieldName;
32362
      }
32363
 
32364
      public short getThriftFieldId() {
32365
        return _thriftId;
32366
      }
32367
 
32368
      public String getFieldName() {
32369
        return _fieldName;
32370
      }
32371
    }
32372
 
32373
    // isset id assignments
32374
    private static final int __SUCCESS_ISSET_ID = 0;
32375
    private BitSet __isset_bit_vector = new BitSet(1);
32376
 
32377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32378
    static {
32379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32380
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
32384
    }
32385
 
32386
    public deleteItemFromIgnoredInventoryUpdateList_result() {
32387
    }
32388
 
32389
    public deleteItemFromIgnoredInventoryUpdateList_result(
32390
      boolean success)
32391
    {
32392
      this();
32393
      this.success = success;
32394
      setSuccessIsSet(true);
32395
    }
32396
 
32397
    /**
32398
     * Performs a deep copy on <i>other</i>.
32399
     */
32400
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
32401
      __isset_bit_vector.clear();
32402
      __isset_bit_vector.or(other.__isset_bit_vector);
32403
      this.success = other.success;
32404
    }
32405
 
32406
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
32407
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
32408
    }
32409
 
32410
    @Override
32411
    public void clear() {
32412
      setSuccessIsSet(false);
32413
      this.success = false;
32414
    }
32415
 
32416
    public boolean isSuccess() {
32417
      return this.success;
32418
    }
32419
 
32420
    public void setSuccess(boolean success) {
32421
      this.success = success;
32422
      setSuccessIsSet(true);
32423
    }
32424
 
32425
    public void unsetSuccess() {
32426
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32427
    }
32428
 
32429
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32430
    public boolean isSetSuccess() {
32431
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32432
    }
32433
 
32434
    public void setSuccessIsSet(boolean value) {
32435
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32436
    }
32437
 
32438
    public void setFieldValue(_Fields field, Object value) {
32439
      switch (field) {
32440
      case SUCCESS:
32441
        if (value == null) {
32442
          unsetSuccess();
32443
        } else {
32444
          setSuccess((Boolean)value);
32445
        }
32446
        break;
32447
 
32448
      }
32449
    }
32450
 
32451
    public Object getFieldValue(_Fields field) {
32452
      switch (field) {
32453
      case SUCCESS:
32454
        return Boolean.valueOf(isSuccess());
32455
 
32456
      }
32457
      throw new IllegalStateException();
32458
    }
32459
 
32460
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32461
    public boolean isSet(_Fields field) {
32462
      if (field == null) {
32463
        throw new IllegalArgumentException();
32464
      }
32465
 
32466
      switch (field) {
32467
      case SUCCESS:
32468
        return isSetSuccess();
32469
      }
32470
      throw new IllegalStateException();
32471
    }
32472
 
32473
    @Override
32474
    public boolean equals(Object that) {
32475
      if (that == null)
32476
        return false;
32477
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
32478
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
32479
      return false;
32480
    }
32481
 
32482
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
32483
      if (that == null)
32484
        return false;
32485
 
32486
      boolean this_present_success = true;
32487
      boolean that_present_success = true;
32488
      if (this_present_success || that_present_success) {
32489
        if (!(this_present_success && that_present_success))
32490
          return false;
32491
        if (this.success != that.success)
32492
          return false;
32493
      }
32494
 
32495
      return true;
32496
    }
32497
 
32498
    @Override
32499
    public int hashCode() {
32500
      return 0;
32501
    }
32502
 
32503
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
32504
      if (!getClass().equals(other.getClass())) {
32505
        return getClass().getName().compareTo(other.getClass().getName());
32506
      }
32507
 
32508
      int lastComparison = 0;
32509
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
32510
 
32511
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32512
      if (lastComparison != 0) {
32513
        return lastComparison;
32514
      }
32515
      if (isSetSuccess()) {
32516
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32517
        if (lastComparison != 0) {
32518
          return lastComparison;
32519
        }
32520
      }
32521
      return 0;
32522
    }
32523
 
32524
    public _Fields fieldForId(int fieldId) {
32525
      return _Fields.findByThriftId(fieldId);
32526
    }
32527
 
32528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32529
      org.apache.thrift.protocol.TField field;
32530
      iprot.readStructBegin();
32531
      while (true)
32532
      {
32533
        field = iprot.readFieldBegin();
32534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32535
          break;
32536
        }
32537
        switch (field.id) {
32538
          case 0: // SUCCESS
32539
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32540
              this.success = iprot.readBool();
32541
              setSuccessIsSet(true);
32542
            } else { 
32543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32544
            }
32545
            break;
32546
          default:
32547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32548
        }
32549
        iprot.readFieldEnd();
32550
      }
32551
      iprot.readStructEnd();
32552
      validate();
32553
    }
32554
 
32555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32556
      oprot.writeStructBegin(STRUCT_DESC);
32557
 
32558
      if (this.isSetSuccess()) {
32559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32560
        oprot.writeBool(this.success);
32561
        oprot.writeFieldEnd();
32562
      }
32563
      oprot.writeFieldStop();
32564
      oprot.writeStructEnd();
32565
    }
32566
 
32567
    @Override
32568
    public String toString() {
32569
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
32570
      boolean first = true;
32571
 
32572
      sb.append("success:");
32573
      sb.append(this.success);
32574
      first = false;
32575
      sb.append(")");
32576
      return sb.toString();
32577
    }
32578
 
32579
    public void validate() throws org.apache.thrift.TException {
32580
      // check for required fields
32581
    }
32582
 
32583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32584
      try {
32585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32586
      } catch (org.apache.thrift.TException te) {
32587
        throw new java.io.IOException(te);
32588
      }
32589
    }
32590
 
32591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32592
      try {
32593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32594
      } catch (org.apache.thrift.TException te) {
32595
        throw new java.io.IOException(te);
32596
      }
32597
    }
32598
 
32599
  }
32600
 
32601
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
32602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
32603
 
32604
 
32605
 
32606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32608
;
32609
 
32610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32611
 
32612
      static {
32613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32614
          byName.put(field.getFieldName(), field);
32615
        }
32616
      }
32617
 
32618
      /**
32619
       * Find the _Fields constant that matches fieldId, or null if its not found.
32620
       */
32621
      public static _Fields findByThriftId(int fieldId) {
32622
        switch(fieldId) {
32623
          default:
32624
            return null;
32625
        }
32626
      }
32627
 
32628
      /**
32629
       * Find the _Fields constant that matches fieldId, throwing an exception
32630
       * if it is not found.
32631
       */
32632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32633
        _Fields fields = findByThriftId(fieldId);
32634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32635
        return fields;
32636
      }
32637
 
32638
      /**
32639
       * Find the _Fields constant that matches name, or null if its not found.
32640
       */
32641
      public static _Fields findByName(String name) {
32642
        return byName.get(name);
32643
      }
32644
 
32645
      private final short _thriftId;
32646
      private final String _fieldName;
32647
 
32648
      _Fields(short thriftId, String fieldName) {
32649
        _thriftId = thriftId;
32650
        _fieldName = fieldName;
32651
      }
32652
 
32653
      public short getThriftFieldId() {
32654
        return _thriftId;
32655
      }
32656
 
32657
      public String getFieldName() {
32658
        return _fieldName;
32659
      }
32660
    }
32661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32662
    static {
32663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
32666
    }
32667
 
32668
    public getAllIgnoredInventoryupdateItemsCount_args() {
32669
    }
32670
 
32671
    /**
32672
     * Performs a deep copy on <i>other</i>.
32673
     */
32674
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
32675
    }
32676
 
32677
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
32678
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
32679
    }
32680
 
32681
    @Override
32682
    public void clear() {
32683
    }
32684
 
32685
    public void setFieldValue(_Fields field, Object value) {
32686
      switch (field) {
32687
      }
32688
    }
32689
 
32690
    public Object getFieldValue(_Fields field) {
32691
      switch (field) {
32692
      }
32693
      throw new IllegalStateException();
32694
    }
32695
 
32696
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32697
    public boolean isSet(_Fields field) {
32698
      if (field == null) {
32699
        throw new IllegalArgumentException();
32700
      }
32701
 
32702
      switch (field) {
32703
      }
32704
      throw new IllegalStateException();
32705
    }
32706
 
32707
    @Override
32708
    public boolean equals(Object that) {
32709
      if (that == null)
32710
        return false;
32711
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
32712
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
32713
      return false;
32714
    }
32715
 
32716
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
32717
      if (that == null)
32718
        return false;
32719
 
32720
      return true;
32721
    }
32722
 
32723
    @Override
32724
    public int hashCode() {
32725
      return 0;
32726
    }
32727
 
32728
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
32729
      if (!getClass().equals(other.getClass())) {
32730
        return getClass().getName().compareTo(other.getClass().getName());
32731
      }
32732
 
32733
      int lastComparison = 0;
32734
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
32735
 
32736
      return 0;
32737
    }
32738
 
32739
    public _Fields fieldForId(int fieldId) {
32740
      return _Fields.findByThriftId(fieldId);
32741
    }
32742
 
32743
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32744
      org.apache.thrift.protocol.TField field;
32745
      iprot.readStructBegin();
32746
      while (true)
32747
      {
32748
        field = iprot.readFieldBegin();
32749
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32750
          break;
32751
        }
32752
        switch (field.id) {
32753
          default:
32754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32755
        }
32756
        iprot.readFieldEnd();
32757
      }
32758
      iprot.readStructEnd();
32759
      validate();
32760
    }
32761
 
32762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32763
      validate();
32764
 
32765
      oprot.writeStructBegin(STRUCT_DESC);
32766
      oprot.writeFieldStop();
32767
      oprot.writeStructEnd();
32768
    }
32769
 
32770
    @Override
32771
    public String toString() {
32772
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
32773
      boolean first = true;
32774
 
32775
      sb.append(")");
32776
      return sb.toString();
32777
    }
32778
 
32779
    public void validate() throws org.apache.thrift.TException {
32780
      // check for required fields
32781
    }
32782
 
32783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32784
      try {
32785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32786
      } catch (org.apache.thrift.TException te) {
32787
        throw new java.io.IOException(te);
32788
      }
32789
    }
32790
 
32791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32792
      try {
32793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32794
      } catch (org.apache.thrift.TException te) {
32795
        throw new java.io.IOException(te);
32796
      }
32797
    }
32798
 
32799
  }
32800
 
32801
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
32802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
32803
 
32804
    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);
32805
 
32806
    private int success; // required
32807
 
32808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32810
      SUCCESS((short)0, "success");
32811
 
32812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32813
 
32814
      static {
32815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32816
          byName.put(field.getFieldName(), field);
32817
        }
32818
      }
32819
 
32820
      /**
32821
       * Find the _Fields constant that matches fieldId, or null if its not found.
32822
       */
32823
      public static _Fields findByThriftId(int fieldId) {
32824
        switch(fieldId) {
32825
          case 0: // SUCCESS
32826
            return SUCCESS;
32827
          default:
32828
            return null;
32829
        }
32830
      }
32831
 
32832
      /**
32833
       * Find the _Fields constant that matches fieldId, throwing an exception
32834
       * if it is not found.
32835
       */
32836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32837
        _Fields fields = findByThriftId(fieldId);
32838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32839
        return fields;
32840
      }
32841
 
32842
      /**
32843
       * Find the _Fields constant that matches name, or null if its not found.
32844
       */
32845
      public static _Fields findByName(String name) {
32846
        return byName.get(name);
32847
      }
32848
 
32849
      private final short _thriftId;
32850
      private final String _fieldName;
32851
 
32852
      _Fields(short thriftId, String fieldName) {
32853
        _thriftId = thriftId;
32854
        _fieldName = fieldName;
32855
      }
32856
 
32857
      public short getThriftFieldId() {
32858
        return _thriftId;
32859
      }
32860
 
32861
      public String getFieldName() {
32862
        return _fieldName;
32863
      }
32864
    }
32865
 
32866
    // isset id assignments
32867
    private static final int __SUCCESS_ISSET_ID = 0;
32868
    private BitSet __isset_bit_vector = new BitSet(1);
32869
 
32870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32871
    static {
32872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32873
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32874
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
32875
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32876
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
32877
    }
32878
 
32879
    public getAllIgnoredInventoryupdateItemsCount_result() {
32880
    }
32881
 
32882
    public getAllIgnoredInventoryupdateItemsCount_result(
32883
      int success)
32884
    {
32885
      this();
32886
      this.success = success;
32887
      setSuccessIsSet(true);
32888
    }
32889
 
32890
    /**
32891
     * Performs a deep copy on <i>other</i>.
32892
     */
32893
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
32894
      __isset_bit_vector.clear();
32895
      __isset_bit_vector.or(other.__isset_bit_vector);
32896
      this.success = other.success;
32897
    }
32898
 
32899
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
32900
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
32901
    }
32902
 
32903
    @Override
32904
    public void clear() {
32905
      setSuccessIsSet(false);
32906
      this.success = 0;
32907
    }
32908
 
32909
    public int getSuccess() {
32910
      return this.success;
32911
    }
32912
 
32913
    public void setSuccess(int success) {
32914
      this.success = success;
32915
      setSuccessIsSet(true);
32916
    }
32917
 
32918
    public void unsetSuccess() {
32919
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32920
    }
32921
 
32922
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32923
    public boolean isSetSuccess() {
32924
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32925
    }
32926
 
32927
    public void setSuccessIsSet(boolean value) {
32928
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32929
    }
32930
 
32931
    public void setFieldValue(_Fields field, Object value) {
32932
      switch (field) {
32933
      case SUCCESS:
32934
        if (value == null) {
32935
          unsetSuccess();
32936
        } else {
32937
          setSuccess((Integer)value);
32938
        }
32939
        break;
32940
 
32941
      }
32942
    }
32943
 
32944
    public Object getFieldValue(_Fields field) {
32945
      switch (field) {
32946
      case SUCCESS:
32947
        return Integer.valueOf(getSuccess());
32948
 
32949
      }
32950
      throw new IllegalStateException();
32951
    }
32952
 
32953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32954
    public boolean isSet(_Fields field) {
32955
      if (field == null) {
32956
        throw new IllegalArgumentException();
32957
      }
32958
 
32959
      switch (field) {
32960
      case SUCCESS:
32961
        return isSetSuccess();
32962
      }
32963
      throw new IllegalStateException();
32964
    }
32965
 
32966
    @Override
32967
    public boolean equals(Object that) {
32968
      if (that == null)
32969
        return false;
32970
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
32971
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
32972
      return false;
32973
    }
32974
 
32975
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
32976
      if (that == null)
32977
        return false;
32978
 
32979
      boolean this_present_success = true;
32980
      boolean that_present_success = true;
32981
      if (this_present_success || that_present_success) {
32982
        if (!(this_present_success && that_present_success))
32983
          return false;
32984
        if (this.success != that.success)
32985
          return false;
32986
      }
32987
 
32988
      return true;
32989
    }
32990
 
32991
    @Override
32992
    public int hashCode() {
32993
      return 0;
32994
    }
32995
 
32996
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
32997
      if (!getClass().equals(other.getClass())) {
32998
        return getClass().getName().compareTo(other.getClass().getName());
32999
      }
33000
 
33001
      int lastComparison = 0;
33002
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
33003
 
33004
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33005
      if (lastComparison != 0) {
33006
        return lastComparison;
33007
      }
33008
      if (isSetSuccess()) {
33009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33010
        if (lastComparison != 0) {
33011
          return lastComparison;
33012
        }
33013
      }
33014
      return 0;
33015
    }
33016
 
33017
    public _Fields fieldForId(int fieldId) {
33018
      return _Fields.findByThriftId(fieldId);
33019
    }
33020
 
33021
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33022
      org.apache.thrift.protocol.TField field;
33023
      iprot.readStructBegin();
33024
      while (true)
33025
      {
33026
        field = iprot.readFieldBegin();
33027
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33028
          break;
33029
        }
33030
        switch (field.id) {
33031
          case 0: // SUCCESS
33032
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33033
              this.success = iprot.readI32();
33034
              setSuccessIsSet(true);
33035
            } else { 
33036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33037
            }
33038
            break;
33039
          default:
33040
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33041
        }
33042
        iprot.readFieldEnd();
33043
      }
33044
      iprot.readStructEnd();
33045
      validate();
33046
    }
33047
 
33048
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33049
      oprot.writeStructBegin(STRUCT_DESC);
33050
 
33051
      if (this.isSetSuccess()) {
33052
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33053
        oprot.writeI32(this.success);
33054
        oprot.writeFieldEnd();
33055
      }
33056
      oprot.writeFieldStop();
33057
      oprot.writeStructEnd();
33058
    }
33059
 
33060
    @Override
33061
    public String toString() {
33062
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
33063
      boolean first = true;
33064
 
33065
      sb.append("success:");
33066
      sb.append(this.success);
33067
      first = false;
33068
      sb.append(")");
33069
      return sb.toString();
33070
    }
33071
 
33072
    public void validate() throws org.apache.thrift.TException {
33073
      // check for required fields
33074
    }
33075
 
33076
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33077
      try {
33078
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33079
      } catch (org.apache.thrift.TException te) {
33080
        throw new java.io.IOException(te);
33081
      }
33082
    }
33083
 
33084
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33085
      try {
33086
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33087
      } catch (org.apache.thrift.TException te) {
33088
        throw new java.io.IOException(te);
33089
      }
33090
    }
33091
 
33092
  }
33093
 
33094
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
33095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
33096
 
33097
    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);
33098
    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);
33099
 
33100
    private int offset; // required
33101
    private int limit; // required
33102
 
33103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33105
      OFFSET((short)1, "offset"),
33106
      LIMIT((short)2, "limit");
33107
 
33108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33109
 
33110
      static {
33111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33112
          byName.put(field.getFieldName(), field);
33113
        }
33114
      }
33115
 
33116
      /**
33117
       * Find the _Fields constant that matches fieldId, or null if its not found.
33118
       */
33119
      public static _Fields findByThriftId(int fieldId) {
33120
        switch(fieldId) {
33121
          case 1: // OFFSET
33122
            return OFFSET;
33123
          case 2: // LIMIT
33124
            return LIMIT;
33125
          default:
33126
            return null;
33127
        }
33128
      }
33129
 
33130
      /**
33131
       * Find the _Fields constant that matches fieldId, throwing an exception
33132
       * if it is not found.
33133
       */
33134
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33135
        _Fields fields = findByThriftId(fieldId);
33136
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33137
        return fields;
33138
      }
33139
 
33140
      /**
33141
       * Find the _Fields constant that matches name, or null if its not found.
33142
       */
33143
      public static _Fields findByName(String name) {
33144
        return byName.get(name);
33145
      }
33146
 
33147
      private final short _thriftId;
33148
      private final String _fieldName;
33149
 
33150
      _Fields(short thriftId, String fieldName) {
33151
        _thriftId = thriftId;
33152
        _fieldName = fieldName;
33153
      }
33154
 
33155
      public short getThriftFieldId() {
33156
        return _thriftId;
33157
      }
33158
 
33159
      public String getFieldName() {
33160
        return _fieldName;
33161
      }
33162
    }
33163
 
33164
    // isset id assignments
33165
    private static final int __OFFSET_ISSET_ID = 0;
33166
    private static final int __LIMIT_ISSET_ID = 1;
33167
    private BitSet __isset_bit_vector = new BitSet(2);
33168
 
33169
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33170
    static {
33171
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33172
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33174
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
33178
    }
33179
 
33180
    public getIgnoredInventoryUpdateItemids_args() {
33181
    }
33182
 
33183
    public getIgnoredInventoryUpdateItemids_args(
33184
      int offset,
33185
      int limit)
33186
    {
33187
      this();
33188
      this.offset = offset;
33189
      setOffsetIsSet(true);
33190
      this.limit = limit;
33191
      setLimitIsSet(true);
33192
    }
33193
 
33194
    /**
33195
     * Performs a deep copy on <i>other</i>.
33196
     */
33197
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
33198
      __isset_bit_vector.clear();
33199
      __isset_bit_vector.or(other.__isset_bit_vector);
33200
      this.offset = other.offset;
33201
      this.limit = other.limit;
33202
    }
33203
 
33204
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
33205
      return new getIgnoredInventoryUpdateItemids_args(this);
33206
    }
33207
 
33208
    @Override
33209
    public void clear() {
33210
      setOffsetIsSet(false);
33211
      this.offset = 0;
33212
      setLimitIsSet(false);
33213
      this.limit = 0;
33214
    }
33215
 
33216
    public int getOffset() {
33217
      return this.offset;
33218
    }
33219
 
33220
    public void setOffset(int offset) {
33221
      this.offset = offset;
33222
      setOffsetIsSet(true);
33223
    }
33224
 
33225
    public void unsetOffset() {
33226
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
33227
    }
33228
 
33229
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
33230
    public boolean isSetOffset() {
33231
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
33232
    }
33233
 
33234
    public void setOffsetIsSet(boolean value) {
33235
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
33236
    }
33237
 
33238
    public int getLimit() {
33239
      return this.limit;
33240
    }
33241
 
33242
    public void setLimit(int limit) {
33243
      this.limit = limit;
33244
      setLimitIsSet(true);
33245
    }
33246
 
33247
    public void unsetLimit() {
33248
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
33249
    }
33250
 
33251
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
33252
    public boolean isSetLimit() {
33253
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
33254
    }
33255
 
33256
    public void setLimitIsSet(boolean value) {
33257
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
33258
    }
33259
 
33260
    public void setFieldValue(_Fields field, Object value) {
33261
      switch (field) {
33262
      case OFFSET:
33263
        if (value == null) {
33264
          unsetOffset();
33265
        } else {
33266
          setOffset((Integer)value);
33267
        }
33268
        break;
33269
 
33270
      case LIMIT:
33271
        if (value == null) {
33272
          unsetLimit();
33273
        } else {
33274
          setLimit((Integer)value);
33275
        }
33276
        break;
33277
 
33278
      }
33279
    }
33280
 
33281
    public Object getFieldValue(_Fields field) {
33282
      switch (field) {
33283
      case OFFSET:
33284
        return Integer.valueOf(getOffset());
33285
 
33286
      case LIMIT:
33287
        return Integer.valueOf(getLimit());
33288
 
33289
      }
33290
      throw new IllegalStateException();
33291
    }
33292
 
33293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33294
    public boolean isSet(_Fields field) {
33295
      if (field == null) {
33296
        throw new IllegalArgumentException();
33297
      }
33298
 
33299
      switch (field) {
33300
      case OFFSET:
33301
        return isSetOffset();
33302
      case LIMIT:
33303
        return isSetLimit();
33304
      }
33305
      throw new IllegalStateException();
33306
    }
33307
 
33308
    @Override
33309
    public boolean equals(Object that) {
33310
      if (that == null)
33311
        return false;
33312
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
33313
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
33314
      return false;
33315
    }
33316
 
33317
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
33318
      if (that == null)
33319
        return false;
33320
 
33321
      boolean this_present_offset = true;
33322
      boolean that_present_offset = true;
33323
      if (this_present_offset || that_present_offset) {
33324
        if (!(this_present_offset && that_present_offset))
33325
          return false;
33326
        if (this.offset != that.offset)
33327
          return false;
33328
      }
33329
 
33330
      boolean this_present_limit = true;
33331
      boolean that_present_limit = true;
33332
      if (this_present_limit || that_present_limit) {
33333
        if (!(this_present_limit && that_present_limit))
33334
          return false;
33335
        if (this.limit != that.limit)
33336
          return false;
33337
      }
33338
 
33339
      return true;
33340
    }
33341
 
33342
    @Override
33343
    public int hashCode() {
33344
      return 0;
33345
    }
33346
 
33347
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
33348
      if (!getClass().equals(other.getClass())) {
33349
        return getClass().getName().compareTo(other.getClass().getName());
33350
      }
33351
 
33352
      int lastComparison = 0;
33353
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
33354
 
33355
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
33356
      if (lastComparison != 0) {
33357
        return lastComparison;
33358
      }
33359
      if (isSetOffset()) {
33360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
33361
        if (lastComparison != 0) {
33362
          return lastComparison;
33363
        }
33364
      }
33365
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
33366
      if (lastComparison != 0) {
33367
        return lastComparison;
33368
      }
33369
      if (isSetLimit()) {
33370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
33371
        if (lastComparison != 0) {
33372
          return lastComparison;
33373
        }
33374
      }
33375
      return 0;
33376
    }
33377
 
33378
    public _Fields fieldForId(int fieldId) {
33379
      return _Fields.findByThriftId(fieldId);
33380
    }
33381
 
33382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33383
      org.apache.thrift.protocol.TField field;
33384
      iprot.readStructBegin();
33385
      while (true)
33386
      {
33387
        field = iprot.readFieldBegin();
33388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33389
          break;
33390
        }
33391
        switch (field.id) {
33392
          case 1: // OFFSET
33393
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33394
              this.offset = iprot.readI32();
33395
              setOffsetIsSet(true);
33396
            } else { 
33397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33398
            }
33399
            break;
33400
          case 2: // LIMIT
33401
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33402
              this.limit = iprot.readI32();
33403
              setLimitIsSet(true);
33404
            } else { 
33405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33406
            }
33407
            break;
33408
          default:
33409
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33410
        }
33411
        iprot.readFieldEnd();
33412
      }
33413
      iprot.readStructEnd();
33414
      validate();
33415
    }
33416
 
33417
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33418
      validate();
33419
 
33420
      oprot.writeStructBegin(STRUCT_DESC);
33421
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
33422
      oprot.writeI32(this.offset);
33423
      oprot.writeFieldEnd();
33424
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
33425
      oprot.writeI32(this.limit);
33426
      oprot.writeFieldEnd();
33427
      oprot.writeFieldStop();
33428
      oprot.writeStructEnd();
33429
    }
33430
 
33431
    @Override
33432
    public String toString() {
33433
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
33434
      boolean first = true;
33435
 
33436
      sb.append("offset:");
33437
      sb.append(this.offset);
33438
      first = false;
33439
      if (!first) sb.append(", ");
33440
      sb.append("limit:");
33441
      sb.append(this.limit);
33442
      first = false;
33443
      sb.append(")");
33444
      return sb.toString();
33445
    }
33446
 
33447
    public void validate() throws org.apache.thrift.TException {
33448
      // check for required fields
33449
    }
33450
 
33451
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33452
      try {
33453
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33454
      } catch (org.apache.thrift.TException te) {
33455
        throw new java.io.IOException(te);
33456
      }
33457
    }
33458
 
33459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33460
      try {
33461
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33462
        __isset_bit_vector = new BitSet(1);
33463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33464
      } catch (org.apache.thrift.TException te) {
33465
        throw new java.io.IOException(te);
33466
      }
33467
    }
33468
 
33469
  }
33470
 
33471
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
33472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
33473
 
33474
    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);
33475
 
33476
    private List<Long> success; // required
33477
 
33478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33480
      SUCCESS((short)0, "success");
33481
 
33482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33483
 
33484
      static {
33485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33486
          byName.put(field.getFieldName(), field);
33487
        }
33488
      }
33489
 
33490
      /**
33491
       * Find the _Fields constant that matches fieldId, or null if its not found.
33492
       */
33493
      public static _Fields findByThriftId(int fieldId) {
33494
        switch(fieldId) {
33495
          case 0: // SUCCESS
33496
            return SUCCESS;
33497
          default:
33498
            return null;
33499
        }
33500
      }
33501
 
33502
      /**
33503
       * Find the _Fields constant that matches fieldId, throwing an exception
33504
       * if it is not found.
33505
       */
33506
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33507
        _Fields fields = findByThriftId(fieldId);
33508
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33509
        return fields;
33510
      }
33511
 
33512
      /**
33513
       * Find the _Fields constant that matches name, or null if its not found.
33514
       */
33515
      public static _Fields findByName(String name) {
33516
        return byName.get(name);
33517
      }
33518
 
33519
      private final short _thriftId;
33520
      private final String _fieldName;
33521
 
33522
      _Fields(short thriftId, String fieldName) {
33523
        _thriftId = thriftId;
33524
        _fieldName = fieldName;
33525
      }
33526
 
33527
      public short getThriftFieldId() {
33528
        return _thriftId;
33529
      }
33530
 
33531
      public String getFieldName() {
33532
        return _fieldName;
33533
      }
33534
    }
33535
 
33536
    // isset id assignments
33537
 
33538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33539
    static {
33540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33541
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33542
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33543
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33544
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33545
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
33546
    }
33547
 
33548
    public getIgnoredInventoryUpdateItemids_result() {
33549
    }
33550
 
33551
    public getIgnoredInventoryUpdateItemids_result(
33552
      List<Long> success)
33553
    {
33554
      this();
33555
      this.success = success;
33556
    }
33557
 
33558
    /**
33559
     * Performs a deep copy on <i>other</i>.
33560
     */
33561
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
33562
      if (other.isSetSuccess()) {
33563
        List<Long> __this__success = new ArrayList<Long>();
33564
        for (Long other_element : other.success) {
33565
          __this__success.add(other_element);
33566
        }
33567
        this.success = __this__success;
33568
      }
33569
    }
33570
 
33571
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
33572
      return new getIgnoredInventoryUpdateItemids_result(this);
33573
    }
33574
 
33575
    @Override
33576
    public void clear() {
33577
      this.success = null;
33578
    }
33579
 
33580
    public int getSuccessSize() {
33581
      return (this.success == null) ? 0 : this.success.size();
33582
    }
33583
 
33584
    public java.util.Iterator<Long> getSuccessIterator() {
33585
      return (this.success == null) ? null : this.success.iterator();
33586
    }
33587
 
33588
    public void addToSuccess(long elem) {
33589
      if (this.success == null) {
33590
        this.success = new ArrayList<Long>();
33591
      }
33592
      this.success.add(elem);
33593
    }
33594
 
33595
    public List<Long> getSuccess() {
33596
      return this.success;
33597
    }
33598
 
33599
    public void setSuccess(List<Long> success) {
33600
      this.success = success;
33601
    }
33602
 
33603
    public void unsetSuccess() {
33604
      this.success = null;
33605
    }
33606
 
33607
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33608
    public boolean isSetSuccess() {
33609
      return this.success != null;
33610
    }
33611
 
33612
    public void setSuccessIsSet(boolean value) {
33613
      if (!value) {
33614
        this.success = null;
33615
      }
33616
    }
33617
 
33618
    public void setFieldValue(_Fields field, Object value) {
33619
      switch (field) {
33620
      case SUCCESS:
33621
        if (value == null) {
33622
          unsetSuccess();
33623
        } else {
33624
          setSuccess((List<Long>)value);
33625
        }
33626
        break;
33627
 
33628
      }
33629
    }
33630
 
33631
    public Object getFieldValue(_Fields field) {
33632
      switch (field) {
33633
      case SUCCESS:
33634
        return getSuccess();
33635
 
33636
      }
33637
      throw new IllegalStateException();
33638
    }
33639
 
33640
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33641
    public boolean isSet(_Fields field) {
33642
      if (field == null) {
33643
        throw new IllegalArgumentException();
33644
      }
33645
 
33646
      switch (field) {
33647
      case SUCCESS:
33648
        return isSetSuccess();
33649
      }
33650
      throw new IllegalStateException();
33651
    }
33652
 
33653
    @Override
33654
    public boolean equals(Object that) {
33655
      if (that == null)
33656
        return false;
33657
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
33658
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
33659
      return false;
33660
    }
33661
 
33662
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
33663
      if (that == null)
33664
        return false;
33665
 
33666
      boolean this_present_success = true && this.isSetSuccess();
33667
      boolean that_present_success = true && that.isSetSuccess();
33668
      if (this_present_success || that_present_success) {
33669
        if (!(this_present_success && that_present_success))
33670
          return false;
33671
        if (!this.success.equals(that.success))
33672
          return false;
33673
      }
33674
 
33675
      return true;
33676
    }
33677
 
33678
    @Override
33679
    public int hashCode() {
33680
      return 0;
33681
    }
33682
 
33683
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
33684
      if (!getClass().equals(other.getClass())) {
33685
        return getClass().getName().compareTo(other.getClass().getName());
33686
      }
33687
 
33688
      int lastComparison = 0;
33689
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
33690
 
33691
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33692
      if (lastComparison != 0) {
33693
        return lastComparison;
33694
      }
33695
      if (isSetSuccess()) {
33696
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33697
        if (lastComparison != 0) {
33698
          return lastComparison;
33699
        }
33700
      }
33701
      return 0;
33702
    }
33703
 
33704
    public _Fields fieldForId(int fieldId) {
33705
      return _Fields.findByThriftId(fieldId);
33706
    }
33707
 
33708
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33709
      org.apache.thrift.protocol.TField field;
33710
      iprot.readStructBegin();
33711
      while (true)
33712
      {
33713
        field = iprot.readFieldBegin();
33714
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33715
          break;
33716
        }
33717
        switch (field.id) {
33718
          case 0: // SUCCESS
33719
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33720
              {
33721
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
33722
                this.success = new ArrayList<Long>(_list100.size);
33723
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
33724
                {
33725
                  long _elem102; // required
33726
                  _elem102 = iprot.readI64();
33727
                  this.success.add(_elem102);
33728
                }
33729
                iprot.readListEnd();
33730
              }
33731
            } else { 
33732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33733
            }
33734
            break;
33735
          default:
33736
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33737
        }
33738
        iprot.readFieldEnd();
33739
      }
33740
      iprot.readStructEnd();
33741
      validate();
33742
    }
33743
 
33744
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33745
      oprot.writeStructBegin(STRUCT_DESC);
33746
 
33747
      if (this.isSetSuccess()) {
33748
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33749
        {
33750
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
33751
          for (long _iter103 : this.success)
33752
          {
33753
            oprot.writeI64(_iter103);
33754
          }
33755
          oprot.writeListEnd();
33756
        }
33757
        oprot.writeFieldEnd();
33758
      }
33759
      oprot.writeFieldStop();
33760
      oprot.writeStructEnd();
33761
    }
33762
 
33763
    @Override
33764
    public String toString() {
33765
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
33766
      boolean first = true;
33767
 
33768
      sb.append("success:");
33769
      if (this.success == null) {
33770
        sb.append("null");
33771
      } else {
33772
        sb.append(this.success);
33773
      }
33774
      first = false;
33775
      sb.append(")");
33776
      return sb.toString();
33777
    }
33778
 
33779
    public void validate() throws org.apache.thrift.TException {
33780
      // check for required fields
33781
    }
33782
 
33783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33784
      try {
33785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33786
      } catch (org.apache.thrift.TException te) {
33787
        throw new java.io.IOException(te);
33788
      }
33789
    }
33790
 
33791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33792
      try {
33793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33794
      } catch (org.apache.thrift.TException te) {
33795
        throw new java.io.IOException(te);
33796
      }
33797
    }
33798
 
33799
  }
33800
 
5945 mandeep.dh 33801
}