Subversion Repositories SmartDukaan

Rev

Rev 6531 | Rev 6821 | 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 {
5718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5719
      } catch (org.apache.thrift.TException te) {
5720
        throw new java.io.IOException(te);
5721
      }
5722
    }
5723
 
5724
  }
5725
 
5726
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
5727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
5728
 
5729
    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);
5730
 
5731
    private InventoryServiceException cex; // required
5732
 
5733
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5734
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5735
      CEX((short)1, "cex");
5736
 
5737
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5738
 
5739
      static {
5740
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5741
          byName.put(field.getFieldName(), field);
5742
        }
5743
      }
5744
 
5745
      /**
5746
       * Find the _Fields constant that matches fieldId, or null if its not found.
5747
       */
5748
      public static _Fields findByThriftId(int fieldId) {
5749
        switch(fieldId) {
5750
          case 1: // CEX
5751
            return CEX;
5752
          default:
5753
            return null;
5754
        }
5755
      }
5756
 
5757
      /**
5758
       * Find the _Fields constant that matches fieldId, throwing an exception
5759
       * if it is not found.
5760
       */
5761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5762
        _Fields fields = findByThriftId(fieldId);
5763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5764
        return fields;
5765
      }
5766
 
5767
      /**
5768
       * Find the _Fields constant that matches name, or null if its not found.
5769
       */
5770
      public static _Fields findByName(String name) {
5771
        return byName.get(name);
5772
      }
5773
 
5774
      private final short _thriftId;
5775
      private final String _fieldName;
5776
 
5777
      _Fields(short thriftId, String fieldName) {
5778
        _thriftId = thriftId;
5779
        _fieldName = fieldName;
5780
      }
5781
 
5782
      public short getThriftFieldId() {
5783
        return _thriftId;
5784
      }
5785
 
5786
      public String getFieldName() {
5787
        return _fieldName;
5788
      }
5789
    }
5790
 
5791
    // isset id assignments
5792
 
5793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5794
    static {
5795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5796
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
5800
    }
5801
 
5802
    public updateInventoryHistory_result() {
5803
    }
5804
 
5805
    public updateInventoryHistory_result(
5806
      InventoryServiceException cex)
5807
    {
5808
      this();
5809
      this.cex = cex;
5810
    }
5811
 
5812
    /**
5813
     * Performs a deep copy on <i>other</i>.
5814
     */
5815
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
5816
      if (other.isSetCex()) {
5817
        this.cex = new InventoryServiceException(other.cex);
5818
      }
5819
    }
5820
 
5821
    public updateInventoryHistory_result deepCopy() {
5822
      return new updateInventoryHistory_result(this);
5823
    }
5824
 
5825
    @Override
5826
    public void clear() {
5827
      this.cex = null;
5828
    }
5829
 
5830
    public InventoryServiceException getCex() {
5831
      return this.cex;
5832
    }
5833
 
5834
    public void setCex(InventoryServiceException cex) {
5835
      this.cex = cex;
5836
    }
5837
 
5838
    public void unsetCex() {
5839
      this.cex = null;
5840
    }
5841
 
5842
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5843
    public boolean isSetCex() {
5844
      return this.cex != null;
5845
    }
5846
 
5847
    public void setCexIsSet(boolean value) {
5848
      if (!value) {
5849
        this.cex = null;
5850
      }
5851
    }
5852
 
5853
    public void setFieldValue(_Fields field, Object value) {
5854
      switch (field) {
5855
      case CEX:
5856
        if (value == null) {
5857
          unsetCex();
5858
        } else {
5859
          setCex((InventoryServiceException)value);
5860
        }
5861
        break;
5862
 
5863
      }
5864
    }
5865
 
5866
    public Object getFieldValue(_Fields field) {
5867
      switch (field) {
5868
      case CEX:
5869
        return getCex();
5870
 
5871
      }
5872
      throw new IllegalStateException();
5873
    }
5874
 
5875
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5876
    public boolean isSet(_Fields field) {
5877
      if (field == null) {
5878
        throw new IllegalArgumentException();
5879
      }
5880
 
5881
      switch (field) {
5882
      case CEX:
5883
        return isSetCex();
5884
      }
5885
      throw new IllegalStateException();
5886
    }
5887
 
5888
    @Override
5889
    public boolean equals(Object that) {
5890
      if (that == null)
5891
        return false;
5892
      if (that instanceof updateInventoryHistory_result)
5893
        return this.equals((updateInventoryHistory_result)that);
5894
      return false;
5895
    }
5896
 
5897
    public boolean equals(updateInventoryHistory_result that) {
5898
      if (that == null)
5899
        return false;
5900
 
5901
      boolean this_present_cex = true && this.isSetCex();
5902
      boolean that_present_cex = true && that.isSetCex();
5903
      if (this_present_cex || that_present_cex) {
5904
        if (!(this_present_cex && that_present_cex))
5905
          return false;
5906
        if (!this.cex.equals(that.cex))
5907
          return false;
5908
      }
5909
 
5910
      return true;
5911
    }
5912
 
5913
    @Override
5914
    public int hashCode() {
5915
      return 0;
5916
    }
5917
 
5918
    public int compareTo(updateInventoryHistory_result other) {
5919
      if (!getClass().equals(other.getClass())) {
5920
        return getClass().getName().compareTo(other.getClass().getName());
5921
      }
5922
 
5923
      int lastComparison = 0;
5924
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
5925
 
5926
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5927
      if (lastComparison != 0) {
5928
        return lastComparison;
5929
      }
5930
      if (isSetCex()) {
5931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5932
        if (lastComparison != 0) {
5933
          return lastComparison;
5934
        }
5935
      }
5936
      return 0;
5937
    }
5938
 
5939
    public _Fields fieldForId(int fieldId) {
5940
      return _Fields.findByThriftId(fieldId);
5941
    }
5942
 
5943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5944
      org.apache.thrift.protocol.TField field;
5945
      iprot.readStructBegin();
5946
      while (true)
5947
      {
5948
        field = iprot.readFieldBegin();
5949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5950
          break;
5951
        }
5952
        switch (field.id) {
5953
          case 1: // CEX
5954
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5955
              this.cex = new InventoryServiceException();
5956
              this.cex.read(iprot);
5957
            } else { 
5958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5959
            }
5960
            break;
5961
          default:
5962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5963
        }
5964
        iprot.readFieldEnd();
5965
      }
5966
      iprot.readStructEnd();
5967
      validate();
5968
    }
5969
 
5970
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5971
      oprot.writeStructBegin(STRUCT_DESC);
5972
 
5973
      if (this.isSetCex()) {
5974
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5975
        this.cex.write(oprot);
5976
        oprot.writeFieldEnd();
5977
      }
5978
      oprot.writeFieldStop();
5979
      oprot.writeStructEnd();
5980
    }
5981
 
5982
    @Override
5983
    public String toString() {
5984
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
5985
      boolean first = true;
5986
 
5987
      sb.append("cex:");
5988
      if (this.cex == null) {
5989
        sb.append("null");
5990
      } else {
5991
        sb.append(this.cex);
5992
      }
5993
      first = false;
5994
      sb.append(")");
5995
      return sb.toString();
5996
    }
5997
 
5998
    public void validate() throws org.apache.thrift.TException {
5999
      // check for required fields
6000
    }
6001
 
6002
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6003
      try {
6004
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6005
      } catch (org.apache.thrift.TException te) {
6006
        throw new java.io.IOException(te);
6007
      }
6008
    }
6009
 
6010
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6011
      try {
6012
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6013
      } catch (org.apache.thrift.TException te) {
6014
        throw new java.io.IOException(te);
6015
      }
6016
    }
6017
 
6018
  }
6019
 
6020
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
6021
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
6022
 
6023
    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);
6024
    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);
6025
    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);
6026
 
6027
    private long warehouse_id; // required
6028
    private String timestamp; // required
6029
    private Map<String,Long> availability; // required
6030
 
6031
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6032
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6033
      WAREHOUSE_ID((short)1, "warehouse_id"),
6034
      TIMESTAMP((short)2, "timestamp"),
6035
      AVAILABILITY((short)3, "availability");
6036
 
6037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6038
 
6039
      static {
6040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6041
          byName.put(field.getFieldName(), field);
6042
        }
6043
      }
6044
 
6045
      /**
6046
       * Find the _Fields constant that matches fieldId, or null if its not found.
6047
       */
6048
      public static _Fields findByThriftId(int fieldId) {
6049
        switch(fieldId) {
6050
          case 1: // WAREHOUSE_ID
6051
            return WAREHOUSE_ID;
6052
          case 2: // TIMESTAMP
6053
            return TIMESTAMP;
6054
          case 3: // AVAILABILITY
6055
            return AVAILABILITY;
6056
          default:
6057
            return null;
6058
        }
6059
      }
6060
 
6061
      /**
6062
       * Find the _Fields constant that matches fieldId, throwing an exception
6063
       * if it is not found.
6064
       */
6065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6066
        _Fields fields = findByThriftId(fieldId);
6067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6068
        return fields;
6069
      }
6070
 
6071
      /**
6072
       * Find the _Fields constant that matches name, or null if its not found.
6073
       */
6074
      public static _Fields findByName(String name) {
6075
        return byName.get(name);
6076
      }
6077
 
6078
      private final short _thriftId;
6079
      private final String _fieldName;
6080
 
6081
      _Fields(short thriftId, String fieldName) {
6082
        _thriftId = thriftId;
6083
        _fieldName = fieldName;
6084
      }
6085
 
6086
      public short getThriftFieldId() {
6087
        return _thriftId;
6088
      }
6089
 
6090
      public String getFieldName() {
6091
        return _fieldName;
6092
      }
6093
    }
6094
 
6095
    // isset id assignments
6096
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6097
    private BitSet __isset_bit_vector = new BitSet(1);
6098
 
6099
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6100
    static {
6101
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6102
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6104
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6106
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6107
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6108
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6109
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
6112
    }
6113
 
6114
    public updateInventory_args() {
6115
    }
6116
 
6117
    public updateInventory_args(
6118
      long warehouse_id,
6119
      String timestamp,
6120
      Map<String,Long> availability)
6121
    {
6122
      this();
6123
      this.warehouse_id = warehouse_id;
6124
      setWarehouse_idIsSet(true);
6125
      this.timestamp = timestamp;
6126
      this.availability = availability;
6127
    }
6128
 
6129
    /**
6130
     * Performs a deep copy on <i>other</i>.
6131
     */
6132
    public updateInventory_args(updateInventory_args other) {
6133
      __isset_bit_vector.clear();
6134
      __isset_bit_vector.or(other.__isset_bit_vector);
6135
      this.warehouse_id = other.warehouse_id;
6136
      if (other.isSetTimestamp()) {
6137
        this.timestamp = other.timestamp;
6138
      }
6139
      if (other.isSetAvailability()) {
6140
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6141
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6142
 
6143
          String other_element_key = other_element.getKey();
6144
          Long other_element_value = other_element.getValue();
6145
 
6146
          String __this__availability_copy_key = other_element_key;
6147
 
6148
          Long __this__availability_copy_value = other_element_value;
6149
 
6150
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6151
        }
6152
        this.availability = __this__availability;
6153
      }
6154
    }
6155
 
6156
    public updateInventory_args deepCopy() {
6157
      return new updateInventory_args(this);
6158
    }
6159
 
6160
    @Override
6161
    public void clear() {
6162
      setWarehouse_idIsSet(false);
6163
      this.warehouse_id = 0;
6164
      this.timestamp = null;
6165
      this.availability = null;
6166
    }
6167
 
6168
    public long getWarehouse_id() {
6169
      return this.warehouse_id;
6170
    }
6171
 
6172
    public void setWarehouse_id(long warehouse_id) {
6173
      this.warehouse_id = warehouse_id;
6174
      setWarehouse_idIsSet(true);
6175
    }
6176
 
6177
    public void unsetWarehouse_id() {
6178
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6179
    }
6180
 
6181
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6182
    public boolean isSetWarehouse_id() {
6183
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6184
    }
6185
 
6186
    public void setWarehouse_idIsSet(boolean value) {
6187
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6188
    }
6189
 
6190
    public String getTimestamp() {
6191
      return this.timestamp;
6192
    }
6193
 
6194
    public void setTimestamp(String timestamp) {
6195
      this.timestamp = timestamp;
6196
    }
6197
 
6198
    public void unsetTimestamp() {
6199
      this.timestamp = null;
6200
    }
6201
 
6202
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6203
    public boolean isSetTimestamp() {
6204
      return this.timestamp != null;
6205
    }
6206
 
6207
    public void setTimestampIsSet(boolean value) {
6208
      if (!value) {
6209
        this.timestamp = null;
6210
      }
6211
    }
6212
 
6213
    public int getAvailabilitySize() {
6214
      return (this.availability == null) ? 0 : this.availability.size();
6215
    }
6216
 
6217
    public void putToAvailability(String key, long val) {
6218
      if (this.availability == null) {
6219
        this.availability = new HashMap<String,Long>();
6220
      }
6221
      this.availability.put(key, val);
6222
    }
6223
 
6224
    public Map<String,Long> getAvailability() {
6225
      return this.availability;
6226
    }
6227
 
6228
    public void setAvailability(Map<String,Long> availability) {
6229
      this.availability = availability;
6230
    }
6231
 
6232
    public void unsetAvailability() {
6233
      this.availability = null;
6234
    }
6235
 
6236
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
6237
    public boolean isSetAvailability() {
6238
      return this.availability != null;
6239
    }
6240
 
6241
    public void setAvailabilityIsSet(boolean value) {
6242
      if (!value) {
6243
        this.availability = null;
6244
      }
6245
    }
6246
 
6247
    public void setFieldValue(_Fields field, Object value) {
6248
      switch (field) {
6249
      case WAREHOUSE_ID:
6250
        if (value == null) {
6251
          unsetWarehouse_id();
6252
        } else {
6253
          setWarehouse_id((Long)value);
6254
        }
6255
        break;
6256
 
6257
      case TIMESTAMP:
6258
        if (value == null) {
6259
          unsetTimestamp();
6260
        } else {
6261
          setTimestamp((String)value);
6262
        }
6263
        break;
6264
 
6265
      case AVAILABILITY:
6266
        if (value == null) {
6267
          unsetAvailability();
6268
        } else {
6269
          setAvailability((Map<String,Long>)value);
6270
        }
6271
        break;
6272
 
6273
      }
6274
    }
6275
 
6276
    public Object getFieldValue(_Fields field) {
6277
      switch (field) {
6278
      case WAREHOUSE_ID:
6279
        return Long.valueOf(getWarehouse_id());
6280
 
6281
      case TIMESTAMP:
6282
        return getTimestamp();
6283
 
6284
      case AVAILABILITY:
6285
        return getAvailability();
6286
 
6287
      }
6288
      throw new IllegalStateException();
6289
    }
6290
 
6291
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6292
    public boolean isSet(_Fields field) {
6293
      if (field == null) {
6294
        throw new IllegalArgumentException();
6295
      }
6296
 
6297
      switch (field) {
6298
      case WAREHOUSE_ID:
6299
        return isSetWarehouse_id();
6300
      case TIMESTAMP:
6301
        return isSetTimestamp();
6302
      case AVAILABILITY:
6303
        return isSetAvailability();
6304
      }
6305
      throw new IllegalStateException();
6306
    }
6307
 
6308
    @Override
6309
    public boolean equals(Object that) {
6310
      if (that == null)
6311
        return false;
6312
      if (that instanceof updateInventory_args)
6313
        return this.equals((updateInventory_args)that);
6314
      return false;
6315
    }
6316
 
6317
    public boolean equals(updateInventory_args that) {
6318
      if (that == null)
6319
        return false;
6320
 
6321
      boolean this_present_warehouse_id = true;
6322
      boolean that_present_warehouse_id = true;
6323
      if (this_present_warehouse_id || that_present_warehouse_id) {
6324
        if (!(this_present_warehouse_id && that_present_warehouse_id))
6325
          return false;
6326
        if (this.warehouse_id != that.warehouse_id)
6327
          return false;
6328
      }
6329
 
6330
      boolean this_present_timestamp = true && this.isSetTimestamp();
6331
      boolean that_present_timestamp = true && that.isSetTimestamp();
6332
      if (this_present_timestamp || that_present_timestamp) {
6333
        if (!(this_present_timestamp && that_present_timestamp))
6334
          return false;
6335
        if (!this.timestamp.equals(that.timestamp))
6336
          return false;
6337
      }
6338
 
6339
      boolean this_present_availability = true && this.isSetAvailability();
6340
      boolean that_present_availability = true && that.isSetAvailability();
6341
      if (this_present_availability || that_present_availability) {
6342
        if (!(this_present_availability && that_present_availability))
6343
          return false;
6344
        if (!this.availability.equals(that.availability))
6345
          return false;
6346
      }
6347
 
6348
      return true;
6349
    }
6350
 
6351
    @Override
6352
    public int hashCode() {
6353
      return 0;
6354
    }
6355
 
6356
    public int compareTo(updateInventory_args other) {
6357
      if (!getClass().equals(other.getClass())) {
6358
        return getClass().getName().compareTo(other.getClass().getName());
6359
      }
6360
 
6361
      int lastComparison = 0;
6362
      updateInventory_args typedOther = (updateInventory_args)other;
6363
 
6364
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
6365
      if (lastComparison != 0) {
6366
        return lastComparison;
6367
      }
6368
      if (isSetWarehouse_id()) {
6369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
6370
        if (lastComparison != 0) {
6371
          return lastComparison;
6372
        }
6373
      }
6374
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
6375
      if (lastComparison != 0) {
6376
        return lastComparison;
6377
      }
6378
      if (isSetTimestamp()) {
6379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
6380
        if (lastComparison != 0) {
6381
          return lastComparison;
6382
        }
6383
      }
6384
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
6385
      if (lastComparison != 0) {
6386
        return lastComparison;
6387
      }
6388
      if (isSetAvailability()) {
6389
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
6390
        if (lastComparison != 0) {
6391
          return lastComparison;
6392
        }
6393
      }
6394
      return 0;
6395
    }
6396
 
6397
    public _Fields fieldForId(int fieldId) {
6398
      return _Fields.findByThriftId(fieldId);
6399
    }
6400
 
6401
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6402
      org.apache.thrift.protocol.TField field;
6403
      iprot.readStructBegin();
6404
      while (true)
6405
      {
6406
        field = iprot.readFieldBegin();
6407
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6408
          break;
6409
        }
6410
        switch (field.id) {
6411
          case 1: // WAREHOUSE_ID
6412
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6413
              this.warehouse_id = iprot.readI64();
6414
              setWarehouse_idIsSet(true);
6415
            } else { 
6416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6417
            }
6418
            break;
6419
          case 2: // TIMESTAMP
6420
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6421
              this.timestamp = iprot.readString();
6422
            } else { 
6423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6424
            }
6425
            break;
6426
          case 3: // AVAILABILITY
6427
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
6428
              {
6429
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
6430
                this.availability = new HashMap<String,Long>(2*_map15.size);
6431
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
6432
                {
6433
                  String _key17; // required
6434
                  long _val18; // required
6435
                  _key17 = iprot.readString();
6436
                  _val18 = iprot.readI64();
6437
                  this.availability.put(_key17, _val18);
6438
                }
6439
                iprot.readMapEnd();
6440
              }
6441
            } else { 
6442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6443
            }
6444
            break;
6445
          default:
6446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6447
        }
6448
        iprot.readFieldEnd();
6449
      }
6450
      iprot.readStructEnd();
6451
      validate();
6452
    }
6453
 
6454
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6455
      validate();
6456
 
6457
      oprot.writeStructBegin(STRUCT_DESC);
6458
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6459
      oprot.writeI64(this.warehouse_id);
6460
      oprot.writeFieldEnd();
6461
      if (this.timestamp != null) {
6462
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6463
        oprot.writeString(this.timestamp);
6464
        oprot.writeFieldEnd();
6465
      }
6466
      if (this.availability != null) {
6467
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6468
        {
6469
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
6470
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
6471
          {
6472
            oprot.writeString(_iter19.getKey());
6473
            oprot.writeI64(_iter19.getValue());
6474
          }
6475
          oprot.writeMapEnd();
6476
        }
6477
        oprot.writeFieldEnd();
6478
      }
6479
      oprot.writeFieldStop();
6480
      oprot.writeStructEnd();
6481
    }
6482
 
6483
    @Override
6484
    public String toString() {
6485
      StringBuilder sb = new StringBuilder("updateInventory_args(");
6486
      boolean first = true;
6487
 
6488
      sb.append("warehouse_id:");
6489
      sb.append(this.warehouse_id);
6490
      first = false;
6491
      if (!first) sb.append(", ");
6492
      sb.append("timestamp:");
6493
      if (this.timestamp == null) {
6494
        sb.append("null");
6495
      } else {
6496
        sb.append(this.timestamp);
6497
      }
6498
      first = false;
6499
      if (!first) sb.append(", ");
6500
      sb.append("availability:");
6501
      if (this.availability == null) {
6502
        sb.append("null");
6503
      } else {
6504
        sb.append(this.availability);
6505
      }
6506
      first = false;
6507
      sb.append(")");
6508
      return sb.toString();
6509
    }
6510
 
6511
    public void validate() throws org.apache.thrift.TException {
6512
      // check for required fields
6513
    }
6514
 
6515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6516
      try {
6517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6518
      } catch (org.apache.thrift.TException te) {
6519
        throw new java.io.IOException(te);
6520
      }
6521
    }
6522
 
6523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6524
      try {
6525
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6526
        __isset_bit_vector = new BitSet(1);
6527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6528
      } catch (org.apache.thrift.TException te) {
6529
        throw new java.io.IOException(te);
6530
      }
6531
    }
6532
 
6533
  }
6534
 
6535
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
6536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
6537
 
6538
    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);
6539
 
6540
    private InventoryServiceException cex; // required
6541
 
6542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6544
      CEX((short)1, "cex");
6545
 
6546
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6547
 
6548
      static {
6549
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6550
          byName.put(field.getFieldName(), field);
6551
        }
6552
      }
6553
 
6554
      /**
6555
       * Find the _Fields constant that matches fieldId, or null if its not found.
6556
       */
6557
      public static _Fields findByThriftId(int fieldId) {
6558
        switch(fieldId) {
6559
          case 1: // CEX
6560
            return CEX;
6561
          default:
6562
            return null;
6563
        }
6564
      }
6565
 
6566
      /**
6567
       * Find the _Fields constant that matches fieldId, throwing an exception
6568
       * if it is not found.
6569
       */
6570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6571
        _Fields fields = findByThriftId(fieldId);
6572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6573
        return fields;
6574
      }
6575
 
6576
      /**
6577
       * Find the _Fields constant that matches name, or null if its not found.
6578
       */
6579
      public static _Fields findByName(String name) {
6580
        return byName.get(name);
6581
      }
6582
 
6583
      private final short _thriftId;
6584
      private final String _fieldName;
6585
 
6586
      _Fields(short thriftId, String fieldName) {
6587
        _thriftId = thriftId;
6588
        _fieldName = fieldName;
6589
      }
6590
 
6591
      public short getThriftFieldId() {
6592
        return _thriftId;
6593
      }
6594
 
6595
      public String getFieldName() {
6596
        return _fieldName;
6597
      }
6598
    }
6599
 
6600
    // isset id assignments
6601
 
6602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6603
    static {
6604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6605
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
6609
    }
6610
 
6611
    public updateInventory_result() {
6612
    }
6613
 
6614
    public updateInventory_result(
6615
      InventoryServiceException cex)
6616
    {
6617
      this();
6618
      this.cex = cex;
6619
    }
6620
 
6621
    /**
6622
     * Performs a deep copy on <i>other</i>.
6623
     */
6624
    public updateInventory_result(updateInventory_result other) {
6625
      if (other.isSetCex()) {
6626
        this.cex = new InventoryServiceException(other.cex);
6627
      }
6628
    }
6629
 
6630
    public updateInventory_result deepCopy() {
6631
      return new updateInventory_result(this);
6632
    }
6633
 
6634
    @Override
6635
    public void clear() {
6636
      this.cex = null;
6637
    }
6638
 
6639
    public InventoryServiceException getCex() {
6640
      return this.cex;
6641
    }
6642
 
6643
    public void setCex(InventoryServiceException cex) {
6644
      this.cex = cex;
6645
    }
6646
 
6647
    public void unsetCex() {
6648
      this.cex = null;
6649
    }
6650
 
6651
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6652
    public boolean isSetCex() {
6653
      return this.cex != null;
6654
    }
6655
 
6656
    public void setCexIsSet(boolean value) {
6657
      if (!value) {
6658
        this.cex = null;
6659
      }
6660
    }
6661
 
6662
    public void setFieldValue(_Fields field, Object value) {
6663
      switch (field) {
6664
      case CEX:
6665
        if (value == null) {
6666
          unsetCex();
6667
        } else {
6668
          setCex((InventoryServiceException)value);
6669
        }
6670
        break;
6671
 
6672
      }
6673
    }
6674
 
6675
    public Object getFieldValue(_Fields field) {
6676
      switch (field) {
6677
      case CEX:
6678
        return getCex();
6679
 
6680
      }
6681
      throw new IllegalStateException();
6682
    }
6683
 
6684
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6685
    public boolean isSet(_Fields field) {
6686
      if (field == null) {
6687
        throw new IllegalArgumentException();
6688
      }
6689
 
6690
      switch (field) {
6691
      case CEX:
6692
        return isSetCex();
6693
      }
6694
      throw new IllegalStateException();
6695
    }
6696
 
6697
    @Override
6698
    public boolean equals(Object that) {
6699
      if (that == null)
6700
        return false;
6701
      if (that instanceof updateInventory_result)
6702
        return this.equals((updateInventory_result)that);
6703
      return false;
6704
    }
6705
 
6706
    public boolean equals(updateInventory_result that) {
6707
      if (that == null)
6708
        return false;
6709
 
6710
      boolean this_present_cex = true && this.isSetCex();
6711
      boolean that_present_cex = true && that.isSetCex();
6712
      if (this_present_cex || that_present_cex) {
6713
        if (!(this_present_cex && that_present_cex))
6714
          return false;
6715
        if (!this.cex.equals(that.cex))
6716
          return false;
6717
      }
6718
 
6719
      return true;
6720
    }
6721
 
6722
    @Override
6723
    public int hashCode() {
6724
      return 0;
6725
    }
6726
 
6727
    public int compareTo(updateInventory_result other) {
6728
      if (!getClass().equals(other.getClass())) {
6729
        return getClass().getName().compareTo(other.getClass().getName());
6730
      }
6731
 
6732
      int lastComparison = 0;
6733
      updateInventory_result typedOther = (updateInventory_result)other;
6734
 
6735
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6736
      if (lastComparison != 0) {
6737
        return lastComparison;
6738
      }
6739
      if (isSetCex()) {
6740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6741
        if (lastComparison != 0) {
6742
          return lastComparison;
6743
        }
6744
      }
6745
      return 0;
6746
    }
6747
 
6748
    public _Fields fieldForId(int fieldId) {
6749
      return _Fields.findByThriftId(fieldId);
6750
    }
6751
 
6752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6753
      org.apache.thrift.protocol.TField field;
6754
      iprot.readStructBegin();
6755
      while (true)
6756
      {
6757
        field = iprot.readFieldBegin();
6758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6759
          break;
6760
        }
6761
        switch (field.id) {
6762
          case 1: // CEX
6763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6764
              this.cex = new InventoryServiceException();
6765
              this.cex.read(iprot);
6766
            } else { 
6767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6768
            }
6769
            break;
6770
          default:
6771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6772
        }
6773
        iprot.readFieldEnd();
6774
      }
6775
      iprot.readStructEnd();
6776
      validate();
6777
    }
6778
 
6779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6780
      oprot.writeStructBegin(STRUCT_DESC);
6781
 
6782
      if (this.isSetCex()) {
6783
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6784
        this.cex.write(oprot);
6785
        oprot.writeFieldEnd();
6786
      }
6787
      oprot.writeFieldStop();
6788
      oprot.writeStructEnd();
6789
    }
6790
 
6791
    @Override
6792
    public String toString() {
6793
      StringBuilder sb = new StringBuilder("updateInventory_result(");
6794
      boolean first = true;
6795
 
6796
      sb.append("cex:");
6797
      if (this.cex == null) {
6798
        sb.append("null");
6799
      } else {
6800
        sb.append(this.cex);
6801
      }
6802
      first = false;
6803
      sb.append(")");
6804
      return sb.toString();
6805
    }
6806
 
6807
    public void validate() throws org.apache.thrift.TException {
6808
      // check for required fields
6809
    }
6810
 
6811
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6812
      try {
6813
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6814
      } catch (org.apache.thrift.TException te) {
6815
        throw new java.io.IOException(te);
6816
      }
6817
    }
6818
 
6819
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6820
      try {
6821
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6822
      } catch (org.apache.thrift.TException te) {
6823
        throw new java.io.IOException(te);
6824
      }
6825
    }
6826
 
6827
  }
6828
 
6829
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
6830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
6831
 
6832
    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);
6833
    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);
6834
    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);
6835
 
6836
    private long itemId; // required
6837
    private long warehouseId; // required
6838
    private long quantity; // required
6839
 
6840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6842
      ITEM_ID((short)1, "itemId"),
6843
      WAREHOUSE_ID((short)2, "warehouseId"),
6844
      QUANTITY((short)3, "quantity");
6845
 
6846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6847
 
6848
      static {
6849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6850
          byName.put(field.getFieldName(), field);
6851
        }
6852
      }
6853
 
6854
      /**
6855
       * Find the _Fields constant that matches fieldId, or null if its not found.
6856
       */
6857
      public static _Fields findByThriftId(int fieldId) {
6858
        switch(fieldId) {
6859
          case 1: // ITEM_ID
6860
            return ITEM_ID;
6861
          case 2: // WAREHOUSE_ID
6862
            return WAREHOUSE_ID;
6863
          case 3: // QUANTITY
6864
            return QUANTITY;
6865
          default:
6866
            return null;
6867
        }
6868
      }
6869
 
6870
      /**
6871
       * Find the _Fields constant that matches fieldId, throwing an exception
6872
       * if it is not found.
6873
       */
6874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6875
        _Fields fields = findByThriftId(fieldId);
6876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6877
        return fields;
6878
      }
6879
 
6880
      /**
6881
       * Find the _Fields constant that matches name, or null if its not found.
6882
       */
6883
      public static _Fields findByName(String name) {
6884
        return byName.get(name);
6885
      }
6886
 
6887
      private final short _thriftId;
6888
      private final String _fieldName;
6889
 
6890
      _Fields(short thriftId, String fieldName) {
6891
        _thriftId = thriftId;
6892
        _fieldName = fieldName;
6893
      }
6894
 
6895
      public short getThriftFieldId() {
6896
        return _thriftId;
6897
      }
6898
 
6899
      public String getFieldName() {
6900
        return _fieldName;
6901
      }
6902
    }
6903
 
6904
    // isset id assignments
6905
    private static final int __ITEMID_ISSET_ID = 0;
6906
    private static final int __WAREHOUSEID_ISSET_ID = 1;
6907
    private static final int __QUANTITY_ISSET_ID = 2;
6908
    private BitSet __isset_bit_vector = new BitSet(3);
6909
 
6910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6911
    static {
6912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6913
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6915
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6916
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6917
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
6921
    }
6922
 
6923
    public addInventory_args() {
6924
    }
6925
 
6926
    public addInventory_args(
6927
      long itemId,
6928
      long warehouseId,
6929
      long quantity)
6930
    {
6931
      this();
6932
      this.itemId = itemId;
6933
      setItemIdIsSet(true);
6934
      this.warehouseId = warehouseId;
6935
      setWarehouseIdIsSet(true);
6936
      this.quantity = quantity;
6937
      setQuantityIsSet(true);
6938
    }
6939
 
6940
    /**
6941
     * Performs a deep copy on <i>other</i>.
6942
     */
6943
    public addInventory_args(addInventory_args other) {
6944
      __isset_bit_vector.clear();
6945
      __isset_bit_vector.or(other.__isset_bit_vector);
6946
      this.itemId = other.itemId;
6947
      this.warehouseId = other.warehouseId;
6948
      this.quantity = other.quantity;
6949
    }
6950
 
6951
    public addInventory_args deepCopy() {
6952
      return new addInventory_args(this);
6953
    }
6954
 
6955
    @Override
6956
    public void clear() {
6957
      setItemIdIsSet(false);
6958
      this.itemId = 0;
6959
      setWarehouseIdIsSet(false);
6960
      this.warehouseId = 0;
6961
      setQuantityIsSet(false);
6962
      this.quantity = 0;
6963
    }
6964
 
6965
    public long getItemId() {
6966
      return this.itemId;
6967
    }
6968
 
6969
    public void setItemId(long itemId) {
6970
      this.itemId = itemId;
6971
      setItemIdIsSet(true);
6972
    }
6973
 
6974
    public void unsetItemId() {
6975
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
6976
    }
6977
 
6978
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
6979
    public boolean isSetItemId() {
6980
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
6981
    }
6982
 
6983
    public void setItemIdIsSet(boolean value) {
6984
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
6985
    }
6986
 
6987
    public long getWarehouseId() {
6988
      return this.warehouseId;
6989
    }
6990
 
6991
    public void setWarehouseId(long warehouseId) {
6992
      this.warehouseId = warehouseId;
6993
      setWarehouseIdIsSet(true);
6994
    }
6995
 
6996
    public void unsetWarehouseId() {
6997
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
6998
    }
6999
 
7000
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
7001
    public boolean isSetWarehouseId() {
7002
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
7003
    }
7004
 
7005
    public void setWarehouseIdIsSet(boolean value) {
7006
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
7007
    }
7008
 
7009
    public long getQuantity() {
7010
      return this.quantity;
7011
    }
7012
 
7013
    public void setQuantity(long quantity) {
7014
      this.quantity = quantity;
7015
      setQuantityIsSet(true);
7016
    }
7017
 
7018
    public void unsetQuantity() {
7019
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7020
    }
7021
 
7022
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7023
    public boolean isSetQuantity() {
7024
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7025
    }
7026
 
7027
    public void setQuantityIsSet(boolean value) {
7028
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7029
    }
7030
 
7031
    public void setFieldValue(_Fields field, Object value) {
7032
      switch (field) {
7033
      case ITEM_ID:
7034
        if (value == null) {
7035
          unsetItemId();
7036
        } else {
7037
          setItemId((Long)value);
7038
        }
7039
        break;
7040
 
7041
      case WAREHOUSE_ID:
7042
        if (value == null) {
7043
          unsetWarehouseId();
7044
        } else {
7045
          setWarehouseId((Long)value);
7046
        }
7047
        break;
7048
 
7049
      case QUANTITY:
7050
        if (value == null) {
7051
          unsetQuantity();
7052
        } else {
7053
          setQuantity((Long)value);
7054
        }
7055
        break;
7056
 
7057
      }
7058
    }
7059
 
7060
    public Object getFieldValue(_Fields field) {
7061
      switch (field) {
7062
      case ITEM_ID:
7063
        return Long.valueOf(getItemId());
7064
 
7065
      case WAREHOUSE_ID:
7066
        return Long.valueOf(getWarehouseId());
7067
 
7068
      case QUANTITY:
7069
        return Long.valueOf(getQuantity());
7070
 
7071
      }
7072
      throw new IllegalStateException();
7073
    }
7074
 
7075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7076
    public boolean isSet(_Fields field) {
7077
      if (field == null) {
7078
        throw new IllegalArgumentException();
7079
      }
7080
 
7081
      switch (field) {
7082
      case ITEM_ID:
7083
        return isSetItemId();
7084
      case WAREHOUSE_ID:
7085
        return isSetWarehouseId();
7086
      case QUANTITY:
7087
        return isSetQuantity();
7088
      }
7089
      throw new IllegalStateException();
7090
    }
7091
 
7092
    @Override
7093
    public boolean equals(Object that) {
7094
      if (that == null)
7095
        return false;
7096
      if (that instanceof addInventory_args)
7097
        return this.equals((addInventory_args)that);
7098
      return false;
7099
    }
7100
 
7101
    public boolean equals(addInventory_args that) {
7102
      if (that == null)
7103
        return false;
7104
 
7105
      boolean this_present_itemId = true;
7106
      boolean that_present_itemId = true;
7107
      if (this_present_itemId || that_present_itemId) {
7108
        if (!(this_present_itemId && that_present_itemId))
7109
          return false;
7110
        if (this.itemId != that.itemId)
7111
          return false;
7112
      }
7113
 
7114
      boolean this_present_warehouseId = true;
7115
      boolean that_present_warehouseId = true;
7116
      if (this_present_warehouseId || that_present_warehouseId) {
7117
        if (!(this_present_warehouseId && that_present_warehouseId))
7118
          return false;
7119
        if (this.warehouseId != that.warehouseId)
7120
          return false;
7121
      }
7122
 
7123
      boolean this_present_quantity = true;
7124
      boolean that_present_quantity = true;
7125
      if (this_present_quantity || that_present_quantity) {
7126
        if (!(this_present_quantity && that_present_quantity))
7127
          return false;
7128
        if (this.quantity != that.quantity)
7129
          return false;
7130
      }
7131
 
7132
      return true;
7133
    }
7134
 
7135
    @Override
7136
    public int hashCode() {
7137
      return 0;
7138
    }
7139
 
7140
    public int compareTo(addInventory_args other) {
7141
      if (!getClass().equals(other.getClass())) {
7142
        return getClass().getName().compareTo(other.getClass().getName());
7143
      }
7144
 
7145
      int lastComparison = 0;
7146
      addInventory_args typedOther = (addInventory_args)other;
7147
 
7148
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
7149
      if (lastComparison != 0) {
7150
        return lastComparison;
7151
      }
7152
      if (isSetItemId()) {
7153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
7154
        if (lastComparison != 0) {
7155
          return lastComparison;
7156
        }
7157
      }
7158
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
7159
      if (lastComparison != 0) {
7160
        return lastComparison;
7161
      }
7162
      if (isSetWarehouseId()) {
7163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7164
        if (lastComparison != 0) {
7165
          return lastComparison;
7166
        }
7167
      }
7168
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
7169
      if (lastComparison != 0) {
7170
        return lastComparison;
7171
      }
7172
      if (isSetQuantity()) {
7173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
7174
        if (lastComparison != 0) {
7175
          return lastComparison;
7176
        }
7177
      }
7178
      return 0;
7179
    }
7180
 
7181
    public _Fields fieldForId(int fieldId) {
7182
      return _Fields.findByThriftId(fieldId);
7183
    }
7184
 
7185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7186
      org.apache.thrift.protocol.TField field;
7187
      iprot.readStructBegin();
7188
      while (true)
7189
      {
7190
        field = iprot.readFieldBegin();
7191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7192
          break;
7193
        }
7194
        switch (field.id) {
7195
          case 1: // ITEM_ID
7196
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7197
              this.itemId = iprot.readI64();
7198
              setItemIdIsSet(true);
7199
            } else { 
7200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7201
            }
7202
            break;
7203
          case 2: // WAREHOUSE_ID
7204
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7205
              this.warehouseId = iprot.readI64();
7206
              setWarehouseIdIsSet(true);
7207
            } else { 
7208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7209
            }
7210
            break;
7211
          case 3: // QUANTITY
7212
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7213
              this.quantity = iprot.readI64();
7214
              setQuantityIsSet(true);
7215
            } else { 
7216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7217
            }
7218
            break;
7219
          default:
7220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7221
        }
7222
        iprot.readFieldEnd();
7223
      }
7224
      iprot.readStructEnd();
7225
      validate();
7226
    }
7227
 
7228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7229
      validate();
7230
 
7231
      oprot.writeStructBegin(STRUCT_DESC);
7232
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7233
      oprot.writeI64(this.itemId);
7234
      oprot.writeFieldEnd();
7235
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7236
      oprot.writeI64(this.warehouseId);
7237
      oprot.writeFieldEnd();
7238
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7239
      oprot.writeI64(this.quantity);
7240
      oprot.writeFieldEnd();
7241
      oprot.writeFieldStop();
7242
      oprot.writeStructEnd();
7243
    }
7244
 
7245
    @Override
7246
    public String toString() {
7247
      StringBuilder sb = new StringBuilder("addInventory_args(");
7248
      boolean first = true;
7249
 
7250
      sb.append("itemId:");
7251
      sb.append(this.itemId);
7252
      first = false;
7253
      if (!first) sb.append(", ");
7254
      sb.append("warehouseId:");
7255
      sb.append(this.warehouseId);
7256
      first = false;
7257
      if (!first) sb.append(", ");
7258
      sb.append("quantity:");
7259
      sb.append(this.quantity);
7260
      first = false;
7261
      sb.append(")");
7262
      return sb.toString();
7263
    }
7264
 
7265
    public void validate() throws org.apache.thrift.TException {
7266
      // check for required fields
7267
    }
7268
 
7269
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7270
      try {
7271
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7272
      } catch (org.apache.thrift.TException te) {
7273
        throw new java.io.IOException(te);
7274
      }
7275
    }
7276
 
7277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7278
      try {
7279
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7280
        __isset_bit_vector = new BitSet(1);
7281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7282
      } catch (org.apache.thrift.TException te) {
7283
        throw new java.io.IOException(te);
7284
      }
7285
    }
7286
 
7287
  }
7288
 
7289
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
7290
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
7291
 
7292
    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);
7293
 
7294
    private InventoryServiceException cex; // required
7295
 
7296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7298
      CEX((short)1, "cex");
7299
 
7300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7301
 
7302
      static {
7303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7304
          byName.put(field.getFieldName(), field);
7305
        }
7306
      }
7307
 
7308
      /**
7309
       * Find the _Fields constant that matches fieldId, or null if its not found.
7310
       */
7311
      public static _Fields findByThriftId(int fieldId) {
7312
        switch(fieldId) {
7313
          case 1: // CEX
7314
            return CEX;
7315
          default:
7316
            return null;
7317
        }
7318
      }
7319
 
7320
      /**
7321
       * Find the _Fields constant that matches fieldId, throwing an exception
7322
       * if it is not found.
7323
       */
7324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7325
        _Fields fields = findByThriftId(fieldId);
7326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7327
        return fields;
7328
      }
7329
 
7330
      /**
7331
       * Find the _Fields constant that matches name, or null if its not found.
7332
       */
7333
      public static _Fields findByName(String name) {
7334
        return byName.get(name);
7335
      }
7336
 
7337
      private final short _thriftId;
7338
      private final String _fieldName;
7339
 
7340
      _Fields(short thriftId, String fieldName) {
7341
        _thriftId = thriftId;
7342
        _fieldName = fieldName;
7343
      }
7344
 
7345
      public short getThriftFieldId() {
7346
        return _thriftId;
7347
      }
7348
 
7349
      public String getFieldName() {
7350
        return _fieldName;
7351
      }
7352
    }
7353
 
7354
    // isset id assignments
7355
 
7356
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7357
    static {
7358
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7359
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
7363
    }
7364
 
7365
    public addInventory_result() {
7366
    }
7367
 
7368
    public addInventory_result(
7369
      InventoryServiceException cex)
7370
    {
7371
      this();
7372
      this.cex = cex;
7373
    }
7374
 
7375
    /**
7376
     * Performs a deep copy on <i>other</i>.
7377
     */
7378
    public addInventory_result(addInventory_result other) {
7379
      if (other.isSetCex()) {
7380
        this.cex = new InventoryServiceException(other.cex);
7381
      }
7382
    }
7383
 
7384
    public addInventory_result deepCopy() {
7385
      return new addInventory_result(this);
7386
    }
7387
 
7388
    @Override
7389
    public void clear() {
7390
      this.cex = null;
7391
    }
7392
 
7393
    public InventoryServiceException getCex() {
7394
      return this.cex;
7395
    }
7396
 
7397
    public void setCex(InventoryServiceException cex) {
7398
      this.cex = cex;
7399
    }
7400
 
7401
    public void unsetCex() {
7402
      this.cex = null;
7403
    }
7404
 
7405
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7406
    public boolean isSetCex() {
7407
      return this.cex != null;
7408
    }
7409
 
7410
    public void setCexIsSet(boolean value) {
7411
      if (!value) {
7412
        this.cex = null;
7413
      }
7414
    }
7415
 
7416
    public void setFieldValue(_Fields field, Object value) {
7417
      switch (field) {
7418
      case CEX:
7419
        if (value == null) {
7420
          unsetCex();
7421
        } else {
7422
          setCex((InventoryServiceException)value);
7423
        }
7424
        break;
7425
 
7426
      }
7427
    }
7428
 
7429
    public Object getFieldValue(_Fields field) {
7430
      switch (field) {
7431
      case CEX:
7432
        return getCex();
7433
 
7434
      }
7435
      throw new IllegalStateException();
7436
    }
7437
 
7438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7439
    public boolean isSet(_Fields field) {
7440
      if (field == null) {
7441
        throw new IllegalArgumentException();
7442
      }
7443
 
7444
      switch (field) {
7445
      case CEX:
7446
        return isSetCex();
7447
      }
7448
      throw new IllegalStateException();
7449
    }
7450
 
7451
    @Override
7452
    public boolean equals(Object that) {
7453
      if (that == null)
7454
        return false;
7455
      if (that instanceof addInventory_result)
7456
        return this.equals((addInventory_result)that);
7457
      return false;
7458
    }
7459
 
7460
    public boolean equals(addInventory_result that) {
7461
      if (that == null)
7462
        return false;
7463
 
7464
      boolean this_present_cex = true && this.isSetCex();
7465
      boolean that_present_cex = true && that.isSetCex();
7466
      if (this_present_cex || that_present_cex) {
7467
        if (!(this_present_cex && that_present_cex))
7468
          return false;
7469
        if (!this.cex.equals(that.cex))
7470
          return false;
7471
      }
7472
 
7473
      return true;
7474
    }
7475
 
7476
    @Override
7477
    public int hashCode() {
7478
      return 0;
7479
    }
7480
 
7481
    public int compareTo(addInventory_result other) {
7482
      if (!getClass().equals(other.getClass())) {
7483
        return getClass().getName().compareTo(other.getClass().getName());
7484
      }
7485
 
7486
      int lastComparison = 0;
7487
      addInventory_result typedOther = (addInventory_result)other;
7488
 
7489
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7490
      if (lastComparison != 0) {
7491
        return lastComparison;
7492
      }
7493
      if (isSetCex()) {
7494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7495
        if (lastComparison != 0) {
7496
          return lastComparison;
7497
        }
7498
      }
7499
      return 0;
7500
    }
7501
 
7502
    public _Fields fieldForId(int fieldId) {
7503
      return _Fields.findByThriftId(fieldId);
7504
    }
7505
 
7506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7507
      org.apache.thrift.protocol.TField field;
7508
      iprot.readStructBegin();
7509
      while (true)
7510
      {
7511
        field = iprot.readFieldBegin();
7512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7513
          break;
7514
        }
7515
        switch (field.id) {
7516
          case 1: // CEX
7517
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7518
              this.cex = new InventoryServiceException();
7519
              this.cex.read(iprot);
7520
            } else { 
7521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7522
            }
7523
            break;
7524
          default:
7525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7526
        }
7527
        iprot.readFieldEnd();
7528
      }
7529
      iprot.readStructEnd();
7530
      validate();
7531
    }
7532
 
7533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7534
      oprot.writeStructBegin(STRUCT_DESC);
7535
 
7536
      if (this.isSetCex()) {
7537
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7538
        this.cex.write(oprot);
7539
        oprot.writeFieldEnd();
7540
      }
7541
      oprot.writeFieldStop();
7542
      oprot.writeStructEnd();
7543
    }
7544
 
7545
    @Override
7546
    public String toString() {
7547
      StringBuilder sb = new StringBuilder("addInventory_result(");
7548
      boolean first = true;
7549
 
7550
      sb.append("cex:");
7551
      if (this.cex == null) {
7552
        sb.append("null");
7553
      } else {
7554
        sb.append(this.cex);
7555
      }
7556
      first = false;
7557
      sb.append(")");
7558
      return sb.toString();
7559
    }
7560
 
7561
    public void validate() throws org.apache.thrift.TException {
7562
      // check for required fields
7563
    }
7564
 
7565
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7566
      try {
7567
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7568
      } catch (org.apache.thrift.TException te) {
7569
        throw new java.io.IOException(te);
7570
      }
7571
    }
7572
 
7573
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7574
      try {
7575
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7576
      } catch (org.apache.thrift.TException te) {
7577
        throw new java.io.IOException(te);
7578
      }
7579
    }
7580
 
7581
  }
7582
 
7583
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7584
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
7585
 
7586
    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);
7587
 
7588
    private long warehouse_id; // required
7589
 
7590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7592
      WAREHOUSE_ID((short)1, "warehouse_id");
7593
 
7594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7595
 
7596
      static {
7597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7598
          byName.put(field.getFieldName(), field);
7599
        }
7600
      }
7601
 
7602
      /**
7603
       * Find the _Fields constant that matches fieldId, or null if its not found.
7604
       */
7605
      public static _Fields findByThriftId(int fieldId) {
7606
        switch(fieldId) {
7607
          case 1: // WAREHOUSE_ID
7608
            return WAREHOUSE_ID;
7609
          default:
7610
            return null;
7611
        }
7612
      }
7613
 
7614
      /**
7615
       * Find the _Fields constant that matches fieldId, throwing an exception
7616
       * if it is not found.
7617
       */
7618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7619
        _Fields fields = findByThriftId(fieldId);
7620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7621
        return fields;
7622
      }
7623
 
7624
      /**
7625
       * Find the _Fields constant that matches name, or null if its not found.
7626
       */
7627
      public static _Fields findByName(String name) {
7628
        return byName.get(name);
7629
      }
7630
 
7631
      private final short _thriftId;
7632
      private final String _fieldName;
7633
 
7634
      _Fields(short thriftId, String fieldName) {
7635
        _thriftId = thriftId;
7636
        _fieldName = fieldName;
7637
      }
7638
 
7639
      public short getThriftFieldId() {
7640
        return _thriftId;
7641
      }
7642
 
7643
      public String getFieldName() {
7644
        return _fieldName;
7645
      }
7646
    }
7647
 
7648
    // isset id assignments
7649
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7650
    private BitSet __isset_bit_vector = new BitSet(1);
7651
 
7652
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7653
    static {
7654
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7655
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
7659
    }
7660
 
7661
    public retireWarehouse_args() {
7662
    }
7663
 
7664
    public retireWarehouse_args(
7665
      long warehouse_id)
7666
    {
7667
      this();
7668
      this.warehouse_id = warehouse_id;
7669
      setWarehouse_idIsSet(true);
7670
    }
7671
 
7672
    /**
7673
     * Performs a deep copy on <i>other</i>.
7674
     */
7675
    public retireWarehouse_args(retireWarehouse_args other) {
7676
      __isset_bit_vector.clear();
7677
      __isset_bit_vector.or(other.__isset_bit_vector);
7678
      this.warehouse_id = other.warehouse_id;
7679
    }
7680
 
7681
    public retireWarehouse_args deepCopy() {
7682
      return new retireWarehouse_args(this);
7683
    }
7684
 
7685
    @Override
7686
    public void clear() {
7687
      setWarehouse_idIsSet(false);
7688
      this.warehouse_id = 0;
7689
    }
7690
 
7691
    public long getWarehouse_id() {
7692
      return this.warehouse_id;
7693
    }
7694
 
7695
    public void setWarehouse_id(long warehouse_id) {
7696
      this.warehouse_id = warehouse_id;
7697
      setWarehouse_idIsSet(true);
7698
    }
7699
 
7700
    public void unsetWarehouse_id() {
7701
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7702
    }
7703
 
7704
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7705
    public boolean isSetWarehouse_id() {
7706
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7707
    }
7708
 
7709
    public void setWarehouse_idIsSet(boolean value) {
7710
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7711
    }
7712
 
7713
    public void setFieldValue(_Fields field, Object value) {
7714
      switch (field) {
7715
      case WAREHOUSE_ID:
7716
        if (value == null) {
7717
          unsetWarehouse_id();
7718
        } else {
7719
          setWarehouse_id((Long)value);
7720
        }
7721
        break;
7722
 
7723
      }
7724
    }
7725
 
7726
    public Object getFieldValue(_Fields field) {
7727
      switch (field) {
7728
      case WAREHOUSE_ID:
7729
        return Long.valueOf(getWarehouse_id());
7730
 
7731
      }
7732
      throw new IllegalStateException();
7733
    }
7734
 
7735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7736
    public boolean isSet(_Fields field) {
7737
      if (field == null) {
7738
        throw new IllegalArgumentException();
7739
      }
7740
 
7741
      switch (field) {
7742
      case WAREHOUSE_ID:
7743
        return isSetWarehouse_id();
7744
      }
7745
      throw new IllegalStateException();
7746
    }
7747
 
7748
    @Override
7749
    public boolean equals(Object that) {
7750
      if (that == null)
7751
        return false;
7752
      if (that instanceof retireWarehouse_args)
7753
        return this.equals((retireWarehouse_args)that);
7754
      return false;
7755
    }
7756
 
7757
    public boolean equals(retireWarehouse_args that) {
7758
      if (that == null)
7759
        return false;
7760
 
7761
      boolean this_present_warehouse_id = true;
7762
      boolean that_present_warehouse_id = true;
7763
      if (this_present_warehouse_id || that_present_warehouse_id) {
7764
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7765
          return false;
7766
        if (this.warehouse_id != that.warehouse_id)
7767
          return false;
7768
      }
7769
 
7770
      return true;
7771
    }
7772
 
7773
    @Override
7774
    public int hashCode() {
7775
      return 0;
7776
    }
7777
 
7778
    public int compareTo(retireWarehouse_args other) {
7779
      if (!getClass().equals(other.getClass())) {
7780
        return getClass().getName().compareTo(other.getClass().getName());
7781
      }
7782
 
7783
      int lastComparison = 0;
7784
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
7785
 
7786
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7787
      if (lastComparison != 0) {
7788
        return lastComparison;
7789
      }
7790
      if (isSetWarehouse_id()) {
7791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7792
        if (lastComparison != 0) {
7793
          return lastComparison;
7794
        }
7795
      }
7796
      return 0;
7797
    }
7798
 
7799
    public _Fields fieldForId(int fieldId) {
7800
      return _Fields.findByThriftId(fieldId);
7801
    }
7802
 
7803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7804
      org.apache.thrift.protocol.TField field;
7805
      iprot.readStructBegin();
7806
      while (true)
7807
      {
7808
        field = iprot.readFieldBegin();
7809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7810
          break;
7811
        }
7812
        switch (field.id) {
7813
          case 1: // WAREHOUSE_ID
7814
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7815
              this.warehouse_id = iprot.readI64();
7816
              setWarehouse_idIsSet(true);
7817
            } else { 
7818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7819
            }
7820
            break;
7821
          default:
7822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7823
        }
7824
        iprot.readFieldEnd();
7825
      }
7826
      iprot.readStructEnd();
7827
      validate();
7828
    }
7829
 
7830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7831
      validate();
7832
 
7833
      oprot.writeStructBegin(STRUCT_DESC);
7834
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7835
      oprot.writeI64(this.warehouse_id);
7836
      oprot.writeFieldEnd();
7837
      oprot.writeFieldStop();
7838
      oprot.writeStructEnd();
7839
    }
7840
 
7841
    @Override
7842
    public String toString() {
7843
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
7844
      boolean first = true;
7845
 
7846
      sb.append("warehouse_id:");
7847
      sb.append(this.warehouse_id);
7848
      first = false;
7849
      sb.append(")");
7850
      return sb.toString();
7851
    }
7852
 
7853
    public void validate() throws org.apache.thrift.TException {
7854
      // check for required fields
7855
    }
7856
 
7857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7858
      try {
7859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7860
      } catch (org.apache.thrift.TException te) {
7861
        throw new java.io.IOException(te);
7862
      }
7863
    }
7864
 
7865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7866
      try {
7867
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7868
        __isset_bit_vector = new BitSet(1);
7869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7870
      } catch (org.apache.thrift.TException te) {
7871
        throw new java.io.IOException(te);
7872
      }
7873
    }
7874
 
7875
  }
7876
 
7877
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
7878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
7879
 
7880
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7881
 
7882
    private InventoryServiceException cex; // required
7883
 
7884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7886
      CEX((short)1, "cex");
7887
 
7888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7889
 
7890
      static {
7891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7892
          byName.put(field.getFieldName(), field);
7893
        }
7894
      }
7895
 
7896
      /**
7897
       * Find the _Fields constant that matches fieldId, or null if its not found.
7898
       */
7899
      public static _Fields findByThriftId(int fieldId) {
7900
        switch(fieldId) {
7901
          case 1: // CEX
7902
            return CEX;
7903
          default:
7904
            return null;
7905
        }
7906
      }
7907
 
7908
      /**
7909
       * Find the _Fields constant that matches fieldId, throwing an exception
7910
       * if it is not found.
7911
       */
7912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7913
        _Fields fields = findByThriftId(fieldId);
7914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7915
        return fields;
7916
      }
7917
 
7918
      /**
7919
       * Find the _Fields constant that matches name, or null if its not found.
7920
       */
7921
      public static _Fields findByName(String name) {
7922
        return byName.get(name);
7923
      }
7924
 
7925
      private final short _thriftId;
7926
      private final String _fieldName;
7927
 
7928
      _Fields(short thriftId, String fieldName) {
7929
        _thriftId = thriftId;
7930
        _fieldName = fieldName;
7931
      }
7932
 
7933
      public short getThriftFieldId() {
7934
        return _thriftId;
7935
      }
7936
 
7937
      public String getFieldName() {
7938
        return _fieldName;
7939
      }
7940
    }
7941
 
7942
    // isset id assignments
7943
 
7944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7945
    static {
7946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7947
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
7951
    }
7952
 
7953
    public retireWarehouse_result() {
7954
    }
7955
 
7956
    public retireWarehouse_result(
7957
      InventoryServiceException cex)
7958
    {
7959
      this();
7960
      this.cex = cex;
7961
    }
7962
 
7963
    /**
7964
     * Performs a deep copy on <i>other</i>.
7965
     */
7966
    public retireWarehouse_result(retireWarehouse_result other) {
7967
      if (other.isSetCex()) {
7968
        this.cex = new InventoryServiceException(other.cex);
7969
      }
7970
    }
7971
 
7972
    public retireWarehouse_result deepCopy() {
7973
      return new retireWarehouse_result(this);
7974
    }
7975
 
7976
    @Override
7977
    public void clear() {
7978
      this.cex = null;
7979
    }
7980
 
7981
    public InventoryServiceException getCex() {
7982
      return this.cex;
7983
    }
7984
 
7985
    public void setCex(InventoryServiceException cex) {
7986
      this.cex = cex;
7987
    }
7988
 
7989
    public void unsetCex() {
7990
      this.cex = null;
7991
    }
7992
 
7993
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7994
    public boolean isSetCex() {
7995
      return this.cex != null;
7996
    }
7997
 
7998
    public void setCexIsSet(boolean value) {
7999
      if (!value) {
8000
        this.cex = null;
8001
      }
8002
    }
8003
 
8004
    public void setFieldValue(_Fields field, Object value) {
8005
      switch (field) {
8006
      case CEX:
8007
        if (value == null) {
8008
          unsetCex();
8009
        } else {
8010
          setCex((InventoryServiceException)value);
8011
        }
8012
        break;
8013
 
8014
      }
8015
    }
8016
 
8017
    public Object getFieldValue(_Fields field) {
8018
      switch (field) {
8019
      case CEX:
8020
        return getCex();
8021
 
8022
      }
8023
      throw new IllegalStateException();
8024
    }
8025
 
8026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8027
    public boolean isSet(_Fields field) {
8028
      if (field == null) {
8029
        throw new IllegalArgumentException();
8030
      }
8031
 
8032
      switch (field) {
8033
      case CEX:
8034
        return isSetCex();
8035
      }
8036
      throw new IllegalStateException();
8037
    }
8038
 
8039
    @Override
8040
    public boolean equals(Object that) {
8041
      if (that == null)
8042
        return false;
8043
      if (that instanceof retireWarehouse_result)
8044
        return this.equals((retireWarehouse_result)that);
8045
      return false;
8046
    }
8047
 
8048
    public boolean equals(retireWarehouse_result that) {
8049
      if (that == null)
8050
        return false;
8051
 
8052
      boolean this_present_cex = true && this.isSetCex();
8053
      boolean that_present_cex = true && that.isSetCex();
8054
      if (this_present_cex || that_present_cex) {
8055
        if (!(this_present_cex && that_present_cex))
8056
          return false;
8057
        if (!this.cex.equals(that.cex))
8058
          return false;
8059
      }
8060
 
8061
      return true;
8062
    }
8063
 
8064
    @Override
8065
    public int hashCode() {
8066
      return 0;
8067
    }
8068
 
8069
    public int compareTo(retireWarehouse_result other) {
8070
      if (!getClass().equals(other.getClass())) {
8071
        return getClass().getName().compareTo(other.getClass().getName());
8072
      }
8073
 
8074
      int lastComparison = 0;
8075
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
8076
 
8077
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8078
      if (lastComparison != 0) {
8079
        return lastComparison;
8080
      }
8081
      if (isSetCex()) {
8082
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8083
        if (lastComparison != 0) {
8084
          return lastComparison;
8085
        }
8086
      }
8087
      return 0;
8088
    }
8089
 
8090
    public _Fields fieldForId(int fieldId) {
8091
      return _Fields.findByThriftId(fieldId);
8092
    }
8093
 
8094
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8095
      org.apache.thrift.protocol.TField field;
8096
      iprot.readStructBegin();
8097
      while (true)
8098
      {
8099
        field = iprot.readFieldBegin();
8100
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8101
          break;
8102
        }
8103
        switch (field.id) {
8104
          case 1: // CEX
8105
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8106
              this.cex = new InventoryServiceException();
8107
              this.cex.read(iprot);
8108
            } else { 
8109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8110
            }
8111
            break;
8112
          default:
8113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8114
        }
8115
        iprot.readFieldEnd();
8116
      }
8117
      iprot.readStructEnd();
8118
      validate();
8119
    }
8120
 
8121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8122
      oprot.writeStructBegin(STRUCT_DESC);
8123
 
8124
      if (this.isSetCex()) {
8125
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8126
        this.cex.write(oprot);
8127
        oprot.writeFieldEnd();
8128
      }
8129
      oprot.writeFieldStop();
8130
      oprot.writeStructEnd();
8131
    }
8132
 
8133
    @Override
8134
    public String toString() {
8135
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
8136
      boolean first = true;
8137
 
8138
      sb.append("cex:");
8139
      if (this.cex == null) {
8140
        sb.append("null");
8141
      } else {
8142
        sb.append(this.cex);
8143
      }
8144
      first = false;
8145
      sb.append(")");
8146
      return sb.toString();
8147
    }
8148
 
8149
    public void validate() throws org.apache.thrift.TException {
8150
      // check for required fields
8151
    }
8152
 
8153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8154
      try {
8155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8156
      } catch (org.apache.thrift.TException te) {
8157
        throw new java.io.IOException(te);
8158
      }
8159
    }
8160
 
8161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8162
      try {
8163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8164
      } catch (org.apache.thrift.TException te) {
8165
        throw new java.io.IOException(te);
8166
      }
8167
    }
8168
 
8169
  }
8170
 
8171
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
8172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
8173
 
8174
    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);
8175
 
8176
    private long item_id; // required
8177
 
8178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8180
      ITEM_ID((short)1, "item_id");
8181
 
8182
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8183
 
8184
      static {
8185
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8186
          byName.put(field.getFieldName(), field);
8187
        }
8188
      }
8189
 
8190
      /**
8191
       * Find the _Fields constant that matches fieldId, or null if its not found.
8192
       */
8193
      public static _Fields findByThriftId(int fieldId) {
8194
        switch(fieldId) {
8195
          case 1: // ITEM_ID
8196
            return ITEM_ID;
8197
          default:
8198
            return null;
8199
        }
8200
      }
8201
 
8202
      /**
8203
       * Find the _Fields constant that matches fieldId, throwing an exception
8204
       * if it is not found.
8205
       */
8206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8207
        _Fields fields = findByThriftId(fieldId);
8208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8209
        return fields;
8210
      }
8211
 
8212
      /**
8213
       * Find the _Fields constant that matches name, or null if its not found.
8214
       */
8215
      public static _Fields findByName(String name) {
8216
        return byName.get(name);
8217
      }
8218
 
8219
      private final short _thriftId;
8220
      private final String _fieldName;
8221
 
8222
      _Fields(short thriftId, String fieldName) {
8223
        _thriftId = thriftId;
8224
        _fieldName = fieldName;
8225
      }
8226
 
8227
      public short getThriftFieldId() {
8228
        return _thriftId;
8229
      }
8230
 
8231
      public String getFieldName() {
8232
        return _fieldName;
8233
      }
8234
    }
8235
 
8236
    // isset id assignments
8237
    private static final int __ITEM_ID_ISSET_ID = 0;
8238
    private BitSet __isset_bit_vector = new BitSet(1);
8239
 
8240
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8241
    static {
8242
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8243
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8244
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
8247
    }
8248
 
8249
    public getItemInventoryByItemId_args() {
8250
    }
8251
 
8252
    public getItemInventoryByItemId_args(
8253
      long item_id)
8254
    {
8255
      this();
8256
      this.item_id = item_id;
8257
      setItem_idIsSet(true);
8258
    }
8259
 
8260
    /**
8261
     * Performs a deep copy on <i>other</i>.
8262
     */
8263
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
8264
      __isset_bit_vector.clear();
8265
      __isset_bit_vector.or(other.__isset_bit_vector);
8266
      this.item_id = other.item_id;
8267
    }
8268
 
8269
    public getItemInventoryByItemId_args deepCopy() {
8270
      return new getItemInventoryByItemId_args(this);
8271
    }
8272
 
8273
    @Override
8274
    public void clear() {
8275
      setItem_idIsSet(false);
8276
      this.item_id = 0;
8277
    }
8278
 
8279
    public long getItem_id() {
8280
      return this.item_id;
8281
    }
8282
 
8283
    public void setItem_id(long item_id) {
8284
      this.item_id = item_id;
8285
      setItem_idIsSet(true);
8286
    }
8287
 
8288
    public void unsetItem_id() {
8289
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
8290
    }
8291
 
8292
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
8293
    public boolean isSetItem_id() {
8294
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
8295
    }
8296
 
8297
    public void setItem_idIsSet(boolean value) {
8298
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
8299
    }
8300
 
8301
    public void setFieldValue(_Fields field, Object value) {
8302
      switch (field) {
8303
      case ITEM_ID:
8304
        if (value == null) {
8305
          unsetItem_id();
8306
        } else {
8307
          setItem_id((Long)value);
8308
        }
8309
        break;
8310
 
8311
      }
8312
    }
8313
 
8314
    public Object getFieldValue(_Fields field) {
8315
      switch (field) {
8316
      case ITEM_ID:
8317
        return Long.valueOf(getItem_id());
8318
 
8319
      }
8320
      throw new IllegalStateException();
8321
    }
8322
 
8323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8324
    public boolean isSet(_Fields field) {
8325
      if (field == null) {
8326
        throw new IllegalArgumentException();
8327
      }
8328
 
8329
      switch (field) {
8330
      case ITEM_ID:
8331
        return isSetItem_id();
8332
      }
8333
      throw new IllegalStateException();
8334
    }
8335
 
8336
    @Override
8337
    public boolean equals(Object that) {
8338
      if (that == null)
8339
        return false;
8340
      if (that instanceof getItemInventoryByItemId_args)
8341
        return this.equals((getItemInventoryByItemId_args)that);
8342
      return false;
8343
    }
8344
 
8345
    public boolean equals(getItemInventoryByItemId_args that) {
8346
      if (that == null)
8347
        return false;
8348
 
8349
      boolean this_present_item_id = true;
8350
      boolean that_present_item_id = true;
8351
      if (this_present_item_id || that_present_item_id) {
8352
        if (!(this_present_item_id && that_present_item_id))
8353
          return false;
8354
        if (this.item_id != that.item_id)
8355
          return false;
8356
      }
8357
 
8358
      return true;
8359
    }
8360
 
8361
    @Override
8362
    public int hashCode() {
8363
      return 0;
8364
    }
8365
 
8366
    public int compareTo(getItemInventoryByItemId_args other) {
8367
      if (!getClass().equals(other.getClass())) {
8368
        return getClass().getName().compareTo(other.getClass().getName());
8369
      }
8370
 
8371
      int lastComparison = 0;
8372
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
8373
 
8374
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
8375
      if (lastComparison != 0) {
8376
        return lastComparison;
8377
      }
8378
      if (isSetItem_id()) {
8379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
8380
        if (lastComparison != 0) {
8381
          return lastComparison;
8382
        }
8383
      }
8384
      return 0;
8385
    }
8386
 
8387
    public _Fields fieldForId(int fieldId) {
8388
      return _Fields.findByThriftId(fieldId);
8389
    }
8390
 
8391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8392
      org.apache.thrift.protocol.TField field;
8393
      iprot.readStructBegin();
8394
      while (true)
8395
      {
8396
        field = iprot.readFieldBegin();
8397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8398
          break;
8399
        }
8400
        switch (field.id) {
8401
          case 1: // ITEM_ID
8402
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8403
              this.item_id = iprot.readI64();
8404
              setItem_idIsSet(true);
8405
            } else { 
8406
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8407
            }
8408
            break;
8409
          default:
8410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8411
        }
8412
        iprot.readFieldEnd();
8413
      }
8414
      iprot.readStructEnd();
8415
      validate();
8416
    }
8417
 
8418
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8419
      validate();
8420
 
8421
      oprot.writeStructBegin(STRUCT_DESC);
8422
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8423
      oprot.writeI64(this.item_id);
8424
      oprot.writeFieldEnd();
8425
      oprot.writeFieldStop();
8426
      oprot.writeStructEnd();
8427
    }
8428
 
8429
    @Override
8430
    public String toString() {
8431
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
8432
      boolean first = true;
8433
 
8434
      sb.append("item_id:");
8435
      sb.append(this.item_id);
8436
      first = false;
8437
      sb.append(")");
8438
      return sb.toString();
8439
    }
8440
 
8441
    public void validate() throws org.apache.thrift.TException {
8442
      // check for required fields
8443
    }
8444
 
8445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8446
      try {
8447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8448
      } catch (org.apache.thrift.TException te) {
8449
        throw new java.io.IOException(te);
8450
      }
8451
    }
8452
 
8453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8454
      try {
8455
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8456
        __isset_bit_vector = new BitSet(1);
8457
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8458
      } catch (org.apache.thrift.TException te) {
8459
        throw new java.io.IOException(te);
8460
      }
8461
    }
8462
 
8463
  }
8464
 
8465
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
8466
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
8467
 
8468
    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);
8469
    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);
8470
 
8471
    private ItemInventory success; // required
8472
    private InventoryServiceException cex; // required
8473
 
8474
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8475
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8476
      SUCCESS((short)0, "success"),
8477
      CEX((short)1, "cex");
8478
 
8479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8480
 
8481
      static {
8482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8483
          byName.put(field.getFieldName(), field);
8484
        }
8485
      }
8486
 
8487
      /**
8488
       * Find the _Fields constant that matches fieldId, or null if its not found.
8489
       */
8490
      public static _Fields findByThriftId(int fieldId) {
8491
        switch(fieldId) {
8492
          case 0: // SUCCESS
8493
            return SUCCESS;
8494
          case 1: // CEX
8495
            return CEX;
8496
          default:
8497
            return null;
8498
        }
8499
      }
8500
 
8501
      /**
8502
       * Find the _Fields constant that matches fieldId, throwing an exception
8503
       * if it is not found.
8504
       */
8505
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8506
        _Fields fields = findByThriftId(fieldId);
8507
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8508
        return fields;
8509
      }
8510
 
8511
      /**
8512
       * Find the _Fields constant that matches name, or null if its not found.
8513
       */
8514
      public static _Fields findByName(String name) {
8515
        return byName.get(name);
8516
      }
8517
 
8518
      private final short _thriftId;
8519
      private final String _fieldName;
8520
 
8521
      _Fields(short thriftId, String fieldName) {
8522
        _thriftId = thriftId;
8523
        _fieldName = fieldName;
8524
      }
8525
 
8526
      public short getThriftFieldId() {
8527
        return _thriftId;
8528
      }
8529
 
8530
      public String getFieldName() {
8531
        return _fieldName;
8532
      }
8533
    }
8534
 
8535
    // isset id assignments
8536
 
8537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8538
    static {
8539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8540
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8541
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
8542
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8543
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8544
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8545
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
8546
    }
8547
 
8548
    public getItemInventoryByItemId_result() {
8549
    }
8550
 
8551
    public getItemInventoryByItemId_result(
8552
      ItemInventory success,
8553
      InventoryServiceException cex)
8554
    {
8555
      this();
8556
      this.success = success;
8557
      this.cex = cex;
8558
    }
8559
 
8560
    /**
8561
     * Performs a deep copy on <i>other</i>.
8562
     */
8563
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
8564
      if (other.isSetSuccess()) {
8565
        this.success = new ItemInventory(other.success);
8566
      }
8567
      if (other.isSetCex()) {
8568
        this.cex = new InventoryServiceException(other.cex);
8569
      }
8570
    }
8571
 
8572
    public getItemInventoryByItemId_result deepCopy() {
8573
      return new getItemInventoryByItemId_result(this);
8574
    }
8575
 
8576
    @Override
8577
    public void clear() {
8578
      this.success = null;
8579
      this.cex = null;
8580
    }
8581
 
8582
    public ItemInventory getSuccess() {
8583
      return this.success;
8584
    }
8585
 
8586
    public void setSuccess(ItemInventory success) {
8587
      this.success = success;
8588
    }
8589
 
8590
    public void unsetSuccess() {
8591
      this.success = null;
8592
    }
8593
 
8594
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8595
    public boolean isSetSuccess() {
8596
      return this.success != null;
8597
    }
8598
 
8599
    public void setSuccessIsSet(boolean value) {
8600
      if (!value) {
8601
        this.success = null;
8602
      }
8603
    }
8604
 
8605
    public InventoryServiceException getCex() {
8606
      return this.cex;
8607
    }
8608
 
8609
    public void setCex(InventoryServiceException cex) {
8610
      this.cex = cex;
8611
    }
8612
 
8613
    public void unsetCex() {
8614
      this.cex = null;
8615
    }
8616
 
8617
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8618
    public boolean isSetCex() {
8619
      return this.cex != null;
8620
    }
8621
 
8622
    public void setCexIsSet(boolean value) {
8623
      if (!value) {
8624
        this.cex = null;
8625
      }
8626
    }
8627
 
8628
    public void setFieldValue(_Fields field, Object value) {
8629
      switch (field) {
8630
      case SUCCESS:
8631
        if (value == null) {
8632
          unsetSuccess();
8633
        } else {
8634
          setSuccess((ItemInventory)value);
8635
        }
8636
        break;
8637
 
8638
      case CEX:
8639
        if (value == null) {
8640
          unsetCex();
8641
        } else {
8642
          setCex((InventoryServiceException)value);
8643
        }
8644
        break;
8645
 
8646
      }
8647
    }
8648
 
8649
    public Object getFieldValue(_Fields field) {
8650
      switch (field) {
8651
      case SUCCESS:
8652
        return getSuccess();
8653
 
8654
      case CEX:
8655
        return getCex();
8656
 
8657
      }
8658
      throw new IllegalStateException();
8659
    }
8660
 
8661
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8662
    public boolean isSet(_Fields field) {
8663
      if (field == null) {
8664
        throw new IllegalArgumentException();
8665
      }
8666
 
8667
      switch (field) {
8668
      case SUCCESS:
8669
        return isSetSuccess();
8670
      case CEX:
8671
        return isSetCex();
8672
      }
8673
      throw new IllegalStateException();
8674
    }
8675
 
8676
    @Override
8677
    public boolean equals(Object that) {
8678
      if (that == null)
8679
        return false;
8680
      if (that instanceof getItemInventoryByItemId_result)
8681
        return this.equals((getItemInventoryByItemId_result)that);
8682
      return false;
8683
    }
8684
 
8685
    public boolean equals(getItemInventoryByItemId_result that) {
8686
      if (that == null)
8687
        return false;
8688
 
8689
      boolean this_present_success = true && this.isSetSuccess();
8690
      boolean that_present_success = true && that.isSetSuccess();
8691
      if (this_present_success || that_present_success) {
8692
        if (!(this_present_success && that_present_success))
8693
          return false;
8694
        if (!this.success.equals(that.success))
8695
          return false;
8696
      }
8697
 
8698
      boolean this_present_cex = true && this.isSetCex();
8699
      boolean that_present_cex = true && that.isSetCex();
8700
      if (this_present_cex || that_present_cex) {
8701
        if (!(this_present_cex && that_present_cex))
8702
          return false;
8703
        if (!this.cex.equals(that.cex))
8704
          return false;
8705
      }
8706
 
8707
      return true;
8708
    }
8709
 
8710
    @Override
8711
    public int hashCode() {
8712
      return 0;
8713
    }
8714
 
8715
    public int compareTo(getItemInventoryByItemId_result other) {
8716
      if (!getClass().equals(other.getClass())) {
8717
        return getClass().getName().compareTo(other.getClass().getName());
8718
      }
8719
 
8720
      int lastComparison = 0;
8721
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
8722
 
8723
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8724
      if (lastComparison != 0) {
8725
        return lastComparison;
8726
      }
8727
      if (isSetSuccess()) {
8728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8729
        if (lastComparison != 0) {
8730
          return lastComparison;
8731
        }
8732
      }
8733
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8734
      if (lastComparison != 0) {
8735
        return lastComparison;
8736
      }
8737
      if (isSetCex()) {
8738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8739
        if (lastComparison != 0) {
8740
          return lastComparison;
8741
        }
8742
      }
8743
      return 0;
8744
    }
8745
 
8746
    public _Fields fieldForId(int fieldId) {
8747
      return _Fields.findByThriftId(fieldId);
8748
    }
8749
 
8750
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8751
      org.apache.thrift.protocol.TField field;
8752
      iprot.readStructBegin();
8753
      while (true)
8754
      {
8755
        field = iprot.readFieldBegin();
8756
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8757
          break;
8758
        }
8759
        switch (field.id) {
8760
          case 0: // SUCCESS
8761
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8762
              this.success = new ItemInventory();
8763
              this.success.read(iprot);
8764
            } else { 
8765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8766
            }
8767
            break;
8768
          case 1: // CEX
8769
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8770
              this.cex = new InventoryServiceException();
8771
              this.cex.read(iprot);
8772
            } else { 
8773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8774
            }
8775
            break;
8776
          default:
8777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8778
        }
8779
        iprot.readFieldEnd();
8780
      }
8781
      iprot.readStructEnd();
8782
      validate();
8783
    }
8784
 
8785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8786
      oprot.writeStructBegin(STRUCT_DESC);
8787
 
8788
      if (this.isSetSuccess()) {
8789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8790
        this.success.write(oprot);
8791
        oprot.writeFieldEnd();
8792
      } else if (this.isSetCex()) {
8793
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8794
        this.cex.write(oprot);
8795
        oprot.writeFieldEnd();
8796
      }
8797
      oprot.writeFieldStop();
8798
      oprot.writeStructEnd();
8799
    }
8800
 
8801
    @Override
8802
    public String toString() {
8803
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
8804
      boolean first = true;
8805
 
8806
      sb.append("success:");
8807
      if (this.success == null) {
8808
        sb.append("null");
8809
      } else {
8810
        sb.append(this.success);
8811
      }
8812
      first = false;
8813
      if (!first) sb.append(", ");
8814
      sb.append("cex:");
8815
      if (this.cex == null) {
8816
        sb.append("null");
8817
      } else {
8818
        sb.append(this.cex);
8819
      }
8820
      first = false;
8821
      sb.append(")");
8822
      return sb.toString();
8823
    }
8824
 
8825
    public void validate() throws org.apache.thrift.TException {
8826
      // check for required fields
8827
    }
8828
 
8829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8830
      try {
8831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8832
      } catch (org.apache.thrift.TException te) {
8833
        throw new java.io.IOException(te);
8834
      }
8835
    }
8836
 
8837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8838
      try {
8839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8840
      } catch (org.apache.thrift.TException te) {
8841
        throw new java.io.IOException(te);
8842
      }
8843
    }
8844
 
8845
  }
8846
 
8847
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
8849
 
8850
    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);
8851
    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);
8852
 
8853
    private long warehouse_id; // required
8854
    private long item_id; // required
8855
 
8856
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8857
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8858
      WAREHOUSE_ID((short)1, "warehouse_id"),
8859
      ITEM_ID((short)2, "item_id");
8860
 
8861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8862
 
8863
      static {
8864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8865
          byName.put(field.getFieldName(), field);
8866
        }
8867
      }
8868
 
8869
      /**
8870
       * Find the _Fields constant that matches fieldId, or null if its not found.
8871
       */
8872
      public static _Fields findByThriftId(int fieldId) {
8873
        switch(fieldId) {
8874
          case 1: // WAREHOUSE_ID
8875
            return WAREHOUSE_ID;
8876
          case 2: // ITEM_ID
8877
            return ITEM_ID;
8878
          default:
8879
            return null;
8880
        }
8881
      }
8882
 
8883
      /**
8884
       * Find the _Fields constant that matches fieldId, throwing an exception
8885
       * if it is not found.
8886
       */
8887
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8888
        _Fields fields = findByThriftId(fieldId);
8889
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8890
        return fields;
8891
      }
8892
 
8893
      /**
8894
       * Find the _Fields constant that matches name, or null if its not found.
8895
       */
8896
      public static _Fields findByName(String name) {
8897
        return byName.get(name);
8898
      }
8899
 
8900
      private final short _thriftId;
8901
      private final String _fieldName;
8902
 
8903
      _Fields(short thriftId, String fieldName) {
8904
        _thriftId = thriftId;
8905
        _fieldName = fieldName;
8906
      }
8907
 
8908
      public short getThriftFieldId() {
8909
        return _thriftId;
8910
      }
8911
 
8912
      public String getFieldName() {
8913
        return _fieldName;
8914
      }
8915
    }
8916
 
8917
    // isset id assignments
8918
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8919
    private static final int __ITEM_ID_ISSET_ID = 1;
8920
    private BitSet __isset_bit_vector = new BitSet(2);
8921
 
8922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8923
    static {
8924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8925
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8927
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
8931
    }
8932
 
8933
    public getItemAvailibilityAtWarehouse_args() {
8934
    }
8935
 
8936
    public getItemAvailibilityAtWarehouse_args(
8937
      long warehouse_id,
8938
      long item_id)
8939
    {
8940
      this();
8941
      this.warehouse_id = warehouse_id;
8942
      setWarehouse_idIsSet(true);
8943
      this.item_id = item_id;
8944
      setItem_idIsSet(true);
8945
    }
8946
 
8947
    /**
8948
     * Performs a deep copy on <i>other</i>.
8949
     */
8950
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
8951
      __isset_bit_vector.clear();
8952
      __isset_bit_vector.or(other.__isset_bit_vector);
8953
      this.warehouse_id = other.warehouse_id;
8954
      this.item_id = other.item_id;
8955
    }
8956
 
8957
    public getItemAvailibilityAtWarehouse_args deepCopy() {
8958
      return new getItemAvailibilityAtWarehouse_args(this);
8959
    }
8960
 
8961
    @Override
8962
    public void clear() {
8963
      setWarehouse_idIsSet(false);
8964
      this.warehouse_id = 0;
8965
      setItem_idIsSet(false);
8966
      this.item_id = 0;
8967
    }
8968
 
8969
    public long getWarehouse_id() {
8970
      return this.warehouse_id;
8971
    }
8972
 
8973
    public void setWarehouse_id(long warehouse_id) {
8974
      this.warehouse_id = warehouse_id;
8975
      setWarehouse_idIsSet(true);
8976
    }
8977
 
8978
    public void unsetWarehouse_id() {
8979
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8980
    }
8981
 
8982
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8983
    public boolean isSetWarehouse_id() {
8984
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8985
    }
8986
 
8987
    public void setWarehouse_idIsSet(boolean value) {
8988
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8989
    }
8990
 
8991
    public long getItem_id() {
8992
      return this.item_id;
8993
    }
8994
 
8995
    public void setItem_id(long item_id) {
8996
      this.item_id = item_id;
8997
      setItem_idIsSet(true);
8998
    }
8999
 
9000
    public void unsetItem_id() {
9001
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9002
    }
9003
 
9004
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9005
    public boolean isSetItem_id() {
9006
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9007
    }
9008
 
9009
    public void setItem_idIsSet(boolean value) {
9010
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9011
    }
9012
 
9013
    public void setFieldValue(_Fields field, Object value) {
9014
      switch (field) {
9015
      case WAREHOUSE_ID:
9016
        if (value == null) {
9017
          unsetWarehouse_id();
9018
        } else {
9019
          setWarehouse_id((Long)value);
9020
        }
9021
        break;
9022
 
9023
      case ITEM_ID:
9024
        if (value == null) {
9025
          unsetItem_id();
9026
        } else {
9027
          setItem_id((Long)value);
9028
        }
9029
        break;
9030
 
9031
      }
9032
    }
9033
 
9034
    public Object getFieldValue(_Fields field) {
9035
      switch (field) {
9036
      case WAREHOUSE_ID:
9037
        return Long.valueOf(getWarehouse_id());
9038
 
9039
      case ITEM_ID:
9040
        return Long.valueOf(getItem_id());
9041
 
9042
      }
9043
      throw new IllegalStateException();
9044
    }
9045
 
9046
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9047
    public boolean isSet(_Fields field) {
9048
      if (field == null) {
9049
        throw new IllegalArgumentException();
9050
      }
9051
 
9052
      switch (field) {
9053
      case WAREHOUSE_ID:
9054
        return isSetWarehouse_id();
9055
      case ITEM_ID:
9056
        return isSetItem_id();
9057
      }
9058
      throw new IllegalStateException();
9059
    }
9060
 
9061
    @Override
9062
    public boolean equals(Object that) {
9063
      if (that == null)
9064
        return false;
9065
      if (that instanceof getItemAvailibilityAtWarehouse_args)
9066
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
9067
      return false;
9068
    }
9069
 
9070
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
9071
      if (that == null)
9072
        return false;
9073
 
9074
      boolean this_present_warehouse_id = true;
9075
      boolean that_present_warehouse_id = true;
9076
      if (this_present_warehouse_id || that_present_warehouse_id) {
9077
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9078
          return false;
9079
        if (this.warehouse_id != that.warehouse_id)
9080
          return false;
9081
      }
9082
 
9083
      boolean this_present_item_id = true;
9084
      boolean that_present_item_id = true;
9085
      if (this_present_item_id || that_present_item_id) {
9086
        if (!(this_present_item_id && that_present_item_id))
9087
          return false;
9088
        if (this.item_id != that.item_id)
9089
          return false;
9090
      }
9091
 
9092
      return true;
9093
    }
9094
 
9095
    @Override
9096
    public int hashCode() {
9097
      return 0;
9098
    }
9099
 
9100
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
9101
      if (!getClass().equals(other.getClass())) {
9102
        return getClass().getName().compareTo(other.getClass().getName());
9103
      }
9104
 
9105
      int lastComparison = 0;
9106
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
9107
 
9108
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9109
      if (lastComparison != 0) {
9110
        return lastComparison;
9111
      }
9112
      if (isSetWarehouse_id()) {
9113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9114
        if (lastComparison != 0) {
9115
          return lastComparison;
9116
        }
9117
      }
9118
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9119
      if (lastComparison != 0) {
9120
        return lastComparison;
9121
      }
9122
      if (isSetItem_id()) {
9123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9124
        if (lastComparison != 0) {
9125
          return lastComparison;
9126
        }
9127
      }
9128
      return 0;
9129
    }
9130
 
9131
    public _Fields fieldForId(int fieldId) {
9132
      return _Fields.findByThriftId(fieldId);
9133
    }
9134
 
9135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9136
      org.apache.thrift.protocol.TField field;
9137
      iprot.readStructBegin();
9138
      while (true)
9139
      {
9140
        field = iprot.readFieldBegin();
9141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9142
          break;
9143
        }
9144
        switch (field.id) {
9145
          case 1: // WAREHOUSE_ID
9146
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9147
              this.warehouse_id = iprot.readI64();
9148
              setWarehouse_idIsSet(true);
9149
            } else { 
9150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9151
            }
9152
            break;
9153
          case 2: // ITEM_ID
9154
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9155
              this.item_id = iprot.readI64();
9156
              setItem_idIsSet(true);
9157
            } else { 
9158
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9159
            }
9160
            break;
9161
          default:
9162
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9163
        }
9164
        iprot.readFieldEnd();
9165
      }
9166
      iprot.readStructEnd();
9167
      validate();
9168
    }
9169
 
9170
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9171
      validate();
9172
 
9173
      oprot.writeStructBegin(STRUCT_DESC);
9174
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9175
      oprot.writeI64(this.warehouse_id);
9176
      oprot.writeFieldEnd();
9177
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9178
      oprot.writeI64(this.item_id);
9179
      oprot.writeFieldEnd();
9180
      oprot.writeFieldStop();
9181
      oprot.writeStructEnd();
9182
    }
9183
 
9184
    @Override
9185
    public String toString() {
9186
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
9187
      boolean first = true;
9188
 
9189
      sb.append("warehouse_id:");
9190
      sb.append(this.warehouse_id);
9191
      first = false;
9192
      if (!first) sb.append(", ");
9193
      sb.append("item_id:");
9194
      sb.append(this.item_id);
9195
      first = false;
9196
      sb.append(")");
9197
      return sb.toString();
9198
    }
9199
 
9200
    public void validate() throws org.apache.thrift.TException {
9201
      // check for required fields
9202
    }
9203
 
9204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9205
      try {
9206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9207
      } catch (org.apache.thrift.TException te) {
9208
        throw new java.io.IOException(te);
9209
      }
9210
    }
9211
 
9212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9213
      try {
9214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9215
        __isset_bit_vector = new BitSet(1);
9216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9217
      } catch (org.apache.thrift.TException te) {
9218
        throw new java.io.IOException(te);
9219
      }
9220
    }
9221
 
9222
  }
9223
 
9224
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
9225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
9226
 
9227
    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);
9228
    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);
9229
 
9230
    private long success; // required
9231
    private InventoryServiceException cex; // required
9232
 
9233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9235
      SUCCESS((short)0, "success"),
9236
      CEX((short)1, "cex");
9237
 
9238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9239
 
9240
      static {
9241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9242
          byName.put(field.getFieldName(), field);
9243
        }
9244
      }
9245
 
9246
      /**
9247
       * Find the _Fields constant that matches fieldId, or null if its not found.
9248
       */
9249
      public static _Fields findByThriftId(int fieldId) {
9250
        switch(fieldId) {
9251
          case 0: // SUCCESS
9252
            return SUCCESS;
9253
          case 1: // CEX
9254
            return CEX;
9255
          default:
9256
            return null;
9257
        }
9258
      }
9259
 
9260
      /**
9261
       * Find the _Fields constant that matches fieldId, throwing an exception
9262
       * if it is not found.
9263
       */
9264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9265
        _Fields fields = findByThriftId(fieldId);
9266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9267
        return fields;
9268
      }
9269
 
9270
      /**
9271
       * Find the _Fields constant that matches name, or null if its not found.
9272
       */
9273
      public static _Fields findByName(String name) {
9274
        return byName.get(name);
9275
      }
9276
 
9277
      private final short _thriftId;
9278
      private final String _fieldName;
9279
 
9280
      _Fields(short thriftId, String fieldName) {
9281
        _thriftId = thriftId;
9282
        _fieldName = fieldName;
9283
      }
9284
 
9285
      public short getThriftFieldId() {
9286
        return _thriftId;
9287
      }
9288
 
9289
      public String getFieldName() {
9290
        return _fieldName;
9291
      }
9292
    }
9293
 
9294
    // isset id assignments
9295
    private static final int __SUCCESS_ISSET_ID = 0;
9296
    private BitSet __isset_bit_vector = new BitSet(1);
9297
 
9298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9299
    static {
9300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9303
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
9307
    }
9308
 
9309
    public getItemAvailibilityAtWarehouse_result() {
9310
    }
9311
 
9312
    public getItemAvailibilityAtWarehouse_result(
9313
      long success,
9314
      InventoryServiceException cex)
9315
    {
9316
      this();
9317
      this.success = success;
9318
      setSuccessIsSet(true);
9319
      this.cex = cex;
9320
    }
9321
 
9322
    /**
9323
     * Performs a deep copy on <i>other</i>.
9324
     */
9325
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
9326
      __isset_bit_vector.clear();
9327
      __isset_bit_vector.or(other.__isset_bit_vector);
9328
      this.success = other.success;
9329
      if (other.isSetCex()) {
9330
        this.cex = new InventoryServiceException(other.cex);
9331
      }
9332
    }
9333
 
9334
    public getItemAvailibilityAtWarehouse_result deepCopy() {
9335
      return new getItemAvailibilityAtWarehouse_result(this);
9336
    }
9337
 
9338
    @Override
9339
    public void clear() {
9340
      setSuccessIsSet(false);
9341
      this.success = 0;
9342
      this.cex = null;
9343
    }
9344
 
9345
    public long getSuccess() {
9346
      return this.success;
9347
    }
9348
 
9349
    public void setSuccess(long success) {
9350
      this.success = success;
9351
      setSuccessIsSet(true);
9352
    }
9353
 
9354
    public void unsetSuccess() {
9355
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9356
    }
9357
 
9358
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9359
    public boolean isSetSuccess() {
9360
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9361
    }
9362
 
9363
    public void setSuccessIsSet(boolean value) {
9364
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9365
    }
9366
 
9367
    public InventoryServiceException getCex() {
9368
      return this.cex;
9369
    }
9370
 
9371
    public void setCex(InventoryServiceException cex) {
9372
      this.cex = cex;
9373
    }
9374
 
9375
    public void unsetCex() {
9376
      this.cex = null;
9377
    }
9378
 
9379
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9380
    public boolean isSetCex() {
9381
      return this.cex != null;
9382
    }
9383
 
9384
    public void setCexIsSet(boolean value) {
9385
      if (!value) {
9386
        this.cex = null;
9387
      }
9388
    }
9389
 
9390
    public void setFieldValue(_Fields field, Object value) {
9391
      switch (field) {
9392
      case SUCCESS:
9393
        if (value == null) {
9394
          unsetSuccess();
9395
        } else {
9396
          setSuccess((Long)value);
9397
        }
9398
        break;
9399
 
9400
      case CEX:
9401
        if (value == null) {
9402
          unsetCex();
9403
        } else {
9404
          setCex((InventoryServiceException)value);
9405
        }
9406
        break;
9407
 
9408
      }
9409
    }
9410
 
9411
    public Object getFieldValue(_Fields field) {
9412
      switch (field) {
9413
      case SUCCESS:
9414
        return Long.valueOf(getSuccess());
9415
 
9416
      case CEX:
9417
        return getCex();
9418
 
9419
      }
9420
      throw new IllegalStateException();
9421
    }
9422
 
9423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9424
    public boolean isSet(_Fields field) {
9425
      if (field == null) {
9426
        throw new IllegalArgumentException();
9427
      }
9428
 
9429
      switch (field) {
9430
      case SUCCESS:
9431
        return isSetSuccess();
9432
      case CEX:
9433
        return isSetCex();
9434
      }
9435
      throw new IllegalStateException();
9436
    }
9437
 
9438
    @Override
9439
    public boolean equals(Object that) {
9440
      if (that == null)
9441
        return false;
9442
      if (that instanceof getItemAvailibilityAtWarehouse_result)
9443
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
9444
      return false;
9445
    }
9446
 
9447
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
9448
      if (that == null)
9449
        return false;
9450
 
9451
      boolean this_present_success = true;
9452
      boolean that_present_success = true;
9453
      if (this_present_success || that_present_success) {
9454
        if (!(this_present_success && that_present_success))
9455
          return false;
9456
        if (this.success != that.success)
9457
          return false;
9458
      }
9459
 
9460
      boolean this_present_cex = true && this.isSetCex();
9461
      boolean that_present_cex = true && that.isSetCex();
9462
      if (this_present_cex || that_present_cex) {
9463
        if (!(this_present_cex && that_present_cex))
9464
          return false;
9465
        if (!this.cex.equals(that.cex))
9466
          return false;
9467
      }
9468
 
9469
      return true;
9470
    }
9471
 
9472
    @Override
9473
    public int hashCode() {
9474
      return 0;
9475
    }
9476
 
9477
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
9478
      if (!getClass().equals(other.getClass())) {
9479
        return getClass().getName().compareTo(other.getClass().getName());
9480
      }
9481
 
9482
      int lastComparison = 0;
9483
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
9484
 
9485
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9486
      if (lastComparison != 0) {
9487
        return lastComparison;
9488
      }
9489
      if (isSetSuccess()) {
9490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9491
        if (lastComparison != 0) {
9492
          return lastComparison;
9493
        }
9494
      }
9495
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9496
      if (lastComparison != 0) {
9497
        return lastComparison;
9498
      }
9499
      if (isSetCex()) {
9500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9501
        if (lastComparison != 0) {
9502
          return lastComparison;
9503
        }
9504
      }
9505
      return 0;
9506
    }
9507
 
9508
    public _Fields fieldForId(int fieldId) {
9509
      return _Fields.findByThriftId(fieldId);
9510
    }
9511
 
9512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9513
      org.apache.thrift.protocol.TField field;
9514
      iprot.readStructBegin();
9515
      while (true)
9516
      {
9517
        field = iprot.readFieldBegin();
9518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9519
          break;
9520
        }
9521
        switch (field.id) {
9522
          case 0: // SUCCESS
9523
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9524
              this.success = iprot.readI64();
9525
              setSuccessIsSet(true);
9526
            } else { 
9527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9528
            }
9529
            break;
9530
          case 1: // CEX
9531
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9532
              this.cex = new InventoryServiceException();
9533
              this.cex.read(iprot);
9534
            } else { 
9535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9536
            }
9537
            break;
9538
          default:
9539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9540
        }
9541
        iprot.readFieldEnd();
9542
      }
9543
      iprot.readStructEnd();
9544
      validate();
9545
    }
9546
 
9547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9548
      oprot.writeStructBegin(STRUCT_DESC);
9549
 
9550
      if (this.isSetSuccess()) {
9551
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9552
        oprot.writeI64(this.success);
9553
        oprot.writeFieldEnd();
9554
      } else if (this.isSetCex()) {
9555
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9556
        this.cex.write(oprot);
9557
        oprot.writeFieldEnd();
9558
      }
9559
      oprot.writeFieldStop();
9560
      oprot.writeStructEnd();
9561
    }
9562
 
9563
    @Override
9564
    public String toString() {
9565
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
9566
      boolean first = true;
9567
 
9568
      sb.append("success:");
9569
      sb.append(this.success);
9570
      first = false;
9571
      if (!first) sb.append(", ");
9572
      sb.append("cex:");
9573
      if (this.cex == null) {
9574
        sb.append("null");
9575
      } else {
9576
        sb.append(this.cex);
9577
      }
9578
      first = false;
9579
      sb.append(")");
9580
      return sb.toString();
9581
    }
9582
 
9583
    public void validate() throws org.apache.thrift.TException {
9584
      // check for required fields
9585
    }
9586
 
9587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9588
      try {
9589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9590
      } catch (org.apache.thrift.TException te) {
9591
        throw new java.io.IOException(te);
9592
      }
9593
    }
9594
 
9595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9596
      try {
9597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9598
      } catch (org.apache.thrift.TException te) {
9599
        throw new java.io.IOException(te);
9600
      }
9601
    }
9602
 
9603
  }
9604
 
9605
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
9606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
9607
 
9608
    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 9609
    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 9610
 
9611
    private long itemId; // required
5978 rajveer 9612
    private long sourceId; // required
5945 mandeep.dh 9613
 
9614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 9616
      ITEM_ID((short)1, "itemId"),
9617
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 9618
 
9619
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9620
 
9621
      static {
9622
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9623
          byName.put(field.getFieldName(), field);
9624
        }
9625
      }
9626
 
9627
      /**
9628
       * Find the _Fields constant that matches fieldId, or null if its not found.
9629
       */
9630
      public static _Fields findByThriftId(int fieldId) {
9631
        switch(fieldId) {
9632
          case 1: // ITEM_ID
9633
            return ITEM_ID;
5978 rajveer 9634
          case 2: // SOURCE_ID
9635
            return SOURCE_ID;
5945 mandeep.dh 9636
          default:
9637
            return null;
9638
        }
9639
      }
9640
 
9641
      /**
9642
       * Find the _Fields constant that matches fieldId, throwing an exception
9643
       * if it is not found.
9644
       */
9645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9646
        _Fields fields = findByThriftId(fieldId);
9647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9648
        return fields;
9649
      }
9650
 
9651
      /**
9652
       * Find the _Fields constant that matches name, or null if its not found.
9653
       */
9654
      public static _Fields findByName(String name) {
9655
        return byName.get(name);
9656
      }
9657
 
9658
      private final short _thriftId;
9659
      private final String _fieldName;
9660
 
9661
      _Fields(short thriftId, String fieldName) {
9662
        _thriftId = thriftId;
9663
        _fieldName = fieldName;
9664
      }
9665
 
9666
      public short getThriftFieldId() {
9667
        return _thriftId;
9668
      }
9669
 
9670
      public String getFieldName() {
9671
        return _fieldName;
9672
      }
9673
    }
9674
 
9675
    // isset id assignments
9676
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 9677
    private static final int __SOURCEID_ISSET_ID = 1;
9678
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 9679
 
9680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9681
    static {
9682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9683
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 9685
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 9687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
9689
    }
9690
 
9691
    public getItemAvailabilityAtLocation_args() {
9692
    }
9693
 
9694
    public getItemAvailabilityAtLocation_args(
5978 rajveer 9695
      long itemId,
9696
      long sourceId)
5945 mandeep.dh 9697
    {
9698
      this();
9699
      this.itemId = itemId;
9700
      setItemIdIsSet(true);
5978 rajveer 9701
      this.sourceId = sourceId;
9702
      setSourceIdIsSet(true);
5945 mandeep.dh 9703
    }
9704
 
9705
    /**
9706
     * Performs a deep copy on <i>other</i>.
9707
     */
9708
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
9709
      __isset_bit_vector.clear();
9710
      __isset_bit_vector.or(other.__isset_bit_vector);
9711
      this.itemId = other.itemId;
5978 rajveer 9712
      this.sourceId = other.sourceId;
5945 mandeep.dh 9713
    }
9714
 
9715
    public getItemAvailabilityAtLocation_args deepCopy() {
9716
      return new getItemAvailabilityAtLocation_args(this);
9717
    }
9718
 
9719
    @Override
9720
    public void clear() {
9721
      setItemIdIsSet(false);
9722
      this.itemId = 0;
5978 rajveer 9723
      setSourceIdIsSet(false);
9724
      this.sourceId = 0;
5945 mandeep.dh 9725
    }
9726
 
9727
    public long getItemId() {
9728
      return this.itemId;
9729
    }
9730
 
9731
    public void setItemId(long itemId) {
9732
      this.itemId = itemId;
9733
      setItemIdIsSet(true);
9734
    }
9735
 
9736
    public void unsetItemId() {
9737
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9738
    }
9739
 
9740
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9741
    public boolean isSetItemId() {
9742
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9743
    }
9744
 
9745
    public void setItemIdIsSet(boolean value) {
9746
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9747
    }
9748
 
5978 rajveer 9749
    public long getSourceId() {
9750
      return this.sourceId;
9751
    }
9752
 
9753
    public void setSourceId(long sourceId) {
9754
      this.sourceId = sourceId;
9755
      setSourceIdIsSet(true);
9756
    }
9757
 
9758
    public void unsetSourceId() {
9759
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
9760
    }
9761
 
9762
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
9763
    public boolean isSetSourceId() {
9764
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
9765
    }
9766
 
9767
    public void setSourceIdIsSet(boolean value) {
9768
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
9769
    }
9770
 
5945 mandeep.dh 9771
    public void setFieldValue(_Fields field, Object value) {
9772
      switch (field) {
9773
      case ITEM_ID:
9774
        if (value == null) {
9775
          unsetItemId();
9776
        } else {
9777
          setItemId((Long)value);
9778
        }
9779
        break;
9780
 
5978 rajveer 9781
      case SOURCE_ID:
9782
        if (value == null) {
9783
          unsetSourceId();
9784
        } else {
9785
          setSourceId((Long)value);
9786
        }
9787
        break;
9788
 
5945 mandeep.dh 9789
      }
9790
    }
9791
 
9792
    public Object getFieldValue(_Fields field) {
9793
      switch (field) {
9794
      case ITEM_ID:
9795
        return Long.valueOf(getItemId());
9796
 
5978 rajveer 9797
      case SOURCE_ID:
9798
        return Long.valueOf(getSourceId());
9799
 
5945 mandeep.dh 9800
      }
9801
      throw new IllegalStateException();
9802
    }
9803
 
9804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9805
    public boolean isSet(_Fields field) {
9806
      if (field == null) {
9807
        throw new IllegalArgumentException();
9808
      }
9809
 
9810
      switch (field) {
9811
      case ITEM_ID:
9812
        return isSetItemId();
5978 rajveer 9813
      case SOURCE_ID:
9814
        return isSetSourceId();
5945 mandeep.dh 9815
      }
9816
      throw new IllegalStateException();
9817
    }
9818
 
9819
    @Override
9820
    public boolean equals(Object that) {
9821
      if (that == null)
9822
        return false;
9823
      if (that instanceof getItemAvailabilityAtLocation_args)
9824
        return this.equals((getItemAvailabilityAtLocation_args)that);
9825
      return false;
9826
    }
9827
 
9828
    public boolean equals(getItemAvailabilityAtLocation_args that) {
9829
      if (that == null)
9830
        return false;
9831
 
9832
      boolean this_present_itemId = true;
9833
      boolean that_present_itemId = true;
9834
      if (this_present_itemId || that_present_itemId) {
9835
        if (!(this_present_itemId && that_present_itemId))
9836
          return false;
9837
        if (this.itemId != that.itemId)
9838
          return false;
9839
      }
9840
 
5978 rajveer 9841
      boolean this_present_sourceId = true;
9842
      boolean that_present_sourceId = true;
9843
      if (this_present_sourceId || that_present_sourceId) {
9844
        if (!(this_present_sourceId && that_present_sourceId))
9845
          return false;
9846
        if (this.sourceId != that.sourceId)
9847
          return false;
9848
      }
9849
 
5945 mandeep.dh 9850
      return true;
9851
    }
9852
 
9853
    @Override
9854
    public int hashCode() {
9855
      return 0;
9856
    }
9857
 
9858
    public int compareTo(getItemAvailabilityAtLocation_args other) {
9859
      if (!getClass().equals(other.getClass())) {
9860
        return getClass().getName().compareTo(other.getClass().getName());
9861
      }
9862
 
9863
      int lastComparison = 0;
9864
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
9865
 
9866
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9867
      if (lastComparison != 0) {
9868
        return lastComparison;
9869
      }
9870
      if (isSetItemId()) {
9871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9872
        if (lastComparison != 0) {
9873
          return lastComparison;
9874
        }
9875
      }
5978 rajveer 9876
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
9877
      if (lastComparison != 0) {
9878
        return lastComparison;
9879
      }
9880
      if (isSetSourceId()) {
9881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
9882
        if (lastComparison != 0) {
9883
          return lastComparison;
9884
        }
9885
      }
5945 mandeep.dh 9886
      return 0;
9887
    }
9888
 
9889
    public _Fields fieldForId(int fieldId) {
9890
      return _Fields.findByThriftId(fieldId);
9891
    }
9892
 
9893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9894
      org.apache.thrift.protocol.TField field;
9895
      iprot.readStructBegin();
9896
      while (true)
9897
      {
9898
        field = iprot.readFieldBegin();
9899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9900
          break;
9901
        }
9902
        switch (field.id) {
9903
          case 1: // ITEM_ID
9904
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9905
              this.itemId = iprot.readI64();
9906
              setItemIdIsSet(true);
9907
            } else { 
9908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9909
            }
9910
            break;
5978 rajveer 9911
          case 2: // SOURCE_ID
9912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9913
              this.sourceId = iprot.readI64();
9914
              setSourceIdIsSet(true);
9915
            } else { 
9916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9917
            }
9918
            break;
5945 mandeep.dh 9919
          default:
9920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9921
        }
9922
        iprot.readFieldEnd();
9923
      }
9924
      iprot.readStructEnd();
9925
      validate();
9926
    }
9927
 
9928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9929
      validate();
9930
 
9931
      oprot.writeStructBegin(STRUCT_DESC);
9932
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9933
      oprot.writeI64(this.itemId);
9934
      oprot.writeFieldEnd();
5978 rajveer 9935
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
9936
      oprot.writeI64(this.sourceId);
9937
      oprot.writeFieldEnd();
5945 mandeep.dh 9938
      oprot.writeFieldStop();
9939
      oprot.writeStructEnd();
9940
    }
9941
 
9942
    @Override
9943
    public String toString() {
9944
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
9945
      boolean first = true;
9946
 
9947
      sb.append("itemId:");
9948
      sb.append(this.itemId);
9949
      first = false;
5978 rajveer 9950
      if (!first) sb.append(", ");
9951
      sb.append("sourceId:");
9952
      sb.append(this.sourceId);
9953
      first = false;
5945 mandeep.dh 9954
      sb.append(")");
9955
      return sb.toString();
9956
    }
9957
 
9958
    public void validate() throws org.apache.thrift.TException {
9959
      // check for required fields
9960
    }
9961
 
9962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9963
      try {
9964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9965
      } catch (org.apache.thrift.TException te) {
9966
        throw new java.io.IOException(te);
9967
      }
9968
    }
9969
 
9970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9971
      try {
9972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9973
      } catch (org.apache.thrift.TException te) {
9974
        throw new java.io.IOException(te);
9975
      }
9976
    }
9977
 
9978
  }
9979
 
9980
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
9981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
9982
 
9983
    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);
9984
    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);
9985
 
9986
    private List<Long> success; // required
9987
    private InventoryServiceException isex; // required
9988
 
9989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9991
      SUCCESS((short)0, "success"),
9992
      ISEX((short)1, "isex");
9993
 
9994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9995
 
9996
      static {
9997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9998
          byName.put(field.getFieldName(), field);
9999
        }
10000
      }
10001
 
10002
      /**
10003
       * Find the _Fields constant that matches fieldId, or null if its not found.
10004
       */
10005
      public static _Fields findByThriftId(int fieldId) {
10006
        switch(fieldId) {
10007
          case 0: // SUCCESS
10008
            return SUCCESS;
10009
          case 1: // ISEX
10010
            return ISEX;
10011
          default:
10012
            return null;
10013
        }
10014
      }
10015
 
10016
      /**
10017
       * Find the _Fields constant that matches fieldId, throwing an exception
10018
       * if it is not found.
10019
       */
10020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10021
        _Fields fields = findByThriftId(fieldId);
10022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10023
        return fields;
10024
      }
10025
 
10026
      /**
10027
       * Find the _Fields constant that matches name, or null if its not found.
10028
       */
10029
      public static _Fields findByName(String name) {
10030
        return byName.get(name);
10031
      }
10032
 
10033
      private final short _thriftId;
10034
      private final String _fieldName;
10035
 
10036
      _Fields(short thriftId, String fieldName) {
10037
        _thriftId = thriftId;
10038
        _fieldName = fieldName;
10039
      }
10040
 
10041
      public short getThriftFieldId() {
10042
        return _thriftId;
10043
      }
10044
 
10045
      public String getFieldName() {
10046
        return _fieldName;
10047
      }
10048
    }
10049
 
10050
    // isset id assignments
10051
 
10052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10053
    static {
10054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10056
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10057
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10058
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
10062
    }
10063
 
10064
    public getItemAvailabilityAtLocation_result() {
10065
    }
10066
 
10067
    public getItemAvailabilityAtLocation_result(
10068
      List<Long> success,
10069
      InventoryServiceException isex)
10070
    {
10071
      this();
10072
      this.success = success;
10073
      this.isex = isex;
10074
    }
10075
 
10076
    /**
10077
     * Performs a deep copy on <i>other</i>.
10078
     */
10079
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
10080
      if (other.isSetSuccess()) {
10081
        List<Long> __this__success = new ArrayList<Long>();
10082
        for (Long other_element : other.success) {
10083
          __this__success.add(other_element);
10084
        }
10085
        this.success = __this__success;
10086
      }
10087
      if (other.isSetIsex()) {
10088
        this.isex = new InventoryServiceException(other.isex);
10089
      }
10090
    }
10091
 
10092
    public getItemAvailabilityAtLocation_result deepCopy() {
10093
      return new getItemAvailabilityAtLocation_result(this);
10094
    }
10095
 
10096
    @Override
10097
    public void clear() {
10098
      this.success = null;
10099
      this.isex = null;
10100
    }
10101
 
10102
    public int getSuccessSize() {
10103
      return (this.success == null) ? 0 : this.success.size();
10104
    }
10105
 
10106
    public java.util.Iterator<Long> getSuccessIterator() {
10107
      return (this.success == null) ? null : this.success.iterator();
10108
    }
10109
 
10110
    public void addToSuccess(long elem) {
10111
      if (this.success == null) {
10112
        this.success = new ArrayList<Long>();
10113
      }
10114
      this.success.add(elem);
10115
    }
10116
 
10117
    public List<Long> getSuccess() {
10118
      return this.success;
10119
    }
10120
 
10121
    public void setSuccess(List<Long> success) {
10122
      this.success = success;
10123
    }
10124
 
10125
    public void unsetSuccess() {
10126
      this.success = null;
10127
    }
10128
 
10129
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10130
    public boolean isSetSuccess() {
10131
      return this.success != null;
10132
    }
10133
 
10134
    public void setSuccessIsSet(boolean value) {
10135
      if (!value) {
10136
        this.success = null;
10137
      }
10138
    }
10139
 
10140
    public InventoryServiceException getIsex() {
10141
      return this.isex;
10142
    }
10143
 
10144
    public void setIsex(InventoryServiceException isex) {
10145
      this.isex = isex;
10146
    }
10147
 
10148
    public void unsetIsex() {
10149
      this.isex = null;
10150
    }
10151
 
10152
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
10153
    public boolean isSetIsex() {
10154
      return this.isex != null;
10155
    }
10156
 
10157
    public void setIsexIsSet(boolean value) {
10158
      if (!value) {
10159
        this.isex = null;
10160
      }
10161
    }
10162
 
10163
    public void setFieldValue(_Fields field, Object value) {
10164
      switch (field) {
10165
      case SUCCESS:
10166
        if (value == null) {
10167
          unsetSuccess();
10168
        } else {
10169
          setSuccess((List<Long>)value);
10170
        }
10171
        break;
10172
 
10173
      case ISEX:
10174
        if (value == null) {
10175
          unsetIsex();
10176
        } else {
10177
          setIsex((InventoryServiceException)value);
10178
        }
10179
        break;
10180
 
10181
      }
10182
    }
10183
 
10184
    public Object getFieldValue(_Fields field) {
10185
      switch (field) {
10186
      case SUCCESS:
10187
        return getSuccess();
10188
 
10189
      case ISEX:
10190
        return getIsex();
10191
 
10192
      }
10193
      throw new IllegalStateException();
10194
    }
10195
 
10196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10197
    public boolean isSet(_Fields field) {
10198
      if (field == null) {
10199
        throw new IllegalArgumentException();
10200
      }
10201
 
10202
      switch (field) {
10203
      case SUCCESS:
10204
        return isSetSuccess();
10205
      case ISEX:
10206
        return isSetIsex();
10207
      }
10208
      throw new IllegalStateException();
10209
    }
10210
 
10211
    @Override
10212
    public boolean equals(Object that) {
10213
      if (that == null)
10214
        return false;
10215
      if (that instanceof getItemAvailabilityAtLocation_result)
10216
        return this.equals((getItemAvailabilityAtLocation_result)that);
10217
      return false;
10218
    }
10219
 
10220
    public boolean equals(getItemAvailabilityAtLocation_result that) {
10221
      if (that == null)
10222
        return false;
10223
 
10224
      boolean this_present_success = true && this.isSetSuccess();
10225
      boolean that_present_success = true && that.isSetSuccess();
10226
      if (this_present_success || that_present_success) {
10227
        if (!(this_present_success && that_present_success))
10228
          return false;
10229
        if (!this.success.equals(that.success))
10230
          return false;
10231
      }
10232
 
10233
      boolean this_present_isex = true && this.isSetIsex();
10234
      boolean that_present_isex = true && that.isSetIsex();
10235
      if (this_present_isex || that_present_isex) {
10236
        if (!(this_present_isex && that_present_isex))
10237
          return false;
10238
        if (!this.isex.equals(that.isex))
10239
          return false;
10240
      }
10241
 
10242
      return true;
10243
    }
10244
 
10245
    @Override
10246
    public int hashCode() {
10247
      return 0;
10248
    }
10249
 
10250
    public int compareTo(getItemAvailabilityAtLocation_result other) {
10251
      if (!getClass().equals(other.getClass())) {
10252
        return getClass().getName().compareTo(other.getClass().getName());
10253
      }
10254
 
10255
      int lastComparison = 0;
10256
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
10257
 
10258
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10259
      if (lastComparison != 0) {
10260
        return lastComparison;
10261
      }
10262
      if (isSetSuccess()) {
10263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10264
        if (lastComparison != 0) {
10265
          return lastComparison;
10266
        }
10267
      }
10268
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
10269
      if (lastComparison != 0) {
10270
        return lastComparison;
10271
      }
10272
      if (isSetIsex()) {
10273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
10274
        if (lastComparison != 0) {
10275
          return lastComparison;
10276
        }
10277
      }
10278
      return 0;
10279
    }
10280
 
10281
    public _Fields fieldForId(int fieldId) {
10282
      return _Fields.findByThriftId(fieldId);
10283
    }
10284
 
10285
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10286
      org.apache.thrift.protocol.TField field;
10287
      iprot.readStructBegin();
10288
      while (true)
10289
      {
10290
        field = iprot.readFieldBegin();
10291
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10292
          break;
10293
        }
10294
        switch (field.id) {
10295
          case 0: // SUCCESS
10296
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10297
              {
10298
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
10299
                this.success = new ArrayList<Long>(_list20.size);
10300
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
10301
                {
10302
                  long _elem22; // required
10303
                  _elem22 = iprot.readI64();
10304
                  this.success.add(_elem22);
10305
                }
10306
                iprot.readListEnd();
10307
              }
10308
            } else { 
10309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10310
            }
10311
            break;
10312
          case 1: // ISEX
10313
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10314
              this.isex = new InventoryServiceException();
10315
              this.isex.read(iprot);
10316
            } else { 
10317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10318
            }
10319
            break;
10320
          default:
10321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10322
        }
10323
        iprot.readFieldEnd();
10324
      }
10325
      iprot.readStructEnd();
10326
      validate();
10327
    }
10328
 
10329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10330
      oprot.writeStructBegin(STRUCT_DESC);
10331
 
10332
      if (this.isSetSuccess()) {
10333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10334
        {
10335
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
10336
          for (long _iter23 : this.success)
10337
          {
10338
            oprot.writeI64(_iter23);
10339
          }
10340
          oprot.writeListEnd();
10341
        }
10342
        oprot.writeFieldEnd();
10343
      } else if (this.isSetIsex()) {
10344
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
10345
        this.isex.write(oprot);
10346
        oprot.writeFieldEnd();
10347
      }
10348
      oprot.writeFieldStop();
10349
      oprot.writeStructEnd();
10350
    }
10351
 
10352
    @Override
10353
    public String toString() {
10354
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
10355
      boolean first = true;
10356
 
10357
      sb.append("success:");
10358
      if (this.success == null) {
10359
        sb.append("null");
10360
      } else {
10361
        sb.append(this.success);
10362
      }
10363
      first = false;
10364
      if (!first) sb.append(", ");
10365
      sb.append("isex:");
10366
      if (this.isex == null) {
10367
        sb.append("null");
10368
      } else {
10369
        sb.append(this.isex);
10370
      }
10371
      first = false;
10372
      sb.append(")");
10373
      return sb.toString();
10374
    }
10375
 
10376
    public void validate() throws org.apache.thrift.TException {
10377
      // check for required fields
10378
    }
10379
 
10380
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10381
      try {
10382
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10383
      } catch (org.apache.thrift.TException te) {
10384
        throw new java.io.IOException(te);
10385
      }
10386
    }
10387
 
10388
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10389
      try {
10390
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10391
      } catch (org.apache.thrift.TException te) {
10392
        throw new java.io.IOException(te);
10393
      }
10394
    }
10395
 
10396
  }
10397
 
10398
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
10399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
10400
 
10401
    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);
10402
 
10403
    private boolean isActive; // required
10404
 
10405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10407
      IS_ACTIVE((short)1, "isActive");
10408
 
10409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10410
 
10411
      static {
10412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10413
          byName.put(field.getFieldName(), field);
10414
        }
10415
      }
10416
 
10417
      /**
10418
       * Find the _Fields constant that matches fieldId, or null if its not found.
10419
       */
10420
      public static _Fields findByThriftId(int fieldId) {
10421
        switch(fieldId) {
10422
          case 1: // IS_ACTIVE
10423
            return IS_ACTIVE;
10424
          default:
10425
            return null;
10426
        }
10427
      }
10428
 
10429
      /**
10430
       * Find the _Fields constant that matches fieldId, throwing an exception
10431
       * if it is not found.
10432
       */
10433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10434
        _Fields fields = findByThriftId(fieldId);
10435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10436
        return fields;
10437
      }
10438
 
10439
      /**
10440
       * Find the _Fields constant that matches name, or null if its not found.
10441
       */
10442
      public static _Fields findByName(String name) {
10443
        return byName.get(name);
10444
      }
10445
 
10446
      private final short _thriftId;
10447
      private final String _fieldName;
10448
 
10449
      _Fields(short thriftId, String fieldName) {
10450
        _thriftId = thriftId;
10451
        _fieldName = fieldName;
10452
      }
10453
 
10454
      public short getThriftFieldId() {
10455
        return _thriftId;
10456
      }
10457
 
10458
      public String getFieldName() {
10459
        return _fieldName;
10460
      }
10461
    }
10462
 
10463
    // isset id assignments
10464
    private static final int __ISACTIVE_ISSET_ID = 0;
10465
    private BitSet __isset_bit_vector = new BitSet(1);
10466
 
10467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10468
    static {
10469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10470
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10471
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
10474
    }
10475
 
10476
    public getAllWarehouses_args() {
10477
    }
10478
 
10479
    public getAllWarehouses_args(
10480
      boolean isActive)
10481
    {
10482
      this();
10483
      this.isActive = isActive;
10484
      setIsActiveIsSet(true);
10485
    }
10486
 
10487
    /**
10488
     * Performs a deep copy on <i>other</i>.
10489
     */
10490
    public getAllWarehouses_args(getAllWarehouses_args other) {
10491
      __isset_bit_vector.clear();
10492
      __isset_bit_vector.or(other.__isset_bit_vector);
10493
      this.isActive = other.isActive;
10494
    }
10495
 
10496
    public getAllWarehouses_args deepCopy() {
10497
      return new getAllWarehouses_args(this);
10498
    }
10499
 
10500
    @Override
10501
    public void clear() {
10502
      setIsActiveIsSet(false);
10503
      this.isActive = false;
10504
    }
10505
 
10506
    public boolean isIsActive() {
10507
      return this.isActive;
10508
    }
10509
 
10510
    public void setIsActive(boolean isActive) {
10511
      this.isActive = isActive;
10512
      setIsActiveIsSet(true);
10513
    }
10514
 
10515
    public void unsetIsActive() {
10516
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
10517
    }
10518
 
10519
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
10520
    public boolean isSetIsActive() {
10521
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
10522
    }
10523
 
10524
    public void setIsActiveIsSet(boolean value) {
10525
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
10526
    }
10527
 
10528
    public void setFieldValue(_Fields field, Object value) {
10529
      switch (field) {
10530
      case IS_ACTIVE:
10531
        if (value == null) {
10532
          unsetIsActive();
10533
        } else {
10534
          setIsActive((Boolean)value);
10535
        }
10536
        break;
10537
 
10538
      }
10539
    }
10540
 
10541
    public Object getFieldValue(_Fields field) {
10542
      switch (field) {
10543
      case IS_ACTIVE:
10544
        return Boolean.valueOf(isIsActive());
10545
 
10546
      }
10547
      throw new IllegalStateException();
10548
    }
10549
 
10550
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10551
    public boolean isSet(_Fields field) {
10552
      if (field == null) {
10553
        throw new IllegalArgumentException();
10554
      }
10555
 
10556
      switch (field) {
10557
      case IS_ACTIVE:
10558
        return isSetIsActive();
10559
      }
10560
      throw new IllegalStateException();
10561
    }
10562
 
10563
    @Override
10564
    public boolean equals(Object that) {
10565
      if (that == null)
10566
        return false;
10567
      if (that instanceof getAllWarehouses_args)
10568
        return this.equals((getAllWarehouses_args)that);
10569
      return false;
10570
    }
10571
 
10572
    public boolean equals(getAllWarehouses_args that) {
10573
      if (that == null)
10574
        return false;
10575
 
10576
      boolean this_present_isActive = true;
10577
      boolean that_present_isActive = true;
10578
      if (this_present_isActive || that_present_isActive) {
10579
        if (!(this_present_isActive && that_present_isActive))
10580
          return false;
10581
        if (this.isActive != that.isActive)
10582
          return false;
10583
      }
10584
 
10585
      return true;
10586
    }
10587
 
10588
    @Override
10589
    public int hashCode() {
10590
      return 0;
10591
    }
10592
 
10593
    public int compareTo(getAllWarehouses_args other) {
10594
      if (!getClass().equals(other.getClass())) {
10595
        return getClass().getName().compareTo(other.getClass().getName());
10596
      }
10597
 
10598
      int lastComparison = 0;
10599
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
10600
 
10601
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
10602
      if (lastComparison != 0) {
10603
        return lastComparison;
10604
      }
10605
      if (isSetIsActive()) {
10606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
10607
        if (lastComparison != 0) {
10608
          return lastComparison;
10609
        }
10610
      }
10611
      return 0;
10612
    }
10613
 
10614
    public _Fields fieldForId(int fieldId) {
10615
      return _Fields.findByThriftId(fieldId);
10616
    }
10617
 
10618
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10619
      org.apache.thrift.protocol.TField field;
10620
      iprot.readStructBegin();
10621
      while (true)
10622
      {
10623
        field = iprot.readFieldBegin();
10624
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10625
          break;
10626
        }
10627
        switch (field.id) {
10628
          case 1: // IS_ACTIVE
10629
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10630
              this.isActive = iprot.readBool();
10631
              setIsActiveIsSet(true);
10632
            } else { 
10633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10634
            }
10635
            break;
10636
          default:
10637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10638
        }
10639
        iprot.readFieldEnd();
10640
      }
10641
      iprot.readStructEnd();
10642
      validate();
10643
    }
10644
 
10645
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10646
      validate();
10647
 
10648
      oprot.writeStructBegin(STRUCT_DESC);
10649
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
10650
      oprot.writeBool(this.isActive);
10651
      oprot.writeFieldEnd();
10652
      oprot.writeFieldStop();
10653
      oprot.writeStructEnd();
10654
    }
10655
 
10656
    @Override
10657
    public String toString() {
10658
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
10659
      boolean first = true;
10660
 
10661
      sb.append("isActive:");
10662
      sb.append(this.isActive);
10663
      first = false;
10664
      sb.append(")");
10665
      return sb.toString();
10666
    }
10667
 
10668
    public void validate() throws org.apache.thrift.TException {
10669
      // check for required fields
10670
    }
10671
 
10672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10673
      try {
10674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10675
      } catch (org.apache.thrift.TException te) {
10676
        throw new java.io.IOException(te);
10677
      }
10678
    }
10679
 
10680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10681
      try {
10682
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10683
        __isset_bit_vector = new BitSet(1);
10684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10685
      } catch (org.apache.thrift.TException te) {
10686
        throw new java.io.IOException(te);
10687
      }
10688
    }
10689
 
10690
  }
10691
 
10692
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
10693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
10694
 
10695
    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);
10696
    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);
10697
 
10698
    private List<Warehouse> success; // required
10699
    private InventoryServiceException cex; // required
10700
 
10701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10703
      SUCCESS((short)0, "success"),
10704
      CEX((short)1, "cex");
10705
 
10706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10707
 
10708
      static {
10709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10710
          byName.put(field.getFieldName(), field);
10711
        }
10712
      }
10713
 
10714
      /**
10715
       * Find the _Fields constant that matches fieldId, or null if its not found.
10716
       */
10717
      public static _Fields findByThriftId(int fieldId) {
10718
        switch(fieldId) {
10719
          case 0: // SUCCESS
10720
            return SUCCESS;
10721
          case 1: // CEX
10722
            return CEX;
10723
          default:
10724
            return null;
10725
        }
10726
      }
10727
 
10728
      /**
10729
       * Find the _Fields constant that matches fieldId, throwing an exception
10730
       * if it is not found.
10731
       */
10732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10733
        _Fields fields = findByThriftId(fieldId);
10734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10735
        return fields;
10736
      }
10737
 
10738
      /**
10739
       * Find the _Fields constant that matches name, or null if its not found.
10740
       */
10741
      public static _Fields findByName(String name) {
10742
        return byName.get(name);
10743
      }
10744
 
10745
      private final short _thriftId;
10746
      private final String _fieldName;
10747
 
10748
      _Fields(short thriftId, String fieldName) {
10749
        _thriftId = thriftId;
10750
        _fieldName = fieldName;
10751
      }
10752
 
10753
      public short getThriftFieldId() {
10754
        return _thriftId;
10755
      }
10756
 
10757
      public String getFieldName() {
10758
        return _fieldName;
10759
      }
10760
    }
10761
 
10762
    // isset id assignments
10763
 
10764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10765
    static {
10766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10768
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10769
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
10770
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
10774
    }
10775
 
10776
    public getAllWarehouses_result() {
10777
    }
10778
 
10779
    public getAllWarehouses_result(
10780
      List<Warehouse> success,
10781
      InventoryServiceException cex)
10782
    {
10783
      this();
10784
      this.success = success;
10785
      this.cex = cex;
10786
    }
10787
 
10788
    /**
10789
     * Performs a deep copy on <i>other</i>.
10790
     */
10791
    public getAllWarehouses_result(getAllWarehouses_result other) {
10792
      if (other.isSetSuccess()) {
10793
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
10794
        for (Warehouse other_element : other.success) {
10795
          __this__success.add(new Warehouse(other_element));
10796
        }
10797
        this.success = __this__success;
10798
      }
10799
      if (other.isSetCex()) {
10800
        this.cex = new InventoryServiceException(other.cex);
10801
      }
10802
    }
10803
 
10804
    public getAllWarehouses_result deepCopy() {
10805
      return new getAllWarehouses_result(this);
10806
    }
10807
 
10808
    @Override
10809
    public void clear() {
10810
      this.success = null;
10811
      this.cex = null;
10812
    }
10813
 
10814
    public int getSuccessSize() {
10815
      return (this.success == null) ? 0 : this.success.size();
10816
    }
10817
 
10818
    public java.util.Iterator<Warehouse> getSuccessIterator() {
10819
      return (this.success == null) ? null : this.success.iterator();
10820
    }
10821
 
10822
    public void addToSuccess(Warehouse elem) {
10823
      if (this.success == null) {
10824
        this.success = new ArrayList<Warehouse>();
10825
      }
10826
      this.success.add(elem);
10827
    }
10828
 
10829
    public List<Warehouse> getSuccess() {
10830
      return this.success;
10831
    }
10832
 
10833
    public void setSuccess(List<Warehouse> success) {
10834
      this.success = success;
10835
    }
10836
 
10837
    public void unsetSuccess() {
10838
      this.success = null;
10839
    }
10840
 
10841
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10842
    public boolean isSetSuccess() {
10843
      return this.success != null;
10844
    }
10845
 
10846
    public void setSuccessIsSet(boolean value) {
10847
      if (!value) {
10848
        this.success = null;
10849
      }
10850
    }
10851
 
10852
    public InventoryServiceException getCex() {
10853
      return this.cex;
10854
    }
10855
 
10856
    public void setCex(InventoryServiceException cex) {
10857
      this.cex = cex;
10858
    }
10859
 
10860
    public void unsetCex() {
10861
      this.cex = null;
10862
    }
10863
 
10864
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10865
    public boolean isSetCex() {
10866
      return this.cex != null;
10867
    }
10868
 
10869
    public void setCexIsSet(boolean value) {
10870
      if (!value) {
10871
        this.cex = null;
10872
      }
10873
    }
10874
 
10875
    public void setFieldValue(_Fields field, Object value) {
10876
      switch (field) {
10877
      case SUCCESS:
10878
        if (value == null) {
10879
          unsetSuccess();
10880
        } else {
10881
          setSuccess((List<Warehouse>)value);
10882
        }
10883
        break;
10884
 
10885
      case CEX:
10886
        if (value == null) {
10887
          unsetCex();
10888
        } else {
10889
          setCex((InventoryServiceException)value);
10890
        }
10891
        break;
10892
 
10893
      }
10894
    }
10895
 
10896
    public Object getFieldValue(_Fields field) {
10897
      switch (field) {
10898
      case SUCCESS:
10899
        return getSuccess();
10900
 
10901
      case CEX:
10902
        return getCex();
10903
 
10904
      }
10905
      throw new IllegalStateException();
10906
    }
10907
 
10908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10909
    public boolean isSet(_Fields field) {
10910
      if (field == null) {
10911
        throw new IllegalArgumentException();
10912
      }
10913
 
10914
      switch (field) {
10915
      case SUCCESS:
10916
        return isSetSuccess();
10917
      case CEX:
10918
        return isSetCex();
10919
      }
10920
      throw new IllegalStateException();
10921
    }
10922
 
10923
    @Override
10924
    public boolean equals(Object that) {
10925
      if (that == null)
10926
        return false;
10927
      if (that instanceof getAllWarehouses_result)
10928
        return this.equals((getAllWarehouses_result)that);
10929
      return false;
10930
    }
10931
 
10932
    public boolean equals(getAllWarehouses_result that) {
10933
      if (that == null)
10934
        return false;
10935
 
10936
      boolean this_present_success = true && this.isSetSuccess();
10937
      boolean that_present_success = true && that.isSetSuccess();
10938
      if (this_present_success || that_present_success) {
10939
        if (!(this_present_success && that_present_success))
10940
          return false;
10941
        if (!this.success.equals(that.success))
10942
          return false;
10943
      }
10944
 
10945
      boolean this_present_cex = true && this.isSetCex();
10946
      boolean that_present_cex = true && that.isSetCex();
10947
      if (this_present_cex || that_present_cex) {
10948
        if (!(this_present_cex && that_present_cex))
10949
          return false;
10950
        if (!this.cex.equals(that.cex))
10951
          return false;
10952
      }
10953
 
10954
      return true;
10955
    }
10956
 
10957
    @Override
10958
    public int hashCode() {
10959
      return 0;
10960
    }
10961
 
10962
    public int compareTo(getAllWarehouses_result other) {
10963
      if (!getClass().equals(other.getClass())) {
10964
        return getClass().getName().compareTo(other.getClass().getName());
10965
      }
10966
 
10967
      int lastComparison = 0;
10968
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
10969
 
10970
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10971
      if (lastComparison != 0) {
10972
        return lastComparison;
10973
      }
10974
      if (isSetSuccess()) {
10975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10976
        if (lastComparison != 0) {
10977
          return lastComparison;
10978
        }
10979
      }
10980
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10981
      if (lastComparison != 0) {
10982
        return lastComparison;
10983
      }
10984
      if (isSetCex()) {
10985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10986
        if (lastComparison != 0) {
10987
          return lastComparison;
10988
        }
10989
      }
10990
      return 0;
10991
    }
10992
 
10993
    public _Fields fieldForId(int fieldId) {
10994
      return _Fields.findByThriftId(fieldId);
10995
    }
10996
 
10997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10998
      org.apache.thrift.protocol.TField field;
10999
      iprot.readStructBegin();
11000
      while (true)
11001
      {
11002
        field = iprot.readFieldBegin();
11003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11004
          break;
11005
        }
11006
        switch (field.id) {
11007
          case 0: // SUCCESS
11008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11009
              {
11010
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
11011
                this.success = new ArrayList<Warehouse>(_list24.size);
11012
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11013
                {
11014
                  Warehouse _elem26; // required
11015
                  _elem26 = new Warehouse();
11016
                  _elem26.read(iprot);
11017
                  this.success.add(_elem26);
11018
                }
11019
                iprot.readListEnd();
11020
              }
11021
            } else { 
11022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11023
            }
11024
            break;
11025
          case 1: // CEX
11026
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11027
              this.cex = new InventoryServiceException();
11028
              this.cex.read(iprot);
11029
            } else { 
11030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11031
            }
11032
            break;
11033
          default:
11034
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11035
        }
11036
        iprot.readFieldEnd();
11037
      }
11038
      iprot.readStructEnd();
11039
      validate();
11040
    }
11041
 
11042
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11043
      oprot.writeStructBegin(STRUCT_DESC);
11044
 
11045
      if (this.isSetSuccess()) {
11046
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11047
        {
11048
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11049
          for (Warehouse _iter27 : this.success)
11050
          {
11051
            _iter27.write(oprot);
11052
          }
11053
          oprot.writeListEnd();
11054
        }
11055
        oprot.writeFieldEnd();
11056
      } else if (this.isSetCex()) {
11057
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11058
        this.cex.write(oprot);
11059
        oprot.writeFieldEnd();
11060
      }
11061
      oprot.writeFieldStop();
11062
      oprot.writeStructEnd();
11063
    }
11064
 
11065
    @Override
11066
    public String toString() {
11067
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
11068
      boolean first = true;
11069
 
11070
      sb.append("success:");
11071
      if (this.success == null) {
11072
        sb.append("null");
11073
      } else {
11074
        sb.append(this.success);
11075
      }
11076
      first = false;
11077
      if (!first) sb.append(", ");
11078
      sb.append("cex:");
11079
      if (this.cex == null) {
11080
        sb.append("null");
11081
      } else {
11082
        sb.append(this.cex);
11083
      }
11084
      first = false;
11085
      sb.append(")");
11086
      return sb.toString();
11087
    }
11088
 
11089
    public void validate() throws org.apache.thrift.TException {
11090
      // check for required fields
11091
    }
11092
 
11093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11094
      try {
11095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11096
      } catch (org.apache.thrift.TException te) {
11097
        throw new java.io.IOException(te);
11098
      }
11099
    }
11100
 
11101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11102
      try {
11103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11104
      } catch (org.apache.thrift.TException te) {
11105
        throw new java.io.IOException(te);
11106
      }
11107
    }
11108
 
11109
  }
11110
 
11111
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
11113
 
11114
    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);
11115
 
11116
    private long warehouse_id; // required
11117
 
11118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11120
      WAREHOUSE_ID((short)1, "warehouse_id");
11121
 
11122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11123
 
11124
      static {
11125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11126
          byName.put(field.getFieldName(), field);
11127
        }
11128
      }
11129
 
11130
      /**
11131
       * Find the _Fields constant that matches fieldId, or null if its not found.
11132
       */
11133
      public static _Fields findByThriftId(int fieldId) {
11134
        switch(fieldId) {
11135
          case 1: // WAREHOUSE_ID
11136
            return WAREHOUSE_ID;
11137
          default:
11138
            return null;
11139
        }
11140
      }
11141
 
11142
      /**
11143
       * Find the _Fields constant that matches fieldId, throwing an exception
11144
       * if it is not found.
11145
       */
11146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11147
        _Fields fields = findByThriftId(fieldId);
11148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11149
        return fields;
11150
      }
11151
 
11152
      /**
11153
       * Find the _Fields constant that matches name, or null if its not found.
11154
       */
11155
      public static _Fields findByName(String name) {
11156
        return byName.get(name);
11157
      }
11158
 
11159
      private final short _thriftId;
11160
      private final String _fieldName;
11161
 
11162
      _Fields(short thriftId, String fieldName) {
11163
        _thriftId = thriftId;
11164
        _fieldName = fieldName;
11165
      }
11166
 
11167
      public short getThriftFieldId() {
11168
        return _thriftId;
11169
      }
11170
 
11171
      public String getFieldName() {
11172
        return _fieldName;
11173
      }
11174
    }
11175
 
11176
    // isset id assignments
11177
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11178
    private BitSet __isset_bit_vector = new BitSet(1);
11179
 
11180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11181
    static {
11182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11183
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
11187
    }
11188
 
11189
    public getWarehouse_args() {
11190
    }
11191
 
11192
    public getWarehouse_args(
11193
      long warehouse_id)
11194
    {
11195
      this();
11196
      this.warehouse_id = warehouse_id;
11197
      setWarehouse_idIsSet(true);
11198
    }
11199
 
11200
    /**
11201
     * Performs a deep copy on <i>other</i>.
11202
     */
11203
    public getWarehouse_args(getWarehouse_args other) {
11204
      __isset_bit_vector.clear();
11205
      __isset_bit_vector.or(other.__isset_bit_vector);
11206
      this.warehouse_id = other.warehouse_id;
11207
    }
11208
 
11209
    public getWarehouse_args deepCopy() {
11210
      return new getWarehouse_args(this);
11211
    }
11212
 
11213
    @Override
11214
    public void clear() {
11215
      setWarehouse_idIsSet(false);
11216
      this.warehouse_id = 0;
11217
    }
11218
 
11219
    public long getWarehouse_id() {
11220
      return this.warehouse_id;
11221
    }
11222
 
11223
    public void setWarehouse_id(long warehouse_id) {
11224
      this.warehouse_id = warehouse_id;
11225
      setWarehouse_idIsSet(true);
11226
    }
11227
 
11228
    public void unsetWarehouse_id() {
11229
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11230
    }
11231
 
11232
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11233
    public boolean isSetWarehouse_id() {
11234
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11235
    }
11236
 
11237
    public void setWarehouse_idIsSet(boolean value) {
11238
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11239
    }
11240
 
11241
    public void setFieldValue(_Fields field, Object value) {
11242
      switch (field) {
11243
      case WAREHOUSE_ID:
11244
        if (value == null) {
11245
          unsetWarehouse_id();
11246
        } else {
11247
          setWarehouse_id((Long)value);
11248
        }
11249
        break;
11250
 
11251
      }
11252
    }
11253
 
11254
    public Object getFieldValue(_Fields field) {
11255
      switch (field) {
11256
      case WAREHOUSE_ID:
11257
        return Long.valueOf(getWarehouse_id());
11258
 
11259
      }
11260
      throw new IllegalStateException();
11261
    }
11262
 
11263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11264
    public boolean isSet(_Fields field) {
11265
      if (field == null) {
11266
        throw new IllegalArgumentException();
11267
      }
11268
 
11269
      switch (field) {
11270
      case WAREHOUSE_ID:
11271
        return isSetWarehouse_id();
11272
      }
11273
      throw new IllegalStateException();
11274
    }
11275
 
11276
    @Override
11277
    public boolean equals(Object that) {
11278
      if (that == null)
11279
        return false;
11280
      if (that instanceof getWarehouse_args)
11281
        return this.equals((getWarehouse_args)that);
11282
      return false;
11283
    }
11284
 
11285
    public boolean equals(getWarehouse_args that) {
11286
      if (that == null)
11287
        return false;
11288
 
11289
      boolean this_present_warehouse_id = true;
11290
      boolean that_present_warehouse_id = true;
11291
      if (this_present_warehouse_id || that_present_warehouse_id) {
11292
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11293
          return false;
11294
        if (this.warehouse_id != that.warehouse_id)
11295
          return false;
11296
      }
11297
 
11298
      return true;
11299
    }
11300
 
11301
    @Override
11302
    public int hashCode() {
11303
      return 0;
11304
    }
11305
 
11306
    public int compareTo(getWarehouse_args other) {
11307
      if (!getClass().equals(other.getClass())) {
11308
        return getClass().getName().compareTo(other.getClass().getName());
11309
      }
11310
 
11311
      int lastComparison = 0;
11312
      getWarehouse_args typedOther = (getWarehouse_args)other;
11313
 
11314
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11315
      if (lastComparison != 0) {
11316
        return lastComparison;
11317
      }
11318
      if (isSetWarehouse_id()) {
11319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11320
        if (lastComparison != 0) {
11321
          return lastComparison;
11322
        }
11323
      }
11324
      return 0;
11325
    }
11326
 
11327
    public _Fields fieldForId(int fieldId) {
11328
      return _Fields.findByThriftId(fieldId);
11329
    }
11330
 
11331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11332
      org.apache.thrift.protocol.TField field;
11333
      iprot.readStructBegin();
11334
      while (true)
11335
      {
11336
        field = iprot.readFieldBegin();
11337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11338
          break;
11339
        }
11340
        switch (field.id) {
11341
          case 1: // WAREHOUSE_ID
11342
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11343
              this.warehouse_id = iprot.readI64();
11344
              setWarehouse_idIsSet(true);
11345
            } else { 
11346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11347
            }
11348
            break;
11349
          default:
11350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11351
        }
11352
        iprot.readFieldEnd();
11353
      }
11354
      iprot.readStructEnd();
11355
      validate();
11356
    }
11357
 
11358
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11359
      validate();
11360
 
11361
      oprot.writeStructBegin(STRUCT_DESC);
11362
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11363
      oprot.writeI64(this.warehouse_id);
11364
      oprot.writeFieldEnd();
11365
      oprot.writeFieldStop();
11366
      oprot.writeStructEnd();
11367
    }
11368
 
11369
    @Override
11370
    public String toString() {
11371
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
11372
      boolean first = true;
11373
 
11374
      sb.append("warehouse_id:");
11375
      sb.append(this.warehouse_id);
11376
      first = false;
11377
      sb.append(")");
11378
      return sb.toString();
11379
    }
11380
 
11381
    public void validate() throws org.apache.thrift.TException {
11382
      // check for required fields
11383
    }
11384
 
11385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11386
      try {
11387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11388
      } catch (org.apache.thrift.TException te) {
11389
        throw new java.io.IOException(te);
11390
      }
11391
    }
11392
 
11393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11394
      try {
11395
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11396
        __isset_bit_vector = new BitSet(1);
11397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11398
      } catch (org.apache.thrift.TException te) {
11399
        throw new java.io.IOException(te);
11400
      }
11401
    }
11402
 
11403
  }
11404
 
11405
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
11407
 
11408
    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);
11409
    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);
11410
 
11411
    private Warehouse success; // required
11412
    private InventoryServiceException cex; // required
11413
 
11414
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11415
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11416
      SUCCESS((short)0, "success"),
11417
      CEX((short)1, "cex");
11418
 
11419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11420
 
11421
      static {
11422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11423
          byName.put(field.getFieldName(), field);
11424
        }
11425
      }
11426
 
11427
      /**
11428
       * Find the _Fields constant that matches fieldId, or null if its not found.
11429
       */
11430
      public static _Fields findByThriftId(int fieldId) {
11431
        switch(fieldId) {
11432
          case 0: // SUCCESS
11433
            return SUCCESS;
11434
          case 1: // CEX
11435
            return CEX;
11436
          default:
11437
            return null;
11438
        }
11439
      }
11440
 
11441
      /**
11442
       * Find the _Fields constant that matches fieldId, throwing an exception
11443
       * if it is not found.
11444
       */
11445
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11446
        _Fields fields = findByThriftId(fieldId);
11447
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11448
        return fields;
11449
      }
11450
 
11451
      /**
11452
       * Find the _Fields constant that matches name, or null if its not found.
11453
       */
11454
      public static _Fields findByName(String name) {
11455
        return byName.get(name);
11456
      }
11457
 
11458
      private final short _thriftId;
11459
      private final String _fieldName;
11460
 
11461
      _Fields(short thriftId, String fieldName) {
11462
        _thriftId = thriftId;
11463
        _fieldName = fieldName;
11464
      }
11465
 
11466
      public short getThriftFieldId() {
11467
        return _thriftId;
11468
      }
11469
 
11470
      public String getFieldName() {
11471
        return _fieldName;
11472
      }
11473
    }
11474
 
11475
    // isset id assignments
11476
 
11477
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11478
    static {
11479
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11480
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11481
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
11482
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11483
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11484
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11485
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
11486
    }
11487
 
11488
    public getWarehouse_result() {
11489
    }
11490
 
11491
    public getWarehouse_result(
11492
      Warehouse success,
11493
      InventoryServiceException cex)
11494
    {
11495
      this();
11496
      this.success = success;
11497
      this.cex = cex;
11498
    }
11499
 
11500
    /**
11501
     * Performs a deep copy on <i>other</i>.
11502
     */
11503
    public getWarehouse_result(getWarehouse_result other) {
11504
      if (other.isSetSuccess()) {
11505
        this.success = new Warehouse(other.success);
11506
      }
11507
      if (other.isSetCex()) {
11508
        this.cex = new InventoryServiceException(other.cex);
11509
      }
11510
    }
11511
 
11512
    public getWarehouse_result deepCopy() {
11513
      return new getWarehouse_result(this);
11514
    }
11515
 
11516
    @Override
11517
    public void clear() {
11518
      this.success = null;
11519
      this.cex = null;
11520
    }
11521
 
11522
    public Warehouse getSuccess() {
11523
      return this.success;
11524
    }
11525
 
11526
    public void setSuccess(Warehouse success) {
11527
      this.success = success;
11528
    }
11529
 
11530
    public void unsetSuccess() {
11531
      this.success = null;
11532
    }
11533
 
11534
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11535
    public boolean isSetSuccess() {
11536
      return this.success != null;
11537
    }
11538
 
11539
    public void setSuccessIsSet(boolean value) {
11540
      if (!value) {
11541
        this.success = null;
11542
      }
11543
    }
11544
 
11545
    public InventoryServiceException getCex() {
11546
      return this.cex;
11547
    }
11548
 
11549
    public void setCex(InventoryServiceException cex) {
11550
      this.cex = cex;
11551
    }
11552
 
11553
    public void unsetCex() {
11554
      this.cex = null;
11555
    }
11556
 
11557
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11558
    public boolean isSetCex() {
11559
      return this.cex != null;
11560
    }
11561
 
11562
    public void setCexIsSet(boolean value) {
11563
      if (!value) {
11564
        this.cex = null;
11565
      }
11566
    }
11567
 
11568
    public void setFieldValue(_Fields field, Object value) {
11569
      switch (field) {
11570
      case SUCCESS:
11571
        if (value == null) {
11572
          unsetSuccess();
11573
        } else {
11574
          setSuccess((Warehouse)value);
11575
        }
11576
        break;
11577
 
11578
      case CEX:
11579
        if (value == null) {
11580
          unsetCex();
11581
        } else {
11582
          setCex((InventoryServiceException)value);
11583
        }
11584
        break;
11585
 
11586
      }
11587
    }
11588
 
11589
    public Object getFieldValue(_Fields field) {
11590
      switch (field) {
11591
      case SUCCESS:
11592
        return getSuccess();
11593
 
11594
      case CEX:
11595
        return getCex();
11596
 
11597
      }
11598
      throw new IllegalStateException();
11599
    }
11600
 
11601
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11602
    public boolean isSet(_Fields field) {
11603
      if (field == null) {
11604
        throw new IllegalArgumentException();
11605
      }
11606
 
11607
      switch (field) {
11608
      case SUCCESS:
11609
        return isSetSuccess();
11610
      case CEX:
11611
        return isSetCex();
11612
      }
11613
      throw new IllegalStateException();
11614
    }
11615
 
11616
    @Override
11617
    public boolean equals(Object that) {
11618
      if (that == null)
11619
        return false;
11620
      if (that instanceof getWarehouse_result)
11621
        return this.equals((getWarehouse_result)that);
11622
      return false;
11623
    }
11624
 
11625
    public boolean equals(getWarehouse_result that) {
11626
      if (that == null)
11627
        return false;
11628
 
11629
      boolean this_present_success = true && this.isSetSuccess();
11630
      boolean that_present_success = true && that.isSetSuccess();
11631
      if (this_present_success || that_present_success) {
11632
        if (!(this_present_success && that_present_success))
11633
          return false;
11634
        if (!this.success.equals(that.success))
11635
          return false;
11636
      }
11637
 
11638
      boolean this_present_cex = true && this.isSetCex();
11639
      boolean that_present_cex = true && that.isSetCex();
11640
      if (this_present_cex || that_present_cex) {
11641
        if (!(this_present_cex && that_present_cex))
11642
          return false;
11643
        if (!this.cex.equals(that.cex))
11644
          return false;
11645
      }
11646
 
11647
      return true;
11648
    }
11649
 
11650
    @Override
11651
    public int hashCode() {
11652
      return 0;
11653
    }
11654
 
11655
    public int compareTo(getWarehouse_result other) {
11656
      if (!getClass().equals(other.getClass())) {
11657
        return getClass().getName().compareTo(other.getClass().getName());
11658
      }
11659
 
11660
      int lastComparison = 0;
11661
      getWarehouse_result typedOther = (getWarehouse_result)other;
11662
 
11663
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11664
      if (lastComparison != 0) {
11665
        return lastComparison;
11666
      }
11667
      if (isSetSuccess()) {
11668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11669
        if (lastComparison != 0) {
11670
          return lastComparison;
11671
        }
11672
      }
11673
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11674
      if (lastComparison != 0) {
11675
        return lastComparison;
11676
      }
11677
      if (isSetCex()) {
11678
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11679
        if (lastComparison != 0) {
11680
          return lastComparison;
11681
        }
11682
      }
11683
      return 0;
11684
    }
11685
 
11686
    public _Fields fieldForId(int fieldId) {
11687
      return _Fields.findByThriftId(fieldId);
11688
    }
11689
 
11690
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11691
      org.apache.thrift.protocol.TField field;
11692
      iprot.readStructBegin();
11693
      while (true)
11694
      {
11695
        field = iprot.readFieldBegin();
11696
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11697
          break;
11698
        }
11699
        switch (field.id) {
11700
          case 0: // SUCCESS
11701
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11702
              this.success = new Warehouse();
11703
              this.success.read(iprot);
11704
            } else { 
11705
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11706
            }
11707
            break;
11708
          case 1: // CEX
11709
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11710
              this.cex = new InventoryServiceException();
11711
              this.cex.read(iprot);
11712
            } else { 
11713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11714
            }
11715
            break;
11716
          default:
11717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11718
        }
11719
        iprot.readFieldEnd();
11720
      }
11721
      iprot.readStructEnd();
11722
      validate();
11723
    }
11724
 
11725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11726
      oprot.writeStructBegin(STRUCT_DESC);
11727
 
11728
      if (this.isSetSuccess()) {
11729
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11730
        this.success.write(oprot);
11731
        oprot.writeFieldEnd();
11732
      } else if (this.isSetCex()) {
11733
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11734
        this.cex.write(oprot);
11735
        oprot.writeFieldEnd();
11736
      }
11737
      oprot.writeFieldStop();
11738
      oprot.writeStructEnd();
11739
    }
11740
 
11741
    @Override
11742
    public String toString() {
11743
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
11744
      boolean first = true;
11745
 
11746
      sb.append("success:");
11747
      if (this.success == null) {
11748
        sb.append("null");
11749
      } else {
11750
        sb.append(this.success);
11751
      }
11752
      first = false;
11753
      if (!first) sb.append(", ");
11754
      sb.append("cex:");
11755
      if (this.cex == null) {
11756
        sb.append("null");
11757
      } else {
11758
        sb.append(this.cex);
11759
      }
11760
      first = false;
11761
      sb.append(")");
11762
      return sb.toString();
11763
    }
11764
 
11765
    public void validate() throws org.apache.thrift.TException {
11766
      // check for required fields
11767
    }
11768
 
11769
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11770
      try {
11771
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11772
      } catch (org.apache.thrift.TException te) {
11773
        throw new java.io.IOException(te);
11774
      }
11775
    }
11776
 
11777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11778
      try {
11779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11780
      } catch (org.apache.thrift.TException te) {
11781
        throw new java.io.IOException(te);
11782
      }
11783
    }
11784
 
11785
  }
11786
 
11787
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11788
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
11789
 
11790
    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);
11791
 
11792
    private long warehouse_id; // required
11793
 
11794
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11795
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11796
      WAREHOUSE_ID((short)1, "warehouse_id");
11797
 
11798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11799
 
11800
      static {
11801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11802
          byName.put(field.getFieldName(), field);
11803
        }
11804
      }
11805
 
11806
      /**
11807
       * Find the _Fields constant that matches fieldId, or null if its not found.
11808
       */
11809
      public static _Fields findByThriftId(int fieldId) {
11810
        switch(fieldId) {
11811
          case 1: // WAREHOUSE_ID
11812
            return WAREHOUSE_ID;
11813
          default:
11814
            return null;
11815
        }
11816
      }
11817
 
11818
      /**
11819
       * Find the _Fields constant that matches fieldId, throwing an exception
11820
       * if it is not found.
11821
       */
11822
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11823
        _Fields fields = findByThriftId(fieldId);
11824
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11825
        return fields;
11826
      }
11827
 
11828
      /**
11829
       * Find the _Fields constant that matches name, or null if its not found.
11830
       */
11831
      public static _Fields findByName(String name) {
11832
        return byName.get(name);
11833
      }
11834
 
11835
      private final short _thriftId;
11836
      private final String _fieldName;
11837
 
11838
      _Fields(short thriftId, String fieldName) {
11839
        _thriftId = thriftId;
11840
        _fieldName = fieldName;
11841
      }
11842
 
11843
      public short getThriftFieldId() {
11844
        return _thriftId;
11845
      }
11846
 
11847
      public String getFieldName() {
11848
        return _fieldName;
11849
      }
11850
    }
11851
 
11852
    // isset id assignments
11853
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11854
    private BitSet __isset_bit_vector = new BitSet(1);
11855
 
11856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11857
    static {
11858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11859
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11860
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11861
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11862
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
11863
    }
11864
 
11865
    public getAllItemsForWarehouse_args() {
11866
    }
11867
 
11868
    public getAllItemsForWarehouse_args(
11869
      long warehouse_id)
11870
    {
11871
      this();
11872
      this.warehouse_id = warehouse_id;
11873
      setWarehouse_idIsSet(true);
11874
    }
11875
 
11876
    /**
11877
     * Performs a deep copy on <i>other</i>.
11878
     */
11879
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
11880
      __isset_bit_vector.clear();
11881
      __isset_bit_vector.or(other.__isset_bit_vector);
11882
      this.warehouse_id = other.warehouse_id;
11883
    }
11884
 
11885
    public getAllItemsForWarehouse_args deepCopy() {
11886
      return new getAllItemsForWarehouse_args(this);
11887
    }
11888
 
11889
    @Override
11890
    public void clear() {
11891
      setWarehouse_idIsSet(false);
11892
      this.warehouse_id = 0;
11893
    }
11894
 
11895
    public long getWarehouse_id() {
11896
      return this.warehouse_id;
11897
    }
11898
 
11899
    public void setWarehouse_id(long warehouse_id) {
11900
      this.warehouse_id = warehouse_id;
11901
      setWarehouse_idIsSet(true);
11902
    }
11903
 
11904
    public void unsetWarehouse_id() {
11905
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11906
    }
11907
 
11908
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11909
    public boolean isSetWarehouse_id() {
11910
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11911
    }
11912
 
11913
    public void setWarehouse_idIsSet(boolean value) {
11914
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11915
    }
11916
 
11917
    public void setFieldValue(_Fields field, Object value) {
11918
      switch (field) {
11919
      case WAREHOUSE_ID:
11920
        if (value == null) {
11921
          unsetWarehouse_id();
11922
        } else {
11923
          setWarehouse_id((Long)value);
11924
        }
11925
        break;
11926
 
11927
      }
11928
    }
11929
 
11930
    public Object getFieldValue(_Fields field) {
11931
      switch (field) {
11932
      case WAREHOUSE_ID:
11933
        return Long.valueOf(getWarehouse_id());
11934
 
11935
      }
11936
      throw new IllegalStateException();
11937
    }
11938
 
11939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11940
    public boolean isSet(_Fields field) {
11941
      if (field == null) {
11942
        throw new IllegalArgumentException();
11943
      }
11944
 
11945
      switch (field) {
11946
      case WAREHOUSE_ID:
11947
        return isSetWarehouse_id();
11948
      }
11949
      throw new IllegalStateException();
11950
    }
11951
 
11952
    @Override
11953
    public boolean equals(Object that) {
11954
      if (that == null)
11955
        return false;
11956
      if (that instanceof getAllItemsForWarehouse_args)
11957
        return this.equals((getAllItemsForWarehouse_args)that);
11958
      return false;
11959
    }
11960
 
11961
    public boolean equals(getAllItemsForWarehouse_args that) {
11962
      if (that == null)
11963
        return false;
11964
 
11965
      boolean this_present_warehouse_id = true;
11966
      boolean that_present_warehouse_id = true;
11967
      if (this_present_warehouse_id || that_present_warehouse_id) {
11968
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11969
          return false;
11970
        if (this.warehouse_id != that.warehouse_id)
11971
          return false;
11972
      }
11973
 
11974
      return true;
11975
    }
11976
 
11977
    @Override
11978
    public int hashCode() {
11979
      return 0;
11980
    }
11981
 
11982
    public int compareTo(getAllItemsForWarehouse_args other) {
11983
      if (!getClass().equals(other.getClass())) {
11984
        return getClass().getName().compareTo(other.getClass().getName());
11985
      }
11986
 
11987
      int lastComparison = 0;
11988
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
11989
 
11990
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11991
      if (lastComparison != 0) {
11992
        return lastComparison;
11993
      }
11994
      if (isSetWarehouse_id()) {
11995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11996
        if (lastComparison != 0) {
11997
          return lastComparison;
11998
        }
11999
      }
12000
      return 0;
12001
    }
12002
 
12003
    public _Fields fieldForId(int fieldId) {
12004
      return _Fields.findByThriftId(fieldId);
12005
    }
12006
 
12007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12008
      org.apache.thrift.protocol.TField field;
12009
      iprot.readStructBegin();
12010
      while (true)
12011
      {
12012
        field = iprot.readFieldBegin();
12013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12014
          break;
12015
        }
12016
        switch (field.id) {
12017
          case 1: // WAREHOUSE_ID
12018
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12019
              this.warehouse_id = iprot.readI64();
12020
              setWarehouse_idIsSet(true);
12021
            } else { 
12022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12023
            }
12024
            break;
12025
          default:
12026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12027
        }
12028
        iprot.readFieldEnd();
12029
      }
12030
      iprot.readStructEnd();
12031
      validate();
12032
    }
12033
 
12034
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12035
      validate();
12036
 
12037
      oprot.writeStructBegin(STRUCT_DESC);
12038
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12039
      oprot.writeI64(this.warehouse_id);
12040
      oprot.writeFieldEnd();
12041
      oprot.writeFieldStop();
12042
      oprot.writeStructEnd();
12043
    }
12044
 
12045
    @Override
12046
    public String toString() {
12047
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
12048
      boolean first = true;
12049
 
12050
      sb.append("warehouse_id:");
12051
      sb.append(this.warehouse_id);
12052
      first = false;
12053
      sb.append(")");
12054
      return sb.toString();
12055
    }
12056
 
12057
    public void validate() throws org.apache.thrift.TException {
12058
      // check for required fields
12059
    }
12060
 
12061
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12062
      try {
12063
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12064
      } catch (org.apache.thrift.TException te) {
12065
        throw new java.io.IOException(te);
12066
      }
12067
    }
12068
 
12069
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12070
      try {
12071
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12072
        __isset_bit_vector = new BitSet(1);
12073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12074
      } catch (org.apache.thrift.TException te) {
12075
        throw new java.io.IOException(te);
12076
      }
12077
    }
12078
 
12079
  }
12080
 
12081
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12082
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
12083
 
12084
    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);
12085
    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);
12086
 
12087
    private List<Long> success; // required
12088
    private InventoryServiceException cex; // required
12089
 
12090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12092
      SUCCESS((short)0, "success"),
12093
      CEX((short)1, "cex");
12094
 
12095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12096
 
12097
      static {
12098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12099
          byName.put(field.getFieldName(), field);
12100
        }
12101
      }
12102
 
12103
      /**
12104
       * Find the _Fields constant that matches fieldId, or null if its not found.
12105
       */
12106
      public static _Fields findByThriftId(int fieldId) {
12107
        switch(fieldId) {
12108
          case 0: // SUCCESS
12109
            return SUCCESS;
12110
          case 1: // CEX
12111
            return CEX;
12112
          default:
12113
            return null;
12114
        }
12115
      }
12116
 
12117
      /**
12118
       * Find the _Fields constant that matches fieldId, throwing an exception
12119
       * if it is not found.
12120
       */
12121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12122
        _Fields fields = findByThriftId(fieldId);
12123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12124
        return fields;
12125
      }
12126
 
12127
      /**
12128
       * Find the _Fields constant that matches name, or null if its not found.
12129
       */
12130
      public static _Fields findByName(String name) {
12131
        return byName.get(name);
12132
      }
12133
 
12134
      private final short _thriftId;
12135
      private final String _fieldName;
12136
 
12137
      _Fields(short thriftId, String fieldName) {
12138
        _thriftId = thriftId;
12139
        _fieldName = fieldName;
12140
      }
12141
 
12142
      public short getThriftFieldId() {
12143
        return _thriftId;
12144
      }
12145
 
12146
      public String getFieldName() {
12147
        return _fieldName;
12148
      }
12149
    }
12150
 
12151
    // isset id assignments
12152
 
12153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12154
    static {
12155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12157
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12158
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
12159
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
12163
    }
12164
 
12165
    public getAllItemsForWarehouse_result() {
12166
    }
12167
 
12168
    public getAllItemsForWarehouse_result(
12169
      List<Long> success,
12170
      InventoryServiceException cex)
12171
    {
12172
      this();
12173
      this.success = success;
12174
      this.cex = cex;
12175
    }
12176
 
12177
    /**
12178
     * Performs a deep copy on <i>other</i>.
12179
     */
12180
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
12181
      if (other.isSetSuccess()) {
12182
        List<Long> __this__success = new ArrayList<Long>();
12183
        for (Long other_element : other.success) {
12184
          __this__success.add(other_element);
12185
        }
12186
        this.success = __this__success;
12187
      }
12188
      if (other.isSetCex()) {
12189
        this.cex = new InventoryServiceException(other.cex);
12190
      }
12191
    }
12192
 
12193
    public getAllItemsForWarehouse_result deepCopy() {
12194
      return new getAllItemsForWarehouse_result(this);
12195
    }
12196
 
12197
    @Override
12198
    public void clear() {
12199
      this.success = null;
12200
      this.cex = null;
12201
    }
12202
 
12203
    public int getSuccessSize() {
12204
      return (this.success == null) ? 0 : this.success.size();
12205
    }
12206
 
12207
    public java.util.Iterator<Long> getSuccessIterator() {
12208
      return (this.success == null) ? null : this.success.iterator();
12209
    }
12210
 
12211
    public void addToSuccess(long elem) {
12212
      if (this.success == null) {
12213
        this.success = new ArrayList<Long>();
12214
      }
12215
      this.success.add(elem);
12216
    }
12217
 
12218
    public List<Long> getSuccess() {
12219
      return this.success;
12220
    }
12221
 
12222
    public void setSuccess(List<Long> success) {
12223
      this.success = success;
12224
    }
12225
 
12226
    public void unsetSuccess() {
12227
      this.success = null;
12228
    }
12229
 
12230
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12231
    public boolean isSetSuccess() {
12232
      return this.success != null;
12233
    }
12234
 
12235
    public void setSuccessIsSet(boolean value) {
12236
      if (!value) {
12237
        this.success = null;
12238
      }
12239
    }
12240
 
12241
    public InventoryServiceException getCex() {
12242
      return this.cex;
12243
    }
12244
 
12245
    public void setCex(InventoryServiceException cex) {
12246
      this.cex = cex;
12247
    }
12248
 
12249
    public void unsetCex() {
12250
      this.cex = null;
12251
    }
12252
 
12253
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12254
    public boolean isSetCex() {
12255
      return this.cex != null;
12256
    }
12257
 
12258
    public void setCexIsSet(boolean value) {
12259
      if (!value) {
12260
        this.cex = null;
12261
      }
12262
    }
12263
 
12264
    public void setFieldValue(_Fields field, Object value) {
12265
      switch (field) {
12266
      case SUCCESS:
12267
        if (value == null) {
12268
          unsetSuccess();
12269
        } else {
12270
          setSuccess((List<Long>)value);
12271
        }
12272
        break;
12273
 
12274
      case CEX:
12275
        if (value == null) {
12276
          unsetCex();
12277
        } else {
12278
          setCex((InventoryServiceException)value);
12279
        }
12280
        break;
12281
 
12282
      }
12283
    }
12284
 
12285
    public Object getFieldValue(_Fields field) {
12286
      switch (field) {
12287
      case SUCCESS:
12288
        return getSuccess();
12289
 
12290
      case CEX:
12291
        return getCex();
12292
 
12293
      }
12294
      throw new IllegalStateException();
12295
    }
12296
 
12297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12298
    public boolean isSet(_Fields field) {
12299
      if (field == null) {
12300
        throw new IllegalArgumentException();
12301
      }
12302
 
12303
      switch (field) {
12304
      case SUCCESS:
12305
        return isSetSuccess();
12306
      case CEX:
12307
        return isSetCex();
12308
      }
12309
      throw new IllegalStateException();
12310
    }
12311
 
12312
    @Override
12313
    public boolean equals(Object that) {
12314
      if (that == null)
12315
        return false;
12316
      if (that instanceof getAllItemsForWarehouse_result)
12317
        return this.equals((getAllItemsForWarehouse_result)that);
12318
      return false;
12319
    }
12320
 
12321
    public boolean equals(getAllItemsForWarehouse_result that) {
12322
      if (that == null)
12323
        return false;
12324
 
12325
      boolean this_present_success = true && this.isSetSuccess();
12326
      boolean that_present_success = true && that.isSetSuccess();
12327
      if (this_present_success || that_present_success) {
12328
        if (!(this_present_success && that_present_success))
12329
          return false;
12330
        if (!this.success.equals(that.success))
12331
          return false;
12332
      }
12333
 
12334
      boolean this_present_cex = true && this.isSetCex();
12335
      boolean that_present_cex = true && that.isSetCex();
12336
      if (this_present_cex || that_present_cex) {
12337
        if (!(this_present_cex && that_present_cex))
12338
          return false;
12339
        if (!this.cex.equals(that.cex))
12340
          return false;
12341
      }
12342
 
12343
      return true;
12344
    }
12345
 
12346
    @Override
12347
    public int hashCode() {
12348
      return 0;
12349
    }
12350
 
12351
    public int compareTo(getAllItemsForWarehouse_result other) {
12352
      if (!getClass().equals(other.getClass())) {
12353
        return getClass().getName().compareTo(other.getClass().getName());
12354
      }
12355
 
12356
      int lastComparison = 0;
12357
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
12358
 
12359
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12360
      if (lastComparison != 0) {
12361
        return lastComparison;
12362
      }
12363
      if (isSetSuccess()) {
12364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12365
        if (lastComparison != 0) {
12366
          return lastComparison;
12367
        }
12368
      }
12369
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12370
      if (lastComparison != 0) {
12371
        return lastComparison;
12372
      }
12373
      if (isSetCex()) {
12374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12375
        if (lastComparison != 0) {
12376
          return lastComparison;
12377
        }
12378
      }
12379
      return 0;
12380
    }
12381
 
12382
    public _Fields fieldForId(int fieldId) {
12383
      return _Fields.findByThriftId(fieldId);
12384
    }
12385
 
12386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12387
      org.apache.thrift.protocol.TField field;
12388
      iprot.readStructBegin();
12389
      while (true)
12390
      {
12391
        field = iprot.readFieldBegin();
12392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12393
          break;
12394
        }
12395
        switch (field.id) {
12396
          case 0: // SUCCESS
12397
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12398
              {
12399
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
12400
                this.success = new ArrayList<Long>(_list28.size);
12401
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
12402
                {
12403
                  long _elem30; // required
12404
                  _elem30 = iprot.readI64();
12405
                  this.success.add(_elem30);
12406
                }
12407
                iprot.readListEnd();
12408
              }
12409
            } else { 
12410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12411
            }
12412
            break;
12413
          case 1: // CEX
12414
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12415
              this.cex = new InventoryServiceException();
12416
              this.cex.read(iprot);
12417
            } else { 
12418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12419
            }
12420
            break;
12421
          default:
12422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12423
        }
12424
        iprot.readFieldEnd();
12425
      }
12426
      iprot.readStructEnd();
12427
      validate();
12428
    }
12429
 
12430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12431
      oprot.writeStructBegin(STRUCT_DESC);
12432
 
12433
      if (this.isSetSuccess()) {
12434
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12435
        {
12436
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
12437
          for (long _iter31 : this.success)
12438
          {
12439
            oprot.writeI64(_iter31);
12440
          }
12441
          oprot.writeListEnd();
12442
        }
12443
        oprot.writeFieldEnd();
12444
      } else if (this.isSetCex()) {
12445
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12446
        this.cex.write(oprot);
12447
        oprot.writeFieldEnd();
12448
      }
12449
      oprot.writeFieldStop();
12450
      oprot.writeStructEnd();
12451
    }
12452
 
12453
    @Override
12454
    public String toString() {
12455
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
12456
      boolean first = true;
12457
 
12458
      sb.append("success:");
12459
      if (this.success == null) {
12460
        sb.append("null");
12461
      } else {
12462
        sb.append(this.success);
12463
      }
12464
      first = false;
12465
      if (!first) sb.append(", ");
12466
      sb.append("cex:");
12467
      if (this.cex == null) {
12468
        sb.append("null");
12469
      } else {
12470
        sb.append(this.cex);
12471
      }
12472
      first = false;
12473
      sb.append(")");
12474
      return sb.toString();
12475
    }
12476
 
12477
    public void validate() throws org.apache.thrift.TException {
12478
      // check for required fields
12479
    }
12480
 
12481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12482
      try {
12483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12484
      } catch (org.apache.thrift.TException te) {
12485
        throw new java.io.IOException(te);
12486
      }
12487
    }
12488
 
12489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12490
      try {
12491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12492
      } catch (org.apache.thrift.TException te) {
12493
        throw new java.io.IOException(te);
12494
      }
12495
    }
12496
 
12497
  }
12498
 
5967 rajveer 12499
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
12500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
12501
 
12502
    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);
12503
    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);
12504
    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);
12505
    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);
12506
 
12507
    private long itemId; // required
12508
    private long warehouseId; // required
12509
    private long sourceId; // required
12510
    private long orderId; // required
12511
 
12512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12513
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12514
      ITEM_ID((short)1, "itemId"),
12515
      WAREHOUSE_ID((short)2, "warehouseId"),
12516
      SOURCE_ID((short)3, "sourceId"),
12517
      ORDER_ID((short)4, "orderId");
12518
 
12519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12520
 
12521
      static {
12522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12523
          byName.put(field.getFieldName(), field);
12524
        }
12525
      }
12526
 
12527
      /**
12528
       * Find the _Fields constant that matches fieldId, or null if its not found.
12529
       */
12530
      public static _Fields findByThriftId(int fieldId) {
12531
        switch(fieldId) {
12532
          case 1: // ITEM_ID
12533
            return ITEM_ID;
12534
          case 2: // WAREHOUSE_ID
12535
            return WAREHOUSE_ID;
12536
          case 3: // SOURCE_ID
12537
            return SOURCE_ID;
12538
          case 4: // ORDER_ID
12539
            return ORDER_ID;
12540
          default:
12541
            return null;
12542
        }
12543
      }
12544
 
12545
      /**
12546
       * Find the _Fields constant that matches fieldId, throwing an exception
12547
       * if it is not found.
12548
       */
12549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12550
        _Fields fields = findByThriftId(fieldId);
12551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12552
        return fields;
12553
      }
12554
 
12555
      /**
12556
       * Find the _Fields constant that matches name, or null if its not found.
12557
       */
12558
      public static _Fields findByName(String name) {
12559
        return byName.get(name);
12560
      }
12561
 
12562
      private final short _thriftId;
12563
      private final String _fieldName;
12564
 
12565
      _Fields(short thriftId, String fieldName) {
12566
        _thriftId = thriftId;
12567
        _fieldName = fieldName;
12568
      }
12569
 
12570
      public short getThriftFieldId() {
12571
        return _thriftId;
12572
      }
12573
 
12574
      public String getFieldName() {
12575
        return _fieldName;
12576
      }
12577
    }
12578
 
12579
    // isset id assignments
12580
    private static final int __ITEMID_ISSET_ID = 0;
12581
    private static final int __WAREHOUSEID_ISSET_ID = 1;
12582
    private static final int __SOURCEID_ISSET_ID = 2;
12583
    private static final int __ORDERID_ISSET_ID = 3;
12584
    private BitSet __isset_bit_vector = new BitSet(4);
12585
 
12586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12587
    static {
12588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12589
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12591
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12593
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12595
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
12599
    }
12600
 
12601
    public isOrderBillable_args() {
12602
    }
12603
 
12604
    public isOrderBillable_args(
12605
      long itemId,
12606
      long warehouseId,
12607
      long sourceId,
12608
      long orderId)
12609
    {
12610
      this();
12611
      this.itemId = itemId;
12612
      setItemIdIsSet(true);
12613
      this.warehouseId = warehouseId;
12614
      setWarehouseIdIsSet(true);
12615
      this.sourceId = sourceId;
12616
      setSourceIdIsSet(true);
12617
      this.orderId = orderId;
12618
      setOrderIdIsSet(true);
12619
    }
12620
 
12621
    /**
12622
     * Performs a deep copy on <i>other</i>.
12623
     */
12624
    public isOrderBillable_args(isOrderBillable_args other) {
12625
      __isset_bit_vector.clear();
12626
      __isset_bit_vector.or(other.__isset_bit_vector);
12627
      this.itemId = other.itemId;
12628
      this.warehouseId = other.warehouseId;
12629
      this.sourceId = other.sourceId;
12630
      this.orderId = other.orderId;
12631
    }
12632
 
12633
    public isOrderBillable_args deepCopy() {
12634
      return new isOrderBillable_args(this);
12635
    }
12636
 
12637
    @Override
12638
    public void clear() {
12639
      setItemIdIsSet(false);
12640
      this.itemId = 0;
12641
      setWarehouseIdIsSet(false);
12642
      this.warehouseId = 0;
12643
      setSourceIdIsSet(false);
12644
      this.sourceId = 0;
12645
      setOrderIdIsSet(false);
12646
      this.orderId = 0;
12647
    }
12648
 
12649
    public long getItemId() {
12650
      return this.itemId;
12651
    }
12652
 
12653
    public void setItemId(long itemId) {
12654
      this.itemId = itemId;
12655
      setItemIdIsSet(true);
12656
    }
12657
 
12658
    public void unsetItemId() {
12659
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12660
    }
12661
 
12662
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12663
    public boolean isSetItemId() {
12664
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12665
    }
12666
 
12667
    public void setItemIdIsSet(boolean value) {
12668
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12669
    }
12670
 
12671
    public long getWarehouseId() {
12672
      return this.warehouseId;
12673
    }
12674
 
12675
    public void setWarehouseId(long warehouseId) {
12676
      this.warehouseId = warehouseId;
12677
      setWarehouseIdIsSet(true);
12678
    }
12679
 
12680
    public void unsetWarehouseId() {
12681
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12682
    }
12683
 
12684
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
12685
    public boolean isSetWarehouseId() {
12686
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12687
    }
12688
 
12689
    public void setWarehouseIdIsSet(boolean value) {
12690
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12691
    }
12692
 
12693
    public long getSourceId() {
12694
      return this.sourceId;
12695
    }
12696
 
12697
    public void setSourceId(long sourceId) {
12698
      this.sourceId = sourceId;
12699
      setSourceIdIsSet(true);
12700
    }
12701
 
12702
    public void unsetSourceId() {
12703
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12704
    }
12705
 
12706
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12707
    public boolean isSetSourceId() {
12708
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12709
    }
12710
 
12711
    public void setSourceIdIsSet(boolean value) {
12712
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12713
    }
12714
 
12715
    public long getOrderId() {
12716
      return this.orderId;
12717
    }
12718
 
12719
    public void setOrderId(long orderId) {
12720
      this.orderId = orderId;
12721
      setOrderIdIsSet(true);
12722
    }
12723
 
12724
    public void unsetOrderId() {
12725
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
12726
    }
12727
 
12728
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
12729
    public boolean isSetOrderId() {
12730
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
12731
    }
12732
 
12733
    public void setOrderIdIsSet(boolean value) {
12734
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
12735
    }
12736
 
12737
    public void setFieldValue(_Fields field, Object value) {
12738
      switch (field) {
12739
      case ITEM_ID:
12740
        if (value == null) {
12741
          unsetItemId();
12742
        } else {
12743
          setItemId((Long)value);
12744
        }
12745
        break;
12746
 
12747
      case WAREHOUSE_ID:
12748
        if (value == null) {
12749
          unsetWarehouseId();
12750
        } else {
12751
          setWarehouseId((Long)value);
12752
        }
12753
        break;
12754
 
12755
      case SOURCE_ID:
12756
        if (value == null) {
12757
          unsetSourceId();
12758
        } else {
12759
          setSourceId((Long)value);
12760
        }
12761
        break;
12762
 
12763
      case ORDER_ID:
12764
        if (value == null) {
12765
          unsetOrderId();
12766
        } else {
12767
          setOrderId((Long)value);
12768
        }
12769
        break;
12770
 
12771
      }
12772
    }
12773
 
12774
    public Object getFieldValue(_Fields field) {
12775
      switch (field) {
12776
      case ITEM_ID:
12777
        return Long.valueOf(getItemId());
12778
 
12779
      case WAREHOUSE_ID:
12780
        return Long.valueOf(getWarehouseId());
12781
 
12782
      case SOURCE_ID:
12783
        return Long.valueOf(getSourceId());
12784
 
12785
      case ORDER_ID:
12786
        return Long.valueOf(getOrderId());
12787
 
12788
      }
12789
      throw new IllegalStateException();
12790
    }
12791
 
12792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12793
    public boolean isSet(_Fields field) {
12794
      if (field == null) {
12795
        throw new IllegalArgumentException();
12796
      }
12797
 
12798
      switch (field) {
12799
      case ITEM_ID:
12800
        return isSetItemId();
12801
      case WAREHOUSE_ID:
12802
        return isSetWarehouseId();
12803
      case SOURCE_ID:
12804
        return isSetSourceId();
12805
      case ORDER_ID:
12806
        return isSetOrderId();
12807
      }
12808
      throw new IllegalStateException();
12809
    }
12810
 
12811
    @Override
12812
    public boolean equals(Object that) {
12813
      if (that == null)
12814
        return false;
12815
      if (that instanceof isOrderBillable_args)
12816
        return this.equals((isOrderBillable_args)that);
12817
      return false;
12818
    }
12819
 
12820
    public boolean equals(isOrderBillable_args that) {
12821
      if (that == null)
12822
        return false;
12823
 
12824
      boolean this_present_itemId = true;
12825
      boolean that_present_itemId = true;
12826
      if (this_present_itemId || that_present_itemId) {
12827
        if (!(this_present_itemId && that_present_itemId))
12828
          return false;
12829
        if (this.itemId != that.itemId)
12830
          return false;
12831
      }
12832
 
12833
      boolean this_present_warehouseId = true;
12834
      boolean that_present_warehouseId = true;
12835
      if (this_present_warehouseId || that_present_warehouseId) {
12836
        if (!(this_present_warehouseId && that_present_warehouseId))
12837
          return false;
12838
        if (this.warehouseId != that.warehouseId)
12839
          return false;
12840
      }
12841
 
12842
      boolean this_present_sourceId = true;
12843
      boolean that_present_sourceId = true;
12844
      if (this_present_sourceId || that_present_sourceId) {
12845
        if (!(this_present_sourceId && that_present_sourceId))
12846
          return false;
12847
        if (this.sourceId != that.sourceId)
12848
          return false;
12849
      }
12850
 
12851
      boolean this_present_orderId = true;
12852
      boolean that_present_orderId = true;
12853
      if (this_present_orderId || that_present_orderId) {
12854
        if (!(this_present_orderId && that_present_orderId))
12855
          return false;
12856
        if (this.orderId != that.orderId)
12857
          return false;
12858
      }
12859
 
12860
      return true;
12861
    }
12862
 
12863
    @Override
12864
    public int hashCode() {
12865
      return 0;
12866
    }
12867
 
12868
    public int compareTo(isOrderBillable_args other) {
12869
      if (!getClass().equals(other.getClass())) {
12870
        return getClass().getName().compareTo(other.getClass().getName());
12871
      }
12872
 
12873
      int lastComparison = 0;
12874
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
12875
 
12876
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12877
      if (lastComparison != 0) {
12878
        return lastComparison;
12879
      }
12880
      if (isSetItemId()) {
12881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12882
        if (lastComparison != 0) {
12883
          return lastComparison;
12884
        }
12885
      }
12886
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
12887
      if (lastComparison != 0) {
12888
        return lastComparison;
12889
      }
12890
      if (isSetWarehouseId()) {
12891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
12892
        if (lastComparison != 0) {
12893
          return lastComparison;
12894
        }
12895
      }
12896
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12897
      if (lastComparison != 0) {
12898
        return lastComparison;
12899
      }
12900
      if (isSetSourceId()) {
12901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12902
        if (lastComparison != 0) {
12903
          return lastComparison;
12904
        }
12905
      }
12906
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
12907
      if (lastComparison != 0) {
12908
        return lastComparison;
12909
      }
12910
      if (isSetOrderId()) {
12911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
12912
        if (lastComparison != 0) {
12913
          return lastComparison;
12914
        }
12915
      }
12916
      return 0;
12917
    }
12918
 
12919
    public _Fields fieldForId(int fieldId) {
12920
      return _Fields.findByThriftId(fieldId);
12921
    }
12922
 
12923
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12924
      org.apache.thrift.protocol.TField field;
12925
      iprot.readStructBegin();
12926
      while (true)
12927
      {
12928
        field = iprot.readFieldBegin();
12929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12930
          break;
12931
        }
12932
        switch (field.id) {
12933
          case 1: // ITEM_ID
12934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12935
              this.itemId = iprot.readI64();
12936
              setItemIdIsSet(true);
12937
            } else { 
12938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12939
            }
12940
            break;
12941
          case 2: // WAREHOUSE_ID
12942
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12943
              this.warehouseId = iprot.readI64();
12944
              setWarehouseIdIsSet(true);
12945
            } else { 
12946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12947
            }
12948
            break;
12949
          case 3: // SOURCE_ID
12950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12951
              this.sourceId = iprot.readI64();
12952
              setSourceIdIsSet(true);
12953
            } else { 
12954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12955
            }
12956
            break;
12957
          case 4: // ORDER_ID
12958
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12959
              this.orderId = iprot.readI64();
12960
              setOrderIdIsSet(true);
12961
            } else { 
12962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12963
            }
12964
            break;
12965
          default:
12966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12967
        }
12968
        iprot.readFieldEnd();
12969
      }
12970
      iprot.readStructEnd();
12971
      validate();
12972
    }
12973
 
12974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12975
      validate();
12976
 
12977
      oprot.writeStructBegin(STRUCT_DESC);
12978
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12979
      oprot.writeI64(this.itemId);
12980
      oprot.writeFieldEnd();
12981
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12982
      oprot.writeI64(this.warehouseId);
12983
      oprot.writeFieldEnd();
12984
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12985
      oprot.writeI64(this.sourceId);
12986
      oprot.writeFieldEnd();
12987
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
12988
      oprot.writeI64(this.orderId);
12989
      oprot.writeFieldEnd();
12990
      oprot.writeFieldStop();
12991
      oprot.writeStructEnd();
12992
    }
12993
 
12994
    @Override
12995
    public String toString() {
12996
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
12997
      boolean first = true;
12998
 
12999
      sb.append("itemId:");
13000
      sb.append(this.itemId);
13001
      first = false;
13002
      if (!first) sb.append(", ");
13003
      sb.append("warehouseId:");
13004
      sb.append(this.warehouseId);
13005
      first = false;
13006
      if (!first) sb.append(", ");
13007
      sb.append("sourceId:");
13008
      sb.append(this.sourceId);
13009
      first = false;
13010
      if (!first) sb.append(", ");
13011
      sb.append("orderId:");
13012
      sb.append(this.orderId);
13013
      first = false;
13014
      sb.append(")");
13015
      return sb.toString();
13016
    }
13017
 
13018
    public void validate() throws org.apache.thrift.TException {
13019
      // check for required fields
13020
    }
13021
 
13022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13023
      try {
13024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13025
      } catch (org.apache.thrift.TException te) {
13026
        throw new java.io.IOException(te);
13027
      }
13028
    }
13029
 
13030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13031
      try {
13032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13033
      } catch (org.apache.thrift.TException te) {
13034
        throw new java.io.IOException(te);
13035
      }
13036
    }
13037
 
13038
  }
13039
 
13040
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
13041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
13042
 
13043
    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);
13044
 
13045
    private boolean success; // required
13046
 
13047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13049
      SUCCESS((short)0, "success");
13050
 
13051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13052
 
13053
      static {
13054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13055
          byName.put(field.getFieldName(), field);
13056
        }
13057
      }
13058
 
13059
      /**
13060
       * Find the _Fields constant that matches fieldId, or null if its not found.
13061
       */
13062
      public static _Fields findByThriftId(int fieldId) {
13063
        switch(fieldId) {
13064
          case 0: // SUCCESS
13065
            return SUCCESS;
13066
          default:
13067
            return null;
13068
        }
13069
      }
13070
 
13071
      /**
13072
       * Find the _Fields constant that matches fieldId, throwing an exception
13073
       * if it is not found.
13074
       */
13075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13076
        _Fields fields = findByThriftId(fieldId);
13077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13078
        return fields;
13079
      }
13080
 
13081
      /**
13082
       * Find the _Fields constant that matches name, or null if its not found.
13083
       */
13084
      public static _Fields findByName(String name) {
13085
        return byName.get(name);
13086
      }
13087
 
13088
      private final short _thriftId;
13089
      private final String _fieldName;
13090
 
13091
      _Fields(short thriftId, String fieldName) {
13092
        _thriftId = thriftId;
13093
        _fieldName = fieldName;
13094
      }
13095
 
13096
      public short getThriftFieldId() {
13097
        return _thriftId;
13098
      }
13099
 
13100
      public String getFieldName() {
13101
        return _fieldName;
13102
      }
13103
    }
13104
 
13105
    // isset id assignments
13106
    private static final int __SUCCESS_ISSET_ID = 0;
13107
    private BitSet __isset_bit_vector = new BitSet(1);
13108
 
13109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13110
    static {
13111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
13116
    }
13117
 
13118
    public isOrderBillable_result() {
13119
    }
13120
 
13121
    public isOrderBillable_result(
13122
      boolean success)
13123
    {
13124
      this();
13125
      this.success = success;
13126
      setSuccessIsSet(true);
13127
    }
13128
 
13129
    /**
13130
     * Performs a deep copy on <i>other</i>.
13131
     */
13132
    public isOrderBillable_result(isOrderBillable_result other) {
13133
      __isset_bit_vector.clear();
13134
      __isset_bit_vector.or(other.__isset_bit_vector);
13135
      this.success = other.success;
13136
    }
13137
 
13138
    public isOrderBillable_result deepCopy() {
13139
      return new isOrderBillable_result(this);
13140
    }
13141
 
13142
    @Override
13143
    public void clear() {
13144
      setSuccessIsSet(false);
13145
      this.success = false;
13146
    }
13147
 
13148
    public boolean isSuccess() {
13149
      return this.success;
13150
    }
13151
 
13152
    public void setSuccess(boolean success) {
13153
      this.success = success;
13154
      setSuccessIsSet(true);
13155
    }
13156
 
13157
    public void unsetSuccess() {
13158
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13159
    }
13160
 
13161
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13162
    public boolean isSetSuccess() {
13163
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13164
    }
13165
 
13166
    public void setSuccessIsSet(boolean value) {
13167
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13168
    }
13169
 
13170
    public void setFieldValue(_Fields field, Object value) {
13171
      switch (field) {
13172
      case SUCCESS:
13173
        if (value == null) {
13174
          unsetSuccess();
13175
        } else {
13176
          setSuccess((Boolean)value);
13177
        }
13178
        break;
13179
 
13180
      }
13181
    }
13182
 
13183
    public Object getFieldValue(_Fields field) {
13184
      switch (field) {
13185
      case SUCCESS:
13186
        return Boolean.valueOf(isSuccess());
13187
 
13188
      }
13189
      throw new IllegalStateException();
13190
    }
13191
 
13192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13193
    public boolean isSet(_Fields field) {
13194
      if (field == null) {
13195
        throw new IllegalArgumentException();
13196
      }
13197
 
13198
      switch (field) {
13199
      case SUCCESS:
13200
        return isSetSuccess();
13201
      }
13202
      throw new IllegalStateException();
13203
    }
13204
 
13205
    @Override
13206
    public boolean equals(Object that) {
13207
      if (that == null)
13208
        return false;
13209
      if (that instanceof isOrderBillable_result)
13210
        return this.equals((isOrderBillable_result)that);
13211
      return false;
13212
    }
13213
 
13214
    public boolean equals(isOrderBillable_result that) {
13215
      if (that == null)
13216
        return false;
13217
 
13218
      boolean this_present_success = true;
13219
      boolean that_present_success = true;
13220
      if (this_present_success || that_present_success) {
13221
        if (!(this_present_success && that_present_success))
13222
          return false;
13223
        if (this.success != that.success)
13224
          return false;
13225
      }
13226
 
13227
      return true;
13228
    }
13229
 
13230
    @Override
13231
    public int hashCode() {
13232
      return 0;
13233
    }
13234
 
13235
    public int compareTo(isOrderBillable_result other) {
13236
      if (!getClass().equals(other.getClass())) {
13237
        return getClass().getName().compareTo(other.getClass().getName());
13238
      }
13239
 
13240
      int lastComparison = 0;
13241
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
13242
 
13243
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13244
      if (lastComparison != 0) {
13245
        return lastComparison;
13246
      }
13247
      if (isSetSuccess()) {
13248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13249
        if (lastComparison != 0) {
13250
          return lastComparison;
13251
        }
13252
      }
13253
      return 0;
13254
    }
13255
 
13256
    public _Fields fieldForId(int fieldId) {
13257
      return _Fields.findByThriftId(fieldId);
13258
    }
13259
 
13260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13261
      org.apache.thrift.protocol.TField field;
13262
      iprot.readStructBegin();
13263
      while (true)
13264
      {
13265
        field = iprot.readFieldBegin();
13266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13267
          break;
13268
        }
13269
        switch (field.id) {
13270
          case 0: // SUCCESS
13271
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13272
              this.success = iprot.readBool();
13273
              setSuccessIsSet(true);
13274
            } else { 
13275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13276
            }
13277
            break;
13278
          default:
13279
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13280
        }
13281
        iprot.readFieldEnd();
13282
      }
13283
      iprot.readStructEnd();
13284
      validate();
13285
    }
13286
 
13287
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13288
      oprot.writeStructBegin(STRUCT_DESC);
13289
 
13290
      if (this.isSetSuccess()) {
13291
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13292
        oprot.writeBool(this.success);
13293
        oprot.writeFieldEnd();
13294
      }
13295
      oprot.writeFieldStop();
13296
      oprot.writeStructEnd();
13297
    }
13298
 
13299
    @Override
13300
    public String toString() {
13301
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
13302
      boolean first = true;
13303
 
13304
      sb.append("success:");
13305
      sb.append(this.success);
13306
      first = false;
13307
      sb.append(")");
13308
      return sb.toString();
13309
    }
13310
 
13311
    public void validate() throws org.apache.thrift.TException {
13312
      // check for required fields
13313
    }
13314
 
13315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13316
      try {
13317
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13318
      } catch (org.apache.thrift.TException te) {
13319
        throw new java.io.IOException(te);
13320
      }
13321
    }
13322
 
13323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13324
      try {
13325
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13326
      } catch (org.apache.thrift.TException te) {
13327
        throw new java.io.IOException(te);
13328
      }
13329
    }
13330
 
13331
  }
13332
 
5945 mandeep.dh 13333
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
13334
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
13335
 
13336
    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);
13337
    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 13338
    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);
13339
    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);
13340
    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);
13341
    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);
13342
    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 13343
 
13344
    private long itemId; // required
13345
    private long warehouseId; // required
5967 rajveer 13346
    private long sourceId; // required
13347
    private long orderId; // required
13348
    private long createdTimestamp; // required
13349
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 13350
    private double quantity; // required
13351
 
13352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13354
      ITEM_ID((short)1, "itemId"),
13355
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 13356
      SOURCE_ID((short)3, "sourceId"),
13357
      ORDER_ID((short)4, "orderId"),
13358
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
13359
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
13360
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 13361
 
13362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13363
 
13364
      static {
13365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13366
          byName.put(field.getFieldName(), field);
13367
        }
13368
      }
13369
 
13370
      /**
13371
       * Find the _Fields constant that matches fieldId, or null if its not found.
13372
       */
13373
      public static _Fields findByThriftId(int fieldId) {
13374
        switch(fieldId) {
13375
          case 1: // ITEM_ID
13376
            return ITEM_ID;
13377
          case 2: // WAREHOUSE_ID
13378
            return WAREHOUSE_ID;
5967 rajveer 13379
          case 3: // SOURCE_ID
13380
            return SOURCE_ID;
13381
          case 4: // ORDER_ID
13382
            return ORDER_ID;
13383
          case 5: // CREATED_TIMESTAMP
13384
            return CREATED_TIMESTAMP;
13385
          case 6: // PROMISED_SHIPPING_TIMESTAMP
13386
            return PROMISED_SHIPPING_TIMESTAMP;
13387
          case 7: // QUANTITY
5945 mandeep.dh 13388
            return QUANTITY;
13389
          default:
13390
            return null;
13391
        }
13392
      }
13393
 
13394
      /**
13395
       * Find the _Fields constant that matches fieldId, throwing an exception
13396
       * if it is not found.
13397
       */
13398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13399
        _Fields fields = findByThriftId(fieldId);
13400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13401
        return fields;
13402
      }
13403
 
13404
      /**
13405
       * Find the _Fields constant that matches name, or null if its not found.
13406
       */
13407
      public static _Fields findByName(String name) {
13408
        return byName.get(name);
13409
      }
13410
 
13411
      private final short _thriftId;
13412
      private final String _fieldName;
13413
 
13414
      _Fields(short thriftId, String fieldName) {
13415
        _thriftId = thriftId;
13416
        _fieldName = fieldName;
13417
      }
13418
 
13419
      public short getThriftFieldId() {
13420
        return _thriftId;
13421
      }
13422
 
13423
      public String getFieldName() {
13424
        return _fieldName;
13425
      }
13426
    }
13427
 
13428
    // isset id assignments
13429
    private static final int __ITEMID_ISSET_ID = 0;
13430
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 13431
    private static final int __SOURCEID_ISSET_ID = 2;
13432
    private static final int __ORDERID_ISSET_ID = 3;
13433
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
13434
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
13435
    private static final int __QUANTITY_ISSET_ID = 6;
13436
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 13437
 
13438
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13439
    static {
13440
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13441
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13443
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 13445
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13447
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13449
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13451
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 13453
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
13455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
13457
    }
13458
 
13459
    public reserveItemInWarehouse_args() {
13460
    }
13461
 
13462
    public reserveItemInWarehouse_args(
13463
      long itemId,
13464
      long warehouseId,
5967 rajveer 13465
      long sourceId,
13466
      long orderId,
13467
      long createdTimestamp,
13468
      long promisedShippingTimestamp,
5945 mandeep.dh 13469
      double quantity)
13470
    {
13471
      this();
13472
      this.itemId = itemId;
13473
      setItemIdIsSet(true);
13474
      this.warehouseId = warehouseId;
13475
      setWarehouseIdIsSet(true);
5967 rajveer 13476
      this.sourceId = sourceId;
13477
      setSourceIdIsSet(true);
13478
      this.orderId = orderId;
13479
      setOrderIdIsSet(true);
13480
      this.createdTimestamp = createdTimestamp;
13481
      setCreatedTimestampIsSet(true);
13482
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13483
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 13484
      this.quantity = quantity;
13485
      setQuantityIsSet(true);
13486
    }
13487
 
13488
    /**
13489
     * Performs a deep copy on <i>other</i>.
13490
     */
13491
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
13492
      __isset_bit_vector.clear();
13493
      __isset_bit_vector.or(other.__isset_bit_vector);
13494
      this.itemId = other.itemId;
13495
      this.warehouseId = other.warehouseId;
5967 rajveer 13496
      this.sourceId = other.sourceId;
13497
      this.orderId = other.orderId;
13498
      this.createdTimestamp = other.createdTimestamp;
13499
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 13500
      this.quantity = other.quantity;
13501
    }
13502
 
13503
    public reserveItemInWarehouse_args deepCopy() {
13504
      return new reserveItemInWarehouse_args(this);
13505
    }
13506
 
13507
    @Override
13508
    public void clear() {
13509
      setItemIdIsSet(false);
13510
      this.itemId = 0;
13511
      setWarehouseIdIsSet(false);
13512
      this.warehouseId = 0;
5967 rajveer 13513
      setSourceIdIsSet(false);
13514
      this.sourceId = 0;
13515
      setOrderIdIsSet(false);
13516
      this.orderId = 0;
13517
      setCreatedTimestampIsSet(false);
13518
      this.createdTimestamp = 0;
13519
      setPromisedShippingTimestampIsSet(false);
13520
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 13521
      setQuantityIsSet(false);
13522
      this.quantity = 0.0;
13523
    }
13524
 
13525
    public long getItemId() {
13526
      return this.itemId;
13527
    }
13528
 
13529
    public void setItemId(long itemId) {
13530
      this.itemId = itemId;
13531
      setItemIdIsSet(true);
13532
    }
13533
 
13534
    public void unsetItemId() {
13535
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13536
    }
13537
 
13538
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13539
    public boolean isSetItemId() {
13540
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13541
    }
13542
 
13543
    public void setItemIdIsSet(boolean value) {
13544
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13545
    }
13546
 
13547
    public long getWarehouseId() {
13548
      return this.warehouseId;
13549
    }
13550
 
13551
    public void setWarehouseId(long warehouseId) {
13552
      this.warehouseId = warehouseId;
13553
      setWarehouseIdIsSet(true);
13554
    }
13555
 
13556
    public void unsetWarehouseId() {
13557
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13558
    }
13559
 
13560
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13561
    public boolean isSetWarehouseId() {
13562
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13563
    }
13564
 
13565
    public void setWarehouseIdIsSet(boolean value) {
13566
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13567
    }
13568
 
5967 rajveer 13569
    public long getSourceId() {
13570
      return this.sourceId;
13571
    }
13572
 
13573
    public void setSourceId(long sourceId) {
13574
      this.sourceId = sourceId;
13575
      setSourceIdIsSet(true);
13576
    }
13577
 
13578
    public void unsetSourceId() {
13579
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13580
    }
13581
 
13582
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13583
    public boolean isSetSourceId() {
13584
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13585
    }
13586
 
13587
    public void setSourceIdIsSet(boolean value) {
13588
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13589
    }
13590
 
13591
    public long getOrderId() {
13592
      return this.orderId;
13593
    }
13594
 
13595
    public void setOrderId(long orderId) {
13596
      this.orderId = orderId;
13597
      setOrderIdIsSet(true);
13598
    }
13599
 
13600
    public void unsetOrderId() {
13601
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13602
    }
13603
 
13604
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13605
    public boolean isSetOrderId() {
13606
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13607
    }
13608
 
13609
    public void setOrderIdIsSet(boolean value) {
13610
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13611
    }
13612
 
13613
    public long getCreatedTimestamp() {
13614
      return this.createdTimestamp;
13615
    }
13616
 
13617
    public void setCreatedTimestamp(long createdTimestamp) {
13618
      this.createdTimestamp = createdTimestamp;
13619
      setCreatedTimestampIsSet(true);
13620
    }
13621
 
13622
    public void unsetCreatedTimestamp() {
13623
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
13624
    }
13625
 
13626
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
13627
    public boolean isSetCreatedTimestamp() {
13628
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
13629
    }
13630
 
13631
    public void setCreatedTimestampIsSet(boolean value) {
13632
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
13633
    }
13634
 
13635
    public long getPromisedShippingTimestamp() {
13636
      return this.promisedShippingTimestamp;
13637
    }
13638
 
13639
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
13640
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13641
      setPromisedShippingTimestampIsSet(true);
13642
    }
13643
 
13644
    public void unsetPromisedShippingTimestamp() {
13645
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13646
    }
13647
 
13648
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
13649
    public boolean isSetPromisedShippingTimestamp() {
13650
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13651
    }
13652
 
13653
    public void setPromisedShippingTimestampIsSet(boolean value) {
13654
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
13655
    }
13656
 
5945 mandeep.dh 13657
    public double getQuantity() {
13658
      return this.quantity;
13659
    }
13660
 
13661
    public void setQuantity(double quantity) {
13662
      this.quantity = quantity;
13663
      setQuantityIsSet(true);
13664
    }
13665
 
13666
    public void unsetQuantity() {
13667
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
13668
    }
13669
 
13670
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
13671
    public boolean isSetQuantity() {
13672
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
13673
    }
13674
 
13675
    public void setQuantityIsSet(boolean value) {
13676
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
13677
    }
13678
 
13679
    public void setFieldValue(_Fields field, Object value) {
13680
      switch (field) {
13681
      case ITEM_ID:
13682
        if (value == null) {
13683
          unsetItemId();
13684
        } else {
13685
          setItemId((Long)value);
13686
        }
13687
        break;
13688
 
13689
      case WAREHOUSE_ID:
13690
        if (value == null) {
13691
          unsetWarehouseId();
13692
        } else {
13693
          setWarehouseId((Long)value);
13694
        }
13695
        break;
13696
 
5967 rajveer 13697
      case SOURCE_ID:
13698
        if (value == null) {
13699
          unsetSourceId();
13700
        } else {
13701
          setSourceId((Long)value);
13702
        }
13703
        break;
13704
 
13705
      case ORDER_ID:
13706
        if (value == null) {
13707
          unsetOrderId();
13708
        } else {
13709
          setOrderId((Long)value);
13710
        }
13711
        break;
13712
 
13713
      case CREATED_TIMESTAMP:
13714
        if (value == null) {
13715
          unsetCreatedTimestamp();
13716
        } else {
13717
          setCreatedTimestamp((Long)value);
13718
        }
13719
        break;
13720
 
13721
      case PROMISED_SHIPPING_TIMESTAMP:
13722
        if (value == null) {
13723
          unsetPromisedShippingTimestamp();
13724
        } else {
13725
          setPromisedShippingTimestamp((Long)value);
13726
        }
13727
        break;
13728
 
5945 mandeep.dh 13729
      case QUANTITY:
13730
        if (value == null) {
13731
          unsetQuantity();
13732
        } else {
13733
          setQuantity((Double)value);
13734
        }
13735
        break;
13736
 
13737
      }
13738
    }
13739
 
13740
    public Object getFieldValue(_Fields field) {
13741
      switch (field) {
13742
      case ITEM_ID:
13743
        return Long.valueOf(getItemId());
13744
 
13745
      case WAREHOUSE_ID:
13746
        return Long.valueOf(getWarehouseId());
13747
 
5967 rajveer 13748
      case SOURCE_ID:
13749
        return Long.valueOf(getSourceId());
13750
 
13751
      case ORDER_ID:
13752
        return Long.valueOf(getOrderId());
13753
 
13754
      case CREATED_TIMESTAMP:
13755
        return Long.valueOf(getCreatedTimestamp());
13756
 
13757
      case PROMISED_SHIPPING_TIMESTAMP:
13758
        return Long.valueOf(getPromisedShippingTimestamp());
13759
 
5945 mandeep.dh 13760
      case QUANTITY:
13761
        return Double.valueOf(getQuantity());
13762
 
13763
      }
13764
      throw new IllegalStateException();
13765
    }
13766
 
13767
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13768
    public boolean isSet(_Fields field) {
13769
      if (field == null) {
13770
        throw new IllegalArgumentException();
13771
      }
13772
 
13773
      switch (field) {
13774
      case ITEM_ID:
13775
        return isSetItemId();
13776
      case WAREHOUSE_ID:
13777
        return isSetWarehouseId();
5967 rajveer 13778
      case SOURCE_ID:
13779
        return isSetSourceId();
13780
      case ORDER_ID:
13781
        return isSetOrderId();
13782
      case CREATED_TIMESTAMP:
13783
        return isSetCreatedTimestamp();
13784
      case PROMISED_SHIPPING_TIMESTAMP:
13785
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 13786
      case QUANTITY:
13787
        return isSetQuantity();
13788
      }
13789
      throw new IllegalStateException();
13790
    }
13791
 
13792
    @Override
13793
    public boolean equals(Object that) {
13794
      if (that == null)
13795
        return false;
13796
      if (that instanceof reserveItemInWarehouse_args)
13797
        return this.equals((reserveItemInWarehouse_args)that);
13798
      return false;
13799
    }
13800
 
13801
    public boolean equals(reserveItemInWarehouse_args that) {
13802
      if (that == null)
13803
        return false;
13804
 
13805
      boolean this_present_itemId = true;
13806
      boolean that_present_itemId = true;
13807
      if (this_present_itemId || that_present_itemId) {
13808
        if (!(this_present_itemId && that_present_itemId))
13809
          return false;
13810
        if (this.itemId != that.itemId)
13811
          return false;
13812
      }
13813
 
13814
      boolean this_present_warehouseId = true;
13815
      boolean that_present_warehouseId = true;
13816
      if (this_present_warehouseId || that_present_warehouseId) {
13817
        if (!(this_present_warehouseId && that_present_warehouseId))
13818
          return false;
13819
        if (this.warehouseId != that.warehouseId)
13820
          return false;
13821
      }
13822
 
5967 rajveer 13823
      boolean this_present_sourceId = true;
13824
      boolean that_present_sourceId = true;
13825
      if (this_present_sourceId || that_present_sourceId) {
13826
        if (!(this_present_sourceId && that_present_sourceId))
13827
          return false;
13828
        if (this.sourceId != that.sourceId)
13829
          return false;
13830
      }
13831
 
13832
      boolean this_present_orderId = true;
13833
      boolean that_present_orderId = true;
13834
      if (this_present_orderId || that_present_orderId) {
13835
        if (!(this_present_orderId && that_present_orderId))
13836
          return false;
13837
        if (this.orderId != that.orderId)
13838
          return false;
13839
      }
13840
 
13841
      boolean this_present_createdTimestamp = true;
13842
      boolean that_present_createdTimestamp = true;
13843
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
13844
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
13845
          return false;
13846
        if (this.createdTimestamp != that.createdTimestamp)
13847
          return false;
13848
      }
13849
 
13850
      boolean this_present_promisedShippingTimestamp = true;
13851
      boolean that_present_promisedShippingTimestamp = true;
13852
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
13853
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
13854
          return false;
13855
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
13856
          return false;
13857
      }
13858
 
5945 mandeep.dh 13859
      boolean this_present_quantity = true;
13860
      boolean that_present_quantity = true;
13861
      if (this_present_quantity || that_present_quantity) {
13862
        if (!(this_present_quantity && that_present_quantity))
13863
          return false;
13864
        if (this.quantity != that.quantity)
13865
          return false;
13866
      }
13867
 
13868
      return true;
13869
    }
13870
 
13871
    @Override
13872
    public int hashCode() {
13873
      return 0;
13874
    }
13875
 
13876
    public int compareTo(reserveItemInWarehouse_args other) {
13877
      if (!getClass().equals(other.getClass())) {
13878
        return getClass().getName().compareTo(other.getClass().getName());
13879
      }
13880
 
13881
      int lastComparison = 0;
13882
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
13883
 
13884
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13885
      if (lastComparison != 0) {
13886
        return lastComparison;
13887
      }
13888
      if (isSetItemId()) {
13889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13890
        if (lastComparison != 0) {
13891
          return lastComparison;
13892
        }
13893
      }
13894
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13895
      if (lastComparison != 0) {
13896
        return lastComparison;
13897
      }
13898
      if (isSetWarehouseId()) {
13899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13900
        if (lastComparison != 0) {
13901
          return lastComparison;
13902
        }
13903
      }
5967 rajveer 13904
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13905
      if (lastComparison != 0) {
13906
        return lastComparison;
13907
      }
13908
      if (isSetSourceId()) {
13909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13910
        if (lastComparison != 0) {
13911
          return lastComparison;
13912
        }
13913
      }
13914
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13915
      if (lastComparison != 0) {
13916
        return lastComparison;
13917
      }
13918
      if (isSetOrderId()) {
13919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13920
        if (lastComparison != 0) {
13921
          return lastComparison;
13922
        }
13923
      }
13924
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
13925
      if (lastComparison != 0) {
13926
        return lastComparison;
13927
      }
13928
      if (isSetCreatedTimestamp()) {
13929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
13930
        if (lastComparison != 0) {
13931
          return lastComparison;
13932
        }
13933
      }
13934
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
13935
      if (lastComparison != 0) {
13936
        return lastComparison;
13937
      }
13938
      if (isSetPromisedShippingTimestamp()) {
13939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
13940
        if (lastComparison != 0) {
13941
          return lastComparison;
13942
        }
13943
      }
5945 mandeep.dh 13944
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
13945
      if (lastComparison != 0) {
13946
        return lastComparison;
13947
      }
13948
      if (isSetQuantity()) {
13949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
13950
        if (lastComparison != 0) {
13951
          return lastComparison;
13952
        }
13953
      }
13954
      return 0;
13955
    }
13956
 
13957
    public _Fields fieldForId(int fieldId) {
13958
      return _Fields.findByThriftId(fieldId);
13959
    }
13960
 
13961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13962
      org.apache.thrift.protocol.TField field;
13963
      iprot.readStructBegin();
13964
      while (true)
13965
      {
13966
        field = iprot.readFieldBegin();
13967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13968
          break;
13969
        }
13970
        switch (field.id) {
13971
          case 1: // ITEM_ID
13972
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13973
              this.itemId = iprot.readI64();
13974
              setItemIdIsSet(true);
13975
            } else { 
13976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13977
            }
13978
            break;
13979
          case 2: // WAREHOUSE_ID
13980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13981
              this.warehouseId = iprot.readI64();
13982
              setWarehouseIdIsSet(true);
13983
            } else { 
13984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13985
            }
13986
            break;
5967 rajveer 13987
          case 3: // SOURCE_ID
13988
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13989
              this.sourceId = iprot.readI64();
13990
              setSourceIdIsSet(true);
13991
            } else { 
13992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13993
            }
13994
            break;
13995
          case 4: // ORDER_ID
13996
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13997
              this.orderId = iprot.readI64();
13998
              setOrderIdIsSet(true);
13999
            } else { 
14000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14001
            }
14002
            break;
14003
          case 5: // CREATED_TIMESTAMP
14004
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14005
              this.createdTimestamp = iprot.readI64();
14006
              setCreatedTimestampIsSet(true);
14007
            } else { 
14008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14009
            }
14010
            break;
14011
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14012
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14013
              this.promisedShippingTimestamp = iprot.readI64();
14014
              setPromisedShippingTimestampIsSet(true);
14015
            } else { 
14016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14017
            }
14018
            break;
14019
          case 7: // QUANTITY
5945 mandeep.dh 14020
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14021
              this.quantity = iprot.readDouble();
14022
              setQuantityIsSet(true);
14023
            } else { 
14024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14025
            }
14026
            break;
14027
          default:
14028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14029
        }
14030
        iprot.readFieldEnd();
14031
      }
14032
      iprot.readStructEnd();
14033
      validate();
14034
    }
14035
 
14036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14037
      validate();
14038
 
14039
      oprot.writeStructBegin(STRUCT_DESC);
14040
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14041
      oprot.writeI64(this.itemId);
14042
      oprot.writeFieldEnd();
14043
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14044
      oprot.writeI64(this.warehouseId);
14045
      oprot.writeFieldEnd();
5967 rajveer 14046
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14047
      oprot.writeI64(this.sourceId);
14048
      oprot.writeFieldEnd();
14049
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14050
      oprot.writeI64(this.orderId);
14051
      oprot.writeFieldEnd();
14052
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
14053
      oprot.writeI64(this.createdTimestamp);
14054
      oprot.writeFieldEnd();
14055
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
14056
      oprot.writeI64(this.promisedShippingTimestamp);
14057
      oprot.writeFieldEnd();
5945 mandeep.dh 14058
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14059
      oprot.writeDouble(this.quantity);
14060
      oprot.writeFieldEnd();
14061
      oprot.writeFieldStop();
14062
      oprot.writeStructEnd();
14063
    }
14064
 
14065
    @Override
14066
    public String toString() {
14067
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
14068
      boolean first = true;
14069
 
14070
      sb.append("itemId:");
14071
      sb.append(this.itemId);
14072
      first = false;
14073
      if (!first) sb.append(", ");
14074
      sb.append("warehouseId:");
14075
      sb.append(this.warehouseId);
14076
      first = false;
14077
      if (!first) sb.append(", ");
5967 rajveer 14078
      sb.append("sourceId:");
14079
      sb.append(this.sourceId);
14080
      first = false;
14081
      if (!first) sb.append(", ");
14082
      sb.append("orderId:");
14083
      sb.append(this.orderId);
14084
      first = false;
14085
      if (!first) sb.append(", ");
14086
      sb.append("createdTimestamp:");
14087
      sb.append(this.createdTimestamp);
14088
      first = false;
14089
      if (!first) sb.append(", ");
14090
      sb.append("promisedShippingTimestamp:");
14091
      sb.append(this.promisedShippingTimestamp);
14092
      first = false;
14093
      if (!first) sb.append(", ");
5945 mandeep.dh 14094
      sb.append("quantity:");
14095
      sb.append(this.quantity);
14096
      first = false;
14097
      sb.append(")");
14098
      return sb.toString();
14099
    }
14100
 
14101
    public void validate() throws org.apache.thrift.TException {
14102
      // check for required fields
14103
    }
14104
 
14105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14106
      try {
14107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14108
      } catch (org.apache.thrift.TException te) {
14109
        throw new java.io.IOException(te);
14110
      }
14111
    }
14112
 
14113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14114
      try {
14115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14116
      } catch (org.apache.thrift.TException te) {
14117
        throw new java.io.IOException(te);
14118
      }
14119
    }
14120
 
14121
  }
14122
 
14123
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
14125
 
14126
    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);
14127
    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);
14128
 
14129
    private boolean success; // required
14130
    private InventoryServiceException cex; // required
14131
 
14132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14134
      SUCCESS((short)0, "success"),
14135
      CEX((short)1, "cex");
14136
 
14137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14138
 
14139
      static {
14140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14141
          byName.put(field.getFieldName(), field);
14142
        }
14143
      }
14144
 
14145
      /**
14146
       * Find the _Fields constant that matches fieldId, or null if its not found.
14147
       */
14148
      public static _Fields findByThriftId(int fieldId) {
14149
        switch(fieldId) {
14150
          case 0: // SUCCESS
14151
            return SUCCESS;
14152
          case 1: // CEX
14153
            return CEX;
14154
          default:
14155
            return null;
14156
        }
14157
      }
14158
 
14159
      /**
14160
       * Find the _Fields constant that matches fieldId, throwing an exception
14161
       * if it is not found.
14162
       */
14163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14164
        _Fields fields = findByThriftId(fieldId);
14165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14166
        return fields;
14167
      }
14168
 
14169
      /**
14170
       * Find the _Fields constant that matches name, or null if its not found.
14171
       */
14172
      public static _Fields findByName(String name) {
14173
        return byName.get(name);
14174
      }
14175
 
14176
      private final short _thriftId;
14177
      private final String _fieldName;
14178
 
14179
      _Fields(short thriftId, String fieldName) {
14180
        _thriftId = thriftId;
14181
        _fieldName = fieldName;
14182
      }
14183
 
14184
      public short getThriftFieldId() {
14185
        return _thriftId;
14186
      }
14187
 
14188
      public String getFieldName() {
14189
        return _fieldName;
14190
      }
14191
    }
14192
 
14193
    // isset id assignments
14194
    private static final int __SUCCESS_ISSET_ID = 0;
14195
    private BitSet __isset_bit_vector = new BitSet(1);
14196
 
14197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14198
    static {
14199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14200
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14202
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
14206
    }
14207
 
14208
    public reserveItemInWarehouse_result() {
14209
    }
14210
 
14211
    public reserveItemInWarehouse_result(
14212
      boolean success,
14213
      InventoryServiceException cex)
14214
    {
14215
      this();
14216
      this.success = success;
14217
      setSuccessIsSet(true);
14218
      this.cex = cex;
14219
    }
14220
 
14221
    /**
14222
     * Performs a deep copy on <i>other</i>.
14223
     */
14224
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
14225
      __isset_bit_vector.clear();
14226
      __isset_bit_vector.or(other.__isset_bit_vector);
14227
      this.success = other.success;
14228
      if (other.isSetCex()) {
14229
        this.cex = new InventoryServiceException(other.cex);
14230
      }
14231
    }
14232
 
14233
    public reserveItemInWarehouse_result deepCopy() {
14234
      return new reserveItemInWarehouse_result(this);
14235
    }
14236
 
14237
    @Override
14238
    public void clear() {
14239
      setSuccessIsSet(false);
14240
      this.success = false;
14241
      this.cex = null;
14242
    }
14243
 
14244
    public boolean isSuccess() {
14245
      return this.success;
14246
    }
14247
 
14248
    public void setSuccess(boolean success) {
14249
      this.success = success;
14250
      setSuccessIsSet(true);
14251
    }
14252
 
14253
    public void unsetSuccess() {
14254
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14255
    }
14256
 
14257
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14258
    public boolean isSetSuccess() {
14259
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14260
    }
14261
 
14262
    public void setSuccessIsSet(boolean value) {
14263
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14264
    }
14265
 
14266
    public InventoryServiceException getCex() {
14267
      return this.cex;
14268
    }
14269
 
14270
    public void setCex(InventoryServiceException cex) {
14271
      this.cex = cex;
14272
    }
14273
 
14274
    public void unsetCex() {
14275
      this.cex = null;
14276
    }
14277
 
14278
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14279
    public boolean isSetCex() {
14280
      return this.cex != null;
14281
    }
14282
 
14283
    public void setCexIsSet(boolean value) {
14284
      if (!value) {
14285
        this.cex = null;
14286
      }
14287
    }
14288
 
14289
    public void setFieldValue(_Fields field, Object value) {
14290
      switch (field) {
14291
      case SUCCESS:
14292
        if (value == null) {
14293
          unsetSuccess();
14294
        } else {
14295
          setSuccess((Boolean)value);
14296
        }
14297
        break;
14298
 
14299
      case CEX:
14300
        if (value == null) {
14301
          unsetCex();
14302
        } else {
14303
          setCex((InventoryServiceException)value);
14304
        }
14305
        break;
14306
 
14307
      }
14308
    }
14309
 
14310
    public Object getFieldValue(_Fields field) {
14311
      switch (field) {
14312
      case SUCCESS:
14313
        return Boolean.valueOf(isSuccess());
14314
 
14315
      case CEX:
14316
        return getCex();
14317
 
14318
      }
14319
      throw new IllegalStateException();
14320
    }
14321
 
14322
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14323
    public boolean isSet(_Fields field) {
14324
      if (field == null) {
14325
        throw new IllegalArgumentException();
14326
      }
14327
 
14328
      switch (field) {
14329
      case SUCCESS:
14330
        return isSetSuccess();
14331
      case CEX:
14332
        return isSetCex();
14333
      }
14334
      throw new IllegalStateException();
14335
    }
14336
 
14337
    @Override
14338
    public boolean equals(Object that) {
14339
      if (that == null)
14340
        return false;
14341
      if (that instanceof reserveItemInWarehouse_result)
14342
        return this.equals((reserveItemInWarehouse_result)that);
14343
      return false;
14344
    }
14345
 
14346
    public boolean equals(reserveItemInWarehouse_result that) {
14347
      if (that == null)
14348
        return false;
14349
 
14350
      boolean this_present_success = true;
14351
      boolean that_present_success = true;
14352
      if (this_present_success || that_present_success) {
14353
        if (!(this_present_success && that_present_success))
14354
          return false;
14355
        if (this.success != that.success)
14356
          return false;
14357
      }
14358
 
14359
      boolean this_present_cex = true && this.isSetCex();
14360
      boolean that_present_cex = true && that.isSetCex();
14361
      if (this_present_cex || that_present_cex) {
14362
        if (!(this_present_cex && that_present_cex))
14363
          return false;
14364
        if (!this.cex.equals(that.cex))
14365
          return false;
14366
      }
14367
 
14368
      return true;
14369
    }
14370
 
14371
    @Override
14372
    public int hashCode() {
14373
      return 0;
14374
    }
14375
 
14376
    public int compareTo(reserveItemInWarehouse_result other) {
14377
      if (!getClass().equals(other.getClass())) {
14378
        return getClass().getName().compareTo(other.getClass().getName());
14379
      }
14380
 
14381
      int lastComparison = 0;
14382
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
14383
 
14384
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14385
      if (lastComparison != 0) {
14386
        return lastComparison;
14387
      }
14388
      if (isSetSuccess()) {
14389
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14390
        if (lastComparison != 0) {
14391
          return lastComparison;
14392
        }
14393
      }
14394
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14395
      if (lastComparison != 0) {
14396
        return lastComparison;
14397
      }
14398
      if (isSetCex()) {
14399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14400
        if (lastComparison != 0) {
14401
          return lastComparison;
14402
        }
14403
      }
14404
      return 0;
14405
    }
14406
 
14407
    public _Fields fieldForId(int fieldId) {
14408
      return _Fields.findByThriftId(fieldId);
14409
    }
14410
 
14411
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14412
      org.apache.thrift.protocol.TField field;
14413
      iprot.readStructBegin();
14414
      while (true)
14415
      {
14416
        field = iprot.readFieldBegin();
14417
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14418
          break;
14419
        }
14420
        switch (field.id) {
14421
          case 0: // SUCCESS
14422
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14423
              this.success = iprot.readBool();
14424
              setSuccessIsSet(true);
14425
            } else { 
14426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14427
            }
14428
            break;
14429
          case 1: // CEX
14430
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14431
              this.cex = new InventoryServiceException();
14432
              this.cex.read(iprot);
14433
            } else { 
14434
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14435
            }
14436
            break;
14437
          default:
14438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14439
        }
14440
        iprot.readFieldEnd();
14441
      }
14442
      iprot.readStructEnd();
14443
      validate();
14444
    }
14445
 
14446
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14447
      oprot.writeStructBegin(STRUCT_DESC);
14448
 
14449
      if (this.isSetSuccess()) {
14450
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14451
        oprot.writeBool(this.success);
14452
        oprot.writeFieldEnd();
14453
      } else if (this.isSetCex()) {
14454
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14455
        this.cex.write(oprot);
14456
        oprot.writeFieldEnd();
14457
      }
14458
      oprot.writeFieldStop();
14459
      oprot.writeStructEnd();
14460
    }
14461
 
14462
    @Override
14463
    public String toString() {
14464
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
14465
      boolean first = true;
14466
 
14467
      sb.append("success:");
14468
      sb.append(this.success);
14469
      first = false;
14470
      if (!first) sb.append(", ");
14471
      sb.append("cex:");
14472
      if (this.cex == null) {
14473
        sb.append("null");
14474
      } else {
14475
        sb.append(this.cex);
14476
      }
14477
      first = false;
14478
      sb.append(")");
14479
      return sb.toString();
14480
    }
14481
 
14482
    public void validate() throws org.apache.thrift.TException {
14483
      // check for required fields
14484
    }
14485
 
14486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14487
      try {
14488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14489
      } catch (org.apache.thrift.TException te) {
14490
        throw new java.io.IOException(te);
14491
      }
14492
    }
14493
 
14494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14495
      try {
14496
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14497
      } catch (org.apache.thrift.TException te) {
14498
        throw new java.io.IOException(te);
14499
      }
14500
    }
14501
 
14502
  }
14503
 
14504
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
14505
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
14506
 
14507
    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);
14508
    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 14509
    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);
14510
    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);
14511
    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 14512
 
14513
    private long itemId; // required
14514
    private long warehouseId; // required
5967 rajveer 14515
    private long sourceId; // required
14516
    private long orderId; // required
5945 mandeep.dh 14517
    private double quantity; // required
14518
 
14519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14521
      ITEM_ID((short)1, "itemId"),
14522
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14523
      SOURCE_ID((short)3, "sourceId"),
14524
      ORDER_ID((short)4, "orderId"),
14525
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 14526
 
14527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14528
 
14529
      static {
14530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14531
          byName.put(field.getFieldName(), field);
14532
        }
14533
      }
14534
 
14535
      /**
14536
       * Find the _Fields constant that matches fieldId, or null if its not found.
14537
       */
14538
      public static _Fields findByThriftId(int fieldId) {
14539
        switch(fieldId) {
14540
          case 1: // ITEM_ID
14541
            return ITEM_ID;
14542
          case 2: // WAREHOUSE_ID
14543
            return WAREHOUSE_ID;
5967 rajveer 14544
          case 3: // SOURCE_ID
14545
            return SOURCE_ID;
14546
          case 4: // ORDER_ID
14547
            return ORDER_ID;
14548
          case 5: // QUANTITY
5945 mandeep.dh 14549
            return QUANTITY;
14550
          default:
14551
            return null;
14552
        }
14553
      }
14554
 
14555
      /**
14556
       * Find the _Fields constant that matches fieldId, throwing an exception
14557
       * if it is not found.
14558
       */
14559
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14560
        _Fields fields = findByThriftId(fieldId);
14561
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14562
        return fields;
14563
      }
14564
 
14565
      /**
14566
       * Find the _Fields constant that matches name, or null if its not found.
14567
       */
14568
      public static _Fields findByName(String name) {
14569
        return byName.get(name);
14570
      }
14571
 
14572
      private final short _thriftId;
14573
      private final String _fieldName;
14574
 
14575
      _Fields(short thriftId, String fieldName) {
14576
        _thriftId = thriftId;
14577
        _fieldName = fieldName;
14578
      }
14579
 
14580
      public short getThriftFieldId() {
14581
        return _thriftId;
14582
      }
14583
 
14584
      public String getFieldName() {
14585
        return _fieldName;
14586
      }
14587
    }
14588
 
14589
    // isset id assignments
14590
    private static final int __ITEMID_ISSET_ID = 0;
14591
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14592
    private static final int __SOURCEID_ISSET_ID = 2;
14593
    private static final int __ORDERID_ISSET_ID = 3;
14594
    private static final int __QUANTITY_ISSET_ID = 4;
14595
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 14596
 
14597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14598
    static {
14599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14600
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14602
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14604
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14606
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14608
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
14612
    }
14613
 
14614
    public reduceReservationCount_args() {
14615
    }
14616
 
14617
    public reduceReservationCount_args(
14618
      long itemId,
14619
      long warehouseId,
5967 rajveer 14620
      long sourceId,
14621
      long orderId,
5945 mandeep.dh 14622
      double quantity)
14623
    {
14624
      this();
14625
      this.itemId = itemId;
14626
      setItemIdIsSet(true);
14627
      this.warehouseId = warehouseId;
14628
      setWarehouseIdIsSet(true);
5967 rajveer 14629
      this.sourceId = sourceId;
14630
      setSourceIdIsSet(true);
14631
      this.orderId = orderId;
14632
      setOrderIdIsSet(true);
5945 mandeep.dh 14633
      this.quantity = quantity;
14634
      setQuantityIsSet(true);
14635
    }
14636
 
14637
    /**
14638
     * Performs a deep copy on <i>other</i>.
14639
     */
14640
    public reduceReservationCount_args(reduceReservationCount_args other) {
14641
      __isset_bit_vector.clear();
14642
      __isset_bit_vector.or(other.__isset_bit_vector);
14643
      this.itemId = other.itemId;
14644
      this.warehouseId = other.warehouseId;
5967 rajveer 14645
      this.sourceId = other.sourceId;
14646
      this.orderId = other.orderId;
5945 mandeep.dh 14647
      this.quantity = other.quantity;
14648
    }
14649
 
14650
    public reduceReservationCount_args deepCopy() {
14651
      return new reduceReservationCount_args(this);
14652
    }
14653
 
14654
    @Override
14655
    public void clear() {
14656
      setItemIdIsSet(false);
14657
      this.itemId = 0;
14658
      setWarehouseIdIsSet(false);
14659
      this.warehouseId = 0;
5967 rajveer 14660
      setSourceIdIsSet(false);
14661
      this.sourceId = 0;
14662
      setOrderIdIsSet(false);
14663
      this.orderId = 0;
5945 mandeep.dh 14664
      setQuantityIsSet(false);
14665
      this.quantity = 0.0;
14666
    }
14667
 
14668
    public long getItemId() {
14669
      return this.itemId;
14670
    }
14671
 
14672
    public void setItemId(long itemId) {
14673
      this.itemId = itemId;
14674
      setItemIdIsSet(true);
14675
    }
14676
 
14677
    public void unsetItemId() {
14678
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14679
    }
14680
 
14681
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14682
    public boolean isSetItemId() {
14683
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14684
    }
14685
 
14686
    public void setItemIdIsSet(boolean value) {
14687
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14688
    }
14689
 
14690
    public long getWarehouseId() {
14691
      return this.warehouseId;
14692
    }
14693
 
14694
    public void setWarehouseId(long warehouseId) {
14695
      this.warehouseId = warehouseId;
14696
      setWarehouseIdIsSet(true);
14697
    }
14698
 
14699
    public void unsetWarehouseId() {
14700
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14701
    }
14702
 
14703
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14704
    public boolean isSetWarehouseId() {
14705
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14706
    }
14707
 
14708
    public void setWarehouseIdIsSet(boolean value) {
14709
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14710
    }
14711
 
5967 rajveer 14712
    public long getSourceId() {
14713
      return this.sourceId;
14714
    }
14715
 
14716
    public void setSourceId(long sourceId) {
14717
      this.sourceId = sourceId;
14718
      setSourceIdIsSet(true);
14719
    }
14720
 
14721
    public void unsetSourceId() {
14722
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14723
    }
14724
 
14725
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14726
    public boolean isSetSourceId() {
14727
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14728
    }
14729
 
14730
    public void setSourceIdIsSet(boolean value) {
14731
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14732
    }
14733
 
14734
    public long getOrderId() {
14735
      return this.orderId;
14736
    }
14737
 
14738
    public void setOrderId(long orderId) {
14739
      this.orderId = orderId;
14740
      setOrderIdIsSet(true);
14741
    }
14742
 
14743
    public void unsetOrderId() {
14744
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14745
    }
14746
 
14747
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14748
    public boolean isSetOrderId() {
14749
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14750
    }
14751
 
14752
    public void setOrderIdIsSet(boolean value) {
14753
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14754
    }
14755
 
5945 mandeep.dh 14756
    public double getQuantity() {
14757
      return this.quantity;
14758
    }
14759
 
14760
    public void setQuantity(double quantity) {
14761
      this.quantity = quantity;
14762
      setQuantityIsSet(true);
14763
    }
14764
 
14765
    public void unsetQuantity() {
14766
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14767
    }
14768
 
14769
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14770
    public boolean isSetQuantity() {
14771
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14772
    }
14773
 
14774
    public void setQuantityIsSet(boolean value) {
14775
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14776
    }
14777
 
14778
    public void setFieldValue(_Fields field, Object value) {
14779
      switch (field) {
14780
      case ITEM_ID:
14781
        if (value == null) {
14782
          unsetItemId();
14783
        } else {
14784
          setItemId((Long)value);
14785
        }
14786
        break;
14787
 
14788
      case WAREHOUSE_ID:
14789
        if (value == null) {
14790
          unsetWarehouseId();
14791
        } else {
14792
          setWarehouseId((Long)value);
14793
        }
14794
        break;
14795
 
5967 rajveer 14796
      case SOURCE_ID:
14797
        if (value == null) {
14798
          unsetSourceId();
14799
        } else {
14800
          setSourceId((Long)value);
14801
        }
14802
        break;
14803
 
14804
      case ORDER_ID:
14805
        if (value == null) {
14806
          unsetOrderId();
14807
        } else {
14808
          setOrderId((Long)value);
14809
        }
14810
        break;
14811
 
5945 mandeep.dh 14812
      case QUANTITY:
14813
        if (value == null) {
14814
          unsetQuantity();
14815
        } else {
14816
          setQuantity((Double)value);
14817
        }
14818
        break;
14819
 
14820
      }
14821
    }
14822
 
14823
    public Object getFieldValue(_Fields field) {
14824
      switch (field) {
14825
      case ITEM_ID:
14826
        return Long.valueOf(getItemId());
14827
 
14828
      case WAREHOUSE_ID:
14829
        return Long.valueOf(getWarehouseId());
14830
 
5967 rajveer 14831
      case SOURCE_ID:
14832
        return Long.valueOf(getSourceId());
14833
 
14834
      case ORDER_ID:
14835
        return Long.valueOf(getOrderId());
14836
 
5945 mandeep.dh 14837
      case QUANTITY:
14838
        return Double.valueOf(getQuantity());
14839
 
14840
      }
14841
      throw new IllegalStateException();
14842
    }
14843
 
14844
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14845
    public boolean isSet(_Fields field) {
14846
      if (field == null) {
14847
        throw new IllegalArgumentException();
14848
      }
14849
 
14850
      switch (field) {
14851
      case ITEM_ID:
14852
        return isSetItemId();
14853
      case WAREHOUSE_ID:
14854
        return isSetWarehouseId();
5967 rajveer 14855
      case SOURCE_ID:
14856
        return isSetSourceId();
14857
      case ORDER_ID:
14858
        return isSetOrderId();
5945 mandeep.dh 14859
      case QUANTITY:
14860
        return isSetQuantity();
14861
      }
14862
      throw new IllegalStateException();
14863
    }
14864
 
14865
    @Override
14866
    public boolean equals(Object that) {
14867
      if (that == null)
14868
        return false;
14869
      if (that instanceof reduceReservationCount_args)
14870
        return this.equals((reduceReservationCount_args)that);
14871
      return false;
14872
    }
14873
 
14874
    public boolean equals(reduceReservationCount_args that) {
14875
      if (that == null)
14876
        return false;
14877
 
14878
      boolean this_present_itemId = true;
14879
      boolean that_present_itemId = true;
14880
      if (this_present_itemId || that_present_itemId) {
14881
        if (!(this_present_itemId && that_present_itemId))
14882
          return false;
14883
        if (this.itemId != that.itemId)
14884
          return false;
14885
      }
14886
 
14887
      boolean this_present_warehouseId = true;
14888
      boolean that_present_warehouseId = true;
14889
      if (this_present_warehouseId || that_present_warehouseId) {
14890
        if (!(this_present_warehouseId && that_present_warehouseId))
14891
          return false;
14892
        if (this.warehouseId != that.warehouseId)
14893
          return false;
14894
      }
14895
 
5967 rajveer 14896
      boolean this_present_sourceId = true;
14897
      boolean that_present_sourceId = true;
14898
      if (this_present_sourceId || that_present_sourceId) {
14899
        if (!(this_present_sourceId && that_present_sourceId))
14900
          return false;
14901
        if (this.sourceId != that.sourceId)
14902
          return false;
14903
      }
14904
 
14905
      boolean this_present_orderId = true;
14906
      boolean that_present_orderId = true;
14907
      if (this_present_orderId || that_present_orderId) {
14908
        if (!(this_present_orderId && that_present_orderId))
14909
          return false;
14910
        if (this.orderId != that.orderId)
14911
          return false;
14912
      }
14913
 
5945 mandeep.dh 14914
      boolean this_present_quantity = true;
14915
      boolean that_present_quantity = true;
14916
      if (this_present_quantity || that_present_quantity) {
14917
        if (!(this_present_quantity && that_present_quantity))
14918
          return false;
14919
        if (this.quantity != that.quantity)
14920
          return false;
14921
      }
14922
 
14923
      return true;
14924
    }
14925
 
14926
    @Override
14927
    public int hashCode() {
14928
      return 0;
14929
    }
14930
 
14931
    public int compareTo(reduceReservationCount_args other) {
14932
      if (!getClass().equals(other.getClass())) {
14933
        return getClass().getName().compareTo(other.getClass().getName());
14934
      }
14935
 
14936
      int lastComparison = 0;
14937
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
14938
 
14939
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14940
      if (lastComparison != 0) {
14941
        return lastComparison;
14942
      }
14943
      if (isSetItemId()) {
14944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14945
        if (lastComparison != 0) {
14946
          return lastComparison;
14947
        }
14948
      }
14949
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14950
      if (lastComparison != 0) {
14951
        return lastComparison;
14952
      }
14953
      if (isSetWarehouseId()) {
14954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14955
        if (lastComparison != 0) {
14956
          return lastComparison;
14957
        }
14958
      }
5967 rajveer 14959
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14960
      if (lastComparison != 0) {
14961
        return lastComparison;
14962
      }
14963
      if (isSetSourceId()) {
14964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14965
        if (lastComparison != 0) {
14966
          return lastComparison;
14967
        }
14968
      }
14969
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14970
      if (lastComparison != 0) {
14971
        return lastComparison;
14972
      }
14973
      if (isSetOrderId()) {
14974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14975
        if (lastComparison != 0) {
14976
          return lastComparison;
14977
        }
14978
      }
5945 mandeep.dh 14979
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14980
      if (lastComparison != 0) {
14981
        return lastComparison;
14982
      }
14983
      if (isSetQuantity()) {
14984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14985
        if (lastComparison != 0) {
14986
          return lastComparison;
14987
        }
14988
      }
14989
      return 0;
14990
    }
14991
 
14992
    public _Fields fieldForId(int fieldId) {
14993
      return _Fields.findByThriftId(fieldId);
14994
    }
14995
 
14996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14997
      org.apache.thrift.protocol.TField field;
14998
      iprot.readStructBegin();
14999
      while (true)
15000
      {
15001
        field = iprot.readFieldBegin();
15002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15003
          break;
15004
        }
15005
        switch (field.id) {
15006
          case 1: // ITEM_ID
15007
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15008
              this.itemId = iprot.readI64();
15009
              setItemIdIsSet(true);
15010
            } else { 
15011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15012
            }
15013
            break;
15014
          case 2: // WAREHOUSE_ID
15015
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15016
              this.warehouseId = iprot.readI64();
15017
              setWarehouseIdIsSet(true);
15018
            } else { 
15019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15020
            }
15021
            break;
5967 rajveer 15022
          case 3: // SOURCE_ID
15023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15024
              this.sourceId = iprot.readI64();
15025
              setSourceIdIsSet(true);
15026
            } else { 
15027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15028
            }
15029
            break;
15030
          case 4: // ORDER_ID
15031
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15032
              this.orderId = iprot.readI64();
15033
              setOrderIdIsSet(true);
15034
            } else { 
15035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15036
            }
15037
            break;
15038
          case 5: // QUANTITY
5945 mandeep.dh 15039
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15040
              this.quantity = iprot.readDouble();
15041
              setQuantityIsSet(true);
15042
            } else { 
15043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15044
            }
15045
            break;
15046
          default:
15047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15048
        }
15049
        iprot.readFieldEnd();
15050
      }
15051
      iprot.readStructEnd();
15052
      validate();
15053
    }
15054
 
15055
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15056
      validate();
15057
 
15058
      oprot.writeStructBegin(STRUCT_DESC);
15059
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15060
      oprot.writeI64(this.itemId);
15061
      oprot.writeFieldEnd();
15062
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15063
      oprot.writeI64(this.warehouseId);
15064
      oprot.writeFieldEnd();
5967 rajveer 15065
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15066
      oprot.writeI64(this.sourceId);
15067
      oprot.writeFieldEnd();
15068
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15069
      oprot.writeI64(this.orderId);
15070
      oprot.writeFieldEnd();
5945 mandeep.dh 15071
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
15072
      oprot.writeDouble(this.quantity);
15073
      oprot.writeFieldEnd();
15074
      oprot.writeFieldStop();
15075
      oprot.writeStructEnd();
15076
    }
15077
 
15078
    @Override
15079
    public String toString() {
15080
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
15081
      boolean first = true;
15082
 
15083
      sb.append("itemId:");
15084
      sb.append(this.itemId);
15085
      first = false;
15086
      if (!first) sb.append(", ");
15087
      sb.append("warehouseId:");
15088
      sb.append(this.warehouseId);
15089
      first = false;
15090
      if (!first) sb.append(", ");
5967 rajveer 15091
      sb.append("sourceId:");
15092
      sb.append(this.sourceId);
15093
      first = false;
15094
      if (!first) sb.append(", ");
15095
      sb.append("orderId:");
15096
      sb.append(this.orderId);
15097
      first = false;
15098
      if (!first) sb.append(", ");
5945 mandeep.dh 15099
      sb.append("quantity:");
15100
      sb.append(this.quantity);
15101
      first = false;
15102
      sb.append(")");
15103
      return sb.toString();
15104
    }
15105
 
15106
    public void validate() throws org.apache.thrift.TException {
15107
      // check for required fields
15108
    }
15109
 
15110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15111
      try {
15112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15113
      } catch (org.apache.thrift.TException te) {
15114
        throw new java.io.IOException(te);
15115
      }
15116
    }
15117
 
15118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15119
      try {
15120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15121
      } catch (org.apache.thrift.TException te) {
15122
        throw new java.io.IOException(te);
15123
      }
15124
    }
15125
 
15126
  }
15127
 
15128
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
15129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
15130
 
15131
    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);
15132
    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);
15133
 
15134
    private boolean success; // required
15135
    private InventoryServiceException cex; // required
15136
 
15137
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15138
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15139
      SUCCESS((short)0, "success"),
15140
      CEX((short)1, "cex");
15141
 
15142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15143
 
15144
      static {
15145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15146
          byName.put(field.getFieldName(), field);
15147
        }
15148
      }
15149
 
15150
      /**
15151
       * Find the _Fields constant that matches fieldId, or null if its not found.
15152
       */
15153
      public static _Fields findByThriftId(int fieldId) {
15154
        switch(fieldId) {
15155
          case 0: // SUCCESS
15156
            return SUCCESS;
15157
          case 1: // CEX
15158
            return CEX;
15159
          default:
15160
            return null;
15161
        }
15162
      }
15163
 
15164
      /**
15165
       * Find the _Fields constant that matches fieldId, throwing an exception
15166
       * if it is not found.
15167
       */
15168
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15169
        _Fields fields = findByThriftId(fieldId);
15170
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15171
        return fields;
15172
      }
15173
 
15174
      /**
15175
       * Find the _Fields constant that matches name, or null if its not found.
15176
       */
15177
      public static _Fields findByName(String name) {
15178
        return byName.get(name);
15179
      }
15180
 
15181
      private final short _thriftId;
15182
      private final String _fieldName;
15183
 
15184
      _Fields(short thriftId, String fieldName) {
15185
        _thriftId = thriftId;
15186
        _fieldName = fieldName;
15187
      }
15188
 
15189
      public short getThriftFieldId() {
15190
        return _thriftId;
15191
      }
15192
 
15193
      public String getFieldName() {
15194
        return _fieldName;
15195
      }
15196
    }
15197
 
15198
    // isset id assignments
15199
    private static final int __SUCCESS_ISSET_ID = 0;
15200
    private BitSet __isset_bit_vector = new BitSet(1);
15201
 
15202
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15203
    static {
15204
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15205
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15207
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
15211
    }
15212
 
15213
    public reduceReservationCount_result() {
15214
    }
15215
 
15216
    public reduceReservationCount_result(
15217
      boolean success,
15218
      InventoryServiceException cex)
15219
    {
15220
      this();
15221
      this.success = success;
15222
      setSuccessIsSet(true);
15223
      this.cex = cex;
15224
    }
15225
 
15226
    /**
15227
     * Performs a deep copy on <i>other</i>.
15228
     */
15229
    public reduceReservationCount_result(reduceReservationCount_result other) {
15230
      __isset_bit_vector.clear();
15231
      __isset_bit_vector.or(other.__isset_bit_vector);
15232
      this.success = other.success;
15233
      if (other.isSetCex()) {
15234
        this.cex = new InventoryServiceException(other.cex);
15235
      }
15236
    }
15237
 
15238
    public reduceReservationCount_result deepCopy() {
15239
      return new reduceReservationCount_result(this);
15240
    }
15241
 
15242
    @Override
15243
    public void clear() {
15244
      setSuccessIsSet(false);
15245
      this.success = false;
15246
      this.cex = null;
15247
    }
15248
 
15249
    public boolean isSuccess() {
15250
      return this.success;
15251
    }
15252
 
15253
    public void setSuccess(boolean success) {
15254
      this.success = success;
15255
      setSuccessIsSet(true);
15256
    }
15257
 
15258
    public void unsetSuccess() {
15259
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15260
    }
15261
 
15262
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15263
    public boolean isSetSuccess() {
15264
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15265
    }
15266
 
15267
    public void setSuccessIsSet(boolean value) {
15268
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15269
    }
15270
 
15271
    public InventoryServiceException getCex() {
15272
      return this.cex;
15273
    }
15274
 
15275
    public void setCex(InventoryServiceException cex) {
15276
      this.cex = cex;
15277
    }
15278
 
15279
    public void unsetCex() {
15280
      this.cex = null;
15281
    }
15282
 
15283
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15284
    public boolean isSetCex() {
15285
      return this.cex != null;
15286
    }
15287
 
15288
    public void setCexIsSet(boolean value) {
15289
      if (!value) {
15290
        this.cex = null;
15291
      }
15292
    }
15293
 
15294
    public void setFieldValue(_Fields field, Object value) {
15295
      switch (field) {
15296
      case SUCCESS:
15297
        if (value == null) {
15298
          unsetSuccess();
15299
        } else {
15300
          setSuccess((Boolean)value);
15301
        }
15302
        break;
15303
 
15304
      case CEX:
15305
        if (value == null) {
15306
          unsetCex();
15307
        } else {
15308
          setCex((InventoryServiceException)value);
15309
        }
15310
        break;
15311
 
15312
      }
15313
    }
15314
 
15315
    public Object getFieldValue(_Fields field) {
15316
      switch (field) {
15317
      case SUCCESS:
15318
        return Boolean.valueOf(isSuccess());
15319
 
15320
      case CEX:
15321
        return getCex();
15322
 
15323
      }
15324
      throw new IllegalStateException();
15325
    }
15326
 
15327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15328
    public boolean isSet(_Fields field) {
15329
      if (field == null) {
15330
        throw new IllegalArgumentException();
15331
      }
15332
 
15333
      switch (field) {
15334
      case SUCCESS:
15335
        return isSetSuccess();
15336
      case CEX:
15337
        return isSetCex();
15338
      }
15339
      throw new IllegalStateException();
15340
    }
15341
 
15342
    @Override
15343
    public boolean equals(Object that) {
15344
      if (that == null)
15345
        return false;
15346
      if (that instanceof reduceReservationCount_result)
15347
        return this.equals((reduceReservationCount_result)that);
15348
      return false;
15349
    }
15350
 
15351
    public boolean equals(reduceReservationCount_result that) {
15352
      if (that == null)
15353
        return false;
15354
 
15355
      boolean this_present_success = true;
15356
      boolean that_present_success = true;
15357
      if (this_present_success || that_present_success) {
15358
        if (!(this_present_success && that_present_success))
15359
          return false;
15360
        if (this.success != that.success)
15361
          return false;
15362
      }
15363
 
15364
      boolean this_present_cex = true && this.isSetCex();
15365
      boolean that_present_cex = true && that.isSetCex();
15366
      if (this_present_cex || that_present_cex) {
15367
        if (!(this_present_cex && that_present_cex))
15368
          return false;
15369
        if (!this.cex.equals(that.cex))
15370
          return false;
15371
      }
15372
 
15373
      return true;
15374
    }
15375
 
15376
    @Override
15377
    public int hashCode() {
15378
      return 0;
15379
    }
15380
 
15381
    public int compareTo(reduceReservationCount_result other) {
15382
      if (!getClass().equals(other.getClass())) {
15383
        return getClass().getName().compareTo(other.getClass().getName());
15384
      }
15385
 
15386
      int lastComparison = 0;
15387
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
15388
 
15389
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15390
      if (lastComparison != 0) {
15391
        return lastComparison;
15392
      }
15393
      if (isSetSuccess()) {
15394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15395
        if (lastComparison != 0) {
15396
          return lastComparison;
15397
        }
15398
      }
15399
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15400
      if (lastComparison != 0) {
15401
        return lastComparison;
15402
      }
15403
      if (isSetCex()) {
15404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15405
        if (lastComparison != 0) {
15406
          return lastComparison;
15407
        }
15408
      }
15409
      return 0;
15410
    }
15411
 
15412
    public _Fields fieldForId(int fieldId) {
15413
      return _Fields.findByThriftId(fieldId);
15414
    }
15415
 
15416
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15417
      org.apache.thrift.protocol.TField field;
15418
      iprot.readStructBegin();
15419
      while (true)
15420
      {
15421
        field = iprot.readFieldBegin();
15422
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15423
          break;
15424
        }
15425
        switch (field.id) {
15426
          case 0: // SUCCESS
15427
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15428
              this.success = iprot.readBool();
15429
              setSuccessIsSet(true);
15430
            } else { 
15431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15432
            }
15433
            break;
15434
          case 1: // CEX
15435
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15436
              this.cex = new InventoryServiceException();
15437
              this.cex.read(iprot);
15438
            } else { 
15439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15440
            }
15441
            break;
15442
          default:
15443
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15444
        }
15445
        iprot.readFieldEnd();
15446
      }
15447
      iprot.readStructEnd();
15448
      validate();
15449
    }
15450
 
15451
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15452
      oprot.writeStructBegin(STRUCT_DESC);
15453
 
15454
      if (this.isSetSuccess()) {
15455
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15456
        oprot.writeBool(this.success);
15457
        oprot.writeFieldEnd();
15458
      } else if (this.isSetCex()) {
15459
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15460
        this.cex.write(oprot);
15461
        oprot.writeFieldEnd();
15462
      }
15463
      oprot.writeFieldStop();
15464
      oprot.writeStructEnd();
15465
    }
15466
 
15467
    @Override
15468
    public String toString() {
15469
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
15470
      boolean first = true;
15471
 
15472
      sb.append("success:");
15473
      sb.append(this.success);
15474
      first = false;
15475
      if (!first) sb.append(", ");
15476
      sb.append("cex:");
15477
      if (this.cex == null) {
15478
        sb.append("null");
15479
      } else {
15480
        sb.append(this.cex);
15481
      }
15482
      first = false;
15483
      sb.append(")");
15484
      return sb.toString();
15485
    }
15486
 
15487
    public void validate() throws org.apache.thrift.TException {
15488
      // check for required fields
15489
    }
15490
 
15491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15492
      try {
15493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15494
      } catch (org.apache.thrift.TException te) {
15495
        throw new java.io.IOException(te);
15496
      }
15497
    }
15498
 
15499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15500
      try {
15501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15502
      } catch (org.apache.thrift.TException te) {
15503
        throw new java.io.IOException(te);
15504
      }
15505
    }
15506
 
15507
  }
15508
 
15509
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
15511
 
15512
    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);
15513
    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);
15514
 
15515
    private long itemId; // required
15516
    private long vendorId; // required
15517
 
15518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15520
      ITEM_ID((short)1, "itemId"),
15521
      VENDOR_ID((short)2, "vendorId");
15522
 
15523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15524
 
15525
      static {
15526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15527
          byName.put(field.getFieldName(), field);
15528
        }
15529
      }
15530
 
15531
      /**
15532
       * Find the _Fields constant that matches fieldId, or null if its not found.
15533
       */
15534
      public static _Fields findByThriftId(int fieldId) {
15535
        switch(fieldId) {
15536
          case 1: // ITEM_ID
15537
            return ITEM_ID;
15538
          case 2: // VENDOR_ID
15539
            return VENDOR_ID;
15540
          default:
15541
            return null;
15542
        }
15543
      }
15544
 
15545
      /**
15546
       * Find the _Fields constant that matches fieldId, throwing an exception
15547
       * if it is not found.
15548
       */
15549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15550
        _Fields fields = findByThriftId(fieldId);
15551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15552
        return fields;
15553
      }
15554
 
15555
      /**
15556
       * Find the _Fields constant that matches name, or null if its not found.
15557
       */
15558
      public static _Fields findByName(String name) {
15559
        return byName.get(name);
15560
      }
15561
 
15562
      private final short _thriftId;
15563
      private final String _fieldName;
15564
 
15565
      _Fields(short thriftId, String fieldName) {
15566
        _thriftId = thriftId;
15567
        _fieldName = fieldName;
15568
      }
15569
 
15570
      public short getThriftFieldId() {
15571
        return _thriftId;
15572
      }
15573
 
15574
      public String getFieldName() {
15575
        return _fieldName;
15576
      }
15577
    }
15578
 
15579
    // isset id assignments
15580
    private static final int __ITEMID_ISSET_ID = 0;
15581
    private static final int __VENDORID_ISSET_ID = 1;
15582
    private BitSet __isset_bit_vector = new BitSet(2);
15583
 
15584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15585
    static {
15586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15587
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15589
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
15593
    }
15594
 
15595
    public getItemPricing_args() {
15596
    }
15597
 
15598
    public getItemPricing_args(
15599
      long itemId,
15600
      long vendorId)
15601
    {
15602
      this();
15603
      this.itemId = itemId;
15604
      setItemIdIsSet(true);
15605
      this.vendorId = vendorId;
15606
      setVendorIdIsSet(true);
15607
    }
15608
 
15609
    /**
15610
     * Performs a deep copy on <i>other</i>.
15611
     */
15612
    public getItemPricing_args(getItemPricing_args other) {
15613
      __isset_bit_vector.clear();
15614
      __isset_bit_vector.or(other.__isset_bit_vector);
15615
      this.itemId = other.itemId;
15616
      this.vendorId = other.vendorId;
15617
    }
15618
 
15619
    public getItemPricing_args deepCopy() {
15620
      return new getItemPricing_args(this);
15621
    }
15622
 
15623
    @Override
15624
    public void clear() {
15625
      setItemIdIsSet(false);
15626
      this.itemId = 0;
15627
      setVendorIdIsSet(false);
15628
      this.vendorId = 0;
15629
    }
15630
 
15631
    public long getItemId() {
15632
      return this.itemId;
15633
    }
15634
 
15635
    public void setItemId(long itemId) {
15636
      this.itemId = itemId;
15637
      setItemIdIsSet(true);
15638
    }
15639
 
15640
    public void unsetItemId() {
15641
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15642
    }
15643
 
15644
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15645
    public boolean isSetItemId() {
15646
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15647
    }
15648
 
15649
    public void setItemIdIsSet(boolean value) {
15650
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15651
    }
15652
 
15653
    public long getVendorId() {
15654
      return this.vendorId;
15655
    }
15656
 
15657
    public void setVendorId(long vendorId) {
15658
      this.vendorId = vendorId;
15659
      setVendorIdIsSet(true);
15660
    }
15661
 
15662
    public void unsetVendorId() {
15663
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
15664
    }
15665
 
15666
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
15667
    public boolean isSetVendorId() {
15668
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
15669
    }
15670
 
15671
    public void setVendorIdIsSet(boolean value) {
15672
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
15673
    }
15674
 
15675
    public void setFieldValue(_Fields field, Object value) {
15676
      switch (field) {
15677
      case ITEM_ID:
15678
        if (value == null) {
15679
          unsetItemId();
15680
        } else {
15681
          setItemId((Long)value);
15682
        }
15683
        break;
15684
 
15685
      case VENDOR_ID:
15686
        if (value == null) {
15687
          unsetVendorId();
15688
        } else {
15689
          setVendorId((Long)value);
15690
        }
15691
        break;
15692
 
15693
      }
15694
    }
15695
 
15696
    public Object getFieldValue(_Fields field) {
15697
      switch (field) {
15698
      case ITEM_ID:
15699
        return Long.valueOf(getItemId());
15700
 
15701
      case VENDOR_ID:
15702
        return Long.valueOf(getVendorId());
15703
 
15704
      }
15705
      throw new IllegalStateException();
15706
    }
15707
 
15708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15709
    public boolean isSet(_Fields field) {
15710
      if (field == null) {
15711
        throw new IllegalArgumentException();
15712
      }
15713
 
15714
      switch (field) {
15715
      case ITEM_ID:
15716
        return isSetItemId();
15717
      case VENDOR_ID:
15718
        return isSetVendorId();
15719
      }
15720
      throw new IllegalStateException();
15721
    }
15722
 
15723
    @Override
15724
    public boolean equals(Object that) {
15725
      if (that == null)
15726
        return false;
15727
      if (that instanceof getItemPricing_args)
15728
        return this.equals((getItemPricing_args)that);
15729
      return false;
15730
    }
15731
 
15732
    public boolean equals(getItemPricing_args that) {
15733
      if (that == null)
15734
        return false;
15735
 
15736
      boolean this_present_itemId = true;
15737
      boolean that_present_itemId = true;
15738
      if (this_present_itemId || that_present_itemId) {
15739
        if (!(this_present_itemId && that_present_itemId))
15740
          return false;
15741
        if (this.itemId != that.itemId)
15742
          return false;
15743
      }
15744
 
15745
      boolean this_present_vendorId = true;
15746
      boolean that_present_vendorId = true;
15747
      if (this_present_vendorId || that_present_vendorId) {
15748
        if (!(this_present_vendorId && that_present_vendorId))
15749
          return false;
15750
        if (this.vendorId != that.vendorId)
15751
          return false;
15752
      }
15753
 
15754
      return true;
15755
    }
15756
 
15757
    @Override
15758
    public int hashCode() {
15759
      return 0;
15760
    }
15761
 
15762
    public int compareTo(getItemPricing_args other) {
15763
      if (!getClass().equals(other.getClass())) {
15764
        return getClass().getName().compareTo(other.getClass().getName());
15765
      }
15766
 
15767
      int lastComparison = 0;
15768
      getItemPricing_args typedOther = (getItemPricing_args)other;
15769
 
15770
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15771
      if (lastComparison != 0) {
15772
        return lastComparison;
15773
      }
15774
      if (isSetItemId()) {
15775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15776
        if (lastComparison != 0) {
15777
          return lastComparison;
15778
        }
15779
      }
15780
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
15781
      if (lastComparison != 0) {
15782
        return lastComparison;
15783
      }
15784
      if (isSetVendorId()) {
15785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
15786
        if (lastComparison != 0) {
15787
          return lastComparison;
15788
        }
15789
      }
15790
      return 0;
15791
    }
15792
 
15793
    public _Fields fieldForId(int fieldId) {
15794
      return _Fields.findByThriftId(fieldId);
15795
    }
15796
 
15797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15798
      org.apache.thrift.protocol.TField field;
15799
      iprot.readStructBegin();
15800
      while (true)
15801
      {
15802
        field = iprot.readFieldBegin();
15803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15804
          break;
15805
        }
15806
        switch (field.id) {
15807
          case 1: // ITEM_ID
15808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15809
              this.itemId = iprot.readI64();
15810
              setItemIdIsSet(true);
15811
            } else { 
15812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15813
            }
15814
            break;
15815
          case 2: // VENDOR_ID
15816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15817
              this.vendorId = iprot.readI64();
15818
              setVendorIdIsSet(true);
15819
            } else { 
15820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15821
            }
15822
            break;
15823
          default:
15824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15825
        }
15826
        iprot.readFieldEnd();
15827
      }
15828
      iprot.readStructEnd();
15829
      validate();
15830
    }
15831
 
15832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15833
      validate();
15834
 
15835
      oprot.writeStructBegin(STRUCT_DESC);
15836
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15837
      oprot.writeI64(this.itemId);
15838
      oprot.writeFieldEnd();
15839
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
15840
      oprot.writeI64(this.vendorId);
15841
      oprot.writeFieldEnd();
15842
      oprot.writeFieldStop();
15843
      oprot.writeStructEnd();
15844
    }
15845
 
15846
    @Override
15847
    public String toString() {
15848
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
15849
      boolean first = true;
15850
 
15851
      sb.append("itemId:");
15852
      sb.append(this.itemId);
15853
      first = false;
15854
      if (!first) sb.append(", ");
15855
      sb.append("vendorId:");
15856
      sb.append(this.vendorId);
15857
      first = false;
15858
      sb.append(")");
15859
      return sb.toString();
15860
    }
15861
 
15862
    public void validate() throws org.apache.thrift.TException {
15863
      // check for required fields
15864
    }
15865
 
15866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15867
      try {
15868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15869
      } catch (org.apache.thrift.TException te) {
15870
        throw new java.io.IOException(te);
15871
      }
15872
    }
15873
 
15874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15875
      try {
15876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15877
      } catch (org.apache.thrift.TException te) {
15878
        throw new java.io.IOException(te);
15879
      }
15880
    }
15881
 
15882
  }
15883
 
15884
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
15885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
15886
 
15887
    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);
15888
    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);
15889
 
15890
    private VendorItemPricing success; // required
15891
    private InventoryServiceException cex; // required
15892
 
15893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15895
      SUCCESS((short)0, "success"),
15896
      CEX((short)1, "cex");
15897
 
15898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15899
 
15900
      static {
15901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15902
          byName.put(field.getFieldName(), field);
15903
        }
15904
      }
15905
 
15906
      /**
15907
       * Find the _Fields constant that matches fieldId, or null if its not found.
15908
       */
15909
      public static _Fields findByThriftId(int fieldId) {
15910
        switch(fieldId) {
15911
          case 0: // SUCCESS
15912
            return SUCCESS;
15913
          case 1: // CEX
15914
            return CEX;
15915
          default:
15916
            return null;
15917
        }
15918
      }
15919
 
15920
      /**
15921
       * Find the _Fields constant that matches fieldId, throwing an exception
15922
       * if it is not found.
15923
       */
15924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15925
        _Fields fields = findByThriftId(fieldId);
15926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15927
        return fields;
15928
      }
15929
 
15930
      /**
15931
       * Find the _Fields constant that matches name, or null if its not found.
15932
       */
15933
      public static _Fields findByName(String name) {
15934
        return byName.get(name);
15935
      }
15936
 
15937
      private final short _thriftId;
15938
      private final String _fieldName;
15939
 
15940
      _Fields(short thriftId, String fieldName) {
15941
        _thriftId = thriftId;
15942
        _fieldName = fieldName;
15943
      }
15944
 
15945
      public short getThriftFieldId() {
15946
        return _thriftId;
15947
      }
15948
 
15949
      public String getFieldName() {
15950
        return _fieldName;
15951
      }
15952
    }
15953
 
15954
    // isset id assignments
15955
 
15956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15957
    static {
15958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15959
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15960
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
15961
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
15965
    }
15966
 
15967
    public getItemPricing_result() {
15968
    }
15969
 
15970
    public getItemPricing_result(
15971
      VendorItemPricing success,
15972
      InventoryServiceException cex)
15973
    {
15974
      this();
15975
      this.success = success;
15976
      this.cex = cex;
15977
    }
15978
 
15979
    /**
15980
     * Performs a deep copy on <i>other</i>.
15981
     */
15982
    public getItemPricing_result(getItemPricing_result other) {
15983
      if (other.isSetSuccess()) {
15984
        this.success = new VendorItemPricing(other.success);
15985
      }
15986
      if (other.isSetCex()) {
15987
        this.cex = new InventoryServiceException(other.cex);
15988
      }
15989
    }
15990
 
15991
    public getItemPricing_result deepCopy() {
15992
      return new getItemPricing_result(this);
15993
    }
15994
 
15995
    @Override
15996
    public void clear() {
15997
      this.success = null;
15998
      this.cex = null;
15999
    }
16000
 
16001
    public VendorItemPricing getSuccess() {
16002
      return this.success;
16003
    }
16004
 
16005
    public void setSuccess(VendorItemPricing success) {
16006
      this.success = success;
16007
    }
16008
 
16009
    public void unsetSuccess() {
16010
      this.success = null;
16011
    }
16012
 
16013
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16014
    public boolean isSetSuccess() {
16015
      return this.success != null;
16016
    }
16017
 
16018
    public void setSuccessIsSet(boolean value) {
16019
      if (!value) {
16020
        this.success = null;
16021
      }
16022
    }
16023
 
16024
    public InventoryServiceException getCex() {
16025
      return this.cex;
16026
    }
16027
 
16028
    public void setCex(InventoryServiceException cex) {
16029
      this.cex = cex;
16030
    }
16031
 
16032
    public void unsetCex() {
16033
      this.cex = null;
16034
    }
16035
 
16036
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16037
    public boolean isSetCex() {
16038
      return this.cex != null;
16039
    }
16040
 
16041
    public void setCexIsSet(boolean value) {
16042
      if (!value) {
16043
        this.cex = null;
16044
      }
16045
    }
16046
 
16047
    public void setFieldValue(_Fields field, Object value) {
16048
      switch (field) {
16049
      case SUCCESS:
16050
        if (value == null) {
16051
          unsetSuccess();
16052
        } else {
16053
          setSuccess((VendorItemPricing)value);
16054
        }
16055
        break;
16056
 
16057
      case CEX:
16058
        if (value == null) {
16059
          unsetCex();
16060
        } else {
16061
          setCex((InventoryServiceException)value);
16062
        }
16063
        break;
16064
 
16065
      }
16066
    }
16067
 
16068
    public Object getFieldValue(_Fields field) {
16069
      switch (field) {
16070
      case SUCCESS:
16071
        return getSuccess();
16072
 
16073
      case CEX:
16074
        return getCex();
16075
 
16076
      }
16077
      throw new IllegalStateException();
16078
    }
16079
 
16080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16081
    public boolean isSet(_Fields field) {
16082
      if (field == null) {
16083
        throw new IllegalArgumentException();
16084
      }
16085
 
16086
      switch (field) {
16087
      case SUCCESS:
16088
        return isSetSuccess();
16089
      case CEX:
16090
        return isSetCex();
16091
      }
16092
      throw new IllegalStateException();
16093
    }
16094
 
16095
    @Override
16096
    public boolean equals(Object that) {
16097
      if (that == null)
16098
        return false;
16099
      if (that instanceof getItemPricing_result)
16100
        return this.equals((getItemPricing_result)that);
16101
      return false;
16102
    }
16103
 
16104
    public boolean equals(getItemPricing_result that) {
16105
      if (that == null)
16106
        return false;
16107
 
16108
      boolean this_present_success = true && this.isSetSuccess();
16109
      boolean that_present_success = true && that.isSetSuccess();
16110
      if (this_present_success || that_present_success) {
16111
        if (!(this_present_success && that_present_success))
16112
          return false;
16113
        if (!this.success.equals(that.success))
16114
          return false;
16115
      }
16116
 
16117
      boolean this_present_cex = true && this.isSetCex();
16118
      boolean that_present_cex = true && that.isSetCex();
16119
      if (this_present_cex || that_present_cex) {
16120
        if (!(this_present_cex && that_present_cex))
16121
          return false;
16122
        if (!this.cex.equals(that.cex))
16123
          return false;
16124
      }
16125
 
16126
      return true;
16127
    }
16128
 
16129
    @Override
16130
    public int hashCode() {
16131
      return 0;
16132
    }
16133
 
16134
    public int compareTo(getItemPricing_result other) {
16135
      if (!getClass().equals(other.getClass())) {
16136
        return getClass().getName().compareTo(other.getClass().getName());
16137
      }
16138
 
16139
      int lastComparison = 0;
16140
      getItemPricing_result typedOther = (getItemPricing_result)other;
16141
 
16142
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16143
      if (lastComparison != 0) {
16144
        return lastComparison;
16145
      }
16146
      if (isSetSuccess()) {
16147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16148
        if (lastComparison != 0) {
16149
          return lastComparison;
16150
        }
16151
      }
16152
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16153
      if (lastComparison != 0) {
16154
        return lastComparison;
16155
      }
16156
      if (isSetCex()) {
16157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16158
        if (lastComparison != 0) {
16159
          return lastComparison;
16160
        }
16161
      }
16162
      return 0;
16163
    }
16164
 
16165
    public _Fields fieldForId(int fieldId) {
16166
      return _Fields.findByThriftId(fieldId);
16167
    }
16168
 
16169
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16170
      org.apache.thrift.protocol.TField field;
16171
      iprot.readStructBegin();
16172
      while (true)
16173
      {
16174
        field = iprot.readFieldBegin();
16175
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16176
          break;
16177
        }
16178
        switch (field.id) {
16179
          case 0: // SUCCESS
16180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16181
              this.success = new VendorItemPricing();
16182
              this.success.read(iprot);
16183
            } else { 
16184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16185
            }
16186
            break;
16187
          case 1: // CEX
16188
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16189
              this.cex = new InventoryServiceException();
16190
              this.cex.read(iprot);
16191
            } else { 
16192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16193
            }
16194
            break;
16195
          default:
16196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16197
        }
16198
        iprot.readFieldEnd();
16199
      }
16200
      iprot.readStructEnd();
16201
      validate();
16202
    }
16203
 
16204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16205
      oprot.writeStructBegin(STRUCT_DESC);
16206
 
16207
      if (this.isSetSuccess()) {
16208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16209
        this.success.write(oprot);
16210
        oprot.writeFieldEnd();
16211
      } else if (this.isSetCex()) {
16212
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16213
        this.cex.write(oprot);
16214
        oprot.writeFieldEnd();
16215
      }
16216
      oprot.writeFieldStop();
16217
      oprot.writeStructEnd();
16218
    }
16219
 
16220
    @Override
16221
    public String toString() {
16222
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
16223
      boolean first = true;
16224
 
16225
      sb.append("success:");
16226
      if (this.success == null) {
16227
        sb.append("null");
16228
      } else {
16229
        sb.append(this.success);
16230
      }
16231
      first = false;
16232
      if (!first) sb.append(", ");
16233
      sb.append("cex:");
16234
      if (this.cex == null) {
16235
        sb.append("null");
16236
      } else {
16237
        sb.append(this.cex);
16238
      }
16239
      first = false;
16240
      sb.append(")");
16241
      return sb.toString();
16242
    }
16243
 
16244
    public void validate() throws org.apache.thrift.TException {
16245
      // check for required fields
16246
    }
16247
 
16248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16249
      try {
16250
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16251
      } catch (org.apache.thrift.TException te) {
16252
        throw new java.io.IOException(te);
16253
      }
16254
    }
16255
 
16256
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16257
      try {
16258
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16259
      } catch (org.apache.thrift.TException te) {
16260
        throw new java.io.IOException(te);
16261
      }
16262
    }
16263
 
16264
  }
16265
 
16266
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16267
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
16268
 
16269
    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);
16270
 
16271
    private long itemId; // required
16272
 
16273
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16274
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16275
      ITEM_ID((short)1, "itemId");
16276
 
16277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16278
 
16279
      static {
16280
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16281
          byName.put(field.getFieldName(), field);
16282
        }
16283
      }
16284
 
16285
      /**
16286
       * Find the _Fields constant that matches fieldId, or null if its not found.
16287
       */
16288
      public static _Fields findByThriftId(int fieldId) {
16289
        switch(fieldId) {
16290
          case 1: // ITEM_ID
16291
            return ITEM_ID;
16292
          default:
16293
            return null;
16294
        }
16295
      }
16296
 
16297
      /**
16298
       * Find the _Fields constant that matches fieldId, throwing an exception
16299
       * if it is not found.
16300
       */
16301
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16302
        _Fields fields = findByThriftId(fieldId);
16303
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16304
        return fields;
16305
      }
16306
 
16307
      /**
16308
       * Find the _Fields constant that matches name, or null if its not found.
16309
       */
16310
      public static _Fields findByName(String name) {
16311
        return byName.get(name);
16312
      }
16313
 
16314
      private final short _thriftId;
16315
      private final String _fieldName;
16316
 
16317
      _Fields(short thriftId, String fieldName) {
16318
        _thriftId = thriftId;
16319
        _fieldName = fieldName;
16320
      }
16321
 
16322
      public short getThriftFieldId() {
16323
        return _thriftId;
16324
      }
16325
 
16326
      public String getFieldName() {
16327
        return _fieldName;
16328
      }
16329
    }
16330
 
16331
    // isset id assignments
16332
    private static final int __ITEMID_ISSET_ID = 0;
16333
    private BitSet __isset_bit_vector = new BitSet(1);
16334
 
16335
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16336
    static {
16337
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16338
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16340
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16341
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
16342
    }
16343
 
16344
    public getAllItemPricing_args() {
16345
    }
16346
 
16347
    public getAllItemPricing_args(
16348
      long itemId)
16349
    {
16350
      this();
16351
      this.itemId = itemId;
16352
      setItemIdIsSet(true);
16353
    }
16354
 
16355
    /**
16356
     * Performs a deep copy on <i>other</i>.
16357
     */
16358
    public getAllItemPricing_args(getAllItemPricing_args other) {
16359
      __isset_bit_vector.clear();
16360
      __isset_bit_vector.or(other.__isset_bit_vector);
16361
      this.itemId = other.itemId;
16362
    }
16363
 
16364
    public getAllItemPricing_args deepCopy() {
16365
      return new getAllItemPricing_args(this);
16366
    }
16367
 
16368
    @Override
16369
    public void clear() {
16370
      setItemIdIsSet(false);
16371
      this.itemId = 0;
16372
    }
16373
 
16374
    public long getItemId() {
16375
      return this.itemId;
16376
    }
16377
 
16378
    public void setItemId(long itemId) {
16379
      this.itemId = itemId;
16380
      setItemIdIsSet(true);
16381
    }
16382
 
16383
    public void unsetItemId() {
16384
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16385
    }
16386
 
16387
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16388
    public boolean isSetItemId() {
16389
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16390
    }
16391
 
16392
    public void setItemIdIsSet(boolean value) {
16393
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16394
    }
16395
 
16396
    public void setFieldValue(_Fields field, Object value) {
16397
      switch (field) {
16398
      case ITEM_ID:
16399
        if (value == null) {
16400
          unsetItemId();
16401
        } else {
16402
          setItemId((Long)value);
16403
        }
16404
        break;
16405
 
16406
      }
16407
    }
16408
 
16409
    public Object getFieldValue(_Fields field) {
16410
      switch (field) {
16411
      case ITEM_ID:
16412
        return Long.valueOf(getItemId());
16413
 
16414
      }
16415
      throw new IllegalStateException();
16416
    }
16417
 
16418
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16419
    public boolean isSet(_Fields field) {
16420
      if (field == null) {
16421
        throw new IllegalArgumentException();
16422
      }
16423
 
16424
      switch (field) {
16425
      case ITEM_ID:
16426
        return isSetItemId();
16427
      }
16428
      throw new IllegalStateException();
16429
    }
16430
 
16431
    @Override
16432
    public boolean equals(Object that) {
16433
      if (that == null)
16434
        return false;
16435
      if (that instanceof getAllItemPricing_args)
16436
        return this.equals((getAllItemPricing_args)that);
16437
      return false;
16438
    }
16439
 
16440
    public boolean equals(getAllItemPricing_args that) {
16441
      if (that == null)
16442
        return false;
16443
 
16444
      boolean this_present_itemId = true;
16445
      boolean that_present_itemId = true;
16446
      if (this_present_itemId || that_present_itemId) {
16447
        if (!(this_present_itemId && that_present_itemId))
16448
          return false;
16449
        if (this.itemId != that.itemId)
16450
          return false;
16451
      }
16452
 
16453
      return true;
16454
    }
16455
 
16456
    @Override
16457
    public int hashCode() {
16458
      return 0;
16459
    }
16460
 
16461
    public int compareTo(getAllItemPricing_args other) {
16462
      if (!getClass().equals(other.getClass())) {
16463
        return getClass().getName().compareTo(other.getClass().getName());
16464
      }
16465
 
16466
      int lastComparison = 0;
16467
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
16468
 
16469
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16470
      if (lastComparison != 0) {
16471
        return lastComparison;
16472
      }
16473
      if (isSetItemId()) {
16474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16475
        if (lastComparison != 0) {
16476
          return lastComparison;
16477
        }
16478
      }
16479
      return 0;
16480
    }
16481
 
16482
    public _Fields fieldForId(int fieldId) {
16483
      return _Fields.findByThriftId(fieldId);
16484
    }
16485
 
16486
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16487
      org.apache.thrift.protocol.TField field;
16488
      iprot.readStructBegin();
16489
      while (true)
16490
      {
16491
        field = iprot.readFieldBegin();
16492
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16493
          break;
16494
        }
16495
        switch (field.id) {
16496
          case 1: // ITEM_ID
16497
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16498
              this.itemId = iprot.readI64();
16499
              setItemIdIsSet(true);
16500
            } else { 
16501
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16502
            }
16503
            break;
16504
          default:
16505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16506
        }
16507
        iprot.readFieldEnd();
16508
      }
16509
      iprot.readStructEnd();
16510
      validate();
16511
    }
16512
 
16513
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16514
      validate();
16515
 
16516
      oprot.writeStructBegin(STRUCT_DESC);
16517
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16518
      oprot.writeI64(this.itemId);
16519
      oprot.writeFieldEnd();
16520
      oprot.writeFieldStop();
16521
      oprot.writeStructEnd();
16522
    }
16523
 
16524
    @Override
16525
    public String toString() {
16526
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
16527
      boolean first = true;
16528
 
16529
      sb.append("itemId:");
16530
      sb.append(this.itemId);
16531
      first = false;
16532
      sb.append(")");
16533
      return sb.toString();
16534
    }
16535
 
16536
    public void validate() throws org.apache.thrift.TException {
16537
      // check for required fields
16538
    }
16539
 
16540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16541
      try {
16542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16543
      } catch (org.apache.thrift.TException te) {
16544
        throw new java.io.IOException(te);
16545
      }
16546
    }
16547
 
16548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16549
      try {
16550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16551
      } catch (org.apache.thrift.TException te) {
16552
        throw new java.io.IOException(te);
16553
      }
16554
    }
16555
 
16556
  }
16557
 
16558
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
16560
 
16561
    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);
16562
    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);
16563
 
16564
    private List<VendorItemPricing> success; // required
16565
    private InventoryServiceException cex; // required
16566
 
16567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16569
      SUCCESS((short)0, "success"),
16570
      CEX((short)1, "cex");
16571
 
16572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16573
 
16574
      static {
16575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16576
          byName.put(field.getFieldName(), field);
16577
        }
16578
      }
16579
 
16580
      /**
16581
       * Find the _Fields constant that matches fieldId, or null if its not found.
16582
       */
16583
      public static _Fields findByThriftId(int fieldId) {
16584
        switch(fieldId) {
16585
          case 0: // SUCCESS
16586
            return SUCCESS;
16587
          case 1: // CEX
16588
            return CEX;
16589
          default:
16590
            return null;
16591
        }
16592
      }
16593
 
16594
      /**
16595
       * Find the _Fields constant that matches fieldId, throwing an exception
16596
       * if it is not found.
16597
       */
16598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16599
        _Fields fields = findByThriftId(fieldId);
16600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16601
        return fields;
16602
      }
16603
 
16604
      /**
16605
       * Find the _Fields constant that matches name, or null if its not found.
16606
       */
16607
      public static _Fields findByName(String name) {
16608
        return byName.get(name);
16609
      }
16610
 
16611
      private final short _thriftId;
16612
      private final String _fieldName;
16613
 
16614
      _Fields(short thriftId, String fieldName) {
16615
        _thriftId = thriftId;
16616
        _fieldName = fieldName;
16617
      }
16618
 
16619
      public short getThriftFieldId() {
16620
        return _thriftId;
16621
      }
16622
 
16623
      public String getFieldName() {
16624
        return _fieldName;
16625
      }
16626
    }
16627
 
16628
    // isset id assignments
16629
 
16630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16631
    static {
16632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16634
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16635
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
16636
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
16640
    }
16641
 
16642
    public getAllItemPricing_result() {
16643
    }
16644
 
16645
    public getAllItemPricing_result(
16646
      List<VendorItemPricing> success,
16647
      InventoryServiceException cex)
16648
    {
16649
      this();
16650
      this.success = success;
16651
      this.cex = cex;
16652
    }
16653
 
16654
    /**
16655
     * Performs a deep copy on <i>other</i>.
16656
     */
16657
    public getAllItemPricing_result(getAllItemPricing_result other) {
16658
      if (other.isSetSuccess()) {
16659
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
16660
        for (VendorItemPricing other_element : other.success) {
16661
          __this__success.add(new VendorItemPricing(other_element));
16662
        }
16663
        this.success = __this__success;
16664
      }
16665
      if (other.isSetCex()) {
16666
        this.cex = new InventoryServiceException(other.cex);
16667
      }
16668
    }
16669
 
16670
    public getAllItemPricing_result deepCopy() {
16671
      return new getAllItemPricing_result(this);
16672
    }
16673
 
16674
    @Override
16675
    public void clear() {
16676
      this.success = null;
16677
      this.cex = null;
16678
    }
16679
 
16680
    public int getSuccessSize() {
16681
      return (this.success == null) ? 0 : this.success.size();
16682
    }
16683
 
16684
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
16685
      return (this.success == null) ? null : this.success.iterator();
16686
    }
16687
 
16688
    public void addToSuccess(VendorItemPricing elem) {
16689
      if (this.success == null) {
16690
        this.success = new ArrayList<VendorItemPricing>();
16691
      }
16692
      this.success.add(elem);
16693
    }
16694
 
16695
    public List<VendorItemPricing> getSuccess() {
16696
      return this.success;
16697
    }
16698
 
16699
    public void setSuccess(List<VendorItemPricing> success) {
16700
      this.success = success;
16701
    }
16702
 
16703
    public void unsetSuccess() {
16704
      this.success = null;
16705
    }
16706
 
16707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16708
    public boolean isSetSuccess() {
16709
      return this.success != null;
16710
    }
16711
 
16712
    public void setSuccessIsSet(boolean value) {
16713
      if (!value) {
16714
        this.success = null;
16715
      }
16716
    }
16717
 
16718
    public InventoryServiceException getCex() {
16719
      return this.cex;
16720
    }
16721
 
16722
    public void setCex(InventoryServiceException cex) {
16723
      this.cex = cex;
16724
    }
16725
 
16726
    public void unsetCex() {
16727
      this.cex = null;
16728
    }
16729
 
16730
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16731
    public boolean isSetCex() {
16732
      return this.cex != null;
16733
    }
16734
 
16735
    public void setCexIsSet(boolean value) {
16736
      if (!value) {
16737
        this.cex = null;
16738
      }
16739
    }
16740
 
16741
    public void setFieldValue(_Fields field, Object value) {
16742
      switch (field) {
16743
      case SUCCESS:
16744
        if (value == null) {
16745
          unsetSuccess();
16746
        } else {
16747
          setSuccess((List<VendorItemPricing>)value);
16748
        }
16749
        break;
16750
 
16751
      case CEX:
16752
        if (value == null) {
16753
          unsetCex();
16754
        } else {
16755
          setCex((InventoryServiceException)value);
16756
        }
16757
        break;
16758
 
16759
      }
16760
    }
16761
 
16762
    public Object getFieldValue(_Fields field) {
16763
      switch (field) {
16764
      case SUCCESS:
16765
        return getSuccess();
16766
 
16767
      case CEX:
16768
        return getCex();
16769
 
16770
      }
16771
      throw new IllegalStateException();
16772
    }
16773
 
16774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16775
    public boolean isSet(_Fields field) {
16776
      if (field == null) {
16777
        throw new IllegalArgumentException();
16778
      }
16779
 
16780
      switch (field) {
16781
      case SUCCESS:
16782
        return isSetSuccess();
16783
      case CEX:
16784
        return isSetCex();
16785
      }
16786
      throw new IllegalStateException();
16787
    }
16788
 
16789
    @Override
16790
    public boolean equals(Object that) {
16791
      if (that == null)
16792
        return false;
16793
      if (that instanceof getAllItemPricing_result)
16794
        return this.equals((getAllItemPricing_result)that);
16795
      return false;
16796
    }
16797
 
16798
    public boolean equals(getAllItemPricing_result that) {
16799
      if (that == null)
16800
        return false;
16801
 
16802
      boolean this_present_success = true && this.isSetSuccess();
16803
      boolean that_present_success = true && that.isSetSuccess();
16804
      if (this_present_success || that_present_success) {
16805
        if (!(this_present_success && that_present_success))
16806
          return false;
16807
        if (!this.success.equals(that.success))
16808
          return false;
16809
      }
16810
 
16811
      boolean this_present_cex = true && this.isSetCex();
16812
      boolean that_present_cex = true && that.isSetCex();
16813
      if (this_present_cex || that_present_cex) {
16814
        if (!(this_present_cex && that_present_cex))
16815
          return false;
16816
        if (!this.cex.equals(that.cex))
16817
          return false;
16818
      }
16819
 
16820
      return true;
16821
    }
16822
 
16823
    @Override
16824
    public int hashCode() {
16825
      return 0;
16826
    }
16827
 
16828
    public int compareTo(getAllItemPricing_result other) {
16829
      if (!getClass().equals(other.getClass())) {
16830
        return getClass().getName().compareTo(other.getClass().getName());
16831
      }
16832
 
16833
      int lastComparison = 0;
16834
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
16835
 
16836
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16837
      if (lastComparison != 0) {
16838
        return lastComparison;
16839
      }
16840
      if (isSetSuccess()) {
16841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16842
        if (lastComparison != 0) {
16843
          return lastComparison;
16844
        }
16845
      }
16846
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16847
      if (lastComparison != 0) {
16848
        return lastComparison;
16849
      }
16850
      if (isSetCex()) {
16851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16852
        if (lastComparison != 0) {
16853
          return lastComparison;
16854
        }
16855
      }
16856
      return 0;
16857
    }
16858
 
16859
    public _Fields fieldForId(int fieldId) {
16860
      return _Fields.findByThriftId(fieldId);
16861
    }
16862
 
16863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16864
      org.apache.thrift.protocol.TField field;
16865
      iprot.readStructBegin();
16866
      while (true)
16867
      {
16868
        field = iprot.readFieldBegin();
16869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16870
          break;
16871
        }
16872
        switch (field.id) {
16873
          case 0: // SUCCESS
16874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16875
              {
16876
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16877
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
16878
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16879
                {
16880
                  VendorItemPricing _elem34; // required
16881
                  _elem34 = new VendorItemPricing();
16882
                  _elem34.read(iprot);
16883
                  this.success.add(_elem34);
16884
                }
16885
                iprot.readListEnd();
16886
              }
16887
            } else { 
16888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16889
            }
16890
            break;
16891
          case 1: // CEX
16892
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16893
              this.cex = new InventoryServiceException();
16894
              this.cex.read(iprot);
16895
            } else { 
16896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16897
            }
16898
            break;
16899
          default:
16900
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16901
        }
16902
        iprot.readFieldEnd();
16903
      }
16904
      iprot.readStructEnd();
16905
      validate();
16906
    }
16907
 
16908
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16909
      oprot.writeStructBegin(STRUCT_DESC);
16910
 
16911
      if (this.isSetSuccess()) {
16912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16913
        {
16914
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16915
          for (VendorItemPricing _iter35 : this.success)
16916
          {
16917
            _iter35.write(oprot);
16918
          }
16919
          oprot.writeListEnd();
16920
        }
16921
        oprot.writeFieldEnd();
16922
      } else if (this.isSetCex()) {
16923
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16924
        this.cex.write(oprot);
16925
        oprot.writeFieldEnd();
16926
      }
16927
      oprot.writeFieldStop();
16928
      oprot.writeStructEnd();
16929
    }
16930
 
16931
    @Override
16932
    public String toString() {
16933
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
16934
      boolean first = true;
16935
 
16936
      sb.append("success:");
16937
      if (this.success == null) {
16938
        sb.append("null");
16939
      } else {
16940
        sb.append(this.success);
16941
      }
16942
      first = false;
16943
      if (!first) sb.append(", ");
16944
      sb.append("cex:");
16945
      if (this.cex == null) {
16946
        sb.append("null");
16947
      } else {
16948
        sb.append(this.cex);
16949
      }
16950
      first = false;
16951
      sb.append(")");
16952
      return sb.toString();
16953
    }
16954
 
16955
    public void validate() throws org.apache.thrift.TException {
16956
      // check for required fields
16957
    }
16958
 
16959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16960
      try {
16961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16962
      } catch (org.apache.thrift.TException te) {
16963
        throw new java.io.IOException(te);
16964
      }
16965
    }
16966
 
16967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16968
      try {
16969
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16970
      } catch (org.apache.thrift.TException te) {
16971
        throw new java.io.IOException(te);
16972
      }
16973
    }
16974
 
16975
  }
16976
 
16977
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16978
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
16979
 
16980
    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);
16981
 
16982
    private VendorItemPricing vendorItemPricing; // required
16983
 
16984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16986
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
16987
 
16988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16989
 
16990
      static {
16991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16992
          byName.put(field.getFieldName(), field);
16993
        }
16994
      }
16995
 
16996
      /**
16997
       * Find the _Fields constant that matches fieldId, or null if its not found.
16998
       */
16999
      public static _Fields findByThriftId(int fieldId) {
17000
        switch(fieldId) {
17001
          case 1: // VENDOR_ITEM_PRICING
17002
            return VENDOR_ITEM_PRICING;
17003
          default:
17004
            return null;
17005
        }
17006
      }
17007
 
17008
      /**
17009
       * Find the _Fields constant that matches fieldId, throwing an exception
17010
       * if it is not found.
17011
       */
17012
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17013
        _Fields fields = findByThriftId(fieldId);
17014
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17015
        return fields;
17016
      }
17017
 
17018
      /**
17019
       * Find the _Fields constant that matches name, or null if its not found.
17020
       */
17021
      public static _Fields findByName(String name) {
17022
        return byName.get(name);
17023
      }
17024
 
17025
      private final short _thriftId;
17026
      private final String _fieldName;
17027
 
17028
      _Fields(short thriftId, String fieldName) {
17029
        _thriftId = thriftId;
17030
        _fieldName = fieldName;
17031
      }
17032
 
17033
      public short getThriftFieldId() {
17034
        return _thriftId;
17035
      }
17036
 
17037
      public String getFieldName() {
17038
        return _fieldName;
17039
      }
17040
    }
17041
 
17042
    // isset id assignments
17043
 
17044
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17045
    static {
17046
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17047
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17048
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
17049
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17050
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
17051
    }
17052
 
17053
    public addVendorItemPricing_args() {
17054
    }
17055
 
17056
    public addVendorItemPricing_args(
17057
      VendorItemPricing vendorItemPricing)
17058
    {
17059
      this();
17060
      this.vendorItemPricing = vendorItemPricing;
17061
    }
17062
 
17063
    /**
17064
     * Performs a deep copy on <i>other</i>.
17065
     */
17066
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
17067
      if (other.isSetVendorItemPricing()) {
17068
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
17069
      }
17070
    }
17071
 
17072
    public addVendorItemPricing_args deepCopy() {
17073
      return new addVendorItemPricing_args(this);
17074
    }
17075
 
17076
    @Override
17077
    public void clear() {
17078
      this.vendorItemPricing = null;
17079
    }
17080
 
17081
    public VendorItemPricing getVendorItemPricing() {
17082
      return this.vendorItemPricing;
17083
    }
17084
 
17085
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
17086
      this.vendorItemPricing = vendorItemPricing;
17087
    }
17088
 
17089
    public void unsetVendorItemPricing() {
17090
      this.vendorItemPricing = null;
17091
    }
17092
 
17093
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
17094
    public boolean isSetVendorItemPricing() {
17095
      return this.vendorItemPricing != null;
17096
    }
17097
 
17098
    public void setVendorItemPricingIsSet(boolean value) {
17099
      if (!value) {
17100
        this.vendorItemPricing = null;
17101
      }
17102
    }
17103
 
17104
    public void setFieldValue(_Fields field, Object value) {
17105
      switch (field) {
17106
      case VENDOR_ITEM_PRICING:
17107
        if (value == null) {
17108
          unsetVendorItemPricing();
17109
        } else {
17110
          setVendorItemPricing((VendorItemPricing)value);
17111
        }
17112
        break;
17113
 
17114
      }
17115
    }
17116
 
17117
    public Object getFieldValue(_Fields field) {
17118
      switch (field) {
17119
      case VENDOR_ITEM_PRICING:
17120
        return getVendorItemPricing();
17121
 
17122
      }
17123
      throw new IllegalStateException();
17124
    }
17125
 
17126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17127
    public boolean isSet(_Fields field) {
17128
      if (field == null) {
17129
        throw new IllegalArgumentException();
17130
      }
17131
 
17132
      switch (field) {
17133
      case VENDOR_ITEM_PRICING:
17134
        return isSetVendorItemPricing();
17135
      }
17136
      throw new IllegalStateException();
17137
    }
17138
 
17139
    @Override
17140
    public boolean equals(Object that) {
17141
      if (that == null)
17142
        return false;
17143
      if (that instanceof addVendorItemPricing_args)
17144
        return this.equals((addVendorItemPricing_args)that);
17145
      return false;
17146
    }
17147
 
17148
    public boolean equals(addVendorItemPricing_args that) {
17149
      if (that == null)
17150
        return false;
17151
 
17152
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
17153
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
17154
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
17155
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
17156
          return false;
17157
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
17158
          return false;
17159
      }
17160
 
17161
      return true;
17162
    }
17163
 
17164
    @Override
17165
    public int hashCode() {
17166
      return 0;
17167
    }
17168
 
17169
    public int compareTo(addVendorItemPricing_args other) {
17170
      if (!getClass().equals(other.getClass())) {
17171
        return getClass().getName().compareTo(other.getClass().getName());
17172
      }
17173
 
17174
      int lastComparison = 0;
17175
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
17176
 
17177
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
17178
      if (lastComparison != 0) {
17179
        return lastComparison;
17180
      }
17181
      if (isSetVendorItemPricing()) {
17182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
17183
        if (lastComparison != 0) {
17184
          return lastComparison;
17185
        }
17186
      }
17187
      return 0;
17188
    }
17189
 
17190
    public _Fields fieldForId(int fieldId) {
17191
      return _Fields.findByThriftId(fieldId);
17192
    }
17193
 
17194
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17195
      org.apache.thrift.protocol.TField field;
17196
      iprot.readStructBegin();
17197
      while (true)
17198
      {
17199
        field = iprot.readFieldBegin();
17200
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17201
          break;
17202
        }
17203
        switch (field.id) {
17204
          case 1: // VENDOR_ITEM_PRICING
17205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17206
              this.vendorItemPricing = new VendorItemPricing();
17207
              this.vendorItemPricing.read(iprot);
17208
            } else { 
17209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17210
            }
17211
            break;
17212
          default:
17213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17214
        }
17215
        iprot.readFieldEnd();
17216
      }
17217
      iprot.readStructEnd();
17218
      validate();
17219
    }
17220
 
17221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17222
      validate();
17223
 
17224
      oprot.writeStructBegin(STRUCT_DESC);
17225
      if (this.vendorItemPricing != null) {
17226
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
17227
        this.vendorItemPricing.write(oprot);
17228
        oprot.writeFieldEnd();
17229
      }
17230
      oprot.writeFieldStop();
17231
      oprot.writeStructEnd();
17232
    }
17233
 
17234
    @Override
17235
    public String toString() {
17236
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
17237
      boolean first = true;
17238
 
17239
      sb.append("vendorItemPricing:");
17240
      if (this.vendorItemPricing == null) {
17241
        sb.append("null");
17242
      } else {
17243
        sb.append(this.vendorItemPricing);
17244
      }
17245
      first = false;
17246
      sb.append(")");
17247
      return sb.toString();
17248
    }
17249
 
17250
    public void validate() throws org.apache.thrift.TException {
17251
      // check for required fields
17252
    }
17253
 
17254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17255
      try {
17256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17257
      } catch (org.apache.thrift.TException te) {
17258
        throw new java.io.IOException(te);
17259
      }
17260
    }
17261
 
17262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17263
      try {
17264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17265
      } catch (org.apache.thrift.TException te) {
17266
        throw new java.io.IOException(te);
17267
      }
17268
    }
17269
 
17270
  }
17271
 
17272
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
17273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
17274
 
17275
    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);
17276
 
17277
    private InventoryServiceException cex; // required
17278
 
17279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17281
      CEX((short)1, "cex");
17282
 
17283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17284
 
17285
      static {
17286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17287
          byName.put(field.getFieldName(), field);
17288
        }
17289
      }
17290
 
17291
      /**
17292
       * Find the _Fields constant that matches fieldId, or null if its not found.
17293
       */
17294
      public static _Fields findByThriftId(int fieldId) {
17295
        switch(fieldId) {
17296
          case 1: // CEX
17297
            return CEX;
17298
          default:
17299
            return null;
17300
        }
17301
      }
17302
 
17303
      /**
17304
       * Find the _Fields constant that matches fieldId, throwing an exception
17305
       * if it is not found.
17306
       */
17307
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17308
        _Fields fields = findByThriftId(fieldId);
17309
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17310
        return fields;
17311
      }
17312
 
17313
      /**
17314
       * Find the _Fields constant that matches name, or null if its not found.
17315
       */
17316
      public static _Fields findByName(String name) {
17317
        return byName.get(name);
17318
      }
17319
 
17320
      private final short _thriftId;
17321
      private final String _fieldName;
17322
 
17323
      _Fields(short thriftId, String fieldName) {
17324
        _thriftId = thriftId;
17325
        _fieldName = fieldName;
17326
      }
17327
 
17328
      public short getThriftFieldId() {
17329
        return _thriftId;
17330
      }
17331
 
17332
      public String getFieldName() {
17333
        return _fieldName;
17334
      }
17335
    }
17336
 
17337
    // isset id assignments
17338
 
17339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17340
    static {
17341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17342
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
17346
    }
17347
 
17348
    public addVendorItemPricing_result() {
17349
    }
17350
 
17351
    public addVendorItemPricing_result(
17352
      InventoryServiceException cex)
17353
    {
17354
      this();
17355
      this.cex = cex;
17356
    }
17357
 
17358
    /**
17359
     * Performs a deep copy on <i>other</i>.
17360
     */
17361
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
17362
      if (other.isSetCex()) {
17363
        this.cex = new InventoryServiceException(other.cex);
17364
      }
17365
    }
17366
 
17367
    public addVendorItemPricing_result deepCopy() {
17368
      return new addVendorItemPricing_result(this);
17369
    }
17370
 
17371
    @Override
17372
    public void clear() {
17373
      this.cex = null;
17374
    }
17375
 
17376
    public InventoryServiceException getCex() {
17377
      return this.cex;
17378
    }
17379
 
17380
    public void setCex(InventoryServiceException cex) {
17381
      this.cex = cex;
17382
    }
17383
 
17384
    public void unsetCex() {
17385
      this.cex = null;
17386
    }
17387
 
17388
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17389
    public boolean isSetCex() {
17390
      return this.cex != null;
17391
    }
17392
 
17393
    public void setCexIsSet(boolean value) {
17394
      if (!value) {
17395
        this.cex = null;
17396
      }
17397
    }
17398
 
17399
    public void setFieldValue(_Fields field, Object value) {
17400
      switch (field) {
17401
      case CEX:
17402
        if (value == null) {
17403
          unsetCex();
17404
        } else {
17405
          setCex((InventoryServiceException)value);
17406
        }
17407
        break;
17408
 
17409
      }
17410
    }
17411
 
17412
    public Object getFieldValue(_Fields field) {
17413
      switch (field) {
17414
      case CEX:
17415
        return getCex();
17416
 
17417
      }
17418
      throw new IllegalStateException();
17419
    }
17420
 
17421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17422
    public boolean isSet(_Fields field) {
17423
      if (field == null) {
17424
        throw new IllegalArgumentException();
17425
      }
17426
 
17427
      switch (field) {
17428
      case CEX:
17429
        return isSetCex();
17430
      }
17431
      throw new IllegalStateException();
17432
    }
17433
 
17434
    @Override
17435
    public boolean equals(Object that) {
17436
      if (that == null)
17437
        return false;
17438
      if (that instanceof addVendorItemPricing_result)
17439
        return this.equals((addVendorItemPricing_result)that);
17440
      return false;
17441
    }
17442
 
17443
    public boolean equals(addVendorItemPricing_result that) {
17444
      if (that == null)
17445
        return false;
17446
 
17447
      boolean this_present_cex = true && this.isSetCex();
17448
      boolean that_present_cex = true && that.isSetCex();
17449
      if (this_present_cex || that_present_cex) {
17450
        if (!(this_present_cex && that_present_cex))
17451
          return false;
17452
        if (!this.cex.equals(that.cex))
17453
          return false;
17454
      }
17455
 
17456
      return true;
17457
    }
17458
 
17459
    @Override
17460
    public int hashCode() {
17461
      return 0;
17462
    }
17463
 
17464
    public int compareTo(addVendorItemPricing_result other) {
17465
      if (!getClass().equals(other.getClass())) {
17466
        return getClass().getName().compareTo(other.getClass().getName());
17467
      }
17468
 
17469
      int lastComparison = 0;
17470
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
17471
 
17472
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17473
      if (lastComparison != 0) {
17474
        return lastComparison;
17475
      }
17476
      if (isSetCex()) {
17477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17478
        if (lastComparison != 0) {
17479
          return lastComparison;
17480
        }
17481
      }
17482
      return 0;
17483
    }
17484
 
17485
    public _Fields fieldForId(int fieldId) {
17486
      return _Fields.findByThriftId(fieldId);
17487
    }
17488
 
17489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17490
      org.apache.thrift.protocol.TField field;
17491
      iprot.readStructBegin();
17492
      while (true)
17493
      {
17494
        field = iprot.readFieldBegin();
17495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17496
          break;
17497
        }
17498
        switch (field.id) {
17499
          case 1: // CEX
17500
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17501
              this.cex = new InventoryServiceException();
17502
              this.cex.read(iprot);
17503
            } else { 
17504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17505
            }
17506
            break;
17507
          default:
17508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17509
        }
17510
        iprot.readFieldEnd();
17511
      }
17512
      iprot.readStructEnd();
17513
      validate();
17514
    }
17515
 
17516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17517
      oprot.writeStructBegin(STRUCT_DESC);
17518
 
17519
      if (this.isSetCex()) {
17520
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17521
        this.cex.write(oprot);
17522
        oprot.writeFieldEnd();
17523
      }
17524
      oprot.writeFieldStop();
17525
      oprot.writeStructEnd();
17526
    }
17527
 
17528
    @Override
17529
    public String toString() {
17530
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
17531
      boolean first = true;
17532
 
17533
      sb.append("cex:");
17534
      if (this.cex == null) {
17535
        sb.append("null");
17536
      } else {
17537
        sb.append(this.cex);
17538
      }
17539
      first = false;
17540
      sb.append(")");
17541
      return sb.toString();
17542
    }
17543
 
17544
    public void validate() throws org.apache.thrift.TException {
17545
      // check for required fields
17546
    }
17547
 
17548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17549
      try {
17550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17551
      } catch (org.apache.thrift.TException te) {
17552
        throw new java.io.IOException(te);
17553
      }
17554
    }
17555
 
17556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17557
      try {
17558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17559
      } catch (org.apache.thrift.TException te) {
17560
        throw new java.io.IOException(te);
17561
      }
17562
    }
17563
 
17564
  }
17565
 
17566
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
17567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
17568
 
17569
    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);
17570
 
17571
    private long vendorId; // required
17572
 
17573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17575
      VENDOR_ID((short)1, "vendorId");
17576
 
17577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17578
 
17579
      static {
17580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17581
          byName.put(field.getFieldName(), field);
17582
        }
17583
      }
17584
 
17585
      /**
17586
       * Find the _Fields constant that matches fieldId, or null if its not found.
17587
       */
17588
      public static _Fields findByThriftId(int fieldId) {
17589
        switch(fieldId) {
17590
          case 1: // VENDOR_ID
17591
            return VENDOR_ID;
17592
          default:
17593
            return null;
17594
        }
17595
      }
17596
 
17597
      /**
17598
       * Find the _Fields constant that matches fieldId, throwing an exception
17599
       * if it is not found.
17600
       */
17601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17602
        _Fields fields = findByThriftId(fieldId);
17603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17604
        return fields;
17605
      }
17606
 
17607
      /**
17608
       * Find the _Fields constant that matches name, or null if its not found.
17609
       */
17610
      public static _Fields findByName(String name) {
17611
        return byName.get(name);
17612
      }
17613
 
17614
      private final short _thriftId;
17615
      private final String _fieldName;
17616
 
17617
      _Fields(short thriftId, String fieldName) {
17618
        _thriftId = thriftId;
17619
        _fieldName = fieldName;
17620
      }
17621
 
17622
      public short getThriftFieldId() {
17623
        return _thriftId;
17624
      }
17625
 
17626
      public String getFieldName() {
17627
        return _fieldName;
17628
      }
17629
    }
17630
 
17631
    // isset id assignments
17632
    private static final int __VENDORID_ISSET_ID = 0;
17633
    private BitSet __isset_bit_vector = new BitSet(1);
17634
 
17635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17636
    static {
17637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17638
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
17642
    }
17643
 
17644
    public getVendor_args() {
17645
    }
17646
 
17647
    public getVendor_args(
17648
      long vendorId)
17649
    {
17650
      this();
17651
      this.vendorId = vendorId;
17652
      setVendorIdIsSet(true);
17653
    }
17654
 
17655
    /**
17656
     * Performs a deep copy on <i>other</i>.
17657
     */
17658
    public getVendor_args(getVendor_args other) {
17659
      __isset_bit_vector.clear();
17660
      __isset_bit_vector.or(other.__isset_bit_vector);
17661
      this.vendorId = other.vendorId;
17662
    }
17663
 
17664
    public getVendor_args deepCopy() {
17665
      return new getVendor_args(this);
17666
    }
17667
 
17668
    @Override
17669
    public void clear() {
17670
      setVendorIdIsSet(false);
17671
      this.vendorId = 0;
17672
    }
17673
 
17674
    public long getVendorId() {
17675
      return this.vendorId;
17676
    }
17677
 
17678
    public void setVendorId(long vendorId) {
17679
      this.vendorId = vendorId;
17680
      setVendorIdIsSet(true);
17681
    }
17682
 
17683
    public void unsetVendorId() {
17684
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17685
    }
17686
 
17687
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17688
    public boolean isSetVendorId() {
17689
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17690
    }
17691
 
17692
    public void setVendorIdIsSet(boolean value) {
17693
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17694
    }
17695
 
17696
    public void setFieldValue(_Fields field, Object value) {
17697
      switch (field) {
17698
      case VENDOR_ID:
17699
        if (value == null) {
17700
          unsetVendorId();
17701
        } else {
17702
          setVendorId((Long)value);
17703
        }
17704
        break;
17705
 
17706
      }
17707
    }
17708
 
17709
    public Object getFieldValue(_Fields field) {
17710
      switch (field) {
17711
      case VENDOR_ID:
17712
        return Long.valueOf(getVendorId());
17713
 
17714
      }
17715
      throw new IllegalStateException();
17716
    }
17717
 
17718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17719
    public boolean isSet(_Fields field) {
17720
      if (field == null) {
17721
        throw new IllegalArgumentException();
17722
      }
17723
 
17724
      switch (field) {
17725
      case VENDOR_ID:
17726
        return isSetVendorId();
17727
      }
17728
      throw new IllegalStateException();
17729
    }
17730
 
17731
    @Override
17732
    public boolean equals(Object that) {
17733
      if (that == null)
17734
        return false;
17735
      if (that instanceof getVendor_args)
17736
        return this.equals((getVendor_args)that);
17737
      return false;
17738
    }
17739
 
17740
    public boolean equals(getVendor_args that) {
17741
      if (that == null)
17742
        return false;
17743
 
17744
      boolean this_present_vendorId = true;
17745
      boolean that_present_vendorId = true;
17746
      if (this_present_vendorId || that_present_vendorId) {
17747
        if (!(this_present_vendorId && that_present_vendorId))
17748
          return false;
17749
        if (this.vendorId != that.vendorId)
17750
          return false;
17751
      }
17752
 
17753
      return true;
17754
    }
17755
 
17756
    @Override
17757
    public int hashCode() {
17758
      return 0;
17759
    }
17760
 
17761
    public int compareTo(getVendor_args other) {
17762
      if (!getClass().equals(other.getClass())) {
17763
        return getClass().getName().compareTo(other.getClass().getName());
17764
      }
17765
 
17766
      int lastComparison = 0;
17767
      getVendor_args typedOther = (getVendor_args)other;
17768
 
17769
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17770
      if (lastComparison != 0) {
17771
        return lastComparison;
17772
      }
17773
      if (isSetVendorId()) {
17774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17775
        if (lastComparison != 0) {
17776
          return lastComparison;
17777
        }
17778
      }
17779
      return 0;
17780
    }
17781
 
17782
    public _Fields fieldForId(int fieldId) {
17783
      return _Fields.findByThriftId(fieldId);
17784
    }
17785
 
17786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17787
      org.apache.thrift.protocol.TField field;
17788
      iprot.readStructBegin();
17789
      while (true)
17790
      {
17791
        field = iprot.readFieldBegin();
17792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17793
          break;
17794
        }
17795
        switch (field.id) {
17796
          case 1: // VENDOR_ID
17797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17798
              this.vendorId = iprot.readI64();
17799
              setVendorIdIsSet(true);
17800
            } else { 
17801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17802
            }
17803
            break;
17804
          default:
17805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17806
        }
17807
        iprot.readFieldEnd();
17808
      }
17809
      iprot.readStructEnd();
17810
      validate();
17811
    }
17812
 
17813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17814
      validate();
17815
 
17816
      oprot.writeStructBegin(STRUCT_DESC);
17817
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17818
      oprot.writeI64(this.vendorId);
17819
      oprot.writeFieldEnd();
17820
      oprot.writeFieldStop();
17821
      oprot.writeStructEnd();
17822
    }
17823
 
17824
    @Override
17825
    public String toString() {
17826
      StringBuilder sb = new StringBuilder("getVendor_args(");
17827
      boolean first = true;
17828
 
17829
      sb.append("vendorId:");
17830
      sb.append(this.vendorId);
17831
      first = false;
17832
      sb.append(")");
17833
      return sb.toString();
17834
    }
17835
 
17836
    public void validate() throws org.apache.thrift.TException {
17837
      // check for required fields
17838
    }
17839
 
17840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17841
      try {
17842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17843
      } catch (org.apache.thrift.TException te) {
17844
        throw new java.io.IOException(te);
17845
      }
17846
    }
17847
 
17848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17849
      try {
17850
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17851
        __isset_bit_vector = new BitSet(1);
17852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17853
      } catch (org.apache.thrift.TException te) {
17854
        throw new java.io.IOException(te);
17855
      }
17856
    }
17857
 
17858
  }
17859
 
17860
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
17861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
17862
 
17863
    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);
17864
 
17865
    private Vendor success; // required
17866
 
17867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17869
      SUCCESS((short)0, "success");
17870
 
17871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17872
 
17873
      static {
17874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17875
          byName.put(field.getFieldName(), field);
17876
        }
17877
      }
17878
 
17879
      /**
17880
       * Find the _Fields constant that matches fieldId, or null if its not found.
17881
       */
17882
      public static _Fields findByThriftId(int fieldId) {
17883
        switch(fieldId) {
17884
          case 0: // SUCCESS
17885
            return SUCCESS;
17886
          default:
17887
            return null;
17888
        }
17889
      }
17890
 
17891
      /**
17892
       * Find the _Fields constant that matches fieldId, throwing an exception
17893
       * if it is not found.
17894
       */
17895
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17896
        _Fields fields = findByThriftId(fieldId);
17897
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17898
        return fields;
17899
      }
17900
 
17901
      /**
17902
       * Find the _Fields constant that matches name, or null if its not found.
17903
       */
17904
      public static _Fields findByName(String name) {
17905
        return byName.get(name);
17906
      }
17907
 
17908
      private final short _thriftId;
17909
      private final String _fieldName;
17910
 
17911
      _Fields(short thriftId, String fieldName) {
17912
        _thriftId = thriftId;
17913
        _fieldName = fieldName;
17914
      }
17915
 
17916
      public short getThriftFieldId() {
17917
        return _thriftId;
17918
      }
17919
 
17920
      public String getFieldName() {
17921
        return _fieldName;
17922
      }
17923
    }
17924
 
17925
    // isset id assignments
17926
 
17927
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17928
    static {
17929
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17930
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17931
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
17932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
17934
    }
17935
 
17936
    public getVendor_result() {
17937
    }
17938
 
17939
    public getVendor_result(
17940
      Vendor success)
17941
    {
17942
      this();
17943
      this.success = success;
17944
    }
17945
 
17946
    /**
17947
     * Performs a deep copy on <i>other</i>.
17948
     */
17949
    public getVendor_result(getVendor_result other) {
17950
      if (other.isSetSuccess()) {
17951
        this.success = new Vendor(other.success);
17952
      }
17953
    }
17954
 
17955
    public getVendor_result deepCopy() {
17956
      return new getVendor_result(this);
17957
    }
17958
 
17959
    @Override
17960
    public void clear() {
17961
      this.success = null;
17962
    }
17963
 
17964
    public Vendor getSuccess() {
17965
      return this.success;
17966
    }
17967
 
17968
    public void setSuccess(Vendor success) {
17969
      this.success = success;
17970
    }
17971
 
17972
    public void unsetSuccess() {
17973
      this.success = null;
17974
    }
17975
 
17976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17977
    public boolean isSetSuccess() {
17978
      return this.success != null;
17979
    }
17980
 
17981
    public void setSuccessIsSet(boolean value) {
17982
      if (!value) {
17983
        this.success = null;
17984
      }
17985
    }
17986
 
17987
    public void setFieldValue(_Fields field, Object value) {
17988
      switch (field) {
17989
      case SUCCESS:
17990
        if (value == null) {
17991
          unsetSuccess();
17992
        } else {
17993
          setSuccess((Vendor)value);
17994
        }
17995
        break;
17996
 
17997
      }
17998
    }
17999
 
18000
    public Object getFieldValue(_Fields field) {
18001
      switch (field) {
18002
      case SUCCESS:
18003
        return getSuccess();
18004
 
18005
      }
18006
      throw new IllegalStateException();
18007
    }
18008
 
18009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18010
    public boolean isSet(_Fields field) {
18011
      if (field == null) {
18012
        throw new IllegalArgumentException();
18013
      }
18014
 
18015
      switch (field) {
18016
      case SUCCESS:
18017
        return isSetSuccess();
18018
      }
18019
      throw new IllegalStateException();
18020
    }
18021
 
18022
    @Override
18023
    public boolean equals(Object that) {
18024
      if (that == null)
18025
        return false;
18026
      if (that instanceof getVendor_result)
18027
        return this.equals((getVendor_result)that);
18028
      return false;
18029
    }
18030
 
18031
    public boolean equals(getVendor_result that) {
18032
      if (that == null)
18033
        return false;
18034
 
18035
      boolean this_present_success = true && this.isSetSuccess();
18036
      boolean that_present_success = true && that.isSetSuccess();
18037
      if (this_present_success || that_present_success) {
18038
        if (!(this_present_success && that_present_success))
18039
          return false;
18040
        if (!this.success.equals(that.success))
18041
          return false;
18042
      }
18043
 
18044
      return true;
18045
    }
18046
 
18047
    @Override
18048
    public int hashCode() {
18049
      return 0;
18050
    }
18051
 
18052
    public int compareTo(getVendor_result other) {
18053
      if (!getClass().equals(other.getClass())) {
18054
        return getClass().getName().compareTo(other.getClass().getName());
18055
      }
18056
 
18057
      int lastComparison = 0;
18058
      getVendor_result typedOther = (getVendor_result)other;
18059
 
18060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18061
      if (lastComparison != 0) {
18062
        return lastComparison;
18063
      }
18064
      if (isSetSuccess()) {
18065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18066
        if (lastComparison != 0) {
18067
          return lastComparison;
18068
        }
18069
      }
18070
      return 0;
18071
    }
18072
 
18073
    public _Fields fieldForId(int fieldId) {
18074
      return _Fields.findByThriftId(fieldId);
18075
    }
18076
 
18077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18078
      org.apache.thrift.protocol.TField field;
18079
      iprot.readStructBegin();
18080
      while (true)
18081
      {
18082
        field = iprot.readFieldBegin();
18083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18084
          break;
18085
        }
18086
        switch (field.id) {
18087
          case 0: // SUCCESS
18088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18089
              this.success = new Vendor();
18090
              this.success.read(iprot);
18091
            } else { 
18092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18093
            }
18094
            break;
18095
          default:
18096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18097
        }
18098
        iprot.readFieldEnd();
18099
      }
18100
      iprot.readStructEnd();
18101
      validate();
18102
    }
18103
 
18104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18105
      oprot.writeStructBegin(STRUCT_DESC);
18106
 
18107
      if (this.isSetSuccess()) {
18108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18109
        this.success.write(oprot);
18110
        oprot.writeFieldEnd();
18111
      }
18112
      oprot.writeFieldStop();
18113
      oprot.writeStructEnd();
18114
    }
18115
 
18116
    @Override
18117
    public String toString() {
18118
      StringBuilder sb = new StringBuilder("getVendor_result(");
18119
      boolean first = true;
18120
 
18121
      sb.append("success:");
18122
      if (this.success == null) {
18123
        sb.append("null");
18124
      } else {
18125
        sb.append(this.success);
18126
      }
18127
      first = false;
18128
      sb.append(")");
18129
      return sb.toString();
18130
    }
18131
 
18132
    public void validate() throws org.apache.thrift.TException {
18133
      // check for required fields
18134
    }
18135
 
18136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18137
      try {
18138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18139
      } catch (org.apache.thrift.TException te) {
18140
        throw new java.io.IOException(te);
18141
      }
18142
    }
18143
 
18144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18145
      try {
18146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18147
      } catch (org.apache.thrift.TException te) {
18148
        throw new java.io.IOException(te);
18149
      }
18150
    }
18151
 
18152
  }
18153
 
18154
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
18155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
18156
 
18157
 
18158
 
18159
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18160
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18161
;
18162
 
18163
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18164
 
18165
      static {
18166
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18167
          byName.put(field.getFieldName(), field);
18168
        }
18169
      }
18170
 
18171
      /**
18172
       * Find the _Fields constant that matches fieldId, or null if its not found.
18173
       */
18174
      public static _Fields findByThriftId(int fieldId) {
18175
        switch(fieldId) {
18176
          default:
18177
            return null;
18178
        }
18179
      }
18180
 
18181
      /**
18182
       * Find the _Fields constant that matches fieldId, throwing an exception
18183
       * if it is not found.
18184
       */
18185
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18186
        _Fields fields = findByThriftId(fieldId);
18187
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18188
        return fields;
18189
      }
18190
 
18191
      /**
18192
       * Find the _Fields constant that matches name, or null if its not found.
18193
       */
18194
      public static _Fields findByName(String name) {
18195
        return byName.get(name);
18196
      }
18197
 
18198
      private final short _thriftId;
18199
      private final String _fieldName;
18200
 
18201
      _Fields(short thriftId, String fieldName) {
18202
        _thriftId = thriftId;
18203
        _fieldName = fieldName;
18204
      }
18205
 
18206
      public short getThriftFieldId() {
18207
        return _thriftId;
18208
      }
18209
 
18210
      public String getFieldName() {
18211
        return _fieldName;
18212
      }
18213
    }
18214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18215
    static {
18216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18217
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18218
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
18219
    }
18220
 
18221
    public getAllVendors_args() {
18222
    }
18223
 
18224
    /**
18225
     * Performs a deep copy on <i>other</i>.
18226
     */
18227
    public getAllVendors_args(getAllVendors_args other) {
18228
    }
18229
 
18230
    public getAllVendors_args deepCopy() {
18231
      return new getAllVendors_args(this);
18232
    }
18233
 
18234
    @Override
18235
    public void clear() {
18236
    }
18237
 
18238
    public void setFieldValue(_Fields field, Object value) {
18239
      switch (field) {
18240
      }
18241
    }
18242
 
18243
    public Object getFieldValue(_Fields field) {
18244
      switch (field) {
18245
      }
18246
      throw new IllegalStateException();
18247
    }
18248
 
18249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18250
    public boolean isSet(_Fields field) {
18251
      if (field == null) {
18252
        throw new IllegalArgumentException();
18253
      }
18254
 
18255
      switch (field) {
18256
      }
18257
      throw new IllegalStateException();
18258
    }
18259
 
18260
    @Override
18261
    public boolean equals(Object that) {
18262
      if (that == null)
18263
        return false;
18264
      if (that instanceof getAllVendors_args)
18265
        return this.equals((getAllVendors_args)that);
18266
      return false;
18267
    }
18268
 
18269
    public boolean equals(getAllVendors_args that) {
18270
      if (that == null)
18271
        return false;
18272
 
18273
      return true;
18274
    }
18275
 
18276
    @Override
18277
    public int hashCode() {
18278
      return 0;
18279
    }
18280
 
18281
    public int compareTo(getAllVendors_args other) {
18282
      if (!getClass().equals(other.getClass())) {
18283
        return getClass().getName().compareTo(other.getClass().getName());
18284
      }
18285
 
18286
      int lastComparison = 0;
18287
      getAllVendors_args typedOther = (getAllVendors_args)other;
18288
 
18289
      return 0;
18290
    }
18291
 
18292
    public _Fields fieldForId(int fieldId) {
18293
      return _Fields.findByThriftId(fieldId);
18294
    }
18295
 
18296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18297
      org.apache.thrift.protocol.TField field;
18298
      iprot.readStructBegin();
18299
      while (true)
18300
      {
18301
        field = iprot.readFieldBegin();
18302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18303
          break;
18304
        }
18305
        switch (field.id) {
18306
          default:
18307
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18308
        }
18309
        iprot.readFieldEnd();
18310
      }
18311
      iprot.readStructEnd();
18312
      validate();
18313
    }
18314
 
18315
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18316
      validate();
18317
 
18318
      oprot.writeStructBegin(STRUCT_DESC);
18319
      oprot.writeFieldStop();
18320
      oprot.writeStructEnd();
18321
    }
18322
 
18323
    @Override
18324
    public String toString() {
18325
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
18326
      boolean first = true;
18327
 
18328
      sb.append(")");
18329
      return sb.toString();
18330
    }
18331
 
18332
    public void validate() throws org.apache.thrift.TException {
18333
      // check for required fields
18334
    }
18335
 
18336
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18337
      try {
18338
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18339
      } catch (org.apache.thrift.TException te) {
18340
        throw new java.io.IOException(te);
18341
      }
18342
    }
18343
 
18344
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18345
      try {
18346
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18347
      } catch (org.apache.thrift.TException te) {
18348
        throw new java.io.IOException(te);
18349
      }
18350
    }
18351
 
18352
  }
18353
 
18354
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
18355
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
18356
 
18357
    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);
18358
 
18359
    private List<Vendor> success; // required
18360
 
18361
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18362
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18363
      SUCCESS((short)0, "success");
18364
 
18365
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18366
 
18367
      static {
18368
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18369
          byName.put(field.getFieldName(), field);
18370
        }
18371
      }
18372
 
18373
      /**
18374
       * Find the _Fields constant that matches fieldId, or null if its not found.
18375
       */
18376
      public static _Fields findByThriftId(int fieldId) {
18377
        switch(fieldId) {
18378
          case 0: // SUCCESS
18379
            return SUCCESS;
18380
          default:
18381
            return null;
18382
        }
18383
      }
18384
 
18385
      /**
18386
       * Find the _Fields constant that matches fieldId, throwing an exception
18387
       * if it is not found.
18388
       */
18389
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18390
        _Fields fields = findByThriftId(fieldId);
18391
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18392
        return fields;
18393
      }
18394
 
18395
      /**
18396
       * Find the _Fields constant that matches name, or null if its not found.
18397
       */
18398
      public static _Fields findByName(String name) {
18399
        return byName.get(name);
18400
      }
18401
 
18402
      private final short _thriftId;
18403
      private final String _fieldName;
18404
 
18405
      _Fields(short thriftId, String fieldName) {
18406
        _thriftId = thriftId;
18407
        _fieldName = fieldName;
18408
      }
18409
 
18410
      public short getThriftFieldId() {
18411
        return _thriftId;
18412
      }
18413
 
18414
      public String getFieldName() {
18415
        return _fieldName;
18416
      }
18417
    }
18418
 
18419
    // isset id assignments
18420
 
18421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18422
    static {
18423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18424
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18425
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18426
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
18427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
18429
    }
18430
 
18431
    public getAllVendors_result() {
18432
    }
18433
 
18434
    public getAllVendors_result(
18435
      List<Vendor> success)
18436
    {
18437
      this();
18438
      this.success = success;
18439
    }
18440
 
18441
    /**
18442
     * Performs a deep copy on <i>other</i>.
18443
     */
18444
    public getAllVendors_result(getAllVendors_result other) {
18445
      if (other.isSetSuccess()) {
18446
        List<Vendor> __this__success = new ArrayList<Vendor>();
18447
        for (Vendor other_element : other.success) {
18448
          __this__success.add(new Vendor(other_element));
18449
        }
18450
        this.success = __this__success;
18451
      }
18452
    }
18453
 
18454
    public getAllVendors_result deepCopy() {
18455
      return new getAllVendors_result(this);
18456
    }
18457
 
18458
    @Override
18459
    public void clear() {
18460
      this.success = null;
18461
    }
18462
 
18463
    public int getSuccessSize() {
18464
      return (this.success == null) ? 0 : this.success.size();
18465
    }
18466
 
18467
    public java.util.Iterator<Vendor> getSuccessIterator() {
18468
      return (this.success == null) ? null : this.success.iterator();
18469
    }
18470
 
18471
    public void addToSuccess(Vendor elem) {
18472
      if (this.success == null) {
18473
        this.success = new ArrayList<Vendor>();
18474
      }
18475
      this.success.add(elem);
18476
    }
18477
 
18478
    public List<Vendor> getSuccess() {
18479
      return this.success;
18480
    }
18481
 
18482
    public void setSuccess(List<Vendor> success) {
18483
      this.success = success;
18484
    }
18485
 
18486
    public void unsetSuccess() {
18487
      this.success = null;
18488
    }
18489
 
18490
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18491
    public boolean isSetSuccess() {
18492
      return this.success != null;
18493
    }
18494
 
18495
    public void setSuccessIsSet(boolean value) {
18496
      if (!value) {
18497
        this.success = null;
18498
      }
18499
    }
18500
 
18501
    public void setFieldValue(_Fields field, Object value) {
18502
      switch (field) {
18503
      case SUCCESS:
18504
        if (value == null) {
18505
          unsetSuccess();
18506
        } else {
18507
          setSuccess((List<Vendor>)value);
18508
        }
18509
        break;
18510
 
18511
      }
18512
    }
18513
 
18514
    public Object getFieldValue(_Fields field) {
18515
      switch (field) {
18516
      case SUCCESS:
18517
        return getSuccess();
18518
 
18519
      }
18520
      throw new IllegalStateException();
18521
    }
18522
 
18523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18524
    public boolean isSet(_Fields field) {
18525
      if (field == null) {
18526
        throw new IllegalArgumentException();
18527
      }
18528
 
18529
      switch (field) {
18530
      case SUCCESS:
18531
        return isSetSuccess();
18532
      }
18533
      throw new IllegalStateException();
18534
    }
18535
 
18536
    @Override
18537
    public boolean equals(Object that) {
18538
      if (that == null)
18539
        return false;
18540
      if (that instanceof getAllVendors_result)
18541
        return this.equals((getAllVendors_result)that);
18542
      return false;
18543
    }
18544
 
18545
    public boolean equals(getAllVendors_result that) {
18546
      if (that == null)
18547
        return false;
18548
 
18549
      boolean this_present_success = true && this.isSetSuccess();
18550
      boolean that_present_success = true && that.isSetSuccess();
18551
      if (this_present_success || that_present_success) {
18552
        if (!(this_present_success && that_present_success))
18553
          return false;
18554
        if (!this.success.equals(that.success))
18555
          return false;
18556
      }
18557
 
18558
      return true;
18559
    }
18560
 
18561
    @Override
18562
    public int hashCode() {
18563
      return 0;
18564
    }
18565
 
18566
    public int compareTo(getAllVendors_result other) {
18567
      if (!getClass().equals(other.getClass())) {
18568
        return getClass().getName().compareTo(other.getClass().getName());
18569
      }
18570
 
18571
      int lastComparison = 0;
18572
      getAllVendors_result typedOther = (getAllVendors_result)other;
18573
 
18574
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18575
      if (lastComparison != 0) {
18576
        return lastComparison;
18577
      }
18578
      if (isSetSuccess()) {
18579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18580
        if (lastComparison != 0) {
18581
          return lastComparison;
18582
        }
18583
      }
18584
      return 0;
18585
    }
18586
 
18587
    public _Fields fieldForId(int fieldId) {
18588
      return _Fields.findByThriftId(fieldId);
18589
    }
18590
 
18591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18592
      org.apache.thrift.protocol.TField field;
18593
      iprot.readStructBegin();
18594
      while (true)
18595
      {
18596
        field = iprot.readFieldBegin();
18597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18598
          break;
18599
        }
18600
        switch (field.id) {
18601
          case 0: // SUCCESS
18602
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18603
              {
18604
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18605
                this.success = new ArrayList<Vendor>(_list36.size);
18606
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18607
                {
18608
                  Vendor _elem38; // required
18609
                  _elem38 = new Vendor();
18610
                  _elem38.read(iprot);
18611
                  this.success.add(_elem38);
18612
                }
18613
                iprot.readListEnd();
18614
              }
18615
            } else { 
18616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18617
            }
18618
            break;
18619
          default:
18620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18621
        }
18622
        iprot.readFieldEnd();
18623
      }
18624
      iprot.readStructEnd();
18625
      validate();
18626
    }
18627
 
18628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18629
      oprot.writeStructBegin(STRUCT_DESC);
18630
 
18631
      if (this.isSetSuccess()) {
18632
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18633
        {
18634
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18635
          for (Vendor _iter39 : this.success)
18636
          {
18637
            _iter39.write(oprot);
18638
          }
18639
          oprot.writeListEnd();
18640
        }
18641
        oprot.writeFieldEnd();
18642
      }
18643
      oprot.writeFieldStop();
18644
      oprot.writeStructEnd();
18645
    }
18646
 
18647
    @Override
18648
    public String toString() {
18649
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
18650
      boolean first = true;
18651
 
18652
      sb.append("success:");
18653
      if (this.success == null) {
18654
        sb.append("null");
18655
      } else {
18656
        sb.append(this.success);
18657
      }
18658
      first = false;
18659
      sb.append(")");
18660
      return sb.toString();
18661
    }
18662
 
18663
    public void validate() throws org.apache.thrift.TException {
18664
      // check for required fields
18665
    }
18666
 
18667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18668
      try {
18669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18670
      } catch (org.apache.thrift.TException te) {
18671
        throw new java.io.IOException(te);
18672
      }
18673
    }
18674
 
18675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18676
      try {
18677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18678
      } catch (org.apache.thrift.TException te) {
18679
        throw new java.io.IOException(te);
18680
      }
18681
    }
18682
 
18683
  }
18684
 
18685
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
18686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
18687
 
18688
    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);
18689
    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);
18690
 
18691
    private String key; // required
18692
    private VendorItemMapping vendorItemMapping; // required
18693
 
18694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18696
      KEY((short)1, "key"),
18697
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
18698
 
18699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18700
 
18701
      static {
18702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18703
          byName.put(field.getFieldName(), field);
18704
        }
18705
      }
18706
 
18707
      /**
18708
       * Find the _Fields constant that matches fieldId, or null if its not found.
18709
       */
18710
      public static _Fields findByThriftId(int fieldId) {
18711
        switch(fieldId) {
18712
          case 1: // KEY
18713
            return KEY;
18714
          case 2: // VENDOR_ITEM_MAPPING
18715
            return VENDOR_ITEM_MAPPING;
18716
          default:
18717
            return null;
18718
        }
18719
      }
18720
 
18721
      /**
18722
       * Find the _Fields constant that matches fieldId, throwing an exception
18723
       * if it is not found.
18724
       */
18725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18726
        _Fields fields = findByThriftId(fieldId);
18727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18728
        return fields;
18729
      }
18730
 
18731
      /**
18732
       * Find the _Fields constant that matches name, or null if its not found.
18733
       */
18734
      public static _Fields findByName(String name) {
18735
        return byName.get(name);
18736
      }
18737
 
18738
      private final short _thriftId;
18739
      private final String _fieldName;
18740
 
18741
      _Fields(short thriftId, String fieldName) {
18742
        _thriftId = thriftId;
18743
        _fieldName = fieldName;
18744
      }
18745
 
18746
      public short getThriftFieldId() {
18747
        return _thriftId;
18748
      }
18749
 
18750
      public String getFieldName() {
18751
        return _fieldName;
18752
      }
18753
    }
18754
 
18755
    // isset id assignments
18756
 
18757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18758
    static {
18759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18760
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18762
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18763
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
18764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
18766
    }
18767
 
18768
    public addVendorItemMapping_args() {
18769
    }
18770
 
18771
    public addVendorItemMapping_args(
18772
      String key,
18773
      VendorItemMapping vendorItemMapping)
18774
    {
18775
      this();
18776
      this.key = key;
18777
      this.vendorItemMapping = vendorItemMapping;
18778
    }
18779
 
18780
    /**
18781
     * Performs a deep copy on <i>other</i>.
18782
     */
18783
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
18784
      if (other.isSetKey()) {
18785
        this.key = other.key;
18786
      }
18787
      if (other.isSetVendorItemMapping()) {
18788
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
18789
      }
18790
    }
18791
 
18792
    public addVendorItemMapping_args deepCopy() {
18793
      return new addVendorItemMapping_args(this);
18794
    }
18795
 
18796
    @Override
18797
    public void clear() {
18798
      this.key = null;
18799
      this.vendorItemMapping = null;
18800
    }
18801
 
18802
    public String getKey() {
18803
      return this.key;
18804
    }
18805
 
18806
    public void setKey(String key) {
18807
      this.key = key;
18808
    }
18809
 
18810
    public void unsetKey() {
18811
      this.key = null;
18812
    }
18813
 
18814
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
18815
    public boolean isSetKey() {
18816
      return this.key != null;
18817
    }
18818
 
18819
    public void setKeyIsSet(boolean value) {
18820
      if (!value) {
18821
        this.key = null;
18822
      }
18823
    }
18824
 
18825
    public VendorItemMapping getVendorItemMapping() {
18826
      return this.vendorItemMapping;
18827
    }
18828
 
18829
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
18830
      this.vendorItemMapping = vendorItemMapping;
18831
    }
18832
 
18833
    public void unsetVendorItemMapping() {
18834
      this.vendorItemMapping = null;
18835
    }
18836
 
18837
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
18838
    public boolean isSetVendorItemMapping() {
18839
      return this.vendorItemMapping != null;
18840
    }
18841
 
18842
    public void setVendorItemMappingIsSet(boolean value) {
18843
      if (!value) {
18844
        this.vendorItemMapping = null;
18845
      }
18846
    }
18847
 
18848
    public void setFieldValue(_Fields field, Object value) {
18849
      switch (field) {
18850
      case KEY:
18851
        if (value == null) {
18852
          unsetKey();
18853
        } else {
18854
          setKey((String)value);
18855
        }
18856
        break;
18857
 
18858
      case VENDOR_ITEM_MAPPING:
18859
        if (value == null) {
18860
          unsetVendorItemMapping();
18861
        } else {
18862
          setVendorItemMapping((VendorItemMapping)value);
18863
        }
18864
        break;
18865
 
18866
      }
18867
    }
18868
 
18869
    public Object getFieldValue(_Fields field) {
18870
      switch (field) {
18871
      case KEY:
18872
        return getKey();
18873
 
18874
      case VENDOR_ITEM_MAPPING:
18875
        return getVendorItemMapping();
18876
 
18877
      }
18878
      throw new IllegalStateException();
18879
    }
18880
 
18881
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18882
    public boolean isSet(_Fields field) {
18883
      if (field == null) {
18884
        throw new IllegalArgumentException();
18885
      }
18886
 
18887
      switch (field) {
18888
      case KEY:
18889
        return isSetKey();
18890
      case VENDOR_ITEM_MAPPING:
18891
        return isSetVendorItemMapping();
18892
      }
18893
      throw new IllegalStateException();
18894
    }
18895
 
18896
    @Override
18897
    public boolean equals(Object that) {
18898
      if (that == null)
18899
        return false;
18900
      if (that instanceof addVendorItemMapping_args)
18901
        return this.equals((addVendorItemMapping_args)that);
18902
      return false;
18903
    }
18904
 
18905
    public boolean equals(addVendorItemMapping_args that) {
18906
      if (that == null)
18907
        return false;
18908
 
18909
      boolean this_present_key = true && this.isSetKey();
18910
      boolean that_present_key = true && that.isSetKey();
18911
      if (this_present_key || that_present_key) {
18912
        if (!(this_present_key && that_present_key))
18913
          return false;
18914
        if (!this.key.equals(that.key))
18915
          return false;
18916
      }
18917
 
18918
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
18919
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
18920
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
18921
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
18922
          return false;
18923
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
18924
          return false;
18925
      }
18926
 
18927
      return true;
18928
    }
18929
 
18930
    @Override
18931
    public int hashCode() {
18932
      return 0;
18933
    }
18934
 
18935
    public int compareTo(addVendorItemMapping_args other) {
18936
      if (!getClass().equals(other.getClass())) {
18937
        return getClass().getName().compareTo(other.getClass().getName());
18938
      }
18939
 
18940
      int lastComparison = 0;
18941
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
18942
 
18943
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
18944
      if (lastComparison != 0) {
18945
        return lastComparison;
18946
      }
18947
      if (isSetKey()) {
18948
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
18949
        if (lastComparison != 0) {
18950
          return lastComparison;
18951
        }
18952
      }
18953
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
18954
      if (lastComparison != 0) {
18955
        return lastComparison;
18956
      }
18957
      if (isSetVendorItemMapping()) {
18958
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
18959
        if (lastComparison != 0) {
18960
          return lastComparison;
18961
        }
18962
      }
18963
      return 0;
18964
    }
18965
 
18966
    public _Fields fieldForId(int fieldId) {
18967
      return _Fields.findByThriftId(fieldId);
18968
    }
18969
 
18970
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18971
      org.apache.thrift.protocol.TField field;
18972
      iprot.readStructBegin();
18973
      while (true)
18974
      {
18975
        field = iprot.readFieldBegin();
18976
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18977
          break;
18978
        }
18979
        switch (field.id) {
18980
          case 1: // KEY
18981
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18982
              this.key = iprot.readString();
18983
            } else { 
18984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18985
            }
18986
            break;
18987
          case 2: // VENDOR_ITEM_MAPPING
18988
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18989
              this.vendorItemMapping = new VendorItemMapping();
18990
              this.vendorItemMapping.read(iprot);
18991
            } else { 
18992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18993
            }
18994
            break;
18995
          default:
18996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18997
        }
18998
        iprot.readFieldEnd();
18999
      }
19000
      iprot.readStructEnd();
19001
      validate();
19002
    }
19003
 
19004
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19005
      validate();
19006
 
19007
      oprot.writeStructBegin(STRUCT_DESC);
19008
      if (this.key != null) {
19009
        oprot.writeFieldBegin(KEY_FIELD_DESC);
19010
        oprot.writeString(this.key);
19011
        oprot.writeFieldEnd();
19012
      }
19013
      if (this.vendorItemMapping != null) {
19014
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
19015
        this.vendorItemMapping.write(oprot);
19016
        oprot.writeFieldEnd();
19017
      }
19018
      oprot.writeFieldStop();
19019
      oprot.writeStructEnd();
19020
    }
19021
 
19022
    @Override
19023
    public String toString() {
19024
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
19025
      boolean first = true;
19026
 
19027
      sb.append("key:");
19028
      if (this.key == null) {
19029
        sb.append("null");
19030
      } else {
19031
        sb.append(this.key);
19032
      }
19033
      first = false;
19034
      if (!first) sb.append(", ");
19035
      sb.append("vendorItemMapping:");
19036
      if (this.vendorItemMapping == null) {
19037
        sb.append("null");
19038
      } else {
19039
        sb.append(this.vendorItemMapping);
19040
      }
19041
      first = false;
19042
      sb.append(")");
19043
      return sb.toString();
19044
    }
19045
 
19046
    public void validate() throws org.apache.thrift.TException {
19047
      // check for required fields
19048
    }
19049
 
19050
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19051
      try {
19052
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19053
      } catch (org.apache.thrift.TException te) {
19054
        throw new java.io.IOException(te);
19055
      }
19056
    }
19057
 
19058
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19059
      try {
19060
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19061
      } catch (org.apache.thrift.TException te) {
19062
        throw new java.io.IOException(te);
19063
      }
19064
    }
19065
 
19066
  }
19067
 
19068
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
19069
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
19070
 
19071
    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);
19072
 
19073
    private InventoryServiceException cex; // required
19074
 
19075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19077
      CEX((short)1, "cex");
19078
 
19079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19080
 
19081
      static {
19082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19083
          byName.put(field.getFieldName(), field);
19084
        }
19085
      }
19086
 
19087
      /**
19088
       * Find the _Fields constant that matches fieldId, or null if its not found.
19089
       */
19090
      public static _Fields findByThriftId(int fieldId) {
19091
        switch(fieldId) {
19092
          case 1: // CEX
19093
            return CEX;
19094
          default:
19095
            return null;
19096
        }
19097
      }
19098
 
19099
      /**
19100
       * Find the _Fields constant that matches fieldId, throwing an exception
19101
       * if it is not found.
19102
       */
19103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19104
        _Fields fields = findByThriftId(fieldId);
19105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19106
        return fields;
19107
      }
19108
 
19109
      /**
19110
       * Find the _Fields constant that matches name, or null if its not found.
19111
       */
19112
      public static _Fields findByName(String name) {
19113
        return byName.get(name);
19114
      }
19115
 
19116
      private final short _thriftId;
19117
      private final String _fieldName;
19118
 
19119
      _Fields(short thriftId, String fieldName) {
19120
        _thriftId = thriftId;
19121
        _fieldName = fieldName;
19122
      }
19123
 
19124
      public short getThriftFieldId() {
19125
        return _thriftId;
19126
      }
19127
 
19128
      public String getFieldName() {
19129
        return _fieldName;
19130
      }
19131
    }
19132
 
19133
    // isset id assignments
19134
 
19135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19136
    static {
19137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19138
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19140
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19141
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
19142
    }
19143
 
19144
    public addVendorItemMapping_result() {
19145
    }
19146
 
19147
    public addVendorItemMapping_result(
19148
      InventoryServiceException cex)
19149
    {
19150
      this();
19151
      this.cex = cex;
19152
    }
19153
 
19154
    /**
19155
     * Performs a deep copy on <i>other</i>.
19156
     */
19157
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
19158
      if (other.isSetCex()) {
19159
        this.cex = new InventoryServiceException(other.cex);
19160
      }
19161
    }
19162
 
19163
    public addVendorItemMapping_result deepCopy() {
19164
      return new addVendorItemMapping_result(this);
19165
    }
19166
 
19167
    @Override
19168
    public void clear() {
19169
      this.cex = null;
19170
    }
19171
 
19172
    public InventoryServiceException getCex() {
19173
      return this.cex;
19174
    }
19175
 
19176
    public void setCex(InventoryServiceException cex) {
19177
      this.cex = cex;
19178
    }
19179
 
19180
    public void unsetCex() {
19181
      this.cex = null;
19182
    }
19183
 
19184
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19185
    public boolean isSetCex() {
19186
      return this.cex != null;
19187
    }
19188
 
19189
    public void setCexIsSet(boolean value) {
19190
      if (!value) {
19191
        this.cex = null;
19192
      }
19193
    }
19194
 
19195
    public void setFieldValue(_Fields field, Object value) {
19196
      switch (field) {
19197
      case CEX:
19198
        if (value == null) {
19199
          unsetCex();
19200
        } else {
19201
          setCex((InventoryServiceException)value);
19202
        }
19203
        break;
19204
 
19205
      }
19206
    }
19207
 
19208
    public Object getFieldValue(_Fields field) {
19209
      switch (field) {
19210
      case CEX:
19211
        return getCex();
19212
 
19213
      }
19214
      throw new IllegalStateException();
19215
    }
19216
 
19217
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19218
    public boolean isSet(_Fields field) {
19219
      if (field == null) {
19220
        throw new IllegalArgumentException();
19221
      }
19222
 
19223
      switch (field) {
19224
      case CEX:
19225
        return isSetCex();
19226
      }
19227
      throw new IllegalStateException();
19228
    }
19229
 
19230
    @Override
19231
    public boolean equals(Object that) {
19232
      if (that == null)
19233
        return false;
19234
      if (that instanceof addVendorItemMapping_result)
19235
        return this.equals((addVendorItemMapping_result)that);
19236
      return false;
19237
    }
19238
 
19239
    public boolean equals(addVendorItemMapping_result that) {
19240
      if (that == null)
19241
        return false;
19242
 
19243
      boolean this_present_cex = true && this.isSetCex();
19244
      boolean that_present_cex = true && that.isSetCex();
19245
      if (this_present_cex || that_present_cex) {
19246
        if (!(this_present_cex && that_present_cex))
19247
          return false;
19248
        if (!this.cex.equals(that.cex))
19249
          return false;
19250
      }
19251
 
19252
      return true;
19253
    }
19254
 
19255
    @Override
19256
    public int hashCode() {
19257
      return 0;
19258
    }
19259
 
19260
    public int compareTo(addVendorItemMapping_result other) {
19261
      if (!getClass().equals(other.getClass())) {
19262
        return getClass().getName().compareTo(other.getClass().getName());
19263
      }
19264
 
19265
      int lastComparison = 0;
19266
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
19267
 
19268
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19269
      if (lastComparison != 0) {
19270
        return lastComparison;
19271
      }
19272
      if (isSetCex()) {
19273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19274
        if (lastComparison != 0) {
19275
          return lastComparison;
19276
        }
19277
      }
19278
      return 0;
19279
    }
19280
 
19281
    public _Fields fieldForId(int fieldId) {
19282
      return _Fields.findByThriftId(fieldId);
19283
    }
19284
 
19285
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19286
      org.apache.thrift.protocol.TField field;
19287
      iprot.readStructBegin();
19288
      while (true)
19289
      {
19290
        field = iprot.readFieldBegin();
19291
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19292
          break;
19293
        }
19294
        switch (field.id) {
19295
          case 1: // CEX
19296
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19297
              this.cex = new InventoryServiceException();
19298
              this.cex.read(iprot);
19299
            } else { 
19300
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19301
            }
19302
            break;
19303
          default:
19304
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19305
        }
19306
        iprot.readFieldEnd();
19307
      }
19308
      iprot.readStructEnd();
19309
      validate();
19310
    }
19311
 
19312
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19313
      oprot.writeStructBegin(STRUCT_DESC);
19314
 
19315
      if (this.isSetCex()) {
19316
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19317
        this.cex.write(oprot);
19318
        oprot.writeFieldEnd();
19319
      }
19320
      oprot.writeFieldStop();
19321
      oprot.writeStructEnd();
19322
    }
19323
 
19324
    @Override
19325
    public String toString() {
19326
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
19327
      boolean first = true;
19328
 
19329
      sb.append("cex:");
19330
      if (this.cex == null) {
19331
        sb.append("null");
19332
      } else {
19333
        sb.append(this.cex);
19334
      }
19335
      first = false;
19336
      sb.append(")");
19337
      return sb.toString();
19338
    }
19339
 
19340
    public void validate() throws org.apache.thrift.TException {
19341
      // check for required fields
19342
    }
19343
 
19344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19345
      try {
19346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19347
      } catch (org.apache.thrift.TException te) {
19348
        throw new java.io.IOException(te);
19349
      }
19350
    }
19351
 
19352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19353
      try {
19354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19355
      } catch (org.apache.thrift.TException te) {
19356
        throw new java.io.IOException(te);
19357
      }
19358
    }
19359
 
19360
  }
19361
 
19362
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
19363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
19364
 
19365
    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);
19366
 
19367
    private long itemId; // required
19368
 
19369
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19370
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19371
      ITEM_ID((short)1, "itemId");
19372
 
19373
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19374
 
19375
      static {
19376
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19377
          byName.put(field.getFieldName(), field);
19378
        }
19379
      }
19380
 
19381
      /**
19382
       * Find the _Fields constant that matches fieldId, or null if its not found.
19383
       */
19384
      public static _Fields findByThriftId(int fieldId) {
19385
        switch(fieldId) {
19386
          case 1: // ITEM_ID
19387
            return ITEM_ID;
19388
          default:
19389
            return null;
19390
        }
19391
      }
19392
 
19393
      /**
19394
       * Find the _Fields constant that matches fieldId, throwing an exception
19395
       * if it is not found.
19396
       */
19397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19398
        _Fields fields = findByThriftId(fieldId);
19399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19400
        return fields;
19401
      }
19402
 
19403
      /**
19404
       * Find the _Fields constant that matches name, or null if its not found.
19405
       */
19406
      public static _Fields findByName(String name) {
19407
        return byName.get(name);
19408
      }
19409
 
19410
      private final short _thriftId;
19411
      private final String _fieldName;
19412
 
19413
      _Fields(short thriftId, String fieldName) {
19414
        _thriftId = thriftId;
19415
        _fieldName = fieldName;
19416
      }
19417
 
19418
      public short getThriftFieldId() {
19419
        return _thriftId;
19420
      }
19421
 
19422
      public String getFieldName() {
19423
        return _fieldName;
19424
      }
19425
    }
19426
 
19427
    // isset id assignments
19428
    private static final int __ITEMID_ISSET_ID = 0;
19429
    private BitSet __isset_bit_vector = new BitSet(1);
19430
 
19431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19432
    static {
19433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19434
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19435
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
19438
    }
19439
 
19440
    public getVendorItemMappings_args() {
19441
    }
19442
 
19443
    public getVendorItemMappings_args(
19444
      long itemId)
19445
    {
19446
      this();
19447
      this.itemId = itemId;
19448
      setItemIdIsSet(true);
19449
    }
19450
 
19451
    /**
19452
     * Performs a deep copy on <i>other</i>.
19453
     */
19454
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
19455
      __isset_bit_vector.clear();
19456
      __isset_bit_vector.or(other.__isset_bit_vector);
19457
      this.itemId = other.itemId;
19458
    }
19459
 
19460
    public getVendorItemMappings_args deepCopy() {
19461
      return new getVendorItemMappings_args(this);
19462
    }
19463
 
19464
    @Override
19465
    public void clear() {
19466
      setItemIdIsSet(false);
19467
      this.itemId = 0;
19468
    }
19469
 
19470
    public long getItemId() {
19471
      return this.itemId;
19472
    }
19473
 
19474
    public void setItemId(long itemId) {
19475
      this.itemId = itemId;
19476
      setItemIdIsSet(true);
19477
    }
19478
 
19479
    public void unsetItemId() {
19480
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19481
    }
19482
 
19483
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19484
    public boolean isSetItemId() {
19485
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19486
    }
19487
 
19488
    public void setItemIdIsSet(boolean value) {
19489
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19490
    }
19491
 
19492
    public void setFieldValue(_Fields field, Object value) {
19493
      switch (field) {
19494
      case ITEM_ID:
19495
        if (value == null) {
19496
          unsetItemId();
19497
        } else {
19498
          setItemId((Long)value);
19499
        }
19500
        break;
19501
 
19502
      }
19503
    }
19504
 
19505
    public Object getFieldValue(_Fields field) {
19506
      switch (field) {
19507
      case ITEM_ID:
19508
        return Long.valueOf(getItemId());
19509
 
19510
      }
19511
      throw new IllegalStateException();
19512
    }
19513
 
19514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19515
    public boolean isSet(_Fields field) {
19516
      if (field == null) {
19517
        throw new IllegalArgumentException();
19518
      }
19519
 
19520
      switch (field) {
19521
      case ITEM_ID:
19522
        return isSetItemId();
19523
      }
19524
      throw new IllegalStateException();
19525
    }
19526
 
19527
    @Override
19528
    public boolean equals(Object that) {
19529
      if (that == null)
19530
        return false;
19531
      if (that instanceof getVendorItemMappings_args)
19532
        return this.equals((getVendorItemMappings_args)that);
19533
      return false;
19534
    }
19535
 
19536
    public boolean equals(getVendorItemMappings_args that) {
19537
      if (that == null)
19538
        return false;
19539
 
19540
      boolean this_present_itemId = true;
19541
      boolean that_present_itemId = true;
19542
      if (this_present_itemId || that_present_itemId) {
19543
        if (!(this_present_itemId && that_present_itemId))
19544
          return false;
19545
        if (this.itemId != that.itemId)
19546
          return false;
19547
      }
19548
 
19549
      return true;
19550
    }
19551
 
19552
    @Override
19553
    public int hashCode() {
19554
      return 0;
19555
    }
19556
 
19557
    public int compareTo(getVendorItemMappings_args other) {
19558
      if (!getClass().equals(other.getClass())) {
19559
        return getClass().getName().compareTo(other.getClass().getName());
19560
      }
19561
 
19562
      int lastComparison = 0;
19563
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
19564
 
19565
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19566
      if (lastComparison != 0) {
19567
        return lastComparison;
19568
      }
19569
      if (isSetItemId()) {
19570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19571
        if (lastComparison != 0) {
19572
          return lastComparison;
19573
        }
19574
      }
19575
      return 0;
19576
    }
19577
 
19578
    public _Fields fieldForId(int fieldId) {
19579
      return _Fields.findByThriftId(fieldId);
19580
    }
19581
 
19582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19583
      org.apache.thrift.protocol.TField field;
19584
      iprot.readStructBegin();
19585
      while (true)
19586
      {
19587
        field = iprot.readFieldBegin();
19588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19589
          break;
19590
        }
19591
        switch (field.id) {
19592
          case 1: // ITEM_ID
19593
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19594
              this.itemId = iprot.readI64();
19595
              setItemIdIsSet(true);
19596
            } else { 
19597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19598
            }
19599
            break;
19600
          default:
19601
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19602
        }
19603
        iprot.readFieldEnd();
19604
      }
19605
      iprot.readStructEnd();
19606
      validate();
19607
    }
19608
 
19609
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19610
      validate();
19611
 
19612
      oprot.writeStructBegin(STRUCT_DESC);
19613
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19614
      oprot.writeI64(this.itemId);
19615
      oprot.writeFieldEnd();
19616
      oprot.writeFieldStop();
19617
      oprot.writeStructEnd();
19618
    }
19619
 
19620
    @Override
19621
    public String toString() {
19622
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
19623
      boolean first = true;
19624
 
19625
      sb.append("itemId:");
19626
      sb.append(this.itemId);
19627
      first = false;
19628
      sb.append(")");
19629
      return sb.toString();
19630
    }
19631
 
19632
    public void validate() throws org.apache.thrift.TException {
19633
      // check for required fields
19634
    }
19635
 
19636
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19637
      try {
19638
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19639
      } catch (org.apache.thrift.TException te) {
19640
        throw new java.io.IOException(te);
19641
      }
19642
    }
19643
 
19644
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19645
      try {
19646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19647
      } catch (org.apache.thrift.TException te) {
19648
        throw new java.io.IOException(te);
19649
      }
19650
    }
19651
 
19652
  }
19653
 
19654
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
19655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
19656
 
19657
    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);
19658
    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);
19659
 
19660
    private List<VendorItemMapping> success; // required
19661
    private InventoryServiceException cex; // required
19662
 
19663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19664
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19665
      SUCCESS((short)0, "success"),
19666
      CEX((short)1, "cex");
19667
 
19668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19669
 
19670
      static {
19671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19672
          byName.put(field.getFieldName(), field);
19673
        }
19674
      }
19675
 
19676
      /**
19677
       * Find the _Fields constant that matches fieldId, or null if its not found.
19678
       */
19679
      public static _Fields findByThriftId(int fieldId) {
19680
        switch(fieldId) {
19681
          case 0: // SUCCESS
19682
            return SUCCESS;
19683
          case 1: // CEX
19684
            return CEX;
19685
          default:
19686
            return null;
19687
        }
19688
      }
19689
 
19690
      /**
19691
       * Find the _Fields constant that matches fieldId, throwing an exception
19692
       * if it is not found.
19693
       */
19694
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19695
        _Fields fields = findByThriftId(fieldId);
19696
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19697
        return fields;
19698
      }
19699
 
19700
      /**
19701
       * Find the _Fields constant that matches name, or null if its not found.
19702
       */
19703
      public static _Fields findByName(String name) {
19704
        return byName.get(name);
19705
      }
19706
 
19707
      private final short _thriftId;
19708
      private final String _fieldName;
19709
 
19710
      _Fields(short thriftId, String fieldName) {
19711
        _thriftId = thriftId;
19712
        _fieldName = fieldName;
19713
      }
19714
 
19715
      public short getThriftFieldId() {
19716
        return _thriftId;
19717
      }
19718
 
19719
      public String getFieldName() {
19720
        return _fieldName;
19721
      }
19722
    }
19723
 
19724
    // isset id assignments
19725
 
19726
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19727
    static {
19728
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19729
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19730
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19731
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
19732
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19733
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19734
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19735
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
19736
    }
19737
 
19738
    public getVendorItemMappings_result() {
19739
    }
19740
 
19741
    public getVendorItemMappings_result(
19742
      List<VendorItemMapping> success,
19743
      InventoryServiceException cex)
19744
    {
19745
      this();
19746
      this.success = success;
19747
      this.cex = cex;
19748
    }
19749
 
19750
    /**
19751
     * Performs a deep copy on <i>other</i>.
19752
     */
19753
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
19754
      if (other.isSetSuccess()) {
19755
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
19756
        for (VendorItemMapping other_element : other.success) {
19757
          __this__success.add(new VendorItemMapping(other_element));
19758
        }
19759
        this.success = __this__success;
19760
      }
19761
      if (other.isSetCex()) {
19762
        this.cex = new InventoryServiceException(other.cex);
19763
      }
19764
    }
19765
 
19766
    public getVendorItemMappings_result deepCopy() {
19767
      return new getVendorItemMappings_result(this);
19768
    }
19769
 
19770
    @Override
19771
    public void clear() {
19772
      this.success = null;
19773
      this.cex = null;
19774
    }
19775
 
19776
    public int getSuccessSize() {
19777
      return (this.success == null) ? 0 : this.success.size();
19778
    }
19779
 
19780
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
19781
      return (this.success == null) ? null : this.success.iterator();
19782
    }
19783
 
19784
    public void addToSuccess(VendorItemMapping elem) {
19785
      if (this.success == null) {
19786
        this.success = new ArrayList<VendorItemMapping>();
19787
      }
19788
      this.success.add(elem);
19789
    }
19790
 
19791
    public List<VendorItemMapping> getSuccess() {
19792
      return this.success;
19793
    }
19794
 
19795
    public void setSuccess(List<VendorItemMapping> success) {
19796
      this.success = success;
19797
    }
19798
 
19799
    public void unsetSuccess() {
19800
      this.success = null;
19801
    }
19802
 
19803
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19804
    public boolean isSetSuccess() {
19805
      return this.success != null;
19806
    }
19807
 
19808
    public void setSuccessIsSet(boolean value) {
19809
      if (!value) {
19810
        this.success = null;
19811
      }
19812
    }
19813
 
19814
    public InventoryServiceException getCex() {
19815
      return this.cex;
19816
    }
19817
 
19818
    public void setCex(InventoryServiceException cex) {
19819
      this.cex = cex;
19820
    }
19821
 
19822
    public void unsetCex() {
19823
      this.cex = null;
19824
    }
19825
 
19826
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19827
    public boolean isSetCex() {
19828
      return this.cex != null;
19829
    }
19830
 
19831
    public void setCexIsSet(boolean value) {
19832
      if (!value) {
19833
        this.cex = null;
19834
      }
19835
    }
19836
 
19837
    public void setFieldValue(_Fields field, Object value) {
19838
      switch (field) {
19839
      case SUCCESS:
19840
        if (value == null) {
19841
          unsetSuccess();
19842
        } else {
19843
          setSuccess((List<VendorItemMapping>)value);
19844
        }
19845
        break;
19846
 
19847
      case CEX:
19848
        if (value == null) {
19849
          unsetCex();
19850
        } else {
19851
          setCex((InventoryServiceException)value);
19852
        }
19853
        break;
19854
 
19855
      }
19856
    }
19857
 
19858
    public Object getFieldValue(_Fields field) {
19859
      switch (field) {
19860
      case SUCCESS:
19861
        return getSuccess();
19862
 
19863
      case CEX:
19864
        return getCex();
19865
 
19866
      }
19867
      throw new IllegalStateException();
19868
    }
19869
 
19870
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19871
    public boolean isSet(_Fields field) {
19872
      if (field == null) {
19873
        throw new IllegalArgumentException();
19874
      }
19875
 
19876
      switch (field) {
19877
      case SUCCESS:
19878
        return isSetSuccess();
19879
      case CEX:
19880
        return isSetCex();
19881
      }
19882
      throw new IllegalStateException();
19883
    }
19884
 
19885
    @Override
19886
    public boolean equals(Object that) {
19887
      if (that == null)
19888
        return false;
19889
      if (that instanceof getVendorItemMappings_result)
19890
        return this.equals((getVendorItemMappings_result)that);
19891
      return false;
19892
    }
19893
 
19894
    public boolean equals(getVendorItemMappings_result that) {
19895
      if (that == null)
19896
        return false;
19897
 
19898
      boolean this_present_success = true && this.isSetSuccess();
19899
      boolean that_present_success = true && that.isSetSuccess();
19900
      if (this_present_success || that_present_success) {
19901
        if (!(this_present_success && that_present_success))
19902
          return false;
19903
        if (!this.success.equals(that.success))
19904
          return false;
19905
      }
19906
 
19907
      boolean this_present_cex = true && this.isSetCex();
19908
      boolean that_present_cex = true && that.isSetCex();
19909
      if (this_present_cex || that_present_cex) {
19910
        if (!(this_present_cex && that_present_cex))
19911
          return false;
19912
        if (!this.cex.equals(that.cex))
19913
          return false;
19914
      }
19915
 
19916
      return true;
19917
    }
19918
 
19919
    @Override
19920
    public int hashCode() {
19921
      return 0;
19922
    }
19923
 
19924
    public int compareTo(getVendorItemMappings_result other) {
19925
      if (!getClass().equals(other.getClass())) {
19926
        return getClass().getName().compareTo(other.getClass().getName());
19927
      }
19928
 
19929
      int lastComparison = 0;
19930
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
19931
 
19932
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19933
      if (lastComparison != 0) {
19934
        return lastComparison;
19935
      }
19936
      if (isSetSuccess()) {
19937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19938
        if (lastComparison != 0) {
19939
          return lastComparison;
19940
        }
19941
      }
19942
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19943
      if (lastComparison != 0) {
19944
        return lastComparison;
19945
      }
19946
      if (isSetCex()) {
19947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19948
        if (lastComparison != 0) {
19949
          return lastComparison;
19950
        }
19951
      }
19952
      return 0;
19953
    }
19954
 
19955
    public _Fields fieldForId(int fieldId) {
19956
      return _Fields.findByThriftId(fieldId);
19957
    }
19958
 
19959
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19960
      org.apache.thrift.protocol.TField field;
19961
      iprot.readStructBegin();
19962
      while (true)
19963
      {
19964
        field = iprot.readFieldBegin();
19965
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19966
          break;
19967
        }
19968
        switch (field.id) {
19969
          case 0: // SUCCESS
19970
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19971
              {
19972
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
19973
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
19974
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
19975
                {
19976
                  VendorItemMapping _elem42; // required
19977
                  _elem42 = new VendorItemMapping();
19978
                  _elem42.read(iprot);
19979
                  this.success.add(_elem42);
19980
                }
19981
                iprot.readListEnd();
19982
              }
19983
            } else { 
19984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19985
            }
19986
            break;
19987
          case 1: // CEX
19988
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19989
              this.cex = new InventoryServiceException();
19990
              this.cex.read(iprot);
19991
            } else { 
19992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19993
            }
19994
            break;
19995
          default:
19996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19997
        }
19998
        iprot.readFieldEnd();
19999
      }
20000
      iprot.readStructEnd();
20001
      validate();
20002
    }
20003
 
20004
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20005
      oprot.writeStructBegin(STRUCT_DESC);
20006
 
20007
      if (this.isSetSuccess()) {
20008
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20009
        {
20010
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20011
          for (VendorItemMapping _iter43 : this.success)
20012
          {
20013
            _iter43.write(oprot);
20014
          }
20015
          oprot.writeListEnd();
20016
        }
20017
        oprot.writeFieldEnd();
20018
      } else if (this.isSetCex()) {
20019
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20020
        this.cex.write(oprot);
20021
        oprot.writeFieldEnd();
20022
      }
20023
      oprot.writeFieldStop();
20024
      oprot.writeStructEnd();
20025
    }
20026
 
20027
    @Override
20028
    public String toString() {
20029
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
20030
      boolean first = true;
20031
 
20032
      sb.append("success:");
20033
      if (this.success == null) {
20034
        sb.append("null");
20035
      } else {
20036
        sb.append(this.success);
20037
      }
20038
      first = false;
20039
      if (!first) sb.append(", ");
20040
      sb.append("cex:");
20041
      if (this.cex == null) {
20042
        sb.append("null");
20043
      } else {
20044
        sb.append(this.cex);
20045
      }
20046
      first = false;
20047
      sb.append(")");
20048
      return sb.toString();
20049
    }
20050
 
20051
    public void validate() throws org.apache.thrift.TException {
20052
      // check for required fields
20053
    }
20054
 
20055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20056
      try {
20057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20058
      } catch (org.apache.thrift.TException te) {
20059
        throw new java.io.IOException(te);
20060
      }
20061
    }
20062
 
20063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20064
      try {
20065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20066
      } catch (org.apache.thrift.TException te) {
20067
        throw new java.io.IOException(te);
20068
      }
20069
    }
20070
 
20071
  }
20072
 
20073
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
20074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
20075
 
20076
    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);
20077
 
20078
    private long vendorid; // required
20079
 
20080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20082
      VENDORID((short)1, "vendorid");
20083
 
20084
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20085
 
20086
      static {
20087
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20088
          byName.put(field.getFieldName(), field);
20089
        }
20090
      }
20091
 
20092
      /**
20093
       * Find the _Fields constant that matches fieldId, or null if its not found.
20094
       */
20095
      public static _Fields findByThriftId(int fieldId) {
20096
        switch(fieldId) {
20097
          case 1: // VENDORID
20098
            return VENDORID;
20099
          default:
20100
            return null;
20101
        }
20102
      }
20103
 
20104
      /**
20105
       * Find the _Fields constant that matches fieldId, throwing an exception
20106
       * if it is not found.
20107
       */
20108
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20109
        _Fields fields = findByThriftId(fieldId);
20110
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20111
        return fields;
20112
      }
20113
 
20114
      /**
20115
       * Find the _Fields constant that matches name, or null if its not found.
20116
       */
20117
      public static _Fields findByName(String name) {
20118
        return byName.get(name);
20119
      }
20120
 
20121
      private final short _thriftId;
20122
      private final String _fieldName;
20123
 
20124
      _Fields(short thriftId, String fieldName) {
20125
        _thriftId = thriftId;
20126
        _fieldName = fieldName;
20127
      }
20128
 
20129
      public short getThriftFieldId() {
20130
        return _thriftId;
20131
      }
20132
 
20133
      public String getFieldName() {
20134
        return _fieldName;
20135
      }
20136
    }
20137
 
20138
    // isset id assignments
20139
    private static final int __VENDORID_ISSET_ID = 0;
20140
    private BitSet __isset_bit_vector = new BitSet(1);
20141
 
20142
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20143
    static {
20144
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20145
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
20149
    }
20150
 
20151
    public getPendingOrdersInventory_args() {
20152
    }
20153
 
20154
    public getPendingOrdersInventory_args(
20155
      long vendorid)
20156
    {
20157
      this();
20158
      this.vendorid = vendorid;
20159
      setVendoridIsSet(true);
20160
    }
20161
 
20162
    /**
20163
     * Performs a deep copy on <i>other</i>.
20164
     */
20165
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
20166
      __isset_bit_vector.clear();
20167
      __isset_bit_vector.or(other.__isset_bit_vector);
20168
      this.vendorid = other.vendorid;
20169
    }
20170
 
20171
    public getPendingOrdersInventory_args deepCopy() {
20172
      return new getPendingOrdersInventory_args(this);
20173
    }
20174
 
20175
    @Override
20176
    public void clear() {
20177
      setVendoridIsSet(false);
20178
      this.vendorid = 0;
20179
    }
20180
 
20181
    public long getVendorid() {
20182
      return this.vendorid;
20183
    }
20184
 
20185
    public void setVendorid(long vendorid) {
20186
      this.vendorid = vendorid;
20187
      setVendoridIsSet(true);
20188
    }
20189
 
20190
    public void unsetVendorid() {
20191
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20192
    }
20193
 
20194
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
20195
    public boolean isSetVendorid() {
20196
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20197
    }
20198
 
20199
    public void setVendoridIsSet(boolean value) {
20200
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20201
    }
20202
 
20203
    public void setFieldValue(_Fields field, Object value) {
20204
      switch (field) {
20205
      case VENDORID:
20206
        if (value == null) {
20207
          unsetVendorid();
20208
        } else {
20209
          setVendorid((Long)value);
20210
        }
20211
        break;
20212
 
20213
      }
20214
    }
20215
 
20216
    public Object getFieldValue(_Fields field) {
20217
      switch (field) {
20218
      case VENDORID:
20219
        return Long.valueOf(getVendorid());
20220
 
20221
      }
20222
      throw new IllegalStateException();
20223
    }
20224
 
20225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20226
    public boolean isSet(_Fields field) {
20227
      if (field == null) {
20228
        throw new IllegalArgumentException();
20229
      }
20230
 
20231
      switch (field) {
20232
      case VENDORID:
20233
        return isSetVendorid();
20234
      }
20235
      throw new IllegalStateException();
20236
    }
20237
 
20238
    @Override
20239
    public boolean equals(Object that) {
20240
      if (that == null)
20241
        return false;
20242
      if (that instanceof getPendingOrdersInventory_args)
20243
        return this.equals((getPendingOrdersInventory_args)that);
20244
      return false;
20245
    }
20246
 
20247
    public boolean equals(getPendingOrdersInventory_args that) {
20248
      if (that == null)
20249
        return false;
20250
 
20251
      boolean this_present_vendorid = true;
20252
      boolean that_present_vendorid = true;
20253
      if (this_present_vendorid || that_present_vendorid) {
20254
        if (!(this_present_vendorid && that_present_vendorid))
20255
          return false;
20256
        if (this.vendorid != that.vendorid)
20257
          return false;
20258
      }
20259
 
20260
      return true;
20261
    }
20262
 
20263
    @Override
20264
    public int hashCode() {
20265
      return 0;
20266
    }
20267
 
20268
    public int compareTo(getPendingOrdersInventory_args other) {
20269
      if (!getClass().equals(other.getClass())) {
20270
        return getClass().getName().compareTo(other.getClass().getName());
20271
      }
20272
 
20273
      int lastComparison = 0;
20274
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
20275
 
20276
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
20277
      if (lastComparison != 0) {
20278
        return lastComparison;
20279
      }
20280
      if (isSetVendorid()) {
20281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
20282
        if (lastComparison != 0) {
20283
          return lastComparison;
20284
        }
20285
      }
20286
      return 0;
20287
    }
20288
 
20289
    public _Fields fieldForId(int fieldId) {
20290
      return _Fields.findByThriftId(fieldId);
20291
    }
20292
 
20293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20294
      org.apache.thrift.protocol.TField field;
20295
      iprot.readStructBegin();
20296
      while (true)
20297
      {
20298
        field = iprot.readFieldBegin();
20299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20300
          break;
20301
        }
20302
        switch (field.id) {
20303
          case 1: // VENDORID
20304
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20305
              this.vendorid = iprot.readI64();
20306
              setVendoridIsSet(true);
20307
            } else { 
20308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20309
            }
20310
            break;
20311
          default:
20312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20313
        }
20314
        iprot.readFieldEnd();
20315
      }
20316
      iprot.readStructEnd();
20317
      validate();
20318
    }
20319
 
20320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20321
      validate();
20322
 
20323
      oprot.writeStructBegin(STRUCT_DESC);
20324
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
20325
      oprot.writeI64(this.vendorid);
20326
      oprot.writeFieldEnd();
20327
      oprot.writeFieldStop();
20328
      oprot.writeStructEnd();
20329
    }
20330
 
20331
    @Override
20332
    public String toString() {
20333
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
20334
      boolean first = true;
20335
 
20336
      sb.append("vendorid:");
20337
      sb.append(this.vendorid);
20338
      first = false;
20339
      sb.append(")");
20340
      return sb.toString();
20341
    }
20342
 
20343
    public void validate() throws org.apache.thrift.TException {
20344
      // check for required fields
20345
    }
20346
 
20347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20348
      try {
20349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20350
      } catch (org.apache.thrift.TException te) {
20351
        throw new java.io.IOException(te);
20352
      }
20353
    }
20354
 
20355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20356
      try {
20357
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20358
        __isset_bit_vector = new BitSet(1);
20359
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20360
      } catch (org.apache.thrift.TException te) {
20361
        throw new java.io.IOException(te);
20362
      }
20363
    }
20364
 
20365
  }
20366
 
20367
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
20368
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
20369
 
20370
    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);
20371
 
20372
    private List<AvailableAndReservedStock> success; // required
20373
 
20374
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20375
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20376
      SUCCESS((short)0, "success");
20377
 
20378
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20379
 
20380
      static {
20381
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20382
          byName.put(field.getFieldName(), field);
20383
        }
20384
      }
20385
 
20386
      /**
20387
       * Find the _Fields constant that matches fieldId, or null if its not found.
20388
       */
20389
      public static _Fields findByThriftId(int fieldId) {
20390
        switch(fieldId) {
20391
          case 0: // SUCCESS
20392
            return SUCCESS;
20393
          default:
20394
            return null;
20395
        }
20396
      }
20397
 
20398
      /**
20399
       * Find the _Fields constant that matches fieldId, throwing an exception
20400
       * if it is not found.
20401
       */
20402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20403
        _Fields fields = findByThriftId(fieldId);
20404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20405
        return fields;
20406
      }
20407
 
20408
      /**
20409
       * Find the _Fields constant that matches name, or null if its not found.
20410
       */
20411
      public static _Fields findByName(String name) {
20412
        return byName.get(name);
20413
      }
20414
 
20415
      private final short _thriftId;
20416
      private final String _fieldName;
20417
 
20418
      _Fields(short thriftId, String fieldName) {
20419
        _thriftId = thriftId;
20420
        _fieldName = fieldName;
20421
      }
20422
 
20423
      public short getThriftFieldId() {
20424
        return _thriftId;
20425
      }
20426
 
20427
      public String getFieldName() {
20428
        return _fieldName;
20429
      }
20430
    }
20431
 
20432
    // isset id assignments
20433
 
20434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20435
    static {
20436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20437
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20438
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20439
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
20440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
20442
    }
20443
 
20444
    public getPendingOrdersInventory_result() {
20445
    }
20446
 
20447
    public getPendingOrdersInventory_result(
20448
      List<AvailableAndReservedStock> success)
20449
    {
20450
      this();
20451
      this.success = success;
20452
    }
20453
 
20454
    /**
20455
     * Performs a deep copy on <i>other</i>.
20456
     */
20457
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
20458
      if (other.isSetSuccess()) {
20459
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
20460
        for (AvailableAndReservedStock other_element : other.success) {
20461
          __this__success.add(new AvailableAndReservedStock(other_element));
20462
        }
20463
        this.success = __this__success;
20464
      }
20465
    }
20466
 
20467
    public getPendingOrdersInventory_result deepCopy() {
20468
      return new getPendingOrdersInventory_result(this);
20469
    }
20470
 
20471
    @Override
20472
    public void clear() {
20473
      this.success = null;
20474
    }
20475
 
20476
    public int getSuccessSize() {
20477
      return (this.success == null) ? 0 : this.success.size();
20478
    }
20479
 
20480
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
20481
      return (this.success == null) ? null : this.success.iterator();
20482
    }
20483
 
20484
    public void addToSuccess(AvailableAndReservedStock elem) {
20485
      if (this.success == null) {
20486
        this.success = new ArrayList<AvailableAndReservedStock>();
20487
      }
20488
      this.success.add(elem);
20489
    }
20490
 
20491
    public List<AvailableAndReservedStock> getSuccess() {
20492
      return this.success;
20493
    }
20494
 
20495
    public void setSuccess(List<AvailableAndReservedStock> success) {
20496
      this.success = success;
20497
    }
20498
 
20499
    public void unsetSuccess() {
20500
      this.success = null;
20501
    }
20502
 
20503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20504
    public boolean isSetSuccess() {
20505
      return this.success != null;
20506
    }
20507
 
20508
    public void setSuccessIsSet(boolean value) {
20509
      if (!value) {
20510
        this.success = null;
20511
      }
20512
    }
20513
 
20514
    public void setFieldValue(_Fields field, Object value) {
20515
      switch (field) {
20516
      case SUCCESS:
20517
        if (value == null) {
20518
          unsetSuccess();
20519
        } else {
20520
          setSuccess((List<AvailableAndReservedStock>)value);
20521
        }
20522
        break;
20523
 
20524
      }
20525
    }
20526
 
20527
    public Object getFieldValue(_Fields field) {
20528
      switch (field) {
20529
      case SUCCESS:
20530
        return getSuccess();
20531
 
20532
      }
20533
      throw new IllegalStateException();
20534
    }
20535
 
20536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20537
    public boolean isSet(_Fields field) {
20538
      if (field == null) {
20539
        throw new IllegalArgumentException();
20540
      }
20541
 
20542
      switch (field) {
20543
      case SUCCESS:
20544
        return isSetSuccess();
20545
      }
20546
      throw new IllegalStateException();
20547
    }
20548
 
20549
    @Override
20550
    public boolean equals(Object that) {
20551
      if (that == null)
20552
        return false;
20553
      if (that instanceof getPendingOrdersInventory_result)
20554
        return this.equals((getPendingOrdersInventory_result)that);
20555
      return false;
20556
    }
20557
 
20558
    public boolean equals(getPendingOrdersInventory_result that) {
20559
      if (that == null)
20560
        return false;
20561
 
20562
      boolean this_present_success = true && this.isSetSuccess();
20563
      boolean that_present_success = true && that.isSetSuccess();
20564
      if (this_present_success || that_present_success) {
20565
        if (!(this_present_success && that_present_success))
20566
          return false;
20567
        if (!this.success.equals(that.success))
20568
          return false;
20569
      }
20570
 
20571
      return true;
20572
    }
20573
 
20574
    @Override
20575
    public int hashCode() {
20576
      return 0;
20577
    }
20578
 
20579
    public int compareTo(getPendingOrdersInventory_result other) {
20580
      if (!getClass().equals(other.getClass())) {
20581
        return getClass().getName().compareTo(other.getClass().getName());
20582
      }
20583
 
20584
      int lastComparison = 0;
20585
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
20586
 
20587
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20588
      if (lastComparison != 0) {
20589
        return lastComparison;
20590
      }
20591
      if (isSetSuccess()) {
20592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20593
        if (lastComparison != 0) {
20594
          return lastComparison;
20595
        }
20596
      }
20597
      return 0;
20598
    }
20599
 
20600
    public _Fields fieldForId(int fieldId) {
20601
      return _Fields.findByThriftId(fieldId);
20602
    }
20603
 
20604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20605
      org.apache.thrift.protocol.TField field;
20606
      iprot.readStructBegin();
20607
      while (true)
20608
      {
20609
        field = iprot.readFieldBegin();
20610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20611
          break;
20612
        }
20613
        switch (field.id) {
20614
          case 0: // SUCCESS
20615
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20616
              {
20617
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
20618
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
20619
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20620
                {
20621
                  AvailableAndReservedStock _elem46; // required
20622
                  _elem46 = new AvailableAndReservedStock();
20623
                  _elem46.read(iprot);
20624
                  this.success.add(_elem46);
20625
                }
20626
                iprot.readListEnd();
20627
              }
20628
            } else { 
20629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20630
            }
20631
            break;
20632
          default:
20633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20634
        }
20635
        iprot.readFieldEnd();
20636
      }
20637
      iprot.readStructEnd();
20638
      validate();
20639
    }
20640
 
20641
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20642
      oprot.writeStructBegin(STRUCT_DESC);
20643
 
20644
      if (this.isSetSuccess()) {
20645
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20646
        {
20647
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20648
          for (AvailableAndReservedStock _iter47 : this.success)
20649
          {
20650
            _iter47.write(oprot);
20651
          }
20652
          oprot.writeListEnd();
20653
        }
20654
        oprot.writeFieldEnd();
20655
      }
20656
      oprot.writeFieldStop();
20657
      oprot.writeStructEnd();
20658
    }
20659
 
20660
    @Override
20661
    public String toString() {
20662
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
20663
      boolean first = true;
20664
 
20665
      sb.append("success:");
20666
      if (this.success == null) {
20667
        sb.append("null");
20668
      } else {
20669
        sb.append(this.success);
20670
      }
20671
      first = false;
20672
      sb.append(")");
20673
      return sb.toString();
20674
    }
20675
 
20676
    public void validate() throws org.apache.thrift.TException {
20677
      // check for required fields
20678
    }
20679
 
20680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20681
      try {
20682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20683
      } catch (org.apache.thrift.TException te) {
20684
        throw new java.io.IOException(te);
20685
      }
20686
    }
20687
 
20688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20689
      try {
20690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20691
      } catch (org.apache.thrift.TException te) {
20692
        throw new java.io.IOException(te);
20693
      }
20694
    }
20695
 
20696
  }
20697
 
20698
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
20699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
20700
 
20701
    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);
20702
    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);
20703
    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);
20704
    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);
20705
    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);
20706
 
20707
    private WarehouseType warehouseType; // required
20708
    private InventoryType inventoryType; // required
20709
    private long vendorId; // required
20710
    private long billingWarehouseId; // required
20711
    private long shippingWarehouseId; // required
20712
 
20713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20715
      /**
20716
       * 
20717
       * @see WarehouseType
20718
       */
20719
      WAREHOUSE_TYPE((short)1, "warehouseType"),
20720
      /**
20721
       * 
20722
       * @see InventoryType
20723
       */
20724
      INVENTORY_TYPE((short)2, "inventoryType"),
20725
      VENDOR_ID((short)3, "vendorId"),
20726
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
20727
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
20728
 
20729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20730
 
20731
      static {
20732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20733
          byName.put(field.getFieldName(), field);
20734
        }
20735
      }
20736
 
20737
      /**
20738
       * Find the _Fields constant that matches fieldId, or null if its not found.
20739
       */
20740
      public static _Fields findByThriftId(int fieldId) {
20741
        switch(fieldId) {
20742
          case 1: // WAREHOUSE_TYPE
20743
            return WAREHOUSE_TYPE;
20744
          case 2: // INVENTORY_TYPE
20745
            return INVENTORY_TYPE;
20746
          case 3: // VENDOR_ID
20747
            return VENDOR_ID;
20748
          case 4: // BILLING_WAREHOUSE_ID
20749
            return BILLING_WAREHOUSE_ID;
20750
          case 5: // SHIPPING_WAREHOUSE_ID
20751
            return SHIPPING_WAREHOUSE_ID;
20752
          default:
20753
            return null;
20754
        }
20755
      }
20756
 
20757
      /**
20758
       * Find the _Fields constant that matches fieldId, throwing an exception
20759
       * if it is not found.
20760
       */
20761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20762
        _Fields fields = findByThriftId(fieldId);
20763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20764
        return fields;
20765
      }
20766
 
20767
      /**
20768
       * Find the _Fields constant that matches name, or null if its not found.
20769
       */
20770
      public static _Fields findByName(String name) {
20771
        return byName.get(name);
20772
      }
20773
 
20774
      private final short _thriftId;
20775
      private final String _fieldName;
20776
 
20777
      _Fields(short thriftId, String fieldName) {
20778
        _thriftId = thriftId;
20779
        _fieldName = fieldName;
20780
      }
20781
 
20782
      public short getThriftFieldId() {
20783
        return _thriftId;
20784
      }
20785
 
20786
      public String getFieldName() {
20787
        return _fieldName;
20788
      }
20789
    }
20790
 
20791
    // isset id assignments
20792
    private static final int __VENDORID_ISSET_ID = 0;
20793
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
20794
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
20795
    private BitSet __isset_bit_vector = new BitSet(3);
20796
 
20797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20798
    static {
20799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20800
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20801
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
20802
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20803
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
20804
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20806
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20808
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20810
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20811
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
20812
    }
20813
 
20814
    public getWarehouses_args() {
20815
    }
20816
 
20817
    public getWarehouses_args(
20818
      WarehouseType warehouseType,
20819
      InventoryType inventoryType,
20820
      long vendorId,
20821
      long billingWarehouseId,
20822
      long shippingWarehouseId)
20823
    {
20824
      this();
20825
      this.warehouseType = warehouseType;
20826
      this.inventoryType = inventoryType;
20827
      this.vendorId = vendorId;
20828
      setVendorIdIsSet(true);
20829
      this.billingWarehouseId = billingWarehouseId;
20830
      setBillingWarehouseIdIsSet(true);
20831
      this.shippingWarehouseId = shippingWarehouseId;
20832
      setShippingWarehouseIdIsSet(true);
20833
    }
20834
 
20835
    /**
20836
     * Performs a deep copy on <i>other</i>.
20837
     */
20838
    public getWarehouses_args(getWarehouses_args other) {
20839
      __isset_bit_vector.clear();
20840
      __isset_bit_vector.or(other.__isset_bit_vector);
20841
      if (other.isSetWarehouseType()) {
20842
        this.warehouseType = other.warehouseType;
20843
      }
20844
      if (other.isSetInventoryType()) {
20845
        this.inventoryType = other.inventoryType;
20846
      }
20847
      this.vendorId = other.vendorId;
20848
      this.billingWarehouseId = other.billingWarehouseId;
20849
      this.shippingWarehouseId = other.shippingWarehouseId;
20850
    }
20851
 
20852
    public getWarehouses_args deepCopy() {
20853
      return new getWarehouses_args(this);
20854
    }
20855
 
20856
    @Override
20857
    public void clear() {
20858
      this.warehouseType = null;
20859
      this.inventoryType = null;
20860
      setVendorIdIsSet(false);
20861
      this.vendorId = 0;
20862
      setBillingWarehouseIdIsSet(false);
20863
      this.billingWarehouseId = 0;
20864
      setShippingWarehouseIdIsSet(false);
20865
      this.shippingWarehouseId = 0;
20866
    }
20867
 
20868
    /**
20869
     * 
20870
     * @see WarehouseType
20871
     */
20872
    public WarehouseType getWarehouseType() {
20873
      return this.warehouseType;
20874
    }
20875
 
20876
    /**
20877
     * 
20878
     * @see WarehouseType
20879
     */
20880
    public void setWarehouseType(WarehouseType warehouseType) {
20881
      this.warehouseType = warehouseType;
20882
    }
20883
 
20884
    public void unsetWarehouseType() {
20885
      this.warehouseType = null;
20886
    }
20887
 
20888
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
20889
    public boolean isSetWarehouseType() {
20890
      return this.warehouseType != null;
20891
    }
20892
 
20893
    public void setWarehouseTypeIsSet(boolean value) {
20894
      if (!value) {
20895
        this.warehouseType = null;
20896
      }
20897
    }
20898
 
20899
    /**
20900
     * 
20901
     * @see InventoryType
20902
     */
20903
    public InventoryType getInventoryType() {
20904
      return this.inventoryType;
20905
    }
20906
 
20907
    /**
20908
     * 
20909
     * @see InventoryType
20910
     */
20911
    public void setInventoryType(InventoryType inventoryType) {
20912
      this.inventoryType = inventoryType;
20913
    }
20914
 
20915
    public void unsetInventoryType() {
20916
      this.inventoryType = null;
20917
    }
20918
 
20919
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
20920
    public boolean isSetInventoryType() {
20921
      return this.inventoryType != null;
20922
    }
20923
 
20924
    public void setInventoryTypeIsSet(boolean value) {
20925
      if (!value) {
20926
        this.inventoryType = null;
20927
      }
20928
    }
20929
 
20930
    public long getVendorId() {
20931
      return this.vendorId;
20932
    }
20933
 
20934
    public void setVendorId(long vendorId) {
20935
      this.vendorId = vendorId;
20936
      setVendorIdIsSet(true);
20937
    }
20938
 
20939
    public void unsetVendorId() {
20940
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20941
    }
20942
 
20943
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
20944
    public boolean isSetVendorId() {
20945
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20946
    }
20947
 
20948
    public void setVendorIdIsSet(boolean value) {
20949
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20950
    }
20951
 
20952
    public long getBillingWarehouseId() {
20953
      return this.billingWarehouseId;
20954
    }
20955
 
20956
    public void setBillingWarehouseId(long billingWarehouseId) {
20957
      this.billingWarehouseId = billingWarehouseId;
20958
      setBillingWarehouseIdIsSet(true);
20959
    }
20960
 
20961
    public void unsetBillingWarehouseId() {
20962
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
20963
    }
20964
 
20965
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
20966
    public boolean isSetBillingWarehouseId() {
20967
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
20968
    }
20969
 
20970
    public void setBillingWarehouseIdIsSet(boolean value) {
20971
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
20972
    }
20973
 
20974
    public long getShippingWarehouseId() {
20975
      return this.shippingWarehouseId;
20976
    }
20977
 
20978
    public void setShippingWarehouseId(long shippingWarehouseId) {
20979
      this.shippingWarehouseId = shippingWarehouseId;
20980
      setShippingWarehouseIdIsSet(true);
20981
    }
20982
 
20983
    public void unsetShippingWarehouseId() {
20984
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
20985
    }
20986
 
20987
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
20988
    public boolean isSetShippingWarehouseId() {
20989
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
20990
    }
20991
 
20992
    public void setShippingWarehouseIdIsSet(boolean value) {
20993
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
20994
    }
20995
 
20996
    public void setFieldValue(_Fields field, Object value) {
20997
      switch (field) {
20998
      case WAREHOUSE_TYPE:
20999
        if (value == null) {
21000
          unsetWarehouseType();
21001
        } else {
21002
          setWarehouseType((WarehouseType)value);
21003
        }
21004
        break;
21005
 
21006
      case INVENTORY_TYPE:
21007
        if (value == null) {
21008
          unsetInventoryType();
21009
        } else {
21010
          setInventoryType((InventoryType)value);
21011
        }
21012
        break;
21013
 
21014
      case VENDOR_ID:
21015
        if (value == null) {
21016
          unsetVendorId();
21017
        } else {
21018
          setVendorId((Long)value);
21019
        }
21020
        break;
21021
 
21022
      case BILLING_WAREHOUSE_ID:
21023
        if (value == null) {
21024
          unsetBillingWarehouseId();
21025
        } else {
21026
          setBillingWarehouseId((Long)value);
21027
        }
21028
        break;
21029
 
21030
      case SHIPPING_WAREHOUSE_ID:
21031
        if (value == null) {
21032
          unsetShippingWarehouseId();
21033
        } else {
21034
          setShippingWarehouseId((Long)value);
21035
        }
21036
        break;
21037
 
21038
      }
21039
    }
21040
 
21041
    public Object getFieldValue(_Fields field) {
21042
      switch (field) {
21043
      case WAREHOUSE_TYPE:
21044
        return getWarehouseType();
21045
 
21046
      case INVENTORY_TYPE:
21047
        return getInventoryType();
21048
 
21049
      case VENDOR_ID:
21050
        return Long.valueOf(getVendorId());
21051
 
21052
      case BILLING_WAREHOUSE_ID:
21053
        return Long.valueOf(getBillingWarehouseId());
21054
 
21055
      case SHIPPING_WAREHOUSE_ID:
21056
        return Long.valueOf(getShippingWarehouseId());
21057
 
21058
      }
21059
      throw new IllegalStateException();
21060
    }
21061
 
21062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21063
    public boolean isSet(_Fields field) {
21064
      if (field == null) {
21065
        throw new IllegalArgumentException();
21066
      }
21067
 
21068
      switch (field) {
21069
      case WAREHOUSE_TYPE:
21070
        return isSetWarehouseType();
21071
      case INVENTORY_TYPE:
21072
        return isSetInventoryType();
21073
      case VENDOR_ID:
21074
        return isSetVendorId();
21075
      case BILLING_WAREHOUSE_ID:
21076
        return isSetBillingWarehouseId();
21077
      case SHIPPING_WAREHOUSE_ID:
21078
        return isSetShippingWarehouseId();
21079
      }
21080
      throw new IllegalStateException();
21081
    }
21082
 
21083
    @Override
21084
    public boolean equals(Object that) {
21085
      if (that == null)
21086
        return false;
21087
      if (that instanceof getWarehouses_args)
21088
        return this.equals((getWarehouses_args)that);
21089
      return false;
21090
    }
21091
 
21092
    public boolean equals(getWarehouses_args that) {
21093
      if (that == null)
21094
        return false;
21095
 
21096
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
21097
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
21098
      if (this_present_warehouseType || that_present_warehouseType) {
21099
        if (!(this_present_warehouseType && that_present_warehouseType))
21100
          return false;
21101
        if (!this.warehouseType.equals(that.warehouseType))
21102
          return false;
21103
      }
21104
 
21105
      boolean this_present_inventoryType = true && this.isSetInventoryType();
21106
      boolean that_present_inventoryType = true && that.isSetInventoryType();
21107
      if (this_present_inventoryType || that_present_inventoryType) {
21108
        if (!(this_present_inventoryType && that_present_inventoryType))
21109
          return false;
21110
        if (!this.inventoryType.equals(that.inventoryType))
21111
          return false;
21112
      }
21113
 
21114
      boolean this_present_vendorId = true;
21115
      boolean that_present_vendorId = true;
21116
      if (this_present_vendorId || that_present_vendorId) {
21117
        if (!(this_present_vendorId && that_present_vendorId))
21118
          return false;
21119
        if (this.vendorId != that.vendorId)
21120
          return false;
21121
      }
21122
 
21123
      boolean this_present_billingWarehouseId = true;
21124
      boolean that_present_billingWarehouseId = true;
21125
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21126
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21127
          return false;
21128
        if (this.billingWarehouseId != that.billingWarehouseId)
21129
          return false;
21130
      }
21131
 
21132
      boolean this_present_shippingWarehouseId = true;
21133
      boolean that_present_shippingWarehouseId = true;
21134
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
21135
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
21136
          return false;
21137
        if (this.shippingWarehouseId != that.shippingWarehouseId)
21138
          return false;
21139
      }
21140
 
21141
      return true;
21142
    }
21143
 
21144
    @Override
21145
    public int hashCode() {
21146
      return 0;
21147
    }
21148
 
21149
    public int compareTo(getWarehouses_args other) {
21150
      if (!getClass().equals(other.getClass())) {
21151
        return getClass().getName().compareTo(other.getClass().getName());
21152
      }
21153
 
21154
      int lastComparison = 0;
21155
      getWarehouses_args typedOther = (getWarehouses_args)other;
21156
 
21157
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
21158
      if (lastComparison != 0) {
21159
        return lastComparison;
21160
      }
21161
      if (isSetWarehouseType()) {
21162
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
21163
        if (lastComparison != 0) {
21164
          return lastComparison;
21165
        }
21166
      }
21167
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
21168
      if (lastComparison != 0) {
21169
        return lastComparison;
21170
      }
21171
      if (isSetInventoryType()) {
21172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
21173
        if (lastComparison != 0) {
21174
          return lastComparison;
21175
        }
21176
      }
21177
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21178
      if (lastComparison != 0) {
21179
        return lastComparison;
21180
      }
21181
      if (isSetVendorId()) {
21182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21183
        if (lastComparison != 0) {
21184
          return lastComparison;
21185
        }
21186
      }
21187
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21188
      if (lastComparison != 0) {
21189
        return lastComparison;
21190
      }
21191
      if (isSetBillingWarehouseId()) {
21192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21193
        if (lastComparison != 0) {
21194
          return lastComparison;
21195
        }
21196
      }
21197
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
21198
      if (lastComparison != 0) {
21199
        return lastComparison;
21200
      }
21201
      if (isSetShippingWarehouseId()) {
21202
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
21203
        if (lastComparison != 0) {
21204
          return lastComparison;
21205
        }
21206
      }
21207
      return 0;
21208
    }
21209
 
21210
    public _Fields fieldForId(int fieldId) {
21211
      return _Fields.findByThriftId(fieldId);
21212
    }
21213
 
21214
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21215
      org.apache.thrift.protocol.TField field;
21216
      iprot.readStructBegin();
21217
      while (true)
21218
      {
21219
        field = iprot.readFieldBegin();
21220
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21221
          break;
21222
        }
21223
        switch (field.id) {
21224
          case 1: // WAREHOUSE_TYPE
21225
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21226
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
21227
            } else { 
21228
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21229
            }
21230
            break;
21231
          case 2: // INVENTORY_TYPE
21232
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21233
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
21234
            } else { 
21235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21236
            }
21237
            break;
21238
          case 3: // VENDOR_ID
21239
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21240
              this.vendorId = iprot.readI64();
21241
              setVendorIdIsSet(true);
21242
            } else { 
21243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21244
            }
21245
            break;
21246
          case 4: // BILLING_WAREHOUSE_ID
21247
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21248
              this.billingWarehouseId = iprot.readI64();
21249
              setBillingWarehouseIdIsSet(true);
21250
            } else { 
21251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21252
            }
21253
            break;
21254
          case 5: // SHIPPING_WAREHOUSE_ID
21255
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21256
              this.shippingWarehouseId = iprot.readI64();
21257
              setShippingWarehouseIdIsSet(true);
21258
            } else { 
21259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21260
            }
21261
            break;
21262
          default:
21263
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21264
        }
21265
        iprot.readFieldEnd();
21266
      }
21267
      iprot.readStructEnd();
21268
      validate();
21269
    }
21270
 
21271
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21272
      validate();
21273
 
21274
      oprot.writeStructBegin(STRUCT_DESC);
21275
      if (this.warehouseType != null) {
21276
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
21277
        oprot.writeI32(this.warehouseType.getValue());
21278
        oprot.writeFieldEnd();
21279
      }
21280
      if (this.inventoryType != null) {
21281
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
21282
        oprot.writeI32(this.inventoryType.getValue());
21283
        oprot.writeFieldEnd();
21284
      }
21285
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21286
      oprot.writeI64(this.vendorId);
21287
      oprot.writeFieldEnd();
21288
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21289
      oprot.writeI64(this.billingWarehouseId);
21290
      oprot.writeFieldEnd();
21291
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
21292
      oprot.writeI64(this.shippingWarehouseId);
21293
      oprot.writeFieldEnd();
21294
      oprot.writeFieldStop();
21295
      oprot.writeStructEnd();
21296
    }
21297
 
21298
    @Override
21299
    public String toString() {
21300
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
21301
      boolean first = true;
21302
 
21303
      sb.append("warehouseType:");
21304
      if (this.warehouseType == null) {
21305
        sb.append("null");
21306
      } else {
21307
        sb.append(this.warehouseType);
21308
      }
21309
      first = false;
21310
      if (!first) sb.append(", ");
21311
      sb.append("inventoryType:");
21312
      if (this.inventoryType == null) {
21313
        sb.append("null");
21314
      } else {
21315
        sb.append(this.inventoryType);
21316
      }
21317
      first = false;
21318
      if (!first) sb.append(", ");
21319
      sb.append("vendorId:");
21320
      sb.append(this.vendorId);
21321
      first = false;
21322
      if (!first) sb.append(", ");
21323
      sb.append("billingWarehouseId:");
21324
      sb.append(this.billingWarehouseId);
21325
      first = false;
21326
      if (!first) sb.append(", ");
21327
      sb.append("shippingWarehouseId:");
21328
      sb.append(this.shippingWarehouseId);
21329
      first = false;
21330
      sb.append(")");
21331
      return sb.toString();
21332
    }
21333
 
21334
    public void validate() throws org.apache.thrift.TException {
21335
      // check for required fields
21336
    }
21337
 
21338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21339
      try {
21340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21341
      } catch (org.apache.thrift.TException te) {
21342
        throw new java.io.IOException(te);
21343
      }
21344
    }
21345
 
21346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21347
      try {
21348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21349
      } catch (org.apache.thrift.TException te) {
21350
        throw new java.io.IOException(te);
21351
      }
21352
    }
21353
 
21354
  }
21355
 
21356
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
21357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
21358
 
21359
    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);
21360
 
21361
    private List<Warehouse> success; // required
21362
 
21363
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21364
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21365
      SUCCESS((short)0, "success");
21366
 
21367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21368
 
21369
      static {
21370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21371
          byName.put(field.getFieldName(), field);
21372
        }
21373
      }
21374
 
21375
      /**
21376
       * Find the _Fields constant that matches fieldId, or null if its not found.
21377
       */
21378
      public static _Fields findByThriftId(int fieldId) {
21379
        switch(fieldId) {
21380
          case 0: // SUCCESS
21381
            return SUCCESS;
21382
          default:
21383
            return null;
21384
        }
21385
      }
21386
 
21387
      /**
21388
       * Find the _Fields constant that matches fieldId, throwing an exception
21389
       * if it is not found.
21390
       */
21391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21392
        _Fields fields = findByThriftId(fieldId);
21393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21394
        return fields;
21395
      }
21396
 
21397
      /**
21398
       * Find the _Fields constant that matches name, or null if its not found.
21399
       */
21400
      public static _Fields findByName(String name) {
21401
        return byName.get(name);
21402
      }
21403
 
21404
      private final short _thriftId;
21405
      private final String _fieldName;
21406
 
21407
      _Fields(short thriftId, String fieldName) {
21408
        _thriftId = thriftId;
21409
        _fieldName = fieldName;
21410
      }
21411
 
21412
      public short getThriftFieldId() {
21413
        return _thriftId;
21414
      }
21415
 
21416
      public String getFieldName() {
21417
        return _fieldName;
21418
      }
21419
    }
21420
 
21421
    // isset id assignments
21422
 
21423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21424
    static {
21425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21426
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21427
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21428
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
21429
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21430
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
21431
    }
21432
 
21433
    public getWarehouses_result() {
21434
    }
21435
 
21436
    public getWarehouses_result(
21437
      List<Warehouse> success)
21438
    {
21439
      this();
21440
      this.success = success;
21441
    }
21442
 
21443
    /**
21444
     * Performs a deep copy on <i>other</i>.
21445
     */
21446
    public getWarehouses_result(getWarehouses_result other) {
21447
      if (other.isSetSuccess()) {
21448
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
21449
        for (Warehouse other_element : other.success) {
21450
          __this__success.add(new Warehouse(other_element));
21451
        }
21452
        this.success = __this__success;
21453
      }
21454
    }
21455
 
21456
    public getWarehouses_result deepCopy() {
21457
      return new getWarehouses_result(this);
21458
    }
21459
 
21460
    @Override
21461
    public void clear() {
21462
      this.success = null;
21463
    }
21464
 
21465
    public int getSuccessSize() {
21466
      return (this.success == null) ? 0 : this.success.size();
21467
    }
21468
 
21469
    public java.util.Iterator<Warehouse> getSuccessIterator() {
21470
      return (this.success == null) ? null : this.success.iterator();
21471
    }
21472
 
21473
    public void addToSuccess(Warehouse elem) {
21474
      if (this.success == null) {
21475
        this.success = new ArrayList<Warehouse>();
21476
      }
21477
      this.success.add(elem);
21478
    }
21479
 
21480
    public List<Warehouse> getSuccess() {
21481
      return this.success;
21482
    }
21483
 
21484
    public void setSuccess(List<Warehouse> success) {
21485
      this.success = success;
21486
    }
21487
 
21488
    public void unsetSuccess() {
21489
      this.success = null;
21490
    }
21491
 
21492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21493
    public boolean isSetSuccess() {
21494
      return this.success != null;
21495
    }
21496
 
21497
    public void setSuccessIsSet(boolean value) {
21498
      if (!value) {
21499
        this.success = null;
21500
      }
21501
    }
21502
 
21503
    public void setFieldValue(_Fields field, Object value) {
21504
      switch (field) {
21505
      case SUCCESS:
21506
        if (value == null) {
21507
          unsetSuccess();
21508
        } else {
21509
          setSuccess((List<Warehouse>)value);
21510
        }
21511
        break;
21512
 
21513
      }
21514
    }
21515
 
21516
    public Object getFieldValue(_Fields field) {
21517
      switch (field) {
21518
      case SUCCESS:
21519
        return getSuccess();
21520
 
21521
      }
21522
      throw new IllegalStateException();
21523
    }
21524
 
21525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21526
    public boolean isSet(_Fields field) {
21527
      if (field == null) {
21528
        throw new IllegalArgumentException();
21529
      }
21530
 
21531
      switch (field) {
21532
      case SUCCESS:
21533
        return isSetSuccess();
21534
      }
21535
      throw new IllegalStateException();
21536
    }
21537
 
21538
    @Override
21539
    public boolean equals(Object that) {
21540
      if (that == null)
21541
        return false;
21542
      if (that instanceof getWarehouses_result)
21543
        return this.equals((getWarehouses_result)that);
21544
      return false;
21545
    }
21546
 
21547
    public boolean equals(getWarehouses_result that) {
21548
      if (that == null)
21549
        return false;
21550
 
21551
      boolean this_present_success = true && this.isSetSuccess();
21552
      boolean that_present_success = true && that.isSetSuccess();
21553
      if (this_present_success || that_present_success) {
21554
        if (!(this_present_success && that_present_success))
21555
          return false;
21556
        if (!this.success.equals(that.success))
21557
          return false;
21558
      }
21559
 
21560
      return true;
21561
    }
21562
 
21563
    @Override
21564
    public int hashCode() {
21565
      return 0;
21566
    }
21567
 
21568
    public int compareTo(getWarehouses_result other) {
21569
      if (!getClass().equals(other.getClass())) {
21570
        return getClass().getName().compareTo(other.getClass().getName());
21571
      }
21572
 
21573
      int lastComparison = 0;
21574
      getWarehouses_result typedOther = (getWarehouses_result)other;
21575
 
21576
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21577
      if (lastComparison != 0) {
21578
        return lastComparison;
21579
      }
21580
      if (isSetSuccess()) {
21581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21582
        if (lastComparison != 0) {
21583
          return lastComparison;
21584
        }
21585
      }
21586
      return 0;
21587
    }
21588
 
21589
    public _Fields fieldForId(int fieldId) {
21590
      return _Fields.findByThriftId(fieldId);
21591
    }
21592
 
21593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21594
      org.apache.thrift.protocol.TField field;
21595
      iprot.readStructBegin();
21596
      while (true)
21597
      {
21598
        field = iprot.readFieldBegin();
21599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21600
          break;
21601
        }
21602
        switch (field.id) {
21603
          case 0: // SUCCESS
21604
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21605
              {
21606
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21607
                this.success = new ArrayList<Warehouse>(_list48.size);
21608
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21609
                {
21610
                  Warehouse _elem50; // required
21611
                  _elem50 = new Warehouse();
21612
                  _elem50.read(iprot);
21613
                  this.success.add(_elem50);
21614
                }
21615
                iprot.readListEnd();
21616
              }
21617
            } else { 
21618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21619
            }
21620
            break;
21621
          default:
21622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21623
        }
21624
        iprot.readFieldEnd();
21625
      }
21626
      iprot.readStructEnd();
21627
      validate();
21628
    }
21629
 
21630
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21631
      oprot.writeStructBegin(STRUCT_DESC);
21632
 
21633
      if (this.isSetSuccess()) {
21634
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21635
        {
21636
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21637
          for (Warehouse _iter51 : this.success)
21638
          {
21639
            _iter51.write(oprot);
21640
          }
21641
          oprot.writeListEnd();
21642
        }
21643
        oprot.writeFieldEnd();
21644
      }
21645
      oprot.writeFieldStop();
21646
      oprot.writeStructEnd();
21647
    }
21648
 
21649
    @Override
21650
    public String toString() {
21651
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
21652
      boolean first = true;
21653
 
21654
      sb.append("success:");
21655
      if (this.success == null) {
21656
        sb.append("null");
21657
      } else {
21658
        sb.append(this.success);
21659
      }
21660
      first = false;
21661
      sb.append(")");
21662
      return sb.toString();
21663
    }
21664
 
21665
    public void validate() throws org.apache.thrift.TException {
21666
      // check for required fields
21667
    }
21668
 
21669
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21670
      try {
21671
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21672
      } catch (org.apache.thrift.TException te) {
21673
        throw new java.io.IOException(te);
21674
      }
21675
    }
21676
 
21677
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21678
      try {
21679
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21680
      } catch (org.apache.thrift.TException te) {
21681
        throw new java.io.IOException(te);
21682
      }
21683
    }
21684
 
21685
  }
21686
 
21687
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
21688
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
21689
 
21690
    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);
21691
    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);
21692
    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);
21693
    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);
21694
 
21695
    private String itemKey; // required
21696
    private long vendorId; // required
21697
    private long quantity; // required
21698
    private long warehouseId; // required
21699
 
21700
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21701
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21702
      ITEM_KEY((short)1, "itemKey"),
21703
      VENDOR_ID((short)2, "vendorId"),
21704
      QUANTITY((short)3, "quantity"),
21705
      WAREHOUSE_ID((short)4, "warehouseId");
21706
 
21707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21708
 
21709
      static {
21710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21711
          byName.put(field.getFieldName(), field);
21712
        }
21713
      }
21714
 
21715
      /**
21716
       * Find the _Fields constant that matches fieldId, or null if its not found.
21717
       */
21718
      public static _Fields findByThriftId(int fieldId) {
21719
        switch(fieldId) {
21720
          case 1: // ITEM_KEY
21721
            return ITEM_KEY;
21722
          case 2: // VENDOR_ID
21723
            return VENDOR_ID;
21724
          case 3: // QUANTITY
21725
            return QUANTITY;
21726
          case 4: // WAREHOUSE_ID
21727
            return WAREHOUSE_ID;
21728
          default:
21729
            return null;
21730
        }
21731
      }
21732
 
21733
      /**
21734
       * Find the _Fields constant that matches fieldId, throwing an exception
21735
       * if it is not found.
21736
       */
21737
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21738
        _Fields fields = findByThriftId(fieldId);
21739
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21740
        return fields;
21741
      }
21742
 
21743
      /**
21744
       * Find the _Fields constant that matches name, or null if its not found.
21745
       */
21746
      public static _Fields findByName(String name) {
21747
        return byName.get(name);
21748
      }
21749
 
21750
      private final short _thriftId;
21751
      private final String _fieldName;
21752
 
21753
      _Fields(short thriftId, String fieldName) {
21754
        _thriftId = thriftId;
21755
        _fieldName = fieldName;
21756
      }
21757
 
21758
      public short getThriftFieldId() {
21759
        return _thriftId;
21760
      }
21761
 
21762
      public String getFieldName() {
21763
        return _fieldName;
21764
      }
21765
    }
21766
 
21767
    // isset id assignments
21768
    private static final int __VENDORID_ISSET_ID = 0;
21769
    private static final int __QUANTITY_ISSET_ID = 1;
21770
    private static final int __WAREHOUSEID_ISSET_ID = 2;
21771
    private BitSet __isset_bit_vector = new BitSet(3);
21772
 
21773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21774
    static {
21775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21776
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21778
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21780
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21782
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21784
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21785
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
21786
    }
21787
 
21788
    public resetAvailability_args() {
21789
    }
21790
 
21791
    public resetAvailability_args(
21792
      String itemKey,
21793
      long vendorId,
21794
      long quantity,
21795
      long warehouseId)
21796
    {
21797
      this();
21798
      this.itemKey = itemKey;
21799
      this.vendorId = vendorId;
21800
      setVendorIdIsSet(true);
21801
      this.quantity = quantity;
21802
      setQuantityIsSet(true);
21803
      this.warehouseId = warehouseId;
21804
      setWarehouseIdIsSet(true);
21805
    }
21806
 
21807
    /**
21808
     * Performs a deep copy on <i>other</i>.
21809
     */
21810
    public resetAvailability_args(resetAvailability_args other) {
21811
      __isset_bit_vector.clear();
21812
      __isset_bit_vector.or(other.__isset_bit_vector);
21813
      if (other.isSetItemKey()) {
21814
        this.itemKey = other.itemKey;
21815
      }
21816
      this.vendorId = other.vendorId;
21817
      this.quantity = other.quantity;
21818
      this.warehouseId = other.warehouseId;
21819
    }
21820
 
21821
    public resetAvailability_args deepCopy() {
21822
      return new resetAvailability_args(this);
21823
    }
21824
 
21825
    @Override
21826
    public void clear() {
21827
      this.itemKey = null;
21828
      setVendorIdIsSet(false);
21829
      this.vendorId = 0;
21830
      setQuantityIsSet(false);
21831
      this.quantity = 0;
21832
      setWarehouseIdIsSet(false);
21833
      this.warehouseId = 0;
21834
    }
21835
 
21836
    public String getItemKey() {
21837
      return this.itemKey;
21838
    }
21839
 
21840
    public void setItemKey(String itemKey) {
21841
      this.itemKey = itemKey;
21842
    }
21843
 
21844
    public void unsetItemKey() {
21845
      this.itemKey = null;
21846
    }
21847
 
21848
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
21849
    public boolean isSetItemKey() {
21850
      return this.itemKey != null;
21851
    }
21852
 
21853
    public void setItemKeyIsSet(boolean value) {
21854
      if (!value) {
21855
        this.itemKey = null;
21856
      }
21857
    }
21858
 
21859
    public long getVendorId() {
21860
      return this.vendorId;
21861
    }
21862
 
21863
    public void setVendorId(long vendorId) {
21864
      this.vendorId = vendorId;
21865
      setVendorIdIsSet(true);
21866
    }
21867
 
21868
    public void unsetVendorId() {
21869
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21870
    }
21871
 
21872
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21873
    public boolean isSetVendorId() {
21874
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21875
    }
21876
 
21877
    public void setVendorIdIsSet(boolean value) {
21878
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21879
    }
21880
 
21881
    public long getQuantity() {
21882
      return this.quantity;
21883
    }
21884
 
21885
    public void setQuantity(long quantity) {
21886
      this.quantity = quantity;
21887
      setQuantityIsSet(true);
21888
    }
21889
 
21890
    public void unsetQuantity() {
21891
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
21892
    }
21893
 
21894
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
21895
    public boolean isSetQuantity() {
21896
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
21897
    }
21898
 
21899
    public void setQuantityIsSet(boolean value) {
21900
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
21901
    }
21902
 
21903
    public long getWarehouseId() {
21904
      return this.warehouseId;
21905
    }
21906
 
21907
    public void setWarehouseId(long warehouseId) {
21908
      this.warehouseId = warehouseId;
21909
      setWarehouseIdIsSet(true);
21910
    }
21911
 
21912
    public void unsetWarehouseId() {
21913
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
21914
    }
21915
 
21916
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
21917
    public boolean isSetWarehouseId() {
21918
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
21919
    }
21920
 
21921
    public void setWarehouseIdIsSet(boolean value) {
21922
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
21923
    }
21924
 
21925
    public void setFieldValue(_Fields field, Object value) {
21926
      switch (field) {
21927
      case ITEM_KEY:
21928
        if (value == null) {
21929
          unsetItemKey();
21930
        } else {
21931
          setItemKey((String)value);
21932
        }
21933
        break;
21934
 
21935
      case VENDOR_ID:
21936
        if (value == null) {
21937
          unsetVendorId();
21938
        } else {
21939
          setVendorId((Long)value);
21940
        }
21941
        break;
21942
 
21943
      case QUANTITY:
21944
        if (value == null) {
21945
          unsetQuantity();
21946
        } else {
21947
          setQuantity((Long)value);
21948
        }
21949
        break;
21950
 
21951
      case WAREHOUSE_ID:
21952
        if (value == null) {
21953
          unsetWarehouseId();
21954
        } else {
21955
          setWarehouseId((Long)value);
21956
        }
21957
        break;
21958
 
21959
      }
21960
    }
21961
 
21962
    public Object getFieldValue(_Fields field) {
21963
      switch (field) {
21964
      case ITEM_KEY:
21965
        return getItemKey();
21966
 
21967
      case VENDOR_ID:
21968
        return Long.valueOf(getVendorId());
21969
 
21970
      case QUANTITY:
21971
        return Long.valueOf(getQuantity());
21972
 
21973
      case WAREHOUSE_ID:
21974
        return Long.valueOf(getWarehouseId());
21975
 
21976
      }
21977
      throw new IllegalStateException();
21978
    }
21979
 
21980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21981
    public boolean isSet(_Fields field) {
21982
      if (field == null) {
21983
        throw new IllegalArgumentException();
21984
      }
21985
 
21986
      switch (field) {
21987
      case ITEM_KEY:
21988
        return isSetItemKey();
21989
      case VENDOR_ID:
21990
        return isSetVendorId();
21991
      case QUANTITY:
21992
        return isSetQuantity();
21993
      case WAREHOUSE_ID:
21994
        return isSetWarehouseId();
21995
      }
21996
      throw new IllegalStateException();
21997
    }
21998
 
21999
    @Override
22000
    public boolean equals(Object that) {
22001
      if (that == null)
22002
        return false;
22003
      if (that instanceof resetAvailability_args)
22004
        return this.equals((resetAvailability_args)that);
22005
      return false;
22006
    }
22007
 
22008
    public boolean equals(resetAvailability_args that) {
22009
      if (that == null)
22010
        return false;
22011
 
22012
      boolean this_present_itemKey = true && this.isSetItemKey();
22013
      boolean that_present_itemKey = true && that.isSetItemKey();
22014
      if (this_present_itemKey || that_present_itemKey) {
22015
        if (!(this_present_itemKey && that_present_itemKey))
22016
          return false;
22017
        if (!this.itemKey.equals(that.itemKey))
22018
          return false;
22019
      }
22020
 
22021
      boolean this_present_vendorId = true;
22022
      boolean that_present_vendorId = true;
22023
      if (this_present_vendorId || that_present_vendorId) {
22024
        if (!(this_present_vendorId && that_present_vendorId))
22025
          return false;
22026
        if (this.vendorId != that.vendorId)
22027
          return false;
22028
      }
22029
 
22030
      boolean this_present_quantity = true;
22031
      boolean that_present_quantity = true;
22032
      if (this_present_quantity || that_present_quantity) {
22033
        if (!(this_present_quantity && that_present_quantity))
22034
          return false;
22035
        if (this.quantity != that.quantity)
22036
          return false;
22037
      }
22038
 
22039
      boolean this_present_warehouseId = true;
22040
      boolean that_present_warehouseId = true;
22041
      if (this_present_warehouseId || that_present_warehouseId) {
22042
        if (!(this_present_warehouseId && that_present_warehouseId))
22043
          return false;
22044
        if (this.warehouseId != that.warehouseId)
22045
          return false;
22046
      }
22047
 
22048
      return true;
22049
    }
22050
 
22051
    @Override
22052
    public int hashCode() {
22053
      return 0;
22054
    }
22055
 
22056
    public int compareTo(resetAvailability_args other) {
22057
      if (!getClass().equals(other.getClass())) {
22058
        return getClass().getName().compareTo(other.getClass().getName());
22059
      }
22060
 
22061
      int lastComparison = 0;
22062
      resetAvailability_args typedOther = (resetAvailability_args)other;
22063
 
22064
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
22065
      if (lastComparison != 0) {
22066
        return lastComparison;
22067
      }
22068
      if (isSetItemKey()) {
22069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
22070
        if (lastComparison != 0) {
22071
          return lastComparison;
22072
        }
22073
      }
22074
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
22075
      if (lastComparison != 0) {
22076
        return lastComparison;
22077
      }
22078
      if (isSetVendorId()) {
22079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
22080
        if (lastComparison != 0) {
22081
          return lastComparison;
22082
        }
22083
      }
22084
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
22085
      if (lastComparison != 0) {
22086
        return lastComparison;
22087
      }
22088
      if (isSetQuantity()) {
22089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
22090
        if (lastComparison != 0) {
22091
          return lastComparison;
22092
        }
22093
      }
22094
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22095
      if (lastComparison != 0) {
22096
        return lastComparison;
22097
      }
22098
      if (isSetWarehouseId()) {
22099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22100
        if (lastComparison != 0) {
22101
          return lastComparison;
22102
        }
22103
      }
22104
      return 0;
22105
    }
22106
 
22107
    public _Fields fieldForId(int fieldId) {
22108
      return _Fields.findByThriftId(fieldId);
22109
    }
22110
 
22111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22112
      org.apache.thrift.protocol.TField field;
22113
      iprot.readStructBegin();
22114
      while (true)
22115
      {
22116
        field = iprot.readFieldBegin();
22117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22118
          break;
22119
        }
22120
        switch (field.id) {
22121
          case 1: // ITEM_KEY
22122
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22123
              this.itemKey = iprot.readString();
22124
            } else { 
22125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22126
            }
22127
            break;
22128
          case 2: // VENDOR_ID
22129
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22130
              this.vendorId = iprot.readI64();
22131
              setVendorIdIsSet(true);
22132
            } else { 
22133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22134
            }
22135
            break;
22136
          case 3: // QUANTITY
22137
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22138
              this.quantity = iprot.readI64();
22139
              setQuantityIsSet(true);
22140
            } else { 
22141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22142
            }
22143
            break;
22144
          case 4: // WAREHOUSE_ID
22145
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22146
              this.warehouseId = iprot.readI64();
22147
              setWarehouseIdIsSet(true);
22148
            } else { 
22149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22150
            }
22151
            break;
22152
          default:
22153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22154
        }
22155
        iprot.readFieldEnd();
22156
      }
22157
      iprot.readStructEnd();
22158
      validate();
22159
    }
22160
 
22161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22162
      validate();
22163
 
22164
      oprot.writeStructBegin(STRUCT_DESC);
22165
      if (this.itemKey != null) {
22166
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
22167
        oprot.writeString(this.itemKey);
22168
        oprot.writeFieldEnd();
22169
      }
22170
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22171
      oprot.writeI64(this.vendorId);
22172
      oprot.writeFieldEnd();
22173
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
22174
      oprot.writeI64(this.quantity);
22175
      oprot.writeFieldEnd();
22176
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22177
      oprot.writeI64(this.warehouseId);
22178
      oprot.writeFieldEnd();
22179
      oprot.writeFieldStop();
22180
      oprot.writeStructEnd();
22181
    }
22182
 
22183
    @Override
22184
    public String toString() {
22185
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
22186
      boolean first = true;
22187
 
22188
      sb.append("itemKey:");
22189
      if (this.itemKey == null) {
22190
        sb.append("null");
22191
      } else {
22192
        sb.append(this.itemKey);
22193
      }
22194
      first = false;
22195
      if (!first) sb.append(", ");
22196
      sb.append("vendorId:");
22197
      sb.append(this.vendorId);
22198
      first = false;
22199
      if (!first) sb.append(", ");
22200
      sb.append("quantity:");
22201
      sb.append(this.quantity);
22202
      first = false;
22203
      if (!first) sb.append(", ");
22204
      sb.append("warehouseId:");
22205
      sb.append(this.warehouseId);
22206
      first = false;
22207
      sb.append(")");
22208
      return sb.toString();
22209
    }
22210
 
22211
    public void validate() throws org.apache.thrift.TException {
22212
      // check for required fields
22213
    }
22214
 
22215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22216
      try {
22217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22218
      } catch (org.apache.thrift.TException te) {
22219
        throw new java.io.IOException(te);
22220
      }
22221
    }
22222
 
22223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22224
      try {
22225
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22226
        __isset_bit_vector = new BitSet(1);
22227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22228
      } catch (org.apache.thrift.TException te) {
22229
        throw new java.io.IOException(te);
22230
      }
22231
    }
22232
 
22233
  }
22234
 
22235
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
22236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
22237
 
22238
    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);
22239
 
22240
    private InventoryServiceException cex; // required
22241
 
22242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22244
      CEX((short)1, "cex");
22245
 
22246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22247
 
22248
      static {
22249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22250
          byName.put(field.getFieldName(), field);
22251
        }
22252
      }
22253
 
22254
      /**
22255
       * Find the _Fields constant that matches fieldId, or null if its not found.
22256
       */
22257
      public static _Fields findByThriftId(int fieldId) {
22258
        switch(fieldId) {
22259
          case 1: // CEX
22260
            return CEX;
22261
          default:
22262
            return null;
22263
        }
22264
      }
22265
 
22266
      /**
22267
       * Find the _Fields constant that matches fieldId, throwing an exception
22268
       * if it is not found.
22269
       */
22270
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22271
        _Fields fields = findByThriftId(fieldId);
22272
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22273
        return fields;
22274
      }
22275
 
22276
      /**
22277
       * Find the _Fields constant that matches name, or null if its not found.
22278
       */
22279
      public static _Fields findByName(String name) {
22280
        return byName.get(name);
22281
      }
22282
 
22283
      private final short _thriftId;
22284
      private final String _fieldName;
22285
 
22286
      _Fields(short thriftId, String fieldName) {
22287
        _thriftId = thriftId;
22288
        _fieldName = fieldName;
22289
      }
22290
 
22291
      public short getThriftFieldId() {
22292
        return _thriftId;
22293
      }
22294
 
22295
      public String getFieldName() {
22296
        return _fieldName;
22297
      }
22298
    }
22299
 
22300
    // isset id assignments
22301
 
22302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22303
    static {
22304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22305
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
22309
    }
22310
 
22311
    public resetAvailability_result() {
22312
    }
22313
 
22314
    public resetAvailability_result(
22315
      InventoryServiceException cex)
22316
    {
22317
      this();
22318
      this.cex = cex;
22319
    }
22320
 
22321
    /**
22322
     * Performs a deep copy on <i>other</i>.
22323
     */
22324
    public resetAvailability_result(resetAvailability_result other) {
22325
      if (other.isSetCex()) {
22326
        this.cex = new InventoryServiceException(other.cex);
22327
      }
22328
    }
22329
 
22330
    public resetAvailability_result deepCopy() {
22331
      return new resetAvailability_result(this);
22332
    }
22333
 
22334
    @Override
22335
    public void clear() {
22336
      this.cex = null;
22337
    }
22338
 
22339
    public InventoryServiceException getCex() {
22340
      return this.cex;
22341
    }
22342
 
22343
    public void setCex(InventoryServiceException cex) {
22344
      this.cex = cex;
22345
    }
22346
 
22347
    public void unsetCex() {
22348
      this.cex = null;
22349
    }
22350
 
22351
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22352
    public boolean isSetCex() {
22353
      return this.cex != null;
22354
    }
22355
 
22356
    public void setCexIsSet(boolean value) {
22357
      if (!value) {
22358
        this.cex = null;
22359
      }
22360
    }
22361
 
22362
    public void setFieldValue(_Fields field, Object value) {
22363
      switch (field) {
22364
      case CEX:
22365
        if (value == null) {
22366
          unsetCex();
22367
        } else {
22368
          setCex((InventoryServiceException)value);
22369
        }
22370
        break;
22371
 
22372
      }
22373
    }
22374
 
22375
    public Object getFieldValue(_Fields field) {
22376
      switch (field) {
22377
      case CEX:
22378
        return getCex();
22379
 
22380
      }
22381
      throw new IllegalStateException();
22382
    }
22383
 
22384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22385
    public boolean isSet(_Fields field) {
22386
      if (field == null) {
22387
        throw new IllegalArgumentException();
22388
      }
22389
 
22390
      switch (field) {
22391
      case CEX:
22392
        return isSetCex();
22393
      }
22394
      throw new IllegalStateException();
22395
    }
22396
 
22397
    @Override
22398
    public boolean equals(Object that) {
22399
      if (that == null)
22400
        return false;
22401
      if (that instanceof resetAvailability_result)
22402
        return this.equals((resetAvailability_result)that);
22403
      return false;
22404
    }
22405
 
22406
    public boolean equals(resetAvailability_result that) {
22407
      if (that == null)
22408
        return false;
22409
 
22410
      boolean this_present_cex = true && this.isSetCex();
22411
      boolean that_present_cex = true && that.isSetCex();
22412
      if (this_present_cex || that_present_cex) {
22413
        if (!(this_present_cex && that_present_cex))
22414
          return false;
22415
        if (!this.cex.equals(that.cex))
22416
          return false;
22417
      }
22418
 
22419
      return true;
22420
    }
22421
 
22422
    @Override
22423
    public int hashCode() {
22424
      return 0;
22425
    }
22426
 
22427
    public int compareTo(resetAvailability_result other) {
22428
      if (!getClass().equals(other.getClass())) {
22429
        return getClass().getName().compareTo(other.getClass().getName());
22430
      }
22431
 
22432
      int lastComparison = 0;
22433
      resetAvailability_result typedOther = (resetAvailability_result)other;
22434
 
22435
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22436
      if (lastComparison != 0) {
22437
        return lastComparison;
22438
      }
22439
      if (isSetCex()) {
22440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22441
        if (lastComparison != 0) {
22442
          return lastComparison;
22443
        }
22444
      }
22445
      return 0;
22446
    }
22447
 
22448
    public _Fields fieldForId(int fieldId) {
22449
      return _Fields.findByThriftId(fieldId);
22450
    }
22451
 
22452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22453
      org.apache.thrift.protocol.TField field;
22454
      iprot.readStructBegin();
22455
      while (true)
22456
      {
22457
        field = iprot.readFieldBegin();
22458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22459
          break;
22460
        }
22461
        switch (field.id) {
22462
          case 1: // CEX
22463
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22464
              this.cex = new InventoryServiceException();
22465
              this.cex.read(iprot);
22466
            } else { 
22467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22468
            }
22469
            break;
22470
          default:
22471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22472
        }
22473
        iprot.readFieldEnd();
22474
      }
22475
      iprot.readStructEnd();
22476
      validate();
22477
    }
22478
 
22479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22480
      oprot.writeStructBegin(STRUCT_DESC);
22481
 
22482
      if (this.isSetCex()) {
22483
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22484
        this.cex.write(oprot);
22485
        oprot.writeFieldEnd();
22486
      }
22487
      oprot.writeFieldStop();
22488
      oprot.writeStructEnd();
22489
    }
22490
 
22491
    @Override
22492
    public String toString() {
22493
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
22494
      boolean first = true;
22495
 
22496
      sb.append("cex:");
22497
      if (this.cex == null) {
22498
        sb.append("null");
22499
      } else {
22500
        sb.append(this.cex);
22501
      }
22502
      first = false;
22503
      sb.append(")");
22504
      return sb.toString();
22505
    }
22506
 
22507
    public void validate() throws org.apache.thrift.TException {
22508
      // check for required fields
22509
    }
22510
 
22511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22512
      try {
22513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22514
      } catch (org.apache.thrift.TException te) {
22515
        throw new java.io.IOException(te);
22516
      }
22517
    }
22518
 
22519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22520
      try {
22521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22522
      } catch (org.apache.thrift.TException te) {
22523
        throw new java.io.IOException(te);
22524
      }
22525
    }
22526
 
22527
  }
22528
 
22529
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
22530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
22531
 
22532
    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);
22533
 
22534
    private long warehouseId; // required
22535
 
22536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22538
      WAREHOUSE_ID((short)1, "warehouseId");
22539
 
22540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22541
 
22542
      static {
22543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22544
          byName.put(field.getFieldName(), field);
22545
        }
22546
      }
22547
 
22548
      /**
22549
       * Find the _Fields constant that matches fieldId, or null if its not found.
22550
       */
22551
      public static _Fields findByThriftId(int fieldId) {
22552
        switch(fieldId) {
22553
          case 1: // WAREHOUSE_ID
22554
            return WAREHOUSE_ID;
22555
          default:
22556
            return null;
22557
        }
22558
      }
22559
 
22560
      /**
22561
       * Find the _Fields constant that matches fieldId, throwing an exception
22562
       * if it is not found.
22563
       */
22564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22565
        _Fields fields = findByThriftId(fieldId);
22566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22567
        return fields;
22568
      }
22569
 
22570
      /**
22571
       * Find the _Fields constant that matches name, or null if its not found.
22572
       */
22573
      public static _Fields findByName(String name) {
22574
        return byName.get(name);
22575
      }
22576
 
22577
      private final short _thriftId;
22578
      private final String _fieldName;
22579
 
22580
      _Fields(short thriftId, String fieldName) {
22581
        _thriftId = thriftId;
22582
        _fieldName = fieldName;
22583
      }
22584
 
22585
      public short getThriftFieldId() {
22586
        return _thriftId;
22587
      }
22588
 
22589
      public String getFieldName() {
22590
        return _fieldName;
22591
      }
22592
    }
22593
 
22594
    // isset id assignments
22595
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22596
    private BitSet __isset_bit_vector = new BitSet(1);
22597
 
22598
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22599
    static {
22600
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22601
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
22605
    }
22606
 
22607
    public resetAvailabilityForWarehouse_args() {
22608
    }
22609
 
22610
    public resetAvailabilityForWarehouse_args(
22611
      long warehouseId)
22612
    {
22613
      this();
22614
      this.warehouseId = warehouseId;
22615
      setWarehouseIdIsSet(true);
22616
    }
22617
 
22618
    /**
22619
     * Performs a deep copy on <i>other</i>.
22620
     */
22621
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
22622
      __isset_bit_vector.clear();
22623
      __isset_bit_vector.or(other.__isset_bit_vector);
22624
      this.warehouseId = other.warehouseId;
22625
    }
22626
 
22627
    public resetAvailabilityForWarehouse_args deepCopy() {
22628
      return new resetAvailabilityForWarehouse_args(this);
22629
    }
22630
 
22631
    @Override
22632
    public void clear() {
22633
      setWarehouseIdIsSet(false);
22634
      this.warehouseId = 0;
22635
    }
22636
 
22637
    public long getWarehouseId() {
22638
      return this.warehouseId;
22639
    }
22640
 
22641
    public void setWarehouseId(long warehouseId) {
22642
      this.warehouseId = warehouseId;
22643
      setWarehouseIdIsSet(true);
22644
    }
22645
 
22646
    public void unsetWarehouseId() {
22647
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22648
    }
22649
 
22650
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22651
    public boolean isSetWarehouseId() {
22652
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22653
    }
22654
 
22655
    public void setWarehouseIdIsSet(boolean value) {
22656
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22657
    }
22658
 
22659
    public void setFieldValue(_Fields field, Object value) {
22660
      switch (field) {
22661
      case WAREHOUSE_ID:
22662
        if (value == null) {
22663
          unsetWarehouseId();
22664
        } else {
22665
          setWarehouseId((Long)value);
22666
        }
22667
        break;
22668
 
22669
      }
22670
    }
22671
 
22672
    public Object getFieldValue(_Fields field) {
22673
      switch (field) {
22674
      case WAREHOUSE_ID:
22675
        return Long.valueOf(getWarehouseId());
22676
 
22677
      }
22678
      throw new IllegalStateException();
22679
    }
22680
 
22681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22682
    public boolean isSet(_Fields field) {
22683
      if (field == null) {
22684
        throw new IllegalArgumentException();
22685
      }
22686
 
22687
      switch (field) {
22688
      case WAREHOUSE_ID:
22689
        return isSetWarehouseId();
22690
      }
22691
      throw new IllegalStateException();
22692
    }
22693
 
22694
    @Override
22695
    public boolean equals(Object that) {
22696
      if (that == null)
22697
        return false;
22698
      if (that instanceof resetAvailabilityForWarehouse_args)
22699
        return this.equals((resetAvailabilityForWarehouse_args)that);
22700
      return false;
22701
    }
22702
 
22703
    public boolean equals(resetAvailabilityForWarehouse_args that) {
22704
      if (that == null)
22705
        return false;
22706
 
22707
      boolean this_present_warehouseId = true;
22708
      boolean that_present_warehouseId = true;
22709
      if (this_present_warehouseId || that_present_warehouseId) {
22710
        if (!(this_present_warehouseId && that_present_warehouseId))
22711
          return false;
22712
        if (this.warehouseId != that.warehouseId)
22713
          return false;
22714
      }
22715
 
22716
      return true;
22717
    }
22718
 
22719
    @Override
22720
    public int hashCode() {
22721
      return 0;
22722
    }
22723
 
22724
    public int compareTo(resetAvailabilityForWarehouse_args other) {
22725
      if (!getClass().equals(other.getClass())) {
22726
        return getClass().getName().compareTo(other.getClass().getName());
22727
      }
22728
 
22729
      int lastComparison = 0;
22730
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
22731
 
22732
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22733
      if (lastComparison != 0) {
22734
        return lastComparison;
22735
      }
22736
      if (isSetWarehouseId()) {
22737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22738
        if (lastComparison != 0) {
22739
          return lastComparison;
22740
        }
22741
      }
22742
      return 0;
22743
    }
22744
 
22745
    public _Fields fieldForId(int fieldId) {
22746
      return _Fields.findByThriftId(fieldId);
22747
    }
22748
 
22749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22750
      org.apache.thrift.protocol.TField field;
22751
      iprot.readStructBegin();
22752
      while (true)
22753
      {
22754
        field = iprot.readFieldBegin();
22755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22756
          break;
22757
        }
22758
        switch (field.id) {
22759
          case 1: // WAREHOUSE_ID
22760
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22761
              this.warehouseId = iprot.readI64();
22762
              setWarehouseIdIsSet(true);
22763
            } else { 
22764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22765
            }
22766
            break;
22767
          default:
22768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22769
        }
22770
        iprot.readFieldEnd();
22771
      }
22772
      iprot.readStructEnd();
22773
      validate();
22774
    }
22775
 
22776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22777
      validate();
22778
 
22779
      oprot.writeStructBegin(STRUCT_DESC);
22780
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22781
      oprot.writeI64(this.warehouseId);
22782
      oprot.writeFieldEnd();
22783
      oprot.writeFieldStop();
22784
      oprot.writeStructEnd();
22785
    }
22786
 
22787
    @Override
22788
    public String toString() {
22789
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
22790
      boolean first = true;
22791
 
22792
      sb.append("warehouseId:");
22793
      sb.append(this.warehouseId);
22794
      first = false;
22795
      sb.append(")");
22796
      return sb.toString();
22797
    }
22798
 
22799
    public void validate() throws org.apache.thrift.TException {
22800
      // check for required fields
22801
    }
22802
 
22803
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22804
      try {
22805
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22806
      } catch (org.apache.thrift.TException te) {
22807
        throw new java.io.IOException(te);
22808
      }
22809
    }
22810
 
22811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22812
      try {
22813
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22814
        __isset_bit_vector = new BitSet(1);
22815
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22816
      } catch (org.apache.thrift.TException te) {
22817
        throw new java.io.IOException(te);
22818
      }
22819
    }
22820
 
22821
  }
22822
 
22823
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
22824
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
22825
 
22826
    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);
22827
 
22828
    private InventoryServiceException cex; // required
22829
 
22830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22832
      CEX((short)1, "cex");
22833
 
22834
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22835
 
22836
      static {
22837
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22838
          byName.put(field.getFieldName(), field);
22839
        }
22840
      }
22841
 
22842
      /**
22843
       * Find the _Fields constant that matches fieldId, or null if its not found.
22844
       */
22845
      public static _Fields findByThriftId(int fieldId) {
22846
        switch(fieldId) {
22847
          case 1: // CEX
22848
            return CEX;
22849
          default:
22850
            return null;
22851
        }
22852
      }
22853
 
22854
      /**
22855
       * Find the _Fields constant that matches fieldId, throwing an exception
22856
       * if it is not found.
22857
       */
22858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22859
        _Fields fields = findByThriftId(fieldId);
22860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22861
        return fields;
22862
      }
22863
 
22864
      /**
22865
       * Find the _Fields constant that matches name, or null if its not found.
22866
       */
22867
      public static _Fields findByName(String name) {
22868
        return byName.get(name);
22869
      }
22870
 
22871
      private final short _thriftId;
22872
      private final String _fieldName;
22873
 
22874
      _Fields(short thriftId, String fieldName) {
22875
        _thriftId = thriftId;
22876
        _fieldName = fieldName;
22877
      }
22878
 
22879
      public short getThriftFieldId() {
22880
        return _thriftId;
22881
      }
22882
 
22883
      public String getFieldName() {
22884
        return _fieldName;
22885
      }
22886
    }
22887
 
22888
    // isset id assignments
22889
 
22890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22891
    static {
22892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22893
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
22897
    }
22898
 
22899
    public resetAvailabilityForWarehouse_result() {
22900
    }
22901
 
22902
    public resetAvailabilityForWarehouse_result(
22903
      InventoryServiceException cex)
22904
    {
22905
      this();
22906
      this.cex = cex;
22907
    }
22908
 
22909
    /**
22910
     * Performs a deep copy on <i>other</i>.
22911
     */
22912
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
22913
      if (other.isSetCex()) {
22914
        this.cex = new InventoryServiceException(other.cex);
22915
      }
22916
    }
22917
 
22918
    public resetAvailabilityForWarehouse_result deepCopy() {
22919
      return new resetAvailabilityForWarehouse_result(this);
22920
    }
22921
 
22922
    @Override
22923
    public void clear() {
22924
      this.cex = null;
22925
    }
22926
 
22927
    public InventoryServiceException getCex() {
22928
      return this.cex;
22929
    }
22930
 
22931
    public void setCex(InventoryServiceException cex) {
22932
      this.cex = cex;
22933
    }
22934
 
22935
    public void unsetCex() {
22936
      this.cex = null;
22937
    }
22938
 
22939
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22940
    public boolean isSetCex() {
22941
      return this.cex != null;
22942
    }
22943
 
22944
    public void setCexIsSet(boolean value) {
22945
      if (!value) {
22946
        this.cex = null;
22947
      }
22948
    }
22949
 
22950
    public void setFieldValue(_Fields field, Object value) {
22951
      switch (field) {
22952
      case CEX:
22953
        if (value == null) {
22954
          unsetCex();
22955
        } else {
22956
          setCex((InventoryServiceException)value);
22957
        }
22958
        break;
22959
 
22960
      }
22961
    }
22962
 
22963
    public Object getFieldValue(_Fields field) {
22964
      switch (field) {
22965
      case CEX:
22966
        return getCex();
22967
 
22968
      }
22969
      throw new IllegalStateException();
22970
    }
22971
 
22972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22973
    public boolean isSet(_Fields field) {
22974
      if (field == null) {
22975
        throw new IllegalArgumentException();
22976
      }
22977
 
22978
      switch (field) {
22979
      case CEX:
22980
        return isSetCex();
22981
      }
22982
      throw new IllegalStateException();
22983
    }
22984
 
22985
    @Override
22986
    public boolean equals(Object that) {
22987
      if (that == null)
22988
        return false;
22989
      if (that instanceof resetAvailabilityForWarehouse_result)
22990
        return this.equals((resetAvailabilityForWarehouse_result)that);
22991
      return false;
22992
    }
22993
 
22994
    public boolean equals(resetAvailabilityForWarehouse_result that) {
22995
      if (that == null)
22996
        return false;
22997
 
22998
      boolean this_present_cex = true && this.isSetCex();
22999
      boolean that_present_cex = true && that.isSetCex();
23000
      if (this_present_cex || that_present_cex) {
23001
        if (!(this_present_cex && that_present_cex))
23002
          return false;
23003
        if (!this.cex.equals(that.cex))
23004
          return false;
23005
      }
23006
 
23007
      return true;
23008
    }
23009
 
23010
    @Override
23011
    public int hashCode() {
23012
      return 0;
23013
    }
23014
 
23015
    public int compareTo(resetAvailabilityForWarehouse_result other) {
23016
      if (!getClass().equals(other.getClass())) {
23017
        return getClass().getName().compareTo(other.getClass().getName());
23018
      }
23019
 
23020
      int lastComparison = 0;
23021
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
23022
 
23023
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23024
      if (lastComparison != 0) {
23025
        return lastComparison;
23026
      }
23027
      if (isSetCex()) {
23028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23029
        if (lastComparison != 0) {
23030
          return lastComparison;
23031
        }
23032
      }
23033
      return 0;
23034
    }
23035
 
23036
    public _Fields fieldForId(int fieldId) {
23037
      return _Fields.findByThriftId(fieldId);
23038
    }
23039
 
23040
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23041
      org.apache.thrift.protocol.TField field;
23042
      iprot.readStructBegin();
23043
      while (true)
23044
      {
23045
        field = iprot.readFieldBegin();
23046
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23047
          break;
23048
        }
23049
        switch (field.id) {
23050
          case 1: // CEX
23051
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23052
              this.cex = new InventoryServiceException();
23053
              this.cex.read(iprot);
23054
            } else { 
23055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23056
            }
23057
            break;
23058
          default:
23059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23060
        }
23061
        iprot.readFieldEnd();
23062
      }
23063
      iprot.readStructEnd();
23064
      validate();
23065
    }
23066
 
23067
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23068
      oprot.writeStructBegin(STRUCT_DESC);
23069
 
23070
      if (this.isSetCex()) {
23071
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23072
        this.cex.write(oprot);
23073
        oprot.writeFieldEnd();
23074
      }
23075
      oprot.writeFieldStop();
23076
      oprot.writeStructEnd();
23077
    }
23078
 
23079
    @Override
23080
    public String toString() {
23081
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
23082
      boolean first = true;
23083
 
23084
      sb.append("cex:");
23085
      if (this.cex == null) {
23086
        sb.append("null");
23087
      } else {
23088
        sb.append(this.cex);
23089
      }
23090
      first = false;
23091
      sb.append(")");
23092
      return sb.toString();
23093
    }
23094
 
23095
    public void validate() throws org.apache.thrift.TException {
23096
      // check for required fields
23097
    }
23098
 
23099
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23100
      try {
23101
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23102
      } catch (org.apache.thrift.TException te) {
23103
        throw new java.io.IOException(te);
23104
      }
23105
    }
23106
 
23107
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23108
      try {
23109
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23110
      } catch (org.apache.thrift.TException te) {
23111
        throw new java.io.IOException(te);
23112
      }
23113
    }
23114
 
23115
  }
23116
 
23117
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23118
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
23119
 
23120
    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);
23121
 
23122
    private long warehouseId; // required
23123
 
23124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23125
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23126
      WAREHOUSE_ID((short)1, "warehouseId");
23127
 
23128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23129
 
23130
      static {
23131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23132
          byName.put(field.getFieldName(), field);
23133
        }
23134
      }
23135
 
23136
      /**
23137
       * Find the _Fields constant that matches fieldId, or null if its not found.
23138
       */
23139
      public static _Fields findByThriftId(int fieldId) {
23140
        switch(fieldId) {
23141
          case 1: // WAREHOUSE_ID
23142
            return WAREHOUSE_ID;
23143
          default:
23144
            return null;
23145
        }
23146
      }
23147
 
23148
      /**
23149
       * Find the _Fields constant that matches fieldId, throwing an exception
23150
       * if it is not found.
23151
       */
23152
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23153
        _Fields fields = findByThriftId(fieldId);
23154
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23155
        return fields;
23156
      }
23157
 
23158
      /**
23159
       * Find the _Fields constant that matches name, or null if its not found.
23160
       */
23161
      public static _Fields findByName(String name) {
23162
        return byName.get(name);
23163
      }
23164
 
23165
      private final short _thriftId;
23166
      private final String _fieldName;
23167
 
23168
      _Fields(short thriftId, String fieldName) {
23169
        _thriftId = thriftId;
23170
        _fieldName = fieldName;
23171
      }
23172
 
23173
      public short getThriftFieldId() {
23174
        return _thriftId;
23175
      }
23176
 
23177
      public String getFieldName() {
23178
        return _fieldName;
23179
      }
23180
    }
23181
 
23182
    // isset id assignments
23183
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23184
    private BitSet __isset_bit_vector = new BitSet(1);
23185
 
23186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23187
    static {
23188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23189
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23190
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
23193
    }
23194
 
23195
    public getItemKeysToBeProcessed_args() {
23196
    }
23197
 
23198
    public getItemKeysToBeProcessed_args(
23199
      long warehouseId)
23200
    {
23201
      this();
23202
      this.warehouseId = warehouseId;
23203
      setWarehouseIdIsSet(true);
23204
    }
23205
 
23206
    /**
23207
     * Performs a deep copy on <i>other</i>.
23208
     */
23209
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
23210
      __isset_bit_vector.clear();
23211
      __isset_bit_vector.or(other.__isset_bit_vector);
23212
      this.warehouseId = other.warehouseId;
23213
    }
23214
 
23215
    public getItemKeysToBeProcessed_args deepCopy() {
23216
      return new getItemKeysToBeProcessed_args(this);
23217
    }
23218
 
23219
    @Override
23220
    public void clear() {
23221
      setWarehouseIdIsSet(false);
23222
      this.warehouseId = 0;
23223
    }
23224
 
23225
    public long getWarehouseId() {
23226
      return this.warehouseId;
23227
    }
23228
 
23229
    public void setWarehouseId(long warehouseId) {
23230
      this.warehouseId = warehouseId;
23231
      setWarehouseIdIsSet(true);
23232
    }
23233
 
23234
    public void unsetWarehouseId() {
23235
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23236
    }
23237
 
23238
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23239
    public boolean isSetWarehouseId() {
23240
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23241
    }
23242
 
23243
    public void setWarehouseIdIsSet(boolean value) {
23244
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23245
    }
23246
 
23247
    public void setFieldValue(_Fields field, Object value) {
23248
      switch (field) {
23249
      case WAREHOUSE_ID:
23250
        if (value == null) {
23251
          unsetWarehouseId();
23252
        } else {
23253
          setWarehouseId((Long)value);
23254
        }
23255
        break;
23256
 
23257
      }
23258
    }
23259
 
23260
    public Object getFieldValue(_Fields field) {
23261
      switch (field) {
23262
      case WAREHOUSE_ID:
23263
        return Long.valueOf(getWarehouseId());
23264
 
23265
      }
23266
      throw new IllegalStateException();
23267
    }
23268
 
23269
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23270
    public boolean isSet(_Fields field) {
23271
      if (field == null) {
23272
        throw new IllegalArgumentException();
23273
      }
23274
 
23275
      switch (field) {
23276
      case WAREHOUSE_ID:
23277
        return isSetWarehouseId();
23278
      }
23279
      throw new IllegalStateException();
23280
    }
23281
 
23282
    @Override
23283
    public boolean equals(Object that) {
23284
      if (that == null)
23285
        return false;
23286
      if (that instanceof getItemKeysToBeProcessed_args)
23287
        return this.equals((getItemKeysToBeProcessed_args)that);
23288
      return false;
23289
    }
23290
 
23291
    public boolean equals(getItemKeysToBeProcessed_args that) {
23292
      if (that == null)
23293
        return false;
23294
 
23295
      boolean this_present_warehouseId = true;
23296
      boolean that_present_warehouseId = true;
23297
      if (this_present_warehouseId || that_present_warehouseId) {
23298
        if (!(this_present_warehouseId && that_present_warehouseId))
23299
          return false;
23300
        if (this.warehouseId != that.warehouseId)
23301
          return false;
23302
      }
23303
 
23304
      return true;
23305
    }
23306
 
23307
    @Override
23308
    public int hashCode() {
23309
      return 0;
23310
    }
23311
 
23312
    public int compareTo(getItemKeysToBeProcessed_args other) {
23313
      if (!getClass().equals(other.getClass())) {
23314
        return getClass().getName().compareTo(other.getClass().getName());
23315
      }
23316
 
23317
      int lastComparison = 0;
23318
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
23319
 
23320
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23321
      if (lastComparison != 0) {
23322
        return lastComparison;
23323
      }
23324
      if (isSetWarehouseId()) {
23325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23326
        if (lastComparison != 0) {
23327
          return lastComparison;
23328
        }
23329
      }
23330
      return 0;
23331
    }
23332
 
23333
    public _Fields fieldForId(int fieldId) {
23334
      return _Fields.findByThriftId(fieldId);
23335
    }
23336
 
23337
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23338
      org.apache.thrift.protocol.TField field;
23339
      iprot.readStructBegin();
23340
      while (true)
23341
      {
23342
        field = iprot.readFieldBegin();
23343
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23344
          break;
23345
        }
23346
        switch (field.id) {
23347
          case 1: // WAREHOUSE_ID
23348
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23349
              this.warehouseId = iprot.readI64();
23350
              setWarehouseIdIsSet(true);
23351
            } else { 
23352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23353
            }
23354
            break;
23355
          default:
23356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23357
        }
23358
        iprot.readFieldEnd();
23359
      }
23360
      iprot.readStructEnd();
23361
      validate();
23362
    }
23363
 
23364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23365
      validate();
23366
 
23367
      oprot.writeStructBegin(STRUCT_DESC);
23368
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23369
      oprot.writeI64(this.warehouseId);
23370
      oprot.writeFieldEnd();
23371
      oprot.writeFieldStop();
23372
      oprot.writeStructEnd();
23373
    }
23374
 
23375
    @Override
23376
    public String toString() {
23377
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
23378
      boolean first = true;
23379
 
23380
      sb.append("warehouseId:");
23381
      sb.append(this.warehouseId);
23382
      first = false;
23383
      sb.append(")");
23384
      return sb.toString();
23385
    }
23386
 
23387
    public void validate() throws org.apache.thrift.TException {
23388
      // check for required fields
23389
    }
23390
 
23391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23392
      try {
23393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23394
      } catch (org.apache.thrift.TException te) {
23395
        throw new java.io.IOException(te);
23396
      }
23397
    }
23398
 
23399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23400
      try {
23401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23402
      } catch (org.apache.thrift.TException te) {
23403
        throw new java.io.IOException(te);
23404
      }
23405
    }
23406
 
23407
  }
23408
 
23409
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
23410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
23411
 
23412
    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);
23413
 
23414
    private List<String> success; // required
23415
 
23416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23418
      SUCCESS((short)0, "success");
23419
 
23420
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23421
 
23422
      static {
23423
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23424
          byName.put(field.getFieldName(), field);
23425
        }
23426
      }
23427
 
23428
      /**
23429
       * Find the _Fields constant that matches fieldId, or null if its not found.
23430
       */
23431
      public static _Fields findByThriftId(int fieldId) {
23432
        switch(fieldId) {
23433
          case 0: // SUCCESS
23434
            return SUCCESS;
23435
          default:
23436
            return null;
23437
        }
23438
      }
23439
 
23440
      /**
23441
       * Find the _Fields constant that matches fieldId, throwing an exception
23442
       * if it is not found.
23443
       */
23444
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23445
        _Fields fields = findByThriftId(fieldId);
23446
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23447
        return fields;
23448
      }
23449
 
23450
      /**
23451
       * Find the _Fields constant that matches name, or null if its not found.
23452
       */
23453
      public static _Fields findByName(String name) {
23454
        return byName.get(name);
23455
      }
23456
 
23457
      private final short _thriftId;
23458
      private final String _fieldName;
23459
 
23460
      _Fields(short thriftId, String fieldName) {
23461
        _thriftId = thriftId;
23462
        _fieldName = fieldName;
23463
      }
23464
 
23465
      public short getThriftFieldId() {
23466
        return _thriftId;
23467
      }
23468
 
23469
      public String getFieldName() {
23470
        return _fieldName;
23471
      }
23472
    }
23473
 
23474
    // isset id assignments
23475
 
23476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23477
    static {
23478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23479
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23480
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23481
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
23484
    }
23485
 
23486
    public getItemKeysToBeProcessed_result() {
23487
    }
23488
 
23489
    public getItemKeysToBeProcessed_result(
23490
      List<String> success)
23491
    {
23492
      this();
23493
      this.success = success;
23494
    }
23495
 
23496
    /**
23497
     * Performs a deep copy on <i>other</i>.
23498
     */
23499
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
23500
      if (other.isSetSuccess()) {
23501
        List<String> __this__success = new ArrayList<String>();
23502
        for (String other_element : other.success) {
23503
          __this__success.add(other_element);
23504
        }
23505
        this.success = __this__success;
23506
      }
23507
    }
23508
 
23509
    public getItemKeysToBeProcessed_result deepCopy() {
23510
      return new getItemKeysToBeProcessed_result(this);
23511
    }
23512
 
23513
    @Override
23514
    public void clear() {
23515
      this.success = null;
23516
    }
23517
 
23518
    public int getSuccessSize() {
23519
      return (this.success == null) ? 0 : this.success.size();
23520
    }
23521
 
23522
    public java.util.Iterator<String> getSuccessIterator() {
23523
      return (this.success == null) ? null : this.success.iterator();
23524
    }
23525
 
23526
    public void addToSuccess(String elem) {
23527
      if (this.success == null) {
23528
        this.success = new ArrayList<String>();
23529
      }
23530
      this.success.add(elem);
23531
    }
23532
 
23533
    public List<String> getSuccess() {
23534
      return this.success;
23535
    }
23536
 
23537
    public void setSuccess(List<String> success) {
23538
      this.success = success;
23539
    }
23540
 
23541
    public void unsetSuccess() {
23542
      this.success = null;
23543
    }
23544
 
23545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23546
    public boolean isSetSuccess() {
23547
      return this.success != null;
23548
    }
23549
 
23550
    public void setSuccessIsSet(boolean value) {
23551
      if (!value) {
23552
        this.success = null;
23553
      }
23554
    }
23555
 
23556
    public void setFieldValue(_Fields field, Object value) {
23557
      switch (field) {
23558
      case SUCCESS:
23559
        if (value == null) {
23560
          unsetSuccess();
23561
        } else {
23562
          setSuccess((List<String>)value);
23563
        }
23564
        break;
23565
 
23566
      }
23567
    }
23568
 
23569
    public Object getFieldValue(_Fields field) {
23570
      switch (field) {
23571
      case SUCCESS:
23572
        return getSuccess();
23573
 
23574
      }
23575
      throw new IllegalStateException();
23576
    }
23577
 
23578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23579
    public boolean isSet(_Fields field) {
23580
      if (field == null) {
23581
        throw new IllegalArgumentException();
23582
      }
23583
 
23584
      switch (field) {
23585
      case SUCCESS:
23586
        return isSetSuccess();
23587
      }
23588
      throw new IllegalStateException();
23589
    }
23590
 
23591
    @Override
23592
    public boolean equals(Object that) {
23593
      if (that == null)
23594
        return false;
23595
      if (that instanceof getItemKeysToBeProcessed_result)
23596
        return this.equals((getItemKeysToBeProcessed_result)that);
23597
      return false;
23598
    }
23599
 
23600
    public boolean equals(getItemKeysToBeProcessed_result that) {
23601
      if (that == null)
23602
        return false;
23603
 
23604
      boolean this_present_success = true && this.isSetSuccess();
23605
      boolean that_present_success = true && that.isSetSuccess();
23606
      if (this_present_success || that_present_success) {
23607
        if (!(this_present_success && that_present_success))
23608
          return false;
23609
        if (!this.success.equals(that.success))
23610
          return false;
23611
      }
23612
 
23613
      return true;
23614
    }
23615
 
23616
    @Override
23617
    public int hashCode() {
23618
      return 0;
23619
    }
23620
 
23621
    public int compareTo(getItemKeysToBeProcessed_result other) {
23622
      if (!getClass().equals(other.getClass())) {
23623
        return getClass().getName().compareTo(other.getClass().getName());
23624
      }
23625
 
23626
      int lastComparison = 0;
23627
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
23628
 
23629
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23630
      if (lastComparison != 0) {
23631
        return lastComparison;
23632
      }
23633
      if (isSetSuccess()) {
23634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23635
        if (lastComparison != 0) {
23636
          return lastComparison;
23637
        }
23638
      }
23639
      return 0;
23640
    }
23641
 
23642
    public _Fields fieldForId(int fieldId) {
23643
      return _Fields.findByThriftId(fieldId);
23644
    }
23645
 
23646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23647
      org.apache.thrift.protocol.TField field;
23648
      iprot.readStructBegin();
23649
      while (true)
23650
      {
23651
        field = iprot.readFieldBegin();
23652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23653
          break;
23654
        }
23655
        switch (field.id) {
23656
          case 0: // SUCCESS
23657
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23658
              {
23659
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23660
                this.success = new ArrayList<String>(_list52.size);
23661
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23662
                {
23663
                  String _elem54; // required
23664
                  _elem54 = iprot.readString();
23665
                  this.success.add(_elem54);
23666
                }
23667
                iprot.readListEnd();
23668
              }
23669
            } else { 
23670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23671
            }
23672
            break;
23673
          default:
23674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23675
        }
23676
        iprot.readFieldEnd();
23677
      }
23678
      iprot.readStructEnd();
23679
      validate();
23680
    }
23681
 
23682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23683
      oprot.writeStructBegin(STRUCT_DESC);
23684
 
23685
      if (this.isSetSuccess()) {
23686
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23687
        {
23688
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
23689
          for (String _iter55 : this.success)
23690
          {
23691
            oprot.writeString(_iter55);
23692
          }
23693
          oprot.writeListEnd();
23694
        }
23695
        oprot.writeFieldEnd();
23696
      }
23697
      oprot.writeFieldStop();
23698
      oprot.writeStructEnd();
23699
    }
23700
 
23701
    @Override
23702
    public String toString() {
23703
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
23704
      boolean first = true;
23705
 
23706
      sb.append("success:");
23707
      if (this.success == null) {
23708
        sb.append("null");
23709
      } else {
23710
        sb.append(this.success);
23711
      }
23712
      first = false;
23713
      sb.append(")");
23714
      return sb.toString();
23715
    }
23716
 
23717
    public void validate() throws org.apache.thrift.TException {
23718
      // check for required fields
23719
    }
23720
 
23721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23722
      try {
23723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23724
      } catch (org.apache.thrift.TException te) {
23725
        throw new java.io.IOException(te);
23726
      }
23727
    }
23728
 
23729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23730
      try {
23731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23732
      } catch (org.apache.thrift.TException te) {
23733
        throw new java.io.IOException(te);
23734
      }
23735
    }
23736
 
23737
  }
23738
 
23739
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
23741
 
23742
    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);
23743
    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);
23744
 
23745
    private String itemKey; // required
23746
    private long warehouseId; // required
23747
 
23748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23750
      ITEM_KEY((short)1, "itemKey"),
23751
      WAREHOUSE_ID((short)2, "warehouseId");
23752
 
23753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23754
 
23755
      static {
23756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23757
          byName.put(field.getFieldName(), field);
23758
        }
23759
      }
23760
 
23761
      /**
23762
       * Find the _Fields constant that matches fieldId, or null if its not found.
23763
       */
23764
      public static _Fields findByThriftId(int fieldId) {
23765
        switch(fieldId) {
23766
          case 1: // ITEM_KEY
23767
            return ITEM_KEY;
23768
          case 2: // WAREHOUSE_ID
23769
            return WAREHOUSE_ID;
23770
          default:
23771
            return null;
23772
        }
23773
      }
23774
 
23775
      /**
23776
       * Find the _Fields constant that matches fieldId, throwing an exception
23777
       * if it is not found.
23778
       */
23779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23780
        _Fields fields = findByThriftId(fieldId);
23781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23782
        return fields;
23783
      }
23784
 
23785
      /**
23786
       * Find the _Fields constant that matches name, or null if its not found.
23787
       */
23788
      public static _Fields findByName(String name) {
23789
        return byName.get(name);
23790
      }
23791
 
23792
      private final short _thriftId;
23793
      private final String _fieldName;
23794
 
23795
      _Fields(short thriftId, String fieldName) {
23796
        _thriftId = thriftId;
23797
        _fieldName = fieldName;
23798
      }
23799
 
23800
      public short getThriftFieldId() {
23801
        return _thriftId;
23802
      }
23803
 
23804
      public String getFieldName() {
23805
        return _fieldName;
23806
      }
23807
    }
23808
 
23809
    // isset id assignments
23810
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23811
    private BitSet __isset_bit_vector = new BitSet(1);
23812
 
23813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23814
    static {
23815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23816
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23818
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
23822
    }
23823
 
23824
    public markMissedInventoryUpdatesAsProcessed_args() {
23825
    }
23826
 
23827
    public markMissedInventoryUpdatesAsProcessed_args(
23828
      String itemKey,
23829
      long warehouseId)
23830
    {
23831
      this();
23832
      this.itemKey = itemKey;
23833
      this.warehouseId = warehouseId;
23834
      setWarehouseIdIsSet(true);
23835
    }
23836
 
23837
    /**
23838
     * Performs a deep copy on <i>other</i>.
23839
     */
23840
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
23841
      __isset_bit_vector.clear();
23842
      __isset_bit_vector.or(other.__isset_bit_vector);
23843
      if (other.isSetItemKey()) {
23844
        this.itemKey = other.itemKey;
23845
      }
23846
      this.warehouseId = other.warehouseId;
23847
    }
23848
 
23849
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
23850
      return new markMissedInventoryUpdatesAsProcessed_args(this);
23851
    }
23852
 
23853
    @Override
23854
    public void clear() {
23855
      this.itemKey = null;
23856
      setWarehouseIdIsSet(false);
23857
      this.warehouseId = 0;
23858
    }
23859
 
23860
    public String getItemKey() {
23861
      return this.itemKey;
23862
    }
23863
 
23864
    public void setItemKey(String itemKey) {
23865
      this.itemKey = itemKey;
23866
    }
23867
 
23868
    public void unsetItemKey() {
23869
      this.itemKey = null;
23870
    }
23871
 
23872
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
23873
    public boolean isSetItemKey() {
23874
      return this.itemKey != null;
23875
    }
23876
 
23877
    public void setItemKeyIsSet(boolean value) {
23878
      if (!value) {
23879
        this.itemKey = null;
23880
      }
23881
    }
23882
 
23883
    public long getWarehouseId() {
23884
      return this.warehouseId;
23885
    }
23886
 
23887
    public void setWarehouseId(long warehouseId) {
23888
      this.warehouseId = warehouseId;
23889
      setWarehouseIdIsSet(true);
23890
    }
23891
 
23892
    public void unsetWarehouseId() {
23893
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23894
    }
23895
 
23896
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23897
    public boolean isSetWarehouseId() {
23898
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23899
    }
23900
 
23901
    public void setWarehouseIdIsSet(boolean value) {
23902
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23903
    }
23904
 
23905
    public void setFieldValue(_Fields field, Object value) {
23906
      switch (field) {
23907
      case ITEM_KEY:
23908
        if (value == null) {
23909
          unsetItemKey();
23910
        } else {
23911
          setItemKey((String)value);
23912
        }
23913
        break;
23914
 
23915
      case WAREHOUSE_ID:
23916
        if (value == null) {
23917
          unsetWarehouseId();
23918
        } else {
23919
          setWarehouseId((Long)value);
23920
        }
23921
        break;
23922
 
23923
      }
23924
    }
23925
 
23926
    public Object getFieldValue(_Fields field) {
23927
      switch (field) {
23928
      case ITEM_KEY:
23929
        return getItemKey();
23930
 
23931
      case WAREHOUSE_ID:
23932
        return Long.valueOf(getWarehouseId());
23933
 
23934
      }
23935
      throw new IllegalStateException();
23936
    }
23937
 
23938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23939
    public boolean isSet(_Fields field) {
23940
      if (field == null) {
23941
        throw new IllegalArgumentException();
23942
      }
23943
 
23944
      switch (field) {
23945
      case ITEM_KEY:
23946
        return isSetItemKey();
23947
      case WAREHOUSE_ID:
23948
        return isSetWarehouseId();
23949
      }
23950
      throw new IllegalStateException();
23951
    }
23952
 
23953
    @Override
23954
    public boolean equals(Object that) {
23955
      if (that == null)
23956
        return false;
23957
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
23958
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
23959
      return false;
23960
    }
23961
 
23962
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
23963
      if (that == null)
23964
        return false;
23965
 
23966
      boolean this_present_itemKey = true && this.isSetItemKey();
23967
      boolean that_present_itemKey = true && that.isSetItemKey();
23968
      if (this_present_itemKey || that_present_itemKey) {
23969
        if (!(this_present_itemKey && that_present_itemKey))
23970
          return false;
23971
        if (!this.itemKey.equals(that.itemKey))
23972
          return false;
23973
      }
23974
 
23975
      boolean this_present_warehouseId = true;
23976
      boolean that_present_warehouseId = true;
23977
      if (this_present_warehouseId || that_present_warehouseId) {
23978
        if (!(this_present_warehouseId && that_present_warehouseId))
23979
          return false;
23980
        if (this.warehouseId != that.warehouseId)
23981
          return false;
23982
      }
23983
 
23984
      return true;
23985
    }
23986
 
23987
    @Override
23988
    public int hashCode() {
23989
      return 0;
23990
    }
23991
 
23992
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
23993
      if (!getClass().equals(other.getClass())) {
23994
        return getClass().getName().compareTo(other.getClass().getName());
23995
      }
23996
 
23997
      int lastComparison = 0;
23998
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
23999
 
24000
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
24001
      if (lastComparison != 0) {
24002
        return lastComparison;
24003
      }
24004
      if (isSetItemKey()) {
24005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
24006
        if (lastComparison != 0) {
24007
          return lastComparison;
24008
        }
24009
      }
24010
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24011
      if (lastComparison != 0) {
24012
        return lastComparison;
24013
      }
24014
      if (isSetWarehouseId()) {
24015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24016
        if (lastComparison != 0) {
24017
          return lastComparison;
24018
        }
24019
      }
24020
      return 0;
24021
    }
24022
 
24023
    public _Fields fieldForId(int fieldId) {
24024
      return _Fields.findByThriftId(fieldId);
24025
    }
24026
 
24027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24028
      org.apache.thrift.protocol.TField field;
24029
      iprot.readStructBegin();
24030
      while (true)
24031
      {
24032
        field = iprot.readFieldBegin();
24033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24034
          break;
24035
        }
24036
        switch (field.id) {
24037
          case 1: // ITEM_KEY
24038
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24039
              this.itemKey = iprot.readString();
24040
            } else { 
24041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24042
            }
24043
            break;
24044
          case 2: // WAREHOUSE_ID
24045
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24046
              this.warehouseId = iprot.readI64();
24047
              setWarehouseIdIsSet(true);
24048
            } else { 
24049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24050
            }
24051
            break;
24052
          default:
24053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24054
        }
24055
        iprot.readFieldEnd();
24056
      }
24057
      iprot.readStructEnd();
24058
      validate();
24059
    }
24060
 
24061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24062
      validate();
24063
 
24064
      oprot.writeStructBegin(STRUCT_DESC);
24065
      if (this.itemKey != null) {
24066
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
24067
        oprot.writeString(this.itemKey);
24068
        oprot.writeFieldEnd();
24069
      }
24070
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24071
      oprot.writeI64(this.warehouseId);
24072
      oprot.writeFieldEnd();
24073
      oprot.writeFieldStop();
24074
      oprot.writeStructEnd();
24075
    }
24076
 
24077
    @Override
24078
    public String toString() {
24079
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
24080
      boolean first = true;
24081
 
24082
      sb.append("itemKey:");
24083
      if (this.itemKey == null) {
24084
        sb.append("null");
24085
      } else {
24086
        sb.append(this.itemKey);
24087
      }
24088
      first = false;
24089
      if (!first) sb.append(", ");
24090
      sb.append("warehouseId:");
24091
      sb.append(this.warehouseId);
24092
      first = false;
24093
      sb.append(")");
24094
      return sb.toString();
24095
    }
24096
 
24097
    public void validate() throws org.apache.thrift.TException {
24098
      // check for required fields
24099
    }
24100
 
24101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24102
      try {
24103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24104
      } catch (org.apache.thrift.TException te) {
24105
        throw new java.io.IOException(te);
24106
      }
24107
    }
24108
 
24109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24110
      try {
24111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24112
      } catch (org.apache.thrift.TException te) {
24113
        throw new java.io.IOException(te);
24114
      }
24115
    }
24116
 
24117
  }
24118
 
24119
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
24120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
24121
 
24122
 
24123
 
24124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24125
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24126
;
24127
 
24128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24129
 
24130
      static {
24131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24132
          byName.put(field.getFieldName(), field);
24133
        }
24134
      }
24135
 
24136
      /**
24137
       * Find the _Fields constant that matches fieldId, or null if its not found.
24138
       */
24139
      public static _Fields findByThriftId(int fieldId) {
24140
        switch(fieldId) {
24141
          default:
24142
            return null;
24143
        }
24144
      }
24145
 
24146
      /**
24147
       * Find the _Fields constant that matches fieldId, throwing an exception
24148
       * if it is not found.
24149
       */
24150
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24151
        _Fields fields = findByThriftId(fieldId);
24152
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24153
        return fields;
24154
      }
24155
 
24156
      /**
24157
       * Find the _Fields constant that matches name, or null if its not found.
24158
       */
24159
      public static _Fields findByName(String name) {
24160
        return byName.get(name);
24161
      }
24162
 
24163
      private final short _thriftId;
24164
      private final String _fieldName;
24165
 
24166
      _Fields(short thriftId, String fieldName) {
24167
        _thriftId = thriftId;
24168
        _fieldName = fieldName;
24169
      }
24170
 
24171
      public short getThriftFieldId() {
24172
        return _thriftId;
24173
      }
24174
 
24175
      public String getFieldName() {
24176
        return _fieldName;
24177
      }
24178
    }
24179
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24180
    static {
24181
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
24184
    }
24185
 
24186
    public markMissedInventoryUpdatesAsProcessed_result() {
24187
    }
24188
 
24189
    /**
24190
     * Performs a deep copy on <i>other</i>.
24191
     */
24192
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
24193
    }
24194
 
24195
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
24196
      return new markMissedInventoryUpdatesAsProcessed_result(this);
24197
    }
24198
 
24199
    @Override
24200
    public void clear() {
24201
    }
24202
 
24203
    public void setFieldValue(_Fields field, Object value) {
24204
      switch (field) {
24205
      }
24206
    }
24207
 
24208
    public Object getFieldValue(_Fields field) {
24209
      switch (field) {
24210
      }
24211
      throw new IllegalStateException();
24212
    }
24213
 
24214
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24215
    public boolean isSet(_Fields field) {
24216
      if (field == null) {
24217
        throw new IllegalArgumentException();
24218
      }
24219
 
24220
      switch (field) {
24221
      }
24222
      throw new IllegalStateException();
24223
    }
24224
 
24225
    @Override
24226
    public boolean equals(Object that) {
24227
      if (that == null)
24228
        return false;
24229
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
24230
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
24231
      return false;
24232
    }
24233
 
24234
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
24235
      if (that == null)
24236
        return false;
24237
 
24238
      return true;
24239
    }
24240
 
24241
    @Override
24242
    public int hashCode() {
24243
      return 0;
24244
    }
24245
 
24246
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
24247
      if (!getClass().equals(other.getClass())) {
24248
        return getClass().getName().compareTo(other.getClass().getName());
24249
      }
24250
 
24251
      int lastComparison = 0;
24252
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
24253
 
24254
      return 0;
24255
    }
24256
 
24257
    public _Fields fieldForId(int fieldId) {
24258
      return _Fields.findByThriftId(fieldId);
24259
    }
24260
 
24261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24262
      org.apache.thrift.protocol.TField field;
24263
      iprot.readStructBegin();
24264
      while (true)
24265
      {
24266
        field = iprot.readFieldBegin();
24267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24268
          break;
24269
        }
24270
        switch (field.id) {
24271
          default:
24272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24273
        }
24274
        iprot.readFieldEnd();
24275
      }
24276
      iprot.readStructEnd();
24277
      validate();
24278
    }
24279
 
24280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24281
      oprot.writeStructBegin(STRUCT_DESC);
24282
 
24283
      oprot.writeFieldStop();
24284
      oprot.writeStructEnd();
24285
    }
24286
 
24287
    @Override
24288
    public String toString() {
24289
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
24290
      boolean first = true;
24291
 
24292
      sb.append(")");
24293
      return sb.toString();
24294
    }
24295
 
24296
    public void validate() throws org.apache.thrift.TException {
24297
      // check for required fields
24298
    }
24299
 
24300
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24301
      try {
24302
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24303
      } catch (org.apache.thrift.TException te) {
24304
        throw new java.io.IOException(te);
24305
      }
24306
    }
24307
 
24308
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24309
      try {
24310
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24311
      } catch (org.apache.thrift.TException te) {
24312
        throw new java.io.IOException(te);
24313
      }
24314
    }
24315
 
24316
  }
24317
 
24318
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
24319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
24320
 
24321
 
24322
 
24323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24325
;
24326
 
24327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24328
 
24329
      static {
24330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24331
          byName.put(field.getFieldName(), field);
24332
        }
24333
      }
24334
 
24335
      /**
24336
       * Find the _Fields constant that matches fieldId, or null if its not found.
24337
       */
24338
      public static _Fields findByThriftId(int fieldId) {
24339
        switch(fieldId) {
24340
          default:
24341
            return null;
24342
        }
24343
      }
24344
 
24345
      /**
24346
       * Find the _Fields constant that matches fieldId, throwing an exception
24347
       * if it is not found.
24348
       */
24349
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24350
        _Fields fields = findByThriftId(fieldId);
24351
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24352
        return fields;
24353
      }
24354
 
24355
      /**
24356
       * Find the _Fields constant that matches name, or null if its not found.
24357
       */
24358
      public static _Fields findByName(String name) {
24359
        return byName.get(name);
24360
      }
24361
 
24362
      private final short _thriftId;
24363
      private final String _fieldName;
24364
 
24365
      _Fields(short thriftId, String fieldName) {
24366
        _thriftId = thriftId;
24367
        _fieldName = fieldName;
24368
      }
24369
 
24370
      public short getThriftFieldId() {
24371
        return _thriftId;
24372
      }
24373
 
24374
      public String getFieldName() {
24375
        return _fieldName;
24376
      }
24377
    }
24378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24379
    static {
24380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
24383
    }
24384
 
24385
    public getIgnoredItemKeys_args() {
24386
    }
24387
 
24388
    /**
24389
     * Performs a deep copy on <i>other</i>.
24390
     */
24391
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
24392
    }
24393
 
24394
    public getIgnoredItemKeys_args deepCopy() {
24395
      return new getIgnoredItemKeys_args(this);
24396
    }
24397
 
24398
    @Override
24399
    public void clear() {
24400
    }
24401
 
24402
    public void setFieldValue(_Fields field, Object value) {
24403
      switch (field) {
24404
      }
24405
    }
24406
 
24407
    public Object getFieldValue(_Fields field) {
24408
      switch (field) {
24409
      }
24410
      throw new IllegalStateException();
24411
    }
24412
 
24413
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24414
    public boolean isSet(_Fields field) {
24415
      if (field == null) {
24416
        throw new IllegalArgumentException();
24417
      }
24418
 
24419
      switch (field) {
24420
      }
24421
      throw new IllegalStateException();
24422
    }
24423
 
24424
    @Override
24425
    public boolean equals(Object that) {
24426
      if (that == null)
24427
        return false;
24428
      if (that instanceof getIgnoredItemKeys_args)
24429
        return this.equals((getIgnoredItemKeys_args)that);
24430
      return false;
24431
    }
24432
 
24433
    public boolean equals(getIgnoredItemKeys_args that) {
24434
      if (that == null)
24435
        return false;
24436
 
24437
      return true;
24438
    }
24439
 
24440
    @Override
24441
    public int hashCode() {
24442
      return 0;
24443
    }
24444
 
24445
    public int compareTo(getIgnoredItemKeys_args other) {
24446
      if (!getClass().equals(other.getClass())) {
24447
        return getClass().getName().compareTo(other.getClass().getName());
24448
      }
24449
 
24450
      int lastComparison = 0;
24451
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
24452
 
24453
      return 0;
24454
    }
24455
 
24456
    public _Fields fieldForId(int fieldId) {
24457
      return _Fields.findByThriftId(fieldId);
24458
    }
24459
 
24460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24461
      org.apache.thrift.protocol.TField field;
24462
      iprot.readStructBegin();
24463
      while (true)
24464
      {
24465
        field = iprot.readFieldBegin();
24466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24467
          break;
24468
        }
24469
        switch (field.id) {
24470
          default:
24471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24472
        }
24473
        iprot.readFieldEnd();
24474
      }
24475
      iprot.readStructEnd();
24476
      validate();
24477
    }
24478
 
24479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24480
      validate();
24481
 
24482
      oprot.writeStructBegin(STRUCT_DESC);
24483
      oprot.writeFieldStop();
24484
      oprot.writeStructEnd();
24485
    }
24486
 
24487
    @Override
24488
    public String toString() {
24489
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
24490
      boolean first = true;
24491
 
24492
      sb.append(")");
24493
      return sb.toString();
24494
    }
24495
 
24496
    public void validate() throws org.apache.thrift.TException {
24497
      // check for required fields
24498
    }
24499
 
24500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24501
      try {
24502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24503
      } catch (org.apache.thrift.TException te) {
24504
        throw new java.io.IOException(te);
24505
      }
24506
    }
24507
 
24508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24509
      try {
24510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24511
      } catch (org.apache.thrift.TException te) {
24512
        throw new java.io.IOException(te);
24513
      }
24514
    }
24515
 
24516
  }
24517
 
24518
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
24519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
24520
 
24521
    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);
24522
 
24523
    private Map<String,Map<Long,Long>> success; // required
24524
 
24525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24527
      SUCCESS((short)0, "success");
24528
 
24529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24530
 
24531
      static {
24532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24533
          byName.put(field.getFieldName(), field);
24534
        }
24535
      }
24536
 
24537
      /**
24538
       * Find the _Fields constant that matches fieldId, or null if its not found.
24539
       */
24540
      public static _Fields findByThriftId(int fieldId) {
24541
        switch(fieldId) {
24542
          case 0: // SUCCESS
24543
            return SUCCESS;
24544
          default:
24545
            return null;
24546
        }
24547
      }
24548
 
24549
      /**
24550
       * Find the _Fields constant that matches fieldId, throwing an exception
24551
       * if it is not found.
24552
       */
24553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24554
        _Fields fields = findByThriftId(fieldId);
24555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24556
        return fields;
24557
      }
24558
 
24559
      /**
24560
       * Find the _Fields constant that matches name, or null if its not found.
24561
       */
24562
      public static _Fields findByName(String name) {
24563
        return byName.get(name);
24564
      }
24565
 
24566
      private final short _thriftId;
24567
      private final String _fieldName;
24568
 
24569
      _Fields(short thriftId, String fieldName) {
24570
        _thriftId = thriftId;
24571
        _fieldName = fieldName;
24572
      }
24573
 
24574
      public short getThriftFieldId() {
24575
        return _thriftId;
24576
      }
24577
 
24578
      public String getFieldName() {
24579
        return _fieldName;
24580
      }
24581
    }
24582
 
24583
    // isset id assignments
24584
 
24585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24586
    static {
24587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24588
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24589
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24590
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
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.I64), 
24593
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
24594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
24596
    }
24597
 
24598
    public getIgnoredItemKeys_result() {
24599
    }
24600
 
24601
    public getIgnoredItemKeys_result(
24602
      Map<String,Map<Long,Long>> success)
24603
    {
24604
      this();
24605
      this.success = success;
24606
    }
24607
 
24608
    /**
24609
     * Performs a deep copy on <i>other</i>.
24610
     */
24611
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
24612
      if (other.isSetSuccess()) {
24613
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
24614
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
24615
 
24616
          String other_element_key = other_element.getKey();
24617
          Map<Long,Long> other_element_value = other_element.getValue();
24618
 
24619
          String __this__success_copy_key = other_element_key;
24620
 
24621
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
24622
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
24623
 
24624
            Long other_element_value_element_key = other_element_value_element.getKey();
24625
            Long other_element_value_element_value = other_element_value_element.getValue();
24626
 
24627
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
24628
 
24629
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
24630
 
24631
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
24632
          }
24633
 
24634
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
24635
        }
24636
        this.success = __this__success;
24637
      }
24638
    }
24639
 
24640
    public getIgnoredItemKeys_result deepCopy() {
24641
      return new getIgnoredItemKeys_result(this);
24642
    }
24643
 
24644
    @Override
24645
    public void clear() {
24646
      this.success = null;
24647
    }
24648
 
24649
    public int getSuccessSize() {
24650
      return (this.success == null) ? 0 : this.success.size();
24651
    }
24652
 
24653
    public void putToSuccess(String key, Map<Long,Long> val) {
24654
      if (this.success == null) {
24655
        this.success = new HashMap<String,Map<Long,Long>>();
24656
      }
24657
      this.success.put(key, val);
24658
    }
24659
 
24660
    public Map<String,Map<Long,Long>> getSuccess() {
24661
      return this.success;
24662
    }
24663
 
24664
    public void setSuccess(Map<String,Map<Long,Long>> success) {
24665
      this.success = success;
24666
    }
24667
 
24668
    public void unsetSuccess() {
24669
      this.success = null;
24670
    }
24671
 
24672
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24673
    public boolean isSetSuccess() {
24674
      return this.success != null;
24675
    }
24676
 
24677
    public void setSuccessIsSet(boolean value) {
24678
      if (!value) {
24679
        this.success = null;
24680
      }
24681
    }
24682
 
24683
    public void setFieldValue(_Fields field, Object value) {
24684
      switch (field) {
24685
      case SUCCESS:
24686
        if (value == null) {
24687
          unsetSuccess();
24688
        } else {
24689
          setSuccess((Map<String,Map<Long,Long>>)value);
24690
        }
24691
        break;
24692
 
24693
      }
24694
    }
24695
 
24696
    public Object getFieldValue(_Fields field) {
24697
      switch (field) {
24698
      case SUCCESS:
24699
        return getSuccess();
24700
 
24701
      }
24702
      throw new IllegalStateException();
24703
    }
24704
 
24705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24706
    public boolean isSet(_Fields field) {
24707
      if (field == null) {
24708
        throw new IllegalArgumentException();
24709
      }
24710
 
24711
      switch (field) {
24712
      case SUCCESS:
24713
        return isSetSuccess();
24714
      }
24715
      throw new IllegalStateException();
24716
    }
24717
 
24718
    @Override
24719
    public boolean equals(Object that) {
24720
      if (that == null)
24721
        return false;
24722
      if (that instanceof getIgnoredItemKeys_result)
24723
        return this.equals((getIgnoredItemKeys_result)that);
24724
      return false;
24725
    }
24726
 
24727
    public boolean equals(getIgnoredItemKeys_result that) {
24728
      if (that == null)
24729
        return false;
24730
 
24731
      boolean this_present_success = true && this.isSetSuccess();
24732
      boolean that_present_success = true && that.isSetSuccess();
24733
      if (this_present_success || that_present_success) {
24734
        if (!(this_present_success && that_present_success))
24735
          return false;
24736
        if (!this.success.equals(that.success))
24737
          return false;
24738
      }
24739
 
24740
      return true;
24741
    }
24742
 
24743
    @Override
24744
    public int hashCode() {
24745
      return 0;
24746
    }
24747
 
24748
    public int compareTo(getIgnoredItemKeys_result other) {
24749
      if (!getClass().equals(other.getClass())) {
24750
        return getClass().getName().compareTo(other.getClass().getName());
24751
      }
24752
 
24753
      int lastComparison = 0;
24754
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
24755
 
24756
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24757
      if (lastComparison != 0) {
24758
        return lastComparison;
24759
      }
24760
      if (isSetSuccess()) {
24761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24762
        if (lastComparison != 0) {
24763
          return lastComparison;
24764
        }
24765
      }
24766
      return 0;
24767
    }
24768
 
24769
    public _Fields fieldForId(int fieldId) {
24770
      return _Fields.findByThriftId(fieldId);
24771
    }
24772
 
24773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24774
      org.apache.thrift.protocol.TField field;
24775
      iprot.readStructBegin();
24776
      while (true)
24777
      {
24778
        field = iprot.readFieldBegin();
24779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24780
          break;
24781
        }
24782
        switch (field.id) {
24783
          case 0: // SUCCESS
24784
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
24785
              {
24786
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
24787
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
24788
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
24789
                {
24790
                  String _key58; // required
24791
                  Map<Long,Long> _val59; // required
24792
                  _key58 = iprot.readString();
24793
                  {
24794
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
24795
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
24796
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
24797
                    {
24798
                      long _key62; // required
24799
                      long _val63; // required
24800
                      _key62 = iprot.readI64();
24801
                      _val63 = iprot.readI64();
24802
                      _val59.put(_key62, _val63);
24803
                    }
24804
                    iprot.readMapEnd();
24805
                  }
24806
                  this.success.put(_key58, _val59);
24807
                }
24808
                iprot.readMapEnd();
24809
              }
24810
            } else { 
24811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24812
            }
24813
            break;
24814
          default:
24815
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24816
        }
24817
        iprot.readFieldEnd();
24818
      }
24819
      iprot.readStructEnd();
24820
      validate();
24821
    }
24822
 
24823
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24824
      oprot.writeStructBegin(STRUCT_DESC);
24825
 
24826
      if (this.isSetSuccess()) {
24827
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24828
        {
24829
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
24830
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
24831
          {
24832
            oprot.writeString(_iter64.getKey());
24833
            {
24834
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
24835
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
24836
              {
24837
                oprot.writeI64(_iter65.getKey());
24838
                oprot.writeI64(_iter65.getValue());
24839
              }
24840
              oprot.writeMapEnd();
24841
            }
24842
          }
24843
          oprot.writeMapEnd();
24844
        }
24845
        oprot.writeFieldEnd();
24846
      }
24847
      oprot.writeFieldStop();
24848
      oprot.writeStructEnd();
24849
    }
24850
 
24851
    @Override
24852
    public String toString() {
24853
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
24854
      boolean first = true;
24855
 
24856
      sb.append("success:");
24857
      if (this.success == null) {
24858
        sb.append("null");
24859
      } else {
24860
        sb.append(this.success);
24861
      }
24862
      first = false;
24863
      sb.append(")");
24864
      return sb.toString();
24865
    }
24866
 
24867
    public void validate() throws org.apache.thrift.TException {
24868
      // check for required fields
24869
    }
24870
 
24871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24872
      try {
24873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24874
      } catch (org.apache.thrift.TException te) {
24875
        throw new java.io.IOException(te);
24876
      }
24877
    }
24878
 
24879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24880
      try {
24881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24882
      } catch (org.apache.thrift.TException te) {
24883
        throw new java.io.IOException(te);
24884
      }
24885
    }
24886
 
24887
  }
24888
 
24889
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
24890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
24891
 
24892
    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);
24893
    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);
24894
    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);
24895
 
24896
    private long itemId; // required
24897
    private long warehouseId; // required
24898
    private long quantity; // required
24899
 
24900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24902
      ITEM_ID((short)1, "itemId"),
24903
      WAREHOUSE_ID((short)2, "warehouseId"),
24904
      QUANTITY((short)3, "quantity");
24905
 
24906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24907
 
24908
      static {
24909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24910
          byName.put(field.getFieldName(), field);
24911
        }
24912
      }
24913
 
24914
      /**
24915
       * Find the _Fields constant that matches fieldId, or null if its not found.
24916
       */
24917
      public static _Fields findByThriftId(int fieldId) {
24918
        switch(fieldId) {
24919
          case 1: // ITEM_ID
24920
            return ITEM_ID;
24921
          case 2: // WAREHOUSE_ID
24922
            return WAREHOUSE_ID;
24923
          case 3: // QUANTITY
24924
            return QUANTITY;
24925
          default:
24926
            return null;
24927
        }
24928
      }
24929
 
24930
      /**
24931
       * Find the _Fields constant that matches fieldId, throwing an exception
24932
       * if it is not found.
24933
       */
24934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24935
        _Fields fields = findByThriftId(fieldId);
24936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24937
        return fields;
24938
      }
24939
 
24940
      /**
24941
       * Find the _Fields constant that matches name, or null if its not found.
24942
       */
24943
      public static _Fields findByName(String name) {
24944
        return byName.get(name);
24945
      }
24946
 
24947
      private final short _thriftId;
24948
      private final String _fieldName;
24949
 
24950
      _Fields(short thriftId, String fieldName) {
24951
        _thriftId = thriftId;
24952
        _fieldName = fieldName;
24953
      }
24954
 
24955
      public short getThriftFieldId() {
24956
        return _thriftId;
24957
      }
24958
 
24959
      public String getFieldName() {
24960
        return _fieldName;
24961
      }
24962
    }
24963
 
24964
    // isset id assignments
24965
    private static final int __ITEMID_ISSET_ID = 0;
24966
    private static final int __WAREHOUSEID_ISSET_ID = 1;
24967
    private static final int __QUANTITY_ISSET_ID = 2;
24968
    private BitSet __isset_bit_vector = new BitSet(3);
24969
 
24970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24971
    static {
24972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24973
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24975
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24977
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
24981
    }
24982
 
24983
    public addBadInventory_args() {
24984
    }
24985
 
24986
    public addBadInventory_args(
24987
      long itemId,
24988
      long warehouseId,
24989
      long quantity)
24990
    {
24991
      this();
24992
      this.itemId = itemId;
24993
      setItemIdIsSet(true);
24994
      this.warehouseId = warehouseId;
24995
      setWarehouseIdIsSet(true);
24996
      this.quantity = quantity;
24997
      setQuantityIsSet(true);
24998
    }
24999
 
25000
    /**
25001
     * Performs a deep copy on <i>other</i>.
25002
     */
25003
    public addBadInventory_args(addBadInventory_args other) {
25004
      __isset_bit_vector.clear();
25005
      __isset_bit_vector.or(other.__isset_bit_vector);
25006
      this.itemId = other.itemId;
25007
      this.warehouseId = other.warehouseId;
25008
      this.quantity = other.quantity;
25009
    }
25010
 
25011
    public addBadInventory_args deepCopy() {
25012
      return new addBadInventory_args(this);
25013
    }
25014
 
25015
    @Override
25016
    public void clear() {
25017
      setItemIdIsSet(false);
25018
      this.itemId = 0;
25019
      setWarehouseIdIsSet(false);
25020
      this.warehouseId = 0;
25021
      setQuantityIsSet(false);
25022
      this.quantity = 0;
25023
    }
25024
 
25025
    public long getItemId() {
25026
      return this.itemId;
25027
    }
25028
 
25029
    public void setItemId(long itemId) {
25030
      this.itemId = itemId;
25031
      setItemIdIsSet(true);
25032
    }
25033
 
25034
    public void unsetItemId() {
25035
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
25036
    }
25037
 
25038
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
25039
    public boolean isSetItemId() {
25040
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
25041
    }
25042
 
25043
    public void setItemIdIsSet(boolean value) {
25044
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
25045
    }
25046
 
25047
    public long getWarehouseId() {
25048
      return this.warehouseId;
25049
    }
25050
 
25051
    public void setWarehouseId(long warehouseId) {
25052
      this.warehouseId = warehouseId;
25053
      setWarehouseIdIsSet(true);
25054
    }
25055
 
25056
    public void unsetWarehouseId() {
25057
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25058
    }
25059
 
25060
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25061
    public boolean isSetWarehouseId() {
25062
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25063
    }
25064
 
25065
    public void setWarehouseIdIsSet(boolean value) {
25066
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25067
    }
25068
 
25069
    public long getQuantity() {
25070
      return this.quantity;
25071
    }
25072
 
25073
    public void setQuantity(long quantity) {
25074
      this.quantity = quantity;
25075
      setQuantityIsSet(true);
25076
    }
25077
 
25078
    public void unsetQuantity() {
25079
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
25080
    }
25081
 
25082
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
25083
    public boolean isSetQuantity() {
25084
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
25085
    }
25086
 
25087
    public void setQuantityIsSet(boolean value) {
25088
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
25089
    }
25090
 
25091
    public void setFieldValue(_Fields field, Object value) {
25092
      switch (field) {
25093
      case ITEM_ID:
25094
        if (value == null) {
25095
          unsetItemId();
25096
        } else {
25097
          setItemId((Long)value);
25098
        }
25099
        break;
25100
 
25101
      case WAREHOUSE_ID:
25102
        if (value == null) {
25103
          unsetWarehouseId();
25104
        } else {
25105
          setWarehouseId((Long)value);
25106
        }
25107
        break;
25108
 
25109
      case QUANTITY:
25110
        if (value == null) {
25111
          unsetQuantity();
25112
        } else {
25113
          setQuantity((Long)value);
25114
        }
25115
        break;
25116
 
25117
      }
25118
    }
25119
 
25120
    public Object getFieldValue(_Fields field) {
25121
      switch (field) {
25122
      case ITEM_ID:
25123
        return Long.valueOf(getItemId());
25124
 
25125
      case WAREHOUSE_ID:
25126
        return Long.valueOf(getWarehouseId());
25127
 
25128
      case QUANTITY:
25129
        return Long.valueOf(getQuantity());
25130
 
25131
      }
25132
      throw new IllegalStateException();
25133
    }
25134
 
25135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25136
    public boolean isSet(_Fields field) {
25137
      if (field == null) {
25138
        throw new IllegalArgumentException();
25139
      }
25140
 
25141
      switch (field) {
25142
      case ITEM_ID:
25143
        return isSetItemId();
25144
      case WAREHOUSE_ID:
25145
        return isSetWarehouseId();
25146
      case QUANTITY:
25147
        return isSetQuantity();
25148
      }
25149
      throw new IllegalStateException();
25150
    }
25151
 
25152
    @Override
25153
    public boolean equals(Object that) {
25154
      if (that == null)
25155
        return false;
25156
      if (that instanceof addBadInventory_args)
25157
        return this.equals((addBadInventory_args)that);
25158
      return false;
25159
    }
25160
 
25161
    public boolean equals(addBadInventory_args that) {
25162
      if (that == null)
25163
        return false;
25164
 
25165
      boolean this_present_itemId = true;
25166
      boolean that_present_itemId = true;
25167
      if (this_present_itemId || that_present_itemId) {
25168
        if (!(this_present_itemId && that_present_itemId))
25169
          return false;
25170
        if (this.itemId != that.itemId)
25171
          return false;
25172
      }
25173
 
25174
      boolean this_present_warehouseId = true;
25175
      boolean that_present_warehouseId = true;
25176
      if (this_present_warehouseId || that_present_warehouseId) {
25177
        if (!(this_present_warehouseId && that_present_warehouseId))
25178
          return false;
25179
        if (this.warehouseId != that.warehouseId)
25180
          return false;
25181
      }
25182
 
25183
      boolean this_present_quantity = true;
25184
      boolean that_present_quantity = true;
25185
      if (this_present_quantity || that_present_quantity) {
25186
        if (!(this_present_quantity && that_present_quantity))
25187
          return false;
25188
        if (this.quantity != that.quantity)
25189
          return false;
25190
      }
25191
 
25192
      return true;
25193
    }
25194
 
25195
    @Override
25196
    public int hashCode() {
25197
      return 0;
25198
    }
25199
 
25200
    public int compareTo(addBadInventory_args other) {
25201
      if (!getClass().equals(other.getClass())) {
25202
        return getClass().getName().compareTo(other.getClass().getName());
25203
      }
25204
 
25205
      int lastComparison = 0;
25206
      addBadInventory_args typedOther = (addBadInventory_args)other;
25207
 
25208
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
25209
      if (lastComparison != 0) {
25210
        return lastComparison;
25211
      }
25212
      if (isSetItemId()) {
25213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
25214
        if (lastComparison != 0) {
25215
          return lastComparison;
25216
        }
25217
      }
25218
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25219
      if (lastComparison != 0) {
25220
        return lastComparison;
25221
      }
25222
      if (isSetWarehouseId()) {
25223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25224
        if (lastComparison != 0) {
25225
          return lastComparison;
25226
        }
25227
      }
25228
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
25229
      if (lastComparison != 0) {
25230
        return lastComparison;
25231
      }
25232
      if (isSetQuantity()) {
25233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
25234
        if (lastComparison != 0) {
25235
          return lastComparison;
25236
        }
25237
      }
25238
      return 0;
25239
    }
25240
 
25241
    public _Fields fieldForId(int fieldId) {
25242
      return _Fields.findByThriftId(fieldId);
25243
    }
25244
 
25245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25246
      org.apache.thrift.protocol.TField field;
25247
      iprot.readStructBegin();
25248
      while (true)
25249
      {
25250
        field = iprot.readFieldBegin();
25251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25252
          break;
25253
        }
25254
        switch (field.id) {
25255
          case 1: // ITEM_ID
25256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25257
              this.itemId = iprot.readI64();
25258
              setItemIdIsSet(true);
25259
            } else { 
25260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25261
            }
25262
            break;
25263
          case 2: // WAREHOUSE_ID
25264
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25265
              this.warehouseId = iprot.readI64();
25266
              setWarehouseIdIsSet(true);
25267
            } else { 
25268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25269
            }
25270
            break;
25271
          case 3: // QUANTITY
25272
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25273
              this.quantity = iprot.readI64();
25274
              setQuantityIsSet(true);
25275
            } else { 
25276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25277
            }
25278
            break;
25279
          default:
25280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25281
        }
25282
        iprot.readFieldEnd();
25283
      }
25284
      iprot.readStructEnd();
25285
      validate();
25286
    }
25287
 
25288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25289
      validate();
25290
 
25291
      oprot.writeStructBegin(STRUCT_DESC);
25292
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
25293
      oprot.writeI64(this.itemId);
25294
      oprot.writeFieldEnd();
25295
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25296
      oprot.writeI64(this.warehouseId);
25297
      oprot.writeFieldEnd();
25298
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
25299
      oprot.writeI64(this.quantity);
25300
      oprot.writeFieldEnd();
25301
      oprot.writeFieldStop();
25302
      oprot.writeStructEnd();
25303
    }
25304
 
25305
    @Override
25306
    public String toString() {
25307
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
25308
      boolean first = true;
25309
 
25310
      sb.append("itemId:");
25311
      sb.append(this.itemId);
25312
      first = false;
25313
      if (!first) sb.append(", ");
25314
      sb.append("warehouseId:");
25315
      sb.append(this.warehouseId);
25316
      first = false;
25317
      if (!first) sb.append(", ");
25318
      sb.append("quantity:");
25319
      sb.append(this.quantity);
25320
      first = false;
25321
      sb.append(")");
25322
      return sb.toString();
25323
    }
25324
 
25325
    public void validate() throws org.apache.thrift.TException {
25326
      // check for required fields
25327
    }
25328
 
25329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25330
      try {
25331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25332
      } catch (org.apache.thrift.TException te) {
25333
        throw new java.io.IOException(te);
25334
      }
25335
    }
25336
 
25337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25338
      try {
25339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25340
      } catch (org.apache.thrift.TException te) {
25341
        throw new java.io.IOException(te);
25342
      }
25343
    }
25344
 
25345
  }
25346
 
25347
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
25348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
25349
 
25350
    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);
25351
 
25352
    private InventoryServiceException cex; // required
25353
 
25354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25356
      CEX((short)1, "cex");
25357
 
25358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25359
 
25360
      static {
25361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25362
          byName.put(field.getFieldName(), field);
25363
        }
25364
      }
25365
 
25366
      /**
25367
       * Find the _Fields constant that matches fieldId, or null if its not found.
25368
       */
25369
      public static _Fields findByThriftId(int fieldId) {
25370
        switch(fieldId) {
25371
          case 1: // CEX
25372
            return CEX;
25373
          default:
25374
            return null;
25375
        }
25376
      }
25377
 
25378
      /**
25379
       * Find the _Fields constant that matches fieldId, throwing an exception
25380
       * if it is not found.
25381
       */
25382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25383
        _Fields fields = findByThriftId(fieldId);
25384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25385
        return fields;
25386
      }
25387
 
25388
      /**
25389
       * Find the _Fields constant that matches name, or null if its not found.
25390
       */
25391
      public static _Fields findByName(String name) {
25392
        return byName.get(name);
25393
      }
25394
 
25395
      private final short _thriftId;
25396
      private final String _fieldName;
25397
 
25398
      _Fields(short thriftId, String fieldName) {
25399
        _thriftId = thriftId;
25400
        _fieldName = fieldName;
25401
      }
25402
 
25403
      public short getThriftFieldId() {
25404
        return _thriftId;
25405
      }
25406
 
25407
      public String getFieldName() {
25408
        return _fieldName;
25409
      }
25410
    }
25411
 
25412
    // isset id assignments
25413
 
25414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25415
    static {
25416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25417
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
25421
    }
25422
 
25423
    public addBadInventory_result() {
25424
    }
25425
 
25426
    public addBadInventory_result(
25427
      InventoryServiceException cex)
25428
    {
25429
      this();
25430
      this.cex = cex;
25431
    }
25432
 
25433
    /**
25434
     * Performs a deep copy on <i>other</i>.
25435
     */
25436
    public addBadInventory_result(addBadInventory_result other) {
25437
      if (other.isSetCex()) {
25438
        this.cex = new InventoryServiceException(other.cex);
25439
      }
25440
    }
25441
 
25442
    public addBadInventory_result deepCopy() {
25443
      return new addBadInventory_result(this);
25444
    }
25445
 
25446
    @Override
25447
    public void clear() {
25448
      this.cex = null;
25449
    }
25450
 
25451
    public InventoryServiceException getCex() {
25452
      return this.cex;
25453
    }
25454
 
25455
    public void setCex(InventoryServiceException cex) {
25456
      this.cex = cex;
25457
    }
25458
 
25459
    public void unsetCex() {
25460
      this.cex = null;
25461
    }
25462
 
25463
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
25464
    public boolean isSetCex() {
25465
      return this.cex != null;
25466
    }
25467
 
25468
    public void setCexIsSet(boolean value) {
25469
      if (!value) {
25470
        this.cex = null;
25471
      }
25472
    }
25473
 
25474
    public void setFieldValue(_Fields field, Object value) {
25475
      switch (field) {
25476
      case CEX:
25477
        if (value == null) {
25478
          unsetCex();
25479
        } else {
25480
          setCex((InventoryServiceException)value);
25481
        }
25482
        break;
25483
 
25484
      }
25485
    }
25486
 
25487
    public Object getFieldValue(_Fields field) {
25488
      switch (field) {
25489
      case CEX:
25490
        return getCex();
25491
 
25492
      }
25493
      throw new IllegalStateException();
25494
    }
25495
 
25496
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25497
    public boolean isSet(_Fields field) {
25498
      if (field == null) {
25499
        throw new IllegalArgumentException();
25500
      }
25501
 
25502
      switch (field) {
25503
      case CEX:
25504
        return isSetCex();
25505
      }
25506
      throw new IllegalStateException();
25507
    }
25508
 
25509
    @Override
25510
    public boolean equals(Object that) {
25511
      if (that == null)
25512
        return false;
25513
      if (that instanceof addBadInventory_result)
25514
        return this.equals((addBadInventory_result)that);
25515
      return false;
25516
    }
25517
 
25518
    public boolean equals(addBadInventory_result that) {
25519
      if (that == null)
25520
        return false;
25521
 
25522
      boolean this_present_cex = true && this.isSetCex();
25523
      boolean that_present_cex = true && that.isSetCex();
25524
      if (this_present_cex || that_present_cex) {
25525
        if (!(this_present_cex && that_present_cex))
25526
          return false;
25527
        if (!this.cex.equals(that.cex))
25528
          return false;
25529
      }
25530
 
25531
      return true;
25532
    }
25533
 
25534
    @Override
25535
    public int hashCode() {
25536
      return 0;
25537
    }
25538
 
25539
    public int compareTo(addBadInventory_result other) {
25540
      if (!getClass().equals(other.getClass())) {
25541
        return getClass().getName().compareTo(other.getClass().getName());
25542
      }
25543
 
25544
      int lastComparison = 0;
25545
      addBadInventory_result typedOther = (addBadInventory_result)other;
25546
 
25547
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25548
      if (lastComparison != 0) {
25549
        return lastComparison;
25550
      }
25551
      if (isSetCex()) {
25552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25553
        if (lastComparison != 0) {
25554
          return lastComparison;
25555
        }
25556
      }
25557
      return 0;
25558
    }
25559
 
25560
    public _Fields fieldForId(int fieldId) {
25561
      return _Fields.findByThriftId(fieldId);
25562
    }
25563
 
25564
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25565
      org.apache.thrift.protocol.TField field;
25566
      iprot.readStructBegin();
25567
      while (true)
25568
      {
25569
        field = iprot.readFieldBegin();
25570
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25571
          break;
25572
        }
25573
        switch (field.id) {
25574
          case 1: // CEX
25575
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25576
              this.cex = new InventoryServiceException();
25577
              this.cex.read(iprot);
25578
            } else { 
25579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25580
            }
25581
            break;
25582
          default:
25583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25584
        }
25585
        iprot.readFieldEnd();
25586
      }
25587
      iprot.readStructEnd();
25588
      validate();
25589
    }
25590
 
25591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25592
      oprot.writeStructBegin(STRUCT_DESC);
25593
 
25594
      if (this.isSetCex()) {
25595
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25596
        this.cex.write(oprot);
25597
        oprot.writeFieldEnd();
25598
      }
25599
      oprot.writeFieldStop();
25600
      oprot.writeStructEnd();
25601
    }
25602
 
25603
    @Override
25604
    public String toString() {
25605
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
25606
      boolean first = true;
25607
 
25608
      sb.append("cex:");
25609
      if (this.cex == null) {
25610
        sb.append("null");
25611
      } else {
25612
        sb.append(this.cex);
25613
      }
25614
      first = false;
25615
      sb.append(")");
25616
      return sb.toString();
25617
    }
25618
 
25619
    public void validate() throws org.apache.thrift.TException {
25620
      // check for required fields
25621
    }
25622
 
25623
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25624
      try {
25625
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25626
      } catch (org.apache.thrift.TException te) {
25627
        throw new java.io.IOException(te);
25628
      }
25629
    }
25630
 
25631
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25632
      try {
25633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25634
      } catch (org.apache.thrift.TException te) {
25635
        throw new java.io.IOException(te);
25636
      }
25637
    }
25638
 
25639
  }
25640
 
25641
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
25642
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
25643
 
25644
 
25645
 
25646
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25647
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25648
;
25649
 
25650
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25651
 
25652
      static {
25653
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25654
          byName.put(field.getFieldName(), field);
25655
        }
25656
      }
25657
 
25658
      /**
25659
       * Find the _Fields constant that matches fieldId, or null if its not found.
25660
       */
25661
      public static _Fields findByThriftId(int fieldId) {
25662
        switch(fieldId) {
25663
          default:
25664
            return null;
25665
        }
25666
      }
25667
 
25668
      /**
25669
       * Find the _Fields constant that matches fieldId, throwing an exception
25670
       * if it is not found.
25671
       */
25672
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25673
        _Fields fields = findByThriftId(fieldId);
25674
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25675
        return fields;
25676
      }
25677
 
25678
      /**
25679
       * Find the _Fields constant that matches name, or null if its not found.
25680
       */
25681
      public static _Fields findByName(String name) {
25682
        return byName.get(name);
25683
      }
25684
 
25685
      private final short _thriftId;
25686
      private final String _fieldName;
25687
 
25688
      _Fields(short thriftId, String fieldName) {
25689
        _thriftId = thriftId;
25690
        _fieldName = fieldName;
25691
      }
25692
 
25693
      public short getThriftFieldId() {
25694
        return _thriftId;
25695
      }
25696
 
25697
      public String getFieldName() {
25698
        return _fieldName;
25699
      }
25700
    }
25701
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25702
    static {
25703
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
25706
    }
25707
 
25708
    public getShippingLocations_args() {
25709
    }
25710
 
25711
    /**
25712
     * Performs a deep copy on <i>other</i>.
25713
     */
25714
    public getShippingLocations_args(getShippingLocations_args other) {
25715
    }
25716
 
25717
    public getShippingLocations_args deepCopy() {
25718
      return new getShippingLocations_args(this);
25719
    }
25720
 
25721
    @Override
25722
    public void clear() {
25723
    }
25724
 
25725
    public void setFieldValue(_Fields field, Object value) {
25726
      switch (field) {
25727
      }
25728
    }
25729
 
25730
    public Object getFieldValue(_Fields field) {
25731
      switch (field) {
25732
      }
25733
      throw new IllegalStateException();
25734
    }
25735
 
25736
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25737
    public boolean isSet(_Fields field) {
25738
      if (field == null) {
25739
        throw new IllegalArgumentException();
25740
      }
25741
 
25742
      switch (field) {
25743
      }
25744
      throw new IllegalStateException();
25745
    }
25746
 
25747
    @Override
25748
    public boolean equals(Object that) {
25749
      if (that == null)
25750
        return false;
25751
      if (that instanceof getShippingLocations_args)
25752
        return this.equals((getShippingLocations_args)that);
25753
      return false;
25754
    }
25755
 
25756
    public boolean equals(getShippingLocations_args that) {
25757
      if (that == null)
25758
        return false;
25759
 
25760
      return true;
25761
    }
25762
 
25763
    @Override
25764
    public int hashCode() {
25765
      return 0;
25766
    }
25767
 
25768
    public int compareTo(getShippingLocations_args other) {
25769
      if (!getClass().equals(other.getClass())) {
25770
        return getClass().getName().compareTo(other.getClass().getName());
25771
      }
25772
 
25773
      int lastComparison = 0;
25774
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
25775
 
25776
      return 0;
25777
    }
25778
 
25779
    public _Fields fieldForId(int fieldId) {
25780
      return _Fields.findByThriftId(fieldId);
25781
    }
25782
 
25783
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25784
      org.apache.thrift.protocol.TField field;
25785
      iprot.readStructBegin();
25786
      while (true)
25787
      {
25788
        field = iprot.readFieldBegin();
25789
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25790
          break;
25791
        }
25792
        switch (field.id) {
25793
          default:
25794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25795
        }
25796
        iprot.readFieldEnd();
25797
      }
25798
      iprot.readStructEnd();
25799
      validate();
25800
    }
25801
 
25802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25803
      validate();
25804
 
25805
      oprot.writeStructBegin(STRUCT_DESC);
25806
      oprot.writeFieldStop();
25807
      oprot.writeStructEnd();
25808
    }
25809
 
25810
    @Override
25811
    public String toString() {
25812
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
25813
      boolean first = true;
25814
 
25815
      sb.append(")");
25816
      return sb.toString();
25817
    }
25818
 
25819
    public void validate() throws org.apache.thrift.TException {
25820
      // check for required fields
25821
    }
25822
 
25823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25824
      try {
25825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25826
      } catch (org.apache.thrift.TException te) {
25827
        throw new java.io.IOException(te);
25828
      }
25829
    }
25830
 
25831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25832
      try {
25833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25834
      } catch (org.apache.thrift.TException te) {
25835
        throw new java.io.IOException(te);
25836
      }
25837
    }
25838
 
25839
  }
25840
 
25841
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
25842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
25843
 
25844
    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);
25845
 
25846
    private List<Warehouse> success; // required
25847
 
25848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25849
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25850
      SUCCESS((short)0, "success");
25851
 
25852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25853
 
25854
      static {
25855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25856
          byName.put(field.getFieldName(), field);
25857
        }
25858
      }
25859
 
25860
      /**
25861
       * Find the _Fields constant that matches fieldId, or null if its not found.
25862
       */
25863
      public static _Fields findByThriftId(int fieldId) {
25864
        switch(fieldId) {
25865
          case 0: // SUCCESS
25866
            return SUCCESS;
25867
          default:
25868
            return null;
25869
        }
25870
      }
25871
 
25872
      /**
25873
       * Find the _Fields constant that matches fieldId, throwing an exception
25874
       * if it is not found.
25875
       */
25876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25877
        _Fields fields = findByThriftId(fieldId);
25878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25879
        return fields;
25880
      }
25881
 
25882
      /**
25883
       * Find the _Fields constant that matches name, or null if its not found.
25884
       */
25885
      public static _Fields findByName(String name) {
25886
        return byName.get(name);
25887
      }
25888
 
25889
      private final short _thriftId;
25890
      private final String _fieldName;
25891
 
25892
      _Fields(short thriftId, String fieldName) {
25893
        _thriftId = thriftId;
25894
        _fieldName = fieldName;
25895
      }
25896
 
25897
      public short getThriftFieldId() {
25898
        return _thriftId;
25899
      }
25900
 
25901
      public String getFieldName() {
25902
        return _fieldName;
25903
      }
25904
    }
25905
 
25906
    // isset id assignments
25907
 
25908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25909
    static {
25910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25911
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25912
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25913
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
25916
    }
25917
 
25918
    public getShippingLocations_result() {
25919
    }
25920
 
25921
    public getShippingLocations_result(
25922
      List<Warehouse> success)
25923
    {
25924
      this();
25925
      this.success = success;
25926
    }
25927
 
25928
    /**
25929
     * Performs a deep copy on <i>other</i>.
25930
     */
25931
    public getShippingLocations_result(getShippingLocations_result other) {
25932
      if (other.isSetSuccess()) {
25933
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25934
        for (Warehouse other_element : other.success) {
25935
          __this__success.add(new Warehouse(other_element));
25936
        }
25937
        this.success = __this__success;
25938
      }
25939
    }
25940
 
25941
    public getShippingLocations_result deepCopy() {
25942
      return new getShippingLocations_result(this);
25943
    }
25944
 
25945
    @Override
25946
    public void clear() {
25947
      this.success = null;
25948
    }
25949
 
25950
    public int getSuccessSize() {
25951
      return (this.success == null) ? 0 : this.success.size();
25952
    }
25953
 
25954
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25955
      return (this.success == null) ? null : this.success.iterator();
25956
    }
25957
 
25958
    public void addToSuccess(Warehouse elem) {
25959
      if (this.success == null) {
25960
        this.success = new ArrayList<Warehouse>();
25961
      }
25962
      this.success.add(elem);
25963
    }
25964
 
25965
    public List<Warehouse> getSuccess() {
25966
      return this.success;
25967
    }
25968
 
25969
    public void setSuccess(List<Warehouse> success) {
25970
      this.success = success;
25971
    }
25972
 
25973
    public void unsetSuccess() {
25974
      this.success = null;
25975
    }
25976
 
25977
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25978
    public boolean isSetSuccess() {
25979
      return this.success != null;
25980
    }
25981
 
25982
    public void setSuccessIsSet(boolean value) {
25983
      if (!value) {
25984
        this.success = null;
25985
      }
25986
    }
25987
 
25988
    public void setFieldValue(_Fields field, Object value) {
25989
      switch (field) {
25990
      case SUCCESS:
25991
        if (value == null) {
25992
          unsetSuccess();
25993
        } else {
25994
          setSuccess((List<Warehouse>)value);
25995
        }
25996
        break;
25997
 
25998
      }
25999
    }
26000
 
26001
    public Object getFieldValue(_Fields field) {
26002
      switch (field) {
26003
      case SUCCESS:
26004
        return getSuccess();
26005
 
26006
      }
26007
      throw new IllegalStateException();
26008
    }
26009
 
26010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26011
    public boolean isSet(_Fields field) {
26012
      if (field == null) {
26013
        throw new IllegalArgumentException();
26014
      }
26015
 
26016
      switch (field) {
26017
      case SUCCESS:
26018
        return isSetSuccess();
26019
      }
26020
      throw new IllegalStateException();
26021
    }
26022
 
26023
    @Override
26024
    public boolean equals(Object that) {
26025
      if (that == null)
26026
        return false;
26027
      if (that instanceof getShippingLocations_result)
26028
        return this.equals((getShippingLocations_result)that);
26029
      return false;
26030
    }
26031
 
26032
    public boolean equals(getShippingLocations_result that) {
26033
      if (that == null)
26034
        return false;
26035
 
26036
      boolean this_present_success = true && this.isSetSuccess();
26037
      boolean that_present_success = true && that.isSetSuccess();
26038
      if (this_present_success || that_present_success) {
26039
        if (!(this_present_success && that_present_success))
26040
          return false;
26041
        if (!this.success.equals(that.success))
26042
          return false;
26043
      }
26044
 
26045
      return true;
26046
    }
26047
 
26048
    @Override
26049
    public int hashCode() {
26050
      return 0;
26051
    }
26052
 
26053
    public int compareTo(getShippingLocations_result other) {
26054
      if (!getClass().equals(other.getClass())) {
26055
        return getClass().getName().compareTo(other.getClass().getName());
26056
      }
26057
 
26058
      int lastComparison = 0;
26059
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
26060
 
26061
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26062
      if (lastComparison != 0) {
26063
        return lastComparison;
26064
      }
26065
      if (isSetSuccess()) {
26066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26067
        if (lastComparison != 0) {
26068
          return lastComparison;
26069
        }
26070
      }
26071
      return 0;
26072
    }
26073
 
26074
    public _Fields fieldForId(int fieldId) {
26075
      return _Fields.findByThriftId(fieldId);
26076
    }
26077
 
26078
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26079
      org.apache.thrift.protocol.TField field;
26080
      iprot.readStructBegin();
26081
      while (true)
26082
      {
26083
        field = iprot.readFieldBegin();
26084
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26085
          break;
26086
        }
26087
        switch (field.id) {
26088
          case 0: // SUCCESS
26089
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26090
              {
26091
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
26092
                this.success = new ArrayList<Warehouse>(_list66.size);
26093
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
26094
                {
26095
                  Warehouse _elem68; // required
26096
                  _elem68 = new Warehouse();
26097
                  _elem68.read(iprot);
26098
                  this.success.add(_elem68);
26099
                }
26100
                iprot.readListEnd();
26101
              }
26102
            } else { 
26103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26104
            }
26105
            break;
26106
          default:
26107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26108
        }
26109
        iprot.readFieldEnd();
26110
      }
26111
      iprot.readStructEnd();
26112
      validate();
26113
    }
26114
 
26115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26116
      oprot.writeStructBegin(STRUCT_DESC);
26117
 
26118
      if (this.isSetSuccess()) {
26119
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26120
        {
26121
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26122
          for (Warehouse _iter69 : this.success)
26123
          {
26124
            _iter69.write(oprot);
26125
          }
26126
          oprot.writeListEnd();
26127
        }
26128
        oprot.writeFieldEnd();
26129
      }
26130
      oprot.writeFieldStop();
26131
      oprot.writeStructEnd();
26132
    }
26133
 
26134
    @Override
26135
    public String toString() {
26136
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
26137
      boolean first = true;
26138
 
26139
      sb.append("success:");
26140
      if (this.success == null) {
26141
        sb.append("null");
26142
      } else {
26143
        sb.append(this.success);
26144
      }
26145
      first = false;
26146
      sb.append(")");
26147
      return sb.toString();
26148
    }
26149
 
26150
    public void validate() throws org.apache.thrift.TException {
26151
      // check for required fields
26152
    }
26153
 
26154
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26155
      try {
26156
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26157
      } catch (org.apache.thrift.TException te) {
26158
        throw new java.io.IOException(te);
26159
      }
26160
    }
26161
 
26162
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26163
      try {
26164
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26165
      } catch (org.apache.thrift.TException te) {
26166
        throw new java.io.IOException(te);
26167
      }
26168
    }
26169
 
26170
  }
26171
 
26172
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
26173
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
26174
 
26175
 
26176
 
26177
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26178
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26179
;
26180
 
26181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26182
 
26183
      static {
26184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26185
          byName.put(field.getFieldName(), field);
26186
        }
26187
      }
26188
 
26189
      /**
26190
       * Find the _Fields constant that matches fieldId, or null if its not found.
26191
       */
26192
      public static _Fields findByThriftId(int fieldId) {
26193
        switch(fieldId) {
26194
          default:
26195
            return null;
26196
        }
26197
      }
26198
 
26199
      /**
26200
       * Find the _Fields constant that matches fieldId, throwing an exception
26201
       * if it is not found.
26202
       */
26203
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26204
        _Fields fields = findByThriftId(fieldId);
26205
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26206
        return fields;
26207
      }
26208
 
26209
      /**
26210
       * Find the _Fields constant that matches name, or null if its not found.
26211
       */
26212
      public static _Fields findByName(String name) {
26213
        return byName.get(name);
26214
      }
26215
 
26216
      private final short _thriftId;
26217
      private final String _fieldName;
26218
 
26219
      _Fields(short thriftId, String fieldName) {
26220
        _thriftId = thriftId;
26221
        _fieldName = fieldName;
26222
      }
26223
 
26224
      public short getThriftFieldId() {
26225
        return _thriftId;
26226
      }
26227
 
26228
      public String getFieldName() {
26229
        return _fieldName;
26230
      }
26231
    }
26232
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26233
    static {
26234
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26235
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26236
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
26237
    }
26238
 
26239
    public getAllVendorItemMappings_args() {
26240
    }
26241
 
26242
    /**
26243
     * Performs a deep copy on <i>other</i>.
26244
     */
26245
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
26246
    }
26247
 
26248
    public getAllVendorItemMappings_args deepCopy() {
26249
      return new getAllVendorItemMappings_args(this);
26250
    }
26251
 
26252
    @Override
26253
    public void clear() {
26254
    }
26255
 
26256
    public void setFieldValue(_Fields field, Object value) {
26257
      switch (field) {
26258
      }
26259
    }
26260
 
26261
    public Object getFieldValue(_Fields field) {
26262
      switch (field) {
26263
      }
26264
      throw new IllegalStateException();
26265
    }
26266
 
26267
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26268
    public boolean isSet(_Fields field) {
26269
      if (field == null) {
26270
        throw new IllegalArgumentException();
26271
      }
26272
 
26273
      switch (field) {
26274
      }
26275
      throw new IllegalStateException();
26276
    }
26277
 
26278
    @Override
26279
    public boolean equals(Object that) {
26280
      if (that == null)
26281
        return false;
26282
      if (that instanceof getAllVendorItemMappings_args)
26283
        return this.equals((getAllVendorItemMappings_args)that);
26284
      return false;
26285
    }
26286
 
26287
    public boolean equals(getAllVendorItemMappings_args that) {
26288
      if (that == null)
26289
        return false;
26290
 
26291
      return true;
26292
    }
26293
 
26294
    @Override
26295
    public int hashCode() {
26296
      return 0;
26297
    }
26298
 
26299
    public int compareTo(getAllVendorItemMappings_args other) {
26300
      if (!getClass().equals(other.getClass())) {
26301
        return getClass().getName().compareTo(other.getClass().getName());
26302
      }
26303
 
26304
      int lastComparison = 0;
26305
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
26306
 
26307
      return 0;
26308
    }
26309
 
26310
    public _Fields fieldForId(int fieldId) {
26311
      return _Fields.findByThriftId(fieldId);
26312
    }
26313
 
26314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26315
      org.apache.thrift.protocol.TField field;
26316
      iprot.readStructBegin();
26317
      while (true)
26318
      {
26319
        field = iprot.readFieldBegin();
26320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26321
          break;
26322
        }
26323
        switch (field.id) {
26324
          default:
26325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26326
        }
26327
        iprot.readFieldEnd();
26328
      }
26329
      iprot.readStructEnd();
26330
      validate();
26331
    }
26332
 
26333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26334
      validate();
26335
 
26336
      oprot.writeStructBegin(STRUCT_DESC);
26337
      oprot.writeFieldStop();
26338
      oprot.writeStructEnd();
26339
    }
26340
 
26341
    @Override
26342
    public String toString() {
26343
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
26344
      boolean first = true;
26345
 
26346
      sb.append(")");
26347
      return sb.toString();
26348
    }
26349
 
26350
    public void validate() throws org.apache.thrift.TException {
26351
      // check for required fields
26352
    }
26353
 
26354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26355
      try {
26356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26357
      } catch (org.apache.thrift.TException te) {
26358
        throw new java.io.IOException(te);
26359
      }
26360
    }
26361
 
26362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26363
      try {
26364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26365
      } catch (org.apache.thrift.TException te) {
26366
        throw new java.io.IOException(te);
26367
      }
26368
    }
26369
 
26370
  }
26371
 
26372
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
26373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
26374
 
26375
    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);
26376
 
26377
    private List<VendorItemMapping> success; // required
26378
 
26379
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26380
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26381
      SUCCESS((short)0, "success");
26382
 
26383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26384
 
26385
      static {
26386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26387
          byName.put(field.getFieldName(), field);
26388
        }
26389
      }
26390
 
26391
      /**
26392
       * Find the _Fields constant that matches fieldId, or null if its not found.
26393
       */
26394
      public static _Fields findByThriftId(int fieldId) {
26395
        switch(fieldId) {
26396
          case 0: // SUCCESS
26397
            return SUCCESS;
26398
          default:
26399
            return null;
26400
        }
26401
      }
26402
 
26403
      /**
26404
       * Find the _Fields constant that matches fieldId, throwing an exception
26405
       * if it is not found.
26406
       */
26407
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26408
        _Fields fields = findByThriftId(fieldId);
26409
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26410
        return fields;
26411
      }
26412
 
26413
      /**
26414
       * Find the _Fields constant that matches name, or null if its not found.
26415
       */
26416
      public static _Fields findByName(String name) {
26417
        return byName.get(name);
26418
      }
26419
 
26420
      private final short _thriftId;
26421
      private final String _fieldName;
26422
 
26423
      _Fields(short thriftId, String fieldName) {
26424
        _thriftId = thriftId;
26425
        _fieldName = fieldName;
26426
      }
26427
 
26428
      public short getThriftFieldId() {
26429
        return _thriftId;
26430
      }
26431
 
26432
      public String getFieldName() {
26433
        return _fieldName;
26434
      }
26435
    }
26436
 
26437
    // isset id assignments
26438
 
26439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26440
    static {
26441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26442
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26443
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26444
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
26445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
26447
    }
26448
 
26449
    public getAllVendorItemMappings_result() {
26450
    }
26451
 
26452
    public getAllVendorItemMappings_result(
26453
      List<VendorItemMapping> success)
26454
    {
26455
      this();
26456
      this.success = success;
26457
    }
26458
 
26459
    /**
26460
     * Performs a deep copy on <i>other</i>.
26461
     */
26462
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
26463
      if (other.isSetSuccess()) {
26464
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
26465
        for (VendorItemMapping other_element : other.success) {
26466
          __this__success.add(new VendorItemMapping(other_element));
26467
        }
26468
        this.success = __this__success;
26469
      }
26470
    }
26471
 
26472
    public getAllVendorItemMappings_result deepCopy() {
26473
      return new getAllVendorItemMappings_result(this);
26474
    }
26475
 
26476
    @Override
26477
    public void clear() {
26478
      this.success = null;
26479
    }
26480
 
26481
    public int getSuccessSize() {
26482
      return (this.success == null) ? 0 : this.success.size();
26483
    }
26484
 
26485
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
26486
      return (this.success == null) ? null : this.success.iterator();
26487
    }
26488
 
26489
    public void addToSuccess(VendorItemMapping elem) {
26490
      if (this.success == null) {
26491
        this.success = new ArrayList<VendorItemMapping>();
26492
      }
26493
      this.success.add(elem);
26494
    }
26495
 
26496
    public List<VendorItemMapping> getSuccess() {
26497
      return this.success;
26498
    }
26499
 
26500
    public void setSuccess(List<VendorItemMapping> success) {
26501
      this.success = success;
26502
    }
26503
 
26504
    public void unsetSuccess() {
26505
      this.success = null;
26506
    }
26507
 
26508
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26509
    public boolean isSetSuccess() {
26510
      return this.success != null;
26511
    }
26512
 
26513
    public void setSuccessIsSet(boolean value) {
26514
      if (!value) {
26515
        this.success = null;
26516
      }
26517
    }
26518
 
26519
    public void setFieldValue(_Fields field, Object value) {
26520
      switch (field) {
26521
      case SUCCESS:
26522
        if (value == null) {
26523
          unsetSuccess();
26524
        } else {
26525
          setSuccess((List<VendorItemMapping>)value);
26526
        }
26527
        break;
26528
 
26529
      }
26530
    }
26531
 
26532
    public Object getFieldValue(_Fields field) {
26533
      switch (field) {
26534
      case SUCCESS:
26535
        return getSuccess();
26536
 
26537
      }
26538
      throw new IllegalStateException();
26539
    }
26540
 
26541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26542
    public boolean isSet(_Fields field) {
26543
      if (field == null) {
26544
        throw new IllegalArgumentException();
26545
      }
26546
 
26547
      switch (field) {
26548
      case SUCCESS:
26549
        return isSetSuccess();
26550
      }
26551
      throw new IllegalStateException();
26552
    }
26553
 
26554
    @Override
26555
    public boolean equals(Object that) {
26556
      if (that == null)
26557
        return false;
26558
      if (that instanceof getAllVendorItemMappings_result)
26559
        return this.equals((getAllVendorItemMappings_result)that);
26560
      return false;
26561
    }
26562
 
26563
    public boolean equals(getAllVendorItemMappings_result that) {
26564
      if (that == null)
26565
        return false;
26566
 
26567
      boolean this_present_success = true && this.isSetSuccess();
26568
      boolean that_present_success = true && that.isSetSuccess();
26569
      if (this_present_success || that_present_success) {
26570
        if (!(this_present_success && that_present_success))
26571
          return false;
26572
        if (!this.success.equals(that.success))
26573
          return false;
26574
      }
26575
 
26576
      return true;
26577
    }
26578
 
26579
    @Override
26580
    public int hashCode() {
26581
      return 0;
26582
    }
26583
 
26584
    public int compareTo(getAllVendorItemMappings_result other) {
26585
      if (!getClass().equals(other.getClass())) {
26586
        return getClass().getName().compareTo(other.getClass().getName());
26587
      }
26588
 
26589
      int lastComparison = 0;
26590
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
26591
 
26592
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26593
      if (lastComparison != 0) {
26594
        return lastComparison;
26595
      }
26596
      if (isSetSuccess()) {
26597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26598
        if (lastComparison != 0) {
26599
          return lastComparison;
26600
        }
26601
      }
26602
      return 0;
26603
    }
26604
 
26605
    public _Fields fieldForId(int fieldId) {
26606
      return _Fields.findByThriftId(fieldId);
26607
    }
26608
 
26609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26610
      org.apache.thrift.protocol.TField field;
26611
      iprot.readStructBegin();
26612
      while (true)
26613
      {
26614
        field = iprot.readFieldBegin();
26615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26616
          break;
26617
        }
26618
        switch (field.id) {
26619
          case 0: // SUCCESS
26620
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26621
              {
26622
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
26623
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
26624
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
26625
                {
26626
                  VendorItemMapping _elem72; // required
26627
                  _elem72 = new VendorItemMapping();
26628
                  _elem72.read(iprot);
26629
                  this.success.add(_elem72);
26630
                }
26631
                iprot.readListEnd();
26632
              }
26633
            } else { 
26634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26635
            }
26636
            break;
26637
          default:
26638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26639
        }
26640
        iprot.readFieldEnd();
26641
      }
26642
      iprot.readStructEnd();
26643
      validate();
26644
    }
26645
 
26646
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26647
      oprot.writeStructBegin(STRUCT_DESC);
26648
 
26649
      if (this.isSetSuccess()) {
26650
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26651
        {
26652
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26653
          for (VendorItemMapping _iter73 : this.success)
26654
          {
26655
            _iter73.write(oprot);
26656
          }
26657
          oprot.writeListEnd();
26658
        }
26659
        oprot.writeFieldEnd();
26660
      }
26661
      oprot.writeFieldStop();
26662
      oprot.writeStructEnd();
26663
    }
26664
 
26665
    @Override
26666
    public String toString() {
26667
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
26668
      boolean first = true;
26669
 
26670
      sb.append("success:");
26671
      if (this.success == null) {
26672
        sb.append("null");
26673
      } else {
26674
        sb.append(this.success);
26675
      }
26676
      first = false;
26677
      sb.append(")");
26678
      return sb.toString();
26679
    }
26680
 
26681
    public void validate() throws org.apache.thrift.TException {
26682
      // check for required fields
26683
    }
26684
 
26685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26686
      try {
26687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26688
      } catch (org.apache.thrift.TException te) {
26689
        throw new java.io.IOException(te);
26690
      }
26691
    }
26692
 
26693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26694
      try {
26695
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26696
      } catch (org.apache.thrift.TException te) {
26697
        throw new java.io.IOException(te);
26698
      }
26699
    }
26700
 
26701
  }
26702
 
26703
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
26704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
26705
 
26706
    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);
26707
 
26708
    private long warehouseId; // required
26709
 
26710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26712
      WAREHOUSE_ID((short)1, "warehouseId");
26713
 
26714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26715
 
26716
      static {
26717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26718
          byName.put(field.getFieldName(), field);
26719
        }
26720
      }
26721
 
26722
      /**
26723
       * Find the _Fields constant that matches fieldId, or null if its not found.
26724
       */
26725
      public static _Fields findByThriftId(int fieldId) {
26726
        switch(fieldId) {
26727
          case 1: // WAREHOUSE_ID
26728
            return WAREHOUSE_ID;
26729
          default:
26730
            return null;
26731
        }
26732
      }
26733
 
26734
      /**
26735
       * Find the _Fields constant that matches fieldId, throwing an exception
26736
       * if it is not found.
26737
       */
26738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26739
        _Fields fields = findByThriftId(fieldId);
26740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26741
        return fields;
26742
      }
26743
 
26744
      /**
26745
       * Find the _Fields constant that matches name, or null if its not found.
26746
       */
26747
      public static _Fields findByName(String name) {
26748
        return byName.get(name);
26749
      }
26750
 
26751
      private final short _thriftId;
26752
      private final String _fieldName;
26753
 
26754
      _Fields(short thriftId, String fieldName) {
26755
        _thriftId = thriftId;
26756
        _fieldName = fieldName;
26757
      }
26758
 
26759
      public short getThriftFieldId() {
26760
        return _thriftId;
26761
      }
26762
 
26763
      public String getFieldName() {
26764
        return _fieldName;
26765
      }
26766
    }
26767
 
26768
    // isset id assignments
26769
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26770
    private BitSet __isset_bit_vector = new BitSet(1);
26771
 
26772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26773
    static {
26774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26775
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26777
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26778
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
26779
    }
26780
 
26781
    public getInventorySnapshot_args() {
26782
    }
26783
 
26784
    public getInventorySnapshot_args(
26785
      long warehouseId)
26786
    {
26787
      this();
26788
      this.warehouseId = warehouseId;
26789
      setWarehouseIdIsSet(true);
26790
    }
26791
 
26792
    /**
26793
     * Performs a deep copy on <i>other</i>.
26794
     */
26795
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
26796
      __isset_bit_vector.clear();
26797
      __isset_bit_vector.or(other.__isset_bit_vector);
26798
      this.warehouseId = other.warehouseId;
26799
    }
26800
 
26801
    public getInventorySnapshot_args deepCopy() {
26802
      return new getInventorySnapshot_args(this);
26803
    }
26804
 
26805
    @Override
26806
    public void clear() {
26807
      setWarehouseIdIsSet(false);
26808
      this.warehouseId = 0;
26809
    }
26810
 
26811
    public long getWarehouseId() {
26812
      return this.warehouseId;
26813
    }
26814
 
26815
    public void setWarehouseId(long warehouseId) {
26816
      this.warehouseId = warehouseId;
26817
      setWarehouseIdIsSet(true);
26818
    }
26819
 
26820
    public void unsetWarehouseId() {
26821
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26822
    }
26823
 
26824
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26825
    public boolean isSetWarehouseId() {
26826
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26827
    }
26828
 
26829
    public void setWarehouseIdIsSet(boolean value) {
26830
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26831
    }
26832
 
26833
    public void setFieldValue(_Fields field, Object value) {
26834
      switch (field) {
26835
      case WAREHOUSE_ID:
26836
        if (value == null) {
26837
          unsetWarehouseId();
26838
        } else {
26839
          setWarehouseId((Long)value);
26840
        }
26841
        break;
26842
 
26843
      }
26844
    }
26845
 
26846
    public Object getFieldValue(_Fields field) {
26847
      switch (field) {
26848
      case WAREHOUSE_ID:
26849
        return Long.valueOf(getWarehouseId());
26850
 
26851
      }
26852
      throw new IllegalStateException();
26853
    }
26854
 
26855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26856
    public boolean isSet(_Fields field) {
26857
      if (field == null) {
26858
        throw new IllegalArgumentException();
26859
      }
26860
 
26861
      switch (field) {
26862
      case WAREHOUSE_ID:
26863
        return isSetWarehouseId();
26864
      }
26865
      throw new IllegalStateException();
26866
    }
26867
 
26868
    @Override
26869
    public boolean equals(Object that) {
26870
      if (that == null)
26871
        return false;
26872
      if (that instanceof getInventorySnapshot_args)
26873
        return this.equals((getInventorySnapshot_args)that);
26874
      return false;
26875
    }
26876
 
26877
    public boolean equals(getInventorySnapshot_args that) {
26878
      if (that == null)
26879
        return false;
26880
 
26881
      boolean this_present_warehouseId = true;
26882
      boolean that_present_warehouseId = true;
26883
      if (this_present_warehouseId || that_present_warehouseId) {
26884
        if (!(this_present_warehouseId && that_present_warehouseId))
26885
          return false;
26886
        if (this.warehouseId != that.warehouseId)
26887
          return false;
26888
      }
26889
 
26890
      return true;
26891
    }
26892
 
26893
    @Override
26894
    public int hashCode() {
26895
      return 0;
26896
    }
26897
 
26898
    public int compareTo(getInventorySnapshot_args other) {
26899
      if (!getClass().equals(other.getClass())) {
26900
        return getClass().getName().compareTo(other.getClass().getName());
26901
      }
26902
 
26903
      int lastComparison = 0;
26904
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
26905
 
26906
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26907
      if (lastComparison != 0) {
26908
        return lastComparison;
26909
      }
26910
      if (isSetWarehouseId()) {
26911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26912
        if (lastComparison != 0) {
26913
          return lastComparison;
26914
        }
26915
      }
26916
      return 0;
26917
    }
26918
 
26919
    public _Fields fieldForId(int fieldId) {
26920
      return _Fields.findByThriftId(fieldId);
26921
    }
26922
 
26923
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26924
      org.apache.thrift.protocol.TField field;
26925
      iprot.readStructBegin();
26926
      while (true)
26927
      {
26928
        field = iprot.readFieldBegin();
26929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26930
          break;
26931
        }
26932
        switch (field.id) {
26933
          case 1: // WAREHOUSE_ID
26934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26935
              this.warehouseId = iprot.readI64();
26936
              setWarehouseIdIsSet(true);
26937
            } else { 
26938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26939
            }
26940
            break;
26941
          default:
26942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26943
        }
26944
        iprot.readFieldEnd();
26945
      }
26946
      iprot.readStructEnd();
26947
      validate();
26948
    }
26949
 
26950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26951
      validate();
26952
 
26953
      oprot.writeStructBegin(STRUCT_DESC);
26954
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26955
      oprot.writeI64(this.warehouseId);
26956
      oprot.writeFieldEnd();
26957
      oprot.writeFieldStop();
26958
      oprot.writeStructEnd();
26959
    }
26960
 
26961
    @Override
26962
    public String toString() {
26963
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
26964
      boolean first = true;
26965
 
26966
      sb.append("warehouseId:");
26967
      sb.append(this.warehouseId);
26968
      first = false;
26969
      sb.append(")");
26970
      return sb.toString();
26971
    }
26972
 
26973
    public void validate() throws org.apache.thrift.TException {
26974
      // check for required fields
26975
    }
26976
 
26977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26978
      try {
26979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26980
      } catch (org.apache.thrift.TException te) {
26981
        throw new java.io.IOException(te);
26982
      }
26983
    }
26984
 
26985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26986
      try {
26987
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26988
        __isset_bit_vector = new BitSet(1);
26989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26990
      } catch (org.apache.thrift.TException te) {
26991
        throw new java.io.IOException(te);
26992
      }
26993
    }
26994
 
26995
  }
26996
 
26997
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
26998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
26999
 
27000
    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);
27001
 
27002
    private Map<Long,ItemInventory> success; // required
27003
 
27004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27006
      SUCCESS((short)0, "success");
27007
 
27008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27009
 
27010
      static {
27011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27012
          byName.put(field.getFieldName(), field);
27013
        }
27014
      }
27015
 
27016
      /**
27017
       * Find the _Fields constant that matches fieldId, or null if its not found.
27018
       */
27019
      public static _Fields findByThriftId(int fieldId) {
27020
        switch(fieldId) {
27021
          case 0: // SUCCESS
27022
            return SUCCESS;
27023
          default:
27024
            return null;
27025
        }
27026
      }
27027
 
27028
      /**
27029
       * Find the _Fields constant that matches fieldId, throwing an exception
27030
       * if it is not found.
27031
       */
27032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27033
        _Fields fields = findByThriftId(fieldId);
27034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27035
        return fields;
27036
      }
27037
 
27038
      /**
27039
       * Find the _Fields constant that matches name, or null if its not found.
27040
       */
27041
      public static _Fields findByName(String name) {
27042
        return byName.get(name);
27043
      }
27044
 
27045
      private final short _thriftId;
27046
      private final String _fieldName;
27047
 
27048
      _Fields(short thriftId, String fieldName) {
27049
        _thriftId = thriftId;
27050
        _fieldName = fieldName;
27051
      }
27052
 
27053
      public short getThriftFieldId() {
27054
        return _thriftId;
27055
      }
27056
 
27057
      public String getFieldName() {
27058
        return _fieldName;
27059
      }
27060
    }
27061
 
27062
    // isset id assignments
27063
 
27064
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27065
    static {
27066
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27067
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27068
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
27069
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
27070
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
27071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
27073
    }
27074
 
27075
    public getInventorySnapshot_result() {
27076
    }
27077
 
27078
    public getInventorySnapshot_result(
27079
      Map<Long,ItemInventory> success)
27080
    {
27081
      this();
27082
      this.success = success;
27083
    }
27084
 
27085
    /**
27086
     * Performs a deep copy on <i>other</i>.
27087
     */
27088
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
27089
      if (other.isSetSuccess()) {
27090
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
27091
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
27092
 
27093
          Long other_element_key = other_element.getKey();
27094
          ItemInventory other_element_value = other_element.getValue();
27095
 
27096
          Long __this__success_copy_key = other_element_key;
27097
 
27098
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
27099
 
27100
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
27101
        }
27102
        this.success = __this__success;
27103
      }
27104
    }
27105
 
27106
    public getInventorySnapshot_result deepCopy() {
27107
      return new getInventorySnapshot_result(this);
27108
    }
27109
 
27110
    @Override
27111
    public void clear() {
27112
      this.success = null;
27113
    }
27114
 
27115
    public int getSuccessSize() {
27116
      return (this.success == null) ? 0 : this.success.size();
27117
    }
27118
 
27119
    public void putToSuccess(long key, ItemInventory val) {
27120
      if (this.success == null) {
27121
        this.success = new HashMap<Long,ItemInventory>();
27122
      }
27123
      this.success.put(key, val);
27124
    }
27125
 
27126
    public Map<Long,ItemInventory> getSuccess() {
27127
      return this.success;
27128
    }
27129
 
27130
    public void setSuccess(Map<Long,ItemInventory> success) {
27131
      this.success = success;
27132
    }
27133
 
27134
    public void unsetSuccess() {
27135
      this.success = null;
27136
    }
27137
 
27138
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27139
    public boolean isSetSuccess() {
27140
      return this.success != null;
27141
    }
27142
 
27143
    public void setSuccessIsSet(boolean value) {
27144
      if (!value) {
27145
        this.success = null;
27146
      }
27147
    }
27148
 
27149
    public void setFieldValue(_Fields field, Object value) {
27150
      switch (field) {
27151
      case SUCCESS:
27152
        if (value == null) {
27153
          unsetSuccess();
27154
        } else {
27155
          setSuccess((Map<Long,ItemInventory>)value);
27156
        }
27157
        break;
27158
 
27159
      }
27160
    }
27161
 
27162
    public Object getFieldValue(_Fields field) {
27163
      switch (field) {
27164
      case SUCCESS:
27165
        return getSuccess();
27166
 
27167
      }
27168
      throw new IllegalStateException();
27169
    }
27170
 
27171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27172
    public boolean isSet(_Fields field) {
27173
      if (field == null) {
27174
        throw new IllegalArgumentException();
27175
      }
27176
 
27177
      switch (field) {
27178
      case SUCCESS:
27179
        return isSetSuccess();
27180
      }
27181
      throw new IllegalStateException();
27182
    }
27183
 
27184
    @Override
27185
    public boolean equals(Object that) {
27186
      if (that == null)
27187
        return false;
27188
      if (that instanceof getInventorySnapshot_result)
27189
        return this.equals((getInventorySnapshot_result)that);
27190
      return false;
27191
    }
27192
 
27193
    public boolean equals(getInventorySnapshot_result that) {
27194
      if (that == null)
27195
        return false;
27196
 
27197
      boolean this_present_success = true && this.isSetSuccess();
27198
      boolean that_present_success = true && that.isSetSuccess();
27199
      if (this_present_success || that_present_success) {
27200
        if (!(this_present_success && that_present_success))
27201
          return false;
27202
        if (!this.success.equals(that.success))
27203
          return false;
27204
      }
27205
 
27206
      return true;
27207
    }
27208
 
27209
    @Override
27210
    public int hashCode() {
27211
      return 0;
27212
    }
27213
 
27214
    public int compareTo(getInventorySnapshot_result other) {
27215
      if (!getClass().equals(other.getClass())) {
27216
        return getClass().getName().compareTo(other.getClass().getName());
27217
      }
27218
 
27219
      int lastComparison = 0;
27220
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
27221
 
27222
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27223
      if (lastComparison != 0) {
27224
        return lastComparison;
27225
      }
27226
      if (isSetSuccess()) {
27227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27228
        if (lastComparison != 0) {
27229
          return lastComparison;
27230
        }
27231
      }
27232
      return 0;
27233
    }
27234
 
27235
    public _Fields fieldForId(int fieldId) {
27236
      return _Fields.findByThriftId(fieldId);
27237
    }
27238
 
27239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27240
      org.apache.thrift.protocol.TField field;
27241
      iprot.readStructBegin();
27242
      while (true)
27243
      {
27244
        field = iprot.readFieldBegin();
27245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27246
          break;
27247
        }
27248
        switch (field.id) {
27249
          case 0: // SUCCESS
27250
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
27251
              {
27252
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
27253
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
27254
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
27255
                {
27256
                  long _key76; // required
27257
                  ItemInventory _val77; // required
27258
                  _key76 = iprot.readI64();
27259
                  _val77 = new ItemInventory();
27260
                  _val77.read(iprot);
27261
                  this.success.put(_key76, _val77);
27262
                }
27263
                iprot.readMapEnd();
27264
              }
27265
            } else { 
27266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27267
            }
27268
            break;
27269
          default:
27270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27271
        }
27272
        iprot.readFieldEnd();
27273
      }
27274
      iprot.readStructEnd();
27275
      validate();
27276
    }
27277
 
27278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27279
      oprot.writeStructBegin(STRUCT_DESC);
27280
 
27281
      if (this.isSetSuccess()) {
27282
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27283
        {
27284
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27285
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
27286
          {
27287
            oprot.writeI64(_iter78.getKey());
27288
            _iter78.getValue().write(oprot);
27289
          }
27290
          oprot.writeMapEnd();
27291
        }
27292
        oprot.writeFieldEnd();
27293
      }
27294
      oprot.writeFieldStop();
27295
      oprot.writeStructEnd();
27296
    }
27297
 
27298
    @Override
27299
    public String toString() {
27300
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
27301
      boolean first = true;
27302
 
27303
      sb.append("success:");
27304
      if (this.success == null) {
27305
        sb.append("null");
27306
      } else {
27307
        sb.append(this.success);
27308
      }
27309
      first = false;
27310
      sb.append(")");
27311
      return sb.toString();
27312
    }
27313
 
27314
    public void validate() throws org.apache.thrift.TException {
27315
      // check for required fields
27316
    }
27317
 
27318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27319
      try {
27320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27321
      } catch (org.apache.thrift.TException te) {
27322
        throw new java.io.IOException(te);
27323
      }
27324
    }
27325
 
27326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27327
      try {
27328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27329
      } catch (org.apache.thrift.TException te) {
27330
        throw new java.io.IOException(te);
27331
      }
27332
    }
27333
 
27334
  }
27335
 
27336
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
27337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
27338
 
27339
 
27340
 
27341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27343
;
27344
 
27345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27346
 
27347
      static {
27348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27349
          byName.put(field.getFieldName(), field);
27350
        }
27351
      }
27352
 
27353
      /**
27354
       * Find the _Fields constant that matches fieldId, or null if its not found.
27355
       */
27356
      public static _Fields findByThriftId(int fieldId) {
27357
        switch(fieldId) {
27358
          default:
27359
            return null;
27360
        }
27361
      }
27362
 
27363
      /**
27364
       * Find the _Fields constant that matches fieldId, throwing an exception
27365
       * if it is not found.
27366
       */
27367
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27368
        _Fields fields = findByThriftId(fieldId);
27369
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27370
        return fields;
27371
      }
27372
 
27373
      /**
27374
       * Find the _Fields constant that matches name, or null if its not found.
27375
       */
27376
      public static _Fields findByName(String name) {
27377
        return byName.get(name);
27378
      }
27379
 
27380
      private final short _thriftId;
27381
      private final String _fieldName;
27382
 
27383
      _Fields(short thriftId, String fieldName) {
27384
        _thriftId = thriftId;
27385
        _fieldName = fieldName;
27386
      }
27387
 
27388
      public short getThriftFieldId() {
27389
        return _thriftId;
27390
      }
27391
 
27392
      public String getFieldName() {
27393
        return _fieldName;
27394
      }
27395
    }
27396
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27397
    static {
27398
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27399
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27400
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
27401
    }
27402
 
27403
    public clearItemAvailabilityCache_args() {
27404
    }
27405
 
27406
    /**
27407
     * Performs a deep copy on <i>other</i>.
27408
     */
27409
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
27410
    }
27411
 
27412
    public clearItemAvailabilityCache_args deepCopy() {
27413
      return new clearItemAvailabilityCache_args(this);
27414
    }
27415
 
27416
    @Override
27417
    public void clear() {
27418
    }
27419
 
27420
    public void setFieldValue(_Fields field, Object value) {
27421
      switch (field) {
27422
      }
27423
    }
27424
 
27425
    public Object getFieldValue(_Fields field) {
27426
      switch (field) {
27427
      }
27428
      throw new IllegalStateException();
27429
    }
27430
 
27431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27432
    public boolean isSet(_Fields field) {
27433
      if (field == null) {
27434
        throw new IllegalArgumentException();
27435
      }
27436
 
27437
      switch (field) {
27438
      }
27439
      throw new IllegalStateException();
27440
    }
27441
 
27442
    @Override
27443
    public boolean equals(Object that) {
27444
      if (that == null)
27445
        return false;
27446
      if (that instanceof clearItemAvailabilityCache_args)
27447
        return this.equals((clearItemAvailabilityCache_args)that);
27448
      return false;
27449
    }
27450
 
27451
    public boolean equals(clearItemAvailabilityCache_args that) {
27452
      if (that == null)
27453
        return false;
27454
 
27455
      return true;
27456
    }
27457
 
27458
    @Override
27459
    public int hashCode() {
27460
      return 0;
27461
    }
27462
 
27463
    public int compareTo(clearItemAvailabilityCache_args other) {
27464
      if (!getClass().equals(other.getClass())) {
27465
        return getClass().getName().compareTo(other.getClass().getName());
27466
      }
27467
 
27468
      int lastComparison = 0;
27469
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
27470
 
27471
      return 0;
27472
    }
27473
 
27474
    public _Fields fieldForId(int fieldId) {
27475
      return _Fields.findByThriftId(fieldId);
27476
    }
27477
 
27478
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27479
      org.apache.thrift.protocol.TField field;
27480
      iprot.readStructBegin();
27481
      while (true)
27482
      {
27483
        field = iprot.readFieldBegin();
27484
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27485
          break;
27486
        }
27487
        switch (field.id) {
27488
          default:
27489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27490
        }
27491
        iprot.readFieldEnd();
27492
      }
27493
      iprot.readStructEnd();
27494
      validate();
27495
    }
27496
 
27497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27498
      validate();
27499
 
27500
      oprot.writeStructBegin(STRUCT_DESC);
27501
      oprot.writeFieldStop();
27502
      oprot.writeStructEnd();
27503
    }
27504
 
27505
    @Override
27506
    public String toString() {
27507
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
27508
      boolean first = true;
27509
 
27510
      sb.append(")");
27511
      return sb.toString();
27512
    }
27513
 
27514
    public void validate() throws org.apache.thrift.TException {
27515
      // check for required fields
27516
    }
27517
 
27518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27519
      try {
27520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27521
      } catch (org.apache.thrift.TException te) {
27522
        throw new java.io.IOException(te);
27523
      }
27524
    }
27525
 
27526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27527
      try {
27528
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27529
      } catch (org.apache.thrift.TException te) {
27530
        throw new java.io.IOException(te);
27531
      }
27532
    }
27533
 
27534
  }
27535
 
27536
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
27537
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
27538
 
27539
 
27540
 
27541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27543
;
27544
 
27545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27546
 
27547
      static {
27548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27549
          byName.put(field.getFieldName(), field);
27550
        }
27551
      }
27552
 
27553
      /**
27554
       * Find the _Fields constant that matches fieldId, or null if its not found.
27555
       */
27556
      public static _Fields findByThriftId(int fieldId) {
27557
        switch(fieldId) {
27558
          default:
27559
            return null;
27560
        }
27561
      }
27562
 
27563
      /**
27564
       * Find the _Fields constant that matches fieldId, throwing an exception
27565
       * if it is not found.
27566
       */
27567
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27568
        _Fields fields = findByThriftId(fieldId);
27569
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27570
        return fields;
27571
      }
27572
 
27573
      /**
27574
       * Find the _Fields constant that matches name, or null if its not found.
27575
       */
27576
      public static _Fields findByName(String name) {
27577
        return byName.get(name);
27578
      }
27579
 
27580
      private final short _thriftId;
27581
      private final String _fieldName;
27582
 
27583
      _Fields(short thriftId, String fieldName) {
27584
        _thriftId = thriftId;
27585
        _fieldName = fieldName;
27586
      }
27587
 
27588
      public short getThriftFieldId() {
27589
        return _thriftId;
27590
      }
27591
 
27592
      public String getFieldName() {
27593
        return _fieldName;
27594
      }
27595
    }
27596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27597
    static {
27598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
27601
    }
27602
 
27603
    public clearItemAvailabilityCache_result() {
27604
    }
27605
 
27606
    /**
27607
     * Performs a deep copy on <i>other</i>.
27608
     */
27609
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
27610
    }
27611
 
27612
    public clearItemAvailabilityCache_result deepCopy() {
27613
      return new clearItemAvailabilityCache_result(this);
27614
    }
27615
 
27616
    @Override
27617
    public void clear() {
27618
    }
27619
 
27620
    public void setFieldValue(_Fields field, Object value) {
27621
      switch (field) {
27622
      }
27623
    }
27624
 
27625
    public Object getFieldValue(_Fields field) {
27626
      switch (field) {
27627
      }
27628
      throw new IllegalStateException();
27629
    }
27630
 
27631
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27632
    public boolean isSet(_Fields field) {
27633
      if (field == null) {
27634
        throw new IllegalArgumentException();
27635
      }
27636
 
27637
      switch (field) {
27638
      }
27639
      throw new IllegalStateException();
27640
    }
27641
 
27642
    @Override
27643
    public boolean equals(Object that) {
27644
      if (that == null)
27645
        return false;
27646
      if (that instanceof clearItemAvailabilityCache_result)
27647
        return this.equals((clearItemAvailabilityCache_result)that);
27648
      return false;
27649
    }
27650
 
27651
    public boolean equals(clearItemAvailabilityCache_result that) {
27652
      if (that == null)
27653
        return false;
27654
 
27655
      return true;
27656
    }
27657
 
27658
    @Override
27659
    public int hashCode() {
27660
      return 0;
27661
    }
27662
 
27663
    public int compareTo(clearItemAvailabilityCache_result other) {
27664
      if (!getClass().equals(other.getClass())) {
27665
        return getClass().getName().compareTo(other.getClass().getName());
27666
      }
27667
 
27668
      int lastComparison = 0;
27669
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
27670
 
27671
      return 0;
27672
    }
27673
 
27674
    public _Fields fieldForId(int fieldId) {
27675
      return _Fields.findByThriftId(fieldId);
27676
    }
27677
 
27678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27679
      org.apache.thrift.protocol.TField field;
27680
      iprot.readStructBegin();
27681
      while (true)
27682
      {
27683
        field = iprot.readFieldBegin();
27684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27685
          break;
27686
        }
27687
        switch (field.id) {
27688
          default:
27689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27690
        }
27691
        iprot.readFieldEnd();
27692
      }
27693
      iprot.readStructEnd();
27694
      validate();
27695
    }
27696
 
27697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27698
      oprot.writeStructBegin(STRUCT_DESC);
27699
 
27700
      oprot.writeFieldStop();
27701
      oprot.writeStructEnd();
27702
    }
27703
 
27704
    @Override
27705
    public String toString() {
27706
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
27707
      boolean first = true;
27708
 
27709
      sb.append(")");
27710
      return sb.toString();
27711
    }
27712
 
27713
    public void validate() throws org.apache.thrift.TException {
27714
      // check for required fields
27715
    }
27716
 
27717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27718
      try {
27719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27720
      } catch (org.apache.thrift.TException te) {
27721
        throw new java.io.IOException(te);
27722
      }
27723
    }
27724
 
27725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27726
      try {
27727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27728
      } catch (org.apache.thrift.TException te) {
27729
        throw new java.io.IOException(te);
27730
      }
27731
    }
27732
 
27733
  }
27734
 
27735
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
27736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
27737
 
27738
    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);
27739
    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);
27740
 
27741
    private long warehouseId; // required
27742
    private String vendorString; // required
27743
 
27744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27745
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27746
      WAREHOUSE_ID((short)1, "warehouseId"),
27747
      VENDOR_STRING((short)2, "vendorString");
27748
 
27749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27750
 
27751
      static {
27752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27753
          byName.put(field.getFieldName(), field);
27754
        }
27755
      }
27756
 
27757
      /**
27758
       * Find the _Fields constant that matches fieldId, or null if its not found.
27759
       */
27760
      public static _Fields findByThriftId(int fieldId) {
27761
        switch(fieldId) {
27762
          case 1: // WAREHOUSE_ID
27763
            return WAREHOUSE_ID;
27764
          case 2: // VENDOR_STRING
27765
            return VENDOR_STRING;
27766
          default:
27767
            return null;
27768
        }
27769
      }
27770
 
27771
      /**
27772
       * Find the _Fields constant that matches fieldId, throwing an exception
27773
       * if it is not found.
27774
       */
27775
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27776
        _Fields fields = findByThriftId(fieldId);
27777
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27778
        return fields;
27779
      }
27780
 
27781
      /**
27782
       * Find the _Fields constant that matches name, or null if its not found.
27783
       */
27784
      public static _Fields findByName(String name) {
27785
        return byName.get(name);
27786
      }
27787
 
27788
      private final short _thriftId;
27789
      private final String _fieldName;
27790
 
27791
      _Fields(short thriftId, String fieldName) {
27792
        _thriftId = thriftId;
27793
        _fieldName = fieldName;
27794
      }
27795
 
27796
      public short getThriftFieldId() {
27797
        return _thriftId;
27798
      }
27799
 
27800
      public String getFieldName() {
27801
        return _fieldName;
27802
      }
27803
    }
27804
 
27805
    // isset id assignments
27806
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27807
    private BitSet __isset_bit_vector = new BitSet(1);
27808
 
27809
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27810
    static {
27811
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27812
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27813
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27814
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
27818
    }
27819
 
27820
    public updateVendorString_args() {
27821
    }
27822
 
27823
    public updateVendorString_args(
27824
      long warehouseId,
27825
      String vendorString)
27826
    {
27827
      this();
27828
      this.warehouseId = warehouseId;
27829
      setWarehouseIdIsSet(true);
27830
      this.vendorString = vendorString;
27831
    }
27832
 
27833
    /**
27834
     * Performs a deep copy on <i>other</i>.
27835
     */
27836
    public updateVendorString_args(updateVendorString_args other) {
27837
      __isset_bit_vector.clear();
27838
      __isset_bit_vector.or(other.__isset_bit_vector);
27839
      this.warehouseId = other.warehouseId;
27840
      if (other.isSetVendorString()) {
27841
        this.vendorString = other.vendorString;
27842
      }
27843
    }
27844
 
27845
    public updateVendorString_args deepCopy() {
27846
      return new updateVendorString_args(this);
27847
    }
27848
 
27849
    @Override
27850
    public void clear() {
27851
      setWarehouseIdIsSet(false);
27852
      this.warehouseId = 0;
27853
      this.vendorString = null;
27854
    }
27855
 
27856
    public long getWarehouseId() {
27857
      return this.warehouseId;
27858
    }
27859
 
27860
    public void setWarehouseId(long warehouseId) {
27861
      this.warehouseId = warehouseId;
27862
      setWarehouseIdIsSet(true);
27863
    }
27864
 
27865
    public void unsetWarehouseId() {
27866
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27867
    }
27868
 
27869
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27870
    public boolean isSetWarehouseId() {
27871
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27872
    }
27873
 
27874
    public void setWarehouseIdIsSet(boolean value) {
27875
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27876
    }
27877
 
27878
    public String getVendorString() {
27879
      return this.vendorString;
27880
    }
27881
 
27882
    public void setVendorString(String vendorString) {
27883
      this.vendorString = vendorString;
27884
    }
27885
 
27886
    public void unsetVendorString() {
27887
      this.vendorString = null;
27888
    }
27889
 
27890
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
27891
    public boolean isSetVendorString() {
27892
      return this.vendorString != null;
27893
    }
27894
 
27895
    public void setVendorStringIsSet(boolean value) {
27896
      if (!value) {
27897
        this.vendorString = null;
27898
      }
27899
    }
27900
 
27901
    public void setFieldValue(_Fields field, Object value) {
27902
      switch (field) {
27903
      case WAREHOUSE_ID:
27904
        if (value == null) {
27905
          unsetWarehouseId();
27906
        } else {
27907
          setWarehouseId((Long)value);
27908
        }
27909
        break;
27910
 
27911
      case VENDOR_STRING:
27912
        if (value == null) {
27913
          unsetVendorString();
27914
        } else {
27915
          setVendorString((String)value);
27916
        }
27917
        break;
27918
 
27919
      }
27920
    }
27921
 
27922
    public Object getFieldValue(_Fields field) {
27923
      switch (field) {
27924
      case WAREHOUSE_ID:
27925
        return Long.valueOf(getWarehouseId());
27926
 
27927
      case VENDOR_STRING:
27928
        return getVendorString();
27929
 
27930
      }
27931
      throw new IllegalStateException();
27932
    }
27933
 
27934
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27935
    public boolean isSet(_Fields field) {
27936
      if (field == null) {
27937
        throw new IllegalArgumentException();
27938
      }
27939
 
27940
      switch (field) {
27941
      case WAREHOUSE_ID:
27942
        return isSetWarehouseId();
27943
      case VENDOR_STRING:
27944
        return isSetVendorString();
27945
      }
27946
      throw new IllegalStateException();
27947
    }
27948
 
27949
    @Override
27950
    public boolean equals(Object that) {
27951
      if (that == null)
27952
        return false;
27953
      if (that instanceof updateVendorString_args)
27954
        return this.equals((updateVendorString_args)that);
27955
      return false;
27956
    }
27957
 
27958
    public boolean equals(updateVendorString_args that) {
27959
      if (that == null)
27960
        return false;
27961
 
27962
      boolean this_present_warehouseId = true;
27963
      boolean that_present_warehouseId = true;
27964
      if (this_present_warehouseId || that_present_warehouseId) {
27965
        if (!(this_present_warehouseId && that_present_warehouseId))
27966
          return false;
27967
        if (this.warehouseId != that.warehouseId)
27968
          return false;
27969
      }
27970
 
27971
      boolean this_present_vendorString = true && this.isSetVendorString();
27972
      boolean that_present_vendorString = true && that.isSetVendorString();
27973
      if (this_present_vendorString || that_present_vendorString) {
27974
        if (!(this_present_vendorString && that_present_vendorString))
27975
          return false;
27976
        if (!this.vendorString.equals(that.vendorString))
27977
          return false;
27978
      }
27979
 
27980
      return true;
27981
    }
27982
 
27983
    @Override
27984
    public int hashCode() {
27985
      return 0;
27986
    }
27987
 
27988
    public int compareTo(updateVendorString_args other) {
27989
      if (!getClass().equals(other.getClass())) {
27990
        return getClass().getName().compareTo(other.getClass().getName());
27991
      }
27992
 
27993
      int lastComparison = 0;
27994
      updateVendorString_args typedOther = (updateVendorString_args)other;
27995
 
27996
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27997
      if (lastComparison != 0) {
27998
        return lastComparison;
27999
      }
28000
      if (isSetWarehouseId()) {
28001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
28002
        if (lastComparison != 0) {
28003
          return lastComparison;
28004
        }
28005
      }
28006
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
28007
      if (lastComparison != 0) {
28008
        return lastComparison;
28009
      }
28010
      if (isSetVendorString()) {
28011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
28012
        if (lastComparison != 0) {
28013
          return lastComparison;
28014
        }
28015
      }
28016
      return 0;
28017
    }
28018
 
28019
    public _Fields fieldForId(int fieldId) {
28020
      return _Fields.findByThriftId(fieldId);
28021
    }
28022
 
28023
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28024
      org.apache.thrift.protocol.TField field;
28025
      iprot.readStructBegin();
28026
      while (true)
28027
      {
28028
        field = iprot.readFieldBegin();
28029
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28030
          break;
28031
        }
28032
        switch (field.id) {
28033
          case 1: // WAREHOUSE_ID
28034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28035
              this.warehouseId = iprot.readI64();
28036
              setWarehouseIdIsSet(true);
28037
            } else { 
28038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28039
            }
28040
            break;
28041
          case 2: // VENDOR_STRING
28042
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28043
              this.vendorString = iprot.readString();
28044
            } else { 
28045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28046
            }
28047
            break;
28048
          default:
28049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28050
        }
28051
        iprot.readFieldEnd();
28052
      }
28053
      iprot.readStructEnd();
28054
      validate();
28055
    }
28056
 
28057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28058
      validate();
28059
 
28060
      oprot.writeStructBegin(STRUCT_DESC);
28061
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
28062
      oprot.writeI64(this.warehouseId);
28063
      oprot.writeFieldEnd();
28064
      if (this.vendorString != null) {
28065
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
28066
        oprot.writeString(this.vendorString);
28067
        oprot.writeFieldEnd();
28068
      }
28069
      oprot.writeFieldStop();
28070
      oprot.writeStructEnd();
28071
    }
28072
 
28073
    @Override
28074
    public String toString() {
28075
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
28076
      boolean first = true;
28077
 
28078
      sb.append("warehouseId:");
28079
      sb.append(this.warehouseId);
28080
      first = false;
28081
      if (!first) sb.append(", ");
28082
      sb.append("vendorString:");
28083
      if (this.vendorString == null) {
28084
        sb.append("null");
28085
      } else {
28086
        sb.append(this.vendorString);
28087
      }
28088
      first = false;
28089
      sb.append(")");
28090
      return sb.toString();
28091
    }
28092
 
28093
    public void validate() throws org.apache.thrift.TException {
28094
      // check for required fields
28095
    }
28096
 
28097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28098
      try {
28099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28100
      } catch (org.apache.thrift.TException te) {
28101
        throw new java.io.IOException(te);
28102
      }
28103
    }
28104
 
28105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28106
      try {
5967 rajveer 28107
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28108
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 28109
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28110
      } catch (org.apache.thrift.TException te) {
28111
        throw new java.io.IOException(te);
28112
      }
28113
    }
28114
 
28115
  }
28116
 
28117
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
28118
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
28119
 
28120
 
28121
 
28122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28124
;
28125
 
28126
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28127
 
28128
      static {
28129
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28130
          byName.put(field.getFieldName(), field);
28131
        }
28132
      }
28133
 
28134
      /**
28135
       * Find the _Fields constant that matches fieldId, or null if its not found.
28136
       */
28137
      public static _Fields findByThriftId(int fieldId) {
28138
        switch(fieldId) {
28139
          default:
28140
            return null;
28141
        }
28142
      }
28143
 
28144
      /**
28145
       * Find the _Fields constant that matches fieldId, throwing an exception
28146
       * if it is not found.
28147
       */
28148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28149
        _Fields fields = findByThriftId(fieldId);
28150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28151
        return fields;
28152
      }
28153
 
28154
      /**
28155
       * Find the _Fields constant that matches name, or null if its not found.
28156
       */
28157
      public static _Fields findByName(String name) {
28158
        return byName.get(name);
28159
      }
28160
 
28161
      private final short _thriftId;
28162
      private final String _fieldName;
28163
 
28164
      _Fields(short thriftId, String fieldName) {
28165
        _thriftId = thriftId;
28166
        _fieldName = fieldName;
28167
      }
28168
 
28169
      public short getThriftFieldId() {
28170
        return _thriftId;
28171
      }
28172
 
28173
      public String getFieldName() {
28174
        return _fieldName;
28175
      }
28176
    }
28177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28178
    static {
28179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
28182
    }
28183
 
28184
    public updateVendorString_result() {
28185
    }
28186
 
28187
    /**
28188
     * Performs a deep copy on <i>other</i>.
28189
     */
28190
    public updateVendorString_result(updateVendorString_result other) {
28191
    }
28192
 
28193
    public updateVendorString_result deepCopy() {
28194
      return new updateVendorString_result(this);
28195
    }
28196
 
28197
    @Override
28198
    public void clear() {
28199
    }
28200
 
28201
    public void setFieldValue(_Fields field, Object value) {
28202
      switch (field) {
28203
      }
28204
    }
28205
 
28206
    public Object getFieldValue(_Fields field) {
28207
      switch (field) {
28208
      }
28209
      throw new IllegalStateException();
28210
    }
28211
 
28212
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28213
    public boolean isSet(_Fields field) {
28214
      if (field == null) {
28215
        throw new IllegalArgumentException();
28216
      }
28217
 
28218
      switch (field) {
28219
      }
28220
      throw new IllegalStateException();
28221
    }
28222
 
28223
    @Override
28224
    public boolean equals(Object that) {
28225
      if (that == null)
28226
        return false;
28227
      if (that instanceof updateVendorString_result)
28228
        return this.equals((updateVendorString_result)that);
28229
      return false;
28230
    }
28231
 
28232
    public boolean equals(updateVendorString_result that) {
28233
      if (that == null)
28234
        return false;
28235
 
28236
      return true;
28237
    }
28238
 
28239
    @Override
28240
    public int hashCode() {
28241
      return 0;
28242
    }
28243
 
28244
    public int compareTo(updateVendorString_result other) {
28245
      if (!getClass().equals(other.getClass())) {
28246
        return getClass().getName().compareTo(other.getClass().getName());
28247
      }
28248
 
28249
      int lastComparison = 0;
28250
      updateVendorString_result typedOther = (updateVendorString_result)other;
28251
 
28252
      return 0;
28253
    }
28254
 
28255
    public _Fields fieldForId(int fieldId) {
28256
      return _Fields.findByThriftId(fieldId);
28257
    }
28258
 
28259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28260
      org.apache.thrift.protocol.TField field;
28261
      iprot.readStructBegin();
28262
      while (true)
28263
      {
28264
        field = iprot.readFieldBegin();
28265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28266
          break;
28267
        }
28268
        switch (field.id) {
28269
          default:
28270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28271
        }
28272
        iprot.readFieldEnd();
28273
      }
28274
      iprot.readStructEnd();
28275
      validate();
28276
    }
28277
 
28278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28279
      oprot.writeStructBegin(STRUCT_DESC);
28280
 
28281
      oprot.writeFieldStop();
28282
      oprot.writeStructEnd();
28283
    }
28284
 
28285
    @Override
28286
    public String toString() {
28287
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
28288
      boolean first = true;
28289
 
28290
      sb.append(")");
28291
      return sb.toString();
28292
    }
28293
 
28294
    public void validate() throws org.apache.thrift.TException {
28295
      // check for required fields
28296
    }
28297
 
28298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28299
      try {
28300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28301
      } catch (org.apache.thrift.TException te) {
28302
        throw new java.io.IOException(te);
28303
      }
28304
    }
28305
 
28306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28307
      try {
28308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28309
      } catch (org.apache.thrift.TException te) {
28310
        throw new java.io.IOException(te);
28311
      }
28312
    }
28313
 
28314
  }
28315
 
6096 amit.gupta 28316
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
28317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
28318
 
28319
    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);
28320
 
28321
    private long item_id; // required
28322
 
28323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28325
      ITEM_ID((short)1, "item_id");
28326
 
28327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28328
 
28329
      static {
28330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28331
          byName.put(field.getFieldName(), field);
28332
        }
28333
      }
28334
 
28335
      /**
28336
       * Find the _Fields constant that matches fieldId, or null if its not found.
28337
       */
28338
      public static _Fields findByThriftId(int fieldId) {
28339
        switch(fieldId) {
28340
          case 1: // ITEM_ID
28341
            return ITEM_ID;
28342
          default:
28343
            return null;
28344
        }
28345
      }
28346
 
28347
      /**
28348
       * Find the _Fields constant that matches fieldId, throwing an exception
28349
       * if it is not found.
28350
       */
28351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28352
        _Fields fields = findByThriftId(fieldId);
28353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28354
        return fields;
28355
      }
28356
 
28357
      /**
28358
       * Find the _Fields constant that matches name, or null if its not found.
28359
       */
28360
      public static _Fields findByName(String name) {
28361
        return byName.get(name);
28362
      }
28363
 
28364
      private final short _thriftId;
28365
      private final String _fieldName;
28366
 
28367
      _Fields(short thriftId, String fieldName) {
28368
        _thriftId = thriftId;
28369
        _fieldName = fieldName;
28370
      }
28371
 
28372
      public short getThriftFieldId() {
28373
        return _thriftId;
28374
      }
28375
 
28376
      public String getFieldName() {
28377
        return _fieldName;
28378
      }
28379
    }
28380
 
28381
    // isset id assignments
28382
    private static final int __ITEM_ID_ISSET_ID = 0;
28383
    private BitSet __isset_bit_vector = new BitSet(1);
28384
 
28385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28386
    static {
28387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28388
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
28392
    }
28393
 
28394
    public clearItemAvailabilityCacheForItem_args() {
28395
    }
28396
 
28397
    public clearItemAvailabilityCacheForItem_args(
28398
      long item_id)
28399
    {
28400
      this();
28401
      this.item_id = item_id;
28402
      setItem_idIsSet(true);
28403
    }
28404
 
28405
    /**
28406
     * Performs a deep copy on <i>other</i>.
28407
     */
28408
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
28409
      __isset_bit_vector.clear();
28410
      __isset_bit_vector.or(other.__isset_bit_vector);
28411
      this.item_id = other.item_id;
28412
    }
28413
 
28414
    public clearItemAvailabilityCacheForItem_args deepCopy() {
28415
      return new clearItemAvailabilityCacheForItem_args(this);
28416
    }
28417
 
28418
    @Override
28419
    public void clear() {
28420
      setItem_idIsSet(false);
28421
      this.item_id = 0;
28422
    }
28423
 
28424
    public long getItem_id() {
28425
      return this.item_id;
28426
    }
28427
 
28428
    public void setItem_id(long item_id) {
28429
      this.item_id = item_id;
28430
      setItem_idIsSet(true);
28431
    }
28432
 
28433
    public void unsetItem_id() {
28434
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
28435
    }
28436
 
28437
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
28438
    public boolean isSetItem_id() {
28439
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
28440
    }
28441
 
28442
    public void setItem_idIsSet(boolean value) {
28443
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
28444
    }
28445
 
28446
    public void setFieldValue(_Fields field, Object value) {
28447
      switch (field) {
28448
      case ITEM_ID:
28449
        if (value == null) {
28450
          unsetItem_id();
28451
        } else {
28452
          setItem_id((Long)value);
28453
        }
28454
        break;
28455
 
28456
      }
28457
    }
28458
 
28459
    public Object getFieldValue(_Fields field) {
28460
      switch (field) {
28461
      case ITEM_ID:
28462
        return Long.valueOf(getItem_id());
28463
 
28464
      }
28465
      throw new IllegalStateException();
28466
    }
28467
 
28468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28469
    public boolean isSet(_Fields field) {
28470
      if (field == null) {
28471
        throw new IllegalArgumentException();
28472
      }
28473
 
28474
      switch (field) {
28475
      case ITEM_ID:
28476
        return isSetItem_id();
28477
      }
28478
      throw new IllegalStateException();
28479
    }
28480
 
28481
    @Override
28482
    public boolean equals(Object that) {
28483
      if (that == null)
28484
        return false;
28485
      if (that instanceof clearItemAvailabilityCacheForItem_args)
28486
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
28487
      return false;
28488
    }
28489
 
28490
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
28491
      if (that == null)
28492
        return false;
28493
 
28494
      boolean this_present_item_id = true;
28495
      boolean that_present_item_id = true;
28496
      if (this_present_item_id || that_present_item_id) {
28497
        if (!(this_present_item_id && that_present_item_id))
28498
          return false;
28499
        if (this.item_id != that.item_id)
28500
          return false;
28501
      }
28502
 
28503
      return true;
28504
    }
28505
 
28506
    @Override
28507
    public int hashCode() {
28508
      return 0;
28509
    }
28510
 
28511
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
28512
      if (!getClass().equals(other.getClass())) {
28513
        return getClass().getName().compareTo(other.getClass().getName());
28514
      }
28515
 
28516
      int lastComparison = 0;
28517
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
28518
 
28519
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
28520
      if (lastComparison != 0) {
28521
        return lastComparison;
28522
      }
28523
      if (isSetItem_id()) {
28524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
28525
        if (lastComparison != 0) {
28526
          return lastComparison;
28527
        }
28528
      }
28529
      return 0;
28530
    }
28531
 
28532
    public _Fields fieldForId(int fieldId) {
28533
      return _Fields.findByThriftId(fieldId);
28534
    }
28535
 
28536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28537
      org.apache.thrift.protocol.TField field;
28538
      iprot.readStructBegin();
28539
      while (true)
28540
      {
28541
        field = iprot.readFieldBegin();
28542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28543
          break;
28544
        }
28545
        switch (field.id) {
28546
          case 1: // ITEM_ID
28547
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28548
              this.item_id = iprot.readI64();
28549
              setItem_idIsSet(true);
28550
            } else { 
28551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28552
            }
28553
            break;
28554
          default:
28555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28556
        }
28557
        iprot.readFieldEnd();
28558
      }
28559
      iprot.readStructEnd();
28560
      validate();
28561
    }
28562
 
28563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28564
      validate();
28565
 
28566
      oprot.writeStructBegin(STRUCT_DESC);
28567
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28568
      oprot.writeI64(this.item_id);
28569
      oprot.writeFieldEnd();
28570
      oprot.writeFieldStop();
28571
      oprot.writeStructEnd();
28572
    }
28573
 
28574
    @Override
28575
    public String toString() {
28576
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
28577
      boolean first = true;
28578
 
28579
      sb.append("item_id:");
28580
      sb.append(this.item_id);
28581
      first = false;
28582
      sb.append(")");
28583
      return sb.toString();
28584
    }
28585
 
28586
    public void validate() throws org.apache.thrift.TException {
28587
      // check for required fields
28588
    }
28589
 
28590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28591
      try {
28592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28593
      } catch (org.apache.thrift.TException te) {
28594
        throw new java.io.IOException(te);
28595
      }
28596
    }
28597
 
28598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28599
      try {
28600
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28601
        __isset_bit_vector = new BitSet(1);
28602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28603
      } catch (org.apache.thrift.TException te) {
28604
        throw new java.io.IOException(te);
28605
      }
28606
    }
28607
 
28608
  }
28609
 
28610
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
28611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
28612
 
28613
 
28614
 
28615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28616
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28617
;
28618
 
28619
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28620
 
28621
      static {
28622
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28623
          byName.put(field.getFieldName(), field);
28624
        }
28625
      }
28626
 
28627
      /**
28628
       * Find the _Fields constant that matches fieldId, or null if its not found.
28629
       */
28630
      public static _Fields findByThriftId(int fieldId) {
28631
        switch(fieldId) {
28632
          default:
28633
            return null;
28634
        }
28635
      }
28636
 
28637
      /**
28638
       * Find the _Fields constant that matches fieldId, throwing an exception
28639
       * if it is not found.
28640
       */
28641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28642
        _Fields fields = findByThriftId(fieldId);
28643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28644
        return fields;
28645
      }
28646
 
28647
      /**
28648
       * Find the _Fields constant that matches name, or null if its not found.
28649
       */
28650
      public static _Fields findByName(String name) {
28651
        return byName.get(name);
28652
      }
28653
 
28654
      private final short _thriftId;
28655
      private final String _fieldName;
28656
 
28657
      _Fields(short thriftId, String fieldName) {
28658
        _thriftId = thriftId;
28659
        _fieldName = fieldName;
28660
      }
28661
 
28662
      public short getThriftFieldId() {
28663
        return _thriftId;
28664
      }
28665
 
28666
      public String getFieldName() {
28667
        return _fieldName;
28668
      }
28669
    }
28670
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28671
    static {
28672
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
28675
    }
28676
 
28677
    public clearItemAvailabilityCacheForItem_result() {
28678
    }
28679
 
28680
    /**
28681
     * Performs a deep copy on <i>other</i>.
28682
     */
28683
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
28684
    }
28685
 
28686
    public clearItemAvailabilityCacheForItem_result deepCopy() {
28687
      return new clearItemAvailabilityCacheForItem_result(this);
28688
    }
28689
 
28690
    @Override
28691
    public void clear() {
28692
    }
28693
 
28694
    public void setFieldValue(_Fields field, Object value) {
28695
      switch (field) {
28696
      }
28697
    }
28698
 
28699
    public Object getFieldValue(_Fields field) {
28700
      switch (field) {
28701
      }
28702
      throw new IllegalStateException();
28703
    }
28704
 
28705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28706
    public boolean isSet(_Fields field) {
28707
      if (field == null) {
28708
        throw new IllegalArgumentException();
28709
      }
28710
 
28711
      switch (field) {
28712
      }
28713
      throw new IllegalStateException();
28714
    }
28715
 
28716
    @Override
28717
    public boolean equals(Object that) {
28718
      if (that == null)
28719
        return false;
28720
      if (that instanceof clearItemAvailabilityCacheForItem_result)
28721
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
28722
      return false;
28723
    }
28724
 
28725
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
28726
      if (that == null)
28727
        return false;
28728
 
28729
      return true;
28730
    }
28731
 
28732
    @Override
28733
    public int hashCode() {
28734
      return 0;
28735
    }
28736
 
28737
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
28738
      if (!getClass().equals(other.getClass())) {
28739
        return getClass().getName().compareTo(other.getClass().getName());
28740
      }
28741
 
28742
      int lastComparison = 0;
28743
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
28744
 
28745
      return 0;
28746
    }
28747
 
28748
    public _Fields fieldForId(int fieldId) {
28749
      return _Fields.findByThriftId(fieldId);
28750
    }
28751
 
28752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28753
      org.apache.thrift.protocol.TField field;
28754
      iprot.readStructBegin();
28755
      while (true)
28756
      {
28757
        field = iprot.readFieldBegin();
28758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28759
          break;
28760
        }
28761
        switch (field.id) {
28762
          default:
28763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28764
        }
28765
        iprot.readFieldEnd();
28766
      }
28767
      iprot.readStructEnd();
28768
      validate();
28769
    }
28770
 
28771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28772
      oprot.writeStructBegin(STRUCT_DESC);
28773
 
28774
      oprot.writeFieldStop();
28775
      oprot.writeStructEnd();
28776
    }
28777
 
28778
    @Override
28779
    public String toString() {
28780
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
28781
      boolean first = true;
28782
 
28783
      sb.append(")");
28784
      return sb.toString();
28785
    }
28786
 
28787
    public void validate() throws org.apache.thrift.TException {
28788
      // check for required fields
28789
    }
28790
 
28791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28792
      try {
28793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28794
      } catch (org.apache.thrift.TException te) {
28795
        throw new java.io.IOException(te);
28796
      }
28797
    }
28798
 
28799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28800
      try {
28801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28802
      } catch (org.apache.thrift.TException te) {
28803
        throw new java.io.IOException(te);
28804
      }
28805
    }
28806
 
28807
  }
28808
 
6467 amar.kumar 28809
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
28810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
28811
 
28812
    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);
28813
 
28814
    private long vendorId; // required
28815
 
28816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28818
      VENDOR_ID((short)1, "vendorId");
28819
 
28820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28821
 
28822
      static {
28823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28824
          byName.put(field.getFieldName(), field);
28825
        }
28826
      }
28827
 
28828
      /**
28829
       * Find the _Fields constant that matches fieldId, or null if its not found.
28830
       */
28831
      public static _Fields findByThriftId(int fieldId) {
28832
        switch(fieldId) {
28833
          case 1: // VENDOR_ID
28834
            return VENDOR_ID;
28835
          default:
28836
            return null;
28837
        }
28838
      }
28839
 
28840
      /**
28841
       * Find the _Fields constant that matches fieldId, throwing an exception
28842
       * if it is not found.
28843
       */
28844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28845
        _Fields fields = findByThriftId(fieldId);
28846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28847
        return fields;
28848
      }
28849
 
28850
      /**
28851
       * Find the _Fields constant that matches name, or null if its not found.
28852
       */
28853
      public static _Fields findByName(String name) {
28854
        return byName.get(name);
28855
      }
28856
 
28857
      private final short _thriftId;
28858
      private final String _fieldName;
28859
 
28860
      _Fields(short thriftId, String fieldName) {
28861
        _thriftId = thriftId;
28862
        _fieldName = fieldName;
28863
      }
28864
 
28865
      public short getThriftFieldId() {
28866
        return _thriftId;
28867
      }
28868
 
28869
      public String getFieldName() {
28870
        return _fieldName;
28871
      }
28872
    }
28873
 
28874
    // isset id assignments
28875
    private static final int __VENDORID_ISSET_ID = 0;
28876
    private BitSet __isset_bit_vector = new BitSet(1);
28877
 
28878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28879
    static {
28880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28881
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
28885
    }
28886
 
28887
    public getOurWarehouseIdForVendor_args() {
28888
    }
28889
 
28890
    public getOurWarehouseIdForVendor_args(
28891
      long vendorId)
28892
    {
28893
      this();
28894
      this.vendorId = vendorId;
28895
      setVendorIdIsSet(true);
28896
    }
28897
 
28898
    /**
28899
     * Performs a deep copy on <i>other</i>.
28900
     */
28901
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
28902
      __isset_bit_vector.clear();
28903
      __isset_bit_vector.or(other.__isset_bit_vector);
28904
      this.vendorId = other.vendorId;
28905
    }
28906
 
28907
    public getOurWarehouseIdForVendor_args deepCopy() {
28908
      return new getOurWarehouseIdForVendor_args(this);
28909
    }
28910
 
28911
    @Override
28912
    public void clear() {
28913
      setVendorIdIsSet(false);
28914
      this.vendorId = 0;
28915
    }
28916
 
28917
    public long getVendorId() {
28918
      return this.vendorId;
28919
    }
28920
 
28921
    public void setVendorId(long vendorId) {
28922
      this.vendorId = vendorId;
28923
      setVendorIdIsSet(true);
28924
    }
28925
 
28926
    public void unsetVendorId() {
28927
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
28928
    }
28929
 
28930
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
28931
    public boolean isSetVendorId() {
28932
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
28933
    }
28934
 
28935
    public void setVendorIdIsSet(boolean value) {
28936
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
28937
    }
28938
 
28939
    public void setFieldValue(_Fields field, Object value) {
28940
      switch (field) {
28941
      case VENDOR_ID:
28942
        if (value == null) {
28943
          unsetVendorId();
28944
        } else {
28945
          setVendorId((Long)value);
28946
        }
28947
        break;
28948
 
28949
      }
28950
    }
28951
 
28952
    public Object getFieldValue(_Fields field) {
28953
      switch (field) {
28954
      case VENDOR_ID:
28955
        return Long.valueOf(getVendorId());
28956
 
28957
      }
28958
      throw new IllegalStateException();
28959
    }
28960
 
28961
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28962
    public boolean isSet(_Fields field) {
28963
      if (field == null) {
28964
        throw new IllegalArgumentException();
28965
      }
28966
 
28967
      switch (field) {
28968
      case VENDOR_ID:
28969
        return isSetVendorId();
28970
      }
28971
      throw new IllegalStateException();
28972
    }
28973
 
28974
    @Override
28975
    public boolean equals(Object that) {
28976
      if (that == null)
28977
        return false;
28978
      if (that instanceof getOurWarehouseIdForVendor_args)
28979
        return this.equals((getOurWarehouseIdForVendor_args)that);
28980
      return false;
28981
    }
28982
 
28983
    public boolean equals(getOurWarehouseIdForVendor_args that) {
28984
      if (that == null)
28985
        return false;
28986
 
28987
      boolean this_present_vendorId = true;
28988
      boolean that_present_vendorId = true;
28989
      if (this_present_vendorId || that_present_vendorId) {
28990
        if (!(this_present_vendorId && that_present_vendorId))
28991
          return false;
28992
        if (this.vendorId != that.vendorId)
28993
          return false;
28994
      }
28995
 
28996
      return true;
28997
    }
28998
 
28999
    @Override
29000
    public int hashCode() {
29001
      return 0;
29002
    }
29003
 
29004
    public int compareTo(getOurWarehouseIdForVendor_args other) {
29005
      if (!getClass().equals(other.getClass())) {
29006
        return getClass().getName().compareTo(other.getClass().getName());
29007
      }
29008
 
29009
      int lastComparison = 0;
29010
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
29011
 
29012
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
29013
      if (lastComparison != 0) {
29014
        return lastComparison;
29015
      }
29016
      if (isSetVendorId()) {
29017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
29018
        if (lastComparison != 0) {
29019
          return lastComparison;
29020
        }
29021
      }
29022
      return 0;
29023
    }
29024
 
29025
    public _Fields fieldForId(int fieldId) {
29026
      return _Fields.findByThriftId(fieldId);
29027
    }
29028
 
29029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29030
      org.apache.thrift.protocol.TField field;
29031
      iprot.readStructBegin();
29032
      while (true)
29033
      {
29034
        field = iprot.readFieldBegin();
29035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29036
          break;
29037
        }
29038
        switch (field.id) {
29039
          case 1: // VENDOR_ID
29040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29041
              this.vendorId = iprot.readI64();
29042
              setVendorIdIsSet(true);
29043
            } else { 
29044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29045
            }
29046
            break;
29047
          default:
29048
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29049
        }
29050
        iprot.readFieldEnd();
29051
      }
29052
      iprot.readStructEnd();
29053
      validate();
29054
    }
29055
 
29056
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29057
      validate();
29058
 
29059
      oprot.writeStructBegin(STRUCT_DESC);
29060
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
29061
      oprot.writeI64(this.vendorId);
29062
      oprot.writeFieldEnd();
29063
      oprot.writeFieldStop();
29064
      oprot.writeStructEnd();
29065
    }
29066
 
29067
    @Override
29068
    public String toString() {
29069
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
29070
      boolean first = true;
29071
 
29072
      sb.append("vendorId:");
29073
      sb.append(this.vendorId);
29074
      first = false;
29075
      sb.append(")");
29076
      return sb.toString();
29077
    }
29078
 
29079
    public void validate() throws org.apache.thrift.TException {
29080
      // check for required fields
29081
    }
29082
 
29083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29084
      try {
29085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29086
      } catch (org.apache.thrift.TException te) {
29087
        throw new java.io.IOException(te);
29088
      }
29089
    }
29090
 
29091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29092
      try {
29093
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29094
        __isset_bit_vector = new BitSet(1);
29095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29096
      } catch (org.apache.thrift.TException te) {
29097
        throw new java.io.IOException(te);
29098
      }
29099
    }
29100
 
29101
  }
29102
 
29103
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
29104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
29105
 
29106
    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);
29107
 
29108
    private long success; // required
29109
 
29110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29112
      SUCCESS((short)0, "success");
29113
 
29114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29115
 
29116
      static {
29117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29118
          byName.put(field.getFieldName(), field);
29119
        }
29120
      }
29121
 
29122
      /**
29123
       * Find the _Fields constant that matches fieldId, or null if its not found.
29124
       */
29125
      public static _Fields findByThriftId(int fieldId) {
29126
        switch(fieldId) {
29127
          case 0: // SUCCESS
29128
            return SUCCESS;
29129
          default:
29130
            return null;
29131
        }
29132
      }
29133
 
29134
      /**
29135
       * Find the _Fields constant that matches fieldId, throwing an exception
29136
       * if it is not found.
29137
       */
29138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29139
        _Fields fields = findByThriftId(fieldId);
29140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29141
        return fields;
29142
      }
29143
 
29144
      /**
29145
       * Find the _Fields constant that matches name, or null if its not found.
29146
       */
29147
      public static _Fields findByName(String name) {
29148
        return byName.get(name);
29149
      }
29150
 
29151
      private final short _thriftId;
29152
      private final String _fieldName;
29153
 
29154
      _Fields(short thriftId, String fieldName) {
29155
        _thriftId = thriftId;
29156
        _fieldName = fieldName;
29157
      }
29158
 
29159
      public short getThriftFieldId() {
29160
        return _thriftId;
29161
      }
29162
 
29163
      public String getFieldName() {
29164
        return _fieldName;
29165
      }
29166
    }
29167
 
29168
    // isset id assignments
29169
    private static final int __SUCCESS_ISSET_ID = 0;
29170
    private BitSet __isset_bit_vector = new BitSet(1);
29171
 
29172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29173
    static {
29174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29175
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29176
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29177
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29178
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
29179
    }
29180
 
29181
    public getOurWarehouseIdForVendor_result() {
29182
    }
29183
 
29184
    public getOurWarehouseIdForVendor_result(
29185
      long success)
29186
    {
29187
      this();
29188
      this.success = success;
29189
      setSuccessIsSet(true);
29190
    }
29191
 
29192
    /**
29193
     * Performs a deep copy on <i>other</i>.
29194
     */
29195
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
29196
      __isset_bit_vector.clear();
29197
      __isset_bit_vector.or(other.__isset_bit_vector);
29198
      this.success = other.success;
29199
    }
29200
 
29201
    public getOurWarehouseIdForVendor_result deepCopy() {
29202
      return new getOurWarehouseIdForVendor_result(this);
29203
    }
29204
 
29205
    @Override
29206
    public void clear() {
29207
      setSuccessIsSet(false);
29208
      this.success = 0;
29209
    }
29210
 
29211
    public long getSuccess() {
29212
      return this.success;
29213
    }
29214
 
29215
    public void setSuccess(long success) {
29216
      this.success = success;
29217
      setSuccessIsSet(true);
29218
    }
29219
 
29220
    public void unsetSuccess() {
29221
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
29222
    }
29223
 
29224
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29225
    public boolean isSetSuccess() {
29226
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
29227
    }
29228
 
29229
    public void setSuccessIsSet(boolean value) {
29230
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
29231
    }
29232
 
29233
    public void setFieldValue(_Fields field, Object value) {
29234
      switch (field) {
29235
      case SUCCESS:
29236
        if (value == null) {
29237
          unsetSuccess();
29238
        } else {
29239
          setSuccess((Long)value);
29240
        }
29241
        break;
29242
 
29243
      }
29244
    }
29245
 
29246
    public Object getFieldValue(_Fields field) {
29247
      switch (field) {
29248
      case SUCCESS:
29249
        return Long.valueOf(getSuccess());
29250
 
29251
      }
29252
      throw new IllegalStateException();
29253
    }
29254
 
29255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29256
    public boolean isSet(_Fields field) {
29257
      if (field == null) {
29258
        throw new IllegalArgumentException();
29259
      }
29260
 
29261
      switch (field) {
29262
      case SUCCESS:
29263
        return isSetSuccess();
29264
      }
29265
      throw new IllegalStateException();
29266
    }
29267
 
29268
    @Override
29269
    public boolean equals(Object that) {
29270
      if (that == null)
29271
        return false;
29272
      if (that instanceof getOurWarehouseIdForVendor_result)
29273
        return this.equals((getOurWarehouseIdForVendor_result)that);
29274
      return false;
29275
    }
29276
 
29277
    public boolean equals(getOurWarehouseIdForVendor_result that) {
29278
      if (that == null)
29279
        return false;
29280
 
29281
      boolean this_present_success = true;
29282
      boolean that_present_success = true;
29283
      if (this_present_success || that_present_success) {
29284
        if (!(this_present_success && that_present_success))
29285
          return false;
29286
        if (this.success != that.success)
29287
          return false;
29288
      }
29289
 
29290
      return true;
29291
    }
29292
 
29293
    @Override
29294
    public int hashCode() {
29295
      return 0;
29296
    }
29297
 
29298
    public int compareTo(getOurWarehouseIdForVendor_result other) {
29299
      if (!getClass().equals(other.getClass())) {
29300
        return getClass().getName().compareTo(other.getClass().getName());
29301
      }
29302
 
29303
      int lastComparison = 0;
29304
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
29305
 
29306
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29307
      if (lastComparison != 0) {
29308
        return lastComparison;
29309
      }
29310
      if (isSetSuccess()) {
29311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29312
        if (lastComparison != 0) {
29313
          return lastComparison;
29314
        }
29315
      }
29316
      return 0;
29317
    }
29318
 
29319
    public _Fields fieldForId(int fieldId) {
29320
      return _Fields.findByThriftId(fieldId);
29321
    }
29322
 
29323
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29324
      org.apache.thrift.protocol.TField field;
29325
      iprot.readStructBegin();
29326
      while (true)
29327
      {
29328
        field = iprot.readFieldBegin();
29329
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29330
          break;
29331
        }
29332
        switch (field.id) {
29333
          case 0: // SUCCESS
29334
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29335
              this.success = iprot.readI64();
29336
              setSuccessIsSet(true);
29337
            } else { 
29338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29339
            }
29340
            break;
29341
          default:
29342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29343
        }
29344
        iprot.readFieldEnd();
29345
      }
29346
      iprot.readStructEnd();
29347
      validate();
29348
    }
29349
 
29350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29351
      oprot.writeStructBegin(STRUCT_DESC);
29352
 
29353
      if (this.isSetSuccess()) {
29354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29355
        oprot.writeI64(this.success);
29356
        oprot.writeFieldEnd();
29357
      }
29358
      oprot.writeFieldStop();
29359
      oprot.writeStructEnd();
29360
    }
29361
 
29362
    @Override
29363
    public String toString() {
29364
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
29365
      boolean first = true;
29366
 
29367
      sb.append("success:");
29368
      sb.append(this.success);
29369
      first = false;
29370
      sb.append(")");
29371
      return sb.toString();
29372
    }
29373
 
29374
    public void validate() throws org.apache.thrift.TException {
29375
      // check for required fields
29376
    }
29377
 
29378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29379
      try {
29380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29381
      } catch (org.apache.thrift.TException te) {
29382
        throw new java.io.IOException(te);
29383
      }
29384
    }
29385
 
29386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29387
      try {
29388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29389
      } catch (org.apache.thrift.TException te) {
29390
        throw new java.io.IOException(te);
29391
      }
29392
    }
29393
 
29394
  }
29395
 
6484 amar.kumar 29396
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
29397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
29398
 
29399
    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);
29400
 
29401
    private List<Long> item_ids; // required
29402
 
29403
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29404
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29405
      ITEM_IDS((short)1, "item_ids");
29406
 
29407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29408
 
29409
      static {
29410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29411
          byName.put(field.getFieldName(), field);
29412
        }
29413
      }
29414
 
29415
      /**
29416
       * Find the _Fields constant that matches fieldId, or null if its not found.
29417
       */
29418
      public static _Fields findByThriftId(int fieldId) {
29419
        switch(fieldId) {
29420
          case 1: // ITEM_IDS
29421
            return ITEM_IDS;
29422
          default:
29423
            return null;
29424
        }
29425
      }
29426
 
29427
      /**
29428
       * Find the _Fields constant that matches fieldId, throwing an exception
29429
       * if it is not found.
29430
       */
29431
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29432
        _Fields fields = findByThriftId(fieldId);
29433
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29434
        return fields;
29435
      }
29436
 
29437
      /**
29438
       * Find the _Fields constant that matches name, or null if its not found.
29439
       */
29440
      public static _Fields findByName(String name) {
29441
        return byName.get(name);
29442
      }
29443
 
29444
      private final short _thriftId;
29445
      private final String _fieldName;
29446
 
29447
      _Fields(short thriftId, String fieldName) {
29448
        _thriftId = thriftId;
29449
        _fieldName = fieldName;
29450
      }
29451
 
29452
      public short getThriftFieldId() {
29453
        return _thriftId;
29454
      }
29455
 
29456
      public String getFieldName() {
29457
        return _fieldName;
29458
      }
29459
    }
29460
 
29461
    // isset id assignments
29462
 
29463
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29464
    static {
29465
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29466
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29467
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29468
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
29471
    }
29472
 
29473
    public getItemAvailabilitiesAtOurWarehouses_args() {
29474
    }
29475
 
29476
    public getItemAvailabilitiesAtOurWarehouses_args(
29477
      List<Long> item_ids)
29478
    {
29479
      this();
29480
      this.item_ids = item_ids;
29481
    }
29482
 
29483
    /**
29484
     * Performs a deep copy on <i>other</i>.
29485
     */
29486
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
29487
      if (other.isSetItem_ids()) {
29488
        List<Long> __this__item_ids = new ArrayList<Long>();
29489
        for (Long other_element : other.item_ids) {
29490
          __this__item_ids.add(other_element);
29491
        }
29492
        this.item_ids = __this__item_ids;
29493
      }
29494
    }
29495
 
29496
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
29497
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
29498
    }
29499
 
29500
    @Override
29501
    public void clear() {
29502
      this.item_ids = null;
29503
    }
29504
 
29505
    public int getItem_idsSize() {
29506
      return (this.item_ids == null) ? 0 : this.item_ids.size();
29507
    }
29508
 
29509
    public java.util.Iterator<Long> getItem_idsIterator() {
29510
      return (this.item_ids == null) ? null : this.item_ids.iterator();
29511
    }
29512
 
29513
    public void addToItem_ids(long elem) {
29514
      if (this.item_ids == null) {
29515
        this.item_ids = new ArrayList<Long>();
29516
      }
29517
      this.item_ids.add(elem);
29518
    }
29519
 
29520
    public List<Long> getItem_ids() {
29521
      return this.item_ids;
29522
    }
29523
 
29524
    public void setItem_ids(List<Long> item_ids) {
29525
      this.item_ids = item_ids;
29526
    }
29527
 
29528
    public void unsetItem_ids() {
29529
      this.item_ids = null;
29530
    }
29531
 
29532
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
29533
    public boolean isSetItem_ids() {
29534
      return this.item_ids != null;
29535
    }
29536
 
29537
    public void setItem_idsIsSet(boolean value) {
29538
      if (!value) {
29539
        this.item_ids = null;
29540
      }
29541
    }
29542
 
29543
    public void setFieldValue(_Fields field, Object value) {
29544
      switch (field) {
29545
      case ITEM_IDS:
29546
        if (value == null) {
29547
          unsetItem_ids();
29548
        } else {
29549
          setItem_ids((List<Long>)value);
29550
        }
29551
        break;
29552
 
29553
      }
29554
    }
29555
 
29556
    public Object getFieldValue(_Fields field) {
29557
      switch (field) {
29558
      case ITEM_IDS:
29559
        return getItem_ids();
29560
 
29561
      }
29562
      throw new IllegalStateException();
29563
    }
29564
 
29565
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29566
    public boolean isSet(_Fields field) {
29567
      if (field == null) {
29568
        throw new IllegalArgumentException();
29569
      }
29570
 
29571
      switch (field) {
29572
      case ITEM_IDS:
29573
        return isSetItem_ids();
29574
      }
29575
      throw new IllegalStateException();
29576
    }
29577
 
29578
    @Override
29579
    public boolean equals(Object that) {
29580
      if (that == null)
29581
        return false;
29582
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
29583
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
29584
      return false;
29585
    }
29586
 
29587
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
29588
      if (that == null)
29589
        return false;
29590
 
29591
      boolean this_present_item_ids = true && this.isSetItem_ids();
29592
      boolean that_present_item_ids = true && that.isSetItem_ids();
29593
      if (this_present_item_ids || that_present_item_ids) {
29594
        if (!(this_present_item_ids && that_present_item_ids))
29595
          return false;
29596
        if (!this.item_ids.equals(that.item_ids))
29597
          return false;
29598
      }
29599
 
29600
      return true;
29601
    }
29602
 
29603
    @Override
29604
    public int hashCode() {
29605
      return 0;
29606
    }
29607
 
29608
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
29609
      if (!getClass().equals(other.getClass())) {
29610
        return getClass().getName().compareTo(other.getClass().getName());
29611
      }
29612
 
29613
      int lastComparison = 0;
29614
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
29615
 
29616
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
29617
      if (lastComparison != 0) {
29618
        return lastComparison;
29619
      }
29620
      if (isSetItem_ids()) {
29621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
29622
        if (lastComparison != 0) {
29623
          return lastComparison;
29624
        }
29625
      }
29626
      return 0;
29627
    }
29628
 
29629
    public _Fields fieldForId(int fieldId) {
29630
      return _Fields.findByThriftId(fieldId);
29631
    }
29632
 
29633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29634
      org.apache.thrift.protocol.TField field;
29635
      iprot.readStructBegin();
29636
      while (true)
29637
      {
29638
        field = iprot.readFieldBegin();
29639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29640
          break;
29641
        }
29642
        switch (field.id) {
29643
          case 1: // ITEM_IDS
29644
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29645
              {
29646
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
29647
                this.item_ids = new ArrayList<Long>(_list79.size);
29648
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
29649
                {
29650
                  long _elem81; // required
29651
                  _elem81 = iprot.readI64();
29652
                  this.item_ids.add(_elem81);
29653
                }
29654
                iprot.readListEnd();
29655
              }
29656
            } else { 
29657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29658
            }
29659
            break;
29660
          default:
29661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29662
        }
29663
        iprot.readFieldEnd();
29664
      }
29665
      iprot.readStructEnd();
29666
      validate();
29667
    }
29668
 
29669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29670
      validate();
29671
 
29672
      oprot.writeStructBegin(STRUCT_DESC);
29673
      if (this.item_ids != null) {
29674
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
29675
        {
29676
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
29677
          for (long _iter82 : this.item_ids)
29678
          {
29679
            oprot.writeI64(_iter82);
29680
          }
29681
          oprot.writeListEnd();
29682
        }
29683
        oprot.writeFieldEnd();
29684
      }
29685
      oprot.writeFieldStop();
29686
      oprot.writeStructEnd();
29687
    }
29688
 
29689
    @Override
29690
    public String toString() {
29691
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
29692
      boolean first = true;
29693
 
29694
      sb.append("item_ids:");
29695
      if (this.item_ids == null) {
29696
        sb.append("null");
29697
      } else {
29698
        sb.append(this.item_ids);
29699
      }
29700
      first = false;
29701
      sb.append(")");
29702
      return sb.toString();
29703
    }
29704
 
29705
    public void validate() throws org.apache.thrift.TException {
29706
      // check for required fields
29707
    }
29708
 
29709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29710
      try {
29711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29712
      } catch (org.apache.thrift.TException te) {
29713
        throw new java.io.IOException(te);
29714
      }
29715
    }
29716
 
29717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29718
      try {
29719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29720
      } catch (org.apache.thrift.TException te) {
29721
        throw new java.io.IOException(te);
29722
      }
29723
    }
29724
 
29725
  }
29726
 
29727
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
29728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
29729
 
29730
    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);
29731
 
29732
    private Map<Long,Long> success; // required
29733
 
29734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29736
      SUCCESS((short)0, "success");
29737
 
29738
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29739
 
29740
      static {
29741
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29742
          byName.put(field.getFieldName(), field);
29743
        }
29744
      }
29745
 
29746
      /**
29747
       * Find the _Fields constant that matches fieldId, or null if its not found.
29748
       */
29749
      public static _Fields findByThriftId(int fieldId) {
29750
        switch(fieldId) {
29751
          case 0: // SUCCESS
29752
            return SUCCESS;
29753
          default:
29754
            return null;
29755
        }
29756
      }
29757
 
29758
      /**
29759
       * Find the _Fields constant that matches fieldId, throwing an exception
29760
       * if it is not found.
29761
       */
29762
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29763
        _Fields fields = findByThriftId(fieldId);
29764
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29765
        return fields;
29766
      }
29767
 
29768
      /**
29769
       * Find the _Fields constant that matches name, or null if its not found.
29770
       */
29771
      public static _Fields findByName(String name) {
29772
        return byName.get(name);
29773
      }
29774
 
29775
      private final short _thriftId;
29776
      private final String _fieldName;
29777
 
29778
      _Fields(short thriftId, String fieldName) {
29779
        _thriftId = thriftId;
29780
        _fieldName = fieldName;
29781
      }
29782
 
29783
      public short getThriftFieldId() {
29784
        return _thriftId;
29785
      }
29786
 
29787
      public String getFieldName() {
29788
        return _fieldName;
29789
      }
29790
    }
29791
 
29792
    // isset id assignments
29793
 
29794
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29795
    static {
29796
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29797
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29798
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
29799
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
29800
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
29803
    }
29804
 
29805
    public getItemAvailabilitiesAtOurWarehouses_result() {
29806
    }
29807
 
29808
    public getItemAvailabilitiesAtOurWarehouses_result(
29809
      Map<Long,Long> success)
29810
    {
29811
      this();
29812
      this.success = success;
29813
    }
29814
 
29815
    /**
29816
     * Performs a deep copy on <i>other</i>.
29817
     */
29818
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
29819
      if (other.isSetSuccess()) {
29820
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
29821
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
29822
 
29823
          Long other_element_key = other_element.getKey();
29824
          Long other_element_value = other_element.getValue();
29825
 
29826
          Long __this__success_copy_key = other_element_key;
29827
 
29828
          Long __this__success_copy_value = other_element_value;
29829
 
29830
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
29831
        }
29832
        this.success = __this__success;
29833
      }
29834
    }
29835
 
29836
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
29837
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
29838
    }
29839
 
29840
    @Override
29841
    public void clear() {
29842
      this.success = null;
29843
    }
29844
 
29845
    public int getSuccessSize() {
29846
      return (this.success == null) ? 0 : this.success.size();
29847
    }
29848
 
29849
    public void putToSuccess(long key, long val) {
29850
      if (this.success == null) {
29851
        this.success = new HashMap<Long,Long>();
29852
      }
29853
      this.success.put(key, val);
29854
    }
29855
 
29856
    public Map<Long,Long> getSuccess() {
29857
      return this.success;
29858
    }
29859
 
29860
    public void setSuccess(Map<Long,Long> success) {
29861
      this.success = success;
29862
    }
29863
 
29864
    public void unsetSuccess() {
29865
      this.success = null;
29866
    }
29867
 
29868
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29869
    public boolean isSetSuccess() {
29870
      return this.success != null;
29871
    }
29872
 
29873
    public void setSuccessIsSet(boolean value) {
29874
      if (!value) {
29875
        this.success = null;
29876
      }
29877
    }
29878
 
29879
    public void setFieldValue(_Fields field, Object value) {
29880
      switch (field) {
29881
      case SUCCESS:
29882
        if (value == null) {
29883
          unsetSuccess();
29884
        } else {
29885
          setSuccess((Map<Long,Long>)value);
29886
        }
29887
        break;
29888
 
29889
      }
29890
    }
29891
 
29892
    public Object getFieldValue(_Fields field) {
29893
      switch (field) {
29894
      case SUCCESS:
29895
        return getSuccess();
29896
 
29897
      }
29898
      throw new IllegalStateException();
29899
    }
29900
 
29901
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29902
    public boolean isSet(_Fields field) {
29903
      if (field == null) {
29904
        throw new IllegalArgumentException();
29905
      }
29906
 
29907
      switch (field) {
29908
      case SUCCESS:
29909
        return isSetSuccess();
29910
      }
29911
      throw new IllegalStateException();
29912
    }
29913
 
29914
    @Override
29915
    public boolean equals(Object that) {
29916
      if (that == null)
29917
        return false;
29918
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
29919
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
29920
      return false;
29921
    }
29922
 
29923
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
29924
      if (that == null)
29925
        return false;
29926
 
29927
      boolean this_present_success = true && this.isSetSuccess();
29928
      boolean that_present_success = true && that.isSetSuccess();
29929
      if (this_present_success || that_present_success) {
29930
        if (!(this_present_success && that_present_success))
29931
          return false;
29932
        if (!this.success.equals(that.success))
29933
          return false;
29934
      }
29935
 
29936
      return true;
29937
    }
29938
 
29939
    @Override
29940
    public int hashCode() {
29941
      return 0;
29942
    }
29943
 
29944
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
29945
      if (!getClass().equals(other.getClass())) {
29946
        return getClass().getName().compareTo(other.getClass().getName());
29947
      }
29948
 
29949
      int lastComparison = 0;
29950
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
29951
 
29952
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29953
      if (lastComparison != 0) {
29954
        return lastComparison;
29955
      }
29956
      if (isSetSuccess()) {
29957
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29958
        if (lastComparison != 0) {
29959
          return lastComparison;
29960
        }
29961
      }
29962
      return 0;
29963
    }
29964
 
29965
    public _Fields fieldForId(int fieldId) {
29966
      return _Fields.findByThriftId(fieldId);
29967
    }
29968
 
29969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29970
      org.apache.thrift.protocol.TField field;
29971
      iprot.readStructBegin();
29972
      while (true)
29973
      {
29974
        field = iprot.readFieldBegin();
29975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29976
          break;
29977
        }
29978
        switch (field.id) {
29979
          case 0: // SUCCESS
29980
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
29981
              {
29982
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
29983
                this.success = new HashMap<Long,Long>(2*_map83.size);
29984
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
29985
                {
29986
                  long _key85; // required
29987
                  long _val86; // required
29988
                  _key85 = iprot.readI64();
29989
                  _val86 = iprot.readI64();
29990
                  this.success.put(_key85, _val86);
29991
                }
29992
                iprot.readMapEnd();
29993
              }
29994
            } else { 
29995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29996
            }
29997
            break;
29998
          default:
29999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30000
        }
30001
        iprot.readFieldEnd();
30002
      }
30003
      iprot.readStructEnd();
30004
      validate();
30005
    }
30006
 
30007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30008
      oprot.writeStructBegin(STRUCT_DESC);
30009
 
30010
      if (this.isSetSuccess()) {
30011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30012
        {
30013
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
30014
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
30015
          {
30016
            oprot.writeI64(_iter87.getKey());
30017
            oprot.writeI64(_iter87.getValue());
30018
          }
30019
          oprot.writeMapEnd();
30020
        }
30021
        oprot.writeFieldEnd();
30022
      }
30023
      oprot.writeFieldStop();
30024
      oprot.writeStructEnd();
30025
    }
30026
 
30027
    @Override
30028
    public String toString() {
30029
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
30030
      boolean first = true;
30031
 
30032
      sb.append("success:");
30033
      if (this.success == null) {
30034
        sb.append("null");
30035
      } else {
30036
        sb.append(this.success);
30037
      }
30038
      first = false;
30039
      sb.append(")");
30040
      return sb.toString();
30041
    }
30042
 
30043
    public void validate() throws org.apache.thrift.TException {
30044
      // check for required fields
30045
    }
30046
 
30047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30048
      try {
30049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30050
      } catch (org.apache.thrift.TException te) {
30051
        throw new java.io.IOException(te);
30052
      }
30053
    }
30054
 
30055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30056
      try {
30057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30058
      } catch (org.apache.thrift.TException te) {
30059
        throw new java.io.IOException(te);
30060
      }
30061
    }
30062
 
30063
  }
30064
 
6531 vikram.rag 30065
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
30066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
30067
 
30068
    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);
30069
 
30070
    private List<Long> vendorIds; // required
30071
 
30072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30074
      VENDOR_IDS((short)1, "vendorIds");
30075
 
30076
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30077
 
30078
      static {
30079
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30080
          byName.put(field.getFieldName(), field);
30081
        }
30082
      }
30083
 
30084
      /**
30085
       * Find the _Fields constant that matches fieldId, or null if its not found.
30086
       */
30087
      public static _Fields findByThriftId(int fieldId) {
30088
        switch(fieldId) {
30089
          case 1: // VENDOR_IDS
30090
            return VENDOR_IDS;
30091
          default:
30092
            return null;
30093
        }
30094
      }
30095
 
30096
      /**
30097
       * Find the _Fields constant that matches fieldId, throwing an exception
30098
       * if it is not found.
30099
       */
30100
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30101
        _Fields fields = findByThriftId(fieldId);
30102
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30103
        return fields;
30104
      }
30105
 
30106
      /**
30107
       * Find the _Fields constant that matches name, or null if its not found.
30108
       */
30109
      public static _Fields findByName(String name) {
30110
        return byName.get(name);
30111
      }
30112
 
30113
      private final short _thriftId;
30114
      private final String _fieldName;
30115
 
30116
      _Fields(short thriftId, String fieldName) {
30117
        _thriftId = thriftId;
30118
        _fieldName = fieldName;
30119
      }
30120
 
30121
      public short getThriftFieldId() {
30122
        return _thriftId;
30123
      }
30124
 
30125
      public String getFieldName() {
30126
        return _fieldName;
30127
      }
30128
    }
30129
 
30130
    // isset id assignments
30131
 
30132
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30133
    static {
30134
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30135
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30136
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30137
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
30140
    }
30141
 
30142
    public getMonitoredWarehouseForVendors_args() {
30143
    }
30144
 
30145
    public getMonitoredWarehouseForVendors_args(
30146
      List<Long> vendorIds)
30147
    {
30148
      this();
30149
      this.vendorIds = vendorIds;
30150
    }
30151
 
30152
    /**
30153
     * Performs a deep copy on <i>other</i>.
30154
     */
30155
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
30156
      if (other.isSetVendorIds()) {
30157
        List<Long> __this__vendorIds = new ArrayList<Long>();
30158
        for (Long other_element : other.vendorIds) {
30159
          __this__vendorIds.add(other_element);
30160
        }
30161
        this.vendorIds = __this__vendorIds;
30162
      }
30163
    }
30164
 
30165
    public getMonitoredWarehouseForVendors_args deepCopy() {
30166
      return new getMonitoredWarehouseForVendors_args(this);
30167
    }
30168
 
30169
    @Override
30170
    public void clear() {
30171
      this.vendorIds = null;
30172
    }
30173
 
30174
    public int getVendorIdsSize() {
30175
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
30176
    }
30177
 
30178
    public java.util.Iterator<Long> getVendorIdsIterator() {
30179
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
30180
    }
30181
 
30182
    public void addToVendorIds(long elem) {
30183
      if (this.vendorIds == null) {
30184
        this.vendorIds = new ArrayList<Long>();
30185
      }
30186
      this.vendorIds.add(elem);
30187
    }
30188
 
30189
    public List<Long> getVendorIds() {
30190
      return this.vendorIds;
30191
    }
30192
 
30193
    public void setVendorIds(List<Long> vendorIds) {
30194
      this.vendorIds = vendorIds;
30195
    }
30196
 
30197
    public void unsetVendorIds() {
30198
      this.vendorIds = null;
30199
    }
30200
 
30201
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
30202
    public boolean isSetVendorIds() {
30203
      return this.vendorIds != null;
30204
    }
30205
 
30206
    public void setVendorIdsIsSet(boolean value) {
30207
      if (!value) {
30208
        this.vendorIds = null;
30209
      }
30210
    }
30211
 
30212
    public void setFieldValue(_Fields field, Object value) {
30213
      switch (field) {
30214
      case VENDOR_IDS:
30215
        if (value == null) {
30216
          unsetVendorIds();
30217
        } else {
30218
          setVendorIds((List<Long>)value);
30219
        }
30220
        break;
30221
 
30222
      }
30223
    }
30224
 
30225
    public Object getFieldValue(_Fields field) {
30226
      switch (field) {
30227
      case VENDOR_IDS:
30228
        return getVendorIds();
30229
 
30230
      }
30231
      throw new IllegalStateException();
30232
    }
30233
 
30234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30235
    public boolean isSet(_Fields field) {
30236
      if (field == null) {
30237
        throw new IllegalArgumentException();
30238
      }
30239
 
30240
      switch (field) {
30241
      case VENDOR_IDS:
30242
        return isSetVendorIds();
30243
      }
30244
      throw new IllegalStateException();
30245
    }
30246
 
30247
    @Override
30248
    public boolean equals(Object that) {
30249
      if (that == null)
30250
        return false;
30251
      if (that instanceof getMonitoredWarehouseForVendors_args)
30252
        return this.equals((getMonitoredWarehouseForVendors_args)that);
30253
      return false;
30254
    }
30255
 
30256
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
30257
      if (that == null)
30258
        return false;
30259
 
30260
      boolean this_present_vendorIds = true && this.isSetVendorIds();
30261
      boolean that_present_vendorIds = true && that.isSetVendorIds();
30262
      if (this_present_vendorIds || that_present_vendorIds) {
30263
        if (!(this_present_vendorIds && that_present_vendorIds))
30264
          return false;
30265
        if (!this.vendorIds.equals(that.vendorIds))
30266
          return false;
30267
      }
30268
 
30269
      return true;
30270
    }
30271
 
30272
    @Override
30273
    public int hashCode() {
30274
      return 0;
30275
    }
30276
 
30277
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
30278
      if (!getClass().equals(other.getClass())) {
30279
        return getClass().getName().compareTo(other.getClass().getName());
30280
      }
30281
 
30282
      int lastComparison = 0;
30283
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
30284
 
30285
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
30286
      if (lastComparison != 0) {
30287
        return lastComparison;
30288
      }
30289
      if (isSetVendorIds()) {
30290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
30291
        if (lastComparison != 0) {
30292
          return lastComparison;
30293
        }
30294
      }
30295
      return 0;
30296
    }
30297
 
30298
    public _Fields fieldForId(int fieldId) {
30299
      return _Fields.findByThriftId(fieldId);
30300
    }
30301
 
30302
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30303
      org.apache.thrift.protocol.TField field;
30304
      iprot.readStructBegin();
30305
      while (true)
30306
      {
30307
        field = iprot.readFieldBegin();
30308
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30309
          break;
30310
        }
30311
        switch (field.id) {
30312
          case 1: // VENDOR_IDS
30313
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30314
              {
30315
                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
30316
                this.vendorIds = new ArrayList<Long>(_list88.size);
30317
                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
30318
                {
30319
                  long _elem90; // required
30320
                  _elem90 = iprot.readI64();
30321
                  this.vendorIds.add(_elem90);
30322
                }
30323
                iprot.readListEnd();
30324
              }
30325
            } else { 
30326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30327
            }
30328
            break;
30329
          default:
30330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30331
        }
30332
        iprot.readFieldEnd();
30333
      }
30334
      iprot.readStructEnd();
30335
      validate();
30336
    }
30337
 
30338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30339
      validate();
30340
 
30341
      oprot.writeStructBegin(STRUCT_DESC);
30342
      if (this.vendorIds != null) {
30343
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
30344
        {
30345
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
30346
          for (long _iter91 : this.vendorIds)
30347
          {
30348
            oprot.writeI64(_iter91);
30349
          }
30350
          oprot.writeListEnd();
30351
        }
30352
        oprot.writeFieldEnd();
30353
      }
30354
      oprot.writeFieldStop();
30355
      oprot.writeStructEnd();
30356
    }
30357
 
30358
    @Override
30359
    public String toString() {
30360
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
30361
      boolean first = true;
30362
 
30363
      sb.append("vendorIds:");
30364
      if (this.vendorIds == null) {
30365
        sb.append("null");
30366
      } else {
30367
        sb.append(this.vendorIds);
30368
      }
30369
      first = false;
30370
      sb.append(")");
30371
      return sb.toString();
30372
    }
30373
 
30374
    public void validate() throws org.apache.thrift.TException {
30375
      // check for required fields
30376
    }
30377
 
30378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30379
      try {
30380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30381
      } catch (org.apache.thrift.TException te) {
30382
        throw new java.io.IOException(te);
30383
      }
30384
    }
30385
 
30386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30387
      try {
30388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30389
      } catch (org.apache.thrift.TException te) {
30390
        throw new java.io.IOException(te);
30391
      }
30392
    }
30393
 
30394
  }
30395
 
30396
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
30397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
30398
 
30399
    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);
30400
 
30401
    private List<Long> success; // required
30402
 
30403
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30404
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30405
      SUCCESS((short)0, "success");
30406
 
30407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30408
 
30409
      static {
30410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30411
          byName.put(field.getFieldName(), field);
30412
        }
30413
      }
30414
 
30415
      /**
30416
       * Find the _Fields constant that matches fieldId, or null if its not found.
30417
       */
30418
      public static _Fields findByThriftId(int fieldId) {
30419
        switch(fieldId) {
30420
          case 0: // SUCCESS
30421
            return SUCCESS;
30422
          default:
30423
            return null;
30424
        }
30425
      }
30426
 
30427
      /**
30428
       * Find the _Fields constant that matches fieldId, throwing an exception
30429
       * if it is not found.
30430
       */
30431
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30432
        _Fields fields = findByThriftId(fieldId);
30433
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30434
        return fields;
30435
      }
30436
 
30437
      /**
30438
       * Find the _Fields constant that matches name, or null if its not found.
30439
       */
30440
      public static _Fields findByName(String name) {
30441
        return byName.get(name);
30442
      }
30443
 
30444
      private final short _thriftId;
30445
      private final String _fieldName;
30446
 
30447
      _Fields(short thriftId, String fieldName) {
30448
        _thriftId = thriftId;
30449
        _fieldName = fieldName;
30450
      }
30451
 
30452
      public short getThriftFieldId() {
30453
        return _thriftId;
30454
      }
30455
 
30456
      public String getFieldName() {
30457
        return _fieldName;
30458
      }
30459
    }
30460
 
30461
    // isset id assignments
30462
 
30463
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30464
    static {
30465
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30466
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30467
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30468
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
30471
    }
30472
 
30473
    public getMonitoredWarehouseForVendors_result() {
30474
    }
30475
 
30476
    public getMonitoredWarehouseForVendors_result(
30477
      List<Long> success)
30478
    {
30479
      this();
30480
      this.success = success;
30481
    }
30482
 
30483
    /**
30484
     * Performs a deep copy on <i>other</i>.
30485
     */
30486
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
30487
      if (other.isSetSuccess()) {
30488
        List<Long> __this__success = new ArrayList<Long>();
30489
        for (Long other_element : other.success) {
30490
          __this__success.add(other_element);
30491
        }
30492
        this.success = __this__success;
30493
      }
30494
    }
30495
 
30496
    public getMonitoredWarehouseForVendors_result deepCopy() {
30497
      return new getMonitoredWarehouseForVendors_result(this);
30498
    }
30499
 
30500
    @Override
30501
    public void clear() {
30502
      this.success = null;
30503
    }
30504
 
30505
    public int getSuccessSize() {
30506
      return (this.success == null) ? 0 : this.success.size();
30507
    }
30508
 
30509
    public java.util.Iterator<Long> getSuccessIterator() {
30510
      return (this.success == null) ? null : this.success.iterator();
30511
    }
30512
 
30513
    public void addToSuccess(long elem) {
30514
      if (this.success == null) {
30515
        this.success = new ArrayList<Long>();
30516
      }
30517
      this.success.add(elem);
30518
    }
30519
 
30520
    public List<Long> getSuccess() {
30521
      return this.success;
30522
    }
30523
 
30524
    public void setSuccess(List<Long> success) {
30525
      this.success = success;
30526
    }
30527
 
30528
    public void unsetSuccess() {
30529
      this.success = null;
30530
    }
30531
 
30532
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30533
    public boolean isSetSuccess() {
30534
      return this.success != null;
30535
    }
30536
 
30537
    public void setSuccessIsSet(boolean value) {
30538
      if (!value) {
30539
        this.success = null;
30540
      }
30541
    }
30542
 
30543
    public void setFieldValue(_Fields field, Object value) {
30544
      switch (field) {
30545
      case SUCCESS:
30546
        if (value == null) {
30547
          unsetSuccess();
30548
        } else {
30549
          setSuccess((List<Long>)value);
30550
        }
30551
        break;
30552
 
30553
      }
30554
    }
30555
 
30556
    public Object getFieldValue(_Fields field) {
30557
      switch (field) {
30558
      case SUCCESS:
30559
        return getSuccess();
30560
 
30561
      }
30562
      throw new IllegalStateException();
30563
    }
30564
 
30565
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30566
    public boolean isSet(_Fields field) {
30567
      if (field == null) {
30568
        throw new IllegalArgumentException();
30569
      }
30570
 
30571
      switch (field) {
30572
      case SUCCESS:
30573
        return isSetSuccess();
30574
      }
30575
      throw new IllegalStateException();
30576
    }
30577
 
30578
    @Override
30579
    public boolean equals(Object that) {
30580
      if (that == null)
30581
        return false;
30582
      if (that instanceof getMonitoredWarehouseForVendors_result)
30583
        return this.equals((getMonitoredWarehouseForVendors_result)that);
30584
      return false;
30585
    }
30586
 
30587
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
30588
      if (that == null)
30589
        return false;
30590
 
30591
      boolean this_present_success = true && this.isSetSuccess();
30592
      boolean that_present_success = true && that.isSetSuccess();
30593
      if (this_present_success || that_present_success) {
30594
        if (!(this_present_success && that_present_success))
30595
          return false;
30596
        if (!this.success.equals(that.success))
30597
          return false;
30598
      }
30599
 
30600
      return true;
30601
    }
30602
 
30603
    @Override
30604
    public int hashCode() {
30605
      return 0;
30606
    }
30607
 
30608
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
30609
      if (!getClass().equals(other.getClass())) {
30610
        return getClass().getName().compareTo(other.getClass().getName());
30611
      }
30612
 
30613
      int lastComparison = 0;
30614
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
30615
 
30616
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30617
      if (lastComparison != 0) {
30618
        return lastComparison;
30619
      }
30620
      if (isSetSuccess()) {
30621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30622
        if (lastComparison != 0) {
30623
          return lastComparison;
30624
        }
30625
      }
30626
      return 0;
30627
    }
30628
 
30629
    public _Fields fieldForId(int fieldId) {
30630
      return _Fields.findByThriftId(fieldId);
30631
    }
30632
 
30633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30634
      org.apache.thrift.protocol.TField field;
30635
      iprot.readStructBegin();
30636
      while (true)
30637
      {
30638
        field = iprot.readFieldBegin();
30639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30640
          break;
30641
        }
30642
        switch (field.id) {
30643
          case 0: // SUCCESS
30644
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30645
              {
30646
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
30647
                this.success = new ArrayList<Long>(_list92.size);
30648
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
30649
                {
30650
                  long _elem94; // required
30651
                  _elem94 = iprot.readI64();
30652
                  this.success.add(_elem94);
30653
                }
30654
                iprot.readListEnd();
30655
              }
30656
            } else { 
30657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30658
            }
30659
            break;
30660
          default:
30661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30662
        }
30663
        iprot.readFieldEnd();
30664
      }
30665
      iprot.readStructEnd();
30666
      validate();
30667
    }
30668
 
30669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30670
      oprot.writeStructBegin(STRUCT_DESC);
30671
 
30672
      if (this.isSetSuccess()) {
30673
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30674
        {
30675
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30676
          for (long _iter95 : this.success)
30677
          {
30678
            oprot.writeI64(_iter95);
30679
          }
30680
          oprot.writeListEnd();
30681
        }
30682
        oprot.writeFieldEnd();
30683
      }
30684
      oprot.writeFieldStop();
30685
      oprot.writeStructEnd();
30686
    }
30687
 
30688
    @Override
30689
    public String toString() {
30690
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
30691
      boolean first = true;
30692
 
30693
      sb.append("success:");
30694
      if (this.success == null) {
30695
        sb.append("null");
30696
      } else {
30697
        sb.append(this.success);
30698
      }
30699
      first = false;
30700
      sb.append(")");
30701
      return sb.toString();
30702
    }
30703
 
30704
    public void validate() throws org.apache.thrift.TException {
30705
      // check for required fields
30706
    }
30707
 
30708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30709
      try {
30710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30711
      } catch (org.apache.thrift.TException te) {
30712
        throw new java.io.IOException(te);
30713
      }
30714
    }
30715
 
30716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30717
      try {
30718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30719
      } catch (org.apache.thrift.TException te) {
30720
        throw new java.io.IOException(te);
30721
      }
30722
    }
30723
 
30724
  }
30725
 
30726
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
30727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
30728
 
30729
 
30730
 
30731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30733
;
30734
 
30735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30736
 
30737
      static {
30738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30739
          byName.put(field.getFieldName(), field);
30740
        }
30741
      }
30742
 
30743
      /**
30744
       * Find the _Fields constant that matches fieldId, or null if its not found.
30745
       */
30746
      public static _Fields findByThriftId(int fieldId) {
30747
        switch(fieldId) {
30748
          default:
30749
            return null;
30750
        }
30751
      }
30752
 
30753
      /**
30754
       * Find the _Fields constant that matches fieldId, throwing an exception
30755
       * if it is not found.
30756
       */
30757
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30758
        _Fields fields = findByThriftId(fieldId);
30759
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30760
        return fields;
30761
      }
30762
 
30763
      /**
30764
       * Find the _Fields constant that matches name, or null if its not found.
30765
       */
30766
      public static _Fields findByName(String name) {
30767
        return byName.get(name);
30768
      }
30769
 
30770
      private final short _thriftId;
30771
      private final String _fieldName;
30772
 
30773
      _Fields(short thriftId, String fieldName) {
30774
        _thriftId = thriftId;
30775
        _fieldName = fieldName;
30776
      }
30777
 
30778
      public short getThriftFieldId() {
30779
        return _thriftId;
30780
      }
30781
 
30782
      public String getFieldName() {
30783
        return _fieldName;
30784
      }
30785
    }
30786
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30787
    static {
30788
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
30791
    }
30792
 
30793
    public getIgnoredWarehouseidsAndItemids_args() {
30794
    }
30795
 
30796
    /**
30797
     * Performs a deep copy on <i>other</i>.
30798
     */
30799
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
30800
    }
30801
 
30802
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
30803
      return new getIgnoredWarehouseidsAndItemids_args(this);
30804
    }
30805
 
30806
    @Override
30807
    public void clear() {
30808
    }
30809
 
30810
    public void setFieldValue(_Fields field, Object value) {
30811
      switch (field) {
30812
      }
30813
    }
30814
 
30815
    public Object getFieldValue(_Fields field) {
30816
      switch (field) {
30817
      }
30818
      throw new IllegalStateException();
30819
    }
30820
 
30821
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30822
    public boolean isSet(_Fields field) {
30823
      if (field == null) {
30824
        throw new IllegalArgumentException();
30825
      }
30826
 
30827
      switch (field) {
30828
      }
30829
      throw new IllegalStateException();
30830
    }
30831
 
30832
    @Override
30833
    public boolean equals(Object that) {
30834
      if (that == null)
30835
        return false;
30836
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
30837
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
30838
      return false;
30839
    }
30840
 
30841
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
30842
      if (that == null)
30843
        return false;
30844
 
30845
      return true;
30846
    }
30847
 
30848
    @Override
30849
    public int hashCode() {
30850
      return 0;
30851
    }
30852
 
30853
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
30854
      if (!getClass().equals(other.getClass())) {
30855
        return getClass().getName().compareTo(other.getClass().getName());
30856
      }
30857
 
30858
      int lastComparison = 0;
30859
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
30860
 
30861
      return 0;
30862
    }
30863
 
30864
    public _Fields fieldForId(int fieldId) {
30865
      return _Fields.findByThriftId(fieldId);
30866
    }
30867
 
30868
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30869
      org.apache.thrift.protocol.TField field;
30870
      iprot.readStructBegin();
30871
      while (true)
30872
      {
30873
        field = iprot.readFieldBegin();
30874
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30875
          break;
30876
        }
30877
        switch (field.id) {
30878
          default:
30879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30880
        }
30881
        iprot.readFieldEnd();
30882
      }
30883
      iprot.readStructEnd();
30884
      validate();
30885
    }
30886
 
30887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30888
      validate();
30889
 
30890
      oprot.writeStructBegin(STRUCT_DESC);
30891
      oprot.writeFieldStop();
30892
      oprot.writeStructEnd();
30893
    }
30894
 
30895
    @Override
30896
    public String toString() {
30897
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
30898
      boolean first = true;
30899
 
30900
      sb.append(")");
30901
      return sb.toString();
30902
    }
30903
 
30904
    public void validate() throws org.apache.thrift.TException {
30905
      // check for required fields
30906
    }
30907
 
30908
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30909
      try {
30910
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30911
      } catch (org.apache.thrift.TException te) {
30912
        throw new java.io.IOException(te);
30913
      }
30914
    }
30915
 
30916
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30917
      try {
30918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30919
      } catch (org.apache.thrift.TException te) {
30920
        throw new java.io.IOException(te);
30921
      }
30922
    }
30923
 
30924
  }
30925
 
30926
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
30927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
30928
 
30929
    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);
30930
 
30931
    private List<IgnoredInventoryUpdateItems> success; // required
30932
 
30933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30935
      SUCCESS((short)0, "success");
30936
 
30937
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30938
 
30939
      static {
30940
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30941
          byName.put(field.getFieldName(), field);
30942
        }
30943
      }
30944
 
30945
      /**
30946
       * Find the _Fields constant that matches fieldId, or null if its not found.
30947
       */
30948
      public static _Fields findByThriftId(int fieldId) {
30949
        switch(fieldId) {
30950
          case 0: // SUCCESS
30951
            return SUCCESS;
30952
          default:
30953
            return null;
30954
        }
30955
      }
30956
 
30957
      /**
30958
       * Find the _Fields constant that matches fieldId, throwing an exception
30959
       * if it is not found.
30960
       */
30961
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30962
        _Fields fields = findByThriftId(fieldId);
30963
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30964
        return fields;
30965
      }
30966
 
30967
      /**
30968
       * Find the _Fields constant that matches name, or null if its not found.
30969
       */
30970
      public static _Fields findByName(String name) {
30971
        return byName.get(name);
30972
      }
30973
 
30974
      private final short _thriftId;
30975
      private final String _fieldName;
30976
 
30977
      _Fields(short thriftId, String fieldName) {
30978
        _thriftId = thriftId;
30979
        _fieldName = fieldName;
30980
      }
30981
 
30982
      public short getThriftFieldId() {
30983
        return _thriftId;
30984
      }
30985
 
30986
      public String getFieldName() {
30987
        return _fieldName;
30988
      }
30989
    }
30990
 
30991
    // isset id assignments
30992
 
30993
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30994
    static {
30995
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30996
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30997
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30998
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
30999
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31000
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
31001
    }
31002
 
31003
    public getIgnoredWarehouseidsAndItemids_result() {
31004
    }
31005
 
31006
    public getIgnoredWarehouseidsAndItemids_result(
31007
      List<IgnoredInventoryUpdateItems> success)
31008
    {
31009
      this();
31010
      this.success = success;
31011
    }
31012
 
31013
    /**
31014
     * Performs a deep copy on <i>other</i>.
31015
     */
31016
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
31017
      if (other.isSetSuccess()) {
31018
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
31019
        for (IgnoredInventoryUpdateItems other_element : other.success) {
31020
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
31021
        }
31022
        this.success = __this__success;
31023
      }
31024
    }
31025
 
31026
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
31027
      return new getIgnoredWarehouseidsAndItemids_result(this);
31028
    }
31029
 
31030
    @Override
31031
    public void clear() {
31032
      this.success = null;
31033
    }
31034
 
31035
    public int getSuccessSize() {
31036
      return (this.success == null) ? 0 : this.success.size();
31037
    }
31038
 
31039
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
31040
      return (this.success == null) ? null : this.success.iterator();
31041
    }
31042
 
31043
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
31044
      if (this.success == null) {
31045
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
31046
      }
31047
      this.success.add(elem);
31048
    }
31049
 
31050
    public List<IgnoredInventoryUpdateItems> getSuccess() {
31051
      return this.success;
31052
    }
31053
 
31054
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
31055
      this.success = success;
31056
    }
31057
 
31058
    public void unsetSuccess() {
31059
      this.success = null;
31060
    }
31061
 
31062
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31063
    public boolean isSetSuccess() {
31064
      return this.success != null;
31065
    }
31066
 
31067
    public void setSuccessIsSet(boolean value) {
31068
      if (!value) {
31069
        this.success = null;
31070
      }
31071
    }
31072
 
31073
    public void setFieldValue(_Fields field, Object value) {
31074
      switch (field) {
31075
      case SUCCESS:
31076
        if (value == null) {
31077
          unsetSuccess();
31078
        } else {
31079
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
31080
        }
31081
        break;
31082
 
31083
      }
31084
    }
31085
 
31086
    public Object getFieldValue(_Fields field) {
31087
      switch (field) {
31088
      case SUCCESS:
31089
        return getSuccess();
31090
 
31091
      }
31092
      throw new IllegalStateException();
31093
    }
31094
 
31095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31096
    public boolean isSet(_Fields field) {
31097
      if (field == null) {
31098
        throw new IllegalArgumentException();
31099
      }
31100
 
31101
      switch (field) {
31102
      case SUCCESS:
31103
        return isSetSuccess();
31104
      }
31105
      throw new IllegalStateException();
31106
    }
31107
 
31108
    @Override
31109
    public boolean equals(Object that) {
31110
      if (that == null)
31111
        return false;
31112
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
31113
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
31114
      return false;
31115
    }
31116
 
31117
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
31118
      if (that == null)
31119
        return false;
31120
 
31121
      boolean this_present_success = true && this.isSetSuccess();
31122
      boolean that_present_success = true && that.isSetSuccess();
31123
      if (this_present_success || that_present_success) {
31124
        if (!(this_present_success && that_present_success))
31125
          return false;
31126
        if (!this.success.equals(that.success))
31127
          return false;
31128
      }
31129
 
31130
      return true;
31131
    }
31132
 
31133
    @Override
31134
    public int hashCode() {
31135
      return 0;
31136
    }
31137
 
31138
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
31139
      if (!getClass().equals(other.getClass())) {
31140
        return getClass().getName().compareTo(other.getClass().getName());
31141
      }
31142
 
31143
      int lastComparison = 0;
31144
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
31145
 
31146
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31147
      if (lastComparison != 0) {
31148
        return lastComparison;
31149
      }
31150
      if (isSetSuccess()) {
31151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31152
        if (lastComparison != 0) {
31153
          return lastComparison;
31154
        }
31155
      }
31156
      return 0;
31157
    }
31158
 
31159
    public _Fields fieldForId(int fieldId) {
31160
      return _Fields.findByThriftId(fieldId);
31161
    }
31162
 
31163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31164
      org.apache.thrift.protocol.TField field;
31165
      iprot.readStructBegin();
31166
      while (true)
31167
      {
31168
        field = iprot.readFieldBegin();
31169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31170
          break;
31171
        }
31172
        switch (field.id) {
31173
          case 0: // SUCCESS
31174
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31175
              {
31176
                org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
31177
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list96.size);
31178
                for (int _i97 = 0; _i97 < _list96.size; ++_i97)
31179
                {
31180
                  IgnoredInventoryUpdateItems _elem98; // required
31181
                  _elem98 = new IgnoredInventoryUpdateItems();
31182
                  _elem98.read(iprot);
31183
                  this.success.add(_elem98);
31184
                }
31185
                iprot.readListEnd();
31186
              }
31187
            } else { 
31188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31189
            }
31190
            break;
31191
          default:
31192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31193
        }
31194
        iprot.readFieldEnd();
31195
      }
31196
      iprot.readStructEnd();
31197
      validate();
31198
    }
31199
 
31200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31201
      oprot.writeStructBegin(STRUCT_DESC);
31202
 
31203
      if (this.isSetSuccess()) {
31204
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31205
        {
31206
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31207
          for (IgnoredInventoryUpdateItems _iter99 : this.success)
31208
          {
31209
            _iter99.write(oprot);
31210
          }
31211
          oprot.writeListEnd();
31212
        }
31213
        oprot.writeFieldEnd();
31214
      }
31215
      oprot.writeFieldStop();
31216
      oprot.writeStructEnd();
31217
    }
31218
 
31219
    @Override
31220
    public String toString() {
31221
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
31222
      boolean first = true;
31223
 
31224
      sb.append("success:");
31225
      if (this.success == null) {
31226
        sb.append("null");
31227
      } else {
31228
        sb.append(this.success);
31229
      }
31230
      first = false;
31231
      sb.append(")");
31232
      return sb.toString();
31233
    }
31234
 
31235
    public void validate() throws org.apache.thrift.TException {
31236
      // check for required fields
31237
    }
31238
 
31239
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31240
      try {
31241
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31242
      } catch (org.apache.thrift.TException te) {
31243
        throw new java.io.IOException(te);
31244
      }
31245
    }
31246
 
31247
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31248
      try {
31249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31250
      } catch (org.apache.thrift.TException te) {
31251
        throw new java.io.IOException(te);
31252
      }
31253
    }
31254
 
31255
  }
31256
 
31257
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
31258
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
31259
 
31260
    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);
31261
    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);
31262
 
31263
    private long item_id; // required
31264
    private long warehouse_id; // required
31265
 
31266
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31267
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31268
      ITEM_ID((short)1, "item_id"),
31269
      WAREHOUSE_ID((short)2, "warehouse_id");
31270
 
31271
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31272
 
31273
      static {
31274
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31275
          byName.put(field.getFieldName(), field);
31276
        }
31277
      }
31278
 
31279
      /**
31280
       * Find the _Fields constant that matches fieldId, or null if its not found.
31281
       */
31282
      public static _Fields findByThriftId(int fieldId) {
31283
        switch(fieldId) {
31284
          case 1: // ITEM_ID
31285
            return ITEM_ID;
31286
          case 2: // WAREHOUSE_ID
31287
            return WAREHOUSE_ID;
31288
          default:
31289
            return null;
31290
        }
31291
      }
31292
 
31293
      /**
31294
       * Find the _Fields constant that matches fieldId, throwing an exception
31295
       * if it is not found.
31296
       */
31297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31298
        _Fields fields = findByThriftId(fieldId);
31299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31300
        return fields;
31301
      }
31302
 
31303
      /**
31304
       * Find the _Fields constant that matches name, or null if its not found.
31305
       */
31306
      public static _Fields findByName(String name) {
31307
        return byName.get(name);
31308
      }
31309
 
31310
      private final short _thriftId;
31311
      private final String _fieldName;
31312
 
31313
      _Fields(short thriftId, String fieldName) {
31314
        _thriftId = thriftId;
31315
        _fieldName = fieldName;
31316
      }
31317
 
31318
      public short getThriftFieldId() {
31319
        return _thriftId;
31320
      }
31321
 
31322
      public String getFieldName() {
31323
        return _fieldName;
31324
      }
31325
    }
31326
 
31327
    // isset id assignments
31328
    private static final int __ITEM_ID_ISSET_ID = 0;
31329
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
31330
    private BitSet __isset_bit_vector = new BitSet(2);
31331
 
31332
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31333
    static {
31334
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31335
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31337
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31339
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31340
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
31341
    }
31342
 
31343
    public insertItemtoIgnoreInventoryUpdatelist_args() {
31344
    }
31345
 
31346
    public insertItemtoIgnoreInventoryUpdatelist_args(
31347
      long item_id,
31348
      long warehouse_id)
31349
    {
31350
      this();
31351
      this.item_id = item_id;
31352
      setItem_idIsSet(true);
31353
      this.warehouse_id = warehouse_id;
31354
      setWarehouse_idIsSet(true);
31355
    }
31356
 
31357
    /**
31358
     * Performs a deep copy on <i>other</i>.
31359
     */
31360
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
31361
      __isset_bit_vector.clear();
31362
      __isset_bit_vector.or(other.__isset_bit_vector);
31363
      this.item_id = other.item_id;
31364
      this.warehouse_id = other.warehouse_id;
31365
    }
31366
 
31367
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
31368
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
31369
    }
31370
 
31371
    @Override
31372
    public void clear() {
31373
      setItem_idIsSet(false);
31374
      this.item_id = 0;
31375
      setWarehouse_idIsSet(false);
31376
      this.warehouse_id = 0;
31377
    }
31378
 
31379
    public long getItem_id() {
31380
      return this.item_id;
31381
    }
31382
 
31383
    public void setItem_id(long item_id) {
31384
      this.item_id = item_id;
31385
      setItem_idIsSet(true);
31386
    }
31387
 
31388
    public void unsetItem_id() {
31389
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
31390
    }
31391
 
31392
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
31393
    public boolean isSetItem_id() {
31394
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
31395
    }
31396
 
31397
    public void setItem_idIsSet(boolean value) {
31398
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
31399
    }
31400
 
31401
    public long getWarehouse_id() {
31402
      return this.warehouse_id;
31403
    }
31404
 
31405
    public void setWarehouse_id(long warehouse_id) {
31406
      this.warehouse_id = warehouse_id;
31407
      setWarehouse_idIsSet(true);
31408
    }
31409
 
31410
    public void unsetWarehouse_id() {
31411
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
31412
    }
31413
 
31414
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
31415
    public boolean isSetWarehouse_id() {
31416
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
31417
    }
31418
 
31419
    public void setWarehouse_idIsSet(boolean value) {
31420
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
31421
    }
31422
 
31423
    public void setFieldValue(_Fields field, Object value) {
31424
      switch (field) {
31425
      case ITEM_ID:
31426
        if (value == null) {
31427
          unsetItem_id();
31428
        } else {
31429
          setItem_id((Long)value);
31430
        }
31431
        break;
31432
 
31433
      case WAREHOUSE_ID:
31434
        if (value == null) {
31435
          unsetWarehouse_id();
31436
        } else {
31437
          setWarehouse_id((Long)value);
31438
        }
31439
        break;
31440
 
31441
      }
31442
    }
31443
 
31444
    public Object getFieldValue(_Fields field) {
31445
      switch (field) {
31446
      case ITEM_ID:
31447
        return Long.valueOf(getItem_id());
31448
 
31449
      case WAREHOUSE_ID:
31450
        return Long.valueOf(getWarehouse_id());
31451
 
31452
      }
31453
      throw new IllegalStateException();
31454
    }
31455
 
31456
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31457
    public boolean isSet(_Fields field) {
31458
      if (field == null) {
31459
        throw new IllegalArgumentException();
31460
      }
31461
 
31462
      switch (field) {
31463
      case ITEM_ID:
31464
        return isSetItem_id();
31465
      case WAREHOUSE_ID:
31466
        return isSetWarehouse_id();
31467
      }
31468
      throw new IllegalStateException();
31469
    }
31470
 
31471
    @Override
31472
    public boolean equals(Object that) {
31473
      if (that == null)
31474
        return false;
31475
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
31476
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
31477
      return false;
31478
    }
31479
 
31480
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
31481
      if (that == null)
31482
        return false;
31483
 
31484
      boolean this_present_item_id = true;
31485
      boolean that_present_item_id = true;
31486
      if (this_present_item_id || that_present_item_id) {
31487
        if (!(this_present_item_id && that_present_item_id))
31488
          return false;
31489
        if (this.item_id != that.item_id)
31490
          return false;
31491
      }
31492
 
31493
      boolean this_present_warehouse_id = true;
31494
      boolean that_present_warehouse_id = true;
31495
      if (this_present_warehouse_id || that_present_warehouse_id) {
31496
        if (!(this_present_warehouse_id && that_present_warehouse_id))
31497
          return false;
31498
        if (this.warehouse_id != that.warehouse_id)
31499
          return false;
31500
      }
31501
 
31502
      return true;
31503
    }
31504
 
31505
    @Override
31506
    public int hashCode() {
31507
      return 0;
31508
    }
31509
 
31510
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
31511
      if (!getClass().equals(other.getClass())) {
31512
        return getClass().getName().compareTo(other.getClass().getName());
31513
      }
31514
 
31515
      int lastComparison = 0;
31516
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
31517
 
31518
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
31519
      if (lastComparison != 0) {
31520
        return lastComparison;
31521
      }
31522
      if (isSetItem_id()) {
31523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
31524
        if (lastComparison != 0) {
31525
          return lastComparison;
31526
        }
31527
      }
31528
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
31529
      if (lastComparison != 0) {
31530
        return lastComparison;
31531
      }
31532
      if (isSetWarehouse_id()) {
31533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
31534
        if (lastComparison != 0) {
31535
          return lastComparison;
31536
        }
31537
      }
31538
      return 0;
31539
    }
31540
 
31541
    public _Fields fieldForId(int fieldId) {
31542
      return _Fields.findByThriftId(fieldId);
31543
    }
31544
 
31545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31546
      org.apache.thrift.protocol.TField field;
31547
      iprot.readStructBegin();
31548
      while (true)
31549
      {
31550
        field = iprot.readFieldBegin();
31551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31552
          break;
31553
        }
31554
        switch (field.id) {
31555
          case 1: // ITEM_ID
31556
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31557
              this.item_id = iprot.readI64();
31558
              setItem_idIsSet(true);
31559
            } else { 
31560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31561
            }
31562
            break;
31563
          case 2: // WAREHOUSE_ID
31564
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31565
              this.warehouse_id = iprot.readI64();
31566
              setWarehouse_idIsSet(true);
31567
            } else { 
31568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31569
            }
31570
            break;
31571
          default:
31572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31573
        }
31574
        iprot.readFieldEnd();
31575
      }
31576
      iprot.readStructEnd();
31577
      validate();
31578
    }
31579
 
31580
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31581
      validate();
31582
 
31583
      oprot.writeStructBegin(STRUCT_DESC);
31584
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31585
      oprot.writeI64(this.item_id);
31586
      oprot.writeFieldEnd();
31587
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31588
      oprot.writeI64(this.warehouse_id);
31589
      oprot.writeFieldEnd();
31590
      oprot.writeFieldStop();
31591
      oprot.writeStructEnd();
31592
    }
31593
 
31594
    @Override
31595
    public String toString() {
31596
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
31597
      boolean first = true;
31598
 
31599
      sb.append("item_id:");
31600
      sb.append(this.item_id);
31601
      first = false;
31602
      if (!first) sb.append(", ");
31603
      sb.append("warehouse_id:");
31604
      sb.append(this.warehouse_id);
31605
      first = false;
31606
      sb.append(")");
31607
      return sb.toString();
31608
    }
31609
 
31610
    public void validate() throws org.apache.thrift.TException {
31611
      // check for required fields
31612
    }
31613
 
31614
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31615
      try {
31616
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31617
      } catch (org.apache.thrift.TException te) {
31618
        throw new java.io.IOException(te);
31619
      }
31620
    }
31621
 
31622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31623
      try {
31624
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31625
        __isset_bit_vector = new BitSet(1);
31626
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31627
      } catch (org.apache.thrift.TException te) {
31628
        throw new java.io.IOException(te);
31629
      }
31630
    }
31631
 
31632
  }
31633
 
31634
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
31635
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
31636
 
31637
    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);
31638
 
31639
    private boolean success; // required
31640
 
31641
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31642
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31643
      SUCCESS((short)0, "success");
31644
 
31645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31646
 
31647
      static {
31648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31649
          byName.put(field.getFieldName(), field);
31650
        }
31651
      }
31652
 
31653
      /**
31654
       * Find the _Fields constant that matches fieldId, or null if its not found.
31655
       */
31656
      public static _Fields findByThriftId(int fieldId) {
31657
        switch(fieldId) {
31658
          case 0: // SUCCESS
31659
            return SUCCESS;
31660
          default:
31661
            return null;
31662
        }
31663
      }
31664
 
31665
      /**
31666
       * Find the _Fields constant that matches fieldId, throwing an exception
31667
       * if it is not found.
31668
       */
31669
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31670
        _Fields fields = findByThriftId(fieldId);
31671
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31672
        return fields;
31673
      }
31674
 
31675
      /**
31676
       * Find the _Fields constant that matches name, or null if its not found.
31677
       */
31678
      public static _Fields findByName(String name) {
31679
        return byName.get(name);
31680
      }
31681
 
31682
      private final short _thriftId;
31683
      private final String _fieldName;
31684
 
31685
      _Fields(short thriftId, String fieldName) {
31686
        _thriftId = thriftId;
31687
        _fieldName = fieldName;
31688
      }
31689
 
31690
      public short getThriftFieldId() {
31691
        return _thriftId;
31692
      }
31693
 
31694
      public String getFieldName() {
31695
        return _fieldName;
31696
      }
31697
    }
31698
 
31699
    // isset id assignments
31700
    private static final int __SUCCESS_ISSET_ID = 0;
31701
    private BitSet __isset_bit_vector = new BitSet(1);
31702
 
31703
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31704
    static {
31705
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31706
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
31710
    }
31711
 
31712
    public insertItemtoIgnoreInventoryUpdatelist_result() {
31713
    }
31714
 
31715
    public insertItemtoIgnoreInventoryUpdatelist_result(
31716
      boolean success)
31717
    {
31718
      this();
31719
      this.success = success;
31720
      setSuccessIsSet(true);
31721
    }
31722
 
31723
    /**
31724
     * Performs a deep copy on <i>other</i>.
31725
     */
31726
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
31727
      __isset_bit_vector.clear();
31728
      __isset_bit_vector.or(other.__isset_bit_vector);
31729
      this.success = other.success;
31730
    }
31731
 
31732
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
31733
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
31734
    }
31735
 
31736
    @Override
31737
    public void clear() {
31738
      setSuccessIsSet(false);
31739
      this.success = false;
31740
    }
31741
 
31742
    public boolean isSuccess() {
31743
      return this.success;
31744
    }
31745
 
31746
    public void setSuccess(boolean success) {
31747
      this.success = success;
31748
      setSuccessIsSet(true);
31749
    }
31750
 
31751
    public void unsetSuccess() {
31752
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31753
    }
31754
 
31755
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31756
    public boolean isSetSuccess() {
31757
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31758
    }
31759
 
31760
    public void setSuccessIsSet(boolean value) {
31761
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31762
    }
31763
 
31764
    public void setFieldValue(_Fields field, Object value) {
31765
      switch (field) {
31766
      case SUCCESS:
31767
        if (value == null) {
31768
          unsetSuccess();
31769
        } else {
31770
          setSuccess((Boolean)value);
31771
        }
31772
        break;
31773
 
31774
      }
31775
    }
31776
 
31777
    public Object getFieldValue(_Fields field) {
31778
      switch (field) {
31779
      case SUCCESS:
31780
        return Boolean.valueOf(isSuccess());
31781
 
31782
      }
31783
      throw new IllegalStateException();
31784
    }
31785
 
31786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31787
    public boolean isSet(_Fields field) {
31788
      if (field == null) {
31789
        throw new IllegalArgumentException();
31790
      }
31791
 
31792
      switch (field) {
31793
      case SUCCESS:
31794
        return isSetSuccess();
31795
      }
31796
      throw new IllegalStateException();
31797
    }
31798
 
31799
    @Override
31800
    public boolean equals(Object that) {
31801
      if (that == null)
31802
        return false;
31803
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
31804
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
31805
      return false;
31806
    }
31807
 
31808
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
31809
      if (that == null)
31810
        return false;
31811
 
31812
      boolean this_present_success = true;
31813
      boolean that_present_success = true;
31814
      if (this_present_success || that_present_success) {
31815
        if (!(this_present_success && that_present_success))
31816
          return false;
31817
        if (this.success != that.success)
31818
          return false;
31819
      }
31820
 
31821
      return true;
31822
    }
31823
 
31824
    @Override
31825
    public int hashCode() {
31826
      return 0;
31827
    }
31828
 
31829
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
31830
      if (!getClass().equals(other.getClass())) {
31831
        return getClass().getName().compareTo(other.getClass().getName());
31832
      }
31833
 
31834
      int lastComparison = 0;
31835
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
31836
 
31837
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31838
      if (lastComparison != 0) {
31839
        return lastComparison;
31840
      }
31841
      if (isSetSuccess()) {
31842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31843
        if (lastComparison != 0) {
31844
          return lastComparison;
31845
        }
31846
      }
31847
      return 0;
31848
    }
31849
 
31850
    public _Fields fieldForId(int fieldId) {
31851
      return _Fields.findByThriftId(fieldId);
31852
    }
31853
 
31854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31855
      org.apache.thrift.protocol.TField field;
31856
      iprot.readStructBegin();
31857
      while (true)
31858
      {
31859
        field = iprot.readFieldBegin();
31860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31861
          break;
31862
        }
31863
        switch (field.id) {
31864
          case 0: // SUCCESS
31865
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31866
              this.success = iprot.readBool();
31867
              setSuccessIsSet(true);
31868
            } else { 
31869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31870
            }
31871
            break;
31872
          default:
31873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31874
        }
31875
        iprot.readFieldEnd();
31876
      }
31877
      iprot.readStructEnd();
31878
      validate();
31879
    }
31880
 
31881
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31882
      oprot.writeStructBegin(STRUCT_DESC);
31883
 
31884
      if (this.isSetSuccess()) {
31885
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31886
        oprot.writeBool(this.success);
31887
        oprot.writeFieldEnd();
31888
      }
31889
      oprot.writeFieldStop();
31890
      oprot.writeStructEnd();
31891
    }
31892
 
31893
    @Override
31894
    public String toString() {
31895
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
31896
      boolean first = true;
31897
 
31898
      sb.append("success:");
31899
      sb.append(this.success);
31900
      first = false;
31901
      sb.append(")");
31902
      return sb.toString();
31903
    }
31904
 
31905
    public void validate() throws org.apache.thrift.TException {
31906
      // check for required fields
31907
    }
31908
 
31909
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31910
      try {
31911
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31912
      } catch (org.apache.thrift.TException te) {
31913
        throw new java.io.IOException(te);
31914
      }
31915
    }
31916
 
31917
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31918
      try {
31919
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31920
      } catch (org.apache.thrift.TException te) {
31921
        throw new java.io.IOException(te);
31922
      }
31923
    }
31924
 
31925
  }
31926
 
31927
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
31928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
31929
 
31930
    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);
31931
    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);
31932
 
31933
    private long item_id; // required
31934
    private long warehouse_id; // required
31935
 
31936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31938
      ITEM_ID((short)1, "item_id"),
31939
      WAREHOUSE_ID((short)2, "warehouse_id");
31940
 
31941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31942
 
31943
      static {
31944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31945
          byName.put(field.getFieldName(), field);
31946
        }
31947
      }
31948
 
31949
      /**
31950
       * Find the _Fields constant that matches fieldId, or null if its not found.
31951
       */
31952
      public static _Fields findByThriftId(int fieldId) {
31953
        switch(fieldId) {
31954
          case 1: // ITEM_ID
31955
            return ITEM_ID;
31956
          case 2: // WAREHOUSE_ID
31957
            return WAREHOUSE_ID;
31958
          default:
31959
            return null;
31960
        }
31961
      }
31962
 
31963
      /**
31964
       * Find the _Fields constant that matches fieldId, throwing an exception
31965
       * if it is not found.
31966
       */
31967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31968
        _Fields fields = findByThriftId(fieldId);
31969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31970
        return fields;
31971
      }
31972
 
31973
      /**
31974
       * Find the _Fields constant that matches name, or null if its not found.
31975
       */
31976
      public static _Fields findByName(String name) {
31977
        return byName.get(name);
31978
      }
31979
 
31980
      private final short _thriftId;
31981
      private final String _fieldName;
31982
 
31983
      _Fields(short thriftId, String fieldName) {
31984
        _thriftId = thriftId;
31985
        _fieldName = fieldName;
31986
      }
31987
 
31988
      public short getThriftFieldId() {
31989
        return _thriftId;
31990
      }
31991
 
31992
      public String getFieldName() {
31993
        return _fieldName;
31994
      }
31995
    }
31996
 
31997
    // isset id assignments
31998
    private static final int __ITEM_ID_ISSET_ID = 0;
31999
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
32000
    private BitSet __isset_bit_vector = new BitSet(2);
32001
 
32002
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32003
    static {
32004
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32005
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32007
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32008
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
32011
    }
32012
 
32013
    public deleteItemFromIgnoredInventoryUpdateList_args() {
32014
    }
32015
 
32016
    public deleteItemFromIgnoredInventoryUpdateList_args(
32017
      long item_id,
32018
      long warehouse_id)
32019
    {
32020
      this();
32021
      this.item_id = item_id;
32022
      setItem_idIsSet(true);
32023
      this.warehouse_id = warehouse_id;
32024
      setWarehouse_idIsSet(true);
32025
    }
32026
 
32027
    /**
32028
     * Performs a deep copy on <i>other</i>.
32029
     */
32030
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
32031
      __isset_bit_vector.clear();
32032
      __isset_bit_vector.or(other.__isset_bit_vector);
32033
      this.item_id = other.item_id;
32034
      this.warehouse_id = other.warehouse_id;
32035
    }
32036
 
32037
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
32038
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
32039
    }
32040
 
32041
    @Override
32042
    public void clear() {
32043
      setItem_idIsSet(false);
32044
      this.item_id = 0;
32045
      setWarehouse_idIsSet(false);
32046
      this.warehouse_id = 0;
32047
    }
32048
 
32049
    public long getItem_id() {
32050
      return this.item_id;
32051
    }
32052
 
32053
    public void setItem_id(long item_id) {
32054
      this.item_id = item_id;
32055
      setItem_idIsSet(true);
32056
    }
32057
 
32058
    public void unsetItem_id() {
32059
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32060
    }
32061
 
32062
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32063
    public boolean isSetItem_id() {
32064
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32065
    }
32066
 
32067
    public void setItem_idIsSet(boolean value) {
32068
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32069
    }
32070
 
32071
    public long getWarehouse_id() {
32072
      return this.warehouse_id;
32073
    }
32074
 
32075
    public void setWarehouse_id(long warehouse_id) {
32076
      this.warehouse_id = warehouse_id;
32077
      setWarehouse_idIsSet(true);
32078
    }
32079
 
32080
    public void unsetWarehouse_id() {
32081
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
32082
    }
32083
 
32084
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
32085
    public boolean isSetWarehouse_id() {
32086
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
32087
    }
32088
 
32089
    public void setWarehouse_idIsSet(boolean value) {
32090
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
32091
    }
32092
 
32093
    public void setFieldValue(_Fields field, Object value) {
32094
      switch (field) {
32095
      case ITEM_ID:
32096
        if (value == null) {
32097
          unsetItem_id();
32098
        } else {
32099
          setItem_id((Long)value);
32100
        }
32101
        break;
32102
 
32103
      case WAREHOUSE_ID:
32104
        if (value == null) {
32105
          unsetWarehouse_id();
32106
        } else {
32107
          setWarehouse_id((Long)value);
32108
        }
32109
        break;
32110
 
32111
      }
32112
    }
32113
 
32114
    public Object getFieldValue(_Fields field) {
32115
      switch (field) {
32116
      case ITEM_ID:
32117
        return Long.valueOf(getItem_id());
32118
 
32119
      case WAREHOUSE_ID:
32120
        return Long.valueOf(getWarehouse_id());
32121
 
32122
      }
32123
      throw new IllegalStateException();
32124
    }
32125
 
32126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32127
    public boolean isSet(_Fields field) {
32128
      if (field == null) {
32129
        throw new IllegalArgumentException();
32130
      }
32131
 
32132
      switch (field) {
32133
      case ITEM_ID:
32134
        return isSetItem_id();
32135
      case WAREHOUSE_ID:
32136
        return isSetWarehouse_id();
32137
      }
32138
      throw new IllegalStateException();
32139
    }
32140
 
32141
    @Override
32142
    public boolean equals(Object that) {
32143
      if (that == null)
32144
        return false;
32145
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
32146
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
32147
      return false;
32148
    }
32149
 
32150
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
32151
      if (that == null)
32152
        return false;
32153
 
32154
      boolean this_present_item_id = true;
32155
      boolean that_present_item_id = true;
32156
      if (this_present_item_id || that_present_item_id) {
32157
        if (!(this_present_item_id && that_present_item_id))
32158
          return false;
32159
        if (this.item_id != that.item_id)
32160
          return false;
32161
      }
32162
 
32163
      boolean this_present_warehouse_id = true;
32164
      boolean that_present_warehouse_id = true;
32165
      if (this_present_warehouse_id || that_present_warehouse_id) {
32166
        if (!(this_present_warehouse_id && that_present_warehouse_id))
32167
          return false;
32168
        if (this.warehouse_id != that.warehouse_id)
32169
          return false;
32170
      }
32171
 
32172
      return true;
32173
    }
32174
 
32175
    @Override
32176
    public int hashCode() {
32177
      return 0;
32178
    }
32179
 
32180
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
32181
      if (!getClass().equals(other.getClass())) {
32182
        return getClass().getName().compareTo(other.getClass().getName());
32183
      }
32184
 
32185
      int lastComparison = 0;
32186
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
32187
 
32188
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32189
      if (lastComparison != 0) {
32190
        return lastComparison;
32191
      }
32192
      if (isSetItem_id()) {
32193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32194
        if (lastComparison != 0) {
32195
          return lastComparison;
32196
        }
32197
      }
32198
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
32199
      if (lastComparison != 0) {
32200
        return lastComparison;
32201
      }
32202
      if (isSetWarehouse_id()) {
32203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
32204
        if (lastComparison != 0) {
32205
          return lastComparison;
32206
        }
32207
      }
32208
      return 0;
32209
    }
32210
 
32211
    public _Fields fieldForId(int fieldId) {
32212
      return _Fields.findByThriftId(fieldId);
32213
    }
32214
 
32215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32216
      org.apache.thrift.protocol.TField field;
32217
      iprot.readStructBegin();
32218
      while (true)
32219
      {
32220
        field = iprot.readFieldBegin();
32221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32222
          break;
32223
        }
32224
        switch (field.id) {
32225
          case 1: // ITEM_ID
32226
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32227
              this.item_id = iprot.readI64();
32228
              setItem_idIsSet(true);
32229
            } else { 
32230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32231
            }
32232
            break;
32233
          case 2: // WAREHOUSE_ID
32234
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32235
              this.warehouse_id = iprot.readI64();
32236
              setWarehouse_idIsSet(true);
32237
            } else { 
32238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32239
            }
32240
            break;
32241
          default:
32242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32243
        }
32244
        iprot.readFieldEnd();
32245
      }
32246
      iprot.readStructEnd();
32247
      validate();
32248
    }
32249
 
32250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32251
      validate();
32252
 
32253
      oprot.writeStructBegin(STRUCT_DESC);
32254
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32255
      oprot.writeI64(this.item_id);
32256
      oprot.writeFieldEnd();
32257
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32258
      oprot.writeI64(this.warehouse_id);
32259
      oprot.writeFieldEnd();
32260
      oprot.writeFieldStop();
32261
      oprot.writeStructEnd();
32262
    }
32263
 
32264
    @Override
32265
    public String toString() {
32266
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
32267
      boolean first = true;
32268
 
32269
      sb.append("item_id:");
32270
      sb.append(this.item_id);
32271
      first = false;
32272
      if (!first) sb.append(", ");
32273
      sb.append("warehouse_id:");
32274
      sb.append(this.warehouse_id);
32275
      first = false;
32276
      sb.append(")");
32277
      return sb.toString();
32278
    }
32279
 
32280
    public void validate() throws org.apache.thrift.TException {
32281
      // check for required fields
32282
    }
32283
 
32284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32285
      try {
32286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32287
      } catch (org.apache.thrift.TException te) {
32288
        throw new java.io.IOException(te);
32289
      }
32290
    }
32291
 
32292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32293
      try {
32294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32295
        __isset_bit_vector = new BitSet(1);
32296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32297
      } catch (org.apache.thrift.TException te) {
32298
        throw new java.io.IOException(te);
32299
      }
32300
    }
32301
 
32302
  }
32303
 
32304
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
32305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
32306
 
32307
    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);
32308
 
32309
    private boolean success; // required
32310
 
32311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32312
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32313
      SUCCESS((short)0, "success");
32314
 
32315
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32316
 
32317
      static {
32318
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32319
          byName.put(field.getFieldName(), field);
32320
        }
32321
      }
32322
 
32323
      /**
32324
       * Find the _Fields constant that matches fieldId, or null if its not found.
32325
       */
32326
      public static _Fields findByThriftId(int fieldId) {
32327
        switch(fieldId) {
32328
          case 0: // SUCCESS
32329
            return SUCCESS;
32330
          default:
32331
            return null;
32332
        }
32333
      }
32334
 
32335
      /**
32336
       * Find the _Fields constant that matches fieldId, throwing an exception
32337
       * if it is not found.
32338
       */
32339
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32340
        _Fields fields = findByThriftId(fieldId);
32341
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32342
        return fields;
32343
      }
32344
 
32345
      /**
32346
       * Find the _Fields constant that matches name, or null if its not found.
32347
       */
32348
      public static _Fields findByName(String name) {
32349
        return byName.get(name);
32350
      }
32351
 
32352
      private final short _thriftId;
32353
      private final String _fieldName;
32354
 
32355
      _Fields(short thriftId, String fieldName) {
32356
        _thriftId = thriftId;
32357
        _fieldName = fieldName;
32358
      }
32359
 
32360
      public short getThriftFieldId() {
32361
        return _thriftId;
32362
      }
32363
 
32364
      public String getFieldName() {
32365
        return _fieldName;
32366
      }
32367
    }
32368
 
32369
    // isset id assignments
32370
    private static final int __SUCCESS_ISSET_ID = 0;
32371
    private BitSet __isset_bit_vector = new BitSet(1);
32372
 
32373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32374
    static {
32375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32376
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32378
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32379
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
32380
    }
32381
 
32382
    public deleteItemFromIgnoredInventoryUpdateList_result() {
32383
    }
32384
 
32385
    public deleteItemFromIgnoredInventoryUpdateList_result(
32386
      boolean success)
32387
    {
32388
      this();
32389
      this.success = success;
32390
      setSuccessIsSet(true);
32391
    }
32392
 
32393
    /**
32394
     * Performs a deep copy on <i>other</i>.
32395
     */
32396
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
32397
      __isset_bit_vector.clear();
32398
      __isset_bit_vector.or(other.__isset_bit_vector);
32399
      this.success = other.success;
32400
    }
32401
 
32402
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
32403
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
32404
    }
32405
 
32406
    @Override
32407
    public void clear() {
32408
      setSuccessIsSet(false);
32409
      this.success = false;
32410
    }
32411
 
32412
    public boolean isSuccess() {
32413
      return this.success;
32414
    }
32415
 
32416
    public void setSuccess(boolean success) {
32417
      this.success = success;
32418
      setSuccessIsSet(true);
32419
    }
32420
 
32421
    public void unsetSuccess() {
32422
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32423
    }
32424
 
32425
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32426
    public boolean isSetSuccess() {
32427
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32428
    }
32429
 
32430
    public void setSuccessIsSet(boolean value) {
32431
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32432
    }
32433
 
32434
    public void setFieldValue(_Fields field, Object value) {
32435
      switch (field) {
32436
      case SUCCESS:
32437
        if (value == null) {
32438
          unsetSuccess();
32439
        } else {
32440
          setSuccess((Boolean)value);
32441
        }
32442
        break;
32443
 
32444
      }
32445
    }
32446
 
32447
    public Object getFieldValue(_Fields field) {
32448
      switch (field) {
32449
      case SUCCESS:
32450
        return Boolean.valueOf(isSuccess());
32451
 
32452
      }
32453
      throw new IllegalStateException();
32454
    }
32455
 
32456
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32457
    public boolean isSet(_Fields field) {
32458
      if (field == null) {
32459
        throw new IllegalArgumentException();
32460
      }
32461
 
32462
      switch (field) {
32463
      case SUCCESS:
32464
        return isSetSuccess();
32465
      }
32466
      throw new IllegalStateException();
32467
    }
32468
 
32469
    @Override
32470
    public boolean equals(Object that) {
32471
      if (that == null)
32472
        return false;
32473
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
32474
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
32475
      return false;
32476
    }
32477
 
32478
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
32479
      if (that == null)
32480
        return false;
32481
 
32482
      boolean this_present_success = true;
32483
      boolean that_present_success = true;
32484
      if (this_present_success || that_present_success) {
32485
        if (!(this_present_success && that_present_success))
32486
          return false;
32487
        if (this.success != that.success)
32488
          return false;
32489
      }
32490
 
32491
      return true;
32492
    }
32493
 
32494
    @Override
32495
    public int hashCode() {
32496
      return 0;
32497
    }
32498
 
32499
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
32500
      if (!getClass().equals(other.getClass())) {
32501
        return getClass().getName().compareTo(other.getClass().getName());
32502
      }
32503
 
32504
      int lastComparison = 0;
32505
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
32506
 
32507
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32508
      if (lastComparison != 0) {
32509
        return lastComparison;
32510
      }
32511
      if (isSetSuccess()) {
32512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32513
        if (lastComparison != 0) {
32514
          return lastComparison;
32515
        }
32516
      }
32517
      return 0;
32518
    }
32519
 
32520
    public _Fields fieldForId(int fieldId) {
32521
      return _Fields.findByThriftId(fieldId);
32522
    }
32523
 
32524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32525
      org.apache.thrift.protocol.TField field;
32526
      iprot.readStructBegin();
32527
      while (true)
32528
      {
32529
        field = iprot.readFieldBegin();
32530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32531
          break;
32532
        }
32533
        switch (field.id) {
32534
          case 0: // SUCCESS
32535
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32536
              this.success = iprot.readBool();
32537
              setSuccessIsSet(true);
32538
            } else { 
32539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32540
            }
32541
            break;
32542
          default:
32543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32544
        }
32545
        iprot.readFieldEnd();
32546
      }
32547
      iprot.readStructEnd();
32548
      validate();
32549
    }
32550
 
32551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32552
      oprot.writeStructBegin(STRUCT_DESC);
32553
 
32554
      if (this.isSetSuccess()) {
32555
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32556
        oprot.writeBool(this.success);
32557
        oprot.writeFieldEnd();
32558
      }
32559
      oprot.writeFieldStop();
32560
      oprot.writeStructEnd();
32561
    }
32562
 
32563
    @Override
32564
    public String toString() {
32565
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
32566
      boolean first = true;
32567
 
32568
      sb.append("success:");
32569
      sb.append(this.success);
32570
      first = false;
32571
      sb.append(")");
32572
      return sb.toString();
32573
    }
32574
 
32575
    public void validate() throws org.apache.thrift.TException {
32576
      // check for required fields
32577
    }
32578
 
32579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32580
      try {
32581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32582
      } catch (org.apache.thrift.TException te) {
32583
        throw new java.io.IOException(te);
32584
      }
32585
    }
32586
 
32587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32588
      try {
32589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32590
      } catch (org.apache.thrift.TException te) {
32591
        throw new java.io.IOException(te);
32592
      }
32593
    }
32594
 
32595
  }
32596
 
32597
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
32598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
32599
 
32600
 
32601
 
32602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32604
;
32605
 
32606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32607
 
32608
      static {
32609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32610
          byName.put(field.getFieldName(), field);
32611
        }
32612
      }
32613
 
32614
      /**
32615
       * Find the _Fields constant that matches fieldId, or null if its not found.
32616
       */
32617
      public static _Fields findByThriftId(int fieldId) {
32618
        switch(fieldId) {
32619
          default:
32620
            return null;
32621
        }
32622
      }
32623
 
32624
      /**
32625
       * Find the _Fields constant that matches fieldId, throwing an exception
32626
       * if it is not found.
32627
       */
32628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32629
        _Fields fields = findByThriftId(fieldId);
32630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32631
        return fields;
32632
      }
32633
 
32634
      /**
32635
       * Find the _Fields constant that matches name, or null if its not found.
32636
       */
32637
      public static _Fields findByName(String name) {
32638
        return byName.get(name);
32639
      }
32640
 
32641
      private final short _thriftId;
32642
      private final String _fieldName;
32643
 
32644
      _Fields(short thriftId, String fieldName) {
32645
        _thriftId = thriftId;
32646
        _fieldName = fieldName;
32647
      }
32648
 
32649
      public short getThriftFieldId() {
32650
        return _thriftId;
32651
      }
32652
 
32653
      public String getFieldName() {
32654
        return _fieldName;
32655
      }
32656
    }
32657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32658
    static {
32659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
32662
    }
32663
 
32664
    public getAllIgnoredInventoryupdateItemsCount_args() {
32665
    }
32666
 
32667
    /**
32668
     * Performs a deep copy on <i>other</i>.
32669
     */
32670
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
32671
    }
32672
 
32673
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
32674
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
32675
    }
32676
 
32677
    @Override
32678
    public void clear() {
32679
    }
32680
 
32681
    public void setFieldValue(_Fields field, Object value) {
32682
      switch (field) {
32683
      }
32684
    }
32685
 
32686
    public Object getFieldValue(_Fields field) {
32687
      switch (field) {
32688
      }
32689
      throw new IllegalStateException();
32690
    }
32691
 
32692
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32693
    public boolean isSet(_Fields field) {
32694
      if (field == null) {
32695
        throw new IllegalArgumentException();
32696
      }
32697
 
32698
      switch (field) {
32699
      }
32700
      throw new IllegalStateException();
32701
    }
32702
 
32703
    @Override
32704
    public boolean equals(Object that) {
32705
      if (that == null)
32706
        return false;
32707
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
32708
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
32709
      return false;
32710
    }
32711
 
32712
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
32713
      if (that == null)
32714
        return false;
32715
 
32716
      return true;
32717
    }
32718
 
32719
    @Override
32720
    public int hashCode() {
32721
      return 0;
32722
    }
32723
 
32724
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
32725
      if (!getClass().equals(other.getClass())) {
32726
        return getClass().getName().compareTo(other.getClass().getName());
32727
      }
32728
 
32729
      int lastComparison = 0;
32730
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
32731
 
32732
      return 0;
32733
    }
32734
 
32735
    public _Fields fieldForId(int fieldId) {
32736
      return _Fields.findByThriftId(fieldId);
32737
    }
32738
 
32739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32740
      org.apache.thrift.protocol.TField field;
32741
      iprot.readStructBegin();
32742
      while (true)
32743
      {
32744
        field = iprot.readFieldBegin();
32745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32746
          break;
32747
        }
32748
        switch (field.id) {
32749
          default:
32750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32751
        }
32752
        iprot.readFieldEnd();
32753
      }
32754
      iprot.readStructEnd();
32755
      validate();
32756
    }
32757
 
32758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32759
      validate();
32760
 
32761
      oprot.writeStructBegin(STRUCT_DESC);
32762
      oprot.writeFieldStop();
32763
      oprot.writeStructEnd();
32764
    }
32765
 
32766
    @Override
32767
    public String toString() {
32768
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
32769
      boolean first = true;
32770
 
32771
      sb.append(")");
32772
      return sb.toString();
32773
    }
32774
 
32775
    public void validate() throws org.apache.thrift.TException {
32776
      // check for required fields
32777
    }
32778
 
32779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32780
      try {
32781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32782
      } catch (org.apache.thrift.TException te) {
32783
        throw new java.io.IOException(te);
32784
      }
32785
    }
32786
 
32787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32788
      try {
32789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32790
      } catch (org.apache.thrift.TException te) {
32791
        throw new java.io.IOException(te);
32792
      }
32793
    }
32794
 
32795
  }
32796
 
32797
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
32798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
32799
 
32800
    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);
32801
 
32802
    private int success; // required
32803
 
32804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32805
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32806
      SUCCESS((short)0, "success");
32807
 
32808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32809
 
32810
      static {
32811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32812
          byName.put(field.getFieldName(), field);
32813
        }
32814
      }
32815
 
32816
      /**
32817
       * Find the _Fields constant that matches fieldId, or null if its not found.
32818
       */
32819
      public static _Fields findByThriftId(int fieldId) {
32820
        switch(fieldId) {
32821
          case 0: // SUCCESS
32822
            return SUCCESS;
32823
          default:
32824
            return null;
32825
        }
32826
      }
32827
 
32828
      /**
32829
       * Find the _Fields constant that matches fieldId, throwing an exception
32830
       * if it is not found.
32831
       */
32832
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32833
        _Fields fields = findByThriftId(fieldId);
32834
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32835
        return fields;
32836
      }
32837
 
32838
      /**
32839
       * Find the _Fields constant that matches name, or null if its not found.
32840
       */
32841
      public static _Fields findByName(String name) {
32842
        return byName.get(name);
32843
      }
32844
 
32845
      private final short _thriftId;
32846
      private final String _fieldName;
32847
 
32848
      _Fields(short thriftId, String fieldName) {
32849
        _thriftId = thriftId;
32850
        _fieldName = fieldName;
32851
      }
32852
 
32853
      public short getThriftFieldId() {
32854
        return _thriftId;
32855
      }
32856
 
32857
      public String getFieldName() {
32858
        return _fieldName;
32859
      }
32860
    }
32861
 
32862
    // isset id assignments
32863
    private static final int __SUCCESS_ISSET_ID = 0;
32864
    private BitSet __isset_bit_vector = new BitSet(1);
32865
 
32866
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32867
    static {
32868
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32869
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
32871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
32873
    }
32874
 
32875
    public getAllIgnoredInventoryupdateItemsCount_result() {
32876
    }
32877
 
32878
    public getAllIgnoredInventoryupdateItemsCount_result(
32879
      int success)
32880
    {
32881
      this();
32882
      this.success = success;
32883
      setSuccessIsSet(true);
32884
    }
32885
 
32886
    /**
32887
     * Performs a deep copy on <i>other</i>.
32888
     */
32889
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
32890
      __isset_bit_vector.clear();
32891
      __isset_bit_vector.or(other.__isset_bit_vector);
32892
      this.success = other.success;
32893
    }
32894
 
32895
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
32896
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
32897
    }
32898
 
32899
    @Override
32900
    public void clear() {
32901
      setSuccessIsSet(false);
32902
      this.success = 0;
32903
    }
32904
 
32905
    public int getSuccess() {
32906
      return this.success;
32907
    }
32908
 
32909
    public void setSuccess(int success) {
32910
      this.success = success;
32911
      setSuccessIsSet(true);
32912
    }
32913
 
32914
    public void unsetSuccess() {
32915
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32916
    }
32917
 
32918
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32919
    public boolean isSetSuccess() {
32920
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32921
    }
32922
 
32923
    public void setSuccessIsSet(boolean value) {
32924
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32925
    }
32926
 
32927
    public void setFieldValue(_Fields field, Object value) {
32928
      switch (field) {
32929
      case SUCCESS:
32930
        if (value == null) {
32931
          unsetSuccess();
32932
        } else {
32933
          setSuccess((Integer)value);
32934
        }
32935
        break;
32936
 
32937
      }
32938
    }
32939
 
32940
    public Object getFieldValue(_Fields field) {
32941
      switch (field) {
32942
      case SUCCESS:
32943
        return Integer.valueOf(getSuccess());
32944
 
32945
      }
32946
      throw new IllegalStateException();
32947
    }
32948
 
32949
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32950
    public boolean isSet(_Fields field) {
32951
      if (field == null) {
32952
        throw new IllegalArgumentException();
32953
      }
32954
 
32955
      switch (field) {
32956
      case SUCCESS:
32957
        return isSetSuccess();
32958
      }
32959
      throw new IllegalStateException();
32960
    }
32961
 
32962
    @Override
32963
    public boolean equals(Object that) {
32964
      if (that == null)
32965
        return false;
32966
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
32967
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
32968
      return false;
32969
    }
32970
 
32971
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
32972
      if (that == null)
32973
        return false;
32974
 
32975
      boolean this_present_success = true;
32976
      boolean that_present_success = true;
32977
      if (this_present_success || that_present_success) {
32978
        if (!(this_present_success && that_present_success))
32979
          return false;
32980
        if (this.success != that.success)
32981
          return false;
32982
      }
32983
 
32984
      return true;
32985
    }
32986
 
32987
    @Override
32988
    public int hashCode() {
32989
      return 0;
32990
    }
32991
 
32992
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
32993
      if (!getClass().equals(other.getClass())) {
32994
        return getClass().getName().compareTo(other.getClass().getName());
32995
      }
32996
 
32997
      int lastComparison = 0;
32998
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
32999
 
33000
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33001
      if (lastComparison != 0) {
33002
        return lastComparison;
33003
      }
33004
      if (isSetSuccess()) {
33005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33006
        if (lastComparison != 0) {
33007
          return lastComparison;
33008
        }
33009
      }
33010
      return 0;
33011
    }
33012
 
33013
    public _Fields fieldForId(int fieldId) {
33014
      return _Fields.findByThriftId(fieldId);
33015
    }
33016
 
33017
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33018
      org.apache.thrift.protocol.TField field;
33019
      iprot.readStructBegin();
33020
      while (true)
33021
      {
33022
        field = iprot.readFieldBegin();
33023
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33024
          break;
33025
        }
33026
        switch (field.id) {
33027
          case 0: // SUCCESS
33028
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33029
              this.success = iprot.readI32();
33030
              setSuccessIsSet(true);
33031
            } else { 
33032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33033
            }
33034
            break;
33035
          default:
33036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33037
        }
33038
        iprot.readFieldEnd();
33039
      }
33040
      iprot.readStructEnd();
33041
      validate();
33042
    }
33043
 
33044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33045
      oprot.writeStructBegin(STRUCT_DESC);
33046
 
33047
      if (this.isSetSuccess()) {
33048
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33049
        oprot.writeI32(this.success);
33050
        oprot.writeFieldEnd();
33051
      }
33052
      oprot.writeFieldStop();
33053
      oprot.writeStructEnd();
33054
    }
33055
 
33056
    @Override
33057
    public String toString() {
33058
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
33059
      boolean first = true;
33060
 
33061
      sb.append("success:");
33062
      sb.append(this.success);
33063
      first = false;
33064
      sb.append(")");
33065
      return sb.toString();
33066
    }
33067
 
33068
    public void validate() throws org.apache.thrift.TException {
33069
      // check for required fields
33070
    }
33071
 
33072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33073
      try {
33074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33075
      } catch (org.apache.thrift.TException te) {
33076
        throw new java.io.IOException(te);
33077
      }
33078
    }
33079
 
33080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33081
      try {
33082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33083
      } catch (org.apache.thrift.TException te) {
33084
        throw new java.io.IOException(te);
33085
      }
33086
    }
33087
 
33088
  }
33089
 
33090
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
33091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
33092
 
33093
    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);
33094
    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);
33095
 
33096
    private int offset; // required
33097
    private int limit; // required
33098
 
33099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33101
      OFFSET((short)1, "offset"),
33102
      LIMIT((short)2, "limit");
33103
 
33104
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33105
 
33106
      static {
33107
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33108
          byName.put(field.getFieldName(), field);
33109
        }
33110
      }
33111
 
33112
      /**
33113
       * Find the _Fields constant that matches fieldId, or null if its not found.
33114
       */
33115
      public static _Fields findByThriftId(int fieldId) {
33116
        switch(fieldId) {
33117
          case 1: // OFFSET
33118
            return OFFSET;
33119
          case 2: // LIMIT
33120
            return LIMIT;
33121
          default:
33122
            return null;
33123
        }
33124
      }
33125
 
33126
      /**
33127
       * Find the _Fields constant that matches fieldId, throwing an exception
33128
       * if it is not found.
33129
       */
33130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33131
        _Fields fields = findByThriftId(fieldId);
33132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33133
        return fields;
33134
      }
33135
 
33136
      /**
33137
       * Find the _Fields constant that matches name, or null if its not found.
33138
       */
33139
      public static _Fields findByName(String name) {
33140
        return byName.get(name);
33141
      }
33142
 
33143
      private final short _thriftId;
33144
      private final String _fieldName;
33145
 
33146
      _Fields(short thriftId, String fieldName) {
33147
        _thriftId = thriftId;
33148
        _fieldName = fieldName;
33149
      }
33150
 
33151
      public short getThriftFieldId() {
33152
        return _thriftId;
33153
      }
33154
 
33155
      public String getFieldName() {
33156
        return _fieldName;
33157
      }
33158
    }
33159
 
33160
    // isset id assignments
33161
    private static final int __OFFSET_ISSET_ID = 0;
33162
    private static final int __LIMIT_ISSET_ID = 1;
33163
    private BitSet __isset_bit_vector = new BitSet(2);
33164
 
33165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33166
    static {
33167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33168
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33170
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33172
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33173
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
33174
    }
33175
 
33176
    public getIgnoredInventoryUpdateItemids_args() {
33177
    }
33178
 
33179
    public getIgnoredInventoryUpdateItemids_args(
33180
      int offset,
33181
      int limit)
33182
    {
33183
      this();
33184
      this.offset = offset;
33185
      setOffsetIsSet(true);
33186
      this.limit = limit;
33187
      setLimitIsSet(true);
33188
    }
33189
 
33190
    /**
33191
     * Performs a deep copy on <i>other</i>.
33192
     */
33193
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
33194
      __isset_bit_vector.clear();
33195
      __isset_bit_vector.or(other.__isset_bit_vector);
33196
      this.offset = other.offset;
33197
      this.limit = other.limit;
33198
    }
33199
 
33200
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
33201
      return new getIgnoredInventoryUpdateItemids_args(this);
33202
    }
33203
 
33204
    @Override
33205
    public void clear() {
33206
      setOffsetIsSet(false);
33207
      this.offset = 0;
33208
      setLimitIsSet(false);
33209
      this.limit = 0;
33210
    }
33211
 
33212
    public int getOffset() {
33213
      return this.offset;
33214
    }
33215
 
33216
    public void setOffset(int offset) {
33217
      this.offset = offset;
33218
      setOffsetIsSet(true);
33219
    }
33220
 
33221
    public void unsetOffset() {
33222
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
33223
    }
33224
 
33225
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
33226
    public boolean isSetOffset() {
33227
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
33228
    }
33229
 
33230
    public void setOffsetIsSet(boolean value) {
33231
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
33232
    }
33233
 
33234
    public int getLimit() {
33235
      return this.limit;
33236
    }
33237
 
33238
    public void setLimit(int limit) {
33239
      this.limit = limit;
33240
      setLimitIsSet(true);
33241
    }
33242
 
33243
    public void unsetLimit() {
33244
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
33245
    }
33246
 
33247
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
33248
    public boolean isSetLimit() {
33249
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
33250
    }
33251
 
33252
    public void setLimitIsSet(boolean value) {
33253
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
33254
    }
33255
 
33256
    public void setFieldValue(_Fields field, Object value) {
33257
      switch (field) {
33258
      case OFFSET:
33259
        if (value == null) {
33260
          unsetOffset();
33261
        } else {
33262
          setOffset((Integer)value);
33263
        }
33264
        break;
33265
 
33266
      case LIMIT:
33267
        if (value == null) {
33268
          unsetLimit();
33269
        } else {
33270
          setLimit((Integer)value);
33271
        }
33272
        break;
33273
 
33274
      }
33275
    }
33276
 
33277
    public Object getFieldValue(_Fields field) {
33278
      switch (field) {
33279
      case OFFSET:
33280
        return Integer.valueOf(getOffset());
33281
 
33282
      case LIMIT:
33283
        return Integer.valueOf(getLimit());
33284
 
33285
      }
33286
      throw new IllegalStateException();
33287
    }
33288
 
33289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33290
    public boolean isSet(_Fields field) {
33291
      if (field == null) {
33292
        throw new IllegalArgumentException();
33293
      }
33294
 
33295
      switch (field) {
33296
      case OFFSET:
33297
        return isSetOffset();
33298
      case LIMIT:
33299
        return isSetLimit();
33300
      }
33301
      throw new IllegalStateException();
33302
    }
33303
 
33304
    @Override
33305
    public boolean equals(Object that) {
33306
      if (that == null)
33307
        return false;
33308
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
33309
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
33310
      return false;
33311
    }
33312
 
33313
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
33314
      if (that == null)
33315
        return false;
33316
 
33317
      boolean this_present_offset = true;
33318
      boolean that_present_offset = true;
33319
      if (this_present_offset || that_present_offset) {
33320
        if (!(this_present_offset && that_present_offset))
33321
          return false;
33322
        if (this.offset != that.offset)
33323
          return false;
33324
      }
33325
 
33326
      boolean this_present_limit = true;
33327
      boolean that_present_limit = true;
33328
      if (this_present_limit || that_present_limit) {
33329
        if (!(this_present_limit && that_present_limit))
33330
          return false;
33331
        if (this.limit != that.limit)
33332
          return false;
33333
      }
33334
 
33335
      return true;
33336
    }
33337
 
33338
    @Override
33339
    public int hashCode() {
33340
      return 0;
33341
    }
33342
 
33343
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
33344
      if (!getClass().equals(other.getClass())) {
33345
        return getClass().getName().compareTo(other.getClass().getName());
33346
      }
33347
 
33348
      int lastComparison = 0;
33349
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
33350
 
33351
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
33352
      if (lastComparison != 0) {
33353
        return lastComparison;
33354
      }
33355
      if (isSetOffset()) {
33356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
33357
        if (lastComparison != 0) {
33358
          return lastComparison;
33359
        }
33360
      }
33361
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
33362
      if (lastComparison != 0) {
33363
        return lastComparison;
33364
      }
33365
      if (isSetLimit()) {
33366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
33367
        if (lastComparison != 0) {
33368
          return lastComparison;
33369
        }
33370
      }
33371
      return 0;
33372
    }
33373
 
33374
    public _Fields fieldForId(int fieldId) {
33375
      return _Fields.findByThriftId(fieldId);
33376
    }
33377
 
33378
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33379
      org.apache.thrift.protocol.TField field;
33380
      iprot.readStructBegin();
33381
      while (true)
33382
      {
33383
        field = iprot.readFieldBegin();
33384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33385
          break;
33386
        }
33387
        switch (field.id) {
33388
          case 1: // OFFSET
33389
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33390
              this.offset = iprot.readI32();
33391
              setOffsetIsSet(true);
33392
            } else { 
33393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33394
            }
33395
            break;
33396
          case 2: // LIMIT
33397
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33398
              this.limit = iprot.readI32();
33399
              setLimitIsSet(true);
33400
            } else { 
33401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33402
            }
33403
            break;
33404
          default:
33405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33406
        }
33407
        iprot.readFieldEnd();
33408
      }
33409
      iprot.readStructEnd();
33410
      validate();
33411
    }
33412
 
33413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33414
      validate();
33415
 
33416
      oprot.writeStructBegin(STRUCT_DESC);
33417
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
33418
      oprot.writeI32(this.offset);
33419
      oprot.writeFieldEnd();
33420
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
33421
      oprot.writeI32(this.limit);
33422
      oprot.writeFieldEnd();
33423
      oprot.writeFieldStop();
33424
      oprot.writeStructEnd();
33425
    }
33426
 
33427
    @Override
33428
    public String toString() {
33429
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
33430
      boolean first = true;
33431
 
33432
      sb.append("offset:");
33433
      sb.append(this.offset);
33434
      first = false;
33435
      if (!first) sb.append(", ");
33436
      sb.append("limit:");
33437
      sb.append(this.limit);
33438
      first = false;
33439
      sb.append(")");
33440
      return sb.toString();
33441
    }
33442
 
33443
    public void validate() throws org.apache.thrift.TException {
33444
      // check for required fields
33445
    }
33446
 
33447
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33448
      try {
33449
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33450
      } catch (org.apache.thrift.TException te) {
33451
        throw new java.io.IOException(te);
33452
      }
33453
    }
33454
 
33455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33456
      try {
33457
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33458
        __isset_bit_vector = new BitSet(1);
33459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33460
      } catch (org.apache.thrift.TException te) {
33461
        throw new java.io.IOException(te);
33462
      }
33463
    }
33464
 
33465
  }
33466
 
33467
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
33468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
33469
 
33470
    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);
33471
 
33472
    private List<Long> success; // required
33473
 
33474
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33475
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33476
      SUCCESS((short)0, "success");
33477
 
33478
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33479
 
33480
      static {
33481
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33482
          byName.put(field.getFieldName(), field);
33483
        }
33484
      }
33485
 
33486
      /**
33487
       * Find the _Fields constant that matches fieldId, or null if its not found.
33488
       */
33489
      public static _Fields findByThriftId(int fieldId) {
33490
        switch(fieldId) {
33491
          case 0: // SUCCESS
33492
            return SUCCESS;
33493
          default:
33494
            return null;
33495
        }
33496
      }
33497
 
33498
      /**
33499
       * Find the _Fields constant that matches fieldId, throwing an exception
33500
       * if it is not found.
33501
       */
33502
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33503
        _Fields fields = findByThriftId(fieldId);
33504
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33505
        return fields;
33506
      }
33507
 
33508
      /**
33509
       * Find the _Fields constant that matches name, or null if its not found.
33510
       */
33511
      public static _Fields findByName(String name) {
33512
        return byName.get(name);
33513
      }
33514
 
33515
      private final short _thriftId;
33516
      private final String _fieldName;
33517
 
33518
      _Fields(short thriftId, String fieldName) {
33519
        _thriftId = thriftId;
33520
        _fieldName = fieldName;
33521
      }
33522
 
33523
      public short getThriftFieldId() {
33524
        return _thriftId;
33525
      }
33526
 
33527
      public String getFieldName() {
33528
        return _fieldName;
33529
      }
33530
    }
33531
 
33532
    // isset id assignments
33533
 
33534
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33535
    static {
33536
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33537
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33538
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33539
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33540
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33541
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
33542
    }
33543
 
33544
    public getIgnoredInventoryUpdateItemids_result() {
33545
    }
33546
 
33547
    public getIgnoredInventoryUpdateItemids_result(
33548
      List<Long> success)
33549
    {
33550
      this();
33551
      this.success = success;
33552
    }
33553
 
33554
    /**
33555
     * Performs a deep copy on <i>other</i>.
33556
     */
33557
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
33558
      if (other.isSetSuccess()) {
33559
        List<Long> __this__success = new ArrayList<Long>();
33560
        for (Long other_element : other.success) {
33561
          __this__success.add(other_element);
33562
        }
33563
        this.success = __this__success;
33564
      }
33565
    }
33566
 
33567
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
33568
      return new getIgnoredInventoryUpdateItemids_result(this);
33569
    }
33570
 
33571
    @Override
33572
    public void clear() {
33573
      this.success = null;
33574
    }
33575
 
33576
    public int getSuccessSize() {
33577
      return (this.success == null) ? 0 : this.success.size();
33578
    }
33579
 
33580
    public java.util.Iterator<Long> getSuccessIterator() {
33581
      return (this.success == null) ? null : this.success.iterator();
33582
    }
33583
 
33584
    public void addToSuccess(long elem) {
33585
      if (this.success == null) {
33586
        this.success = new ArrayList<Long>();
33587
      }
33588
      this.success.add(elem);
33589
    }
33590
 
33591
    public List<Long> getSuccess() {
33592
      return this.success;
33593
    }
33594
 
33595
    public void setSuccess(List<Long> success) {
33596
      this.success = success;
33597
    }
33598
 
33599
    public void unsetSuccess() {
33600
      this.success = null;
33601
    }
33602
 
33603
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33604
    public boolean isSetSuccess() {
33605
      return this.success != null;
33606
    }
33607
 
33608
    public void setSuccessIsSet(boolean value) {
33609
      if (!value) {
33610
        this.success = null;
33611
      }
33612
    }
33613
 
33614
    public void setFieldValue(_Fields field, Object value) {
33615
      switch (field) {
33616
      case SUCCESS:
33617
        if (value == null) {
33618
          unsetSuccess();
33619
        } else {
33620
          setSuccess((List<Long>)value);
33621
        }
33622
        break;
33623
 
33624
      }
33625
    }
33626
 
33627
    public Object getFieldValue(_Fields field) {
33628
      switch (field) {
33629
      case SUCCESS:
33630
        return getSuccess();
33631
 
33632
      }
33633
      throw new IllegalStateException();
33634
    }
33635
 
33636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33637
    public boolean isSet(_Fields field) {
33638
      if (field == null) {
33639
        throw new IllegalArgumentException();
33640
      }
33641
 
33642
      switch (field) {
33643
      case SUCCESS:
33644
        return isSetSuccess();
33645
      }
33646
      throw new IllegalStateException();
33647
    }
33648
 
33649
    @Override
33650
    public boolean equals(Object that) {
33651
      if (that == null)
33652
        return false;
33653
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
33654
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
33655
      return false;
33656
    }
33657
 
33658
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
33659
      if (that == null)
33660
        return false;
33661
 
33662
      boolean this_present_success = true && this.isSetSuccess();
33663
      boolean that_present_success = true && that.isSetSuccess();
33664
      if (this_present_success || that_present_success) {
33665
        if (!(this_present_success && that_present_success))
33666
          return false;
33667
        if (!this.success.equals(that.success))
33668
          return false;
33669
      }
33670
 
33671
      return true;
33672
    }
33673
 
33674
    @Override
33675
    public int hashCode() {
33676
      return 0;
33677
    }
33678
 
33679
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
33680
      if (!getClass().equals(other.getClass())) {
33681
        return getClass().getName().compareTo(other.getClass().getName());
33682
      }
33683
 
33684
      int lastComparison = 0;
33685
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
33686
 
33687
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33688
      if (lastComparison != 0) {
33689
        return lastComparison;
33690
      }
33691
      if (isSetSuccess()) {
33692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33693
        if (lastComparison != 0) {
33694
          return lastComparison;
33695
        }
33696
      }
33697
      return 0;
33698
    }
33699
 
33700
    public _Fields fieldForId(int fieldId) {
33701
      return _Fields.findByThriftId(fieldId);
33702
    }
33703
 
33704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33705
      org.apache.thrift.protocol.TField field;
33706
      iprot.readStructBegin();
33707
      while (true)
33708
      {
33709
        field = iprot.readFieldBegin();
33710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33711
          break;
33712
        }
33713
        switch (field.id) {
33714
          case 0: // SUCCESS
33715
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33716
              {
33717
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
33718
                this.success = new ArrayList<Long>(_list100.size);
33719
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
33720
                {
33721
                  long _elem102; // required
33722
                  _elem102 = iprot.readI64();
33723
                  this.success.add(_elem102);
33724
                }
33725
                iprot.readListEnd();
33726
              }
33727
            } else { 
33728
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33729
            }
33730
            break;
33731
          default:
33732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33733
        }
33734
        iprot.readFieldEnd();
33735
      }
33736
      iprot.readStructEnd();
33737
      validate();
33738
    }
33739
 
33740
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33741
      oprot.writeStructBegin(STRUCT_DESC);
33742
 
33743
      if (this.isSetSuccess()) {
33744
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33745
        {
33746
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
33747
          for (long _iter103 : this.success)
33748
          {
33749
            oprot.writeI64(_iter103);
33750
          }
33751
          oprot.writeListEnd();
33752
        }
33753
        oprot.writeFieldEnd();
33754
      }
33755
      oprot.writeFieldStop();
33756
      oprot.writeStructEnd();
33757
    }
33758
 
33759
    @Override
33760
    public String toString() {
33761
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
33762
      boolean first = true;
33763
 
33764
      sb.append("success:");
33765
      if (this.success == null) {
33766
        sb.append("null");
33767
      } else {
33768
        sb.append(this.success);
33769
      }
33770
      first = false;
33771
      sb.append(")");
33772
      return sb.toString();
33773
    }
33774
 
33775
    public void validate() throws org.apache.thrift.TException {
33776
      // check for required fields
33777
    }
33778
 
33779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33780
      try {
33781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33782
      } catch (org.apache.thrift.TException te) {
33783
        throw new java.io.IOException(te);
33784
      }
33785
    }
33786
 
33787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33788
      try {
33789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33790
      } catch (org.apache.thrift.TException te) {
33791
        throw new java.io.IOException(te);
33792
      }
33793
    }
33794
 
33795
  }
33796
 
5945 mandeep.dh 33797
}