Subversion Repositories SmartDukaan

Rev

Rev 6467 | Rev 6531 | 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
 
5945 mandeep.dh 286
  }
287
 
288
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
289
 
290
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
291
 
292
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
293
 
294
    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;
295
 
296
    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;
297
 
298
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
299
 
300
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
301
 
302
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
303
 
304
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
305
 
5978 rajveer 306
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 307
 
308
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
309
 
310
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
311
 
312
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
313
 
5967 rajveer 314
    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 315
 
5967 rajveer 316
    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 317
 
5967 rajveer 318
    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;
319
 
5945 mandeep.dh 320
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
323
 
324
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
325
 
326
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
327
 
328
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
329
 
330
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
331
 
332
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    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;
337
 
338
    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;
339
 
340
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
347
 
348
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
349
 
350
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
351
 
352
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
355
 
356
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
357
 
358
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
359
 
6096 amit.gupta 360
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
361
 
6467 amar.kumar 362
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
363
 
6484 amar.kumar 364
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
365
 
5945 mandeep.dh 366
  }
367
 
368
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
369
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
370
      public Factory() {}
371
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
372
        return new Client(prot);
373
      }
374
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
375
        return new Client(iprot, oprot);
376
      }
377
    }
378
 
379
    public Client(org.apache.thrift.protocol.TProtocol prot)
380
    {
381
      super(prot, prot);
382
    }
383
 
384
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
385
      super(iprot, oprot);
386
    }
387
 
388
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
389
    {
390
      send_addWarehouse(warehouse);
391
      return recv_addWarehouse();
392
    }
393
 
394
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
395
    {
396
      addWarehouse_args args = new addWarehouse_args();
397
      args.setWarehouse(warehouse);
398
      sendBase("addWarehouse", args);
399
    }
400
 
401
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
402
    {
403
      addWarehouse_result result = new addWarehouse_result();
404
      receiveBase(result, "addWarehouse");
405
      if (result.isSetSuccess()) {
406
        return result.success;
407
      }
408
      if (result.cex != null) {
409
        throw result.cex;
410
      }
411
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
412
    }
413
 
414
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
415
    {
416
      send_addVendor(vendor);
417
      return recv_addVendor();
418
    }
419
 
420
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
421
    {
422
      addVendor_args args = new addVendor_args();
423
      args.setVendor(vendor);
424
      sendBase("addVendor", args);
425
    }
426
 
427
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
428
    {
429
      addVendor_result result = new addVendor_result();
430
      receiveBase(result, "addVendor");
431
      if (result.isSetSuccess()) {
432
        return result.success;
433
      }
434
      if (result.cex != null) {
435
        throw result.cex;
436
      }
437
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
438
    }
439
 
440
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
441
    {
442
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
443
      recv_updateInventoryHistory();
444
    }
445
 
446
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
447
    {
448
      updateInventoryHistory_args args = new updateInventoryHistory_args();
449
      args.setWarehouse_id(warehouse_id);
450
      args.setTimestamp(timestamp);
451
      args.setAvailability(availability);
452
      sendBase("updateInventoryHistory", args);
453
    }
454
 
455
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
456
    {
457
      updateInventoryHistory_result result = new updateInventoryHistory_result();
458
      receiveBase(result, "updateInventoryHistory");
459
      if (result.cex != null) {
460
        throw result.cex;
461
      }
462
      return;
463
    }
464
 
465
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
466
    {
467
      send_updateInventory(warehouse_id, timestamp, availability);
468
      recv_updateInventory();
469
    }
470
 
471
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
472
    {
473
      updateInventory_args args = new updateInventory_args();
474
      args.setWarehouse_id(warehouse_id);
475
      args.setTimestamp(timestamp);
476
      args.setAvailability(availability);
477
      sendBase("updateInventory", args);
478
    }
479
 
480
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
481
    {
482
      updateInventory_result result = new updateInventory_result();
483
      receiveBase(result, "updateInventory");
484
      if (result.cex != null) {
485
        throw result.cex;
486
      }
487
      return;
488
    }
489
 
490
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
491
    {
492
      send_addInventory(itemId, warehouseId, quantity);
493
      recv_addInventory();
494
    }
495
 
496
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
497
    {
498
      addInventory_args args = new addInventory_args();
499
      args.setItemId(itemId);
500
      args.setWarehouseId(warehouseId);
501
      args.setQuantity(quantity);
502
      sendBase("addInventory", args);
503
    }
504
 
505
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
506
    {
507
      addInventory_result result = new addInventory_result();
508
      receiveBase(result, "addInventory");
509
      if (result.cex != null) {
510
        throw result.cex;
511
      }
512
      return;
513
    }
514
 
515
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
516
    {
517
      send_retireWarehouse(warehouse_id);
518
      recv_retireWarehouse();
519
    }
520
 
521
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
522
    {
523
      retireWarehouse_args args = new retireWarehouse_args();
524
      args.setWarehouse_id(warehouse_id);
525
      sendBase("retireWarehouse", args);
526
    }
527
 
528
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
529
    {
530
      retireWarehouse_result result = new retireWarehouse_result();
531
      receiveBase(result, "retireWarehouse");
532
      if (result.cex != null) {
533
        throw result.cex;
534
      }
535
      return;
536
    }
537
 
538
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
539
    {
540
      send_getItemInventoryByItemId(item_id);
541
      return recv_getItemInventoryByItemId();
542
    }
543
 
544
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
545
    {
546
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
547
      args.setItem_id(item_id);
548
      sendBase("getItemInventoryByItemId", args);
549
    }
550
 
551
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
552
    {
553
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
554
      receiveBase(result, "getItemInventoryByItemId");
555
      if (result.isSetSuccess()) {
556
        return result.success;
557
      }
558
      if (result.cex != null) {
559
        throw result.cex;
560
      }
561
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
562
    }
563
 
564
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
565
    {
566
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
567
      return recv_getItemAvailibilityAtWarehouse();
568
    }
569
 
570
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
571
    {
572
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
573
      args.setWarehouse_id(warehouse_id);
574
      args.setItem_id(item_id);
575
      sendBase("getItemAvailibilityAtWarehouse", args);
576
    }
577
 
578
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
579
    {
580
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
581
      receiveBase(result, "getItemAvailibilityAtWarehouse");
582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      if (result.cex != null) {
586
        throw result.cex;
587
      }
588
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
589
    }
590
 
5978 rajveer 591
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 592
    {
5978 rajveer 593
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 594
      return recv_getItemAvailabilityAtLocation();
595
    }
596
 
5978 rajveer 597
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 598
    {
599
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
600
      args.setItemId(itemId);
5978 rajveer 601
      args.setSourceId(sourceId);
5945 mandeep.dh 602
      sendBase("getItemAvailabilityAtLocation", args);
603
    }
604
 
605
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
606
    {
607
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
608
      receiveBase(result, "getItemAvailabilityAtLocation");
609
      if (result.isSetSuccess()) {
610
        return result.success;
611
      }
612
      if (result.isex != null) {
613
        throw result.isex;
614
      }
615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
616
    }
617
 
618
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
619
    {
620
      send_getAllWarehouses(isActive);
621
      return recv_getAllWarehouses();
622
    }
623
 
624
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
625
    {
626
      getAllWarehouses_args args = new getAllWarehouses_args();
627
      args.setIsActive(isActive);
628
      sendBase("getAllWarehouses", args);
629
    }
630
 
631
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
632
    {
633
      getAllWarehouses_result result = new getAllWarehouses_result();
634
      receiveBase(result, "getAllWarehouses");
635
      if (result.isSetSuccess()) {
636
        return result.success;
637
      }
638
      if (result.cex != null) {
639
        throw result.cex;
640
      }
641
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
642
    }
643
 
644
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
645
    {
646
      send_getWarehouse(warehouse_id);
647
      return recv_getWarehouse();
648
    }
649
 
650
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
651
    {
652
      getWarehouse_args args = new getWarehouse_args();
653
      args.setWarehouse_id(warehouse_id);
654
      sendBase("getWarehouse", args);
655
    }
656
 
657
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
658
    {
659
      getWarehouse_result result = new getWarehouse_result();
660
      receiveBase(result, "getWarehouse");
661
      if (result.isSetSuccess()) {
662
        return result.success;
663
      }
664
      if (result.cex != null) {
665
        throw result.cex;
666
      }
667
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
668
    }
669
 
670
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
671
    {
672
      send_getAllItemsForWarehouse(warehouse_id);
673
      return recv_getAllItemsForWarehouse();
674
    }
675
 
676
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
677
    {
678
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
679
      args.setWarehouse_id(warehouse_id);
680
      sendBase("getAllItemsForWarehouse", args);
681
    }
682
 
683
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
684
    {
685
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
686
      receiveBase(result, "getAllItemsForWarehouse");
687
      if (result.isSetSuccess()) {
688
        return result.success;
689
      }
690
      if (result.cex != null) {
691
        throw result.cex;
692
      }
693
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
694
    }
695
 
5967 rajveer 696
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 697
    {
5967 rajveer 698
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
699
      return recv_isOrderBillable();
700
    }
701
 
702
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
703
    {
704
      isOrderBillable_args args = new isOrderBillable_args();
705
      args.setItemId(itemId);
706
      args.setWarehouseId(warehouseId);
707
      args.setSourceId(sourceId);
708
      args.setOrderId(orderId);
709
      sendBase("isOrderBillable", args);
710
    }
711
 
712
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
713
    {
714
      isOrderBillable_result result = new isOrderBillable_result();
715
      receiveBase(result, "isOrderBillable");
716
      if (result.isSetSuccess()) {
717
        return result.success;
718
      }
719
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
720
    }
721
 
722
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
723
    {
724
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 725
      return recv_reserveItemInWarehouse();
726
    }
727
 
5967 rajveer 728
    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 729
    {
730
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
731
      args.setItemId(itemId);
732
      args.setWarehouseId(warehouseId);
5967 rajveer 733
      args.setSourceId(sourceId);
734
      args.setOrderId(orderId);
735
      args.setCreatedTimestamp(createdTimestamp);
736
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 737
      args.setQuantity(quantity);
738
      sendBase("reserveItemInWarehouse", args);
739
    }
740
 
741
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
742
    {
743
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
744
      receiveBase(result, "reserveItemInWarehouse");
745
      if (result.isSetSuccess()) {
746
        return result.success;
747
      }
748
      if (result.cex != null) {
749
        throw result.cex;
750
      }
751
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
752
    }
753
 
5967 rajveer 754
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 755
    {
5967 rajveer 756
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 757
      return recv_reduceReservationCount();
758
    }
759
 
5967 rajveer 760
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 761
    {
762
      reduceReservationCount_args args = new reduceReservationCount_args();
763
      args.setItemId(itemId);
764
      args.setWarehouseId(warehouseId);
5967 rajveer 765
      args.setSourceId(sourceId);
766
      args.setOrderId(orderId);
5945 mandeep.dh 767
      args.setQuantity(quantity);
768
      sendBase("reduceReservationCount", args);
769
    }
770
 
771
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
772
    {
773
      reduceReservationCount_result result = new reduceReservationCount_result();
774
      receiveBase(result, "reduceReservationCount");
775
      if (result.isSetSuccess()) {
776
        return result.success;
777
      }
778
      if (result.cex != null) {
779
        throw result.cex;
780
      }
781
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
782
    }
783
 
784
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
785
    {
786
      send_getItemPricing(itemId, vendorId);
787
      return recv_getItemPricing();
788
    }
789
 
790
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
791
    {
792
      getItemPricing_args args = new getItemPricing_args();
793
      args.setItemId(itemId);
794
      args.setVendorId(vendorId);
795
      sendBase("getItemPricing", args);
796
    }
797
 
798
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
799
    {
800
      getItemPricing_result result = new getItemPricing_result();
801
      receiveBase(result, "getItemPricing");
802
      if (result.isSetSuccess()) {
803
        return result.success;
804
      }
805
      if (result.cex != null) {
806
        throw result.cex;
807
      }
808
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
809
    }
810
 
811
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
812
    {
813
      send_getAllItemPricing(itemId);
814
      return recv_getAllItemPricing();
815
    }
816
 
817
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
818
    {
819
      getAllItemPricing_args args = new getAllItemPricing_args();
820
      args.setItemId(itemId);
821
      sendBase("getAllItemPricing", args);
822
    }
823
 
824
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
825
    {
826
      getAllItemPricing_result result = new getAllItemPricing_result();
827
      receiveBase(result, "getAllItemPricing");
828
      if (result.isSetSuccess()) {
829
        return result.success;
830
      }
831
      if (result.cex != null) {
832
        throw result.cex;
833
      }
834
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
835
    }
836
 
837
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
838
    {
839
      send_addVendorItemPricing(vendorItemPricing);
840
      recv_addVendorItemPricing();
841
    }
842
 
843
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
844
    {
845
      addVendorItemPricing_args args = new addVendorItemPricing_args();
846
      args.setVendorItemPricing(vendorItemPricing);
847
      sendBase("addVendorItemPricing", args);
848
    }
849
 
850
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
851
    {
852
      addVendorItemPricing_result result = new addVendorItemPricing_result();
853
      receiveBase(result, "addVendorItemPricing");
854
      if (result.cex != null) {
855
        throw result.cex;
856
      }
857
      return;
858
    }
859
 
860
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
861
    {
862
      send_getVendor(vendorId);
863
      return recv_getVendor();
864
    }
865
 
866
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
867
    {
868
      getVendor_args args = new getVendor_args();
869
      args.setVendorId(vendorId);
870
      sendBase("getVendor", args);
871
    }
872
 
873
    public Vendor recv_getVendor() throws org.apache.thrift.TException
874
    {
875
      getVendor_result result = new getVendor_result();
876
      receiveBase(result, "getVendor");
877
      if (result.isSetSuccess()) {
878
        return result.success;
879
      }
880
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
881
    }
882
 
883
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
884
    {
885
      send_getAllVendors();
886
      return recv_getAllVendors();
887
    }
888
 
889
    public void send_getAllVendors() throws org.apache.thrift.TException
890
    {
891
      getAllVendors_args args = new getAllVendors_args();
892
      sendBase("getAllVendors", args);
893
    }
894
 
895
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
896
    {
897
      getAllVendors_result result = new getAllVendors_result();
898
      receiveBase(result, "getAllVendors");
899
      if (result.isSetSuccess()) {
900
        return result.success;
901
      }
902
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
903
    }
904
 
905
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
906
    {
907
      send_addVendorItemMapping(key, vendorItemMapping);
908
      recv_addVendorItemMapping();
909
    }
910
 
911
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
912
    {
913
      addVendorItemMapping_args args = new addVendorItemMapping_args();
914
      args.setKey(key);
915
      args.setVendorItemMapping(vendorItemMapping);
916
      sendBase("addVendorItemMapping", args);
917
    }
918
 
919
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
920
    {
921
      addVendorItemMapping_result result = new addVendorItemMapping_result();
922
      receiveBase(result, "addVendorItemMapping");
923
      if (result.cex != null) {
924
        throw result.cex;
925
      }
926
      return;
927
    }
928
 
929
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
930
    {
931
      send_getVendorItemMappings(itemId);
932
      return recv_getVendorItemMappings();
933
    }
934
 
935
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
936
    {
937
      getVendorItemMappings_args args = new getVendorItemMappings_args();
938
      args.setItemId(itemId);
939
      sendBase("getVendorItemMappings", args);
940
    }
941
 
942
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
943
    {
944
      getVendorItemMappings_result result = new getVendorItemMappings_result();
945
      receiveBase(result, "getVendorItemMappings");
946
      if (result.isSetSuccess()) {
947
        return result.success;
948
      }
949
      if (result.cex != null) {
950
        throw result.cex;
951
      }
952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
953
    }
954
 
955
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
956
    {
957
      send_getPendingOrdersInventory(vendorid);
958
      return recv_getPendingOrdersInventory();
959
    }
960
 
961
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
962
    {
963
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
964
      args.setVendorid(vendorid);
965
      sendBase("getPendingOrdersInventory", args);
966
    }
967
 
968
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
969
    {
970
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
971
      receiveBase(result, "getPendingOrdersInventory");
972
      if (result.isSetSuccess()) {
973
        return result.success;
974
      }
975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
976
    }
977
 
978
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
979
    {
980
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
981
      return recv_getWarehouses();
982
    }
983
 
984
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
985
    {
986
      getWarehouses_args args = new getWarehouses_args();
987
      args.setWarehouseType(warehouseType);
988
      args.setInventoryType(inventoryType);
989
      args.setVendorId(vendorId);
990
      args.setBillingWarehouseId(billingWarehouseId);
991
      args.setShippingWarehouseId(shippingWarehouseId);
992
      sendBase("getWarehouses", args);
993
    }
994
 
995
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
996
    {
997
      getWarehouses_result result = new getWarehouses_result();
998
      receiveBase(result, "getWarehouses");
999
      if (result.isSetSuccess()) {
1000
        return result.success;
1001
      }
1002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1003
    }
1004
 
1005
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1006
    {
1007
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1008
      recv_resetAvailability();
1009
    }
1010
 
1011
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1012
    {
1013
      resetAvailability_args args = new resetAvailability_args();
1014
      args.setItemKey(itemKey);
1015
      args.setVendorId(vendorId);
1016
      args.setQuantity(quantity);
1017
      args.setWarehouseId(warehouseId);
1018
      sendBase("resetAvailability", args);
1019
    }
1020
 
1021
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1022
    {
1023
      resetAvailability_result result = new resetAvailability_result();
1024
      receiveBase(result, "resetAvailability");
1025
      if (result.cex != null) {
1026
        throw result.cex;
1027
      }
1028
      return;
1029
    }
1030
 
1031
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1032
    {
1033
      send_resetAvailabilityForWarehouse(warehouseId);
1034
      recv_resetAvailabilityForWarehouse();
1035
    }
1036
 
1037
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1038
    {
1039
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1040
      args.setWarehouseId(warehouseId);
1041
      sendBase("resetAvailabilityForWarehouse", args);
1042
    }
1043
 
1044
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1045
    {
1046
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1047
      receiveBase(result, "resetAvailabilityForWarehouse");
1048
      if (result.cex != null) {
1049
        throw result.cex;
1050
      }
1051
      return;
1052
    }
1053
 
1054
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1055
    {
1056
      send_getItemKeysToBeProcessed(warehouseId);
1057
      return recv_getItemKeysToBeProcessed();
1058
    }
1059
 
1060
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1061
    {
1062
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1063
      args.setWarehouseId(warehouseId);
1064
      sendBase("getItemKeysToBeProcessed", args);
1065
    }
1066
 
1067
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1068
    {
1069
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1070
      receiveBase(result, "getItemKeysToBeProcessed");
1071
      if (result.isSetSuccess()) {
1072
        return result.success;
1073
      }
1074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1075
    }
1076
 
1077
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1078
    {
1079
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1080
      recv_markMissedInventoryUpdatesAsProcessed();
1081
    }
1082
 
1083
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1084
    {
1085
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1086
      args.setItemKey(itemKey);
1087
      args.setWarehouseId(warehouseId);
1088
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1089
    }
1090
 
1091
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1092
    {
1093
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1094
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1095
      return;
1096
    }
1097
 
1098
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1099
    {
1100
      send_getIgnoredItemKeys();
1101
      return recv_getIgnoredItemKeys();
1102
    }
1103
 
1104
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1105
    {
1106
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1107
      sendBase("getIgnoredItemKeys", args);
1108
    }
1109
 
1110
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1111
    {
1112
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1113
      receiveBase(result, "getIgnoredItemKeys");
1114
      if (result.isSetSuccess()) {
1115
        return result.success;
1116
      }
1117
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1118
    }
1119
 
1120
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1121
    {
1122
      send_addBadInventory(itemId, warehouseId, quantity);
1123
      recv_addBadInventory();
1124
    }
1125
 
1126
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1127
    {
1128
      addBadInventory_args args = new addBadInventory_args();
1129
      args.setItemId(itemId);
1130
      args.setWarehouseId(warehouseId);
1131
      args.setQuantity(quantity);
1132
      sendBase("addBadInventory", args);
1133
    }
1134
 
1135
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1136
    {
1137
      addBadInventory_result result = new addBadInventory_result();
1138
      receiveBase(result, "addBadInventory");
1139
      if (result.cex != null) {
1140
        throw result.cex;
1141
      }
1142
      return;
1143
    }
1144
 
1145
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1146
    {
1147
      send_getShippingLocations();
1148
      return recv_getShippingLocations();
1149
    }
1150
 
1151
    public void send_getShippingLocations() throws org.apache.thrift.TException
1152
    {
1153
      getShippingLocations_args args = new getShippingLocations_args();
1154
      sendBase("getShippingLocations", args);
1155
    }
1156
 
1157
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1158
    {
1159
      getShippingLocations_result result = new getShippingLocations_result();
1160
      receiveBase(result, "getShippingLocations");
1161
      if (result.isSetSuccess()) {
1162
        return result.success;
1163
      }
1164
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1165
    }
1166
 
1167
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1168
    {
1169
      send_getAllVendorItemMappings();
1170
      return recv_getAllVendorItemMappings();
1171
    }
1172
 
1173
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1174
    {
1175
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1176
      sendBase("getAllVendorItemMappings", args);
1177
    }
1178
 
1179
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1180
    {
1181
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1182
      receiveBase(result, "getAllVendorItemMappings");
1183
      if (result.isSetSuccess()) {
1184
        return result.success;
1185
      }
1186
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1187
    }
1188
 
1189
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1190
    {
1191
      send_getInventorySnapshot(warehouseId);
1192
      return recv_getInventorySnapshot();
1193
    }
1194
 
1195
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1196
    {
1197
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1198
      args.setWarehouseId(warehouseId);
1199
      sendBase("getInventorySnapshot", args);
1200
    }
1201
 
1202
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1203
    {
1204
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1205
      receiveBase(result, "getInventorySnapshot");
1206
      if (result.isSetSuccess()) {
1207
        return result.success;
1208
      }
1209
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1210
    }
1211
 
1212
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1213
    {
1214
      send_clearItemAvailabilityCache();
1215
      recv_clearItemAvailabilityCache();
1216
    }
1217
 
1218
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1219
    {
1220
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1221
      sendBase("clearItemAvailabilityCache", args);
1222
    }
1223
 
1224
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1225
    {
1226
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1227
      receiveBase(result, "clearItemAvailabilityCache");
1228
      return;
1229
    }
1230
 
1231
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1232
    {
1233
      send_updateVendorString(warehouseId, vendorString);
1234
      recv_updateVendorString();
1235
    }
1236
 
1237
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1238
    {
1239
      updateVendorString_args args = new updateVendorString_args();
1240
      args.setWarehouseId(warehouseId);
1241
      args.setVendorString(vendorString);
1242
      sendBase("updateVendorString", args);
1243
    }
1244
 
1245
    public void recv_updateVendorString() throws org.apache.thrift.TException
1246
    {
1247
      updateVendorString_result result = new updateVendorString_result();
1248
      receiveBase(result, "updateVendorString");
1249
      return;
1250
    }
1251
 
6096 amit.gupta 1252
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1253
    {
1254
      send_clearItemAvailabilityCacheForItem(item_id);
1255
      recv_clearItemAvailabilityCacheForItem();
1256
    }
1257
 
1258
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1259
    {
1260
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1261
      args.setItem_id(item_id);
1262
      sendBase("clearItemAvailabilityCacheForItem", args);
1263
    }
1264
 
1265
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1266
    {
1267
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1268
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1269
      return;
1270
    }
1271
 
6467 amar.kumar 1272
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1273
    {
1274
      send_getOurWarehouseIdForVendor(vendorId);
1275
      return recv_getOurWarehouseIdForVendor();
1276
    }
1277
 
1278
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1279
    {
1280
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1281
      args.setVendorId(vendorId);
1282
      sendBase("getOurWarehouseIdForVendor", args);
1283
    }
1284
 
1285
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1286
    {
1287
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1288
      receiveBase(result, "getOurWarehouseIdForVendor");
1289
      if (result.isSetSuccess()) {
1290
        return result.success;
1291
      }
1292
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1293
    }
1294
 
6484 amar.kumar 1295
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1296
    {
1297
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1298
      return recv_getItemAvailabilitiesAtOurWarehouses();
1299
    }
1300
 
1301
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1302
    {
1303
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1304
      args.setItem_ids(item_ids);
1305
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1306
    }
1307
 
1308
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1309
    {
1310
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1311
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1312
      if (result.isSetSuccess()) {
1313
        return result.success;
1314
      }
1315
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1316
    }
1317
 
5945 mandeep.dh 1318
  }
1319
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1320
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1321
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1322
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1323
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1324
        this.clientManager = clientManager;
1325
        this.protocolFactory = protocolFactory;
1326
      }
1327
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1328
        return new AsyncClient(protocolFactory, clientManager, transport);
1329
      }
1330
    }
1331
 
1332
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1333
      super(protocolFactory, clientManager, transport);
1334
    }
1335
 
1336
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1337
      checkReady();
1338
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1339
      this.___currentMethod = method_call;
1340
      ___manager.call(method_call);
1341
    }
1342
 
1343
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1344
      private Warehouse warehouse;
1345
      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 {
1346
        super(client, protocolFactory, transport, resultHandler, false);
1347
        this.warehouse = warehouse;
1348
      }
1349
 
1350
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1351
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1352
        addWarehouse_args args = new addWarehouse_args();
1353
        args.setWarehouse(warehouse);
1354
        args.write(prot);
1355
        prot.writeMessageEnd();
1356
      }
1357
 
1358
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1359
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1360
          throw new IllegalStateException("Method call not finished!");
1361
        }
1362
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1364
        return (new Client(prot)).recv_addWarehouse();
1365
      }
1366
    }
1367
 
1368
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1369
      checkReady();
1370
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1371
      this.___currentMethod = method_call;
1372
      ___manager.call(method_call);
1373
    }
1374
 
1375
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1376
      private Vendor vendor;
1377
      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 {
1378
        super(client, protocolFactory, transport, resultHandler, false);
1379
        this.vendor = vendor;
1380
      }
1381
 
1382
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1383
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1384
        addVendor_args args = new addVendor_args();
1385
        args.setVendor(vendor);
1386
        args.write(prot);
1387
        prot.writeMessageEnd();
1388
      }
1389
 
1390
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1391
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1392
          throw new IllegalStateException("Method call not finished!");
1393
        }
1394
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1395
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1396
        return (new Client(prot)).recv_addVendor();
1397
      }
1398
    }
1399
 
1400
    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 {
1401
      checkReady();
1402
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1403
      this.___currentMethod = method_call;
1404
      ___manager.call(method_call);
1405
    }
1406
 
1407
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1408
      private long warehouse_id;
1409
      private String timestamp;
1410
      private Map<String,Long> availability;
1411
      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 {
1412
        super(client, protocolFactory, transport, resultHandler, false);
1413
        this.warehouse_id = warehouse_id;
1414
        this.timestamp = timestamp;
1415
        this.availability = availability;
1416
      }
1417
 
1418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1420
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1421
        args.setWarehouse_id(warehouse_id);
1422
        args.setTimestamp(timestamp);
1423
        args.setAvailability(availability);
1424
        args.write(prot);
1425
        prot.writeMessageEnd();
1426
      }
1427
 
1428
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1430
          throw new IllegalStateException("Method call not finished!");
1431
        }
1432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1434
        (new Client(prot)).recv_updateInventoryHistory();
1435
      }
1436
    }
1437
 
1438
    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 {
1439
      checkReady();
1440
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1441
      this.___currentMethod = method_call;
1442
      ___manager.call(method_call);
1443
    }
1444
 
1445
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1446
      private long warehouse_id;
1447
      private String timestamp;
1448
      private Map<String,Long> availability;
1449
      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 {
1450
        super(client, protocolFactory, transport, resultHandler, false);
1451
        this.warehouse_id = warehouse_id;
1452
        this.timestamp = timestamp;
1453
        this.availability = availability;
1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        updateInventory_args args = new updateInventory_args();
1459
        args.setWarehouse_id(warehouse_id);
1460
        args.setTimestamp(timestamp);
1461
        args.setAvailability(availability);
1462
        args.write(prot);
1463
        prot.writeMessageEnd();
1464
      }
1465
 
1466
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1467
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1468
          throw new IllegalStateException("Method call not finished!");
1469
        }
1470
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1471
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1472
        (new Client(prot)).recv_updateInventory();
1473
      }
1474
    }
1475
 
1476
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
1477
      checkReady();
1478
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1479
      this.___currentMethod = method_call;
1480
      ___manager.call(method_call);
1481
    }
1482
 
1483
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1484
      private long itemId;
1485
      private long warehouseId;
1486
      private long quantity;
1487
      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 {
1488
        super(client, protocolFactory, transport, resultHandler, false);
1489
        this.itemId = itemId;
1490
        this.warehouseId = warehouseId;
1491
        this.quantity = quantity;
1492
      }
1493
 
1494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1496
        addInventory_args args = new addInventory_args();
1497
        args.setItemId(itemId);
1498
        args.setWarehouseId(warehouseId);
1499
        args.setQuantity(quantity);
1500
        args.write(prot);
1501
        prot.writeMessageEnd();
1502
      }
1503
 
1504
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1505
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1506
          throw new IllegalStateException("Method call not finished!");
1507
        }
1508
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1509
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1510
        (new Client(prot)).recv_addInventory();
1511
      }
1512
    }
1513
 
1514
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1515
      checkReady();
1516
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1517
      this.___currentMethod = method_call;
1518
      ___manager.call(method_call);
1519
    }
1520
 
1521
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1522
      private long warehouse_id;
1523
      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 {
1524
        super(client, protocolFactory, transport, resultHandler, false);
1525
        this.warehouse_id = warehouse_id;
1526
      }
1527
 
1528
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1529
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1530
        retireWarehouse_args args = new retireWarehouse_args();
1531
        args.setWarehouse_id(warehouse_id);
1532
        args.write(prot);
1533
        prot.writeMessageEnd();
1534
      }
1535
 
1536
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1537
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1538
          throw new IllegalStateException("Method call not finished!");
1539
        }
1540
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1541
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1542
        (new Client(prot)).recv_retireWarehouse();
1543
      }
1544
    }
1545
 
1546
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
1547
      checkReady();
1548
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
1549
      this.___currentMethod = method_call;
1550
      ___manager.call(method_call);
1551
    }
1552
 
1553
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
1554
      private long item_id;
1555
      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 {
1556
        super(client, protocolFactory, transport, resultHandler, false);
1557
        this.item_id = item_id;
1558
      }
1559
 
1560
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1561
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1562
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
1563
        args.setItem_id(item_id);
1564
        args.write(prot);
1565
        prot.writeMessageEnd();
1566
      }
1567
 
1568
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
1569
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1570
          throw new IllegalStateException("Method call not finished!");
1571
        }
1572
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1573
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1574
        return (new Client(prot)).recv_getItemInventoryByItemId();
1575
      }
1576
    }
1577
 
1578
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1579
      checkReady();
1580
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
1581
      this.___currentMethod = method_call;
1582
      ___manager.call(method_call);
1583
    }
1584
 
1585
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1586
      private long warehouse_id;
1587
      private long item_id;
1588
      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 {
1589
        super(client, protocolFactory, transport, resultHandler, false);
1590
        this.warehouse_id = warehouse_id;
1591
        this.item_id = item_id;
1592
      }
1593
 
1594
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1595
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1596
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
1597
        args.setWarehouse_id(warehouse_id);
1598
        args.setItem_id(item_id);
1599
        args.write(prot);
1600
        prot.writeMessageEnd();
1601
      }
1602
 
1603
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1604
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1605
          throw new IllegalStateException("Method call not finished!");
1606
        }
1607
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1608
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1609
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
1610
      }
1611
    }
1612
 
5978 rajveer 1613
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 1614
      checkReady();
5978 rajveer 1615
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1616
      this.___currentMethod = method_call;
1617
      ___manager.call(method_call);
1618
    }
1619
 
1620
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1621
      private long itemId;
5978 rajveer 1622
      private long sourceId;
1623
      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 1624
        super(client, protocolFactory, transport, resultHandler, false);
1625
        this.itemId = itemId;
5978 rajveer 1626
        this.sourceId = sourceId;
5945 mandeep.dh 1627
      }
1628
 
1629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1631
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
1632
        args.setItemId(itemId);
5978 rajveer 1633
        args.setSourceId(sourceId);
5945 mandeep.dh 1634
        args.write(prot);
1635
        prot.writeMessageEnd();
1636
      }
1637
 
1638
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1639
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1640
          throw new IllegalStateException("Method call not finished!");
1641
        }
1642
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1643
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1644
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
1645
      }
1646
    }
1647
 
1648
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
1649
      checkReady();
1650
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
1651
      this.___currentMethod = method_call;
1652
      ___manager.call(method_call);
1653
    }
1654
 
1655
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
1656
      private boolean isActive;
1657
      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 {
1658
        super(client, protocolFactory, transport, resultHandler, false);
1659
        this.isActive = isActive;
1660
      }
1661
 
1662
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1663
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
1664
        getAllWarehouses_args args = new getAllWarehouses_args();
1665
        args.setIsActive(isActive);
1666
        args.write(prot);
1667
        prot.writeMessageEnd();
1668
      }
1669
 
1670
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1671
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1672
          throw new IllegalStateException("Method call not finished!");
1673
        }
1674
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1676
        return (new Client(prot)).recv_getAllWarehouses();
1677
      }
1678
    }
1679
 
1680
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1681
      checkReady();
1682
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1683
      this.___currentMethod = method_call;
1684
      ___manager.call(method_call);
1685
    }
1686
 
1687
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1688
      private long warehouse_id;
1689
      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 {
1690
        super(client, protocolFactory, transport, resultHandler, false);
1691
        this.warehouse_id = warehouse_id;
1692
      }
1693
 
1694
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1695
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1696
        getWarehouse_args args = new getWarehouse_args();
1697
        args.setWarehouse_id(warehouse_id);
1698
        args.write(prot);
1699
        prot.writeMessageEnd();
1700
      }
1701
 
1702
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
1703
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1704
          throw new IllegalStateException("Method call not finished!");
1705
        }
1706
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1707
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1708
        return (new Client(prot)).recv_getWarehouse();
1709
      }
1710
    }
1711
 
1712
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1713
      checkReady();
1714
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1715
      this.___currentMethod = method_call;
1716
      ___manager.call(method_call);
1717
    }
1718
 
1719
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1720
      private long warehouse_id;
1721
      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 {
1722
        super(client, protocolFactory, transport, resultHandler, false);
1723
        this.warehouse_id = warehouse_id;
1724
      }
1725
 
1726
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1727
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1728
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
1729
        args.setWarehouse_id(warehouse_id);
1730
        args.write(prot);
1731
        prot.writeMessageEnd();
1732
      }
1733
 
1734
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1735
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1736
          throw new IllegalStateException("Method call not finished!");
1737
        }
1738
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1739
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1740
        return (new Client(prot)).recv_getAllItemsForWarehouse();
1741
      }
1742
    }
1743
 
5967 rajveer 1744
    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 1745
      checkReady();
5967 rajveer 1746
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1747
      this.___currentMethod = method_call;
1748
      ___manager.call(method_call);
1749
    }
1750
 
5967 rajveer 1751
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
1752
      private long itemId;
1753
      private long warehouseId;
1754
      private long sourceId;
1755
      private long orderId;
1756
      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 {
1757
        super(client, protocolFactory, transport, resultHandler, false);
1758
        this.itemId = itemId;
1759
        this.warehouseId = warehouseId;
1760
        this.sourceId = sourceId;
1761
        this.orderId = orderId;
1762
      }
1763
 
1764
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1765
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
1766
        isOrderBillable_args args = new isOrderBillable_args();
1767
        args.setItemId(itemId);
1768
        args.setWarehouseId(warehouseId);
1769
        args.setSourceId(sourceId);
1770
        args.setOrderId(orderId);
1771
        args.write(prot);
1772
        prot.writeMessageEnd();
1773
      }
1774
 
1775
      public boolean getResult() throws org.apache.thrift.TException {
1776
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1777
          throw new IllegalStateException("Method call not finished!");
1778
        }
1779
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1780
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1781
        return (new Client(prot)).recv_isOrderBillable();
1782
      }
1783
    }
1784
 
1785
    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 {
1786
      checkReady();
1787
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
1788
      this.___currentMethod = method_call;
1789
      ___manager.call(method_call);
1790
    }
1791
 
5945 mandeep.dh 1792
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1793
      private long itemId;
1794
      private long warehouseId;
5967 rajveer 1795
      private long sourceId;
1796
      private long orderId;
1797
      private long createdTimestamp;
1798
      private long promisedShippingTimestamp;
5945 mandeep.dh 1799
      private double quantity;
5967 rajveer 1800
      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 1801
        super(client, protocolFactory, transport, resultHandler, false);
1802
        this.itemId = itemId;
1803
        this.warehouseId = warehouseId;
5967 rajveer 1804
        this.sourceId = sourceId;
1805
        this.orderId = orderId;
1806
        this.createdTimestamp = createdTimestamp;
1807
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 1808
        this.quantity = quantity;
1809
      }
1810
 
1811
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1812
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1813
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
1814
        args.setItemId(itemId);
1815
        args.setWarehouseId(warehouseId);
5967 rajveer 1816
        args.setSourceId(sourceId);
1817
        args.setOrderId(orderId);
1818
        args.setCreatedTimestamp(createdTimestamp);
1819
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 1820
        args.setQuantity(quantity);
1821
        args.write(prot);
1822
        prot.writeMessageEnd();
1823
      }
1824
 
1825
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
1826
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1827
          throw new IllegalStateException("Method call not finished!");
1828
        }
1829
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1830
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1831
        return (new Client(prot)).recv_reserveItemInWarehouse();
1832
      }
1833
    }
1834
 
5967 rajveer 1835
    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 1836
      checkReady();
5967 rajveer 1837
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1838
      this.___currentMethod = method_call;
1839
      ___manager.call(method_call);
1840
    }
1841
 
1842
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1843
      private long itemId;
1844
      private long warehouseId;
5967 rajveer 1845
      private long sourceId;
1846
      private long orderId;
5945 mandeep.dh 1847
      private double quantity;
5967 rajveer 1848
      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 1849
        super(client, protocolFactory, transport, resultHandler, false);
1850
        this.itemId = itemId;
1851
        this.warehouseId = warehouseId;
5967 rajveer 1852
        this.sourceId = sourceId;
1853
        this.orderId = orderId;
5945 mandeep.dh 1854
        this.quantity = quantity;
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("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1859
        reduceReservationCount_args args = new reduceReservationCount_args();
1860
        args.setItemId(itemId);
1861
        args.setWarehouseId(warehouseId);
5967 rajveer 1862
        args.setSourceId(sourceId);
1863
        args.setOrderId(orderId);
5945 mandeep.dh 1864
        args.setQuantity(quantity);
1865
        args.write(prot);
1866
        prot.writeMessageEnd();
1867
      }
1868
 
1869
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
1870
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1871
          throw new IllegalStateException("Method call not finished!");
1872
        }
1873
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1874
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1875
        return (new Client(prot)).recv_reduceReservationCount();
1876
      }
1877
    }
1878
 
1879
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1880
      checkReady();
1881
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
1882
      this.___currentMethod = method_call;
1883
      ___manager.call(method_call);
1884
    }
1885
 
1886
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1887
      private long itemId;
1888
      private long vendorId;
1889
      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 {
1890
        super(client, protocolFactory, transport, resultHandler, false);
1891
        this.itemId = itemId;
1892
        this.vendorId = vendorId;
1893
      }
1894
 
1895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1897
        getItemPricing_args args = new getItemPricing_args();
1898
        args.setItemId(itemId);
1899
        args.setVendorId(vendorId);
1900
        args.write(prot);
1901
        prot.writeMessageEnd();
1902
      }
1903
 
1904
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
1905
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1906
          throw new IllegalStateException("Method call not finished!");
1907
        }
1908
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1910
        return (new Client(prot)).recv_getItemPricing();
1911
      }
1912
    }
1913
 
1914
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1915
      checkReady();
1916
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1917
      this.___currentMethod = method_call;
1918
      ___manager.call(method_call);
1919
    }
1920
 
1921
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1922
      private long itemId;
1923
      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 {
1924
        super(client, protocolFactory, transport, resultHandler, false);
1925
        this.itemId = itemId;
1926
      }
1927
 
1928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1930
        getAllItemPricing_args args = new getAllItemPricing_args();
1931
        args.setItemId(itemId);
1932
        args.write(prot);
1933
        prot.writeMessageEnd();
1934
      }
1935
 
1936
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1938
          throw new IllegalStateException("Method call not finished!");
1939
        }
1940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1942
        return (new Client(prot)).recv_getAllItemPricing();
1943
      }
1944
    }
1945
 
1946
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1947
      checkReady();
1948
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
1949
      this.___currentMethod = method_call;
1950
      ___manager.call(method_call);
1951
    }
1952
 
1953
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1954
      private VendorItemPricing vendorItemPricing;
1955
      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 {
1956
        super(client, protocolFactory, transport, resultHandler, false);
1957
        this.vendorItemPricing = vendorItemPricing;
1958
      }
1959
 
1960
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1961
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1962
        addVendorItemPricing_args args = new addVendorItemPricing_args();
1963
        args.setVendorItemPricing(vendorItemPricing);
1964
        args.write(prot);
1965
        prot.writeMessageEnd();
1966
      }
1967
 
1968
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1969
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1970
          throw new IllegalStateException("Method call not finished!");
1971
        }
1972
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1973
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1974
        (new Client(prot)).recv_addVendorItemPricing();
1975
      }
1976
    }
1977
 
1978
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
1979
      checkReady();
1980
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
1981
      this.___currentMethod = method_call;
1982
      ___manager.call(method_call);
1983
    }
1984
 
1985
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1986
      private long vendorId;
1987
      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 {
1988
        super(client, protocolFactory, transport, resultHandler, false);
1989
        this.vendorId = vendorId;
1990
      }
1991
 
1992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1994
        getVendor_args args = new getVendor_args();
1995
        args.setVendorId(vendorId);
1996
        args.write(prot);
1997
        prot.writeMessageEnd();
1998
      }
1999
 
2000
      public Vendor getResult() throws org.apache.thrift.TException {
2001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2002
          throw new IllegalStateException("Method call not finished!");
2003
        }
2004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2006
        return (new Client(prot)).recv_getVendor();
2007
      }
2008
    }
2009
 
2010
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
2011
      checkReady();
2012
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
2013
      this.___currentMethod = method_call;
2014
      ___manager.call(method_call);
2015
    }
2016
 
2017
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2018
      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 {
2019
        super(client, protocolFactory, transport, resultHandler, false);
2020
      }
2021
 
2022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2024
        getAllVendors_args args = new getAllVendors_args();
2025
        args.write(prot);
2026
        prot.writeMessageEnd();
2027
      }
2028
 
2029
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2031
          throw new IllegalStateException("Method call not finished!");
2032
        }
2033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2035
        return (new Client(prot)).recv_getAllVendors();
2036
      }
2037
    }
2038
 
2039
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2040
      checkReady();
2041
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2042
      this.___currentMethod = method_call;
2043
      ___manager.call(method_call);
2044
    }
2045
 
2046
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2047
      private String key;
2048
      private VendorItemMapping vendorItemMapping;
2049
      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 {
2050
        super(client, protocolFactory, transport, resultHandler, false);
2051
        this.key = key;
2052
        this.vendorItemMapping = vendorItemMapping;
2053
      }
2054
 
2055
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2056
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2057
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2058
        args.setKey(key);
2059
        args.setVendorItemMapping(vendorItemMapping);
2060
        args.write(prot);
2061
        prot.writeMessageEnd();
2062
      }
2063
 
2064
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2066
          throw new IllegalStateException("Method call not finished!");
2067
        }
2068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2070
        (new Client(prot)).recv_addVendorItemMapping();
2071
      }
2072
    }
2073
 
2074
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2075
      checkReady();
2076
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2077
      this.___currentMethod = method_call;
2078
      ___manager.call(method_call);
2079
    }
2080
 
2081
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2082
      private long itemId;
2083
      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 {
2084
        super(client, protocolFactory, transport, resultHandler, false);
2085
        this.itemId = itemId;
2086
      }
2087
 
2088
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2089
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2090
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2091
        args.setItemId(itemId);
2092
        args.write(prot);
2093
        prot.writeMessageEnd();
2094
      }
2095
 
2096
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2098
          throw new IllegalStateException("Method call not finished!");
2099
        }
2100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2102
        return (new Client(prot)).recv_getVendorItemMappings();
2103
      }
2104
    }
2105
 
2106
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2107
      checkReady();
2108
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2109
      this.___currentMethod = method_call;
2110
      ___manager.call(method_call);
2111
    }
2112
 
2113
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2114
      private long vendorid;
2115
      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 {
2116
        super(client, protocolFactory, transport, resultHandler, false);
2117
        this.vendorid = vendorid;
2118
      }
2119
 
2120
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2121
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2122
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2123
        args.setVendorid(vendorid);
2124
        args.write(prot);
2125
        prot.writeMessageEnd();
2126
      }
2127
 
2128
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2130
          throw new IllegalStateException("Method call not finished!");
2131
        }
2132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2134
        return (new Client(prot)).recv_getPendingOrdersInventory();
2135
      }
2136
    }
2137
 
2138
    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 {
2139
      checkReady();
2140
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2141
      this.___currentMethod = method_call;
2142
      ___manager.call(method_call);
2143
    }
2144
 
2145
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2146
      private WarehouseType warehouseType;
2147
      private InventoryType inventoryType;
2148
      private long vendorId;
2149
      private long billingWarehouseId;
2150
      private long shippingWarehouseId;
2151
      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 {
2152
        super(client, protocolFactory, transport, resultHandler, false);
2153
        this.warehouseType = warehouseType;
2154
        this.inventoryType = inventoryType;
2155
        this.vendorId = vendorId;
2156
        this.billingWarehouseId = billingWarehouseId;
2157
        this.shippingWarehouseId = shippingWarehouseId;
2158
      }
2159
 
2160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2162
        getWarehouses_args args = new getWarehouses_args();
2163
        args.setWarehouseType(warehouseType);
2164
        args.setInventoryType(inventoryType);
2165
        args.setVendorId(vendorId);
2166
        args.setBillingWarehouseId(billingWarehouseId);
2167
        args.setShippingWarehouseId(shippingWarehouseId);
2168
        args.write(prot);
2169
        prot.writeMessageEnd();
2170
      }
2171
 
2172
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2173
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2174
          throw new IllegalStateException("Method call not finished!");
2175
        }
2176
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2177
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2178
        return (new Client(prot)).recv_getWarehouses();
2179
      }
2180
    }
2181
 
2182
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2183
      checkReady();
2184
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2185
      this.___currentMethod = method_call;
2186
      ___manager.call(method_call);
2187
    }
2188
 
2189
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2190
      private String itemKey;
2191
      private long vendorId;
2192
      private long quantity;
2193
      private long warehouseId;
2194
      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 {
2195
        super(client, protocolFactory, transport, resultHandler, false);
2196
        this.itemKey = itemKey;
2197
        this.vendorId = vendorId;
2198
        this.quantity = quantity;
2199
        this.warehouseId = warehouseId;
2200
      }
2201
 
2202
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2203
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2204
        resetAvailability_args args = new resetAvailability_args();
2205
        args.setItemKey(itemKey);
2206
        args.setVendorId(vendorId);
2207
        args.setQuantity(quantity);
2208
        args.setWarehouseId(warehouseId);
2209
        args.write(prot);
2210
        prot.writeMessageEnd();
2211
      }
2212
 
2213
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2214
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2215
          throw new IllegalStateException("Method call not finished!");
2216
        }
2217
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2218
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2219
        (new Client(prot)).recv_resetAvailability();
2220
      }
2221
    }
2222
 
2223
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2224
      checkReady();
2225
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2226
      this.___currentMethod = method_call;
2227
      ___manager.call(method_call);
2228
    }
2229
 
2230
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2231
      private long warehouseId;
2232
      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 {
2233
        super(client, protocolFactory, transport, resultHandler, false);
2234
        this.warehouseId = warehouseId;
2235
      }
2236
 
2237
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2238
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2239
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2240
        args.setWarehouseId(warehouseId);
2241
        args.write(prot);
2242
        prot.writeMessageEnd();
2243
      }
2244
 
2245
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2246
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2247
          throw new IllegalStateException("Method call not finished!");
2248
        }
2249
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2250
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2251
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2252
      }
2253
    }
2254
 
2255
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2256
      checkReady();
2257
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2258
      this.___currentMethod = method_call;
2259
      ___manager.call(method_call);
2260
    }
2261
 
2262
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2263
      private long warehouseId;
2264
      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 {
2265
        super(client, protocolFactory, transport, resultHandler, false);
2266
        this.warehouseId = warehouseId;
2267
      }
2268
 
2269
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2270
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2271
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2272
        args.setWarehouseId(warehouseId);
2273
        args.write(prot);
2274
        prot.writeMessageEnd();
2275
      }
2276
 
2277
      public List<String> getResult() throws org.apache.thrift.TException {
2278
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2279
          throw new IllegalStateException("Method call not finished!");
2280
        }
2281
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2282
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2283
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2284
      }
2285
    }
2286
 
2287
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2288
      checkReady();
2289
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2290
      this.___currentMethod = method_call;
2291
      ___manager.call(method_call);
2292
    }
2293
 
2294
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2295
      private String itemKey;
2296
      private long warehouseId;
2297
      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 {
2298
        super(client, protocolFactory, transport, resultHandler, false);
2299
        this.itemKey = itemKey;
2300
        this.warehouseId = warehouseId;
2301
      }
2302
 
2303
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2304
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2305
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2306
        args.setItemKey(itemKey);
2307
        args.setWarehouseId(warehouseId);
2308
        args.write(prot);
2309
        prot.writeMessageEnd();
2310
      }
2311
 
2312
      public void getResult() throws org.apache.thrift.TException {
2313
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2314
          throw new IllegalStateException("Method call not finished!");
2315
        }
2316
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2317
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2318
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2319
      }
2320
    }
2321
 
2322
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2323
      checkReady();
2324
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2325
      this.___currentMethod = method_call;
2326
      ___manager.call(method_call);
2327
    }
2328
 
2329
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2330
      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 {
2331
        super(client, protocolFactory, transport, resultHandler, false);
2332
      }
2333
 
2334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2336
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2337
        args.write(prot);
2338
        prot.writeMessageEnd();
2339
      }
2340
 
2341
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2342
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2343
          throw new IllegalStateException("Method call not finished!");
2344
        }
2345
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2346
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2347
        return (new Client(prot)).recv_getIgnoredItemKeys();
2348
      }
2349
    }
2350
 
2351
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2352
      checkReady();
2353
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2354
      this.___currentMethod = method_call;
2355
      ___manager.call(method_call);
2356
    }
2357
 
2358
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2359
      private long itemId;
2360
      private long warehouseId;
2361
      private long quantity;
2362
      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 {
2363
        super(client, protocolFactory, transport, resultHandler, false);
2364
        this.itemId = itemId;
2365
        this.warehouseId = warehouseId;
2366
        this.quantity = quantity;
2367
      }
2368
 
2369
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2370
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2371
        addBadInventory_args args = new addBadInventory_args();
2372
        args.setItemId(itemId);
2373
        args.setWarehouseId(warehouseId);
2374
        args.setQuantity(quantity);
2375
        args.write(prot);
2376
        prot.writeMessageEnd();
2377
      }
2378
 
2379
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2380
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2381
          throw new IllegalStateException("Method call not finished!");
2382
        }
2383
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2384
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2385
        (new Client(prot)).recv_addBadInventory();
2386
      }
2387
    }
2388
 
2389
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2390
      checkReady();
2391
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2392
      this.___currentMethod = method_call;
2393
      ___manager.call(method_call);
2394
    }
2395
 
2396
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2397
      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 {
2398
        super(client, protocolFactory, transport, resultHandler, false);
2399
      }
2400
 
2401
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2402
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2403
        getShippingLocations_args args = new getShippingLocations_args();
2404
        args.write(prot);
2405
        prot.writeMessageEnd();
2406
      }
2407
 
2408
      public List<Warehouse> getResult() throws 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
        return (new Client(prot)).recv_getShippingLocations();
2415
      }
2416
    }
2417
 
2418
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2419
      checkReady();
2420
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
2421
      this.___currentMethod = method_call;
2422
      ___manager.call(method_call);
2423
    }
2424
 
2425
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2426
      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 {
2427
        super(client, protocolFactory, transport, resultHandler, false);
2428
      }
2429
 
2430
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2431
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2432
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
2433
        args.write(prot);
2434
        prot.writeMessageEnd();
2435
      }
2436
 
2437
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
2438
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2439
          throw new IllegalStateException("Method call not finished!");
2440
        }
2441
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2442
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2443
        return (new Client(prot)).recv_getAllVendorItemMappings();
2444
      }
2445
    }
2446
 
2447
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
2448
      checkReady();
2449
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2450
      this.___currentMethod = method_call;
2451
      ___manager.call(method_call);
2452
    }
2453
 
2454
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
2455
      private long warehouseId;
2456
      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 {
2457
        super(client, protocolFactory, transport, resultHandler, false);
2458
        this.warehouseId = warehouseId;
2459
      }
2460
 
2461
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2462
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2463
        getInventorySnapshot_args args = new getInventorySnapshot_args();
2464
        args.setWarehouseId(warehouseId);
2465
        args.write(prot);
2466
        prot.writeMessageEnd();
2467
      }
2468
 
2469
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
2470
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2471
          throw new IllegalStateException("Method call not finished!");
2472
        }
2473
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2474
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2475
        return (new Client(prot)).recv_getInventorySnapshot();
2476
      }
2477
    }
2478
 
2479
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
2480
      checkReady();
2481
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
2482
      this.___currentMethod = method_call;
2483
      ___manager.call(method_call);
2484
    }
2485
 
2486
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
2487
      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 {
2488
        super(client, protocolFactory, transport, resultHandler, false);
2489
      }
2490
 
2491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
2493
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
2494
        args.write(prot);
2495
        prot.writeMessageEnd();
2496
      }
2497
 
2498
      public void getResult() throws org.apache.thrift.TException {
2499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2500
          throw new IllegalStateException("Method call not finished!");
2501
        }
2502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2504
        (new Client(prot)).recv_clearItemAvailabilityCache();
2505
      }
2506
    }
2507
 
2508
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
2509
      checkReady();
2510
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
2511
      this.___currentMethod = method_call;
2512
      ___manager.call(method_call);
2513
    }
2514
 
2515
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
2516
      private long warehouseId;
2517
      private String vendorString;
2518
      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 {
2519
        super(client, protocolFactory, transport, resultHandler, false);
2520
        this.warehouseId = warehouseId;
2521
        this.vendorString = vendorString;
2522
      }
2523
 
2524
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2525
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
2526
        updateVendorString_args args = new updateVendorString_args();
2527
        args.setWarehouseId(warehouseId);
2528
        args.setVendorString(vendorString);
2529
        args.write(prot);
2530
        prot.writeMessageEnd();
2531
      }
2532
 
2533
      public void getResult() throws org.apache.thrift.TException {
2534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2535
          throw new IllegalStateException("Method call not finished!");
2536
        }
2537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2539
        (new Client(prot)).recv_updateVendorString();
2540
      }
2541
    }
2542
 
6096 amit.gupta 2543
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
2544
      checkReady();
2545
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2546
      this.___currentMethod = method_call;
2547
      ___manager.call(method_call);
2548
    }
2549
 
2550
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2551
      private long item_id;
2552
      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 {
2553
        super(client, protocolFactory, transport, resultHandler, false);
2554
        this.item_id = item_id;
2555
      }
2556
 
2557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2559
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
2560
        args.setItem_id(item_id);
2561
        args.write(prot);
2562
        prot.writeMessageEnd();
2563
      }
2564
 
2565
      public void getResult() throws org.apache.thrift.TException {
2566
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2567
          throw new IllegalStateException("Method call not finished!");
2568
        }
2569
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2571
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2572
      }
2573
    }
2574
 
6467 amar.kumar 2575
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
2576
      checkReady();
2577
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2578
      this.___currentMethod = method_call;
2579
      ___manager.call(method_call);
2580
    }
2581
 
2582
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2583
      private long vendorId;
2584
      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 {
2585
        super(client, protocolFactory, transport, resultHandler, false);
2586
        this.vendorId = vendorId;
2587
      }
2588
 
2589
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2590
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2591
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
2592
        args.setVendorId(vendorId);
2593
        args.write(prot);
2594
        prot.writeMessageEnd();
2595
      }
2596
 
2597
      public long getResult() throws org.apache.thrift.TException {
2598
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2599
          throw new IllegalStateException("Method call not finished!");
2600
        }
2601
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2602
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2603
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2604
      }
2605
    }
2606
 
6484 amar.kumar 2607
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2608
      checkReady();
2609
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
2610
      this.___currentMethod = method_call;
2611
      ___manager.call(method_call);
2612
    }
2613
 
2614
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2615
      private List<Long> item_ids;
2616
      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 {
2617
        super(client, protocolFactory, transport, resultHandler, false);
2618
        this.item_ids = item_ids;
2619
      }
2620
 
2621
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2622
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2623
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
2624
        args.setItem_ids(item_ids);
2625
        args.write(prot);
2626
        prot.writeMessageEnd();
2627
      }
2628
 
2629
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2630
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2631
          throw new IllegalStateException("Method call not finished!");
2632
        }
2633
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2634
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2635
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
2636
      }
2637
    }
2638
 
5945 mandeep.dh 2639
  }
2640
 
2641
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2642
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2643
    public Processor(I iface) {
2644
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2645
    }
2646
 
2647
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2648
      super(iface, getProcessMap(processMap));
2649
    }
2650
 
2651
    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) {
2652
      processMap.put("addWarehouse", new addWarehouse());
2653
      processMap.put("addVendor", new addVendor());
2654
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
2655
      processMap.put("updateInventory", new updateInventory());
2656
      processMap.put("addInventory", new addInventory());
2657
      processMap.put("retireWarehouse", new retireWarehouse());
2658
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
2659
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
2660
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
2661
      processMap.put("getAllWarehouses", new getAllWarehouses());
2662
      processMap.put("getWarehouse", new getWarehouse());
2663
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 2664
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 2665
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
2666
      processMap.put("reduceReservationCount", new reduceReservationCount());
2667
      processMap.put("getItemPricing", new getItemPricing());
2668
      processMap.put("getAllItemPricing", new getAllItemPricing());
2669
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
2670
      processMap.put("getVendor", new getVendor());
2671
      processMap.put("getAllVendors", new getAllVendors());
2672
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
2673
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
2674
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
2675
      processMap.put("getWarehouses", new getWarehouses());
2676
      processMap.put("resetAvailability", new resetAvailability());
2677
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
2678
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
2679
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
2680
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
2681
      processMap.put("addBadInventory", new addBadInventory());
2682
      processMap.put("getShippingLocations", new getShippingLocations());
2683
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2684
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2685
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2686
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 2687
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 2688
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 2689
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
5945 mandeep.dh 2690
      return processMap;
2691
    }
2692
 
2693
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2694
      public addWarehouse() {
2695
        super("addWarehouse");
2696
      }
2697
 
2698
      protected addWarehouse_args getEmptyArgsInstance() {
2699
        return new addWarehouse_args();
2700
      }
2701
 
2702
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
2703
        addWarehouse_result result = new addWarehouse_result();
2704
        try {
2705
          result.success = iface.addWarehouse(args.warehouse);
2706
          result.setSuccessIsSet(true);
2707
        } catch (InventoryServiceException cex) {
2708
          result.cex = cex;
2709
        }
2710
        return result;
2711
      }
2712
    }
2713
 
2714
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
2715
      public addVendor() {
2716
        super("addVendor");
2717
      }
2718
 
2719
      protected addVendor_args getEmptyArgsInstance() {
2720
        return new addVendor_args();
2721
      }
2722
 
2723
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
2724
        addVendor_result result = new addVendor_result();
2725
        try {
2726
          result.success = iface.addVendor(args.vendor);
2727
          result.setSuccessIsSet(true);
2728
        } catch (InventoryServiceException cex) {
2729
          result.cex = cex;
2730
        }
2731
        return result;
2732
      }
2733
    }
2734
 
2735
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
2736
      public updateInventoryHistory() {
2737
        super("updateInventoryHistory");
2738
      }
2739
 
2740
      protected updateInventoryHistory_args getEmptyArgsInstance() {
2741
        return new updateInventoryHistory_args();
2742
      }
2743
 
2744
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
2745
        updateInventoryHistory_result result = new updateInventoryHistory_result();
2746
        try {
2747
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
2748
        } catch (InventoryServiceException cex) {
2749
          result.cex = cex;
2750
        }
2751
        return result;
2752
      }
2753
    }
2754
 
2755
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
2756
      public updateInventory() {
2757
        super("updateInventory");
2758
      }
2759
 
2760
      protected updateInventory_args getEmptyArgsInstance() {
2761
        return new updateInventory_args();
2762
      }
2763
 
2764
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
2765
        updateInventory_result result = new updateInventory_result();
2766
        try {
2767
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
2768
        } catch (InventoryServiceException cex) {
2769
          result.cex = cex;
2770
        }
2771
        return result;
2772
      }
2773
    }
2774
 
2775
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
2776
      public addInventory() {
2777
        super("addInventory");
2778
      }
2779
 
2780
      protected addInventory_args getEmptyArgsInstance() {
2781
        return new addInventory_args();
2782
      }
2783
 
2784
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
2785
        addInventory_result result = new addInventory_result();
2786
        try {
2787
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
2788
        } catch (InventoryServiceException cex) {
2789
          result.cex = cex;
2790
        }
2791
        return result;
2792
      }
2793
    }
2794
 
2795
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
2796
      public retireWarehouse() {
2797
        super("retireWarehouse");
2798
      }
2799
 
2800
      protected retireWarehouse_args getEmptyArgsInstance() {
2801
        return new retireWarehouse_args();
2802
      }
2803
 
2804
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
2805
        retireWarehouse_result result = new retireWarehouse_result();
2806
        try {
2807
          iface.retireWarehouse(args.warehouse_id);
2808
        } catch (InventoryServiceException cex) {
2809
          result.cex = cex;
2810
        }
2811
        return result;
2812
      }
2813
    }
2814
 
2815
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
2816
      public getItemInventoryByItemId() {
2817
        super("getItemInventoryByItemId");
2818
      }
2819
 
2820
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
2821
        return new getItemInventoryByItemId_args();
2822
      }
2823
 
2824
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
2825
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
2826
        try {
2827
          result.success = iface.getItemInventoryByItemId(args.item_id);
2828
        } catch (InventoryServiceException cex) {
2829
          result.cex = cex;
2830
        }
2831
        return result;
2832
      }
2833
    }
2834
 
2835
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
2836
      public getItemAvailibilityAtWarehouse() {
2837
        super("getItemAvailibilityAtWarehouse");
2838
      }
2839
 
2840
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
2841
        return new getItemAvailibilityAtWarehouse_args();
2842
      }
2843
 
2844
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
2845
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
2846
        try {
2847
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
2848
          result.setSuccessIsSet(true);
2849
        } catch (InventoryServiceException cex) {
2850
          result.cex = cex;
2851
        }
2852
        return result;
2853
      }
2854
    }
2855
 
2856
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
2857
      public getItemAvailabilityAtLocation() {
2858
        super("getItemAvailabilityAtLocation");
2859
      }
2860
 
2861
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
2862
        return new getItemAvailabilityAtLocation_args();
2863
      }
2864
 
2865
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
2866
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
2867
        try {
5978 rajveer 2868
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 2869
        } catch (InventoryServiceException isex) {
2870
          result.isex = isex;
2871
        }
2872
        return result;
2873
      }
2874
    }
2875
 
2876
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
2877
      public getAllWarehouses() {
2878
        super("getAllWarehouses");
2879
      }
2880
 
2881
      protected getAllWarehouses_args getEmptyArgsInstance() {
2882
        return new getAllWarehouses_args();
2883
      }
2884
 
2885
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
2886
        getAllWarehouses_result result = new getAllWarehouses_result();
2887
        try {
2888
          result.success = iface.getAllWarehouses(args.isActive);
2889
        } catch (InventoryServiceException cex) {
2890
          result.cex = cex;
2891
        }
2892
        return result;
2893
      }
2894
    }
2895
 
2896
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
2897
      public getWarehouse() {
2898
        super("getWarehouse");
2899
      }
2900
 
2901
      protected getWarehouse_args getEmptyArgsInstance() {
2902
        return new getWarehouse_args();
2903
      }
2904
 
2905
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
2906
        getWarehouse_result result = new getWarehouse_result();
2907
        try {
2908
          result.success = iface.getWarehouse(args.warehouse_id);
2909
        } catch (InventoryServiceException cex) {
2910
          result.cex = cex;
2911
        }
2912
        return result;
2913
      }
2914
    }
2915
 
2916
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
2917
      public getAllItemsForWarehouse() {
2918
        super("getAllItemsForWarehouse");
2919
      }
2920
 
2921
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
2922
        return new getAllItemsForWarehouse_args();
2923
      }
2924
 
2925
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
2926
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
2927
        try {
2928
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
2929
        } catch (InventoryServiceException cex) {
2930
          result.cex = cex;
2931
        }
2932
        return result;
2933
      }
2934
    }
2935
 
5967 rajveer 2936
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
2937
      public isOrderBillable() {
2938
        super("isOrderBillable");
2939
      }
2940
 
2941
      protected isOrderBillable_args getEmptyArgsInstance() {
2942
        return new isOrderBillable_args();
2943
      }
2944
 
2945
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
2946
        isOrderBillable_result result = new isOrderBillable_result();
2947
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
2948
        result.setSuccessIsSet(true);
2949
        return result;
2950
      }
2951
    }
2952
 
5945 mandeep.dh 2953
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
2954
      public reserveItemInWarehouse() {
2955
        super("reserveItemInWarehouse");
2956
      }
2957
 
2958
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
2959
        return new reserveItemInWarehouse_args();
2960
      }
2961
 
2962
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
2963
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
2964
        try {
5967 rajveer 2965
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 2966
          result.setSuccessIsSet(true);
2967
        } catch (InventoryServiceException cex) {
2968
          result.cex = cex;
2969
        }
2970
        return result;
2971
      }
2972
    }
2973
 
2974
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
2975
      public reduceReservationCount() {
2976
        super("reduceReservationCount");
2977
      }
2978
 
2979
      protected reduceReservationCount_args getEmptyArgsInstance() {
2980
        return new reduceReservationCount_args();
2981
      }
2982
 
2983
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
2984
        reduceReservationCount_result result = new reduceReservationCount_result();
2985
        try {
5967 rajveer 2986
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 2987
          result.setSuccessIsSet(true);
2988
        } catch (InventoryServiceException cex) {
2989
          result.cex = cex;
2990
        }
2991
        return result;
2992
      }
2993
    }
2994
 
2995
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
2996
      public getItemPricing() {
2997
        super("getItemPricing");
2998
      }
2999
 
3000
      protected getItemPricing_args getEmptyArgsInstance() {
3001
        return new getItemPricing_args();
3002
      }
3003
 
3004
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
3005
        getItemPricing_result result = new getItemPricing_result();
3006
        try {
3007
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
3008
        } catch (InventoryServiceException cex) {
3009
          result.cex = cex;
3010
        }
3011
        return result;
3012
      }
3013
    }
3014
 
3015
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
3016
      public getAllItemPricing() {
3017
        super("getAllItemPricing");
3018
      }
3019
 
3020
      protected getAllItemPricing_args getEmptyArgsInstance() {
3021
        return new getAllItemPricing_args();
3022
      }
3023
 
3024
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
3025
        getAllItemPricing_result result = new getAllItemPricing_result();
3026
        try {
3027
          result.success = iface.getAllItemPricing(args.itemId);
3028
        } catch (InventoryServiceException cex) {
3029
          result.cex = cex;
3030
        }
3031
        return result;
3032
      }
3033
    }
3034
 
3035
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
3036
      public addVendorItemPricing() {
3037
        super("addVendorItemPricing");
3038
      }
3039
 
3040
      protected addVendorItemPricing_args getEmptyArgsInstance() {
3041
        return new addVendorItemPricing_args();
3042
      }
3043
 
3044
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
3045
        addVendorItemPricing_result result = new addVendorItemPricing_result();
3046
        try {
3047
          iface.addVendorItemPricing(args.vendorItemPricing);
3048
        } catch (InventoryServiceException cex) {
3049
          result.cex = cex;
3050
        }
3051
        return result;
3052
      }
3053
    }
3054
 
3055
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
3056
      public getVendor() {
3057
        super("getVendor");
3058
      }
3059
 
3060
      protected getVendor_args getEmptyArgsInstance() {
3061
        return new getVendor_args();
3062
      }
3063
 
3064
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
3065
        getVendor_result result = new getVendor_result();
3066
        result.success = iface.getVendor(args.vendorId);
3067
        return result;
3068
      }
3069
    }
3070
 
3071
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
3072
      public getAllVendors() {
3073
        super("getAllVendors");
3074
      }
3075
 
3076
      protected getAllVendors_args getEmptyArgsInstance() {
3077
        return new getAllVendors_args();
3078
      }
3079
 
3080
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
3081
        getAllVendors_result result = new getAllVendors_result();
3082
        result.success = iface.getAllVendors();
3083
        return result;
3084
      }
3085
    }
3086
 
3087
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
3088
      public addVendorItemMapping() {
3089
        super("addVendorItemMapping");
3090
      }
3091
 
3092
      protected addVendorItemMapping_args getEmptyArgsInstance() {
3093
        return new addVendorItemMapping_args();
3094
      }
3095
 
3096
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
3097
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3098
        try {
3099
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
3100
        } catch (InventoryServiceException cex) {
3101
          result.cex = cex;
3102
        }
3103
        return result;
3104
      }
3105
    }
3106
 
3107
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
3108
      public getVendorItemMappings() {
3109
        super("getVendorItemMappings");
3110
      }
3111
 
3112
      protected getVendorItemMappings_args getEmptyArgsInstance() {
3113
        return new getVendorItemMappings_args();
3114
      }
3115
 
3116
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
3117
        getVendorItemMappings_result result = new getVendorItemMappings_result();
3118
        try {
3119
          result.success = iface.getVendorItemMappings(args.itemId);
3120
        } catch (InventoryServiceException cex) {
3121
          result.cex = cex;
3122
        }
3123
        return result;
3124
      }
3125
    }
3126
 
3127
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
3128
      public getPendingOrdersInventory() {
3129
        super("getPendingOrdersInventory");
3130
      }
3131
 
3132
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
3133
        return new getPendingOrdersInventory_args();
3134
      }
3135
 
3136
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
3137
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
3138
        result.success = iface.getPendingOrdersInventory(args.vendorid);
3139
        return result;
3140
      }
3141
    }
3142
 
3143
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
3144
      public getWarehouses() {
3145
        super("getWarehouses");
3146
      }
3147
 
3148
      protected getWarehouses_args getEmptyArgsInstance() {
3149
        return new getWarehouses_args();
3150
      }
3151
 
3152
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
3153
        getWarehouses_result result = new getWarehouses_result();
3154
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
3155
        return result;
3156
      }
3157
    }
3158
 
3159
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
3160
      public resetAvailability() {
3161
        super("resetAvailability");
3162
      }
3163
 
3164
      protected resetAvailability_args getEmptyArgsInstance() {
3165
        return new resetAvailability_args();
3166
      }
3167
 
3168
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
3169
        resetAvailability_result result = new resetAvailability_result();
3170
        try {
3171
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
3172
        } catch (InventoryServiceException cex) {
3173
          result.cex = cex;
3174
        }
3175
        return result;
3176
      }
3177
    }
3178
 
3179
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
3180
      public resetAvailabilityForWarehouse() {
3181
        super("resetAvailabilityForWarehouse");
3182
      }
3183
 
3184
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
3185
        return new resetAvailabilityForWarehouse_args();
3186
      }
3187
 
3188
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
3189
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
3190
        try {
3191
          iface.resetAvailabilityForWarehouse(args.warehouseId);
3192
        } catch (InventoryServiceException cex) {
3193
          result.cex = cex;
3194
        }
3195
        return result;
3196
      }
3197
    }
3198
 
3199
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
3200
      public getItemKeysToBeProcessed() {
3201
        super("getItemKeysToBeProcessed");
3202
      }
3203
 
3204
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
3205
        return new getItemKeysToBeProcessed_args();
3206
      }
3207
 
3208
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
3209
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
3210
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
3211
        return result;
3212
      }
3213
    }
3214
 
3215
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
3216
      public markMissedInventoryUpdatesAsProcessed() {
3217
        super("markMissedInventoryUpdatesAsProcessed");
3218
      }
3219
 
3220
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
3221
        return new markMissedInventoryUpdatesAsProcessed_args();
3222
      }
3223
 
3224
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
3225
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
3226
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
3227
        return result;
3228
      }
3229
    }
3230
 
3231
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
3232
      public getIgnoredItemKeys() {
3233
        super("getIgnoredItemKeys");
3234
      }
3235
 
3236
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
3237
        return new getIgnoredItemKeys_args();
3238
      }
3239
 
3240
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
3241
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
3242
        result.success = iface.getIgnoredItemKeys();
3243
        return result;
3244
      }
3245
    }
3246
 
3247
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
3248
      public addBadInventory() {
3249
        super("addBadInventory");
3250
      }
3251
 
3252
      protected addBadInventory_args getEmptyArgsInstance() {
3253
        return new addBadInventory_args();
3254
      }
3255
 
3256
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
3257
        addBadInventory_result result = new addBadInventory_result();
3258
        try {
3259
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
3260
        } catch (InventoryServiceException cex) {
3261
          result.cex = cex;
3262
        }
3263
        return result;
3264
      }
3265
    }
3266
 
3267
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
3268
      public getShippingLocations() {
3269
        super("getShippingLocations");
3270
      }
3271
 
3272
      protected getShippingLocations_args getEmptyArgsInstance() {
3273
        return new getShippingLocations_args();
3274
      }
3275
 
3276
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
3277
        getShippingLocations_result result = new getShippingLocations_result();
3278
        result.success = iface.getShippingLocations();
3279
        return result;
3280
      }
3281
    }
3282
 
3283
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
3284
      public getAllVendorItemMappings() {
3285
        super("getAllVendorItemMappings");
3286
      }
3287
 
3288
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
3289
        return new getAllVendorItemMappings_args();
3290
      }
3291
 
3292
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
3293
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
3294
        result.success = iface.getAllVendorItemMappings();
3295
        return result;
3296
      }
3297
    }
3298
 
3299
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
3300
      public getInventorySnapshot() {
3301
        super("getInventorySnapshot");
3302
      }
3303
 
3304
      protected getInventorySnapshot_args getEmptyArgsInstance() {
3305
        return new getInventorySnapshot_args();
3306
      }
3307
 
3308
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
3309
        getInventorySnapshot_result result = new getInventorySnapshot_result();
3310
        result.success = iface.getInventorySnapshot(args.warehouseId);
3311
        return result;
3312
      }
3313
    }
3314
 
3315
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
3316
      public clearItemAvailabilityCache() {
3317
        super("clearItemAvailabilityCache");
3318
      }
3319
 
3320
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
3321
        return new clearItemAvailabilityCache_args();
3322
      }
3323
 
3324
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
3325
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
3326
        iface.clearItemAvailabilityCache();
3327
        return result;
3328
      }
3329
    }
3330
 
3331
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
3332
      public updateVendorString() {
3333
        super("updateVendorString");
3334
      }
3335
 
3336
      protected updateVendorString_args getEmptyArgsInstance() {
3337
        return new updateVendorString_args();
3338
      }
3339
 
3340
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
3341
        updateVendorString_result result = new updateVendorString_result();
3342
        iface.updateVendorString(args.warehouseId, args.vendorString);
3343
        return result;
3344
      }
3345
    }
3346
 
6096 amit.gupta 3347
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
3348
      public clearItemAvailabilityCacheForItem() {
3349
        super("clearItemAvailabilityCacheForItem");
3350
      }
3351
 
3352
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
3353
        return new clearItemAvailabilityCacheForItem_args();
3354
      }
3355
 
3356
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
3357
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
3358
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3359
        return result;
3360
      }
3361
    }
3362
 
6467 amar.kumar 3363
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
3364
      public getOurWarehouseIdForVendor() {
3365
        super("getOurWarehouseIdForVendor");
3366
      }
3367
 
3368
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
3369
        return new getOurWarehouseIdForVendor_args();
3370
      }
3371
 
3372
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
3373
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
3374
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
3375
        result.setSuccessIsSet(true);
3376
        return result;
3377
      }
3378
    }
3379
 
6484 amar.kumar 3380
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
3381
      public getItemAvailabilitiesAtOurWarehouses() {
3382
        super("getItemAvailabilitiesAtOurWarehouses");
3383
      }
3384
 
3385
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
3386
        return new getItemAvailabilitiesAtOurWarehouses_args();
3387
      }
3388
 
3389
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
3390
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
3391
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
3392
        return result;
3393
      }
3394
    }
3395
 
5945 mandeep.dh 3396
  }
3397
 
3398
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3400
 
3401
    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);
3402
 
3403
    private Warehouse warehouse; // required
3404
 
3405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3407
      WAREHOUSE((short)1, "warehouse");
3408
 
3409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3410
 
3411
      static {
3412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3413
          byName.put(field.getFieldName(), field);
3414
        }
3415
      }
3416
 
3417
      /**
3418
       * Find the _Fields constant that matches fieldId, or null if its not found.
3419
       */
3420
      public static _Fields findByThriftId(int fieldId) {
3421
        switch(fieldId) {
3422
          case 1: // WAREHOUSE
3423
            return WAREHOUSE;
3424
          default:
3425
            return null;
3426
        }
3427
      }
3428
 
3429
      /**
3430
       * Find the _Fields constant that matches fieldId, throwing an exception
3431
       * if it is not found.
3432
       */
3433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3434
        _Fields fields = findByThriftId(fieldId);
3435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3436
        return fields;
3437
      }
3438
 
3439
      /**
3440
       * Find the _Fields constant that matches name, or null if its not found.
3441
       */
3442
      public static _Fields findByName(String name) {
3443
        return byName.get(name);
3444
      }
3445
 
3446
      private final short _thriftId;
3447
      private final String _fieldName;
3448
 
3449
      _Fields(short thriftId, String fieldName) {
3450
        _thriftId = thriftId;
3451
        _fieldName = fieldName;
3452
      }
3453
 
3454
      public short getThriftFieldId() {
3455
        return _thriftId;
3456
      }
3457
 
3458
      public String getFieldName() {
3459
        return _fieldName;
3460
      }
3461
    }
3462
 
3463
    // isset id assignments
3464
 
3465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3466
    static {
3467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3468
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3469
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
3470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
3472
    }
3473
 
3474
    public addWarehouse_args() {
3475
    }
3476
 
3477
    public addWarehouse_args(
3478
      Warehouse warehouse)
3479
    {
3480
      this();
3481
      this.warehouse = warehouse;
3482
    }
3483
 
3484
    /**
3485
     * Performs a deep copy on <i>other</i>.
3486
     */
3487
    public addWarehouse_args(addWarehouse_args other) {
3488
      if (other.isSetWarehouse()) {
3489
        this.warehouse = new Warehouse(other.warehouse);
3490
      }
3491
    }
3492
 
3493
    public addWarehouse_args deepCopy() {
3494
      return new addWarehouse_args(this);
3495
    }
3496
 
3497
    @Override
3498
    public void clear() {
3499
      this.warehouse = null;
3500
    }
3501
 
3502
    public Warehouse getWarehouse() {
3503
      return this.warehouse;
3504
    }
3505
 
3506
    public void setWarehouse(Warehouse warehouse) {
3507
      this.warehouse = warehouse;
3508
    }
3509
 
3510
    public void unsetWarehouse() {
3511
      this.warehouse = null;
3512
    }
3513
 
3514
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
3515
    public boolean isSetWarehouse() {
3516
      return this.warehouse != null;
3517
    }
3518
 
3519
    public void setWarehouseIsSet(boolean value) {
3520
      if (!value) {
3521
        this.warehouse = null;
3522
      }
3523
    }
3524
 
3525
    public void setFieldValue(_Fields field, Object value) {
3526
      switch (field) {
3527
      case WAREHOUSE:
3528
        if (value == null) {
3529
          unsetWarehouse();
3530
        } else {
3531
          setWarehouse((Warehouse)value);
3532
        }
3533
        break;
3534
 
3535
      }
3536
    }
3537
 
3538
    public Object getFieldValue(_Fields field) {
3539
      switch (field) {
3540
      case WAREHOUSE:
3541
        return getWarehouse();
3542
 
3543
      }
3544
      throw new IllegalStateException();
3545
    }
3546
 
3547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3548
    public boolean isSet(_Fields field) {
3549
      if (field == null) {
3550
        throw new IllegalArgumentException();
3551
      }
3552
 
3553
      switch (field) {
3554
      case WAREHOUSE:
3555
        return isSetWarehouse();
3556
      }
3557
      throw new IllegalStateException();
3558
    }
3559
 
3560
    @Override
3561
    public boolean equals(Object that) {
3562
      if (that == null)
3563
        return false;
3564
      if (that instanceof addWarehouse_args)
3565
        return this.equals((addWarehouse_args)that);
3566
      return false;
3567
    }
3568
 
3569
    public boolean equals(addWarehouse_args that) {
3570
      if (that == null)
3571
        return false;
3572
 
3573
      boolean this_present_warehouse = true && this.isSetWarehouse();
3574
      boolean that_present_warehouse = true && that.isSetWarehouse();
3575
      if (this_present_warehouse || that_present_warehouse) {
3576
        if (!(this_present_warehouse && that_present_warehouse))
3577
          return false;
3578
        if (!this.warehouse.equals(that.warehouse))
3579
          return false;
3580
      }
3581
 
3582
      return true;
3583
    }
3584
 
3585
    @Override
3586
    public int hashCode() {
3587
      return 0;
3588
    }
3589
 
3590
    public int compareTo(addWarehouse_args other) {
3591
      if (!getClass().equals(other.getClass())) {
3592
        return getClass().getName().compareTo(other.getClass().getName());
3593
      }
3594
 
3595
      int lastComparison = 0;
3596
      addWarehouse_args typedOther = (addWarehouse_args)other;
3597
 
3598
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
3599
      if (lastComparison != 0) {
3600
        return lastComparison;
3601
      }
3602
      if (isSetWarehouse()) {
3603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
3604
        if (lastComparison != 0) {
3605
          return lastComparison;
3606
        }
3607
      }
3608
      return 0;
3609
    }
3610
 
3611
    public _Fields fieldForId(int fieldId) {
3612
      return _Fields.findByThriftId(fieldId);
3613
    }
3614
 
3615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3616
      org.apache.thrift.protocol.TField field;
3617
      iprot.readStructBegin();
3618
      while (true)
3619
      {
3620
        field = iprot.readFieldBegin();
3621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3622
          break;
3623
        }
3624
        switch (field.id) {
3625
          case 1: // WAREHOUSE
3626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3627
              this.warehouse = new Warehouse();
3628
              this.warehouse.read(iprot);
3629
            } else { 
3630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3631
            }
3632
            break;
3633
          default:
3634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3635
        }
3636
        iprot.readFieldEnd();
3637
      }
3638
      iprot.readStructEnd();
3639
      validate();
3640
    }
3641
 
3642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3643
      validate();
3644
 
3645
      oprot.writeStructBegin(STRUCT_DESC);
3646
      if (this.warehouse != null) {
3647
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
3648
        this.warehouse.write(oprot);
3649
        oprot.writeFieldEnd();
3650
      }
3651
      oprot.writeFieldStop();
3652
      oprot.writeStructEnd();
3653
    }
3654
 
3655
    @Override
3656
    public String toString() {
3657
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
3658
      boolean first = true;
3659
 
3660
      sb.append("warehouse:");
3661
      if (this.warehouse == null) {
3662
        sb.append("null");
3663
      } else {
3664
        sb.append(this.warehouse);
3665
      }
3666
      first = false;
3667
      sb.append(")");
3668
      return sb.toString();
3669
    }
3670
 
3671
    public void validate() throws org.apache.thrift.TException {
3672
      // check for required fields
3673
    }
3674
 
3675
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3676
      try {
3677
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3678
      } catch (org.apache.thrift.TException te) {
3679
        throw new java.io.IOException(te);
3680
      }
3681
    }
3682
 
3683
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3684
      try {
3685
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3686
      } catch (org.apache.thrift.TException te) {
3687
        throw new java.io.IOException(te);
3688
      }
3689
    }
3690
 
3691
  }
3692
 
3693
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
3694
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
3695
 
3696
    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);
3697
    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);
3698
 
3699
    private long success; // required
3700
    private InventoryServiceException cex; // required
3701
 
3702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3704
      SUCCESS((short)0, "success"),
3705
      CEX((short)1, "cex");
3706
 
3707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3708
 
3709
      static {
3710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3711
          byName.put(field.getFieldName(), field);
3712
        }
3713
      }
3714
 
3715
      /**
3716
       * Find the _Fields constant that matches fieldId, or null if its not found.
3717
       */
3718
      public static _Fields findByThriftId(int fieldId) {
3719
        switch(fieldId) {
3720
          case 0: // SUCCESS
3721
            return SUCCESS;
3722
          case 1: // CEX
3723
            return CEX;
3724
          default:
3725
            return null;
3726
        }
3727
      }
3728
 
3729
      /**
3730
       * Find the _Fields constant that matches fieldId, throwing an exception
3731
       * if it is not found.
3732
       */
3733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3734
        _Fields fields = findByThriftId(fieldId);
3735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3736
        return fields;
3737
      }
3738
 
3739
      /**
3740
       * Find the _Fields constant that matches name, or null if its not found.
3741
       */
3742
      public static _Fields findByName(String name) {
3743
        return byName.get(name);
3744
      }
3745
 
3746
      private final short _thriftId;
3747
      private final String _fieldName;
3748
 
3749
      _Fields(short thriftId, String fieldName) {
3750
        _thriftId = thriftId;
3751
        _fieldName = fieldName;
3752
      }
3753
 
3754
      public short getThriftFieldId() {
3755
        return _thriftId;
3756
      }
3757
 
3758
      public String getFieldName() {
3759
        return _fieldName;
3760
      }
3761
    }
3762
 
3763
    // isset id assignments
3764
    private static final int __SUCCESS_ISSET_ID = 0;
3765
    private BitSet __isset_bit_vector = new BitSet(1);
3766
 
3767
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3768
    static {
3769
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3770
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3772
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3773
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3774
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3775
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
3776
    }
3777
 
3778
    public addWarehouse_result() {
3779
    }
3780
 
3781
    public addWarehouse_result(
3782
      long success,
3783
      InventoryServiceException cex)
3784
    {
3785
      this();
3786
      this.success = success;
3787
      setSuccessIsSet(true);
3788
      this.cex = cex;
3789
    }
3790
 
3791
    /**
3792
     * Performs a deep copy on <i>other</i>.
3793
     */
3794
    public addWarehouse_result(addWarehouse_result other) {
3795
      __isset_bit_vector.clear();
3796
      __isset_bit_vector.or(other.__isset_bit_vector);
3797
      this.success = other.success;
3798
      if (other.isSetCex()) {
3799
        this.cex = new InventoryServiceException(other.cex);
3800
      }
3801
    }
3802
 
3803
    public addWarehouse_result deepCopy() {
3804
      return new addWarehouse_result(this);
3805
    }
3806
 
3807
    @Override
3808
    public void clear() {
3809
      setSuccessIsSet(false);
3810
      this.success = 0;
3811
      this.cex = null;
3812
    }
3813
 
3814
    public long getSuccess() {
3815
      return this.success;
3816
    }
3817
 
3818
    public void setSuccess(long success) {
3819
      this.success = success;
3820
      setSuccessIsSet(true);
3821
    }
3822
 
3823
    public void unsetSuccess() {
3824
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3825
    }
3826
 
3827
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3828
    public boolean isSetSuccess() {
3829
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3830
    }
3831
 
3832
    public void setSuccessIsSet(boolean value) {
3833
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3834
    }
3835
 
3836
    public InventoryServiceException getCex() {
3837
      return this.cex;
3838
    }
3839
 
3840
    public void setCex(InventoryServiceException cex) {
3841
      this.cex = cex;
3842
    }
3843
 
3844
    public void unsetCex() {
3845
      this.cex = null;
3846
    }
3847
 
3848
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
3849
    public boolean isSetCex() {
3850
      return this.cex != null;
3851
    }
3852
 
3853
    public void setCexIsSet(boolean value) {
3854
      if (!value) {
3855
        this.cex = null;
3856
      }
3857
    }
3858
 
3859
    public void setFieldValue(_Fields field, Object value) {
3860
      switch (field) {
3861
      case SUCCESS:
3862
        if (value == null) {
3863
          unsetSuccess();
3864
        } else {
3865
          setSuccess((Long)value);
3866
        }
3867
        break;
3868
 
3869
      case CEX:
3870
        if (value == null) {
3871
          unsetCex();
3872
        } else {
3873
          setCex((InventoryServiceException)value);
3874
        }
3875
        break;
3876
 
3877
      }
3878
    }
3879
 
3880
    public Object getFieldValue(_Fields field) {
3881
      switch (field) {
3882
      case SUCCESS:
3883
        return Long.valueOf(getSuccess());
3884
 
3885
      case CEX:
3886
        return getCex();
3887
 
3888
      }
3889
      throw new IllegalStateException();
3890
    }
3891
 
3892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3893
    public boolean isSet(_Fields field) {
3894
      if (field == null) {
3895
        throw new IllegalArgumentException();
3896
      }
3897
 
3898
      switch (field) {
3899
      case SUCCESS:
3900
        return isSetSuccess();
3901
      case CEX:
3902
        return isSetCex();
3903
      }
3904
      throw new IllegalStateException();
3905
    }
3906
 
3907
    @Override
3908
    public boolean equals(Object that) {
3909
      if (that == null)
3910
        return false;
3911
      if (that instanceof addWarehouse_result)
3912
        return this.equals((addWarehouse_result)that);
3913
      return false;
3914
    }
3915
 
3916
    public boolean equals(addWarehouse_result that) {
3917
      if (that == null)
3918
        return false;
3919
 
3920
      boolean this_present_success = true;
3921
      boolean that_present_success = true;
3922
      if (this_present_success || that_present_success) {
3923
        if (!(this_present_success && that_present_success))
3924
          return false;
3925
        if (this.success != that.success)
3926
          return false;
3927
      }
3928
 
3929
      boolean this_present_cex = true && this.isSetCex();
3930
      boolean that_present_cex = true && that.isSetCex();
3931
      if (this_present_cex || that_present_cex) {
3932
        if (!(this_present_cex && that_present_cex))
3933
          return false;
3934
        if (!this.cex.equals(that.cex))
3935
          return false;
3936
      }
3937
 
3938
      return true;
3939
    }
3940
 
3941
    @Override
3942
    public int hashCode() {
3943
      return 0;
3944
    }
3945
 
3946
    public int compareTo(addWarehouse_result other) {
3947
      if (!getClass().equals(other.getClass())) {
3948
        return getClass().getName().compareTo(other.getClass().getName());
3949
      }
3950
 
3951
      int lastComparison = 0;
3952
      addWarehouse_result typedOther = (addWarehouse_result)other;
3953
 
3954
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3955
      if (lastComparison != 0) {
3956
        return lastComparison;
3957
      }
3958
      if (isSetSuccess()) {
3959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3960
        if (lastComparison != 0) {
3961
          return lastComparison;
3962
        }
3963
      }
3964
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
3965
      if (lastComparison != 0) {
3966
        return lastComparison;
3967
      }
3968
      if (isSetCex()) {
3969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
3970
        if (lastComparison != 0) {
3971
          return lastComparison;
3972
        }
3973
      }
3974
      return 0;
3975
    }
3976
 
3977
    public _Fields fieldForId(int fieldId) {
3978
      return _Fields.findByThriftId(fieldId);
3979
    }
3980
 
3981
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3982
      org.apache.thrift.protocol.TField field;
3983
      iprot.readStructBegin();
3984
      while (true)
3985
      {
3986
        field = iprot.readFieldBegin();
3987
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3988
          break;
3989
        }
3990
        switch (field.id) {
3991
          case 0: // SUCCESS
3992
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3993
              this.success = iprot.readI64();
3994
              setSuccessIsSet(true);
3995
            } else { 
3996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3997
            }
3998
            break;
3999
          case 1: // CEX
4000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4001
              this.cex = new InventoryServiceException();
4002
              this.cex.read(iprot);
4003
            } else { 
4004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4005
            }
4006
            break;
4007
          default:
4008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4009
        }
4010
        iprot.readFieldEnd();
4011
      }
4012
      iprot.readStructEnd();
4013
      validate();
4014
    }
4015
 
4016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4017
      oprot.writeStructBegin(STRUCT_DESC);
4018
 
4019
      if (this.isSetSuccess()) {
4020
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4021
        oprot.writeI64(this.success);
4022
        oprot.writeFieldEnd();
4023
      } else if (this.isSetCex()) {
4024
        oprot.writeFieldBegin(CEX_FIELD_DESC);
4025
        this.cex.write(oprot);
4026
        oprot.writeFieldEnd();
4027
      }
4028
      oprot.writeFieldStop();
4029
      oprot.writeStructEnd();
4030
    }
4031
 
4032
    @Override
4033
    public String toString() {
4034
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
4035
      boolean first = true;
4036
 
4037
      sb.append("success:");
4038
      sb.append(this.success);
4039
      first = false;
4040
      if (!first) sb.append(", ");
4041
      sb.append("cex:");
4042
      if (this.cex == null) {
4043
        sb.append("null");
4044
      } else {
4045
        sb.append(this.cex);
4046
      }
4047
      first = false;
4048
      sb.append(")");
4049
      return sb.toString();
4050
    }
4051
 
4052
    public void validate() throws org.apache.thrift.TException {
4053
      // check for required fields
4054
    }
4055
 
4056
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4057
      try {
4058
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4059
      } catch (org.apache.thrift.TException te) {
4060
        throw new java.io.IOException(te);
4061
      }
4062
    }
4063
 
4064
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4065
      try {
4066
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4067
      } catch (org.apache.thrift.TException te) {
4068
        throw new java.io.IOException(te);
4069
      }
4070
    }
4071
 
4072
  }
4073
 
4074
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
4075
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
4076
 
4077
    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);
4078
 
4079
    private Vendor vendor; // required
4080
 
4081
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4082
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4083
      VENDOR((short)1, "vendor");
4084
 
4085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4086
 
4087
      static {
4088
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4089
          byName.put(field.getFieldName(), field);
4090
        }
4091
      }
4092
 
4093
      /**
4094
       * Find the _Fields constant that matches fieldId, or null if its not found.
4095
       */
4096
      public static _Fields findByThriftId(int fieldId) {
4097
        switch(fieldId) {
4098
          case 1: // VENDOR
4099
            return VENDOR;
4100
          default:
4101
            return null;
4102
        }
4103
      }
4104
 
4105
      /**
4106
       * Find the _Fields constant that matches fieldId, throwing an exception
4107
       * if it is not found.
4108
       */
4109
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4110
        _Fields fields = findByThriftId(fieldId);
4111
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4112
        return fields;
4113
      }
4114
 
4115
      /**
4116
       * Find the _Fields constant that matches name, or null if its not found.
4117
       */
4118
      public static _Fields findByName(String name) {
4119
        return byName.get(name);
4120
      }
4121
 
4122
      private final short _thriftId;
4123
      private final String _fieldName;
4124
 
4125
      _Fields(short thriftId, String fieldName) {
4126
        _thriftId = thriftId;
4127
        _fieldName = fieldName;
4128
      }
4129
 
4130
      public short getThriftFieldId() {
4131
        return _thriftId;
4132
      }
4133
 
4134
      public String getFieldName() {
4135
        return _fieldName;
4136
      }
4137
    }
4138
 
4139
    // isset id assignments
4140
 
4141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4142
    static {
4143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4144
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4145
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
4146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
4148
    }
4149
 
4150
    public addVendor_args() {
4151
    }
4152
 
4153
    public addVendor_args(
4154
      Vendor vendor)
4155
    {
4156
      this();
4157
      this.vendor = vendor;
4158
    }
4159
 
4160
    /**
4161
     * Performs a deep copy on <i>other</i>.
4162
     */
4163
    public addVendor_args(addVendor_args other) {
4164
      if (other.isSetVendor()) {
4165
        this.vendor = new Vendor(other.vendor);
4166
      }
4167
    }
4168
 
4169
    public addVendor_args deepCopy() {
4170
      return new addVendor_args(this);
4171
    }
4172
 
4173
    @Override
4174
    public void clear() {
4175
      this.vendor = null;
4176
    }
4177
 
4178
    public Vendor getVendor() {
4179
      return this.vendor;
4180
    }
4181
 
4182
    public void setVendor(Vendor vendor) {
4183
      this.vendor = vendor;
4184
    }
4185
 
4186
    public void unsetVendor() {
4187
      this.vendor = null;
4188
    }
4189
 
4190
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
4191
    public boolean isSetVendor() {
4192
      return this.vendor != null;
4193
    }
4194
 
4195
    public void setVendorIsSet(boolean value) {
4196
      if (!value) {
4197
        this.vendor = null;
4198
      }
4199
    }
4200
 
4201
    public void setFieldValue(_Fields field, Object value) {
4202
      switch (field) {
4203
      case VENDOR:
4204
        if (value == null) {
4205
          unsetVendor();
4206
        } else {
4207
          setVendor((Vendor)value);
4208
        }
4209
        break;
4210
 
4211
      }
4212
    }
4213
 
4214
    public Object getFieldValue(_Fields field) {
4215
      switch (field) {
4216
      case VENDOR:
4217
        return getVendor();
4218
 
4219
      }
4220
      throw new IllegalStateException();
4221
    }
4222
 
4223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4224
    public boolean isSet(_Fields field) {
4225
      if (field == null) {
4226
        throw new IllegalArgumentException();
4227
      }
4228
 
4229
      switch (field) {
4230
      case VENDOR:
4231
        return isSetVendor();
4232
      }
4233
      throw new IllegalStateException();
4234
    }
4235
 
4236
    @Override
4237
    public boolean equals(Object that) {
4238
      if (that == null)
4239
        return false;
4240
      if (that instanceof addVendor_args)
4241
        return this.equals((addVendor_args)that);
4242
      return false;
4243
    }
4244
 
4245
    public boolean equals(addVendor_args that) {
4246
      if (that == null)
4247
        return false;
4248
 
4249
      boolean this_present_vendor = true && this.isSetVendor();
4250
      boolean that_present_vendor = true && that.isSetVendor();
4251
      if (this_present_vendor || that_present_vendor) {
4252
        if (!(this_present_vendor && that_present_vendor))
4253
          return false;
4254
        if (!this.vendor.equals(that.vendor))
4255
          return false;
4256
      }
4257
 
4258
      return true;
4259
    }
4260
 
4261
    @Override
4262
    public int hashCode() {
4263
      return 0;
4264
    }
4265
 
4266
    public int compareTo(addVendor_args other) {
4267
      if (!getClass().equals(other.getClass())) {
4268
        return getClass().getName().compareTo(other.getClass().getName());
4269
      }
4270
 
4271
      int lastComparison = 0;
4272
      addVendor_args typedOther = (addVendor_args)other;
4273
 
4274
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
4275
      if (lastComparison != 0) {
4276
        return lastComparison;
4277
      }
4278
      if (isSetVendor()) {
4279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
4280
        if (lastComparison != 0) {
4281
          return lastComparison;
4282
        }
4283
      }
4284
      return 0;
4285
    }
4286
 
4287
    public _Fields fieldForId(int fieldId) {
4288
      return _Fields.findByThriftId(fieldId);
4289
    }
4290
 
4291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4292
      org.apache.thrift.protocol.TField field;
4293
      iprot.readStructBegin();
4294
      while (true)
4295
      {
4296
        field = iprot.readFieldBegin();
4297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4298
          break;
4299
        }
4300
        switch (field.id) {
4301
          case 1: // VENDOR
4302
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4303
              this.vendor = new Vendor();
4304
              this.vendor.read(iprot);
4305
            } else { 
4306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4307
            }
4308
            break;
4309
          default:
4310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4311
        }
4312
        iprot.readFieldEnd();
4313
      }
4314
      iprot.readStructEnd();
4315
      validate();
4316
    }
4317
 
4318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4319
      validate();
4320
 
4321
      oprot.writeStructBegin(STRUCT_DESC);
4322
      if (this.vendor != null) {
4323
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
4324
        this.vendor.write(oprot);
4325
        oprot.writeFieldEnd();
4326
      }
4327
      oprot.writeFieldStop();
4328
      oprot.writeStructEnd();
4329
    }
4330
 
4331
    @Override
4332
    public String toString() {
4333
      StringBuilder sb = new StringBuilder("addVendor_args(");
4334
      boolean first = true;
4335
 
4336
      sb.append("vendor:");
4337
      if (this.vendor == null) {
4338
        sb.append("null");
4339
      } else {
4340
        sb.append(this.vendor);
4341
      }
4342
      first = false;
4343
      sb.append(")");
4344
      return sb.toString();
4345
    }
4346
 
4347
    public void validate() throws org.apache.thrift.TException {
4348
      // check for required fields
4349
    }
4350
 
4351
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4352
      try {
4353
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4354
      } catch (org.apache.thrift.TException te) {
4355
        throw new java.io.IOException(te);
4356
      }
4357
    }
4358
 
4359
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4360
      try {
4361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4362
      } catch (org.apache.thrift.TException te) {
4363
        throw new java.io.IOException(te);
4364
      }
4365
    }
4366
 
4367
  }
4368
 
4369
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
4370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
4371
 
4372
    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);
4373
    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);
4374
 
4375
    private long success; // required
4376
    private InventoryServiceException cex; // required
4377
 
4378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4380
      SUCCESS((short)0, "success"),
4381
      CEX((short)1, "cex");
4382
 
4383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4384
 
4385
      static {
4386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4387
          byName.put(field.getFieldName(), field);
4388
        }
4389
      }
4390
 
4391
      /**
4392
       * Find the _Fields constant that matches fieldId, or null if its not found.
4393
       */
4394
      public static _Fields findByThriftId(int fieldId) {
4395
        switch(fieldId) {
4396
          case 0: // SUCCESS
4397
            return SUCCESS;
4398
          case 1: // CEX
4399
            return CEX;
4400
          default:
4401
            return null;
4402
        }
4403
      }
4404
 
4405
      /**
4406
       * Find the _Fields constant that matches fieldId, throwing an exception
4407
       * if it is not found.
4408
       */
4409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4410
        _Fields fields = findByThriftId(fieldId);
4411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4412
        return fields;
4413
      }
4414
 
4415
      /**
4416
       * Find the _Fields constant that matches name, or null if its not found.
4417
       */
4418
      public static _Fields findByName(String name) {
4419
        return byName.get(name);
4420
      }
4421
 
4422
      private final short _thriftId;
4423
      private final String _fieldName;
4424
 
4425
      _Fields(short thriftId, String fieldName) {
4426
        _thriftId = thriftId;
4427
        _fieldName = fieldName;
4428
      }
4429
 
4430
      public short getThriftFieldId() {
4431
        return _thriftId;
4432
      }
4433
 
4434
      public String getFieldName() {
4435
        return _fieldName;
4436
      }
4437
    }
4438
 
4439
    // isset id assignments
4440
    private static final int __SUCCESS_ISSET_ID = 0;
4441
    private BitSet __isset_bit_vector = new BitSet(1);
4442
 
4443
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4444
    static {
4445
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4446
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4447
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4448
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4449
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4450
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4451
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
4452
    }
4453
 
4454
    public addVendor_result() {
4455
    }
4456
 
4457
    public addVendor_result(
4458
      long success,
4459
      InventoryServiceException cex)
4460
    {
4461
      this();
4462
      this.success = success;
4463
      setSuccessIsSet(true);
4464
      this.cex = cex;
4465
    }
4466
 
4467
    /**
4468
     * Performs a deep copy on <i>other</i>.
4469
     */
4470
    public addVendor_result(addVendor_result other) {
4471
      __isset_bit_vector.clear();
4472
      __isset_bit_vector.or(other.__isset_bit_vector);
4473
      this.success = other.success;
4474
      if (other.isSetCex()) {
4475
        this.cex = new InventoryServiceException(other.cex);
4476
      }
4477
    }
4478
 
4479
    public addVendor_result deepCopy() {
4480
      return new addVendor_result(this);
4481
    }
4482
 
4483
    @Override
4484
    public void clear() {
4485
      setSuccessIsSet(false);
4486
      this.success = 0;
4487
      this.cex = null;
4488
    }
4489
 
4490
    public long getSuccess() {
4491
      return this.success;
4492
    }
4493
 
4494
    public void setSuccess(long success) {
4495
      this.success = success;
4496
      setSuccessIsSet(true);
4497
    }
4498
 
4499
    public void unsetSuccess() {
4500
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4501
    }
4502
 
4503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4504
    public boolean isSetSuccess() {
4505
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4506
    }
4507
 
4508
    public void setSuccessIsSet(boolean value) {
4509
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4510
    }
4511
 
4512
    public InventoryServiceException getCex() {
4513
      return this.cex;
4514
    }
4515
 
4516
    public void setCex(InventoryServiceException cex) {
4517
      this.cex = cex;
4518
    }
4519
 
4520
    public void unsetCex() {
4521
      this.cex = null;
4522
    }
4523
 
4524
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
4525
    public boolean isSetCex() {
4526
      return this.cex != null;
4527
    }
4528
 
4529
    public void setCexIsSet(boolean value) {
4530
      if (!value) {
4531
        this.cex = null;
4532
      }
4533
    }
4534
 
4535
    public void setFieldValue(_Fields field, Object value) {
4536
      switch (field) {
4537
      case SUCCESS:
4538
        if (value == null) {
4539
          unsetSuccess();
4540
        } else {
4541
          setSuccess((Long)value);
4542
        }
4543
        break;
4544
 
4545
      case CEX:
4546
        if (value == null) {
4547
          unsetCex();
4548
        } else {
4549
          setCex((InventoryServiceException)value);
4550
        }
4551
        break;
4552
 
4553
      }
4554
    }
4555
 
4556
    public Object getFieldValue(_Fields field) {
4557
      switch (field) {
4558
      case SUCCESS:
4559
        return Long.valueOf(getSuccess());
4560
 
4561
      case CEX:
4562
        return getCex();
4563
 
4564
      }
4565
      throw new IllegalStateException();
4566
    }
4567
 
4568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4569
    public boolean isSet(_Fields field) {
4570
      if (field == null) {
4571
        throw new IllegalArgumentException();
4572
      }
4573
 
4574
      switch (field) {
4575
      case SUCCESS:
4576
        return isSetSuccess();
4577
      case CEX:
4578
        return isSetCex();
4579
      }
4580
      throw new IllegalStateException();
4581
    }
4582
 
4583
    @Override
4584
    public boolean equals(Object that) {
4585
      if (that == null)
4586
        return false;
4587
      if (that instanceof addVendor_result)
4588
        return this.equals((addVendor_result)that);
4589
      return false;
4590
    }
4591
 
4592
    public boolean equals(addVendor_result that) {
4593
      if (that == null)
4594
        return false;
4595
 
4596
      boolean this_present_success = true;
4597
      boolean that_present_success = true;
4598
      if (this_present_success || that_present_success) {
4599
        if (!(this_present_success && that_present_success))
4600
          return false;
4601
        if (this.success != that.success)
4602
          return false;
4603
      }
4604
 
4605
      boolean this_present_cex = true && this.isSetCex();
4606
      boolean that_present_cex = true && that.isSetCex();
4607
      if (this_present_cex || that_present_cex) {
4608
        if (!(this_present_cex && that_present_cex))
4609
          return false;
4610
        if (!this.cex.equals(that.cex))
4611
          return false;
4612
      }
4613
 
4614
      return true;
4615
    }
4616
 
4617
    @Override
4618
    public int hashCode() {
4619
      return 0;
4620
    }
4621
 
4622
    public int compareTo(addVendor_result other) {
4623
      if (!getClass().equals(other.getClass())) {
4624
        return getClass().getName().compareTo(other.getClass().getName());
4625
      }
4626
 
4627
      int lastComparison = 0;
4628
      addVendor_result typedOther = (addVendor_result)other;
4629
 
4630
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4631
      if (lastComparison != 0) {
4632
        return lastComparison;
4633
      }
4634
      if (isSetSuccess()) {
4635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4636
        if (lastComparison != 0) {
4637
          return lastComparison;
4638
        }
4639
      }
4640
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
4641
      if (lastComparison != 0) {
4642
        return lastComparison;
4643
      }
4644
      if (isSetCex()) {
4645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
4646
        if (lastComparison != 0) {
4647
          return lastComparison;
4648
        }
4649
      }
4650
      return 0;
4651
    }
4652
 
4653
    public _Fields fieldForId(int fieldId) {
4654
      return _Fields.findByThriftId(fieldId);
4655
    }
4656
 
4657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4658
      org.apache.thrift.protocol.TField field;
4659
      iprot.readStructBegin();
4660
      while (true)
4661
      {
4662
        field = iprot.readFieldBegin();
4663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4664
          break;
4665
        }
4666
        switch (field.id) {
4667
          case 0: // SUCCESS
4668
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4669
              this.success = iprot.readI64();
4670
              setSuccessIsSet(true);
4671
            } else { 
4672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4673
            }
4674
            break;
4675
          case 1: // CEX
4676
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4677
              this.cex = new InventoryServiceException();
4678
              this.cex.read(iprot);
4679
            } else { 
4680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4681
            }
4682
            break;
4683
          default:
4684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4685
        }
4686
        iprot.readFieldEnd();
4687
      }
4688
      iprot.readStructEnd();
4689
      validate();
4690
    }
4691
 
4692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4693
      oprot.writeStructBegin(STRUCT_DESC);
4694
 
4695
      if (this.isSetSuccess()) {
4696
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4697
        oprot.writeI64(this.success);
4698
        oprot.writeFieldEnd();
4699
      } else if (this.isSetCex()) {
4700
        oprot.writeFieldBegin(CEX_FIELD_DESC);
4701
        this.cex.write(oprot);
4702
        oprot.writeFieldEnd();
4703
      }
4704
      oprot.writeFieldStop();
4705
      oprot.writeStructEnd();
4706
    }
4707
 
4708
    @Override
4709
    public String toString() {
4710
      StringBuilder sb = new StringBuilder("addVendor_result(");
4711
      boolean first = true;
4712
 
4713
      sb.append("success:");
4714
      sb.append(this.success);
4715
      first = false;
4716
      if (!first) sb.append(", ");
4717
      sb.append("cex:");
4718
      if (this.cex == null) {
4719
        sb.append("null");
4720
      } else {
4721
        sb.append(this.cex);
4722
      }
4723
      first = false;
4724
      sb.append(")");
4725
      return sb.toString();
4726
    }
4727
 
4728
    public void validate() throws org.apache.thrift.TException {
4729
      // check for required fields
4730
    }
4731
 
4732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4733
      try {
4734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4735
      } catch (org.apache.thrift.TException te) {
4736
        throw new java.io.IOException(te);
4737
      }
4738
    }
4739
 
4740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4741
      try {
4742
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4743
      } catch (org.apache.thrift.TException te) {
4744
        throw new java.io.IOException(te);
4745
      }
4746
    }
4747
 
4748
  }
4749
 
4750
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
4751
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
4752
 
4753
    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);
4754
    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);
4755
    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);
4756
 
4757
    private long warehouse_id; // required
4758
    private String timestamp; // required
4759
    private Map<String,Long> availability; // required
4760
 
4761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4763
      WAREHOUSE_ID((short)1, "warehouse_id"),
4764
      TIMESTAMP((short)2, "timestamp"),
4765
      AVAILABILITY((short)3, "availability");
4766
 
4767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4768
 
4769
      static {
4770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4771
          byName.put(field.getFieldName(), field);
4772
        }
4773
      }
4774
 
4775
      /**
4776
       * Find the _Fields constant that matches fieldId, or null if its not found.
4777
       */
4778
      public static _Fields findByThriftId(int fieldId) {
4779
        switch(fieldId) {
4780
          case 1: // WAREHOUSE_ID
4781
            return WAREHOUSE_ID;
4782
          case 2: // TIMESTAMP
4783
            return TIMESTAMP;
4784
          case 3: // AVAILABILITY
4785
            return AVAILABILITY;
4786
          default:
4787
            return null;
4788
        }
4789
      }
4790
 
4791
      /**
4792
       * Find the _Fields constant that matches fieldId, throwing an exception
4793
       * if it is not found.
4794
       */
4795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4796
        _Fields fields = findByThriftId(fieldId);
4797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4798
        return fields;
4799
      }
4800
 
4801
      /**
4802
       * Find the _Fields constant that matches name, or null if its not found.
4803
       */
4804
      public static _Fields findByName(String name) {
4805
        return byName.get(name);
4806
      }
4807
 
4808
      private final short _thriftId;
4809
      private final String _fieldName;
4810
 
4811
      _Fields(short thriftId, String fieldName) {
4812
        _thriftId = thriftId;
4813
        _fieldName = fieldName;
4814
      }
4815
 
4816
      public short getThriftFieldId() {
4817
        return _thriftId;
4818
      }
4819
 
4820
      public String getFieldName() {
4821
        return _fieldName;
4822
      }
4823
    }
4824
 
4825
    // isset id assignments
4826
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
4827
    private BitSet __isset_bit_vector = new BitSet(1);
4828
 
4829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4830
    static {
4831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4832
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4834
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4835
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4836
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4837
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
4838
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
4839
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
4840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
4842
    }
4843
 
4844
    public updateInventoryHistory_args() {
4845
    }
4846
 
4847
    public updateInventoryHistory_args(
4848
      long warehouse_id,
4849
      String timestamp,
4850
      Map<String,Long> availability)
4851
    {
4852
      this();
4853
      this.warehouse_id = warehouse_id;
4854
      setWarehouse_idIsSet(true);
4855
      this.timestamp = timestamp;
4856
      this.availability = availability;
4857
    }
4858
 
4859
    /**
4860
     * Performs a deep copy on <i>other</i>.
4861
     */
4862
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
4863
      __isset_bit_vector.clear();
4864
      __isset_bit_vector.or(other.__isset_bit_vector);
4865
      this.warehouse_id = other.warehouse_id;
4866
      if (other.isSetTimestamp()) {
4867
        this.timestamp = other.timestamp;
4868
      }
4869
      if (other.isSetAvailability()) {
4870
        Map<String,Long> __this__availability = new HashMap<String,Long>();
4871
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
4872
 
4873
          String other_element_key = other_element.getKey();
4874
          Long other_element_value = other_element.getValue();
4875
 
4876
          String __this__availability_copy_key = other_element_key;
4877
 
4878
          Long __this__availability_copy_value = other_element_value;
4879
 
4880
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
4881
        }
4882
        this.availability = __this__availability;
4883
      }
4884
    }
4885
 
4886
    public updateInventoryHistory_args deepCopy() {
4887
      return new updateInventoryHistory_args(this);
4888
    }
4889
 
4890
    @Override
4891
    public void clear() {
4892
      setWarehouse_idIsSet(false);
4893
      this.warehouse_id = 0;
4894
      this.timestamp = null;
4895
      this.availability = null;
4896
    }
4897
 
4898
    public long getWarehouse_id() {
4899
      return this.warehouse_id;
4900
    }
4901
 
4902
    public void setWarehouse_id(long warehouse_id) {
4903
      this.warehouse_id = warehouse_id;
4904
      setWarehouse_idIsSet(true);
4905
    }
4906
 
4907
    public void unsetWarehouse_id() {
4908
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
4909
    }
4910
 
4911
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
4912
    public boolean isSetWarehouse_id() {
4913
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
4914
    }
4915
 
4916
    public void setWarehouse_idIsSet(boolean value) {
4917
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
4918
    }
4919
 
4920
    public String getTimestamp() {
4921
      return this.timestamp;
4922
    }
4923
 
4924
    public void setTimestamp(String timestamp) {
4925
      this.timestamp = timestamp;
4926
    }
4927
 
4928
    public void unsetTimestamp() {
4929
      this.timestamp = null;
4930
    }
4931
 
4932
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
4933
    public boolean isSetTimestamp() {
4934
      return this.timestamp != null;
4935
    }
4936
 
4937
    public void setTimestampIsSet(boolean value) {
4938
      if (!value) {
4939
        this.timestamp = null;
4940
      }
4941
    }
4942
 
4943
    public int getAvailabilitySize() {
4944
      return (this.availability == null) ? 0 : this.availability.size();
4945
    }
4946
 
4947
    public void putToAvailability(String key, long val) {
4948
      if (this.availability == null) {
4949
        this.availability = new HashMap<String,Long>();
4950
      }
4951
      this.availability.put(key, val);
4952
    }
4953
 
4954
    public Map<String,Long> getAvailability() {
4955
      return this.availability;
4956
    }
4957
 
4958
    public void setAvailability(Map<String,Long> availability) {
4959
      this.availability = availability;
4960
    }
4961
 
4962
    public void unsetAvailability() {
4963
      this.availability = null;
4964
    }
4965
 
4966
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
4967
    public boolean isSetAvailability() {
4968
      return this.availability != null;
4969
    }
4970
 
4971
    public void setAvailabilityIsSet(boolean value) {
4972
      if (!value) {
4973
        this.availability = null;
4974
      }
4975
    }
4976
 
4977
    public void setFieldValue(_Fields field, Object value) {
4978
      switch (field) {
4979
      case WAREHOUSE_ID:
4980
        if (value == null) {
4981
          unsetWarehouse_id();
4982
        } else {
4983
          setWarehouse_id((Long)value);
4984
        }
4985
        break;
4986
 
4987
      case TIMESTAMP:
4988
        if (value == null) {
4989
          unsetTimestamp();
4990
        } else {
4991
          setTimestamp((String)value);
4992
        }
4993
        break;
4994
 
4995
      case AVAILABILITY:
4996
        if (value == null) {
4997
          unsetAvailability();
4998
        } else {
4999
          setAvailability((Map<String,Long>)value);
5000
        }
5001
        break;
5002
 
5003
      }
5004
    }
5005
 
5006
    public Object getFieldValue(_Fields field) {
5007
      switch (field) {
5008
      case WAREHOUSE_ID:
5009
        return Long.valueOf(getWarehouse_id());
5010
 
5011
      case TIMESTAMP:
5012
        return getTimestamp();
5013
 
5014
      case AVAILABILITY:
5015
        return getAvailability();
5016
 
5017
      }
5018
      throw new IllegalStateException();
5019
    }
5020
 
5021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5022
    public boolean isSet(_Fields field) {
5023
      if (field == null) {
5024
        throw new IllegalArgumentException();
5025
      }
5026
 
5027
      switch (field) {
5028
      case WAREHOUSE_ID:
5029
        return isSetWarehouse_id();
5030
      case TIMESTAMP:
5031
        return isSetTimestamp();
5032
      case AVAILABILITY:
5033
        return isSetAvailability();
5034
      }
5035
      throw new IllegalStateException();
5036
    }
5037
 
5038
    @Override
5039
    public boolean equals(Object that) {
5040
      if (that == null)
5041
        return false;
5042
      if (that instanceof updateInventoryHistory_args)
5043
        return this.equals((updateInventoryHistory_args)that);
5044
      return false;
5045
    }
5046
 
5047
    public boolean equals(updateInventoryHistory_args that) {
5048
      if (that == null)
5049
        return false;
5050
 
5051
      boolean this_present_warehouse_id = true;
5052
      boolean that_present_warehouse_id = true;
5053
      if (this_present_warehouse_id || that_present_warehouse_id) {
5054
        if (!(this_present_warehouse_id && that_present_warehouse_id))
5055
          return false;
5056
        if (this.warehouse_id != that.warehouse_id)
5057
          return false;
5058
      }
5059
 
5060
      boolean this_present_timestamp = true && this.isSetTimestamp();
5061
      boolean that_present_timestamp = true && that.isSetTimestamp();
5062
      if (this_present_timestamp || that_present_timestamp) {
5063
        if (!(this_present_timestamp && that_present_timestamp))
5064
          return false;
5065
        if (!this.timestamp.equals(that.timestamp))
5066
          return false;
5067
      }
5068
 
5069
      boolean this_present_availability = true && this.isSetAvailability();
5070
      boolean that_present_availability = true && that.isSetAvailability();
5071
      if (this_present_availability || that_present_availability) {
5072
        if (!(this_present_availability && that_present_availability))
5073
          return false;
5074
        if (!this.availability.equals(that.availability))
5075
          return false;
5076
      }
5077
 
5078
      return true;
5079
    }
5080
 
5081
    @Override
5082
    public int hashCode() {
5083
      return 0;
5084
    }
5085
 
5086
    public int compareTo(updateInventoryHistory_args other) {
5087
      if (!getClass().equals(other.getClass())) {
5088
        return getClass().getName().compareTo(other.getClass().getName());
5089
      }
5090
 
5091
      int lastComparison = 0;
5092
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
5093
 
5094
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5095
      if (lastComparison != 0) {
5096
        return lastComparison;
5097
      }
5098
      if (isSetWarehouse_id()) {
5099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5100
        if (lastComparison != 0) {
5101
          return lastComparison;
5102
        }
5103
      }
5104
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5105
      if (lastComparison != 0) {
5106
        return lastComparison;
5107
      }
5108
      if (isSetTimestamp()) {
5109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5110
        if (lastComparison != 0) {
5111
          return lastComparison;
5112
        }
5113
      }
5114
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5115
      if (lastComparison != 0) {
5116
        return lastComparison;
5117
      }
5118
      if (isSetAvailability()) {
5119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5120
        if (lastComparison != 0) {
5121
          return lastComparison;
5122
        }
5123
      }
5124
      return 0;
5125
    }
5126
 
5127
    public _Fields fieldForId(int fieldId) {
5128
      return _Fields.findByThriftId(fieldId);
5129
    }
5130
 
5131
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5132
      org.apache.thrift.protocol.TField field;
5133
      iprot.readStructBegin();
5134
      while (true)
5135
      {
5136
        field = iprot.readFieldBegin();
5137
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5138
          break;
5139
        }
5140
        switch (field.id) {
5141
          case 1: // WAREHOUSE_ID
5142
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5143
              this.warehouse_id = iprot.readI64();
5144
              setWarehouse_idIsSet(true);
5145
            } else { 
5146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5147
            }
5148
            break;
5149
          case 2: // TIMESTAMP
5150
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5151
              this.timestamp = iprot.readString();
5152
            } else { 
5153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5154
            }
5155
            break;
5156
          case 3: // AVAILABILITY
5157
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5158
              {
5159
                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
5160
                this.availability = new HashMap<String,Long>(2*_map10.size);
5161
                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
5162
                {
5163
                  String _key12; // required
5164
                  long _val13; // required
5165
                  _key12 = iprot.readString();
5166
                  _val13 = iprot.readI64();
5167
                  this.availability.put(_key12, _val13);
5168
                }
5169
                iprot.readMapEnd();
5170
              }
5171
            } else { 
5172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5173
            }
5174
            break;
5175
          default:
5176
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5177
        }
5178
        iprot.readFieldEnd();
5179
      }
5180
      iprot.readStructEnd();
5181
      validate();
5182
    }
5183
 
5184
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5185
      validate();
5186
 
5187
      oprot.writeStructBegin(STRUCT_DESC);
5188
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5189
      oprot.writeI64(this.warehouse_id);
5190
      oprot.writeFieldEnd();
5191
      if (this.timestamp != null) {
5192
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
5193
        oprot.writeString(this.timestamp);
5194
        oprot.writeFieldEnd();
5195
      }
5196
      if (this.availability != null) {
5197
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5198
        {
5199
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
5200
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
5201
          {
5202
            oprot.writeString(_iter14.getKey());
5203
            oprot.writeI64(_iter14.getValue());
5204
          }
5205
          oprot.writeMapEnd();
5206
        }
5207
        oprot.writeFieldEnd();
5208
      }
5209
      oprot.writeFieldStop();
5210
      oprot.writeStructEnd();
5211
    }
5212
 
5213
    @Override
5214
    public String toString() {
5215
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
5216
      boolean first = true;
5217
 
5218
      sb.append("warehouse_id:");
5219
      sb.append(this.warehouse_id);
5220
      first = false;
5221
      if (!first) sb.append(", ");
5222
      sb.append("timestamp:");
5223
      if (this.timestamp == null) {
5224
        sb.append("null");
5225
      } else {
5226
        sb.append(this.timestamp);
5227
      }
5228
      first = false;
5229
      if (!first) sb.append(", ");
5230
      sb.append("availability:");
5231
      if (this.availability == null) {
5232
        sb.append("null");
5233
      } else {
5234
        sb.append(this.availability);
5235
      }
5236
      first = false;
5237
      sb.append(")");
5238
      return sb.toString();
5239
    }
5240
 
5241
    public void validate() throws org.apache.thrift.TException {
5242
      // check for required fields
5243
    }
5244
 
5245
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5246
      try {
5247
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5248
      } catch (org.apache.thrift.TException te) {
5249
        throw new java.io.IOException(te);
5250
      }
5251
    }
5252
 
5253
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5254
      try {
5255
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5256
      } catch (org.apache.thrift.TException te) {
5257
        throw new java.io.IOException(te);
5258
      }
5259
    }
5260
 
5261
  }
5262
 
5263
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
5264
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
5265
 
5266
    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);
5267
 
5268
    private InventoryServiceException cex; // required
5269
 
5270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5272
      CEX((short)1, "cex");
5273
 
5274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5275
 
5276
      static {
5277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5278
          byName.put(field.getFieldName(), field);
5279
        }
5280
      }
5281
 
5282
      /**
5283
       * Find the _Fields constant that matches fieldId, or null if its not found.
5284
       */
5285
      public static _Fields findByThriftId(int fieldId) {
5286
        switch(fieldId) {
5287
          case 1: // CEX
5288
            return CEX;
5289
          default:
5290
            return null;
5291
        }
5292
      }
5293
 
5294
      /**
5295
       * Find the _Fields constant that matches fieldId, throwing an exception
5296
       * if it is not found.
5297
       */
5298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5299
        _Fields fields = findByThriftId(fieldId);
5300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5301
        return fields;
5302
      }
5303
 
5304
      /**
5305
       * Find the _Fields constant that matches name, or null if its not found.
5306
       */
5307
      public static _Fields findByName(String name) {
5308
        return byName.get(name);
5309
      }
5310
 
5311
      private final short _thriftId;
5312
      private final String _fieldName;
5313
 
5314
      _Fields(short thriftId, String fieldName) {
5315
        _thriftId = thriftId;
5316
        _fieldName = fieldName;
5317
      }
5318
 
5319
      public short getThriftFieldId() {
5320
        return _thriftId;
5321
      }
5322
 
5323
      public String getFieldName() {
5324
        return _fieldName;
5325
      }
5326
    }
5327
 
5328
    // isset id assignments
5329
 
5330
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5331
    static {
5332
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5333
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
5337
    }
5338
 
5339
    public updateInventoryHistory_result() {
5340
    }
5341
 
5342
    public updateInventoryHistory_result(
5343
      InventoryServiceException cex)
5344
    {
5345
      this();
5346
      this.cex = cex;
5347
    }
5348
 
5349
    /**
5350
     * Performs a deep copy on <i>other</i>.
5351
     */
5352
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
5353
      if (other.isSetCex()) {
5354
        this.cex = new InventoryServiceException(other.cex);
5355
      }
5356
    }
5357
 
5358
    public updateInventoryHistory_result deepCopy() {
5359
      return new updateInventoryHistory_result(this);
5360
    }
5361
 
5362
    @Override
5363
    public void clear() {
5364
      this.cex = null;
5365
    }
5366
 
5367
    public InventoryServiceException getCex() {
5368
      return this.cex;
5369
    }
5370
 
5371
    public void setCex(InventoryServiceException cex) {
5372
      this.cex = cex;
5373
    }
5374
 
5375
    public void unsetCex() {
5376
      this.cex = null;
5377
    }
5378
 
5379
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5380
    public boolean isSetCex() {
5381
      return this.cex != null;
5382
    }
5383
 
5384
    public void setCexIsSet(boolean value) {
5385
      if (!value) {
5386
        this.cex = null;
5387
      }
5388
    }
5389
 
5390
    public void setFieldValue(_Fields field, Object value) {
5391
      switch (field) {
5392
      case CEX:
5393
        if (value == null) {
5394
          unsetCex();
5395
        } else {
5396
          setCex((InventoryServiceException)value);
5397
        }
5398
        break;
5399
 
5400
      }
5401
    }
5402
 
5403
    public Object getFieldValue(_Fields field) {
5404
      switch (field) {
5405
      case CEX:
5406
        return getCex();
5407
 
5408
      }
5409
      throw new IllegalStateException();
5410
    }
5411
 
5412
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5413
    public boolean isSet(_Fields field) {
5414
      if (field == null) {
5415
        throw new IllegalArgumentException();
5416
      }
5417
 
5418
      switch (field) {
5419
      case CEX:
5420
        return isSetCex();
5421
      }
5422
      throw new IllegalStateException();
5423
    }
5424
 
5425
    @Override
5426
    public boolean equals(Object that) {
5427
      if (that == null)
5428
        return false;
5429
      if (that instanceof updateInventoryHistory_result)
5430
        return this.equals((updateInventoryHistory_result)that);
5431
      return false;
5432
    }
5433
 
5434
    public boolean equals(updateInventoryHistory_result that) {
5435
      if (that == null)
5436
        return false;
5437
 
5438
      boolean this_present_cex = true && this.isSetCex();
5439
      boolean that_present_cex = true && that.isSetCex();
5440
      if (this_present_cex || that_present_cex) {
5441
        if (!(this_present_cex && that_present_cex))
5442
          return false;
5443
        if (!this.cex.equals(that.cex))
5444
          return false;
5445
      }
5446
 
5447
      return true;
5448
    }
5449
 
5450
    @Override
5451
    public int hashCode() {
5452
      return 0;
5453
    }
5454
 
5455
    public int compareTo(updateInventoryHistory_result other) {
5456
      if (!getClass().equals(other.getClass())) {
5457
        return getClass().getName().compareTo(other.getClass().getName());
5458
      }
5459
 
5460
      int lastComparison = 0;
5461
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
5462
 
5463
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5464
      if (lastComparison != 0) {
5465
        return lastComparison;
5466
      }
5467
      if (isSetCex()) {
5468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5469
        if (lastComparison != 0) {
5470
          return lastComparison;
5471
        }
5472
      }
5473
      return 0;
5474
    }
5475
 
5476
    public _Fields fieldForId(int fieldId) {
5477
      return _Fields.findByThriftId(fieldId);
5478
    }
5479
 
5480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5481
      org.apache.thrift.protocol.TField field;
5482
      iprot.readStructBegin();
5483
      while (true)
5484
      {
5485
        field = iprot.readFieldBegin();
5486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5487
          break;
5488
        }
5489
        switch (field.id) {
5490
          case 1: // CEX
5491
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5492
              this.cex = new InventoryServiceException();
5493
              this.cex.read(iprot);
5494
            } else { 
5495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5496
            }
5497
            break;
5498
          default:
5499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5500
        }
5501
        iprot.readFieldEnd();
5502
      }
5503
      iprot.readStructEnd();
5504
      validate();
5505
    }
5506
 
5507
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5508
      oprot.writeStructBegin(STRUCT_DESC);
5509
 
5510
      if (this.isSetCex()) {
5511
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5512
        this.cex.write(oprot);
5513
        oprot.writeFieldEnd();
5514
      }
5515
      oprot.writeFieldStop();
5516
      oprot.writeStructEnd();
5517
    }
5518
 
5519
    @Override
5520
    public String toString() {
5521
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
5522
      boolean first = true;
5523
 
5524
      sb.append("cex:");
5525
      if (this.cex == null) {
5526
        sb.append("null");
5527
      } else {
5528
        sb.append(this.cex);
5529
      }
5530
      first = false;
5531
      sb.append(")");
5532
      return sb.toString();
5533
    }
5534
 
5535
    public void validate() throws org.apache.thrift.TException {
5536
      // check for required fields
5537
    }
5538
 
5539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5540
      try {
5541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5542
      } catch (org.apache.thrift.TException te) {
5543
        throw new java.io.IOException(te);
5544
      }
5545
    }
5546
 
5547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5548
      try {
5549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5550
      } catch (org.apache.thrift.TException te) {
5551
        throw new java.io.IOException(te);
5552
      }
5553
    }
5554
 
5555
  }
5556
 
5557
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
5558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
5559
 
5560
    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);
5561
    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);
5562
    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);
5563
 
5564
    private long warehouse_id; // required
5565
    private String timestamp; // required
5566
    private Map<String,Long> availability; // required
5567
 
5568
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5569
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5570
      WAREHOUSE_ID((short)1, "warehouse_id"),
5571
      TIMESTAMP((short)2, "timestamp"),
5572
      AVAILABILITY((short)3, "availability");
5573
 
5574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5575
 
5576
      static {
5577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5578
          byName.put(field.getFieldName(), field);
5579
        }
5580
      }
5581
 
5582
      /**
5583
       * Find the _Fields constant that matches fieldId, or null if its not found.
5584
       */
5585
      public static _Fields findByThriftId(int fieldId) {
5586
        switch(fieldId) {
5587
          case 1: // WAREHOUSE_ID
5588
            return WAREHOUSE_ID;
5589
          case 2: // TIMESTAMP
5590
            return TIMESTAMP;
5591
          case 3: // AVAILABILITY
5592
            return AVAILABILITY;
5593
          default:
5594
            return null;
5595
        }
5596
      }
5597
 
5598
      /**
5599
       * Find the _Fields constant that matches fieldId, throwing an exception
5600
       * if it is not found.
5601
       */
5602
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5603
        _Fields fields = findByThriftId(fieldId);
5604
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5605
        return fields;
5606
      }
5607
 
5608
      /**
5609
       * Find the _Fields constant that matches name, or null if its not found.
5610
       */
5611
      public static _Fields findByName(String name) {
5612
        return byName.get(name);
5613
      }
5614
 
5615
      private final short _thriftId;
5616
      private final String _fieldName;
5617
 
5618
      _Fields(short thriftId, String fieldName) {
5619
        _thriftId = thriftId;
5620
        _fieldName = fieldName;
5621
      }
5622
 
5623
      public short getThriftFieldId() {
5624
        return _thriftId;
5625
      }
5626
 
5627
      public String getFieldName() {
5628
        return _fieldName;
5629
      }
5630
    }
5631
 
5632
    // isset id assignments
5633
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
5634
    private BitSet __isset_bit_vector = new BitSet(1);
5635
 
5636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5637
    static {
5638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5639
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5641
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5643
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5644
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
5645
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
5646
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
5647
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5648
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
5649
    }
5650
 
5651
    public updateInventory_args() {
5652
    }
5653
 
5654
    public updateInventory_args(
5655
      long warehouse_id,
5656
      String timestamp,
5657
      Map<String,Long> availability)
5658
    {
5659
      this();
5660
      this.warehouse_id = warehouse_id;
5661
      setWarehouse_idIsSet(true);
5662
      this.timestamp = timestamp;
5663
      this.availability = availability;
5664
    }
5665
 
5666
    /**
5667
     * Performs a deep copy on <i>other</i>.
5668
     */
5669
    public updateInventory_args(updateInventory_args other) {
5670
      __isset_bit_vector.clear();
5671
      __isset_bit_vector.or(other.__isset_bit_vector);
5672
      this.warehouse_id = other.warehouse_id;
5673
      if (other.isSetTimestamp()) {
5674
        this.timestamp = other.timestamp;
5675
      }
5676
      if (other.isSetAvailability()) {
5677
        Map<String,Long> __this__availability = new HashMap<String,Long>();
5678
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
5679
 
5680
          String other_element_key = other_element.getKey();
5681
          Long other_element_value = other_element.getValue();
5682
 
5683
          String __this__availability_copy_key = other_element_key;
5684
 
5685
          Long __this__availability_copy_value = other_element_value;
5686
 
5687
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
5688
        }
5689
        this.availability = __this__availability;
5690
      }
5691
    }
5692
 
5693
    public updateInventory_args deepCopy() {
5694
      return new updateInventory_args(this);
5695
    }
5696
 
5697
    @Override
5698
    public void clear() {
5699
      setWarehouse_idIsSet(false);
5700
      this.warehouse_id = 0;
5701
      this.timestamp = null;
5702
      this.availability = null;
5703
    }
5704
 
5705
    public long getWarehouse_id() {
5706
      return this.warehouse_id;
5707
    }
5708
 
5709
    public void setWarehouse_id(long warehouse_id) {
5710
      this.warehouse_id = warehouse_id;
5711
      setWarehouse_idIsSet(true);
5712
    }
5713
 
5714
    public void unsetWarehouse_id() {
5715
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
5716
    }
5717
 
5718
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
5719
    public boolean isSetWarehouse_id() {
5720
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
5721
    }
5722
 
5723
    public void setWarehouse_idIsSet(boolean value) {
5724
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
5725
    }
5726
 
5727
    public String getTimestamp() {
5728
      return this.timestamp;
5729
    }
5730
 
5731
    public void setTimestamp(String timestamp) {
5732
      this.timestamp = timestamp;
5733
    }
5734
 
5735
    public void unsetTimestamp() {
5736
      this.timestamp = null;
5737
    }
5738
 
5739
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
5740
    public boolean isSetTimestamp() {
5741
      return this.timestamp != null;
5742
    }
5743
 
5744
    public void setTimestampIsSet(boolean value) {
5745
      if (!value) {
5746
        this.timestamp = null;
5747
      }
5748
    }
5749
 
5750
    public int getAvailabilitySize() {
5751
      return (this.availability == null) ? 0 : this.availability.size();
5752
    }
5753
 
5754
    public void putToAvailability(String key, long val) {
5755
      if (this.availability == null) {
5756
        this.availability = new HashMap<String,Long>();
5757
      }
5758
      this.availability.put(key, val);
5759
    }
5760
 
5761
    public Map<String,Long> getAvailability() {
5762
      return this.availability;
5763
    }
5764
 
5765
    public void setAvailability(Map<String,Long> availability) {
5766
      this.availability = availability;
5767
    }
5768
 
5769
    public void unsetAvailability() {
5770
      this.availability = null;
5771
    }
5772
 
5773
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
5774
    public boolean isSetAvailability() {
5775
      return this.availability != null;
5776
    }
5777
 
5778
    public void setAvailabilityIsSet(boolean value) {
5779
      if (!value) {
5780
        this.availability = null;
5781
      }
5782
    }
5783
 
5784
    public void setFieldValue(_Fields field, Object value) {
5785
      switch (field) {
5786
      case WAREHOUSE_ID:
5787
        if (value == null) {
5788
          unsetWarehouse_id();
5789
        } else {
5790
          setWarehouse_id((Long)value);
5791
        }
5792
        break;
5793
 
5794
      case TIMESTAMP:
5795
        if (value == null) {
5796
          unsetTimestamp();
5797
        } else {
5798
          setTimestamp((String)value);
5799
        }
5800
        break;
5801
 
5802
      case AVAILABILITY:
5803
        if (value == null) {
5804
          unsetAvailability();
5805
        } else {
5806
          setAvailability((Map<String,Long>)value);
5807
        }
5808
        break;
5809
 
5810
      }
5811
    }
5812
 
5813
    public Object getFieldValue(_Fields field) {
5814
      switch (field) {
5815
      case WAREHOUSE_ID:
5816
        return Long.valueOf(getWarehouse_id());
5817
 
5818
      case TIMESTAMP:
5819
        return getTimestamp();
5820
 
5821
      case AVAILABILITY:
5822
        return getAvailability();
5823
 
5824
      }
5825
      throw new IllegalStateException();
5826
    }
5827
 
5828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5829
    public boolean isSet(_Fields field) {
5830
      if (field == null) {
5831
        throw new IllegalArgumentException();
5832
      }
5833
 
5834
      switch (field) {
5835
      case WAREHOUSE_ID:
5836
        return isSetWarehouse_id();
5837
      case TIMESTAMP:
5838
        return isSetTimestamp();
5839
      case AVAILABILITY:
5840
        return isSetAvailability();
5841
      }
5842
      throw new IllegalStateException();
5843
    }
5844
 
5845
    @Override
5846
    public boolean equals(Object that) {
5847
      if (that == null)
5848
        return false;
5849
      if (that instanceof updateInventory_args)
5850
        return this.equals((updateInventory_args)that);
5851
      return false;
5852
    }
5853
 
5854
    public boolean equals(updateInventory_args that) {
5855
      if (that == null)
5856
        return false;
5857
 
5858
      boolean this_present_warehouse_id = true;
5859
      boolean that_present_warehouse_id = true;
5860
      if (this_present_warehouse_id || that_present_warehouse_id) {
5861
        if (!(this_present_warehouse_id && that_present_warehouse_id))
5862
          return false;
5863
        if (this.warehouse_id != that.warehouse_id)
5864
          return false;
5865
      }
5866
 
5867
      boolean this_present_timestamp = true && this.isSetTimestamp();
5868
      boolean that_present_timestamp = true && that.isSetTimestamp();
5869
      if (this_present_timestamp || that_present_timestamp) {
5870
        if (!(this_present_timestamp && that_present_timestamp))
5871
          return false;
5872
        if (!this.timestamp.equals(that.timestamp))
5873
          return false;
5874
      }
5875
 
5876
      boolean this_present_availability = true && this.isSetAvailability();
5877
      boolean that_present_availability = true && that.isSetAvailability();
5878
      if (this_present_availability || that_present_availability) {
5879
        if (!(this_present_availability && that_present_availability))
5880
          return false;
5881
        if (!this.availability.equals(that.availability))
5882
          return false;
5883
      }
5884
 
5885
      return true;
5886
    }
5887
 
5888
    @Override
5889
    public int hashCode() {
5890
      return 0;
5891
    }
5892
 
5893
    public int compareTo(updateInventory_args other) {
5894
      if (!getClass().equals(other.getClass())) {
5895
        return getClass().getName().compareTo(other.getClass().getName());
5896
      }
5897
 
5898
      int lastComparison = 0;
5899
      updateInventory_args typedOther = (updateInventory_args)other;
5900
 
5901
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5902
      if (lastComparison != 0) {
5903
        return lastComparison;
5904
      }
5905
      if (isSetWarehouse_id()) {
5906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5907
        if (lastComparison != 0) {
5908
          return lastComparison;
5909
        }
5910
      }
5911
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5912
      if (lastComparison != 0) {
5913
        return lastComparison;
5914
      }
5915
      if (isSetTimestamp()) {
5916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5917
        if (lastComparison != 0) {
5918
          return lastComparison;
5919
        }
5920
      }
5921
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5922
      if (lastComparison != 0) {
5923
        return lastComparison;
5924
      }
5925
      if (isSetAvailability()) {
5926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5927
        if (lastComparison != 0) {
5928
          return lastComparison;
5929
        }
5930
      }
5931
      return 0;
5932
    }
5933
 
5934
    public _Fields fieldForId(int fieldId) {
5935
      return _Fields.findByThriftId(fieldId);
5936
    }
5937
 
5938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5939
      org.apache.thrift.protocol.TField field;
5940
      iprot.readStructBegin();
5941
      while (true)
5942
      {
5943
        field = iprot.readFieldBegin();
5944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5945
          break;
5946
        }
5947
        switch (field.id) {
5948
          case 1: // WAREHOUSE_ID
5949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5950
              this.warehouse_id = iprot.readI64();
5951
              setWarehouse_idIsSet(true);
5952
            } else { 
5953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5954
            }
5955
            break;
5956
          case 2: // TIMESTAMP
5957
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5958
              this.timestamp = iprot.readString();
5959
            } else { 
5960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5961
            }
5962
            break;
5963
          case 3: // AVAILABILITY
5964
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5965
              {
5966
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
5967
                this.availability = new HashMap<String,Long>(2*_map15.size);
5968
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
5969
                {
5970
                  String _key17; // required
5971
                  long _val18; // required
5972
                  _key17 = iprot.readString();
5973
                  _val18 = iprot.readI64();
5974
                  this.availability.put(_key17, _val18);
5975
                }
5976
                iprot.readMapEnd();
5977
              }
5978
            } else { 
5979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5980
            }
5981
            break;
5982
          default:
5983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5984
        }
5985
        iprot.readFieldEnd();
5986
      }
5987
      iprot.readStructEnd();
5988
      validate();
5989
    }
5990
 
5991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5992
      validate();
5993
 
5994
      oprot.writeStructBegin(STRUCT_DESC);
5995
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5996
      oprot.writeI64(this.warehouse_id);
5997
      oprot.writeFieldEnd();
5998
      if (this.timestamp != null) {
5999
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6000
        oprot.writeString(this.timestamp);
6001
        oprot.writeFieldEnd();
6002
      }
6003
      if (this.availability != null) {
6004
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6005
        {
6006
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
6007
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
6008
          {
6009
            oprot.writeString(_iter19.getKey());
6010
            oprot.writeI64(_iter19.getValue());
6011
          }
6012
          oprot.writeMapEnd();
6013
        }
6014
        oprot.writeFieldEnd();
6015
      }
6016
      oprot.writeFieldStop();
6017
      oprot.writeStructEnd();
6018
    }
6019
 
6020
    @Override
6021
    public String toString() {
6022
      StringBuilder sb = new StringBuilder("updateInventory_args(");
6023
      boolean first = true;
6024
 
6025
      sb.append("warehouse_id:");
6026
      sb.append(this.warehouse_id);
6027
      first = false;
6028
      if (!first) sb.append(", ");
6029
      sb.append("timestamp:");
6030
      if (this.timestamp == null) {
6031
        sb.append("null");
6032
      } else {
6033
        sb.append(this.timestamp);
6034
      }
6035
      first = false;
6036
      if (!first) sb.append(", ");
6037
      sb.append("availability:");
6038
      if (this.availability == null) {
6039
        sb.append("null");
6040
      } else {
6041
        sb.append(this.availability);
6042
      }
6043
      first = false;
6044
      sb.append(")");
6045
      return sb.toString();
6046
    }
6047
 
6048
    public void validate() throws org.apache.thrift.TException {
6049
      // check for required fields
6050
    }
6051
 
6052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6053
      try {
6054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6055
      } catch (org.apache.thrift.TException te) {
6056
        throw new java.io.IOException(te);
6057
      }
6058
    }
6059
 
6060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6061
      try {
6062
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6063
        __isset_bit_vector = new BitSet(1);
6064
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6065
      } catch (org.apache.thrift.TException te) {
6066
        throw new java.io.IOException(te);
6067
      }
6068
    }
6069
 
6070
  }
6071
 
6072
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
6073
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
6074
 
6075
    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);
6076
 
6077
    private InventoryServiceException cex; // required
6078
 
6079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6080
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6081
      CEX((short)1, "cex");
6082
 
6083
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6084
 
6085
      static {
6086
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6087
          byName.put(field.getFieldName(), field);
6088
        }
6089
      }
6090
 
6091
      /**
6092
       * Find the _Fields constant that matches fieldId, or null if its not found.
6093
       */
6094
      public static _Fields findByThriftId(int fieldId) {
6095
        switch(fieldId) {
6096
          case 1: // CEX
6097
            return CEX;
6098
          default:
6099
            return null;
6100
        }
6101
      }
6102
 
6103
      /**
6104
       * Find the _Fields constant that matches fieldId, throwing an exception
6105
       * if it is not found.
6106
       */
6107
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6108
        _Fields fields = findByThriftId(fieldId);
6109
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6110
        return fields;
6111
      }
6112
 
6113
      /**
6114
       * Find the _Fields constant that matches name, or null if its not found.
6115
       */
6116
      public static _Fields findByName(String name) {
6117
        return byName.get(name);
6118
      }
6119
 
6120
      private final short _thriftId;
6121
      private final String _fieldName;
6122
 
6123
      _Fields(short thriftId, String fieldName) {
6124
        _thriftId = thriftId;
6125
        _fieldName = fieldName;
6126
      }
6127
 
6128
      public short getThriftFieldId() {
6129
        return _thriftId;
6130
      }
6131
 
6132
      public String getFieldName() {
6133
        return _fieldName;
6134
      }
6135
    }
6136
 
6137
    // isset id assignments
6138
 
6139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6140
    static {
6141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6142
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6144
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6145
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
6146
    }
6147
 
6148
    public updateInventory_result() {
6149
    }
6150
 
6151
    public updateInventory_result(
6152
      InventoryServiceException cex)
6153
    {
6154
      this();
6155
      this.cex = cex;
6156
    }
6157
 
6158
    /**
6159
     * Performs a deep copy on <i>other</i>.
6160
     */
6161
    public updateInventory_result(updateInventory_result other) {
6162
      if (other.isSetCex()) {
6163
        this.cex = new InventoryServiceException(other.cex);
6164
      }
6165
    }
6166
 
6167
    public updateInventory_result deepCopy() {
6168
      return new updateInventory_result(this);
6169
    }
6170
 
6171
    @Override
6172
    public void clear() {
6173
      this.cex = null;
6174
    }
6175
 
6176
    public InventoryServiceException getCex() {
6177
      return this.cex;
6178
    }
6179
 
6180
    public void setCex(InventoryServiceException cex) {
6181
      this.cex = cex;
6182
    }
6183
 
6184
    public void unsetCex() {
6185
      this.cex = null;
6186
    }
6187
 
6188
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6189
    public boolean isSetCex() {
6190
      return this.cex != null;
6191
    }
6192
 
6193
    public void setCexIsSet(boolean value) {
6194
      if (!value) {
6195
        this.cex = null;
6196
      }
6197
    }
6198
 
6199
    public void setFieldValue(_Fields field, Object value) {
6200
      switch (field) {
6201
      case CEX:
6202
        if (value == null) {
6203
          unsetCex();
6204
        } else {
6205
          setCex((InventoryServiceException)value);
6206
        }
6207
        break;
6208
 
6209
      }
6210
    }
6211
 
6212
    public Object getFieldValue(_Fields field) {
6213
      switch (field) {
6214
      case CEX:
6215
        return getCex();
6216
 
6217
      }
6218
      throw new IllegalStateException();
6219
    }
6220
 
6221
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6222
    public boolean isSet(_Fields field) {
6223
      if (field == null) {
6224
        throw new IllegalArgumentException();
6225
      }
6226
 
6227
      switch (field) {
6228
      case CEX:
6229
        return isSetCex();
6230
      }
6231
      throw new IllegalStateException();
6232
    }
6233
 
6234
    @Override
6235
    public boolean equals(Object that) {
6236
      if (that == null)
6237
        return false;
6238
      if (that instanceof updateInventory_result)
6239
        return this.equals((updateInventory_result)that);
6240
      return false;
6241
    }
6242
 
6243
    public boolean equals(updateInventory_result that) {
6244
      if (that == null)
6245
        return false;
6246
 
6247
      boolean this_present_cex = true && this.isSetCex();
6248
      boolean that_present_cex = true && that.isSetCex();
6249
      if (this_present_cex || that_present_cex) {
6250
        if (!(this_present_cex && that_present_cex))
6251
          return false;
6252
        if (!this.cex.equals(that.cex))
6253
          return false;
6254
      }
6255
 
6256
      return true;
6257
    }
6258
 
6259
    @Override
6260
    public int hashCode() {
6261
      return 0;
6262
    }
6263
 
6264
    public int compareTo(updateInventory_result other) {
6265
      if (!getClass().equals(other.getClass())) {
6266
        return getClass().getName().compareTo(other.getClass().getName());
6267
      }
6268
 
6269
      int lastComparison = 0;
6270
      updateInventory_result typedOther = (updateInventory_result)other;
6271
 
6272
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6273
      if (lastComparison != 0) {
6274
        return lastComparison;
6275
      }
6276
      if (isSetCex()) {
6277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6278
        if (lastComparison != 0) {
6279
          return lastComparison;
6280
        }
6281
      }
6282
      return 0;
6283
    }
6284
 
6285
    public _Fields fieldForId(int fieldId) {
6286
      return _Fields.findByThriftId(fieldId);
6287
    }
6288
 
6289
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6290
      org.apache.thrift.protocol.TField field;
6291
      iprot.readStructBegin();
6292
      while (true)
6293
      {
6294
        field = iprot.readFieldBegin();
6295
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6296
          break;
6297
        }
6298
        switch (field.id) {
6299
          case 1: // CEX
6300
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6301
              this.cex = new InventoryServiceException();
6302
              this.cex.read(iprot);
6303
            } else { 
6304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6305
            }
6306
            break;
6307
          default:
6308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6309
        }
6310
        iprot.readFieldEnd();
6311
      }
6312
      iprot.readStructEnd();
6313
      validate();
6314
    }
6315
 
6316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6317
      oprot.writeStructBegin(STRUCT_DESC);
6318
 
6319
      if (this.isSetCex()) {
6320
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6321
        this.cex.write(oprot);
6322
        oprot.writeFieldEnd();
6323
      }
6324
      oprot.writeFieldStop();
6325
      oprot.writeStructEnd();
6326
    }
6327
 
6328
    @Override
6329
    public String toString() {
6330
      StringBuilder sb = new StringBuilder("updateInventory_result(");
6331
      boolean first = true;
6332
 
6333
      sb.append("cex:");
6334
      if (this.cex == null) {
6335
        sb.append("null");
6336
      } else {
6337
        sb.append(this.cex);
6338
      }
6339
      first = false;
6340
      sb.append(")");
6341
      return sb.toString();
6342
    }
6343
 
6344
    public void validate() throws org.apache.thrift.TException {
6345
      // check for required fields
6346
    }
6347
 
6348
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6349
      try {
6350
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6351
      } catch (org.apache.thrift.TException te) {
6352
        throw new java.io.IOException(te);
6353
      }
6354
    }
6355
 
6356
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6357
      try {
6358
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6359
      } catch (org.apache.thrift.TException te) {
6360
        throw new java.io.IOException(te);
6361
      }
6362
    }
6363
 
6364
  }
6365
 
6366
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
6367
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
6368
 
6369
    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);
6370
    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);
6371
    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);
6372
 
6373
    private long itemId; // required
6374
    private long warehouseId; // required
6375
    private long quantity; // required
6376
 
6377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6379
      ITEM_ID((short)1, "itemId"),
6380
      WAREHOUSE_ID((short)2, "warehouseId"),
6381
      QUANTITY((short)3, "quantity");
6382
 
6383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6384
 
6385
      static {
6386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6387
          byName.put(field.getFieldName(), field);
6388
        }
6389
      }
6390
 
6391
      /**
6392
       * Find the _Fields constant that matches fieldId, or null if its not found.
6393
       */
6394
      public static _Fields findByThriftId(int fieldId) {
6395
        switch(fieldId) {
6396
          case 1: // ITEM_ID
6397
            return ITEM_ID;
6398
          case 2: // WAREHOUSE_ID
6399
            return WAREHOUSE_ID;
6400
          case 3: // QUANTITY
6401
            return QUANTITY;
6402
          default:
6403
            return null;
6404
        }
6405
      }
6406
 
6407
      /**
6408
       * Find the _Fields constant that matches fieldId, throwing an exception
6409
       * if it is not found.
6410
       */
6411
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6412
        _Fields fields = findByThriftId(fieldId);
6413
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6414
        return fields;
6415
      }
6416
 
6417
      /**
6418
       * Find the _Fields constant that matches name, or null if its not found.
6419
       */
6420
      public static _Fields findByName(String name) {
6421
        return byName.get(name);
6422
      }
6423
 
6424
      private final short _thriftId;
6425
      private final String _fieldName;
6426
 
6427
      _Fields(short thriftId, String fieldName) {
6428
        _thriftId = thriftId;
6429
        _fieldName = fieldName;
6430
      }
6431
 
6432
      public short getThriftFieldId() {
6433
        return _thriftId;
6434
      }
6435
 
6436
      public String getFieldName() {
6437
        return _fieldName;
6438
      }
6439
    }
6440
 
6441
    // isset id assignments
6442
    private static final int __ITEMID_ISSET_ID = 0;
6443
    private static final int __WAREHOUSEID_ISSET_ID = 1;
6444
    private static final int __QUANTITY_ISSET_ID = 2;
6445
    private BitSet __isset_bit_vector = new BitSet(3);
6446
 
6447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6448
    static {
6449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6450
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6451
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6452
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6454
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
6458
    }
6459
 
6460
    public addInventory_args() {
6461
    }
6462
 
6463
    public addInventory_args(
6464
      long itemId,
6465
      long warehouseId,
6466
      long quantity)
6467
    {
6468
      this();
6469
      this.itemId = itemId;
6470
      setItemIdIsSet(true);
6471
      this.warehouseId = warehouseId;
6472
      setWarehouseIdIsSet(true);
6473
      this.quantity = quantity;
6474
      setQuantityIsSet(true);
6475
    }
6476
 
6477
    /**
6478
     * Performs a deep copy on <i>other</i>.
6479
     */
6480
    public addInventory_args(addInventory_args other) {
6481
      __isset_bit_vector.clear();
6482
      __isset_bit_vector.or(other.__isset_bit_vector);
6483
      this.itemId = other.itemId;
6484
      this.warehouseId = other.warehouseId;
6485
      this.quantity = other.quantity;
6486
    }
6487
 
6488
    public addInventory_args deepCopy() {
6489
      return new addInventory_args(this);
6490
    }
6491
 
6492
    @Override
6493
    public void clear() {
6494
      setItemIdIsSet(false);
6495
      this.itemId = 0;
6496
      setWarehouseIdIsSet(false);
6497
      this.warehouseId = 0;
6498
      setQuantityIsSet(false);
6499
      this.quantity = 0;
6500
    }
6501
 
6502
    public long getItemId() {
6503
      return this.itemId;
6504
    }
6505
 
6506
    public void setItemId(long itemId) {
6507
      this.itemId = itemId;
6508
      setItemIdIsSet(true);
6509
    }
6510
 
6511
    public void unsetItemId() {
6512
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
6513
    }
6514
 
6515
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
6516
    public boolean isSetItemId() {
6517
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
6518
    }
6519
 
6520
    public void setItemIdIsSet(boolean value) {
6521
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
6522
    }
6523
 
6524
    public long getWarehouseId() {
6525
      return this.warehouseId;
6526
    }
6527
 
6528
    public void setWarehouseId(long warehouseId) {
6529
      this.warehouseId = warehouseId;
6530
      setWarehouseIdIsSet(true);
6531
    }
6532
 
6533
    public void unsetWarehouseId() {
6534
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
6535
    }
6536
 
6537
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
6538
    public boolean isSetWarehouseId() {
6539
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
6540
    }
6541
 
6542
    public void setWarehouseIdIsSet(boolean value) {
6543
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
6544
    }
6545
 
6546
    public long getQuantity() {
6547
      return this.quantity;
6548
    }
6549
 
6550
    public void setQuantity(long quantity) {
6551
      this.quantity = quantity;
6552
      setQuantityIsSet(true);
6553
    }
6554
 
6555
    public void unsetQuantity() {
6556
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6557
    }
6558
 
6559
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6560
    public boolean isSetQuantity() {
6561
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6562
    }
6563
 
6564
    public void setQuantityIsSet(boolean value) {
6565
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6566
    }
6567
 
6568
    public void setFieldValue(_Fields field, Object value) {
6569
      switch (field) {
6570
      case ITEM_ID:
6571
        if (value == null) {
6572
          unsetItemId();
6573
        } else {
6574
          setItemId((Long)value);
6575
        }
6576
        break;
6577
 
6578
      case WAREHOUSE_ID:
6579
        if (value == null) {
6580
          unsetWarehouseId();
6581
        } else {
6582
          setWarehouseId((Long)value);
6583
        }
6584
        break;
6585
 
6586
      case QUANTITY:
6587
        if (value == null) {
6588
          unsetQuantity();
6589
        } else {
6590
          setQuantity((Long)value);
6591
        }
6592
        break;
6593
 
6594
      }
6595
    }
6596
 
6597
    public Object getFieldValue(_Fields field) {
6598
      switch (field) {
6599
      case ITEM_ID:
6600
        return Long.valueOf(getItemId());
6601
 
6602
      case WAREHOUSE_ID:
6603
        return Long.valueOf(getWarehouseId());
6604
 
6605
      case QUANTITY:
6606
        return Long.valueOf(getQuantity());
6607
 
6608
      }
6609
      throw new IllegalStateException();
6610
    }
6611
 
6612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6613
    public boolean isSet(_Fields field) {
6614
      if (field == null) {
6615
        throw new IllegalArgumentException();
6616
      }
6617
 
6618
      switch (field) {
6619
      case ITEM_ID:
6620
        return isSetItemId();
6621
      case WAREHOUSE_ID:
6622
        return isSetWarehouseId();
6623
      case QUANTITY:
6624
        return isSetQuantity();
6625
      }
6626
      throw new IllegalStateException();
6627
    }
6628
 
6629
    @Override
6630
    public boolean equals(Object that) {
6631
      if (that == null)
6632
        return false;
6633
      if (that instanceof addInventory_args)
6634
        return this.equals((addInventory_args)that);
6635
      return false;
6636
    }
6637
 
6638
    public boolean equals(addInventory_args that) {
6639
      if (that == null)
6640
        return false;
6641
 
6642
      boolean this_present_itemId = true;
6643
      boolean that_present_itemId = true;
6644
      if (this_present_itemId || that_present_itemId) {
6645
        if (!(this_present_itemId && that_present_itemId))
6646
          return false;
6647
        if (this.itemId != that.itemId)
6648
          return false;
6649
      }
6650
 
6651
      boolean this_present_warehouseId = true;
6652
      boolean that_present_warehouseId = true;
6653
      if (this_present_warehouseId || that_present_warehouseId) {
6654
        if (!(this_present_warehouseId && that_present_warehouseId))
6655
          return false;
6656
        if (this.warehouseId != that.warehouseId)
6657
          return false;
6658
      }
6659
 
6660
      boolean this_present_quantity = true;
6661
      boolean that_present_quantity = true;
6662
      if (this_present_quantity || that_present_quantity) {
6663
        if (!(this_present_quantity && that_present_quantity))
6664
          return false;
6665
        if (this.quantity != that.quantity)
6666
          return false;
6667
      }
6668
 
6669
      return true;
6670
    }
6671
 
6672
    @Override
6673
    public int hashCode() {
6674
      return 0;
6675
    }
6676
 
6677
    public int compareTo(addInventory_args other) {
6678
      if (!getClass().equals(other.getClass())) {
6679
        return getClass().getName().compareTo(other.getClass().getName());
6680
      }
6681
 
6682
      int lastComparison = 0;
6683
      addInventory_args typedOther = (addInventory_args)other;
6684
 
6685
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
6686
      if (lastComparison != 0) {
6687
        return lastComparison;
6688
      }
6689
      if (isSetItemId()) {
6690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
6691
        if (lastComparison != 0) {
6692
          return lastComparison;
6693
        }
6694
      }
6695
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
6696
      if (lastComparison != 0) {
6697
        return lastComparison;
6698
      }
6699
      if (isSetWarehouseId()) {
6700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
6701
        if (lastComparison != 0) {
6702
          return lastComparison;
6703
        }
6704
      }
6705
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6706
      if (lastComparison != 0) {
6707
        return lastComparison;
6708
      }
6709
      if (isSetQuantity()) {
6710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6711
        if (lastComparison != 0) {
6712
          return lastComparison;
6713
        }
6714
      }
6715
      return 0;
6716
    }
6717
 
6718
    public _Fields fieldForId(int fieldId) {
6719
      return _Fields.findByThriftId(fieldId);
6720
    }
6721
 
6722
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6723
      org.apache.thrift.protocol.TField field;
6724
      iprot.readStructBegin();
6725
      while (true)
6726
      {
6727
        field = iprot.readFieldBegin();
6728
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6729
          break;
6730
        }
6731
        switch (field.id) {
6732
          case 1: // ITEM_ID
6733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6734
              this.itemId = iprot.readI64();
6735
              setItemIdIsSet(true);
6736
            } else { 
6737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6738
            }
6739
            break;
6740
          case 2: // WAREHOUSE_ID
6741
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6742
              this.warehouseId = iprot.readI64();
6743
              setWarehouseIdIsSet(true);
6744
            } else { 
6745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6746
            }
6747
            break;
6748
          case 3: // QUANTITY
6749
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6750
              this.quantity = iprot.readI64();
6751
              setQuantityIsSet(true);
6752
            } else { 
6753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6754
            }
6755
            break;
6756
          default:
6757
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6758
        }
6759
        iprot.readFieldEnd();
6760
      }
6761
      iprot.readStructEnd();
6762
      validate();
6763
    }
6764
 
6765
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6766
      validate();
6767
 
6768
      oprot.writeStructBegin(STRUCT_DESC);
6769
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
6770
      oprot.writeI64(this.itemId);
6771
      oprot.writeFieldEnd();
6772
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6773
      oprot.writeI64(this.warehouseId);
6774
      oprot.writeFieldEnd();
6775
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6776
      oprot.writeI64(this.quantity);
6777
      oprot.writeFieldEnd();
6778
      oprot.writeFieldStop();
6779
      oprot.writeStructEnd();
6780
    }
6781
 
6782
    @Override
6783
    public String toString() {
6784
      StringBuilder sb = new StringBuilder("addInventory_args(");
6785
      boolean first = true;
6786
 
6787
      sb.append("itemId:");
6788
      sb.append(this.itemId);
6789
      first = false;
6790
      if (!first) sb.append(", ");
6791
      sb.append("warehouseId:");
6792
      sb.append(this.warehouseId);
6793
      first = false;
6794
      if (!first) sb.append(", ");
6795
      sb.append("quantity:");
6796
      sb.append(this.quantity);
6797
      first = false;
6798
      sb.append(")");
6799
      return sb.toString();
6800
    }
6801
 
6802
    public void validate() throws org.apache.thrift.TException {
6803
      // check for required fields
6804
    }
6805
 
6806
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6807
      try {
6808
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6809
      } catch (org.apache.thrift.TException te) {
6810
        throw new java.io.IOException(te);
6811
      }
6812
    }
6813
 
6814
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6815
      try {
6816
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6817
        __isset_bit_vector = new BitSet(1);
6818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6819
      } catch (org.apache.thrift.TException te) {
6820
        throw new java.io.IOException(te);
6821
      }
6822
    }
6823
 
6824
  }
6825
 
6826
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
6827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
6828
 
6829
    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);
6830
 
6831
    private InventoryServiceException cex; // required
6832
 
6833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6835
      CEX((short)1, "cex");
6836
 
6837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6838
 
6839
      static {
6840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6841
          byName.put(field.getFieldName(), field);
6842
        }
6843
      }
6844
 
6845
      /**
6846
       * Find the _Fields constant that matches fieldId, or null if its not found.
6847
       */
6848
      public static _Fields findByThriftId(int fieldId) {
6849
        switch(fieldId) {
6850
          case 1: // CEX
6851
            return CEX;
6852
          default:
6853
            return null;
6854
        }
6855
      }
6856
 
6857
      /**
6858
       * Find the _Fields constant that matches fieldId, throwing an exception
6859
       * if it is not found.
6860
       */
6861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6862
        _Fields fields = findByThriftId(fieldId);
6863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6864
        return fields;
6865
      }
6866
 
6867
      /**
6868
       * Find the _Fields constant that matches name, or null if its not found.
6869
       */
6870
      public static _Fields findByName(String name) {
6871
        return byName.get(name);
6872
      }
6873
 
6874
      private final short _thriftId;
6875
      private final String _fieldName;
6876
 
6877
      _Fields(short thriftId, String fieldName) {
6878
        _thriftId = thriftId;
6879
        _fieldName = fieldName;
6880
      }
6881
 
6882
      public short getThriftFieldId() {
6883
        return _thriftId;
6884
      }
6885
 
6886
      public String getFieldName() {
6887
        return _fieldName;
6888
      }
6889
    }
6890
 
6891
    // isset id assignments
6892
 
6893
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6894
    static {
6895
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6896
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6897
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6898
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6899
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
6900
    }
6901
 
6902
    public addInventory_result() {
6903
    }
6904
 
6905
    public addInventory_result(
6906
      InventoryServiceException cex)
6907
    {
6908
      this();
6909
      this.cex = cex;
6910
    }
6911
 
6912
    /**
6913
     * Performs a deep copy on <i>other</i>.
6914
     */
6915
    public addInventory_result(addInventory_result other) {
6916
      if (other.isSetCex()) {
6917
        this.cex = new InventoryServiceException(other.cex);
6918
      }
6919
    }
6920
 
6921
    public addInventory_result deepCopy() {
6922
      return new addInventory_result(this);
6923
    }
6924
 
6925
    @Override
6926
    public void clear() {
6927
      this.cex = null;
6928
    }
6929
 
6930
    public InventoryServiceException getCex() {
6931
      return this.cex;
6932
    }
6933
 
6934
    public void setCex(InventoryServiceException cex) {
6935
      this.cex = cex;
6936
    }
6937
 
6938
    public void unsetCex() {
6939
      this.cex = null;
6940
    }
6941
 
6942
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6943
    public boolean isSetCex() {
6944
      return this.cex != null;
6945
    }
6946
 
6947
    public void setCexIsSet(boolean value) {
6948
      if (!value) {
6949
        this.cex = null;
6950
      }
6951
    }
6952
 
6953
    public void setFieldValue(_Fields field, Object value) {
6954
      switch (field) {
6955
      case CEX:
6956
        if (value == null) {
6957
          unsetCex();
6958
        } else {
6959
          setCex((InventoryServiceException)value);
6960
        }
6961
        break;
6962
 
6963
      }
6964
    }
6965
 
6966
    public Object getFieldValue(_Fields field) {
6967
      switch (field) {
6968
      case CEX:
6969
        return getCex();
6970
 
6971
      }
6972
      throw new IllegalStateException();
6973
    }
6974
 
6975
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6976
    public boolean isSet(_Fields field) {
6977
      if (field == null) {
6978
        throw new IllegalArgumentException();
6979
      }
6980
 
6981
      switch (field) {
6982
      case CEX:
6983
        return isSetCex();
6984
      }
6985
      throw new IllegalStateException();
6986
    }
6987
 
6988
    @Override
6989
    public boolean equals(Object that) {
6990
      if (that == null)
6991
        return false;
6992
      if (that instanceof addInventory_result)
6993
        return this.equals((addInventory_result)that);
6994
      return false;
6995
    }
6996
 
6997
    public boolean equals(addInventory_result that) {
6998
      if (that == null)
6999
        return false;
7000
 
7001
      boolean this_present_cex = true && this.isSetCex();
7002
      boolean that_present_cex = true && that.isSetCex();
7003
      if (this_present_cex || that_present_cex) {
7004
        if (!(this_present_cex && that_present_cex))
7005
          return false;
7006
        if (!this.cex.equals(that.cex))
7007
          return false;
7008
      }
7009
 
7010
      return true;
7011
    }
7012
 
7013
    @Override
7014
    public int hashCode() {
7015
      return 0;
7016
    }
7017
 
7018
    public int compareTo(addInventory_result other) {
7019
      if (!getClass().equals(other.getClass())) {
7020
        return getClass().getName().compareTo(other.getClass().getName());
7021
      }
7022
 
7023
      int lastComparison = 0;
7024
      addInventory_result typedOther = (addInventory_result)other;
7025
 
7026
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7027
      if (lastComparison != 0) {
7028
        return lastComparison;
7029
      }
7030
      if (isSetCex()) {
7031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7032
        if (lastComparison != 0) {
7033
          return lastComparison;
7034
        }
7035
      }
7036
      return 0;
7037
    }
7038
 
7039
    public _Fields fieldForId(int fieldId) {
7040
      return _Fields.findByThriftId(fieldId);
7041
    }
7042
 
7043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7044
      org.apache.thrift.protocol.TField field;
7045
      iprot.readStructBegin();
7046
      while (true)
7047
      {
7048
        field = iprot.readFieldBegin();
7049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7050
          break;
7051
        }
7052
        switch (field.id) {
7053
          case 1: // CEX
7054
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7055
              this.cex = new InventoryServiceException();
7056
              this.cex.read(iprot);
7057
            } else { 
7058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7059
            }
7060
            break;
7061
          default:
7062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7063
        }
7064
        iprot.readFieldEnd();
7065
      }
7066
      iprot.readStructEnd();
7067
      validate();
7068
    }
7069
 
7070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7071
      oprot.writeStructBegin(STRUCT_DESC);
7072
 
7073
      if (this.isSetCex()) {
7074
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7075
        this.cex.write(oprot);
7076
        oprot.writeFieldEnd();
7077
      }
7078
      oprot.writeFieldStop();
7079
      oprot.writeStructEnd();
7080
    }
7081
 
7082
    @Override
7083
    public String toString() {
7084
      StringBuilder sb = new StringBuilder("addInventory_result(");
7085
      boolean first = true;
7086
 
7087
      sb.append("cex:");
7088
      if (this.cex == null) {
7089
        sb.append("null");
7090
      } else {
7091
        sb.append(this.cex);
7092
      }
7093
      first = false;
7094
      sb.append(")");
7095
      return sb.toString();
7096
    }
7097
 
7098
    public void validate() throws org.apache.thrift.TException {
7099
      // check for required fields
7100
    }
7101
 
7102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7103
      try {
7104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7105
      } catch (org.apache.thrift.TException te) {
7106
        throw new java.io.IOException(te);
7107
      }
7108
    }
7109
 
7110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7111
      try {
7112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7113
      } catch (org.apache.thrift.TException te) {
7114
        throw new java.io.IOException(te);
7115
      }
7116
    }
7117
 
7118
  }
7119
 
7120
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
7122
 
7123
    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);
7124
 
7125
    private long warehouse_id; // required
7126
 
7127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7129
      WAREHOUSE_ID((short)1, "warehouse_id");
7130
 
7131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7132
 
7133
      static {
7134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7135
          byName.put(field.getFieldName(), field);
7136
        }
7137
      }
7138
 
7139
      /**
7140
       * Find the _Fields constant that matches fieldId, or null if its not found.
7141
       */
7142
      public static _Fields findByThriftId(int fieldId) {
7143
        switch(fieldId) {
7144
          case 1: // WAREHOUSE_ID
7145
            return WAREHOUSE_ID;
7146
          default:
7147
            return null;
7148
        }
7149
      }
7150
 
7151
      /**
7152
       * Find the _Fields constant that matches fieldId, throwing an exception
7153
       * if it is not found.
7154
       */
7155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7156
        _Fields fields = findByThriftId(fieldId);
7157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7158
        return fields;
7159
      }
7160
 
7161
      /**
7162
       * Find the _Fields constant that matches name, or null if its not found.
7163
       */
7164
      public static _Fields findByName(String name) {
7165
        return byName.get(name);
7166
      }
7167
 
7168
      private final short _thriftId;
7169
      private final String _fieldName;
7170
 
7171
      _Fields(short thriftId, String fieldName) {
7172
        _thriftId = thriftId;
7173
        _fieldName = fieldName;
7174
      }
7175
 
7176
      public short getThriftFieldId() {
7177
        return _thriftId;
7178
      }
7179
 
7180
      public String getFieldName() {
7181
        return _fieldName;
7182
      }
7183
    }
7184
 
7185
    // isset id assignments
7186
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7187
    private BitSet __isset_bit_vector = new BitSet(1);
7188
 
7189
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7190
    static {
7191
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7192
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7194
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7195
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
7196
    }
7197
 
7198
    public retireWarehouse_args() {
7199
    }
7200
 
7201
    public retireWarehouse_args(
7202
      long warehouse_id)
7203
    {
7204
      this();
7205
      this.warehouse_id = warehouse_id;
7206
      setWarehouse_idIsSet(true);
7207
    }
7208
 
7209
    /**
7210
     * Performs a deep copy on <i>other</i>.
7211
     */
7212
    public retireWarehouse_args(retireWarehouse_args other) {
7213
      __isset_bit_vector.clear();
7214
      __isset_bit_vector.or(other.__isset_bit_vector);
7215
      this.warehouse_id = other.warehouse_id;
7216
    }
7217
 
7218
    public retireWarehouse_args deepCopy() {
7219
      return new retireWarehouse_args(this);
7220
    }
7221
 
7222
    @Override
7223
    public void clear() {
7224
      setWarehouse_idIsSet(false);
7225
      this.warehouse_id = 0;
7226
    }
7227
 
7228
    public long getWarehouse_id() {
7229
      return this.warehouse_id;
7230
    }
7231
 
7232
    public void setWarehouse_id(long warehouse_id) {
7233
      this.warehouse_id = warehouse_id;
7234
      setWarehouse_idIsSet(true);
7235
    }
7236
 
7237
    public void unsetWarehouse_id() {
7238
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7239
    }
7240
 
7241
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7242
    public boolean isSetWarehouse_id() {
7243
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7244
    }
7245
 
7246
    public void setWarehouse_idIsSet(boolean value) {
7247
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7248
    }
7249
 
7250
    public void setFieldValue(_Fields field, Object value) {
7251
      switch (field) {
7252
      case WAREHOUSE_ID:
7253
        if (value == null) {
7254
          unsetWarehouse_id();
7255
        } else {
7256
          setWarehouse_id((Long)value);
7257
        }
7258
        break;
7259
 
7260
      }
7261
    }
7262
 
7263
    public Object getFieldValue(_Fields field) {
7264
      switch (field) {
7265
      case WAREHOUSE_ID:
7266
        return Long.valueOf(getWarehouse_id());
7267
 
7268
      }
7269
      throw new IllegalStateException();
7270
    }
7271
 
7272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7273
    public boolean isSet(_Fields field) {
7274
      if (field == null) {
7275
        throw new IllegalArgumentException();
7276
      }
7277
 
7278
      switch (field) {
7279
      case WAREHOUSE_ID:
7280
        return isSetWarehouse_id();
7281
      }
7282
      throw new IllegalStateException();
7283
    }
7284
 
7285
    @Override
7286
    public boolean equals(Object that) {
7287
      if (that == null)
7288
        return false;
7289
      if (that instanceof retireWarehouse_args)
7290
        return this.equals((retireWarehouse_args)that);
7291
      return false;
7292
    }
7293
 
7294
    public boolean equals(retireWarehouse_args that) {
7295
      if (that == null)
7296
        return false;
7297
 
7298
      boolean this_present_warehouse_id = true;
7299
      boolean that_present_warehouse_id = true;
7300
      if (this_present_warehouse_id || that_present_warehouse_id) {
7301
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7302
          return false;
7303
        if (this.warehouse_id != that.warehouse_id)
7304
          return false;
7305
      }
7306
 
7307
      return true;
7308
    }
7309
 
7310
    @Override
7311
    public int hashCode() {
7312
      return 0;
7313
    }
7314
 
7315
    public int compareTo(retireWarehouse_args other) {
7316
      if (!getClass().equals(other.getClass())) {
7317
        return getClass().getName().compareTo(other.getClass().getName());
7318
      }
7319
 
7320
      int lastComparison = 0;
7321
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
7322
 
7323
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7324
      if (lastComparison != 0) {
7325
        return lastComparison;
7326
      }
7327
      if (isSetWarehouse_id()) {
7328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7329
        if (lastComparison != 0) {
7330
          return lastComparison;
7331
        }
7332
      }
7333
      return 0;
7334
    }
7335
 
7336
    public _Fields fieldForId(int fieldId) {
7337
      return _Fields.findByThriftId(fieldId);
7338
    }
7339
 
7340
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7341
      org.apache.thrift.protocol.TField field;
7342
      iprot.readStructBegin();
7343
      while (true)
7344
      {
7345
        field = iprot.readFieldBegin();
7346
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7347
          break;
7348
        }
7349
        switch (field.id) {
7350
          case 1: // WAREHOUSE_ID
7351
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7352
              this.warehouse_id = iprot.readI64();
7353
              setWarehouse_idIsSet(true);
7354
            } else { 
7355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7356
            }
7357
            break;
7358
          default:
7359
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7360
        }
7361
        iprot.readFieldEnd();
7362
      }
7363
      iprot.readStructEnd();
7364
      validate();
7365
    }
7366
 
7367
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7368
      validate();
7369
 
7370
      oprot.writeStructBegin(STRUCT_DESC);
7371
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7372
      oprot.writeI64(this.warehouse_id);
7373
      oprot.writeFieldEnd();
7374
      oprot.writeFieldStop();
7375
      oprot.writeStructEnd();
7376
    }
7377
 
7378
    @Override
7379
    public String toString() {
7380
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
7381
      boolean first = true;
7382
 
7383
      sb.append("warehouse_id:");
7384
      sb.append(this.warehouse_id);
7385
      first = false;
7386
      sb.append(")");
7387
      return sb.toString();
7388
    }
7389
 
7390
    public void validate() throws org.apache.thrift.TException {
7391
      // check for required fields
7392
    }
7393
 
7394
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7395
      try {
7396
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7397
      } catch (org.apache.thrift.TException te) {
7398
        throw new java.io.IOException(te);
7399
      }
7400
    }
7401
 
7402
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7403
      try {
7404
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7405
        __isset_bit_vector = new BitSet(1);
7406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7407
      } catch (org.apache.thrift.TException te) {
7408
        throw new java.io.IOException(te);
7409
      }
7410
    }
7411
 
7412
  }
7413
 
7414
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
7415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
7416
 
7417
    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);
7418
 
7419
    private InventoryServiceException cex; // required
7420
 
7421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7423
      CEX((short)1, "cex");
7424
 
7425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7426
 
7427
      static {
7428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7429
          byName.put(field.getFieldName(), field);
7430
        }
7431
      }
7432
 
7433
      /**
7434
       * Find the _Fields constant that matches fieldId, or null if its not found.
7435
       */
7436
      public static _Fields findByThriftId(int fieldId) {
7437
        switch(fieldId) {
7438
          case 1: // CEX
7439
            return CEX;
7440
          default:
7441
            return null;
7442
        }
7443
      }
7444
 
7445
      /**
7446
       * Find the _Fields constant that matches fieldId, throwing an exception
7447
       * if it is not found.
7448
       */
7449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7450
        _Fields fields = findByThriftId(fieldId);
7451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7452
        return fields;
7453
      }
7454
 
7455
      /**
7456
       * Find the _Fields constant that matches name, or null if its not found.
7457
       */
7458
      public static _Fields findByName(String name) {
7459
        return byName.get(name);
7460
      }
7461
 
7462
      private final short _thriftId;
7463
      private final String _fieldName;
7464
 
7465
      _Fields(short thriftId, String fieldName) {
7466
        _thriftId = thriftId;
7467
        _fieldName = fieldName;
7468
      }
7469
 
7470
      public short getThriftFieldId() {
7471
        return _thriftId;
7472
      }
7473
 
7474
      public String getFieldName() {
7475
        return _fieldName;
7476
      }
7477
    }
7478
 
7479
    // isset id assignments
7480
 
7481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7482
    static {
7483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7484
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
7488
    }
7489
 
7490
    public retireWarehouse_result() {
7491
    }
7492
 
7493
    public retireWarehouse_result(
7494
      InventoryServiceException cex)
7495
    {
7496
      this();
7497
      this.cex = cex;
7498
    }
7499
 
7500
    /**
7501
     * Performs a deep copy on <i>other</i>.
7502
     */
7503
    public retireWarehouse_result(retireWarehouse_result other) {
7504
      if (other.isSetCex()) {
7505
        this.cex = new InventoryServiceException(other.cex);
7506
      }
7507
    }
7508
 
7509
    public retireWarehouse_result deepCopy() {
7510
      return new retireWarehouse_result(this);
7511
    }
7512
 
7513
    @Override
7514
    public void clear() {
7515
      this.cex = null;
7516
    }
7517
 
7518
    public InventoryServiceException getCex() {
7519
      return this.cex;
7520
    }
7521
 
7522
    public void setCex(InventoryServiceException cex) {
7523
      this.cex = cex;
7524
    }
7525
 
7526
    public void unsetCex() {
7527
      this.cex = null;
7528
    }
7529
 
7530
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7531
    public boolean isSetCex() {
7532
      return this.cex != null;
7533
    }
7534
 
7535
    public void setCexIsSet(boolean value) {
7536
      if (!value) {
7537
        this.cex = null;
7538
      }
7539
    }
7540
 
7541
    public void setFieldValue(_Fields field, Object value) {
7542
      switch (field) {
7543
      case CEX:
7544
        if (value == null) {
7545
          unsetCex();
7546
        } else {
7547
          setCex((InventoryServiceException)value);
7548
        }
7549
        break;
7550
 
7551
      }
7552
    }
7553
 
7554
    public Object getFieldValue(_Fields field) {
7555
      switch (field) {
7556
      case CEX:
7557
        return getCex();
7558
 
7559
      }
7560
      throw new IllegalStateException();
7561
    }
7562
 
7563
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7564
    public boolean isSet(_Fields field) {
7565
      if (field == null) {
7566
        throw new IllegalArgumentException();
7567
      }
7568
 
7569
      switch (field) {
7570
      case CEX:
7571
        return isSetCex();
7572
      }
7573
      throw new IllegalStateException();
7574
    }
7575
 
7576
    @Override
7577
    public boolean equals(Object that) {
7578
      if (that == null)
7579
        return false;
7580
      if (that instanceof retireWarehouse_result)
7581
        return this.equals((retireWarehouse_result)that);
7582
      return false;
7583
    }
7584
 
7585
    public boolean equals(retireWarehouse_result that) {
7586
      if (that == null)
7587
        return false;
7588
 
7589
      boolean this_present_cex = true && this.isSetCex();
7590
      boolean that_present_cex = true && that.isSetCex();
7591
      if (this_present_cex || that_present_cex) {
7592
        if (!(this_present_cex && that_present_cex))
7593
          return false;
7594
        if (!this.cex.equals(that.cex))
7595
          return false;
7596
      }
7597
 
7598
      return true;
7599
    }
7600
 
7601
    @Override
7602
    public int hashCode() {
7603
      return 0;
7604
    }
7605
 
7606
    public int compareTo(retireWarehouse_result other) {
7607
      if (!getClass().equals(other.getClass())) {
7608
        return getClass().getName().compareTo(other.getClass().getName());
7609
      }
7610
 
7611
      int lastComparison = 0;
7612
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
7613
 
7614
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7615
      if (lastComparison != 0) {
7616
        return lastComparison;
7617
      }
7618
      if (isSetCex()) {
7619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7620
        if (lastComparison != 0) {
7621
          return lastComparison;
7622
        }
7623
      }
7624
      return 0;
7625
    }
7626
 
7627
    public _Fields fieldForId(int fieldId) {
7628
      return _Fields.findByThriftId(fieldId);
7629
    }
7630
 
7631
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7632
      org.apache.thrift.protocol.TField field;
7633
      iprot.readStructBegin();
7634
      while (true)
7635
      {
7636
        field = iprot.readFieldBegin();
7637
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7638
          break;
7639
        }
7640
        switch (field.id) {
7641
          case 1: // CEX
7642
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7643
              this.cex = new InventoryServiceException();
7644
              this.cex.read(iprot);
7645
            } else { 
7646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7647
            }
7648
            break;
7649
          default:
7650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7651
        }
7652
        iprot.readFieldEnd();
7653
      }
7654
      iprot.readStructEnd();
7655
      validate();
7656
    }
7657
 
7658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7659
      oprot.writeStructBegin(STRUCT_DESC);
7660
 
7661
      if (this.isSetCex()) {
7662
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7663
        this.cex.write(oprot);
7664
        oprot.writeFieldEnd();
7665
      }
7666
      oprot.writeFieldStop();
7667
      oprot.writeStructEnd();
7668
    }
7669
 
7670
    @Override
7671
    public String toString() {
7672
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
7673
      boolean first = true;
7674
 
7675
      sb.append("cex:");
7676
      if (this.cex == null) {
7677
        sb.append("null");
7678
      } else {
7679
        sb.append(this.cex);
7680
      }
7681
      first = false;
7682
      sb.append(")");
7683
      return sb.toString();
7684
    }
7685
 
7686
    public void validate() throws org.apache.thrift.TException {
7687
      // check for required fields
7688
    }
7689
 
7690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7691
      try {
7692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7693
      } catch (org.apache.thrift.TException te) {
7694
        throw new java.io.IOException(te);
7695
      }
7696
    }
7697
 
7698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7699
      try {
7700
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7701
      } catch (org.apache.thrift.TException te) {
7702
        throw new java.io.IOException(te);
7703
      }
7704
    }
7705
 
7706
  }
7707
 
7708
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
7709
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
7710
 
7711
    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);
7712
 
7713
    private long item_id; // required
7714
 
7715
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7716
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7717
      ITEM_ID((short)1, "item_id");
7718
 
7719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7720
 
7721
      static {
7722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7723
          byName.put(field.getFieldName(), field);
7724
        }
7725
      }
7726
 
7727
      /**
7728
       * Find the _Fields constant that matches fieldId, or null if its not found.
7729
       */
7730
      public static _Fields findByThriftId(int fieldId) {
7731
        switch(fieldId) {
7732
          case 1: // ITEM_ID
7733
            return ITEM_ID;
7734
          default:
7735
            return null;
7736
        }
7737
      }
7738
 
7739
      /**
7740
       * Find the _Fields constant that matches fieldId, throwing an exception
7741
       * if it is not found.
7742
       */
7743
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7744
        _Fields fields = findByThriftId(fieldId);
7745
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7746
        return fields;
7747
      }
7748
 
7749
      /**
7750
       * Find the _Fields constant that matches name, or null if its not found.
7751
       */
7752
      public static _Fields findByName(String name) {
7753
        return byName.get(name);
7754
      }
7755
 
7756
      private final short _thriftId;
7757
      private final String _fieldName;
7758
 
7759
      _Fields(short thriftId, String fieldName) {
7760
        _thriftId = thriftId;
7761
        _fieldName = fieldName;
7762
      }
7763
 
7764
      public short getThriftFieldId() {
7765
        return _thriftId;
7766
      }
7767
 
7768
      public String getFieldName() {
7769
        return _fieldName;
7770
      }
7771
    }
7772
 
7773
    // isset id assignments
7774
    private static final int __ITEM_ID_ISSET_ID = 0;
7775
    private BitSet __isset_bit_vector = new BitSet(1);
7776
 
7777
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7778
    static {
7779
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7780
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7782
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7783
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
7784
    }
7785
 
7786
    public getItemInventoryByItemId_args() {
7787
    }
7788
 
7789
    public getItemInventoryByItemId_args(
7790
      long item_id)
7791
    {
7792
      this();
7793
      this.item_id = item_id;
7794
      setItem_idIsSet(true);
7795
    }
7796
 
7797
    /**
7798
     * Performs a deep copy on <i>other</i>.
7799
     */
7800
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
7801
      __isset_bit_vector.clear();
7802
      __isset_bit_vector.or(other.__isset_bit_vector);
7803
      this.item_id = other.item_id;
7804
    }
7805
 
7806
    public getItemInventoryByItemId_args deepCopy() {
7807
      return new getItemInventoryByItemId_args(this);
7808
    }
7809
 
7810
    @Override
7811
    public void clear() {
7812
      setItem_idIsSet(false);
7813
      this.item_id = 0;
7814
    }
7815
 
7816
    public long getItem_id() {
7817
      return this.item_id;
7818
    }
7819
 
7820
    public void setItem_id(long item_id) {
7821
      this.item_id = item_id;
7822
      setItem_idIsSet(true);
7823
    }
7824
 
7825
    public void unsetItem_id() {
7826
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
7827
    }
7828
 
7829
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
7830
    public boolean isSetItem_id() {
7831
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
7832
    }
7833
 
7834
    public void setItem_idIsSet(boolean value) {
7835
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
7836
    }
7837
 
7838
    public void setFieldValue(_Fields field, Object value) {
7839
      switch (field) {
7840
      case ITEM_ID:
7841
        if (value == null) {
7842
          unsetItem_id();
7843
        } else {
7844
          setItem_id((Long)value);
7845
        }
7846
        break;
7847
 
7848
      }
7849
    }
7850
 
7851
    public Object getFieldValue(_Fields field) {
7852
      switch (field) {
7853
      case ITEM_ID:
7854
        return Long.valueOf(getItem_id());
7855
 
7856
      }
7857
      throw new IllegalStateException();
7858
    }
7859
 
7860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7861
    public boolean isSet(_Fields field) {
7862
      if (field == null) {
7863
        throw new IllegalArgumentException();
7864
      }
7865
 
7866
      switch (field) {
7867
      case ITEM_ID:
7868
        return isSetItem_id();
7869
      }
7870
      throw new IllegalStateException();
7871
    }
7872
 
7873
    @Override
7874
    public boolean equals(Object that) {
7875
      if (that == null)
7876
        return false;
7877
      if (that instanceof getItemInventoryByItemId_args)
7878
        return this.equals((getItemInventoryByItemId_args)that);
7879
      return false;
7880
    }
7881
 
7882
    public boolean equals(getItemInventoryByItemId_args that) {
7883
      if (that == null)
7884
        return false;
7885
 
7886
      boolean this_present_item_id = true;
7887
      boolean that_present_item_id = true;
7888
      if (this_present_item_id || that_present_item_id) {
7889
        if (!(this_present_item_id && that_present_item_id))
7890
          return false;
7891
        if (this.item_id != that.item_id)
7892
          return false;
7893
      }
7894
 
7895
      return true;
7896
    }
7897
 
7898
    @Override
7899
    public int hashCode() {
7900
      return 0;
7901
    }
7902
 
7903
    public int compareTo(getItemInventoryByItemId_args other) {
7904
      if (!getClass().equals(other.getClass())) {
7905
        return getClass().getName().compareTo(other.getClass().getName());
7906
      }
7907
 
7908
      int lastComparison = 0;
7909
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
7910
 
7911
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
7912
      if (lastComparison != 0) {
7913
        return lastComparison;
7914
      }
7915
      if (isSetItem_id()) {
7916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
7917
        if (lastComparison != 0) {
7918
          return lastComparison;
7919
        }
7920
      }
7921
      return 0;
7922
    }
7923
 
7924
    public _Fields fieldForId(int fieldId) {
7925
      return _Fields.findByThriftId(fieldId);
7926
    }
7927
 
7928
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7929
      org.apache.thrift.protocol.TField field;
7930
      iprot.readStructBegin();
7931
      while (true)
7932
      {
7933
        field = iprot.readFieldBegin();
7934
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7935
          break;
7936
        }
7937
        switch (field.id) {
7938
          case 1: // ITEM_ID
7939
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7940
              this.item_id = iprot.readI64();
7941
              setItem_idIsSet(true);
7942
            } else { 
7943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7944
            }
7945
            break;
7946
          default:
7947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7948
        }
7949
        iprot.readFieldEnd();
7950
      }
7951
      iprot.readStructEnd();
7952
      validate();
7953
    }
7954
 
7955
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7956
      validate();
7957
 
7958
      oprot.writeStructBegin(STRUCT_DESC);
7959
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7960
      oprot.writeI64(this.item_id);
7961
      oprot.writeFieldEnd();
7962
      oprot.writeFieldStop();
7963
      oprot.writeStructEnd();
7964
    }
7965
 
7966
    @Override
7967
    public String toString() {
7968
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
7969
      boolean first = true;
7970
 
7971
      sb.append("item_id:");
7972
      sb.append(this.item_id);
7973
      first = false;
7974
      sb.append(")");
7975
      return sb.toString();
7976
    }
7977
 
7978
    public void validate() throws org.apache.thrift.TException {
7979
      // check for required fields
7980
    }
7981
 
7982
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7983
      try {
7984
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7985
      } catch (org.apache.thrift.TException te) {
7986
        throw new java.io.IOException(te);
7987
      }
7988
    }
7989
 
7990
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7991
      try {
7992
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7993
        __isset_bit_vector = new BitSet(1);
7994
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7995
      } catch (org.apache.thrift.TException te) {
7996
        throw new java.io.IOException(te);
7997
      }
7998
    }
7999
 
8000
  }
8001
 
8002
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
8003
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
8004
 
8005
    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);
8006
    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);
8007
 
8008
    private ItemInventory success; // required
8009
    private InventoryServiceException cex; // required
8010
 
8011
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8012
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8013
      SUCCESS((short)0, "success"),
8014
      CEX((short)1, "cex");
8015
 
8016
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8017
 
8018
      static {
8019
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8020
          byName.put(field.getFieldName(), field);
8021
        }
8022
      }
8023
 
8024
      /**
8025
       * Find the _Fields constant that matches fieldId, or null if its not found.
8026
       */
8027
      public static _Fields findByThriftId(int fieldId) {
8028
        switch(fieldId) {
8029
          case 0: // SUCCESS
8030
            return SUCCESS;
8031
          case 1: // CEX
8032
            return CEX;
8033
          default:
8034
            return null;
8035
        }
8036
      }
8037
 
8038
      /**
8039
       * Find the _Fields constant that matches fieldId, throwing an exception
8040
       * if it is not found.
8041
       */
8042
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8043
        _Fields fields = findByThriftId(fieldId);
8044
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8045
        return fields;
8046
      }
8047
 
8048
      /**
8049
       * Find the _Fields constant that matches name, or null if its not found.
8050
       */
8051
      public static _Fields findByName(String name) {
8052
        return byName.get(name);
8053
      }
8054
 
8055
      private final short _thriftId;
8056
      private final String _fieldName;
8057
 
8058
      _Fields(short thriftId, String fieldName) {
8059
        _thriftId = thriftId;
8060
        _fieldName = fieldName;
8061
      }
8062
 
8063
      public short getThriftFieldId() {
8064
        return _thriftId;
8065
      }
8066
 
8067
      public String getFieldName() {
8068
        return _fieldName;
8069
      }
8070
    }
8071
 
8072
    // isset id assignments
8073
 
8074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8075
    static {
8076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8077
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8078
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
8079
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
8083
    }
8084
 
8085
    public getItemInventoryByItemId_result() {
8086
    }
8087
 
8088
    public getItemInventoryByItemId_result(
8089
      ItemInventory success,
8090
      InventoryServiceException cex)
8091
    {
8092
      this();
8093
      this.success = success;
8094
      this.cex = cex;
8095
    }
8096
 
8097
    /**
8098
     * Performs a deep copy on <i>other</i>.
8099
     */
8100
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
8101
      if (other.isSetSuccess()) {
8102
        this.success = new ItemInventory(other.success);
8103
      }
8104
      if (other.isSetCex()) {
8105
        this.cex = new InventoryServiceException(other.cex);
8106
      }
8107
    }
8108
 
8109
    public getItemInventoryByItemId_result deepCopy() {
8110
      return new getItemInventoryByItemId_result(this);
8111
    }
8112
 
8113
    @Override
8114
    public void clear() {
8115
      this.success = null;
8116
      this.cex = null;
8117
    }
8118
 
8119
    public ItemInventory getSuccess() {
8120
      return this.success;
8121
    }
8122
 
8123
    public void setSuccess(ItemInventory success) {
8124
      this.success = success;
8125
    }
8126
 
8127
    public void unsetSuccess() {
8128
      this.success = null;
8129
    }
8130
 
8131
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8132
    public boolean isSetSuccess() {
8133
      return this.success != null;
8134
    }
8135
 
8136
    public void setSuccessIsSet(boolean value) {
8137
      if (!value) {
8138
        this.success = null;
8139
      }
8140
    }
8141
 
8142
    public InventoryServiceException getCex() {
8143
      return this.cex;
8144
    }
8145
 
8146
    public void setCex(InventoryServiceException cex) {
8147
      this.cex = cex;
8148
    }
8149
 
8150
    public void unsetCex() {
8151
      this.cex = null;
8152
    }
8153
 
8154
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8155
    public boolean isSetCex() {
8156
      return this.cex != null;
8157
    }
8158
 
8159
    public void setCexIsSet(boolean value) {
8160
      if (!value) {
8161
        this.cex = null;
8162
      }
8163
    }
8164
 
8165
    public void setFieldValue(_Fields field, Object value) {
8166
      switch (field) {
8167
      case SUCCESS:
8168
        if (value == null) {
8169
          unsetSuccess();
8170
        } else {
8171
          setSuccess((ItemInventory)value);
8172
        }
8173
        break;
8174
 
8175
      case CEX:
8176
        if (value == null) {
8177
          unsetCex();
8178
        } else {
8179
          setCex((InventoryServiceException)value);
8180
        }
8181
        break;
8182
 
8183
      }
8184
    }
8185
 
8186
    public Object getFieldValue(_Fields field) {
8187
      switch (field) {
8188
      case SUCCESS:
8189
        return getSuccess();
8190
 
8191
      case CEX:
8192
        return getCex();
8193
 
8194
      }
8195
      throw new IllegalStateException();
8196
    }
8197
 
8198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8199
    public boolean isSet(_Fields field) {
8200
      if (field == null) {
8201
        throw new IllegalArgumentException();
8202
      }
8203
 
8204
      switch (field) {
8205
      case SUCCESS:
8206
        return isSetSuccess();
8207
      case CEX:
8208
        return isSetCex();
8209
      }
8210
      throw new IllegalStateException();
8211
    }
8212
 
8213
    @Override
8214
    public boolean equals(Object that) {
8215
      if (that == null)
8216
        return false;
8217
      if (that instanceof getItemInventoryByItemId_result)
8218
        return this.equals((getItemInventoryByItemId_result)that);
8219
      return false;
8220
    }
8221
 
8222
    public boolean equals(getItemInventoryByItemId_result that) {
8223
      if (that == null)
8224
        return false;
8225
 
8226
      boolean this_present_success = true && this.isSetSuccess();
8227
      boolean that_present_success = true && that.isSetSuccess();
8228
      if (this_present_success || that_present_success) {
8229
        if (!(this_present_success && that_present_success))
8230
          return false;
8231
        if (!this.success.equals(that.success))
8232
          return false;
8233
      }
8234
 
8235
      boolean this_present_cex = true && this.isSetCex();
8236
      boolean that_present_cex = true && that.isSetCex();
8237
      if (this_present_cex || that_present_cex) {
8238
        if (!(this_present_cex && that_present_cex))
8239
          return false;
8240
        if (!this.cex.equals(that.cex))
8241
          return false;
8242
      }
8243
 
8244
      return true;
8245
    }
8246
 
8247
    @Override
8248
    public int hashCode() {
8249
      return 0;
8250
    }
8251
 
8252
    public int compareTo(getItemInventoryByItemId_result other) {
8253
      if (!getClass().equals(other.getClass())) {
8254
        return getClass().getName().compareTo(other.getClass().getName());
8255
      }
8256
 
8257
      int lastComparison = 0;
8258
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
8259
 
8260
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8261
      if (lastComparison != 0) {
8262
        return lastComparison;
8263
      }
8264
      if (isSetSuccess()) {
8265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8266
        if (lastComparison != 0) {
8267
          return lastComparison;
8268
        }
8269
      }
8270
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8271
      if (lastComparison != 0) {
8272
        return lastComparison;
8273
      }
8274
      if (isSetCex()) {
8275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8276
        if (lastComparison != 0) {
8277
          return lastComparison;
8278
        }
8279
      }
8280
      return 0;
8281
    }
8282
 
8283
    public _Fields fieldForId(int fieldId) {
8284
      return _Fields.findByThriftId(fieldId);
8285
    }
8286
 
8287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8288
      org.apache.thrift.protocol.TField field;
8289
      iprot.readStructBegin();
8290
      while (true)
8291
      {
8292
        field = iprot.readFieldBegin();
8293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8294
          break;
8295
        }
8296
        switch (field.id) {
8297
          case 0: // SUCCESS
8298
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8299
              this.success = new ItemInventory();
8300
              this.success.read(iprot);
8301
            } else { 
8302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8303
            }
8304
            break;
8305
          case 1: // CEX
8306
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8307
              this.cex = new InventoryServiceException();
8308
              this.cex.read(iprot);
8309
            } else { 
8310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8311
            }
8312
            break;
8313
          default:
8314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8315
        }
8316
        iprot.readFieldEnd();
8317
      }
8318
      iprot.readStructEnd();
8319
      validate();
8320
    }
8321
 
8322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8323
      oprot.writeStructBegin(STRUCT_DESC);
8324
 
8325
      if (this.isSetSuccess()) {
8326
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8327
        this.success.write(oprot);
8328
        oprot.writeFieldEnd();
8329
      } else if (this.isSetCex()) {
8330
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8331
        this.cex.write(oprot);
8332
        oprot.writeFieldEnd();
8333
      }
8334
      oprot.writeFieldStop();
8335
      oprot.writeStructEnd();
8336
    }
8337
 
8338
    @Override
8339
    public String toString() {
8340
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
8341
      boolean first = true;
8342
 
8343
      sb.append("success:");
8344
      if (this.success == null) {
8345
        sb.append("null");
8346
      } else {
8347
        sb.append(this.success);
8348
      }
8349
      first = false;
8350
      if (!first) sb.append(", ");
8351
      sb.append("cex:");
8352
      if (this.cex == null) {
8353
        sb.append("null");
8354
      } else {
8355
        sb.append(this.cex);
8356
      }
8357
      first = false;
8358
      sb.append(")");
8359
      return sb.toString();
8360
    }
8361
 
8362
    public void validate() throws org.apache.thrift.TException {
8363
      // check for required fields
8364
    }
8365
 
8366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8367
      try {
8368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8369
      } catch (org.apache.thrift.TException te) {
8370
        throw new java.io.IOException(te);
8371
      }
8372
    }
8373
 
8374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8375
      try {
8376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8377
      } catch (org.apache.thrift.TException te) {
8378
        throw new java.io.IOException(te);
8379
      }
8380
    }
8381
 
8382
  }
8383
 
8384
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
8386
 
8387
    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);
8388
    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);
8389
 
8390
    private long warehouse_id; // required
8391
    private long item_id; // required
8392
 
8393
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8394
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8395
      WAREHOUSE_ID((short)1, "warehouse_id"),
8396
      ITEM_ID((short)2, "item_id");
8397
 
8398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8399
 
8400
      static {
8401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8402
          byName.put(field.getFieldName(), field);
8403
        }
8404
      }
8405
 
8406
      /**
8407
       * Find the _Fields constant that matches fieldId, or null if its not found.
8408
       */
8409
      public static _Fields findByThriftId(int fieldId) {
8410
        switch(fieldId) {
8411
          case 1: // WAREHOUSE_ID
8412
            return WAREHOUSE_ID;
8413
          case 2: // ITEM_ID
8414
            return ITEM_ID;
8415
          default:
8416
            return null;
8417
        }
8418
      }
8419
 
8420
      /**
8421
       * Find the _Fields constant that matches fieldId, throwing an exception
8422
       * if it is not found.
8423
       */
8424
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8425
        _Fields fields = findByThriftId(fieldId);
8426
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8427
        return fields;
8428
      }
8429
 
8430
      /**
8431
       * Find the _Fields constant that matches name, or null if its not found.
8432
       */
8433
      public static _Fields findByName(String name) {
8434
        return byName.get(name);
8435
      }
8436
 
8437
      private final short _thriftId;
8438
      private final String _fieldName;
8439
 
8440
      _Fields(short thriftId, String fieldName) {
8441
        _thriftId = thriftId;
8442
        _fieldName = fieldName;
8443
      }
8444
 
8445
      public short getThriftFieldId() {
8446
        return _thriftId;
8447
      }
8448
 
8449
      public String getFieldName() {
8450
        return _fieldName;
8451
      }
8452
    }
8453
 
8454
    // isset id assignments
8455
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8456
    private static final int __ITEM_ID_ISSET_ID = 1;
8457
    private BitSet __isset_bit_vector = new BitSet(2);
8458
 
8459
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8460
    static {
8461
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8462
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8464
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8465
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8466
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8467
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
8468
    }
8469
 
8470
    public getItemAvailibilityAtWarehouse_args() {
8471
    }
8472
 
8473
    public getItemAvailibilityAtWarehouse_args(
8474
      long warehouse_id,
8475
      long item_id)
8476
    {
8477
      this();
8478
      this.warehouse_id = warehouse_id;
8479
      setWarehouse_idIsSet(true);
8480
      this.item_id = item_id;
8481
      setItem_idIsSet(true);
8482
    }
8483
 
8484
    /**
8485
     * Performs a deep copy on <i>other</i>.
8486
     */
8487
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
8488
      __isset_bit_vector.clear();
8489
      __isset_bit_vector.or(other.__isset_bit_vector);
8490
      this.warehouse_id = other.warehouse_id;
8491
      this.item_id = other.item_id;
8492
    }
8493
 
8494
    public getItemAvailibilityAtWarehouse_args deepCopy() {
8495
      return new getItemAvailibilityAtWarehouse_args(this);
8496
    }
8497
 
8498
    @Override
8499
    public void clear() {
8500
      setWarehouse_idIsSet(false);
8501
      this.warehouse_id = 0;
8502
      setItem_idIsSet(false);
8503
      this.item_id = 0;
8504
    }
8505
 
8506
    public long getWarehouse_id() {
8507
      return this.warehouse_id;
8508
    }
8509
 
8510
    public void setWarehouse_id(long warehouse_id) {
8511
      this.warehouse_id = warehouse_id;
8512
      setWarehouse_idIsSet(true);
8513
    }
8514
 
8515
    public void unsetWarehouse_id() {
8516
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8517
    }
8518
 
8519
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8520
    public boolean isSetWarehouse_id() {
8521
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8522
    }
8523
 
8524
    public void setWarehouse_idIsSet(boolean value) {
8525
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8526
    }
8527
 
8528
    public long getItem_id() {
8529
      return this.item_id;
8530
    }
8531
 
8532
    public void setItem_id(long item_id) {
8533
      this.item_id = item_id;
8534
      setItem_idIsSet(true);
8535
    }
8536
 
8537
    public void unsetItem_id() {
8538
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
8539
    }
8540
 
8541
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
8542
    public boolean isSetItem_id() {
8543
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
8544
    }
8545
 
8546
    public void setItem_idIsSet(boolean value) {
8547
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
8548
    }
8549
 
8550
    public void setFieldValue(_Fields field, Object value) {
8551
      switch (field) {
8552
      case WAREHOUSE_ID:
8553
        if (value == null) {
8554
          unsetWarehouse_id();
8555
        } else {
8556
          setWarehouse_id((Long)value);
8557
        }
8558
        break;
8559
 
8560
      case ITEM_ID:
8561
        if (value == null) {
8562
          unsetItem_id();
8563
        } else {
8564
          setItem_id((Long)value);
8565
        }
8566
        break;
8567
 
8568
      }
8569
    }
8570
 
8571
    public Object getFieldValue(_Fields field) {
8572
      switch (field) {
8573
      case WAREHOUSE_ID:
8574
        return Long.valueOf(getWarehouse_id());
8575
 
8576
      case ITEM_ID:
8577
        return Long.valueOf(getItem_id());
8578
 
8579
      }
8580
      throw new IllegalStateException();
8581
    }
8582
 
8583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8584
    public boolean isSet(_Fields field) {
8585
      if (field == null) {
8586
        throw new IllegalArgumentException();
8587
      }
8588
 
8589
      switch (field) {
8590
      case WAREHOUSE_ID:
8591
        return isSetWarehouse_id();
8592
      case ITEM_ID:
8593
        return isSetItem_id();
8594
      }
8595
      throw new IllegalStateException();
8596
    }
8597
 
8598
    @Override
8599
    public boolean equals(Object that) {
8600
      if (that == null)
8601
        return false;
8602
      if (that instanceof getItemAvailibilityAtWarehouse_args)
8603
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
8604
      return false;
8605
    }
8606
 
8607
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
8608
      if (that == null)
8609
        return false;
8610
 
8611
      boolean this_present_warehouse_id = true;
8612
      boolean that_present_warehouse_id = true;
8613
      if (this_present_warehouse_id || that_present_warehouse_id) {
8614
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8615
          return false;
8616
        if (this.warehouse_id != that.warehouse_id)
8617
          return false;
8618
      }
8619
 
8620
      boolean this_present_item_id = true;
8621
      boolean that_present_item_id = true;
8622
      if (this_present_item_id || that_present_item_id) {
8623
        if (!(this_present_item_id && that_present_item_id))
8624
          return false;
8625
        if (this.item_id != that.item_id)
8626
          return false;
8627
      }
8628
 
8629
      return true;
8630
    }
8631
 
8632
    @Override
8633
    public int hashCode() {
8634
      return 0;
8635
    }
8636
 
8637
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
8638
      if (!getClass().equals(other.getClass())) {
8639
        return getClass().getName().compareTo(other.getClass().getName());
8640
      }
8641
 
8642
      int lastComparison = 0;
8643
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
8644
 
8645
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8646
      if (lastComparison != 0) {
8647
        return lastComparison;
8648
      }
8649
      if (isSetWarehouse_id()) {
8650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8651
        if (lastComparison != 0) {
8652
          return lastComparison;
8653
        }
8654
      }
8655
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
8656
      if (lastComparison != 0) {
8657
        return lastComparison;
8658
      }
8659
      if (isSetItem_id()) {
8660
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
8661
        if (lastComparison != 0) {
8662
          return lastComparison;
8663
        }
8664
      }
8665
      return 0;
8666
    }
8667
 
8668
    public _Fields fieldForId(int fieldId) {
8669
      return _Fields.findByThriftId(fieldId);
8670
    }
8671
 
8672
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8673
      org.apache.thrift.protocol.TField field;
8674
      iprot.readStructBegin();
8675
      while (true)
8676
      {
8677
        field = iprot.readFieldBegin();
8678
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8679
          break;
8680
        }
8681
        switch (field.id) {
8682
          case 1: // WAREHOUSE_ID
8683
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8684
              this.warehouse_id = iprot.readI64();
8685
              setWarehouse_idIsSet(true);
8686
            } else { 
8687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8688
            }
8689
            break;
8690
          case 2: // ITEM_ID
8691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8692
              this.item_id = iprot.readI64();
8693
              setItem_idIsSet(true);
8694
            } else { 
8695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8696
            }
8697
            break;
8698
          default:
8699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8700
        }
8701
        iprot.readFieldEnd();
8702
      }
8703
      iprot.readStructEnd();
8704
      validate();
8705
    }
8706
 
8707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8708
      validate();
8709
 
8710
      oprot.writeStructBegin(STRUCT_DESC);
8711
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8712
      oprot.writeI64(this.warehouse_id);
8713
      oprot.writeFieldEnd();
8714
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8715
      oprot.writeI64(this.item_id);
8716
      oprot.writeFieldEnd();
8717
      oprot.writeFieldStop();
8718
      oprot.writeStructEnd();
8719
    }
8720
 
8721
    @Override
8722
    public String toString() {
8723
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
8724
      boolean first = true;
8725
 
8726
      sb.append("warehouse_id:");
8727
      sb.append(this.warehouse_id);
8728
      first = false;
8729
      if (!first) sb.append(", ");
8730
      sb.append("item_id:");
8731
      sb.append(this.item_id);
8732
      first = false;
8733
      sb.append(")");
8734
      return sb.toString();
8735
    }
8736
 
8737
    public void validate() throws org.apache.thrift.TException {
8738
      // check for required fields
8739
    }
8740
 
8741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8742
      try {
8743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8744
      } catch (org.apache.thrift.TException te) {
8745
        throw new java.io.IOException(te);
8746
      }
8747
    }
8748
 
8749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8750
      try {
8751
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8752
        __isset_bit_vector = new BitSet(1);
8753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8754
      } catch (org.apache.thrift.TException te) {
8755
        throw new java.io.IOException(te);
8756
      }
8757
    }
8758
 
8759
  }
8760
 
8761
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
8762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
8763
 
8764
    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);
8765
    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);
8766
 
8767
    private long success; // required
8768
    private InventoryServiceException cex; // required
8769
 
8770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8772
      SUCCESS((short)0, "success"),
8773
      CEX((short)1, "cex");
8774
 
8775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8776
 
8777
      static {
8778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8779
          byName.put(field.getFieldName(), field);
8780
        }
8781
      }
8782
 
8783
      /**
8784
       * Find the _Fields constant that matches fieldId, or null if its not found.
8785
       */
8786
      public static _Fields findByThriftId(int fieldId) {
8787
        switch(fieldId) {
8788
          case 0: // SUCCESS
8789
            return SUCCESS;
8790
          case 1: // CEX
8791
            return CEX;
8792
          default:
8793
            return null;
8794
        }
8795
      }
8796
 
8797
      /**
8798
       * Find the _Fields constant that matches fieldId, throwing an exception
8799
       * if it is not found.
8800
       */
8801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8802
        _Fields fields = findByThriftId(fieldId);
8803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8804
        return fields;
8805
      }
8806
 
8807
      /**
8808
       * Find the _Fields constant that matches name, or null if its not found.
8809
       */
8810
      public static _Fields findByName(String name) {
8811
        return byName.get(name);
8812
      }
8813
 
8814
      private final short _thriftId;
8815
      private final String _fieldName;
8816
 
8817
      _Fields(short thriftId, String fieldName) {
8818
        _thriftId = thriftId;
8819
        _fieldName = fieldName;
8820
      }
8821
 
8822
      public short getThriftFieldId() {
8823
        return _thriftId;
8824
      }
8825
 
8826
      public String getFieldName() {
8827
        return _fieldName;
8828
      }
8829
    }
8830
 
8831
    // isset id assignments
8832
    private static final int __SUCCESS_ISSET_ID = 0;
8833
    private BitSet __isset_bit_vector = new BitSet(1);
8834
 
8835
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8836
    static {
8837
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8838
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8839
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8840
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
8844
    }
8845
 
8846
    public getItemAvailibilityAtWarehouse_result() {
8847
    }
8848
 
8849
    public getItemAvailibilityAtWarehouse_result(
8850
      long success,
8851
      InventoryServiceException cex)
8852
    {
8853
      this();
8854
      this.success = success;
8855
      setSuccessIsSet(true);
8856
      this.cex = cex;
8857
    }
8858
 
8859
    /**
8860
     * Performs a deep copy on <i>other</i>.
8861
     */
8862
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
8863
      __isset_bit_vector.clear();
8864
      __isset_bit_vector.or(other.__isset_bit_vector);
8865
      this.success = other.success;
8866
      if (other.isSetCex()) {
8867
        this.cex = new InventoryServiceException(other.cex);
8868
      }
8869
    }
8870
 
8871
    public getItemAvailibilityAtWarehouse_result deepCopy() {
8872
      return new getItemAvailibilityAtWarehouse_result(this);
8873
    }
8874
 
8875
    @Override
8876
    public void clear() {
8877
      setSuccessIsSet(false);
8878
      this.success = 0;
8879
      this.cex = null;
8880
    }
8881
 
8882
    public long getSuccess() {
8883
      return this.success;
8884
    }
8885
 
8886
    public void setSuccess(long success) {
8887
      this.success = success;
8888
      setSuccessIsSet(true);
8889
    }
8890
 
8891
    public void unsetSuccess() {
8892
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8893
    }
8894
 
8895
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8896
    public boolean isSetSuccess() {
8897
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8898
    }
8899
 
8900
    public void setSuccessIsSet(boolean value) {
8901
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8902
    }
8903
 
8904
    public InventoryServiceException getCex() {
8905
      return this.cex;
8906
    }
8907
 
8908
    public void setCex(InventoryServiceException cex) {
8909
      this.cex = cex;
8910
    }
8911
 
8912
    public void unsetCex() {
8913
      this.cex = null;
8914
    }
8915
 
8916
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8917
    public boolean isSetCex() {
8918
      return this.cex != null;
8919
    }
8920
 
8921
    public void setCexIsSet(boolean value) {
8922
      if (!value) {
8923
        this.cex = null;
8924
      }
8925
    }
8926
 
8927
    public void setFieldValue(_Fields field, Object value) {
8928
      switch (field) {
8929
      case SUCCESS:
8930
        if (value == null) {
8931
          unsetSuccess();
8932
        } else {
8933
          setSuccess((Long)value);
8934
        }
8935
        break;
8936
 
8937
      case CEX:
8938
        if (value == null) {
8939
          unsetCex();
8940
        } else {
8941
          setCex((InventoryServiceException)value);
8942
        }
8943
        break;
8944
 
8945
      }
8946
    }
8947
 
8948
    public Object getFieldValue(_Fields field) {
8949
      switch (field) {
8950
      case SUCCESS:
8951
        return Long.valueOf(getSuccess());
8952
 
8953
      case CEX:
8954
        return getCex();
8955
 
8956
      }
8957
      throw new IllegalStateException();
8958
    }
8959
 
8960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8961
    public boolean isSet(_Fields field) {
8962
      if (field == null) {
8963
        throw new IllegalArgumentException();
8964
      }
8965
 
8966
      switch (field) {
8967
      case SUCCESS:
8968
        return isSetSuccess();
8969
      case CEX:
8970
        return isSetCex();
8971
      }
8972
      throw new IllegalStateException();
8973
    }
8974
 
8975
    @Override
8976
    public boolean equals(Object that) {
8977
      if (that == null)
8978
        return false;
8979
      if (that instanceof getItemAvailibilityAtWarehouse_result)
8980
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
8981
      return false;
8982
    }
8983
 
8984
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
8985
      if (that == null)
8986
        return false;
8987
 
8988
      boolean this_present_success = true;
8989
      boolean that_present_success = true;
8990
      if (this_present_success || that_present_success) {
8991
        if (!(this_present_success && that_present_success))
8992
          return false;
8993
        if (this.success != that.success)
8994
          return false;
8995
      }
8996
 
8997
      boolean this_present_cex = true && this.isSetCex();
8998
      boolean that_present_cex = true && that.isSetCex();
8999
      if (this_present_cex || that_present_cex) {
9000
        if (!(this_present_cex && that_present_cex))
9001
          return false;
9002
        if (!this.cex.equals(that.cex))
9003
          return false;
9004
      }
9005
 
9006
      return true;
9007
    }
9008
 
9009
    @Override
9010
    public int hashCode() {
9011
      return 0;
9012
    }
9013
 
9014
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
9015
      if (!getClass().equals(other.getClass())) {
9016
        return getClass().getName().compareTo(other.getClass().getName());
9017
      }
9018
 
9019
      int lastComparison = 0;
9020
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
9021
 
9022
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9023
      if (lastComparison != 0) {
9024
        return lastComparison;
9025
      }
9026
      if (isSetSuccess()) {
9027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9028
        if (lastComparison != 0) {
9029
          return lastComparison;
9030
        }
9031
      }
9032
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9033
      if (lastComparison != 0) {
9034
        return lastComparison;
9035
      }
9036
      if (isSetCex()) {
9037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9038
        if (lastComparison != 0) {
9039
          return lastComparison;
9040
        }
9041
      }
9042
      return 0;
9043
    }
9044
 
9045
    public _Fields fieldForId(int fieldId) {
9046
      return _Fields.findByThriftId(fieldId);
9047
    }
9048
 
9049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9050
      org.apache.thrift.protocol.TField field;
9051
      iprot.readStructBegin();
9052
      while (true)
9053
      {
9054
        field = iprot.readFieldBegin();
9055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9056
          break;
9057
        }
9058
        switch (field.id) {
9059
          case 0: // SUCCESS
9060
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9061
              this.success = iprot.readI64();
9062
              setSuccessIsSet(true);
9063
            } else { 
9064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9065
            }
9066
            break;
9067
          case 1: // CEX
9068
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9069
              this.cex = new InventoryServiceException();
9070
              this.cex.read(iprot);
9071
            } else { 
9072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9073
            }
9074
            break;
9075
          default:
9076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9077
        }
9078
        iprot.readFieldEnd();
9079
      }
9080
      iprot.readStructEnd();
9081
      validate();
9082
    }
9083
 
9084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9085
      oprot.writeStructBegin(STRUCT_DESC);
9086
 
9087
      if (this.isSetSuccess()) {
9088
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9089
        oprot.writeI64(this.success);
9090
        oprot.writeFieldEnd();
9091
      } else if (this.isSetCex()) {
9092
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9093
        this.cex.write(oprot);
9094
        oprot.writeFieldEnd();
9095
      }
9096
      oprot.writeFieldStop();
9097
      oprot.writeStructEnd();
9098
    }
9099
 
9100
    @Override
9101
    public String toString() {
9102
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
9103
      boolean first = true;
9104
 
9105
      sb.append("success:");
9106
      sb.append(this.success);
9107
      first = false;
9108
      if (!first) sb.append(", ");
9109
      sb.append("cex:");
9110
      if (this.cex == null) {
9111
        sb.append("null");
9112
      } else {
9113
        sb.append(this.cex);
9114
      }
9115
      first = false;
9116
      sb.append(")");
9117
      return sb.toString();
9118
    }
9119
 
9120
    public void validate() throws org.apache.thrift.TException {
9121
      // check for required fields
9122
    }
9123
 
9124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9125
      try {
9126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9127
      } catch (org.apache.thrift.TException te) {
9128
        throw new java.io.IOException(te);
9129
      }
9130
    }
9131
 
9132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9133
      try {
9134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9135
      } catch (org.apache.thrift.TException te) {
9136
        throw new java.io.IOException(te);
9137
      }
9138
    }
9139
 
9140
  }
9141
 
9142
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
9143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
9144
 
9145
    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 9146
    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 9147
 
9148
    private long itemId; // required
5978 rajveer 9149
    private long sourceId; // required
5945 mandeep.dh 9150
 
9151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 9153
      ITEM_ID((short)1, "itemId"),
9154
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 9155
 
9156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9157
 
9158
      static {
9159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9160
          byName.put(field.getFieldName(), field);
9161
        }
9162
      }
9163
 
9164
      /**
9165
       * Find the _Fields constant that matches fieldId, or null if its not found.
9166
       */
9167
      public static _Fields findByThriftId(int fieldId) {
9168
        switch(fieldId) {
9169
          case 1: // ITEM_ID
9170
            return ITEM_ID;
5978 rajveer 9171
          case 2: // SOURCE_ID
9172
            return SOURCE_ID;
5945 mandeep.dh 9173
          default:
9174
            return null;
9175
        }
9176
      }
9177
 
9178
      /**
9179
       * Find the _Fields constant that matches fieldId, throwing an exception
9180
       * if it is not found.
9181
       */
9182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9183
        _Fields fields = findByThriftId(fieldId);
9184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9185
        return fields;
9186
      }
9187
 
9188
      /**
9189
       * Find the _Fields constant that matches name, or null if its not found.
9190
       */
9191
      public static _Fields findByName(String name) {
9192
        return byName.get(name);
9193
      }
9194
 
9195
      private final short _thriftId;
9196
      private final String _fieldName;
9197
 
9198
      _Fields(short thriftId, String fieldName) {
9199
        _thriftId = thriftId;
9200
        _fieldName = fieldName;
9201
      }
9202
 
9203
      public short getThriftFieldId() {
9204
        return _thriftId;
9205
      }
9206
 
9207
      public String getFieldName() {
9208
        return _fieldName;
9209
      }
9210
    }
9211
 
9212
    // isset id assignments
9213
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 9214
    private static final int __SOURCEID_ISSET_ID = 1;
9215
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 9216
 
9217
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9218
    static {
9219
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9220
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 9222
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9223
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 9224
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9225
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
9226
    }
9227
 
9228
    public getItemAvailabilityAtLocation_args() {
9229
    }
9230
 
9231
    public getItemAvailabilityAtLocation_args(
5978 rajveer 9232
      long itemId,
9233
      long sourceId)
5945 mandeep.dh 9234
    {
9235
      this();
9236
      this.itemId = itemId;
9237
      setItemIdIsSet(true);
5978 rajveer 9238
      this.sourceId = sourceId;
9239
      setSourceIdIsSet(true);
5945 mandeep.dh 9240
    }
9241
 
9242
    /**
9243
     * Performs a deep copy on <i>other</i>.
9244
     */
9245
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
9246
      __isset_bit_vector.clear();
9247
      __isset_bit_vector.or(other.__isset_bit_vector);
9248
      this.itemId = other.itemId;
5978 rajveer 9249
      this.sourceId = other.sourceId;
5945 mandeep.dh 9250
    }
9251
 
9252
    public getItemAvailabilityAtLocation_args deepCopy() {
9253
      return new getItemAvailabilityAtLocation_args(this);
9254
    }
9255
 
9256
    @Override
9257
    public void clear() {
9258
      setItemIdIsSet(false);
9259
      this.itemId = 0;
5978 rajveer 9260
      setSourceIdIsSet(false);
9261
      this.sourceId = 0;
5945 mandeep.dh 9262
    }
9263
 
9264
    public long getItemId() {
9265
      return this.itemId;
9266
    }
9267
 
9268
    public void setItemId(long itemId) {
9269
      this.itemId = itemId;
9270
      setItemIdIsSet(true);
9271
    }
9272
 
9273
    public void unsetItemId() {
9274
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9275
    }
9276
 
9277
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9278
    public boolean isSetItemId() {
9279
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9280
    }
9281
 
9282
    public void setItemIdIsSet(boolean value) {
9283
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9284
    }
9285
 
5978 rajveer 9286
    public long getSourceId() {
9287
      return this.sourceId;
9288
    }
9289
 
9290
    public void setSourceId(long sourceId) {
9291
      this.sourceId = sourceId;
9292
      setSourceIdIsSet(true);
9293
    }
9294
 
9295
    public void unsetSourceId() {
9296
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
9297
    }
9298
 
9299
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
9300
    public boolean isSetSourceId() {
9301
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
9302
    }
9303
 
9304
    public void setSourceIdIsSet(boolean value) {
9305
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
9306
    }
9307
 
5945 mandeep.dh 9308
    public void setFieldValue(_Fields field, Object value) {
9309
      switch (field) {
9310
      case ITEM_ID:
9311
        if (value == null) {
9312
          unsetItemId();
9313
        } else {
9314
          setItemId((Long)value);
9315
        }
9316
        break;
9317
 
5978 rajveer 9318
      case SOURCE_ID:
9319
        if (value == null) {
9320
          unsetSourceId();
9321
        } else {
9322
          setSourceId((Long)value);
9323
        }
9324
        break;
9325
 
5945 mandeep.dh 9326
      }
9327
    }
9328
 
9329
    public Object getFieldValue(_Fields field) {
9330
      switch (field) {
9331
      case ITEM_ID:
9332
        return Long.valueOf(getItemId());
9333
 
5978 rajveer 9334
      case SOURCE_ID:
9335
        return Long.valueOf(getSourceId());
9336
 
5945 mandeep.dh 9337
      }
9338
      throw new IllegalStateException();
9339
    }
9340
 
9341
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9342
    public boolean isSet(_Fields field) {
9343
      if (field == null) {
9344
        throw new IllegalArgumentException();
9345
      }
9346
 
9347
      switch (field) {
9348
      case ITEM_ID:
9349
        return isSetItemId();
5978 rajveer 9350
      case SOURCE_ID:
9351
        return isSetSourceId();
5945 mandeep.dh 9352
      }
9353
      throw new IllegalStateException();
9354
    }
9355
 
9356
    @Override
9357
    public boolean equals(Object that) {
9358
      if (that == null)
9359
        return false;
9360
      if (that instanceof getItemAvailabilityAtLocation_args)
9361
        return this.equals((getItemAvailabilityAtLocation_args)that);
9362
      return false;
9363
    }
9364
 
9365
    public boolean equals(getItemAvailabilityAtLocation_args that) {
9366
      if (that == null)
9367
        return false;
9368
 
9369
      boolean this_present_itemId = true;
9370
      boolean that_present_itemId = true;
9371
      if (this_present_itemId || that_present_itemId) {
9372
        if (!(this_present_itemId && that_present_itemId))
9373
          return false;
9374
        if (this.itemId != that.itemId)
9375
          return false;
9376
      }
9377
 
5978 rajveer 9378
      boolean this_present_sourceId = true;
9379
      boolean that_present_sourceId = true;
9380
      if (this_present_sourceId || that_present_sourceId) {
9381
        if (!(this_present_sourceId && that_present_sourceId))
9382
          return false;
9383
        if (this.sourceId != that.sourceId)
9384
          return false;
9385
      }
9386
 
5945 mandeep.dh 9387
      return true;
9388
    }
9389
 
9390
    @Override
9391
    public int hashCode() {
9392
      return 0;
9393
    }
9394
 
9395
    public int compareTo(getItemAvailabilityAtLocation_args other) {
9396
      if (!getClass().equals(other.getClass())) {
9397
        return getClass().getName().compareTo(other.getClass().getName());
9398
      }
9399
 
9400
      int lastComparison = 0;
9401
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
9402
 
9403
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9404
      if (lastComparison != 0) {
9405
        return lastComparison;
9406
      }
9407
      if (isSetItemId()) {
9408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9409
        if (lastComparison != 0) {
9410
          return lastComparison;
9411
        }
9412
      }
5978 rajveer 9413
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
9414
      if (lastComparison != 0) {
9415
        return lastComparison;
9416
      }
9417
      if (isSetSourceId()) {
9418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
9419
        if (lastComparison != 0) {
9420
          return lastComparison;
9421
        }
9422
      }
5945 mandeep.dh 9423
      return 0;
9424
    }
9425
 
9426
    public _Fields fieldForId(int fieldId) {
9427
      return _Fields.findByThriftId(fieldId);
9428
    }
9429
 
9430
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9431
      org.apache.thrift.protocol.TField field;
9432
      iprot.readStructBegin();
9433
      while (true)
9434
      {
9435
        field = iprot.readFieldBegin();
9436
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9437
          break;
9438
        }
9439
        switch (field.id) {
9440
          case 1: // ITEM_ID
9441
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9442
              this.itemId = iprot.readI64();
9443
              setItemIdIsSet(true);
9444
            } else { 
9445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9446
            }
9447
            break;
5978 rajveer 9448
          case 2: // SOURCE_ID
9449
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9450
              this.sourceId = iprot.readI64();
9451
              setSourceIdIsSet(true);
9452
            } else { 
9453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9454
            }
9455
            break;
5945 mandeep.dh 9456
          default:
9457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9458
        }
9459
        iprot.readFieldEnd();
9460
      }
9461
      iprot.readStructEnd();
9462
      validate();
9463
    }
9464
 
9465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9466
      validate();
9467
 
9468
      oprot.writeStructBegin(STRUCT_DESC);
9469
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9470
      oprot.writeI64(this.itemId);
9471
      oprot.writeFieldEnd();
5978 rajveer 9472
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
9473
      oprot.writeI64(this.sourceId);
9474
      oprot.writeFieldEnd();
5945 mandeep.dh 9475
      oprot.writeFieldStop();
9476
      oprot.writeStructEnd();
9477
    }
9478
 
9479
    @Override
9480
    public String toString() {
9481
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
9482
      boolean first = true;
9483
 
9484
      sb.append("itemId:");
9485
      sb.append(this.itemId);
9486
      first = false;
5978 rajveer 9487
      if (!first) sb.append(", ");
9488
      sb.append("sourceId:");
9489
      sb.append(this.sourceId);
9490
      first = false;
5945 mandeep.dh 9491
      sb.append(")");
9492
      return sb.toString();
9493
    }
9494
 
9495
    public void validate() throws org.apache.thrift.TException {
9496
      // check for required fields
9497
    }
9498
 
9499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9500
      try {
9501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9502
      } catch (org.apache.thrift.TException te) {
9503
        throw new java.io.IOException(te);
9504
      }
9505
    }
9506
 
9507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9508
      try {
9509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9510
      } catch (org.apache.thrift.TException te) {
9511
        throw new java.io.IOException(te);
9512
      }
9513
    }
9514
 
9515
  }
9516
 
9517
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
9518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
9519
 
9520
    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);
9521
    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);
9522
 
9523
    private List<Long> success; // required
9524
    private InventoryServiceException isex; // required
9525
 
9526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9528
      SUCCESS((short)0, "success"),
9529
      ISEX((short)1, "isex");
9530
 
9531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9532
 
9533
      static {
9534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9535
          byName.put(field.getFieldName(), field);
9536
        }
9537
      }
9538
 
9539
      /**
9540
       * Find the _Fields constant that matches fieldId, or null if its not found.
9541
       */
9542
      public static _Fields findByThriftId(int fieldId) {
9543
        switch(fieldId) {
9544
          case 0: // SUCCESS
9545
            return SUCCESS;
9546
          case 1: // ISEX
9547
            return ISEX;
9548
          default:
9549
            return null;
9550
        }
9551
      }
9552
 
9553
      /**
9554
       * Find the _Fields constant that matches fieldId, throwing an exception
9555
       * if it is not found.
9556
       */
9557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9558
        _Fields fields = findByThriftId(fieldId);
9559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9560
        return fields;
9561
      }
9562
 
9563
      /**
9564
       * Find the _Fields constant that matches name, or null if its not found.
9565
       */
9566
      public static _Fields findByName(String name) {
9567
        return byName.get(name);
9568
      }
9569
 
9570
      private final short _thriftId;
9571
      private final String _fieldName;
9572
 
9573
      _Fields(short thriftId, String fieldName) {
9574
        _thriftId = thriftId;
9575
        _fieldName = fieldName;
9576
      }
9577
 
9578
      public short getThriftFieldId() {
9579
        return _thriftId;
9580
      }
9581
 
9582
      public String getFieldName() {
9583
        return _fieldName;
9584
      }
9585
    }
9586
 
9587
    // isset id assignments
9588
 
9589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9590
    static {
9591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9593
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9594
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9595
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
9599
    }
9600
 
9601
    public getItemAvailabilityAtLocation_result() {
9602
    }
9603
 
9604
    public getItemAvailabilityAtLocation_result(
9605
      List<Long> success,
9606
      InventoryServiceException isex)
9607
    {
9608
      this();
9609
      this.success = success;
9610
      this.isex = isex;
9611
    }
9612
 
9613
    /**
9614
     * Performs a deep copy on <i>other</i>.
9615
     */
9616
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
9617
      if (other.isSetSuccess()) {
9618
        List<Long> __this__success = new ArrayList<Long>();
9619
        for (Long other_element : other.success) {
9620
          __this__success.add(other_element);
9621
        }
9622
        this.success = __this__success;
9623
      }
9624
      if (other.isSetIsex()) {
9625
        this.isex = new InventoryServiceException(other.isex);
9626
      }
9627
    }
9628
 
9629
    public getItemAvailabilityAtLocation_result deepCopy() {
9630
      return new getItemAvailabilityAtLocation_result(this);
9631
    }
9632
 
9633
    @Override
9634
    public void clear() {
9635
      this.success = null;
9636
      this.isex = null;
9637
    }
9638
 
9639
    public int getSuccessSize() {
9640
      return (this.success == null) ? 0 : this.success.size();
9641
    }
9642
 
9643
    public java.util.Iterator<Long> getSuccessIterator() {
9644
      return (this.success == null) ? null : this.success.iterator();
9645
    }
9646
 
9647
    public void addToSuccess(long elem) {
9648
      if (this.success == null) {
9649
        this.success = new ArrayList<Long>();
9650
      }
9651
      this.success.add(elem);
9652
    }
9653
 
9654
    public List<Long> getSuccess() {
9655
      return this.success;
9656
    }
9657
 
9658
    public void setSuccess(List<Long> success) {
9659
      this.success = success;
9660
    }
9661
 
9662
    public void unsetSuccess() {
9663
      this.success = null;
9664
    }
9665
 
9666
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9667
    public boolean isSetSuccess() {
9668
      return this.success != null;
9669
    }
9670
 
9671
    public void setSuccessIsSet(boolean value) {
9672
      if (!value) {
9673
        this.success = null;
9674
      }
9675
    }
9676
 
9677
    public InventoryServiceException getIsex() {
9678
      return this.isex;
9679
    }
9680
 
9681
    public void setIsex(InventoryServiceException isex) {
9682
      this.isex = isex;
9683
    }
9684
 
9685
    public void unsetIsex() {
9686
      this.isex = null;
9687
    }
9688
 
9689
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
9690
    public boolean isSetIsex() {
9691
      return this.isex != null;
9692
    }
9693
 
9694
    public void setIsexIsSet(boolean value) {
9695
      if (!value) {
9696
        this.isex = null;
9697
      }
9698
    }
9699
 
9700
    public void setFieldValue(_Fields field, Object value) {
9701
      switch (field) {
9702
      case SUCCESS:
9703
        if (value == null) {
9704
          unsetSuccess();
9705
        } else {
9706
          setSuccess((List<Long>)value);
9707
        }
9708
        break;
9709
 
9710
      case ISEX:
9711
        if (value == null) {
9712
          unsetIsex();
9713
        } else {
9714
          setIsex((InventoryServiceException)value);
9715
        }
9716
        break;
9717
 
9718
      }
9719
    }
9720
 
9721
    public Object getFieldValue(_Fields field) {
9722
      switch (field) {
9723
      case SUCCESS:
9724
        return getSuccess();
9725
 
9726
      case ISEX:
9727
        return getIsex();
9728
 
9729
      }
9730
      throw new IllegalStateException();
9731
    }
9732
 
9733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9734
    public boolean isSet(_Fields field) {
9735
      if (field == null) {
9736
        throw new IllegalArgumentException();
9737
      }
9738
 
9739
      switch (field) {
9740
      case SUCCESS:
9741
        return isSetSuccess();
9742
      case ISEX:
9743
        return isSetIsex();
9744
      }
9745
      throw new IllegalStateException();
9746
    }
9747
 
9748
    @Override
9749
    public boolean equals(Object that) {
9750
      if (that == null)
9751
        return false;
9752
      if (that instanceof getItemAvailabilityAtLocation_result)
9753
        return this.equals((getItemAvailabilityAtLocation_result)that);
9754
      return false;
9755
    }
9756
 
9757
    public boolean equals(getItemAvailabilityAtLocation_result that) {
9758
      if (that == null)
9759
        return false;
9760
 
9761
      boolean this_present_success = true && this.isSetSuccess();
9762
      boolean that_present_success = true && that.isSetSuccess();
9763
      if (this_present_success || that_present_success) {
9764
        if (!(this_present_success && that_present_success))
9765
          return false;
9766
        if (!this.success.equals(that.success))
9767
          return false;
9768
      }
9769
 
9770
      boolean this_present_isex = true && this.isSetIsex();
9771
      boolean that_present_isex = true && that.isSetIsex();
9772
      if (this_present_isex || that_present_isex) {
9773
        if (!(this_present_isex && that_present_isex))
9774
          return false;
9775
        if (!this.isex.equals(that.isex))
9776
          return false;
9777
      }
9778
 
9779
      return true;
9780
    }
9781
 
9782
    @Override
9783
    public int hashCode() {
9784
      return 0;
9785
    }
9786
 
9787
    public int compareTo(getItemAvailabilityAtLocation_result other) {
9788
      if (!getClass().equals(other.getClass())) {
9789
        return getClass().getName().compareTo(other.getClass().getName());
9790
      }
9791
 
9792
      int lastComparison = 0;
9793
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
9794
 
9795
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9796
      if (lastComparison != 0) {
9797
        return lastComparison;
9798
      }
9799
      if (isSetSuccess()) {
9800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9801
        if (lastComparison != 0) {
9802
          return lastComparison;
9803
        }
9804
      }
9805
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
9806
      if (lastComparison != 0) {
9807
        return lastComparison;
9808
      }
9809
      if (isSetIsex()) {
9810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
9811
        if (lastComparison != 0) {
9812
          return lastComparison;
9813
        }
9814
      }
9815
      return 0;
9816
    }
9817
 
9818
    public _Fields fieldForId(int fieldId) {
9819
      return _Fields.findByThriftId(fieldId);
9820
    }
9821
 
9822
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9823
      org.apache.thrift.protocol.TField field;
9824
      iprot.readStructBegin();
9825
      while (true)
9826
      {
9827
        field = iprot.readFieldBegin();
9828
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9829
          break;
9830
        }
9831
        switch (field.id) {
9832
          case 0: // SUCCESS
9833
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9834
              {
9835
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
9836
                this.success = new ArrayList<Long>(_list20.size);
9837
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
9838
                {
9839
                  long _elem22; // required
9840
                  _elem22 = iprot.readI64();
9841
                  this.success.add(_elem22);
9842
                }
9843
                iprot.readListEnd();
9844
              }
9845
            } else { 
9846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9847
            }
9848
            break;
9849
          case 1: // ISEX
9850
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9851
              this.isex = new InventoryServiceException();
9852
              this.isex.read(iprot);
9853
            } else { 
9854
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9855
            }
9856
            break;
9857
          default:
9858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9859
        }
9860
        iprot.readFieldEnd();
9861
      }
9862
      iprot.readStructEnd();
9863
      validate();
9864
    }
9865
 
9866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9867
      oprot.writeStructBegin(STRUCT_DESC);
9868
 
9869
      if (this.isSetSuccess()) {
9870
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9871
        {
9872
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
9873
          for (long _iter23 : this.success)
9874
          {
9875
            oprot.writeI64(_iter23);
9876
          }
9877
          oprot.writeListEnd();
9878
        }
9879
        oprot.writeFieldEnd();
9880
      } else if (this.isSetIsex()) {
9881
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
9882
        this.isex.write(oprot);
9883
        oprot.writeFieldEnd();
9884
      }
9885
      oprot.writeFieldStop();
9886
      oprot.writeStructEnd();
9887
    }
9888
 
9889
    @Override
9890
    public String toString() {
9891
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
9892
      boolean first = true;
9893
 
9894
      sb.append("success:");
9895
      if (this.success == null) {
9896
        sb.append("null");
9897
      } else {
9898
        sb.append(this.success);
9899
      }
9900
      first = false;
9901
      if (!first) sb.append(", ");
9902
      sb.append("isex:");
9903
      if (this.isex == null) {
9904
        sb.append("null");
9905
      } else {
9906
        sb.append(this.isex);
9907
      }
9908
      first = false;
9909
      sb.append(")");
9910
      return sb.toString();
9911
    }
9912
 
9913
    public void validate() throws org.apache.thrift.TException {
9914
      // check for required fields
9915
    }
9916
 
9917
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9918
      try {
9919
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9920
      } catch (org.apache.thrift.TException te) {
9921
        throw new java.io.IOException(te);
9922
      }
9923
    }
9924
 
9925
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9926
      try {
9927
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9928
      } catch (org.apache.thrift.TException te) {
9929
        throw new java.io.IOException(te);
9930
      }
9931
    }
9932
 
9933
  }
9934
 
9935
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
9936
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
9937
 
9938
    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);
9939
 
9940
    private boolean isActive; // required
9941
 
9942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9943
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9944
      IS_ACTIVE((short)1, "isActive");
9945
 
9946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9947
 
9948
      static {
9949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9950
          byName.put(field.getFieldName(), field);
9951
        }
9952
      }
9953
 
9954
      /**
9955
       * Find the _Fields constant that matches fieldId, or null if its not found.
9956
       */
9957
      public static _Fields findByThriftId(int fieldId) {
9958
        switch(fieldId) {
9959
          case 1: // IS_ACTIVE
9960
            return IS_ACTIVE;
9961
          default:
9962
            return null;
9963
        }
9964
      }
9965
 
9966
      /**
9967
       * Find the _Fields constant that matches fieldId, throwing an exception
9968
       * if it is not found.
9969
       */
9970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9971
        _Fields fields = findByThriftId(fieldId);
9972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9973
        return fields;
9974
      }
9975
 
9976
      /**
9977
       * Find the _Fields constant that matches name, or null if its not found.
9978
       */
9979
      public static _Fields findByName(String name) {
9980
        return byName.get(name);
9981
      }
9982
 
9983
      private final short _thriftId;
9984
      private final String _fieldName;
9985
 
9986
      _Fields(short thriftId, String fieldName) {
9987
        _thriftId = thriftId;
9988
        _fieldName = fieldName;
9989
      }
9990
 
9991
      public short getThriftFieldId() {
9992
        return _thriftId;
9993
      }
9994
 
9995
      public String getFieldName() {
9996
        return _fieldName;
9997
      }
9998
    }
9999
 
10000
    // isset id assignments
10001
    private static final int __ISACTIVE_ISSET_ID = 0;
10002
    private BitSet __isset_bit_vector = new BitSet(1);
10003
 
10004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10005
    static {
10006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10007
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10008
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
10011
    }
10012
 
10013
    public getAllWarehouses_args() {
10014
    }
10015
 
10016
    public getAllWarehouses_args(
10017
      boolean isActive)
10018
    {
10019
      this();
10020
      this.isActive = isActive;
10021
      setIsActiveIsSet(true);
10022
    }
10023
 
10024
    /**
10025
     * Performs a deep copy on <i>other</i>.
10026
     */
10027
    public getAllWarehouses_args(getAllWarehouses_args other) {
10028
      __isset_bit_vector.clear();
10029
      __isset_bit_vector.or(other.__isset_bit_vector);
10030
      this.isActive = other.isActive;
10031
    }
10032
 
10033
    public getAllWarehouses_args deepCopy() {
10034
      return new getAllWarehouses_args(this);
10035
    }
10036
 
10037
    @Override
10038
    public void clear() {
10039
      setIsActiveIsSet(false);
10040
      this.isActive = false;
10041
    }
10042
 
10043
    public boolean isIsActive() {
10044
      return this.isActive;
10045
    }
10046
 
10047
    public void setIsActive(boolean isActive) {
10048
      this.isActive = isActive;
10049
      setIsActiveIsSet(true);
10050
    }
10051
 
10052
    public void unsetIsActive() {
10053
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
10054
    }
10055
 
10056
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
10057
    public boolean isSetIsActive() {
10058
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
10059
    }
10060
 
10061
    public void setIsActiveIsSet(boolean value) {
10062
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
10063
    }
10064
 
10065
    public void setFieldValue(_Fields field, Object value) {
10066
      switch (field) {
10067
      case IS_ACTIVE:
10068
        if (value == null) {
10069
          unsetIsActive();
10070
        } else {
10071
          setIsActive((Boolean)value);
10072
        }
10073
        break;
10074
 
10075
      }
10076
    }
10077
 
10078
    public Object getFieldValue(_Fields field) {
10079
      switch (field) {
10080
      case IS_ACTIVE:
10081
        return Boolean.valueOf(isIsActive());
10082
 
10083
      }
10084
      throw new IllegalStateException();
10085
    }
10086
 
10087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10088
    public boolean isSet(_Fields field) {
10089
      if (field == null) {
10090
        throw new IllegalArgumentException();
10091
      }
10092
 
10093
      switch (field) {
10094
      case IS_ACTIVE:
10095
        return isSetIsActive();
10096
      }
10097
      throw new IllegalStateException();
10098
    }
10099
 
10100
    @Override
10101
    public boolean equals(Object that) {
10102
      if (that == null)
10103
        return false;
10104
      if (that instanceof getAllWarehouses_args)
10105
        return this.equals((getAllWarehouses_args)that);
10106
      return false;
10107
    }
10108
 
10109
    public boolean equals(getAllWarehouses_args that) {
10110
      if (that == null)
10111
        return false;
10112
 
10113
      boolean this_present_isActive = true;
10114
      boolean that_present_isActive = true;
10115
      if (this_present_isActive || that_present_isActive) {
10116
        if (!(this_present_isActive && that_present_isActive))
10117
          return false;
10118
        if (this.isActive != that.isActive)
10119
          return false;
10120
      }
10121
 
10122
      return true;
10123
    }
10124
 
10125
    @Override
10126
    public int hashCode() {
10127
      return 0;
10128
    }
10129
 
10130
    public int compareTo(getAllWarehouses_args other) {
10131
      if (!getClass().equals(other.getClass())) {
10132
        return getClass().getName().compareTo(other.getClass().getName());
10133
      }
10134
 
10135
      int lastComparison = 0;
10136
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
10137
 
10138
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
10139
      if (lastComparison != 0) {
10140
        return lastComparison;
10141
      }
10142
      if (isSetIsActive()) {
10143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
10144
        if (lastComparison != 0) {
10145
          return lastComparison;
10146
        }
10147
      }
10148
      return 0;
10149
    }
10150
 
10151
    public _Fields fieldForId(int fieldId) {
10152
      return _Fields.findByThriftId(fieldId);
10153
    }
10154
 
10155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10156
      org.apache.thrift.protocol.TField field;
10157
      iprot.readStructBegin();
10158
      while (true)
10159
      {
10160
        field = iprot.readFieldBegin();
10161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10162
          break;
10163
        }
10164
        switch (field.id) {
10165
          case 1: // IS_ACTIVE
10166
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10167
              this.isActive = iprot.readBool();
10168
              setIsActiveIsSet(true);
10169
            } else { 
10170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10171
            }
10172
            break;
10173
          default:
10174
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10175
        }
10176
        iprot.readFieldEnd();
10177
      }
10178
      iprot.readStructEnd();
10179
      validate();
10180
    }
10181
 
10182
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10183
      validate();
10184
 
10185
      oprot.writeStructBegin(STRUCT_DESC);
10186
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
10187
      oprot.writeBool(this.isActive);
10188
      oprot.writeFieldEnd();
10189
      oprot.writeFieldStop();
10190
      oprot.writeStructEnd();
10191
    }
10192
 
10193
    @Override
10194
    public String toString() {
10195
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
10196
      boolean first = true;
10197
 
10198
      sb.append("isActive:");
10199
      sb.append(this.isActive);
10200
      first = false;
10201
      sb.append(")");
10202
      return sb.toString();
10203
    }
10204
 
10205
    public void validate() throws org.apache.thrift.TException {
10206
      // check for required fields
10207
    }
10208
 
10209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10210
      try {
10211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10212
      } catch (org.apache.thrift.TException te) {
10213
        throw new java.io.IOException(te);
10214
      }
10215
    }
10216
 
10217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10218
      try {
10219
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10220
        __isset_bit_vector = new BitSet(1);
10221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10222
      } catch (org.apache.thrift.TException te) {
10223
        throw new java.io.IOException(te);
10224
      }
10225
    }
10226
 
10227
  }
10228
 
10229
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
10230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
10231
 
10232
    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);
10233
    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);
10234
 
10235
    private List<Warehouse> success; // required
10236
    private InventoryServiceException cex; // required
10237
 
10238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10240
      SUCCESS((short)0, "success"),
10241
      CEX((short)1, "cex");
10242
 
10243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10244
 
10245
      static {
10246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10247
          byName.put(field.getFieldName(), field);
10248
        }
10249
      }
10250
 
10251
      /**
10252
       * Find the _Fields constant that matches fieldId, or null if its not found.
10253
       */
10254
      public static _Fields findByThriftId(int fieldId) {
10255
        switch(fieldId) {
10256
          case 0: // SUCCESS
10257
            return SUCCESS;
10258
          case 1: // CEX
10259
            return CEX;
10260
          default:
10261
            return null;
10262
        }
10263
      }
10264
 
10265
      /**
10266
       * Find the _Fields constant that matches fieldId, throwing an exception
10267
       * if it is not found.
10268
       */
10269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10270
        _Fields fields = findByThriftId(fieldId);
10271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10272
        return fields;
10273
      }
10274
 
10275
      /**
10276
       * Find the _Fields constant that matches name, or null if its not found.
10277
       */
10278
      public static _Fields findByName(String name) {
10279
        return byName.get(name);
10280
      }
10281
 
10282
      private final short _thriftId;
10283
      private final String _fieldName;
10284
 
10285
      _Fields(short thriftId, String fieldName) {
10286
        _thriftId = thriftId;
10287
        _fieldName = fieldName;
10288
      }
10289
 
10290
      public short getThriftFieldId() {
10291
        return _thriftId;
10292
      }
10293
 
10294
      public String getFieldName() {
10295
        return _fieldName;
10296
      }
10297
    }
10298
 
10299
    // isset id assignments
10300
 
10301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10302
    static {
10303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10304
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10305
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10306
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
10307
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
10311
    }
10312
 
10313
    public getAllWarehouses_result() {
10314
    }
10315
 
10316
    public getAllWarehouses_result(
10317
      List<Warehouse> success,
10318
      InventoryServiceException cex)
10319
    {
10320
      this();
10321
      this.success = success;
10322
      this.cex = cex;
10323
    }
10324
 
10325
    /**
10326
     * Performs a deep copy on <i>other</i>.
10327
     */
10328
    public getAllWarehouses_result(getAllWarehouses_result other) {
10329
      if (other.isSetSuccess()) {
10330
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
10331
        for (Warehouse other_element : other.success) {
10332
          __this__success.add(new Warehouse(other_element));
10333
        }
10334
        this.success = __this__success;
10335
      }
10336
      if (other.isSetCex()) {
10337
        this.cex = new InventoryServiceException(other.cex);
10338
      }
10339
    }
10340
 
10341
    public getAllWarehouses_result deepCopy() {
10342
      return new getAllWarehouses_result(this);
10343
    }
10344
 
10345
    @Override
10346
    public void clear() {
10347
      this.success = null;
10348
      this.cex = null;
10349
    }
10350
 
10351
    public int getSuccessSize() {
10352
      return (this.success == null) ? 0 : this.success.size();
10353
    }
10354
 
10355
    public java.util.Iterator<Warehouse> getSuccessIterator() {
10356
      return (this.success == null) ? null : this.success.iterator();
10357
    }
10358
 
10359
    public void addToSuccess(Warehouse elem) {
10360
      if (this.success == null) {
10361
        this.success = new ArrayList<Warehouse>();
10362
      }
10363
      this.success.add(elem);
10364
    }
10365
 
10366
    public List<Warehouse> getSuccess() {
10367
      return this.success;
10368
    }
10369
 
10370
    public void setSuccess(List<Warehouse> success) {
10371
      this.success = success;
10372
    }
10373
 
10374
    public void unsetSuccess() {
10375
      this.success = null;
10376
    }
10377
 
10378
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10379
    public boolean isSetSuccess() {
10380
      return this.success != null;
10381
    }
10382
 
10383
    public void setSuccessIsSet(boolean value) {
10384
      if (!value) {
10385
        this.success = null;
10386
      }
10387
    }
10388
 
10389
    public InventoryServiceException getCex() {
10390
      return this.cex;
10391
    }
10392
 
10393
    public void setCex(InventoryServiceException cex) {
10394
      this.cex = cex;
10395
    }
10396
 
10397
    public void unsetCex() {
10398
      this.cex = null;
10399
    }
10400
 
10401
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10402
    public boolean isSetCex() {
10403
      return this.cex != null;
10404
    }
10405
 
10406
    public void setCexIsSet(boolean value) {
10407
      if (!value) {
10408
        this.cex = null;
10409
      }
10410
    }
10411
 
10412
    public void setFieldValue(_Fields field, Object value) {
10413
      switch (field) {
10414
      case SUCCESS:
10415
        if (value == null) {
10416
          unsetSuccess();
10417
        } else {
10418
          setSuccess((List<Warehouse>)value);
10419
        }
10420
        break;
10421
 
10422
      case CEX:
10423
        if (value == null) {
10424
          unsetCex();
10425
        } else {
10426
          setCex((InventoryServiceException)value);
10427
        }
10428
        break;
10429
 
10430
      }
10431
    }
10432
 
10433
    public Object getFieldValue(_Fields field) {
10434
      switch (field) {
10435
      case SUCCESS:
10436
        return getSuccess();
10437
 
10438
      case CEX:
10439
        return getCex();
10440
 
10441
      }
10442
      throw new IllegalStateException();
10443
    }
10444
 
10445
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10446
    public boolean isSet(_Fields field) {
10447
      if (field == null) {
10448
        throw new IllegalArgumentException();
10449
      }
10450
 
10451
      switch (field) {
10452
      case SUCCESS:
10453
        return isSetSuccess();
10454
      case CEX:
10455
        return isSetCex();
10456
      }
10457
      throw new IllegalStateException();
10458
    }
10459
 
10460
    @Override
10461
    public boolean equals(Object that) {
10462
      if (that == null)
10463
        return false;
10464
      if (that instanceof getAllWarehouses_result)
10465
        return this.equals((getAllWarehouses_result)that);
10466
      return false;
10467
    }
10468
 
10469
    public boolean equals(getAllWarehouses_result that) {
10470
      if (that == null)
10471
        return false;
10472
 
10473
      boolean this_present_success = true && this.isSetSuccess();
10474
      boolean that_present_success = true && that.isSetSuccess();
10475
      if (this_present_success || that_present_success) {
10476
        if (!(this_present_success && that_present_success))
10477
          return false;
10478
        if (!this.success.equals(that.success))
10479
          return false;
10480
      }
10481
 
10482
      boolean this_present_cex = true && this.isSetCex();
10483
      boolean that_present_cex = true && that.isSetCex();
10484
      if (this_present_cex || that_present_cex) {
10485
        if (!(this_present_cex && that_present_cex))
10486
          return false;
10487
        if (!this.cex.equals(that.cex))
10488
          return false;
10489
      }
10490
 
10491
      return true;
10492
    }
10493
 
10494
    @Override
10495
    public int hashCode() {
10496
      return 0;
10497
    }
10498
 
10499
    public int compareTo(getAllWarehouses_result other) {
10500
      if (!getClass().equals(other.getClass())) {
10501
        return getClass().getName().compareTo(other.getClass().getName());
10502
      }
10503
 
10504
      int lastComparison = 0;
10505
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
10506
 
10507
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10508
      if (lastComparison != 0) {
10509
        return lastComparison;
10510
      }
10511
      if (isSetSuccess()) {
10512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10513
        if (lastComparison != 0) {
10514
          return lastComparison;
10515
        }
10516
      }
10517
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10518
      if (lastComparison != 0) {
10519
        return lastComparison;
10520
      }
10521
      if (isSetCex()) {
10522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10523
        if (lastComparison != 0) {
10524
          return lastComparison;
10525
        }
10526
      }
10527
      return 0;
10528
    }
10529
 
10530
    public _Fields fieldForId(int fieldId) {
10531
      return _Fields.findByThriftId(fieldId);
10532
    }
10533
 
10534
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10535
      org.apache.thrift.protocol.TField field;
10536
      iprot.readStructBegin();
10537
      while (true)
10538
      {
10539
        field = iprot.readFieldBegin();
10540
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10541
          break;
10542
        }
10543
        switch (field.id) {
10544
          case 0: // SUCCESS
10545
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10546
              {
10547
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
10548
                this.success = new ArrayList<Warehouse>(_list24.size);
10549
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
10550
                {
10551
                  Warehouse _elem26; // required
10552
                  _elem26 = new Warehouse();
10553
                  _elem26.read(iprot);
10554
                  this.success.add(_elem26);
10555
                }
10556
                iprot.readListEnd();
10557
              }
10558
            } else { 
10559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10560
            }
10561
            break;
10562
          case 1: // CEX
10563
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10564
              this.cex = new InventoryServiceException();
10565
              this.cex.read(iprot);
10566
            } else { 
10567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10568
            }
10569
            break;
10570
          default:
10571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10572
        }
10573
        iprot.readFieldEnd();
10574
      }
10575
      iprot.readStructEnd();
10576
      validate();
10577
    }
10578
 
10579
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10580
      oprot.writeStructBegin(STRUCT_DESC);
10581
 
10582
      if (this.isSetSuccess()) {
10583
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10584
        {
10585
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10586
          for (Warehouse _iter27 : this.success)
10587
          {
10588
            _iter27.write(oprot);
10589
          }
10590
          oprot.writeListEnd();
10591
        }
10592
        oprot.writeFieldEnd();
10593
      } else if (this.isSetCex()) {
10594
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10595
        this.cex.write(oprot);
10596
        oprot.writeFieldEnd();
10597
      }
10598
      oprot.writeFieldStop();
10599
      oprot.writeStructEnd();
10600
    }
10601
 
10602
    @Override
10603
    public String toString() {
10604
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
10605
      boolean first = true;
10606
 
10607
      sb.append("success:");
10608
      if (this.success == null) {
10609
        sb.append("null");
10610
      } else {
10611
        sb.append(this.success);
10612
      }
10613
      first = false;
10614
      if (!first) sb.append(", ");
10615
      sb.append("cex:");
10616
      if (this.cex == null) {
10617
        sb.append("null");
10618
      } else {
10619
        sb.append(this.cex);
10620
      }
10621
      first = false;
10622
      sb.append(")");
10623
      return sb.toString();
10624
    }
10625
 
10626
    public void validate() throws org.apache.thrift.TException {
10627
      // check for required fields
10628
    }
10629
 
10630
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10631
      try {
10632
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10633
      } catch (org.apache.thrift.TException te) {
10634
        throw new java.io.IOException(te);
10635
      }
10636
    }
10637
 
10638
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10639
      try {
10640
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10641
      } catch (org.apache.thrift.TException te) {
10642
        throw new java.io.IOException(te);
10643
      }
10644
    }
10645
 
10646
  }
10647
 
10648
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
10649
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
10650
 
10651
    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);
10652
 
10653
    private long warehouse_id; // required
10654
 
10655
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10656
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10657
      WAREHOUSE_ID((short)1, "warehouse_id");
10658
 
10659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10660
 
10661
      static {
10662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10663
          byName.put(field.getFieldName(), field);
10664
        }
10665
      }
10666
 
10667
      /**
10668
       * Find the _Fields constant that matches fieldId, or null if its not found.
10669
       */
10670
      public static _Fields findByThriftId(int fieldId) {
10671
        switch(fieldId) {
10672
          case 1: // WAREHOUSE_ID
10673
            return WAREHOUSE_ID;
10674
          default:
10675
            return null;
10676
        }
10677
      }
10678
 
10679
      /**
10680
       * Find the _Fields constant that matches fieldId, throwing an exception
10681
       * if it is not found.
10682
       */
10683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10684
        _Fields fields = findByThriftId(fieldId);
10685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10686
        return fields;
10687
      }
10688
 
10689
      /**
10690
       * Find the _Fields constant that matches name, or null if its not found.
10691
       */
10692
      public static _Fields findByName(String name) {
10693
        return byName.get(name);
10694
      }
10695
 
10696
      private final short _thriftId;
10697
      private final String _fieldName;
10698
 
10699
      _Fields(short thriftId, String fieldName) {
10700
        _thriftId = thriftId;
10701
        _fieldName = fieldName;
10702
      }
10703
 
10704
      public short getThriftFieldId() {
10705
        return _thriftId;
10706
      }
10707
 
10708
      public String getFieldName() {
10709
        return _fieldName;
10710
      }
10711
    }
10712
 
10713
    // isset id assignments
10714
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
10715
    private BitSet __isset_bit_vector = new BitSet(1);
10716
 
10717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10718
    static {
10719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10720
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
10724
    }
10725
 
10726
    public getWarehouse_args() {
10727
    }
10728
 
10729
    public getWarehouse_args(
10730
      long warehouse_id)
10731
    {
10732
      this();
10733
      this.warehouse_id = warehouse_id;
10734
      setWarehouse_idIsSet(true);
10735
    }
10736
 
10737
    /**
10738
     * Performs a deep copy on <i>other</i>.
10739
     */
10740
    public getWarehouse_args(getWarehouse_args other) {
10741
      __isset_bit_vector.clear();
10742
      __isset_bit_vector.or(other.__isset_bit_vector);
10743
      this.warehouse_id = other.warehouse_id;
10744
    }
10745
 
10746
    public getWarehouse_args deepCopy() {
10747
      return new getWarehouse_args(this);
10748
    }
10749
 
10750
    @Override
10751
    public void clear() {
10752
      setWarehouse_idIsSet(false);
10753
      this.warehouse_id = 0;
10754
    }
10755
 
10756
    public long getWarehouse_id() {
10757
      return this.warehouse_id;
10758
    }
10759
 
10760
    public void setWarehouse_id(long warehouse_id) {
10761
      this.warehouse_id = warehouse_id;
10762
      setWarehouse_idIsSet(true);
10763
    }
10764
 
10765
    public void unsetWarehouse_id() {
10766
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
10767
    }
10768
 
10769
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
10770
    public boolean isSetWarehouse_id() {
10771
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
10772
    }
10773
 
10774
    public void setWarehouse_idIsSet(boolean value) {
10775
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
10776
    }
10777
 
10778
    public void setFieldValue(_Fields field, Object value) {
10779
      switch (field) {
10780
      case WAREHOUSE_ID:
10781
        if (value == null) {
10782
          unsetWarehouse_id();
10783
        } else {
10784
          setWarehouse_id((Long)value);
10785
        }
10786
        break;
10787
 
10788
      }
10789
    }
10790
 
10791
    public Object getFieldValue(_Fields field) {
10792
      switch (field) {
10793
      case WAREHOUSE_ID:
10794
        return Long.valueOf(getWarehouse_id());
10795
 
10796
      }
10797
      throw new IllegalStateException();
10798
    }
10799
 
10800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10801
    public boolean isSet(_Fields field) {
10802
      if (field == null) {
10803
        throw new IllegalArgumentException();
10804
      }
10805
 
10806
      switch (field) {
10807
      case WAREHOUSE_ID:
10808
        return isSetWarehouse_id();
10809
      }
10810
      throw new IllegalStateException();
10811
    }
10812
 
10813
    @Override
10814
    public boolean equals(Object that) {
10815
      if (that == null)
10816
        return false;
10817
      if (that instanceof getWarehouse_args)
10818
        return this.equals((getWarehouse_args)that);
10819
      return false;
10820
    }
10821
 
10822
    public boolean equals(getWarehouse_args that) {
10823
      if (that == null)
10824
        return false;
10825
 
10826
      boolean this_present_warehouse_id = true;
10827
      boolean that_present_warehouse_id = true;
10828
      if (this_present_warehouse_id || that_present_warehouse_id) {
10829
        if (!(this_present_warehouse_id && that_present_warehouse_id))
10830
          return false;
10831
        if (this.warehouse_id != that.warehouse_id)
10832
          return false;
10833
      }
10834
 
10835
      return true;
10836
    }
10837
 
10838
    @Override
10839
    public int hashCode() {
10840
      return 0;
10841
    }
10842
 
10843
    public int compareTo(getWarehouse_args other) {
10844
      if (!getClass().equals(other.getClass())) {
10845
        return getClass().getName().compareTo(other.getClass().getName());
10846
      }
10847
 
10848
      int lastComparison = 0;
10849
      getWarehouse_args typedOther = (getWarehouse_args)other;
10850
 
10851
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
10852
      if (lastComparison != 0) {
10853
        return lastComparison;
10854
      }
10855
      if (isSetWarehouse_id()) {
10856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10857
        if (lastComparison != 0) {
10858
          return lastComparison;
10859
        }
10860
      }
10861
      return 0;
10862
    }
10863
 
10864
    public _Fields fieldForId(int fieldId) {
10865
      return _Fields.findByThriftId(fieldId);
10866
    }
10867
 
10868
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10869
      org.apache.thrift.protocol.TField field;
10870
      iprot.readStructBegin();
10871
      while (true)
10872
      {
10873
        field = iprot.readFieldBegin();
10874
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10875
          break;
10876
        }
10877
        switch (field.id) {
10878
          case 1: // WAREHOUSE_ID
10879
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10880
              this.warehouse_id = iprot.readI64();
10881
              setWarehouse_idIsSet(true);
10882
            } else { 
10883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10884
            }
10885
            break;
10886
          default:
10887
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10888
        }
10889
        iprot.readFieldEnd();
10890
      }
10891
      iprot.readStructEnd();
10892
      validate();
10893
    }
10894
 
10895
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10896
      validate();
10897
 
10898
      oprot.writeStructBegin(STRUCT_DESC);
10899
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10900
      oprot.writeI64(this.warehouse_id);
10901
      oprot.writeFieldEnd();
10902
      oprot.writeFieldStop();
10903
      oprot.writeStructEnd();
10904
    }
10905
 
10906
    @Override
10907
    public String toString() {
10908
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
10909
      boolean first = true;
10910
 
10911
      sb.append("warehouse_id:");
10912
      sb.append(this.warehouse_id);
10913
      first = false;
10914
      sb.append(")");
10915
      return sb.toString();
10916
    }
10917
 
10918
    public void validate() throws org.apache.thrift.TException {
10919
      // check for required fields
10920
    }
10921
 
10922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10923
      try {
10924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10925
      } catch (org.apache.thrift.TException te) {
10926
        throw new java.io.IOException(te);
10927
      }
10928
    }
10929
 
10930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10931
      try {
10932
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10933
        __isset_bit_vector = new BitSet(1);
10934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10935
      } catch (org.apache.thrift.TException te) {
10936
        throw new java.io.IOException(te);
10937
      }
10938
    }
10939
 
10940
  }
10941
 
10942
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
10943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
10944
 
10945
    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);
10946
    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);
10947
 
10948
    private Warehouse success; // required
10949
    private InventoryServiceException cex; // required
10950
 
10951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10953
      SUCCESS((short)0, "success"),
10954
      CEX((short)1, "cex");
10955
 
10956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10957
 
10958
      static {
10959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10960
          byName.put(field.getFieldName(), field);
10961
        }
10962
      }
10963
 
10964
      /**
10965
       * Find the _Fields constant that matches fieldId, or null if its not found.
10966
       */
10967
      public static _Fields findByThriftId(int fieldId) {
10968
        switch(fieldId) {
10969
          case 0: // SUCCESS
10970
            return SUCCESS;
10971
          case 1: // CEX
10972
            return CEX;
10973
          default:
10974
            return null;
10975
        }
10976
      }
10977
 
10978
      /**
10979
       * Find the _Fields constant that matches fieldId, throwing an exception
10980
       * if it is not found.
10981
       */
10982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10983
        _Fields fields = findByThriftId(fieldId);
10984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10985
        return fields;
10986
      }
10987
 
10988
      /**
10989
       * Find the _Fields constant that matches name, or null if its not found.
10990
       */
10991
      public static _Fields findByName(String name) {
10992
        return byName.get(name);
10993
      }
10994
 
10995
      private final short _thriftId;
10996
      private final String _fieldName;
10997
 
10998
      _Fields(short thriftId, String fieldName) {
10999
        _thriftId = thriftId;
11000
        _fieldName = fieldName;
11001
      }
11002
 
11003
      public short getThriftFieldId() {
11004
        return _thriftId;
11005
      }
11006
 
11007
      public String getFieldName() {
11008
        return _fieldName;
11009
      }
11010
    }
11011
 
11012
    // isset id assignments
11013
 
11014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11015
    static {
11016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11017
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11018
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
11019
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
11023
    }
11024
 
11025
    public getWarehouse_result() {
11026
    }
11027
 
11028
    public getWarehouse_result(
11029
      Warehouse success,
11030
      InventoryServiceException cex)
11031
    {
11032
      this();
11033
      this.success = success;
11034
      this.cex = cex;
11035
    }
11036
 
11037
    /**
11038
     * Performs a deep copy on <i>other</i>.
11039
     */
11040
    public getWarehouse_result(getWarehouse_result other) {
11041
      if (other.isSetSuccess()) {
11042
        this.success = new Warehouse(other.success);
11043
      }
11044
      if (other.isSetCex()) {
11045
        this.cex = new InventoryServiceException(other.cex);
11046
      }
11047
    }
11048
 
11049
    public getWarehouse_result deepCopy() {
11050
      return new getWarehouse_result(this);
11051
    }
11052
 
11053
    @Override
11054
    public void clear() {
11055
      this.success = null;
11056
      this.cex = null;
11057
    }
11058
 
11059
    public Warehouse getSuccess() {
11060
      return this.success;
11061
    }
11062
 
11063
    public void setSuccess(Warehouse success) {
11064
      this.success = success;
11065
    }
11066
 
11067
    public void unsetSuccess() {
11068
      this.success = null;
11069
    }
11070
 
11071
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11072
    public boolean isSetSuccess() {
11073
      return this.success != null;
11074
    }
11075
 
11076
    public void setSuccessIsSet(boolean value) {
11077
      if (!value) {
11078
        this.success = null;
11079
      }
11080
    }
11081
 
11082
    public InventoryServiceException getCex() {
11083
      return this.cex;
11084
    }
11085
 
11086
    public void setCex(InventoryServiceException cex) {
11087
      this.cex = cex;
11088
    }
11089
 
11090
    public void unsetCex() {
11091
      this.cex = null;
11092
    }
11093
 
11094
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11095
    public boolean isSetCex() {
11096
      return this.cex != null;
11097
    }
11098
 
11099
    public void setCexIsSet(boolean value) {
11100
      if (!value) {
11101
        this.cex = null;
11102
      }
11103
    }
11104
 
11105
    public void setFieldValue(_Fields field, Object value) {
11106
      switch (field) {
11107
      case SUCCESS:
11108
        if (value == null) {
11109
          unsetSuccess();
11110
        } else {
11111
          setSuccess((Warehouse)value);
11112
        }
11113
        break;
11114
 
11115
      case CEX:
11116
        if (value == null) {
11117
          unsetCex();
11118
        } else {
11119
          setCex((InventoryServiceException)value);
11120
        }
11121
        break;
11122
 
11123
      }
11124
    }
11125
 
11126
    public Object getFieldValue(_Fields field) {
11127
      switch (field) {
11128
      case SUCCESS:
11129
        return getSuccess();
11130
 
11131
      case CEX:
11132
        return getCex();
11133
 
11134
      }
11135
      throw new IllegalStateException();
11136
    }
11137
 
11138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11139
    public boolean isSet(_Fields field) {
11140
      if (field == null) {
11141
        throw new IllegalArgumentException();
11142
      }
11143
 
11144
      switch (field) {
11145
      case SUCCESS:
11146
        return isSetSuccess();
11147
      case CEX:
11148
        return isSetCex();
11149
      }
11150
      throw new IllegalStateException();
11151
    }
11152
 
11153
    @Override
11154
    public boolean equals(Object that) {
11155
      if (that == null)
11156
        return false;
11157
      if (that instanceof getWarehouse_result)
11158
        return this.equals((getWarehouse_result)that);
11159
      return false;
11160
    }
11161
 
11162
    public boolean equals(getWarehouse_result that) {
11163
      if (that == null)
11164
        return false;
11165
 
11166
      boolean this_present_success = true && this.isSetSuccess();
11167
      boolean that_present_success = true && that.isSetSuccess();
11168
      if (this_present_success || that_present_success) {
11169
        if (!(this_present_success && that_present_success))
11170
          return false;
11171
        if (!this.success.equals(that.success))
11172
          return false;
11173
      }
11174
 
11175
      boolean this_present_cex = true && this.isSetCex();
11176
      boolean that_present_cex = true && that.isSetCex();
11177
      if (this_present_cex || that_present_cex) {
11178
        if (!(this_present_cex && that_present_cex))
11179
          return false;
11180
        if (!this.cex.equals(that.cex))
11181
          return false;
11182
      }
11183
 
11184
      return true;
11185
    }
11186
 
11187
    @Override
11188
    public int hashCode() {
11189
      return 0;
11190
    }
11191
 
11192
    public int compareTo(getWarehouse_result other) {
11193
      if (!getClass().equals(other.getClass())) {
11194
        return getClass().getName().compareTo(other.getClass().getName());
11195
      }
11196
 
11197
      int lastComparison = 0;
11198
      getWarehouse_result typedOther = (getWarehouse_result)other;
11199
 
11200
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11201
      if (lastComparison != 0) {
11202
        return lastComparison;
11203
      }
11204
      if (isSetSuccess()) {
11205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11206
        if (lastComparison != 0) {
11207
          return lastComparison;
11208
        }
11209
      }
11210
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11211
      if (lastComparison != 0) {
11212
        return lastComparison;
11213
      }
11214
      if (isSetCex()) {
11215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11216
        if (lastComparison != 0) {
11217
          return lastComparison;
11218
        }
11219
      }
11220
      return 0;
11221
    }
11222
 
11223
    public _Fields fieldForId(int fieldId) {
11224
      return _Fields.findByThriftId(fieldId);
11225
    }
11226
 
11227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11228
      org.apache.thrift.protocol.TField field;
11229
      iprot.readStructBegin();
11230
      while (true)
11231
      {
11232
        field = iprot.readFieldBegin();
11233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11234
          break;
11235
        }
11236
        switch (field.id) {
11237
          case 0: // SUCCESS
11238
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11239
              this.success = new Warehouse();
11240
              this.success.read(iprot);
11241
            } else { 
11242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11243
            }
11244
            break;
11245
          case 1: // CEX
11246
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11247
              this.cex = new InventoryServiceException();
11248
              this.cex.read(iprot);
11249
            } else { 
11250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11251
            }
11252
            break;
11253
          default:
11254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11255
        }
11256
        iprot.readFieldEnd();
11257
      }
11258
      iprot.readStructEnd();
11259
      validate();
11260
    }
11261
 
11262
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11263
      oprot.writeStructBegin(STRUCT_DESC);
11264
 
11265
      if (this.isSetSuccess()) {
11266
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11267
        this.success.write(oprot);
11268
        oprot.writeFieldEnd();
11269
      } else if (this.isSetCex()) {
11270
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11271
        this.cex.write(oprot);
11272
        oprot.writeFieldEnd();
11273
      }
11274
      oprot.writeFieldStop();
11275
      oprot.writeStructEnd();
11276
    }
11277
 
11278
    @Override
11279
    public String toString() {
11280
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
11281
      boolean first = true;
11282
 
11283
      sb.append("success:");
11284
      if (this.success == null) {
11285
        sb.append("null");
11286
      } else {
11287
        sb.append(this.success);
11288
      }
11289
      first = false;
11290
      if (!first) sb.append(", ");
11291
      sb.append("cex:");
11292
      if (this.cex == null) {
11293
        sb.append("null");
11294
      } else {
11295
        sb.append(this.cex);
11296
      }
11297
      first = false;
11298
      sb.append(")");
11299
      return sb.toString();
11300
    }
11301
 
11302
    public void validate() throws org.apache.thrift.TException {
11303
      // check for required fields
11304
    }
11305
 
11306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11307
      try {
11308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11309
      } catch (org.apache.thrift.TException te) {
11310
        throw new java.io.IOException(te);
11311
      }
11312
    }
11313
 
11314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11315
      try {
11316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11317
      } catch (org.apache.thrift.TException te) {
11318
        throw new java.io.IOException(te);
11319
      }
11320
    }
11321
 
11322
  }
11323
 
11324
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
11326
 
11327
    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);
11328
 
11329
    private long warehouse_id; // required
11330
 
11331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11333
      WAREHOUSE_ID((short)1, "warehouse_id");
11334
 
11335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11336
 
11337
      static {
11338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11339
          byName.put(field.getFieldName(), field);
11340
        }
11341
      }
11342
 
11343
      /**
11344
       * Find the _Fields constant that matches fieldId, or null if its not found.
11345
       */
11346
      public static _Fields findByThriftId(int fieldId) {
11347
        switch(fieldId) {
11348
          case 1: // WAREHOUSE_ID
11349
            return WAREHOUSE_ID;
11350
          default:
11351
            return null;
11352
        }
11353
      }
11354
 
11355
      /**
11356
       * Find the _Fields constant that matches fieldId, throwing an exception
11357
       * if it is not found.
11358
       */
11359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11360
        _Fields fields = findByThriftId(fieldId);
11361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11362
        return fields;
11363
      }
11364
 
11365
      /**
11366
       * Find the _Fields constant that matches name, or null if its not found.
11367
       */
11368
      public static _Fields findByName(String name) {
11369
        return byName.get(name);
11370
      }
11371
 
11372
      private final short _thriftId;
11373
      private final String _fieldName;
11374
 
11375
      _Fields(short thriftId, String fieldName) {
11376
        _thriftId = thriftId;
11377
        _fieldName = fieldName;
11378
      }
11379
 
11380
      public short getThriftFieldId() {
11381
        return _thriftId;
11382
      }
11383
 
11384
      public String getFieldName() {
11385
        return _fieldName;
11386
      }
11387
    }
11388
 
11389
    // isset id assignments
11390
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11391
    private BitSet __isset_bit_vector = new BitSet(1);
11392
 
11393
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11394
    static {
11395
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11396
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
11400
    }
11401
 
11402
    public getAllItemsForWarehouse_args() {
11403
    }
11404
 
11405
    public getAllItemsForWarehouse_args(
11406
      long warehouse_id)
11407
    {
11408
      this();
11409
      this.warehouse_id = warehouse_id;
11410
      setWarehouse_idIsSet(true);
11411
    }
11412
 
11413
    /**
11414
     * Performs a deep copy on <i>other</i>.
11415
     */
11416
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
11417
      __isset_bit_vector.clear();
11418
      __isset_bit_vector.or(other.__isset_bit_vector);
11419
      this.warehouse_id = other.warehouse_id;
11420
    }
11421
 
11422
    public getAllItemsForWarehouse_args deepCopy() {
11423
      return new getAllItemsForWarehouse_args(this);
11424
    }
11425
 
11426
    @Override
11427
    public void clear() {
11428
      setWarehouse_idIsSet(false);
11429
      this.warehouse_id = 0;
11430
    }
11431
 
11432
    public long getWarehouse_id() {
11433
      return this.warehouse_id;
11434
    }
11435
 
11436
    public void setWarehouse_id(long warehouse_id) {
11437
      this.warehouse_id = warehouse_id;
11438
      setWarehouse_idIsSet(true);
11439
    }
11440
 
11441
    public void unsetWarehouse_id() {
11442
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11443
    }
11444
 
11445
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11446
    public boolean isSetWarehouse_id() {
11447
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11448
    }
11449
 
11450
    public void setWarehouse_idIsSet(boolean value) {
11451
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11452
    }
11453
 
11454
    public void setFieldValue(_Fields field, Object value) {
11455
      switch (field) {
11456
      case WAREHOUSE_ID:
11457
        if (value == null) {
11458
          unsetWarehouse_id();
11459
        } else {
11460
          setWarehouse_id((Long)value);
11461
        }
11462
        break;
11463
 
11464
      }
11465
    }
11466
 
11467
    public Object getFieldValue(_Fields field) {
11468
      switch (field) {
11469
      case WAREHOUSE_ID:
11470
        return Long.valueOf(getWarehouse_id());
11471
 
11472
      }
11473
      throw new IllegalStateException();
11474
    }
11475
 
11476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11477
    public boolean isSet(_Fields field) {
11478
      if (field == null) {
11479
        throw new IllegalArgumentException();
11480
      }
11481
 
11482
      switch (field) {
11483
      case WAREHOUSE_ID:
11484
        return isSetWarehouse_id();
11485
      }
11486
      throw new IllegalStateException();
11487
    }
11488
 
11489
    @Override
11490
    public boolean equals(Object that) {
11491
      if (that == null)
11492
        return false;
11493
      if (that instanceof getAllItemsForWarehouse_args)
11494
        return this.equals((getAllItemsForWarehouse_args)that);
11495
      return false;
11496
    }
11497
 
11498
    public boolean equals(getAllItemsForWarehouse_args that) {
11499
      if (that == null)
11500
        return false;
11501
 
11502
      boolean this_present_warehouse_id = true;
11503
      boolean that_present_warehouse_id = true;
11504
      if (this_present_warehouse_id || that_present_warehouse_id) {
11505
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11506
          return false;
11507
        if (this.warehouse_id != that.warehouse_id)
11508
          return false;
11509
      }
11510
 
11511
      return true;
11512
    }
11513
 
11514
    @Override
11515
    public int hashCode() {
11516
      return 0;
11517
    }
11518
 
11519
    public int compareTo(getAllItemsForWarehouse_args other) {
11520
      if (!getClass().equals(other.getClass())) {
11521
        return getClass().getName().compareTo(other.getClass().getName());
11522
      }
11523
 
11524
      int lastComparison = 0;
11525
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
11526
 
11527
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11528
      if (lastComparison != 0) {
11529
        return lastComparison;
11530
      }
11531
      if (isSetWarehouse_id()) {
11532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11533
        if (lastComparison != 0) {
11534
          return lastComparison;
11535
        }
11536
      }
11537
      return 0;
11538
    }
11539
 
11540
    public _Fields fieldForId(int fieldId) {
11541
      return _Fields.findByThriftId(fieldId);
11542
    }
11543
 
11544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11545
      org.apache.thrift.protocol.TField field;
11546
      iprot.readStructBegin();
11547
      while (true)
11548
      {
11549
        field = iprot.readFieldBegin();
11550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11551
          break;
11552
        }
11553
        switch (field.id) {
11554
          case 1: // WAREHOUSE_ID
11555
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11556
              this.warehouse_id = iprot.readI64();
11557
              setWarehouse_idIsSet(true);
11558
            } else { 
11559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11560
            }
11561
            break;
11562
          default:
11563
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11564
        }
11565
        iprot.readFieldEnd();
11566
      }
11567
      iprot.readStructEnd();
11568
      validate();
11569
    }
11570
 
11571
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11572
      validate();
11573
 
11574
      oprot.writeStructBegin(STRUCT_DESC);
11575
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11576
      oprot.writeI64(this.warehouse_id);
11577
      oprot.writeFieldEnd();
11578
      oprot.writeFieldStop();
11579
      oprot.writeStructEnd();
11580
    }
11581
 
11582
    @Override
11583
    public String toString() {
11584
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
11585
      boolean first = true;
11586
 
11587
      sb.append("warehouse_id:");
11588
      sb.append(this.warehouse_id);
11589
      first = false;
11590
      sb.append(")");
11591
      return sb.toString();
11592
    }
11593
 
11594
    public void validate() throws org.apache.thrift.TException {
11595
      // check for required fields
11596
    }
11597
 
11598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11599
      try {
11600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11601
      } catch (org.apache.thrift.TException te) {
11602
        throw new java.io.IOException(te);
11603
      }
11604
    }
11605
 
11606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11607
      try {
11608
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11609
        __isset_bit_vector = new BitSet(1);
11610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11611
      } catch (org.apache.thrift.TException te) {
11612
        throw new java.io.IOException(te);
11613
      }
11614
    }
11615
 
11616
  }
11617
 
11618
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
11620
 
11621
    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);
11622
    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);
11623
 
11624
    private List<Long> success; // required
11625
    private InventoryServiceException cex; // required
11626
 
11627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11629
      SUCCESS((short)0, "success"),
11630
      CEX((short)1, "cex");
11631
 
11632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11633
 
11634
      static {
11635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11636
          byName.put(field.getFieldName(), field);
11637
        }
11638
      }
11639
 
11640
      /**
11641
       * Find the _Fields constant that matches fieldId, or null if its not found.
11642
       */
11643
      public static _Fields findByThriftId(int fieldId) {
11644
        switch(fieldId) {
11645
          case 0: // SUCCESS
11646
            return SUCCESS;
11647
          case 1: // CEX
11648
            return CEX;
11649
          default:
11650
            return null;
11651
        }
11652
      }
11653
 
11654
      /**
11655
       * Find the _Fields constant that matches fieldId, throwing an exception
11656
       * if it is not found.
11657
       */
11658
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11659
        _Fields fields = findByThriftId(fieldId);
11660
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11661
        return fields;
11662
      }
11663
 
11664
      /**
11665
       * Find the _Fields constant that matches name, or null if its not found.
11666
       */
11667
      public static _Fields findByName(String name) {
11668
        return byName.get(name);
11669
      }
11670
 
11671
      private final short _thriftId;
11672
      private final String _fieldName;
11673
 
11674
      _Fields(short thriftId, String fieldName) {
11675
        _thriftId = thriftId;
11676
        _fieldName = fieldName;
11677
      }
11678
 
11679
      public short getThriftFieldId() {
11680
        return _thriftId;
11681
      }
11682
 
11683
      public String getFieldName() {
11684
        return _fieldName;
11685
      }
11686
    }
11687
 
11688
    // isset id assignments
11689
 
11690
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11691
    static {
11692
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11693
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11694
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11695
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
11696
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
11700
    }
11701
 
11702
    public getAllItemsForWarehouse_result() {
11703
    }
11704
 
11705
    public getAllItemsForWarehouse_result(
11706
      List<Long> success,
11707
      InventoryServiceException cex)
11708
    {
11709
      this();
11710
      this.success = success;
11711
      this.cex = cex;
11712
    }
11713
 
11714
    /**
11715
     * Performs a deep copy on <i>other</i>.
11716
     */
11717
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
11718
      if (other.isSetSuccess()) {
11719
        List<Long> __this__success = new ArrayList<Long>();
11720
        for (Long other_element : other.success) {
11721
          __this__success.add(other_element);
11722
        }
11723
        this.success = __this__success;
11724
      }
11725
      if (other.isSetCex()) {
11726
        this.cex = new InventoryServiceException(other.cex);
11727
      }
11728
    }
11729
 
11730
    public getAllItemsForWarehouse_result deepCopy() {
11731
      return new getAllItemsForWarehouse_result(this);
11732
    }
11733
 
11734
    @Override
11735
    public void clear() {
11736
      this.success = null;
11737
      this.cex = null;
11738
    }
11739
 
11740
    public int getSuccessSize() {
11741
      return (this.success == null) ? 0 : this.success.size();
11742
    }
11743
 
11744
    public java.util.Iterator<Long> getSuccessIterator() {
11745
      return (this.success == null) ? null : this.success.iterator();
11746
    }
11747
 
11748
    public void addToSuccess(long elem) {
11749
      if (this.success == null) {
11750
        this.success = new ArrayList<Long>();
11751
      }
11752
      this.success.add(elem);
11753
    }
11754
 
11755
    public List<Long> getSuccess() {
11756
      return this.success;
11757
    }
11758
 
11759
    public void setSuccess(List<Long> success) {
11760
      this.success = success;
11761
    }
11762
 
11763
    public void unsetSuccess() {
11764
      this.success = null;
11765
    }
11766
 
11767
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11768
    public boolean isSetSuccess() {
11769
      return this.success != null;
11770
    }
11771
 
11772
    public void setSuccessIsSet(boolean value) {
11773
      if (!value) {
11774
        this.success = null;
11775
      }
11776
    }
11777
 
11778
    public InventoryServiceException getCex() {
11779
      return this.cex;
11780
    }
11781
 
11782
    public void setCex(InventoryServiceException cex) {
11783
      this.cex = cex;
11784
    }
11785
 
11786
    public void unsetCex() {
11787
      this.cex = null;
11788
    }
11789
 
11790
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11791
    public boolean isSetCex() {
11792
      return this.cex != null;
11793
    }
11794
 
11795
    public void setCexIsSet(boolean value) {
11796
      if (!value) {
11797
        this.cex = null;
11798
      }
11799
    }
11800
 
11801
    public void setFieldValue(_Fields field, Object value) {
11802
      switch (field) {
11803
      case SUCCESS:
11804
        if (value == null) {
11805
          unsetSuccess();
11806
        } else {
11807
          setSuccess((List<Long>)value);
11808
        }
11809
        break;
11810
 
11811
      case CEX:
11812
        if (value == null) {
11813
          unsetCex();
11814
        } else {
11815
          setCex((InventoryServiceException)value);
11816
        }
11817
        break;
11818
 
11819
      }
11820
    }
11821
 
11822
    public Object getFieldValue(_Fields field) {
11823
      switch (field) {
11824
      case SUCCESS:
11825
        return getSuccess();
11826
 
11827
      case CEX:
11828
        return getCex();
11829
 
11830
      }
11831
      throw new IllegalStateException();
11832
    }
11833
 
11834
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11835
    public boolean isSet(_Fields field) {
11836
      if (field == null) {
11837
        throw new IllegalArgumentException();
11838
      }
11839
 
11840
      switch (field) {
11841
      case SUCCESS:
11842
        return isSetSuccess();
11843
      case CEX:
11844
        return isSetCex();
11845
      }
11846
      throw new IllegalStateException();
11847
    }
11848
 
11849
    @Override
11850
    public boolean equals(Object that) {
11851
      if (that == null)
11852
        return false;
11853
      if (that instanceof getAllItemsForWarehouse_result)
11854
        return this.equals((getAllItemsForWarehouse_result)that);
11855
      return false;
11856
    }
11857
 
11858
    public boolean equals(getAllItemsForWarehouse_result that) {
11859
      if (that == null)
11860
        return false;
11861
 
11862
      boolean this_present_success = true && this.isSetSuccess();
11863
      boolean that_present_success = true && that.isSetSuccess();
11864
      if (this_present_success || that_present_success) {
11865
        if (!(this_present_success && that_present_success))
11866
          return false;
11867
        if (!this.success.equals(that.success))
11868
          return false;
11869
      }
11870
 
11871
      boolean this_present_cex = true && this.isSetCex();
11872
      boolean that_present_cex = true && that.isSetCex();
11873
      if (this_present_cex || that_present_cex) {
11874
        if (!(this_present_cex && that_present_cex))
11875
          return false;
11876
        if (!this.cex.equals(that.cex))
11877
          return false;
11878
      }
11879
 
11880
      return true;
11881
    }
11882
 
11883
    @Override
11884
    public int hashCode() {
11885
      return 0;
11886
    }
11887
 
11888
    public int compareTo(getAllItemsForWarehouse_result other) {
11889
      if (!getClass().equals(other.getClass())) {
11890
        return getClass().getName().compareTo(other.getClass().getName());
11891
      }
11892
 
11893
      int lastComparison = 0;
11894
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
11895
 
11896
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11897
      if (lastComparison != 0) {
11898
        return lastComparison;
11899
      }
11900
      if (isSetSuccess()) {
11901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11902
        if (lastComparison != 0) {
11903
          return lastComparison;
11904
        }
11905
      }
11906
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11907
      if (lastComparison != 0) {
11908
        return lastComparison;
11909
      }
11910
      if (isSetCex()) {
11911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11912
        if (lastComparison != 0) {
11913
          return lastComparison;
11914
        }
11915
      }
11916
      return 0;
11917
    }
11918
 
11919
    public _Fields fieldForId(int fieldId) {
11920
      return _Fields.findByThriftId(fieldId);
11921
    }
11922
 
11923
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11924
      org.apache.thrift.protocol.TField field;
11925
      iprot.readStructBegin();
11926
      while (true)
11927
      {
11928
        field = iprot.readFieldBegin();
11929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11930
          break;
11931
        }
11932
        switch (field.id) {
11933
          case 0: // SUCCESS
11934
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11935
              {
11936
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
11937
                this.success = new ArrayList<Long>(_list28.size);
11938
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11939
                {
11940
                  long _elem30; // required
11941
                  _elem30 = iprot.readI64();
11942
                  this.success.add(_elem30);
11943
                }
11944
                iprot.readListEnd();
11945
              }
11946
            } else { 
11947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11948
            }
11949
            break;
11950
          case 1: // CEX
11951
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11952
              this.cex = new InventoryServiceException();
11953
              this.cex.read(iprot);
11954
            } else { 
11955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11956
            }
11957
            break;
11958
          default:
11959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11960
        }
11961
        iprot.readFieldEnd();
11962
      }
11963
      iprot.readStructEnd();
11964
      validate();
11965
    }
11966
 
11967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11968
      oprot.writeStructBegin(STRUCT_DESC);
11969
 
11970
      if (this.isSetSuccess()) {
11971
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11972
        {
11973
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11974
          for (long _iter31 : this.success)
11975
          {
11976
            oprot.writeI64(_iter31);
11977
          }
11978
          oprot.writeListEnd();
11979
        }
11980
        oprot.writeFieldEnd();
11981
      } else if (this.isSetCex()) {
11982
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11983
        this.cex.write(oprot);
11984
        oprot.writeFieldEnd();
11985
      }
11986
      oprot.writeFieldStop();
11987
      oprot.writeStructEnd();
11988
    }
11989
 
11990
    @Override
11991
    public String toString() {
11992
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
11993
      boolean first = true;
11994
 
11995
      sb.append("success:");
11996
      if (this.success == null) {
11997
        sb.append("null");
11998
      } else {
11999
        sb.append(this.success);
12000
      }
12001
      first = false;
12002
      if (!first) sb.append(", ");
12003
      sb.append("cex:");
12004
      if (this.cex == null) {
12005
        sb.append("null");
12006
      } else {
12007
        sb.append(this.cex);
12008
      }
12009
      first = false;
12010
      sb.append(")");
12011
      return sb.toString();
12012
    }
12013
 
12014
    public void validate() throws org.apache.thrift.TException {
12015
      // check for required fields
12016
    }
12017
 
12018
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12019
      try {
12020
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12021
      } catch (org.apache.thrift.TException te) {
12022
        throw new java.io.IOException(te);
12023
      }
12024
    }
12025
 
12026
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12027
      try {
12028
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12029
      } catch (org.apache.thrift.TException te) {
12030
        throw new java.io.IOException(te);
12031
      }
12032
    }
12033
 
12034
  }
12035
 
5967 rajveer 12036
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
12037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
12038
 
12039
    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);
12040
    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);
12041
    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);
12042
    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);
12043
 
12044
    private long itemId; // required
12045
    private long warehouseId; // required
12046
    private long sourceId; // required
12047
    private long orderId; // required
12048
 
12049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12051
      ITEM_ID((short)1, "itemId"),
12052
      WAREHOUSE_ID((short)2, "warehouseId"),
12053
      SOURCE_ID((short)3, "sourceId"),
12054
      ORDER_ID((short)4, "orderId");
12055
 
12056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12057
 
12058
      static {
12059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12060
          byName.put(field.getFieldName(), field);
12061
        }
12062
      }
12063
 
12064
      /**
12065
       * Find the _Fields constant that matches fieldId, or null if its not found.
12066
       */
12067
      public static _Fields findByThriftId(int fieldId) {
12068
        switch(fieldId) {
12069
          case 1: // ITEM_ID
12070
            return ITEM_ID;
12071
          case 2: // WAREHOUSE_ID
12072
            return WAREHOUSE_ID;
12073
          case 3: // SOURCE_ID
12074
            return SOURCE_ID;
12075
          case 4: // ORDER_ID
12076
            return ORDER_ID;
12077
          default:
12078
            return null;
12079
        }
12080
      }
12081
 
12082
      /**
12083
       * Find the _Fields constant that matches fieldId, throwing an exception
12084
       * if it is not found.
12085
       */
12086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12087
        _Fields fields = findByThriftId(fieldId);
12088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12089
        return fields;
12090
      }
12091
 
12092
      /**
12093
       * Find the _Fields constant that matches name, or null if its not found.
12094
       */
12095
      public static _Fields findByName(String name) {
12096
        return byName.get(name);
12097
      }
12098
 
12099
      private final short _thriftId;
12100
      private final String _fieldName;
12101
 
12102
      _Fields(short thriftId, String fieldName) {
12103
        _thriftId = thriftId;
12104
        _fieldName = fieldName;
12105
      }
12106
 
12107
      public short getThriftFieldId() {
12108
        return _thriftId;
12109
      }
12110
 
12111
      public String getFieldName() {
12112
        return _fieldName;
12113
      }
12114
    }
12115
 
12116
    // isset id assignments
12117
    private static final int __ITEMID_ISSET_ID = 0;
12118
    private static final int __WAREHOUSEID_ISSET_ID = 1;
12119
    private static final int __SOURCEID_ISSET_ID = 2;
12120
    private static final int __ORDERID_ISSET_ID = 3;
12121
    private BitSet __isset_bit_vector = new BitSet(4);
12122
 
12123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12124
    static {
12125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12126
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12128
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12130
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12132
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
12136
    }
12137
 
12138
    public isOrderBillable_args() {
12139
    }
12140
 
12141
    public isOrderBillable_args(
12142
      long itemId,
12143
      long warehouseId,
12144
      long sourceId,
12145
      long orderId)
12146
    {
12147
      this();
12148
      this.itemId = itemId;
12149
      setItemIdIsSet(true);
12150
      this.warehouseId = warehouseId;
12151
      setWarehouseIdIsSet(true);
12152
      this.sourceId = sourceId;
12153
      setSourceIdIsSet(true);
12154
      this.orderId = orderId;
12155
      setOrderIdIsSet(true);
12156
    }
12157
 
12158
    /**
12159
     * Performs a deep copy on <i>other</i>.
12160
     */
12161
    public isOrderBillable_args(isOrderBillable_args other) {
12162
      __isset_bit_vector.clear();
12163
      __isset_bit_vector.or(other.__isset_bit_vector);
12164
      this.itemId = other.itemId;
12165
      this.warehouseId = other.warehouseId;
12166
      this.sourceId = other.sourceId;
12167
      this.orderId = other.orderId;
12168
    }
12169
 
12170
    public isOrderBillable_args deepCopy() {
12171
      return new isOrderBillable_args(this);
12172
    }
12173
 
12174
    @Override
12175
    public void clear() {
12176
      setItemIdIsSet(false);
12177
      this.itemId = 0;
12178
      setWarehouseIdIsSet(false);
12179
      this.warehouseId = 0;
12180
      setSourceIdIsSet(false);
12181
      this.sourceId = 0;
12182
      setOrderIdIsSet(false);
12183
      this.orderId = 0;
12184
    }
12185
 
12186
    public long getItemId() {
12187
      return this.itemId;
12188
    }
12189
 
12190
    public void setItemId(long itemId) {
12191
      this.itemId = itemId;
12192
      setItemIdIsSet(true);
12193
    }
12194
 
12195
    public void unsetItemId() {
12196
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12197
    }
12198
 
12199
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12200
    public boolean isSetItemId() {
12201
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12202
    }
12203
 
12204
    public void setItemIdIsSet(boolean value) {
12205
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12206
    }
12207
 
12208
    public long getWarehouseId() {
12209
      return this.warehouseId;
12210
    }
12211
 
12212
    public void setWarehouseId(long warehouseId) {
12213
      this.warehouseId = warehouseId;
12214
      setWarehouseIdIsSet(true);
12215
    }
12216
 
12217
    public void unsetWarehouseId() {
12218
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12219
    }
12220
 
12221
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
12222
    public boolean isSetWarehouseId() {
12223
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12224
    }
12225
 
12226
    public void setWarehouseIdIsSet(boolean value) {
12227
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12228
    }
12229
 
12230
    public long getSourceId() {
12231
      return this.sourceId;
12232
    }
12233
 
12234
    public void setSourceId(long sourceId) {
12235
      this.sourceId = sourceId;
12236
      setSourceIdIsSet(true);
12237
    }
12238
 
12239
    public void unsetSourceId() {
12240
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12241
    }
12242
 
12243
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12244
    public boolean isSetSourceId() {
12245
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12246
    }
12247
 
12248
    public void setSourceIdIsSet(boolean value) {
12249
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12250
    }
12251
 
12252
    public long getOrderId() {
12253
      return this.orderId;
12254
    }
12255
 
12256
    public void setOrderId(long orderId) {
12257
      this.orderId = orderId;
12258
      setOrderIdIsSet(true);
12259
    }
12260
 
12261
    public void unsetOrderId() {
12262
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
12263
    }
12264
 
12265
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
12266
    public boolean isSetOrderId() {
12267
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
12268
    }
12269
 
12270
    public void setOrderIdIsSet(boolean value) {
12271
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
12272
    }
12273
 
12274
    public void setFieldValue(_Fields field, Object value) {
12275
      switch (field) {
12276
      case ITEM_ID:
12277
        if (value == null) {
12278
          unsetItemId();
12279
        } else {
12280
          setItemId((Long)value);
12281
        }
12282
        break;
12283
 
12284
      case WAREHOUSE_ID:
12285
        if (value == null) {
12286
          unsetWarehouseId();
12287
        } else {
12288
          setWarehouseId((Long)value);
12289
        }
12290
        break;
12291
 
12292
      case SOURCE_ID:
12293
        if (value == null) {
12294
          unsetSourceId();
12295
        } else {
12296
          setSourceId((Long)value);
12297
        }
12298
        break;
12299
 
12300
      case ORDER_ID:
12301
        if (value == null) {
12302
          unsetOrderId();
12303
        } else {
12304
          setOrderId((Long)value);
12305
        }
12306
        break;
12307
 
12308
      }
12309
    }
12310
 
12311
    public Object getFieldValue(_Fields field) {
12312
      switch (field) {
12313
      case ITEM_ID:
12314
        return Long.valueOf(getItemId());
12315
 
12316
      case WAREHOUSE_ID:
12317
        return Long.valueOf(getWarehouseId());
12318
 
12319
      case SOURCE_ID:
12320
        return Long.valueOf(getSourceId());
12321
 
12322
      case ORDER_ID:
12323
        return Long.valueOf(getOrderId());
12324
 
12325
      }
12326
      throw new IllegalStateException();
12327
    }
12328
 
12329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12330
    public boolean isSet(_Fields field) {
12331
      if (field == null) {
12332
        throw new IllegalArgumentException();
12333
      }
12334
 
12335
      switch (field) {
12336
      case ITEM_ID:
12337
        return isSetItemId();
12338
      case WAREHOUSE_ID:
12339
        return isSetWarehouseId();
12340
      case SOURCE_ID:
12341
        return isSetSourceId();
12342
      case ORDER_ID:
12343
        return isSetOrderId();
12344
      }
12345
      throw new IllegalStateException();
12346
    }
12347
 
12348
    @Override
12349
    public boolean equals(Object that) {
12350
      if (that == null)
12351
        return false;
12352
      if (that instanceof isOrderBillable_args)
12353
        return this.equals((isOrderBillable_args)that);
12354
      return false;
12355
    }
12356
 
12357
    public boolean equals(isOrderBillable_args that) {
12358
      if (that == null)
12359
        return false;
12360
 
12361
      boolean this_present_itemId = true;
12362
      boolean that_present_itemId = true;
12363
      if (this_present_itemId || that_present_itemId) {
12364
        if (!(this_present_itemId && that_present_itemId))
12365
          return false;
12366
        if (this.itemId != that.itemId)
12367
          return false;
12368
      }
12369
 
12370
      boolean this_present_warehouseId = true;
12371
      boolean that_present_warehouseId = true;
12372
      if (this_present_warehouseId || that_present_warehouseId) {
12373
        if (!(this_present_warehouseId && that_present_warehouseId))
12374
          return false;
12375
        if (this.warehouseId != that.warehouseId)
12376
          return false;
12377
      }
12378
 
12379
      boolean this_present_sourceId = true;
12380
      boolean that_present_sourceId = true;
12381
      if (this_present_sourceId || that_present_sourceId) {
12382
        if (!(this_present_sourceId && that_present_sourceId))
12383
          return false;
12384
        if (this.sourceId != that.sourceId)
12385
          return false;
12386
      }
12387
 
12388
      boolean this_present_orderId = true;
12389
      boolean that_present_orderId = true;
12390
      if (this_present_orderId || that_present_orderId) {
12391
        if (!(this_present_orderId && that_present_orderId))
12392
          return false;
12393
        if (this.orderId != that.orderId)
12394
          return false;
12395
      }
12396
 
12397
      return true;
12398
    }
12399
 
12400
    @Override
12401
    public int hashCode() {
12402
      return 0;
12403
    }
12404
 
12405
    public int compareTo(isOrderBillable_args other) {
12406
      if (!getClass().equals(other.getClass())) {
12407
        return getClass().getName().compareTo(other.getClass().getName());
12408
      }
12409
 
12410
      int lastComparison = 0;
12411
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
12412
 
12413
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12414
      if (lastComparison != 0) {
12415
        return lastComparison;
12416
      }
12417
      if (isSetItemId()) {
12418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12419
        if (lastComparison != 0) {
12420
          return lastComparison;
12421
        }
12422
      }
12423
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
12424
      if (lastComparison != 0) {
12425
        return lastComparison;
12426
      }
12427
      if (isSetWarehouseId()) {
12428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
12429
        if (lastComparison != 0) {
12430
          return lastComparison;
12431
        }
12432
      }
12433
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12434
      if (lastComparison != 0) {
12435
        return lastComparison;
12436
      }
12437
      if (isSetSourceId()) {
12438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12439
        if (lastComparison != 0) {
12440
          return lastComparison;
12441
        }
12442
      }
12443
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
12444
      if (lastComparison != 0) {
12445
        return lastComparison;
12446
      }
12447
      if (isSetOrderId()) {
12448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
12449
        if (lastComparison != 0) {
12450
          return lastComparison;
12451
        }
12452
      }
12453
      return 0;
12454
    }
12455
 
12456
    public _Fields fieldForId(int fieldId) {
12457
      return _Fields.findByThriftId(fieldId);
12458
    }
12459
 
12460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12461
      org.apache.thrift.protocol.TField field;
12462
      iprot.readStructBegin();
12463
      while (true)
12464
      {
12465
        field = iprot.readFieldBegin();
12466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12467
          break;
12468
        }
12469
        switch (field.id) {
12470
          case 1: // ITEM_ID
12471
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12472
              this.itemId = iprot.readI64();
12473
              setItemIdIsSet(true);
12474
            } else { 
12475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12476
            }
12477
            break;
12478
          case 2: // WAREHOUSE_ID
12479
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12480
              this.warehouseId = iprot.readI64();
12481
              setWarehouseIdIsSet(true);
12482
            } else { 
12483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12484
            }
12485
            break;
12486
          case 3: // SOURCE_ID
12487
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12488
              this.sourceId = iprot.readI64();
12489
              setSourceIdIsSet(true);
12490
            } else { 
12491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12492
            }
12493
            break;
12494
          case 4: // ORDER_ID
12495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12496
              this.orderId = iprot.readI64();
12497
              setOrderIdIsSet(true);
12498
            } else { 
12499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12500
            }
12501
            break;
12502
          default:
12503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12504
        }
12505
        iprot.readFieldEnd();
12506
      }
12507
      iprot.readStructEnd();
12508
      validate();
12509
    }
12510
 
12511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12512
      validate();
12513
 
12514
      oprot.writeStructBegin(STRUCT_DESC);
12515
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12516
      oprot.writeI64(this.itemId);
12517
      oprot.writeFieldEnd();
12518
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12519
      oprot.writeI64(this.warehouseId);
12520
      oprot.writeFieldEnd();
12521
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12522
      oprot.writeI64(this.sourceId);
12523
      oprot.writeFieldEnd();
12524
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
12525
      oprot.writeI64(this.orderId);
12526
      oprot.writeFieldEnd();
12527
      oprot.writeFieldStop();
12528
      oprot.writeStructEnd();
12529
    }
12530
 
12531
    @Override
12532
    public String toString() {
12533
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
12534
      boolean first = true;
12535
 
12536
      sb.append("itemId:");
12537
      sb.append(this.itemId);
12538
      first = false;
12539
      if (!first) sb.append(", ");
12540
      sb.append("warehouseId:");
12541
      sb.append(this.warehouseId);
12542
      first = false;
12543
      if (!first) sb.append(", ");
12544
      sb.append("sourceId:");
12545
      sb.append(this.sourceId);
12546
      first = false;
12547
      if (!first) sb.append(", ");
12548
      sb.append("orderId:");
12549
      sb.append(this.orderId);
12550
      first = false;
12551
      sb.append(")");
12552
      return sb.toString();
12553
    }
12554
 
12555
    public void validate() throws org.apache.thrift.TException {
12556
      // check for required fields
12557
    }
12558
 
12559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12560
      try {
12561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12562
      } catch (org.apache.thrift.TException te) {
12563
        throw new java.io.IOException(te);
12564
      }
12565
    }
12566
 
12567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12568
      try {
12569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12570
      } catch (org.apache.thrift.TException te) {
12571
        throw new java.io.IOException(te);
12572
      }
12573
    }
12574
 
12575
  }
12576
 
12577
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
12578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
12579
 
12580
    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);
12581
 
12582
    private boolean success; // required
12583
 
12584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12586
      SUCCESS((short)0, "success");
12587
 
12588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12589
 
12590
      static {
12591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12592
          byName.put(field.getFieldName(), field);
12593
        }
12594
      }
12595
 
12596
      /**
12597
       * Find the _Fields constant that matches fieldId, or null if its not found.
12598
       */
12599
      public static _Fields findByThriftId(int fieldId) {
12600
        switch(fieldId) {
12601
          case 0: // SUCCESS
12602
            return SUCCESS;
12603
          default:
12604
            return null;
12605
        }
12606
      }
12607
 
12608
      /**
12609
       * Find the _Fields constant that matches fieldId, throwing an exception
12610
       * if it is not found.
12611
       */
12612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12613
        _Fields fields = findByThriftId(fieldId);
12614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12615
        return fields;
12616
      }
12617
 
12618
      /**
12619
       * Find the _Fields constant that matches name, or null if its not found.
12620
       */
12621
      public static _Fields findByName(String name) {
12622
        return byName.get(name);
12623
      }
12624
 
12625
      private final short _thriftId;
12626
      private final String _fieldName;
12627
 
12628
      _Fields(short thriftId, String fieldName) {
12629
        _thriftId = thriftId;
12630
        _fieldName = fieldName;
12631
      }
12632
 
12633
      public short getThriftFieldId() {
12634
        return _thriftId;
12635
      }
12636
 
12637
      public String getFieldName() {
12638
        return _fieldName;
12639
      }
12640
    }
12641
 
12642
    // isset id assignments
12643
    private static final int __SUCCESS_ISSET_ID = 0;
12644
    private BitSet __isset_bit_vector = new BitSet(1);
12645
 
12646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12647
    static {
12648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12649
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
12653
    }
12654
 
12655
    public isOrderBillable_result() {
12656
    }
12657
 
12658
    public isOrderBillable_result(
12659
      boolean success)
12660
    {
12661
      this();
12662
      this.success = success;
12663
      setSuccessIsSet(true);
12664
    }
12665
 
12666
    /**
12667
     * Performs a deep copy on <i>other</i>.
12668
     */
12669
    public isOrderBillable_result(isOrderBillable_result other) {
12670
      __isset_bit_vector.clear();
12671
      __isset_bit_vector.or(other.__isset_bit_vector);
12672
      this.success = other.success;
12673
    }
12674
 
12675
    public isOrderBillable_result deepCopy() {
12676
      return new isOrderBillable_result(this);
12677
    }
12678
 
12679
    @Override
12680
    public void clear() {
12681
      setSuccessIsSet(false);
12682
      this.success = false;
12683
    }
12684
 
12685
    public boolean isSuccess() {
12686
      return this.success;
12687
    }
12688
 
12689
    public void setSuccess(boolean success) {
12690
      this.success = success;
12691
      setSuccessIsSet(true);
12692
    }
12693
 
12694
    public void unsetSuccess() {
12695
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12696
    }
12697
 
12698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12699
    public boolean isSetSuccess() {
12700
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12701
    }
12702
 
12703
    public void setSuccessIsSet(boolean value) {
12704
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12705
    }
12706
 
12707
    public void setFieldValue(_Fields field, Object value) {
12708
      switch (field) {
12709
      case SUCCESS:
12710
        if (value == null) {
12711
          unsetSuccess();
12712
        } else {
12713
          setSuccess((Boolean)value);
12714
        }
12715
        break;
12716
 
12717
      }
12718
    }
12719
 
12720
    public Object getFieldValue(_Fields field) {
12721
      switch (field) {
12722
      case SUCCESS:
12723
        return Boolean.valueOf(isSuccess());
12724
 
12725
      }
12726
      throw new IllegalStateException();
12727
    }
12728
 
12729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12730
    public boolean isSet(_Fields field) {
12731
      if (field == null) {
12732
        throw new IllegalArgumentException();
12733
      }
12734
 
12735
      switch (field) {
12736
      case SUCCESS:
12737
        return isSetSuccess();
12738
      }
12739
      throw new IllegalStateException();
12740
    }
12741
 
12742
    @Override
12743
    public boolean equals(Object that) {
12744
      if (that == null)
12745
        return false;
12746
      if (that instanceof isOrderBillable_result)
12747
        return this.equals((isOrderBillable_result)that);
12748
      return false;
12749
    }
12750
 
12751
    public boolean equals(isOrderBillable_result that) {
12752
      if (that == null)
12753
        return false;
12754
 
12755
      boolean this_present_success = true;
12756
      boolean that_present_success = true;
12757
      if (this_present_success || that_present_success) {
12758
        if (!(this_present_success && that_present_success))
12759
          return false;
12760
        if (this.success != that.success)
12761
          return false;
12762
      }
12763
 
12764
      return true;
12765
    }
12766
 
12767
    @Override
12768
    public int hashCode() {
12769
      return 0;
12770
    }
12771
 
12772
    public int compareTo(isOrderBillable_result other) {
12773
      if (!getClass().equals(other.getClass())) {
12774
        return getClass().getName().compareTo(other.getClass().getName());
12775
      }
12776
 
12777
      int lastComparison = 0;
12778
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
12779
 
12780
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12781
      if (lastComparison != 0) {
12782
        return lastComparison;
12783
      }
12784
      if (isSetSuccess()) {
12785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12786
        if (lastComparison != 0) {
12787
          return lastComparison;
12788
        }
12789
      }
12790
      return 0;
12791
    }
12792
 
12793
    public _Fields fieldForId(int fieldId) {
12794
      return _Fields.findByThriftId(fieldId);
12795
    }
12796
 
12797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12798
      org.apache.thrift.protocol.TField field;
12799
      iprot.readStructBegin();
12800
      while (true)
12801
      {
12802
        field = iprot.readFieldBegin();
12803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12804
          break;
12805
        }
12806
        switch (field.id) {
12807
          case 0: // SUCCESS
12808
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12809
              this.success = iprot.readBool();
12810
              setSuccessIsSet(true);
12811
            } else { 
12812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12813
            }
12814
            break;
12815
          default:
12816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12817
        }
12818
        iprot.readFieldEnd();
12819
      }
12820
      iprot.readStructEnd();
12821
      validate();
12822
    }
12823
 
12824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12825
      oprot.writeStructBegin(STRUCT_DESC);
12826
 
12827
      if (this.isSetSuccess()) {
12828
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12829
        oprot.writeBool(this.success);
12830
        oprot.writeFieldEnd();
12831
      }
12832
      oprot.writeFieldStop();
12833
      oprot.writeStructEnd();
12834
    }
12835
 
12836
    @Override
12837
    public String toString() {
12838
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
12839
      boolean first = true;
12840
 
12841
      sb.append("success:");
12842
      sb.append(this.success);
12843
      first = false;
12844
      sb.append(")");
12845
      return sb.toString();
12846
    }
12847
 
12848
    public void validate() throws org.apache.thrift.TException {
12849
      // check for required fields
12850
    }
12851
 
12852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12853
      try {
12854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12855
      } catch (org.apache.thrift.TException te) {
12856
        throw new java.io.IOException(te);
12857
      }
12858
    }
12859
 
12860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12861
      try {
12862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12863
      } catch (org.apache.thrift.TException te) {
12864
        throw new java.io.IOException(te);
12865
      }
12866
    }
12867
 
12868
  }
12869
 
5945 mandeep.dh 12870
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
12872
 
12873
    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);
12874
    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 12875
    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);
12876
    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);
12877
    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);
12878
    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);
12879
    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 12880
 
12881
    private long itemId; // required
12882
    private long warehouseId; // required
5967 rajveer 12883
    private long sourceId; // required
12884
    private long orderId; // required
12885
    private long createdTimestamp; // required
12886
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 12887
    private double quantity; // required
12888
 
12889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12890
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12891
      ITEM_ID((short)1, "itemId"),
12892
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 12893
      SOURCE_ID((short)3, "sourceId"),
12894
      ORDER_ID((short)4, "orderId"),
12895
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
12896
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
12897
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 12898
 
12899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12900
 
12901
      static {
12902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12903
          byName.put(field.getFieldName(), field);
12904
        }
12905
      }
12906
 
12907
      /**
12908
       * Find the _Fields constant that matches fieldId, or null if its not found.
12909
       */
12910
      public static _Fields findByThriftId(int fieldId) {
12911
        switch(fieldId) {
12912
          case 1: // ITEM_ID
12913
            return ITEM_ID;
12914
          case 2: // WAREHOUSE_ID
12915
            return WAREHOUSE_ID;
5967 rajveer 12916
          case 3: // SOURCE_ID
12917
            return SOURCE_ID;
12918
          case 4: // ORDER_ID
12919
            return ORDER_ID;
12920
          case 5: // CREATED_TIMESTAMP
12921
            return CREATED_TIMESTAMP;
12922
          case 6: // PROMISED_SHIPPING_TIMESTAMP
12923
            return PROMISED_SHIPPING_TIMESTAMP;
12924
          case 7: // QUANTITY
5945 mandeep.dh 12925
            return QUANTITY;
12926
          default:
12927
            return null;
12928
        }
12929
      }
12930
 
12931
      /**
12932
       * Find the _Fields constant that matches fieldId, throwing an exception
12933
       * if it is not found.
12934
       */
12935
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12936
        _Fields fields = findByThriftId(fieldId);
12937
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12938
        return fields;
12939
      }
12940
 
12941
      /**
12942
       * Find the _Fields constant that matches name, or null if its not found.
12943
       */
12944
      public static _Fields findByName(String name) {
12945
        return byName.get(name);
12946
      }
12947
 
12948
      private final short _thriftId;
12949
      private final String _fieldName;
12950
 
12951
      _Fields(short thriftId, String fieldName) {
12952
        _thriftId = thriftId;
12953
        _fieldName = fieldName;
12954
      }
12955
 
12956
      public short getThriftFieldId() {
12957
        return _thriftId;
12958
      }
12959
 
12960
      public String getFieldName() {
12961
        return _fieldName;
12962
      }
12963
    }
12964
 
12965
    // isset id assignments
12966
    private static final int __ITEMID_ISSET_ID = 0;
12967
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 12968
    private static final int __SOURCEID_ISSET_ID = 2;
12969
    private static final int __ORDERID_ISSET_ID = 3;
12970
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
12971
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
12972
    private static final int __QUANTITY_ISSET_ID = 6;
12973
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 12974
 
12975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12976
    static {
12977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12978
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12980
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12981
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 12982
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12984
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12985
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12986
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12988
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 12990
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
12994
    }
12995
 
12996
    public reserveItemInWarehouse_args() {
12997
    }
12998
 
12999
    public reserveItemInWarehouse_args(
13000
      long itemId,
13001
      long warehouseId,
5967 rajveer 13002
      long sourceId,
13003
      long orderId,
13004
      long createdTimestamp,
13005
      long promisedShippingTimestamp,
5945 mandeep.dh 13006
      double quantity)
13007
    {
13008
      this();
13009
      this.itemId = itemId;
13010
      setItemIdIsSet(true);
13011
      this.warehouseId = warehouseId;
13012
      setWarehouseIdIsSet(true);
5967 rajveer 13013
      this.sourceId = sourceId;
13014
      setSourceIdIsSet(true);
13015
      this.orderId = orderId;
13016
      setOrderIdIsSet(true);
13017
      this.createdTimestamp = createdTimestamp;
13018
      setCreatedTimestampIsSet(true);
13019
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13020
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 13021
      this.quantity = quantity;
13022
      setQuantityIsSet(true);
13023
    }
13024
 
13025
    /**
13026
     * Performs a deep copy on <i>other</i>.
13027
     */
13028
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
13029
      __isset_bit_vector.clear();
13030
      __isset_bit_vector.or(other.__isset_bit_vector);
13031
      this.itemId = other.itemId;
13032
      this.warehouseId = other.warehouseId;
5967 rajveer 13033
      this.sourceId = other.sourceId;
13034
      this.orderId = other.orderId;
13035
      this.createdTimestamp = other.createdTimestamp;
13036
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 13037
      this.quantity = other.quantity;
13038
    }
13039
 
13040
    public reserveItemInWarehouse_args deepCopy() {
13041
      return new reserveItemInWarehouse_args(this);
13042
    }
13043
 
13044
    @Override
13045
    public void clear() {
13046
      setItemIdIsSet(false);
13047
      this.itemId = 0;
13048
      setWarehouseIdIsSet(false);
13049
      this.warehouseId = 0;
5967 rajveer 13050
      setSourceIdIsSet(false);
13051
      this.sourceId = 0;
13052
      setOrderIdIsSet(false);
13053
      this.orderId = 0;
13054
      setCreatedTimestampIsSet(false);
13055
      this.createdTimestamp = 0;
13056
      setPromisedShippingTimestampIsSet(false);
13057
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 13058
      setQuantityIsSet(false);
13059
      this.quantity = 0.0;
13060
    }
13061
 
13062
    public long getItemId() {
13063
      return this.itemId;
13064
    }
13065
 
13066
    public void setItemId(long itemId) {
13067
      this.itemId = itemId;
13068
      setItemIdIsSet(true);
13069
    }
13070
 
13071
    public void unsetItemId() {
13072
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13073
    }
13074
 
13075
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13076
    public boolean isSetItemId() {
13077
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13078
    }
13079
 
13080
    public void setItemIdIsSet(boolean value) {
13081
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13082
    }
13083
 
13084
    public long getWarehouseId() {
13085
      return this.warehouseId;
13086
    }
13087
 
13088
    public void setWarehouseId(long warehouseId) {
13089
      this.warehouseId = warehouseId;
13090
      setWarehouseIdIsSet(true);
13091
    }
13092
 
13093
    public void unsetWarehouseId() {
13094
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13095
    }
13096
 
13097
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13098
    public boolean isSetWarehouseId() {
13099
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13100
    }
13101
 
13102
    public void setWarehouseIdIsSet(boolean value) {
13103
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13104
    }
13105
 
5967 rajveer 13106
    public long getSourceId() {
13107
      return this.sourceId;
13108
    }
13109
 
13110
    public void setSourceId(long sourceId) {
13111
      this.sourceId = sourceId;
13112
      setSourceIdIsSet(true);
13113
    }
13114
 
13115
    public void unsetSourceId() {
13116
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13117
    }
13118
 
13119
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13120
    public boolean isSetSourceId() {
13121
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13122
    }
13123
 
13124
    public void setSourceIdIsSet(boolean value) {
13125
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13126
    }
13127
 
13128
    public long getOrderId() {
13129
      return this.orderId;
13130
    }
13131
 
13132
    public void setOrderId(long orderId) {
13133
      this.orderId = orderId;
13134
      setOrderIdIsSet(true);
13135
    }
13136
 
13137
    public void unsetOrderId() {
13138
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13139
    }
13140
 
13141
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13142
    public boolean isSetOrderId() {
13143
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13144
    }
13145
 
13146
    public void setOrderIdIsSet(boolean value) {
13147
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13148
    }
13149
 
13150
    public long getCreatedTimestamp() {
13151
      return this.createdTimestamp;
13152
    }
13153
 
13154
    public void setCreatedTimestamp(long createdTimestamp) {
13155
      this.createdTimestamp = createdTimestamp;
13156
      setCreatedTimestampIsSet(true);
13157
    }
13158
 
13159
    public void unsetCreatedTimestamp() {
13160
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
13161
    }
13162
 
13163
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
13164
    public boolean isSetCreatedTimestamp() {
13165
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
13166
    }
13167
 
13168
    public void setCreatedTimestampIsSet(boolean value) {
13169
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
13170
    }
13171
 
13172
    public long getPromisedShippingTimestamp() {
13173
      return this.promisedShippingTimestamp;
13174
    }
13175
 
13176
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
13177
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13178
      setPromisedShippingTimestampIsSet(true);
13179
    }
13180
 
13181
    public void unsetPromisedShippingTimestamp() {
13182
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13183
    }
13184
 
13185
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
13186
    public boolean isSetPromisedShippingTimestamp() {
13187
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13188
    }
13189
 
13190
    public void setPromisedShippingTimestampIsSet(boolean value) {
13191
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
13192
    }
13193
 
5945 mandeep.dh 13194
    public double getQuantity() {
13195
      return this.quantity;
13196
    }
13197
 
13198
    public void setQuantity(double quantity) {
13199
      this.quantity = quantity;
13200
      setQuantityIsSet(true);
13201
    }
13202
 
13203
    public void unsetQuantity() {
13204
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
13205
    }
13206
 
13207
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
13208
    public boolean isSetQuantity() {
13209
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
13210
    }
13211
 
13212
    public void setQuantityIsSet(boolean value) {
13213
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
13214
    }
13215
 
13216
    public void setFieldValue(_Fields field, Object value) {
13217
      switch (field) {
13218
      case ITEM_ID:
13219
        if (value == null) {
13220
          unsetItemId();
13221
        } else {
13222
          setItemId((Long)value);
13223
        }
13224
        break;
13225
 
13226
      case WAREHOUSE_ID:
13227
        if (value == null) {
13228
          unsetWarehouseId();
13229
        } else {
13230
          setWarehouseId((Long)value);
13231
        }
13232
        break;
13233
 
5967 rajveer 13234
      case SOURCE_ID:
13235
        if (value == null) {
13236
          unsetSourceId();
13237
        } else {
13238
          setSourceId((Long)value);
13239
        }
13240
        break;
13241
 
13242
      case ORDER_ID:
13243
        if (value == null) {
13244
          unsetOrderId();
13245
        } else {
13246
          setOrderId((Long)value);
13247
        }
13248
        break;
13249
 
13250
      case CREATED_TIMESTAMP:
13251
        if (value == null) {
13252
          unsetCreatedTimestamp();
13253
        } else {
13254
          setCreatedTimestamp((Long)value);
13255
        }
13256
        break;
13257
 
13258
      case PROMISED_SHIPPING_TIMESTAMP:
13259
        if (value == null) {
13260
          unsetPromisedShippingTimestamp();
13261
        } else {
13262
          setPromisedShippingTimestamp((Long)value);
13263
        }
13264
        break;
13265
 
5945 mandeep.dh 13266
      case QUANTITY:
13267
        if (value == null) {
13268
          unsetQuantity();
13269
        } else {
13270
          setQuantity((Double)value);
13271
        }
13272
        break;
13273
 
13274
      }
13275
    }
13276
 
13277
    public Object getFieldValue(_Fields field) {
13278
      switch (field) {
13279
      case ITEM_ID:
13280
        return Long.valueOf(getItemId());
13281
 
13282
      case WAREHOUSE_ID:
13283
        return Long.valueOf(getWarehouseId());
13284
 
5967 rajveer 13285
      case SOURCE_ID:
13286
        return Long.valueOf(getSourceId());
13287
 
13288
      case ORDER_ID:
13289
        return Long.valueOf(getOrderId());
13290
 
13291
      case CREATED_TIMESTAMP:
13292
        return Long.valueOf(getCreatedTimestamp());
13293
 
13294
      case PROMISED_SHIPPING_TIMESTAMP:
13295
        return Long.valueOf(getPromisedShippingTimestamp());
13296
 
5945 mandeep.dh 13297
      case QUANTITY:
13298
        return Double.valueOf(getQuantity());
13299
 
13300
      }
13301
      throw new IllegalStateException();
13302
    }
13303
 
13304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13305
    public boolean isSet(_Fields field) {
13306
      if (field == null) {
13307
        throw new IllegalArgumentException();
13308
      }
13309
 
13310
      switch (field) {
13311
      case ITEM_ID:
13312
        return isSetItemId();
13313
      case WAREHOUSE_ID:
13314
        return isSetWarehouseId();
5967 rajveer 13315
      case SOURCE_ID:
13316
        return isSetSourceId();
13317
      case ORDER_ID:
13318
        return isSetOrderId();
13319
      case CREATED_TIMESTAMP:
13320
        return isSetCreatedTimestamp();
13321
      case PROMISED_SHIPPING_TIMESTAMP:
13322
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 13323
      case QUANTITY:
13324
        return isSetQuantity();
13325
      }
13326
      throw new IllegalStateException();
13327
    }
13328
 
13329
    @Override
13330
    public boolean equals(Object that) {
13331
      if (that == null)
13332
        return false;
13333
      if (that instanceof reserveItemInWarehouse_args)
13334
        return this.equals((reserveItemInWarehouse_args)that);
13335
      return false;
13336
    }
13337
 
13338
    public boolean equals(reserveItemInWarehouse_args that) {
13339
      if (that == null)
13340
        return false;
13341
 
13342
      boolean this_present_itemId = true;
13343
      boolean that_present_itemId = true;
13344
      if (this_present_itemId || that_present_itemId) {
13345
        if (!(this_present_itemId && that_present_itemId))
13346
          return false;
13347
        if (this.itemId != that.itemId)
13348
          return false;
13349
      }
13350
 
13351
      boolean this_present_warehouseId = true;
13352
      boolean that_present_warehouseId = true;
13353
      if (this_present_warehouseId || that_present_warehouseId) {
13354
        if (!(this_present_warehouseId && that_present_warehouseId))
13355
          return false;
13356
        if (this.warehouseId != that.warehouseId)
13357
          return false;
13358
      }
13359
 
5967 rajveer 13360
      boolean this_present_sourceId = true;
13361
      boolean that_present_sourceId = true;
13362
      if (this_present_sourceId || that_present_sourceId) {
13363
        if (!(this_present_sourceId && that_present_sourceId))
13364
          return false;
13365
        if (this.sourceId != that.sourceId)
13366
          return false;
13367
      }
13368
 
13369
      boolean this_present_orderId = true;
13370
      boolean that_present_orderId = true;
13371
      if (this_present_orderId || that_present_orderId) {
13372
        if (!(this_present_orderId && that_present_orderId))
13373
          return false;
13374
        if (this.orderId != that.orderId)
13375
          return false;
13376
      }
13377
 
13378
      boolean this_present_createdTimestamp = true;
13379
      boolean that_present_createdTimestamp = true;
13380
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
13381
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
13382
          return false;
13383
        if (this.createdTimestamp != that.createdTimestamp)
13384
          return false;
13385
      }
13386
 
13387
      boolean this_present_promisedShippingTimestamp = true;
13388
      boolean that_present_promisedShippingTimestamp = true;
13389
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
13390
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
13391
          return false;
13392
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
13393
          return false;
13394
      }
13395
 
5945 mandeep.dh 13396
      boolean this_present_quantity = true;
13397
      boolean that_present_quantity = true;
13398
      if (this_present_quantity || that_present_quantity) {
13399
        if (!(this_present_quantity && that_present_quantity))
13400
          return false;
13401
        if (this.quantity != that.quantity)
13402
          return false;
13403
      }
13404
 
13405
      return true;
13406
    }
13407
 
13408
    @Override
13409
    public int hashCode() {
13410
      return 0;
13411
    }
13412
 
13413
    public int compareTo(reserveItemInWarehouse_args other) {
13414
      if (!getClass().equals(other.getClass())) {
13415
        return getClass().getName().compareTo(other.getClass().getName());
13416
      }
13417
 
13418
      int lastComparison = 0;
13419
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
13420
 
13421
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13422
      if (lastComparison != 0) {
13423
        return lastComparison;
13424
      }
13425
      if (isSetItemId()) {
13426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13427
        if (lastComparison != 0) {
13428
          return lastComparison;
13429
        }
13430
      }
13431
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13432
      if (lastComparison != 0) {
13433
        return lastComparison;
13434
      }
13435
      if (isSetWarehouseId()) {
13436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13437
        if (lastComparison != 0) {
13438
          return lastComparison;
13439
        }
13440
      }
5967 rajveer 13441
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13442
      if (lastComparison != 0) {
13443
        return lastComparison;
13444
      }
13445
      if (isSetSourceId()) {
13446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13447
        if (lastComparison != 0) {
13448
          return lastComparison;
13449
        }
13450
      }
13451
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13452
      if (lastComparison != 0) {
13453
        return lastComparison;
13454
      }
13455
      if (isSetOrderId()) {
13456
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13457
        if (lastComparison != 0) {
13458
          return lastComparison;
13459
        }
13460
      }
13461
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
13462
      if (lastComparison != 0) {
13463
        return lastComparison;
13464
      }
13465
      if (isSetCreatedTimestamp()) {
13466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
13467
        if (lastComparison != 0) {
13468
          return lastComparison;
13469
        }
13470
      }
13471
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
13472
      if (lastComparison != 0) {
13473
        return lastComparison;
13474
      }
13475
      if (isSetPromisedShippingTimestamp()) {
13476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
13477
        if (lastComparison != 0) {
13478
          return lastComparison;
13479
        }
13480
      }
5945 mandeep.dh 13481
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
13482
      if (lastComparison != 0) {
13483
        return lastComparison;
13484
      }
13485
      if (isSetQuantity()) {
13486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
13487
        if (lastComparison != 0) {
13488
          return lastComparison;
13489
        }
13490
      }
13491
      return 0;
13492
    }
13493
 
13494
    public _Fields fieldForId(int fieldId) {
13495
      return _Fields.findByThriftId(fieldId);
13496
    }
13497
 
13498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13499
      org.apache.thrift.protocol.TField field;
13500
      iprot.readStructBegin();
13501
      while (true)
13502
      {
13503
        field = iprot.readFieldBegin();
13504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13505
          break;
13506
        }
13507
        switch (field.id) {
13508
          case 1: // ITEM_ID
13509
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13510
              this.itemId = iprot.readI64();
13511
              setItemIdIsSet(true);
13512
            } else { 
13513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13514
            }
13515
            break;
13516
          case 2: // WAREHOUSE_ID
13517
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13518
              this.warehouseId = iprot.readI64();
13519
              setWarehouseIdIsSet(true);
13520
            } else { 
13521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13522
            }
13523
            break;
5967 rajveer 13524
          case 3: // SOURCE_ID
13525
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13526
              this.sourceId = iprot.readI64();
13527
              setSourceIdIsSet(true);
13528
            } else { 
13529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13530
            }
13531
            break;
13532
          case 4: // ORDER_ID
13533
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13534
              this.orderId = iprot.readI64();
13535
              setOrderIdIsSet(true);
13536
            } else { 
13537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13538
            }
13539
            break;
13540
          case 5: // CREATED_TIMESTAMP
13541
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13542
              this.createdTimestamp = iprot.readI64();
13543
              setCreatedTimestampIsSet(true);
13544
            } else { 
13545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13546
            }
13547
            break;
13548
          case 6: // PROMISED_SHIPPING_TIMESTAMP
13549
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13550
              this.promisedShippingTimestamp = iprot.readI64();
13551
              setPromisedShippingTimestampIsSet(true);
13552
            } else { 
13553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13554
            }
13555
            break;
13556
          case 7: // QUANTITY
5945 mandeep.dh 13557
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
13558
              this.quantity = iprot.readDouble();
13559
              setQuantityIsSet(true);
13560
            } else { 
13561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13562
            }
13563
            break;
13564
          default:
13565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13566
        }
13567
        iprot.readFieldEnd();
13568
      }
13569
      iprot.readStructEnd();
13570
      validate();
13571
    }
13572
 
13573
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13574
      validate();
13575
 
13576
      oprot.writeStructBegin(STRUCT_DESC);
13577
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
13578
      oprot.writeI64(this.itemId);
13579
      oprot.writeFieldEnd();
13580
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13581
      oprot.writeI64(this.warehouseId);
13582
      oprot.writeFieldEnd();
5967 rajveer 13583
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
13584
      oprot.writeI64(this.sourceId);
13585
      oprot.writeFieldEnd();
13586
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13587
      oprot.writeI64(this.orderId);
13588
      oprot.writeFieldEnd();
13589
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
13590
      oprot.writeI64(this.createdTimestamp);
13591
      oprot.writeFieldEnd();
13592
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
13593
      oprot.writeI64(this.promisedShippingTimestamp);
13594
      oprot.writeFieldEnd();
5945 mandeep.dh 13595
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
13596
      oprot.writeDouble(this.quantity);
13597
      oprot.writeFieldEnd();
13598
      oprot.writeFieldStop();
13599
      oprot.writeStructEnd();
13600
    }
13601
 
13602
    @Override
13603
    public String toString() {
13604
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
13605
      boolean first = true;
13606
 
13607
      sb.append("itemId:");
13608
      sb.append(this.itemId);
13609
      first = false;
13610
      if (!first) sb.append(", ");
13611
      sb.append("warehouseId:");
13612
      sb.append(this.warehouseId);
13613
      first = false;
13614
      if (!first) sb.append(", ");
5967 rajveer 13615
      sb.append("sourceId:");
13616
      sb.append(this.sourceId);
13617
      first = false;
13618
      if (!first) sb.append(", ");
13619
      sb.append("orderId:");
13620
      sb.append(this.orderId);
13621
      first = false;
13622
      if (!first) sb.append(", ");
13623
      sb.append("createdTimestamp:");
13624
      sb.append(this.createdTimestamp);
13625
      first = false;
13626
      if (!first) sb.append(", ");
13627
      sb.append("promisedShippingTimestamp:");
13628
      sb.append(this.promisedShippingTimestamp);
13629
      first = false;
13630
      if (!first) sb.append(", ");
5945 mandeep.dh 13631
      sb.append("quantity:");
13632
      sb.append(this.quantity);
13633
      first = false;
13634
      sb.append(")");
13635
      return sb.toString();
13636
    }
13637
 
13638
    public void validate() throws org.apache.thrift.TException {
13639
      // check for required fields
13640
    }
13641
 
13642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13643
      try {
13644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13645
      } catch (org.apache.thrift.TException te) {
13646
        throw new java.io.IOException(te);
13647
      }
13648
    }
13649
 
13650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13651
      try {
13652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13653
      } catch (org.apache.thrift.TException te) {
13654
        throw new java.io.IOException(te);
13655
      }
13656
    }
13657
 
13658
  }
13659
 
13660
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
13661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
13662
 
13663
    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);
13664
    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);
13665
 
13666
    private boolean success; // required
13667
    private InventoryServiceException cex; // required
13668
 
13669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13671
      SUCCESS((short)0, "success"),
13672
      CEX((short)1, "cex");
13673
 
13674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13675
 
13676
      static {
13677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13678
          byName.put(field.getFieldName(), field);
13679
        }
13680
      }
13681
 
13682
      /**
13683
       * Find the _Fields constant that matches fieldId, or null if its not found.
13684
       */
13685
      public static _Fields findByThriftId(int fieldId) {
13686
        switch(fieldId) {
13687
          case 0: // SUCCESS
13688
            return SUCCESS;
13689
          case 1: // CEX
13690
            return CEX;
13691
          default:
13692
            return null;
13693
        }
13694
      }
13695
 
13696
      /**
13697
       * Find the _Fields constant that matches fieldId, throwing an exception
13698
       * if it is not found.
13699
       */
13700
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13701
        _Fields fields = findByThriftId(fieldId);
13702
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13703
        return fields;
13704
      }
13705
 
13706
      /**
13707
       * Find the _Fields constant that matches name, or null if its not found.
13708
       */
13709
      public static _Fields findByName(String name) {
13710
        return byName.get(name);
13711
      }
13712
 
13713
      private final short _thriftId;
13714
      private final String _fieldName;
13715
 
13716
      _Fields(short thriftId, String fieldName) {
13717
        _thriftId = thriftId;
13718
        _fieldName = fieldName;
13719
      }
13720
 
13721
      public short getThriftFieldId() {
13722
        return _thriftId;
13723
      }
13724
 
13725
      public String getFieldName() {
13726
        return _fieldName;
13727
      }
13728
    }
13729
 
13730
    // isset id assignments
13731
    private static final int __SUCCESS_ISSET_ID = 0;
13732
    private BitSet __isset_bit_vector = new BitSet(1);
13733
 
13734
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13735
    static {
13736
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13737
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13739
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13740
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13741
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13742
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
13743
    }
13744
 
13745
    public reserveItemInWarehouse_result() {
13746
    }
13747
 
13748
    public reserveItemInWarehouse_result(
13749
      boolean success,
13750
      InventoryServiceException cex)
13751
    {
13752
      this();
13753
      this.success = success;
13754
      setSuccessIsSet(true);
13755
      this.cex = cex;
13756
    }
13757
 
13758
    /**
13759
     * Performs a deep copy on <i>other</i>.
13760
     */
13761
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
13762
      __isset_bit_vector.clear();
13763
      __isset_bit_vector.or(other.__isset_bit_vector);
13764
      this.success = other.success;
13765
      if (other.isSetCex()) {
13766
        this.cex = new InventoryServiceException(other.cex);
13767
      }
13768
    }
13769
 
13770
    public reserveItemInWarehouse_result deepCopy() {
13771
      return new reserveItemInWarehouse_result(this);
13772
    }
13773
 
13774
    @Override
13775
    public void clear() {
13776
      setSuccessIsSet(false);
13777
      this.success = false;
13778
      this.cex = null;
13779
    }
13780
 
13781
    public boolean isSuccess() {
13782
      return this.success;
13783
    }
13784
 
13785
    public void setSuccess(boolean success) {
13786
      this.success = success;
13787
      setSuccessIsSet(true);
13788
    }
13789
 
13790
    public void unsetSuccess() {
13791
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13792
    }
13793
 
13794
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13795
    public boolean isSetSuccess() {
13796
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13797
    }
13798
 
13799
    public void setSuccessIsSet(boolean value) {
13800
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13801
    }
13802
 
13803
    public InventoryServiceException getCex() {
13804
      return this.cex;
13805
    }
13806
 
13807
    public void setCex(InventoryServiceException cex) {
13808
      this.cex = cex;
13809
    }
13810
 
13811
    public void unsetCex() {
13812
      this.cex = null;
13813
    }
13814
 
13815
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13816
    public boolean isSetCex() {
13817
      return this.cex != null;
13818
    }
13819
 
13820
    public void setCexIsSet(boolean value) {
13821
      if (!value) {
13822
        this.cex = null;
13823
      }
13824
    }
13825
 
13826
    public void setFieldValue(_Fields field, Object value) {
13827
      switch (field) {
13828
      case SUCCESS:
13829
        if (value == null) {
13830
          unsetSuccess();
13831
        } else {
13832
          setSuccess((Boolean)value);
13833
        }
13834
        break;
13835
 
13836
      case CEX:
13837
        if (value == null) {
13838
          unsetCex();
13839
        } else {
13840
          setCex((InventoryServiceException)value);
13841
        }
13842
        break;
13843
 
13844
      }
13845
    }
13846
 
13847
    public Object getFieldValue(_Fields field) {
13848
      switch (field) {
13849
      case SUCCESS:
13850
        return Boolean.valueOf(isSuccess());
13851
 
13852
      case CEX:
13853
        return getCex();
13854
 
13855
      }
13856
      throw new IllegalStateException();
13857
    }
13858
 
13859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13860
    public boolean isSet(_Fields field) {
13861
      if (field == null) {
13862
        throw new IllegalArgumentException();
13863
      }
13864
 
13865
      switch (field) {
13866
      case SUCCESS:
13867
        return isSetSuccess();
13868
      case CEX:
13869
        return isSetCex();
13870
      }
13871
      throw new IllegalStateException();
13872
    }
13873
 
13874
    @Override
13875
    public boolean equals(Object that) {
13876
      if (that == null)
13877
        return false;
13878
      if (that instanceof reserveItemInWarehouse_result)
13879
        return this.equals((reserveItemInWarehouse_result)that);
13880
      return false;
13881
    }
13882
 
13883
    public boolean equals(reserveItemInWarehouse_result that) {
13884
      if (that == null)
13885
        return false;
13886
 
13887
      boolean this_present_success = true;
13888
      boolean that_present_success = true;
13889
      if (this_present_success || that_present_success) {
13890
        if (!(this_present_success && that_present_success))
13891
          return false;
13892
        if (this.success != that.success)
13893
          return false;
13894
      }
13895
 
13896
      boolean this_present_cex = true && this.isSetCex();
13897
      boolean that_present_cex = true && that.isSetCex();
13898
      if (this_present_cex || that_present_cex) {
13899
        if (!(this_present_cex && that_present_cex))
13900
          return false;
13901
        if (!this.cex.equals(that.cex))
13902
          return false;
13903
      }
13904
 
13905
      return true;
13906
    }
13907
 
13908
    @Override
13909
    public int hashCode() {
13910
      return 0;
13911
    }
13912
 
13913
    public int compareTo(reserveItemInWarehouse_result other) {
13914
      if (!getClass().equals(other.getClass())) {
13915
        return getClass().getName().compareTo(other.getClass().getName());
13916
      }
13917
 
13918
      int lastComparison = 0;
13919
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
13920
 
13921
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13922
      if (lastComparison != 0) {
13923
        return lastComparison;
13924
      }
13925
      if (isSetSuccess()) {
13926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13927
        if (lastComparison != 0) {
13928
          return lastComparison;
13929
        }
13930
      }
13931
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13932
      if (lastComparison != 0) {
13933
        return lastComparison;
13934
      }
13935
      if (isSetCex()) {
13936
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13937
        if (lastComparison != 0) {
13938
          return lastComparison;
13939
        }
13940
      }
13941
      return 0;
13942
    }
13943
 
13944
    public _Fields fieldForId(int fieldId) {
13945
      return _Fields.findByThriftId(fieldId);
13946
    }
13947
 
13948
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13949
      org.apache.thrift.protocol.TField field;
13950
      iprot.readStructBegin();
13951
      while (true)
13952
      {
13953
        field = iprot.readFieldBegin();
13954
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13955
          break;
13956
        }
13957
        switch (field.id) {
13958
          case 0: // SUCCESS
13959
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13960
              this.success = iprot.readBool();
13961
              setSuccessIsSet(true);
13962
            } else { 
13963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13964
            }
13965
            break;
13966
          case 1: // CEX
13967
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13968
              this.cex = new InventoryServiceException();
13969
              this.cex.read(iprot);
13970
            } else { 
13971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13972
            }
13973
            break;
13974
          default:
13975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13976
        }
13977
        iprot.readFieldEnd();
13978
      }
13979
      iprot.readStructEnd();
13980
      validate();
13981
    }
13982
 
13983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13984
      oprot.writeStructBegin(STRUCT_DESC);
13985
 
13986
      if (this.isSetSuccess()) {
13987
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13988
        oprot.writeBool(this.success);
13989
        oprot.writeFieldEnd();
13990
      } else if (this.isSetCex()) {
13991
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13992
        this.cex.write(oprot);
13993
        oprot.writeFieldEnd();
13994
      }
13995
      oprot.writeFieldStop();
13996
      oprot.writeStructEnd();
13997
    }
13998
 
13999
    @Override
14000
    public String toString() {
14001
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
14002
      boolean first = true;
14003
 
14004
      sb.append("success:");
14005
      sb.append(this.success);
14006
      first = false;
14007
      if (!first) sb.append(", ");
14008
      sb.append("cex:");
14009
      if (this.cex == null) {
14010
        sb.append("null");
14011
      } else {
14012
        sb.append(this.cex);
14013
      }
14014
      first = false;
14015
      sb.append(")");
14016
      return sb.toString();
14017
    }
14018
 
14019
    public void validate() throws org.apache.thrift.TException {
14020
      // check for required fields
14021
    }
14022
 
14023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14024
      try {
14025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14026
      } catch (org.apache.thrift.TException te) {
14027
        throw new java.io.IOException(te);
14028
      }
14029
    }
14030
 
14031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14032
      try {
14033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14034
      } catch (org.apache.thrift.TException te) {
14035
        throw new java.io.IOException(te);
14036
      }
14037
    }
14038
 
14039
  }
14040
 
14041
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
14042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
14043
 
14044
    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);
14045
    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 14046
    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);
14047
    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);
14048
    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 14049
 
14050
    private long itemId; // required
14051
    private long warehouseId; // required
5967 rajveer 14052
    private long sourceId; // required
14053
    private long orderId; // required
5945 mandeep.dh 14054
    private double quantity; // required
14055
 
14056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14058
      ITEM_ID((short)1, "itemId"),
14059
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14060
      SOURCE_ID((short)3, "sourceId"),
14061
      ORDER_ID((short)4, "orderId"),
14062
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 14063
 
14064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14065
 
14066
      static {
14067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14068
          byName.put(field.getFieldName(), field);
14069
        }
14070
      }
14071
 
14072
      /**
14073
       * Find the _Fields constant that matches fieldId, or null if its not found.
14074
       */
14075
      public static _Fields findByThriftId(int fieldId) {
14076
        switch(fieldId) {
14077
          case 1: // ITEM_ID
14078
            return ITEM_ID;
14079
          case 2: // WAREHOUSE_ID
14080
            return WAREHOUSE_ID;
5967 rajveer 14081
          case 3: // SOURCE_ID
14082
            return SOURCE_ID;
14083
          case 4: // ORDER_ID
14084
            return ORDER_ID;
14085
          case 5: // QUANTITY
5945 mandeep.dh 14086
            return QUANTITY;
14087
          default:
14088
            return null;
14089
        }
14090
      }
14091
 
14092
      /**
14093
       * Find the _Fields constant that matches fieldId, throwing an exception
14094
       * if it is not found.
14095
       */
14096
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14097
        _Fields fields = findByThriftId(fieldId);
14098
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14099
        return fields;
14100
      }
14101
 
14102
      /**
14103
       * Find the _Fields constant that matches name, or null if its not found.
14104
       */
14105
      public static _Fields findByName(String name) {
14106
        return byName.get(name);
14107
      }
14108
 
14109
      private final short _thriftId;
14110
      private final String _fieldName;
14111
 
14112
      _Fields(short thriftId, String fieldName) {
14113
        _thriftId = thriftId;
14114
        _fieldName = fieldName;
14115
      }
14116
 
14117
      public short getThriftFieldId() {
14118
        return _thriftId;
14119
      }
14120
 
14121
      public String getFieldName() {
14122
        return _fieldName;
14123
      }
14124
    }
14125
 
14126
    // isset id assignments
14127
    private static final int __ITEMID_ISSET_ID = 0;
14128
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14129
    private static final int __SOURCEID_ISSET_ID = 2;
14130
    private static final int __ORDERID_ISSET_ID = 3;
14131
    private static final int __QUANTITY_ISSET_ID = 4;
14132
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 14133
 
14134
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14135
    static {
14136
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14137
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14138
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14139
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14140
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14141
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14143
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14145
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
14149
    }
14150
 
14151
    public reduceReservationCount_args() {
14152
    }
14153
 
14154
    public reduceReservationCount_args(
14155
      long itemId,
14156
      long warehouseId,
5967 rajveer 14157
      long sourceId,
14158
      long orderId,
5945 mandeep.dh 14159
      double quantity)
14160
    {
14161
      this();
14162
      this.itemId = itemId;
14163
      setItemIdIsSet(true);
14164
      this.warehouseId = warehouseId;
14165
      setWarehouseIdIsSet(true);
5967 rajveer 14166
      this.sourceId = sourceId;
14167
      setSourceIdIsSet(true);
14168
      this.orderId = orderId;
14169
      setOrderIdIsSet(true);
5945 mandeep.dh 14170
      this.quantity = quantity;
14171
      setQuantityIsSet(true);
14172
    }
14173
 
14174
    /**
14175
     * Performs a deep copy on <i>other</i>.
14176
     */
14177
    public reduceReservationCount_args(reduceReservationCount_args other) {
14178
      __isset_bit_vector.clear();
14179
      __isset_bit_vector.or(other.__isset_bit_vector);
14180
      this.itemId = other.itemId;
14181
      this.warehouseId = other.warehouseId;
5967 rajveer 14182
      this.sourceId = other.sourceId;
14183
      this.orderId = other.orderId;
5945 mandeep.dh 14184
      this.quantity = other.quantity;
14185
    }
14186
 
14187
    public reduceReservationCount_args deepCopy() {
14188
      return new reduceReservationCount_args(this);
14189
    }
14190
 
14191
    @Override
14192
    public void clear() {
14193
      setItemIdIsSet(false);
14194
      this.itemId = 0;
14195
      setWarehouseIdIsSet(false);
14196
      this.warehouseId = 0;
5967 rajveer 14197
      setSourceIdIsSet(false);
14198
      this.sourceId = 0;
14199
      setOrderIdIsSet(false);
14200
      this.orderId = 0;
5945 mandeep.dh 14201
      setQuantityIsSet(false);
14202
      this.quantity = 0.0;
14203
    }
14204
 
14205
    public long getItemId() {
14206
      return this.itemId;
14207
    }
14208
 
14209
    public void setItemId(long itemId) {
14210
      this.itemId = itemId;
14211
      setItemIdIsSet(true);
14212
    }
14213
 
14214
    public void unsetItemId() {
14215
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14216
    }
14217
 
14218
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14219
    public boolean isSetItemId() {
14220
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14221
    }
14222
 
14223
    public void setItemIdIsSet(boolean value) {
14224
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14225
    }
14226
 
14227
    public long getWarehouseId() {
14228
      return this.warehouseId;
14229
    }
14230
 
14231
    public void setWarehouseId(long warehouseId) {
14232
      this.warehouseId = warehouseId;
14233
      setWarehouseIdIsSet(true);
14234
    }
14235
 
14236
    public void unsetWarehouseId() {
14237
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14238
    }
14239
 
14240
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14241
    public boolean isSetWarehouseId() {
14242
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14243
    }
14244
 
14245
    public void setWarehouseIdIsSet(boolean value) {
14246
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14247
    }
14248
 
5967 rajveer 14249
    public long getSourceId() {
14250
      return this.sourceId;
14251
    }
14252
 
14253
    public void setSourceId(long sourceId) {
14254
      this.sourceId = sourceId;
14255
      setSourceIdIsSet(true);
14256
    }
14257
 
14258
    public void unsetSourceId() {
14259
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14260
    }
14261
 
14262
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14263
    public boolean isSetSourceId() {
14264
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14265
    }
14266
 
14267
    public void setSourceIdIsSet(boolean value) {
14268
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14269
    }
14270
 
14271
    public long getOrderId() {
14272
      return this.orderId;
14273
    }
14274
 
14275
    public void setOrderId(long orderId) {
14276
      this.orderId = orderId;
14277
      setOrderIdIsSet(true);
14278
    }
14279
 
14280
    public void unsetOrderId() {
14281
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14282
    }
14283
 
14284
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14285
    public boolean isSetOrderId() {
14286
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14287
    }
14288
 
14289
    public void setOrderIdIsSet(boolean value) {
14290
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14291
    }
14292
 
5945 mandeep.dh 14293
    public double getQuantity() {
14294
      return this.quantity;
14295
    }
14296
 
14297
    public void setQuantity(double quantity) {
14298
      this.quantity = quantity;
14299
      setQuantityIsSet(true);
14300
    }
14301
 
14302
    public void unsetQuantity() {
14303
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14304
    }
14305
 
14306
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14307
    public boolean isSetQuantity() {
14308
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14309
    }
14310
 
14311
    public void setQuantityIsSet(boolean value) {
14312
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14313
    }
14314
 
14315
    public void setFieldValue(_Fields field, Object value) {
14316
      switch (field) {
14317
      case ITEM_ID:
14318
        if (value == null) {
14319
          unsetItemId();
14320
        } else {
14321
          setItemId((Long)value);
14322
        }
14323
        break;
14324
 
14325
      case WAREHOUSE_ID:
14326
        if (value == null) {
14327
          unsetWarehouseId();
14328
        } else {
14329
          setWarehouseId((Long)value);
14330
        }
14331
        break;
14332
 
5967 rajveer 14333
      case SOURCE_ID:
14334
        if (value == null) {
14335
          unsetSourceId();
14336
        } else {
14337
          setSourceId((Long)value);
14338
        }
14339
        break;
14340
 
14341
      case ORDER_ID:
14342
        if (value == null) {
14343
          unsetOrderId();
14344
        } else {
14345
          setOrderId((Long)value);
14346
        }
14347
        break;
14348
 
5945 mandeep.dh 14349
      case QUANTITY:
14350
        if (value == null) {
14351
          unsetQuantity();
14352
        } else {
14353
          setQuantity((Double)value);
14354
        }
14355
        break;
14356
 
14357
      }
14358
    }
14359
 
14360
    public Object getFieldValue(_Fields field) {
14361
      switch (field) {
14362
      case ITEM_ID:
14363
        return Long.valueOf(getItemId());
14364
 
14365
      case WAREHOUSE_ID:
14366
        return Long.valueOf(getWarehouseId());
14367
 
5967 rajveer 14368
      case SOURCE_ID:
14369
        return Long.valueOf(getSourceId());
14370
 
14371
      case ORDER_ID:
14372
        return Long.valueOf(getOrderId());
14373
 
5945 mandeep.dh 14374
      case QUANTITY:
14375
        return Double.valueOf(getQuantity());
14376
 
14377
      }
14378
      throw new IllegalStateException();
14379
    }
14380
 
14381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14382
    public boolean isSet(_Fields field) {
14383
      if (field == null) {
14384
        throw new IllegalArgumentException();
14385
      }
14386
 
14387
      switch (field) {
14388
      case ITEM_ID:
14389
        return isSetItemId();
14390
      case WAREHOUSE_ID:
14391
        return isSetWarehouseId();
5967 rajveer 14392
      case SOURCE_ID:
14393
        return isSetSourceId();
14394
      case ORDER_ID:
14395
        return isSetOrderId();
5945 mandeep.dh 14396
      case QUANTITY:
14397
        return isSetQuantity();
14398
      }
14399
      throw new IllegalStateException();
14400
    }
14401
 
14402
    @Override
14403
    public boolean equals(Object that) {
14404
      if (that == null)
14405
        return false;
14406
      if (that instanceof reduceReservationCount_args)
14407
        return this.equals((reduceReservationCount_args)that);
14408
      return false;
14409
    }
14410
 
14411
    public boolean equals(reduceReservationCount_args that) {
14412
      if (that == null)
14413
        return false;
14414
 
14415
      boolean this_present_itemId = true;
14416
      boolean that_present_itemId = true;
14417
      if (this_present_itemId || that_present_itemId) {
14418
        if (!(this_present_itemId && that_present_itemId))
14419
          return false;
14420
        if (this.itemId != that.itemId)
14421
          return false;
14422
      }
14423
 
14424
      boolean this_present_warehouseId = true;
14425
      boolean that_present_warehouseId = true;
14426
      if (this_present_warehouseId || that_present_warehouseId) {
14427
        if (!(this_present_warehouseId && that_present_warehouseId))
14428
          return false;
14429
        if (this.warehouseId != that.warehouseId)
14430
          return false;
14431
      }
14432
 
5967 rajveer 14433
      boolean this_present_sourceId = true;
14434
      boolean that_present_sourceId = true;
14435
      if (this_present_sourceId || that_present_sourceId) {
14436
        if (!(this_present_sourceId && that_present_sourceId))
14437
          return false;
14438
        if (this.sourceId != that.sourceId)
14439
          return false;
14440
      }
14441
 
14442
      boolean this_present_orderId = true;
14443
      boolean that_present_orderId = true;
14444
      if (this_present_orderId || that_present_orderId) {
14445
        if (!(this_present_orderId && that_present_orderId))
14446
          return false;
14447
        if (this.orderId != that.orderId)
14448
          return false;
14449
      }
14450
 
5945 mandeep.dh 14451
      boolean this_present_quantity = true;
14452
      boolean that_present_quantity = true;
14453
      if (this_present_quantity || that_present_quantity) {
14454
        if (!(this_present_quantity && that_present_quantity))
14455
          return false;
14456
        if (this.quantity != that.quantity)
14457
          return false;
14458
      }
14459
 
14460
      return true;
14461
    }
14462
 
14463
    @Override
14464
    public int hashCode() {
14465
      return 0;
14466
    }
14467
 
14468
    public int compareTo(reduceReservationCount_args other) {
14469
      if (!getClass().equals(other.getClass())) {
14470
        return getClass().getName().compareTo(other.getClass().getName());
14471
      }
14472
 
14473
      int lastComparison = 0;
14474
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
14475
 
14476
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14477
      if (lastComparison != 0) {
14478
        return lastComparison;
14479
      }
14480
      if (isSetItemId()) {
14481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14482
        if (lastComparison != 0) {
14483
          return lastComparison;
14484
        }
14485
      }
14486
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14487
      if (lastComparison != 0) {
14488
        return lastComparison;
14489
      }
14490
      if (isSetWarehouseId()) {
14491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14492
        if (lastComparison != 0) {
14493
          return lastComparison;
14494
        }
14495
      }
5967 rajveer 14496
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14497
      if (lastComparison != 0) {
14498
        return lastComparison;
14499
      }
14500
      if (isSetSourceId()) {
14501
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14502
        if (lastComparison != 0) {
14503
          return lastComparison;
14504
        }
14505
      }
14506
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14507
      if (lastComparison != 0) {
14508
        return lastComparison;
14509
      }
14510
      if (isSetOrderId()) {
14511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14512
        if (lastComparison != 0) {
14513
          return lastComparison;
14514
        }
14515
      }
5945 mandeep.dh 14516
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14517
      if (lastComparison != 0) {
14518
        return lastComparison;
14519
      }
14520
      if (isSetQuantity()) {
14521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14522
        if (lastComparison != 0) {
14523
          return lastComparison;
14524
        }
14525
      }
14526
      return 0;
14527
    }
14528
 
14529
    public _Fields fieldForId(int fieldId) {
14530
      return _Fields.findByThriftId(fieldId);
14531
    }
14532
 
14533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14534
      org.apache.thrift.protocol.TField field;
14535
      iprot.readStructBegin();
14536
      while (true)
14537
      {
14538
        field = iprot.readFieldBegin();
14539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14540
          break;
14541
        }
14542
        switch (field.id) {
14543
          case 1: // ITEM_ID
14544
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14545
              this.itemId = iprot.readI64();
14546
              setItemIdIsSet(true);
14547
            } else { 
14548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14549
            }
14550
            break;
14551
          case 2: // WAREHOUSE_ID
14552
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14553
              this.warehouseId = iprot.readI64();
14554
              setWarehouseIdIsSet(true);
14555
            } else { 
14556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14557
            }
14558
            break;
5967 rajveer 14559
          case 3: // SOURCE_ID
14560
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14561
              this.sourceId = iprot.readI64();
14562
              setSourceIdIsSet(true);
14563
            } else { 
14564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14565
            }
14566
            break;
14567
          case 4: // ORDER_ID
14568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14569
              this.orderId = iprot.readI64();
14570
              setOrderIdIsSet(true);
14571
            } else { 
14572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14573
            }
14574
            break;
14575
          case 5: // QUANTITY
5945 mandeep.dh 14576
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14577
              this.quantity = iprot.readDouble();
14578
              setQuantityIsSet(true);
14579
            } else { 
14580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14581
            }
14582
            break;
14583
          default:
14584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14585
        }
14586
        iprot.readFieldEnd();
14587
      }
14588
      iprot.readStructEnd();
14589
      validate();
14590
    }
14591
 
14592
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14593
      validate();
14594
 
14595
      oprot.writeStructBegin(STRUCT_DESC);
14596
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14597
      oprot.writeI64(this.itemId);
14598
      oprot.writeFieldEnd();
14599
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14600
      oprot.writeI64(this.warehouseId);
14601
      oprot.writeFieldEnd();
5967 rajveer 14602
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14603
      oprot.writeI64(this.sourceId);
14604
      oprot.writeFieldEnd();
14605
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14606
      oprot.writeI64(this.orderId);
14607
      oprot.writeFieldEnd();
5945 mandeep.dh 14608
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14609
      oprot.writeDouble(this.quantity);
14610
      oprot.writeFieldEnd();
14611
      oprot.writeFieldStop();
14612
      oprot.writeStructEnd();
14613
    }
14614
 
14615
    @Override
14616
    public String toString() {
14617
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
14618
      boolean first = true;
14619
 
14620
      sb.append("itemId:");
14621
      sb.append(this.itemId);
14622
      first = false;
14623
      if (!first) sb.append(", ");
14624
      sb.append("warehouseId:");
14625
      sb.append(this.warehouseId);
14626
      first = false;
14627
      if (!first) sb.append(", ");
5967 rajveer 14628
      sb.append("sourceId:");
14629
      sb.append(this.sourceId);
14630
      first = false;
14631
      if (!first) sb.append(", ");
14632
      sb.append("orderId:");
14633
      sb.append(this.orderId);
14634
      first = false;
14635
      if (!first) sb.append(", ");
5945 mandeep.dh 14636
      sb.append("quantity:");
14637
      sb.append(this.quantity);
14638
      first = false;
14639
      sb.append(")");
14640
      return sb.toString();
14641
    }
14642
 
14643
    public void validate() throws org.apache.thrift.TException {
14644
      // check for required fields
14645
    }
14646
 
14647
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14648
      try {
14649
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14650
      } catch (org.apache.thrift.TException te) {
14651
        throw new java.io.IOException(te);
14652
      }
14653
    }
14654
 
14655
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14656
      try {
14657
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14658
      } catch (org.apache.thrift.TException te) {
14659
        throw new java.io.IOException(te);
14660
      }
14661
    }
14662
 
14663
  }
14664
 
14665
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
14666
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
14667
 
14668
    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);
14669
    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);
14670
 
14671
    private boolean success; // required
14672
    private InventoryServiceException cex; // required
14673
 
14674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14675
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14676
      SUCCESS((short)0, "success"),
14677
      CEX((short)1, "cex");
14678
 
14679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14680
 
14681
      static {
14682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14683
          byName.put(field.getFieldName(), field);
14684
        }
14685
      }
14686
 
14687
      /**
14688
       * Find the _Fields constant that matches fieldId, or null if its not found.
14689
       */
14690
      public static _Fields findByThriftId(int fieldId) {
14691
        switch(fieldId) {
14692
          case 0: // SUCCESS
14693
            return SUCCESS;
14694
          case 1: // CEX
14695
            return CEX;
14696
          default:
14697
            return null;
14698
        }
14699
      }
14700
 
14701
      /**
14702
       * Find the _Fields constant that matches fieldId, throwing an exception
14703
       * if it is not found.
14704
       */
14705
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14706
        _Fields fields = findByThriftId(fieldId);
14707
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14708
        return fields;
14709
      }
14710
 
14711
      /**
14712
       * Find the _Fields constant that matches name, or null if its not found.
14713
       */
14714
      public static _Fields findByName(String name) {
14715
        return byName.get(name);
14716
      }
14717
 
14718
      private final short _thriftId;
14719
      private final String _fieldName;
14720
 
14721
      _Fields(short thriftId, String fieldName) {
14722
        _thriftId = thriftId;
14723
        _fieldName = fieldName;
14724
      }
14725
 
14726
      public short getThriftFieldId() {
14727
        return _thriftId;
14728
      }
14729
 
14730
      public String getFieldName() {
14731
        return _fieldName;
14732
      }
14733
    }
14734
 
14735
    // isset id assignments
14736
    private static final int __SUCCESS_ISSET_ID = 0;
14737
    private BitSet __isset_bit_vector = new BitSet(1);
14738
 
14739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14740
    static {
14741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14743
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14744
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
14748
    }
14749
 
14750
    public reduceReservationCount_result() {
14751
    }
14752
 
14753
    public reduceReservationCount_result(
14754
      boolean success,
14755
      InventoryServiceException cex)
14756
    {
14757
      this();
14758
      this.success = success;
14759
      setSuccessIsSet(true);
14760
      this.cex = cex;
14761
    }
14762
 
14763
    /**
14764
     * Performs a deep copy on <i>other</i>.
14765
     */
14766
    public reduceReservationCount_result(reduceReservationCount_result other) {
14767
      __isset_bit_vector.clear();
14768
      __isset_bit_vector.or(other.__isset_bit_vector);
14769
      this.success = other.success;
14770
      if (other.isSetCex()) {
14771
        this.cex = new InventoryServiceException(other.cex);
14772
      }
14773
    }
14774
 
14775
    public reduceReservationCount_result deepCopy() {
14776
      return new reduceReservationCount_result(this);
14777
    }
14778
 
14779
    @Override
14780
    public void clear() {
14781
      setSuccessIsSet(false);
14782
      this.success = false;
14783
      this.cex = null;
14784
    }
14785
 
14786
    public boolean isSuccess() {
14787
      return this.success;
14788
    }
14789
 
14790
    public void setSuccess(boolean success) {
14791
      this.success = success;
14792
      setSuccessIsSet(true);
14793
    }
14794
 
14795
    public void unsetSuccess() {
14796
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14797
    }
14798
 
14799
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14800
    public boolean isSetSuccess() {
14801
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14802
    }
14803
 
14804
    public void setSuccessIsSet(boolean value) {
14805
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14806
    }
14807
 
14808
    public InventoryServiceException getCex() {
14809
      return this.cex;
14810
    }
14811
 
14812
    public void setCex(InventoryServiceException cex) {
14813
      this.cex = cex;
14814
    }
14815
 
14816
    public void unsetCex() {
14817
      this.cex = null;
14818
    }
14819
 
14820
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14821
    public boolean isSetCex() {
14822
      return this.cex != null;
14823
    }
14824
 
14825
    public void setCexIsSet(boolean value) {
14826
      if (!value) {
14827
        this.cex = null;
14828
      }
14829
    }
14830
 
14831
    public void setFieldValue(_Fields field, Object value) {
14832
      switch (field) {
14833
      case SUCCESS:
14834
        if (value == null) {
14835
          unsetSuccess();
14836
        } else {
14837
          setSuccess((Boolean)value);
14838
        }
14839
        break;
14840
 
14841
      case CEX:
14842
        if (value == null) {
14843
          unsetCex();
14844
        } else {
14845
          setCex((InventoryServiceException)value);
14846
        }
14847
        break;
14848
 
14849
      }
14850
    }
14851
 
14852
    public Object getFieldValue(_Fields field) {
14853
      switch (field) {
14854
      case SUCCESS:
14855
        return Boolean.valueOf(isSuccess());
14856
 
14857
      case CEX:
14858
        return getCex();
14859
 
14860
      }
14861
      throw new IllegalStateException();
14862
    }
14863
 
14864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14865
    public boolean isSet(_Fields field) {
14866
      if (field == null) {
14867
        throw new IllegalArgumentException();
14868
      }
14869
 
14870
      switch (field) {
14871
      case SUCCESS:
14872
        return isSetSuccess();
14873
      case CEX:
14874
        return isSetCex();
14875
      }
14876
      throw new IllegalStateException();
14877
    }
14878
 
14879
    @Override
14880
    public boolean equals(Object that) {
14881
      if (that == null)
14882
        return false;
14883
      if (that instanceof reduceReservationCount_result)
14884
        return this.equals((reduceReservationCount_result)that);
14885
      return false;
14886
    }
14887
 
14888
    public boolean equals(reduceReservationCount_result that) {
14889
      if (that == null)
14890
        return false;
14891
 
14892
      boolean this_present_success = true;
14893
      boolean that_present_success = true;
14894
      if (this_present_success || that_present_success) {
14895
        if (!(this_present_success && that_present_success))
14896
          return false;
14897
        if (this.success != that.success)
14898
          return false;
14899
      }
14900
 
14901
      boolean this_present_cex = true && this.isSetCex();
14902
      boolean that_present_cex = true && that.isSetCex();
14903
      if (this_present_cex || that_present_cex) {
14904
        if (!(this_present_cex && that_present_cex))
14905
          return false;
14906
        if (!this.cex.equals(that.cex))
14907
          return false;
14908
      }
14909
 
14910
      return true;
14911
    }
14912
 
14913
    @Override
14914
    public int hashCode() {
14915
      return 0;
14916
    }
14917
 
14918
    public int compareTo(reduceReservationCount_result other) {
14919
      if (!getClass().equals(other.getClass())) {
14920
        return getClass().getName().compareTo(other.getClass().getName());
14921
      }
14922
 
14923
      int lastComparison = 0;
14924
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
14925
 
14926
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14927
      if (lastComparison != 0) {
14928
        return lastComparison;
14929
      }
14930
      if (isSetSuccess()) {
14931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14932
        if (lastComparison != 0) {
14933
          return lastComparison;
14934
        }
14935
      }
14936
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14937
      if (lastComparison != 0) {
14938
        return lastComparison;
14939
      }
14940
      if (isSetCex()) {
14941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14942
        if (lastComparison != 0) {
14943
          return lastComparison;
14944
        }
14945
      }
14946
      return 0;
14947
    }
14948
 
14949
    public _Fields fieldForId(int fieldId) {
14950
      return _Fields.findByThriftId(fieldId);
14951
    }
14952
 
14953
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14954
      org.apache.thrift.protocol.TField field;
14955
      iprot.readStructBegin();
14956
      while (true)
14957
      {
14958
        field = iprot.readFieldBegin();
14959
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14960
          break;
14961
        }
14962
        switch (field.id) {
14963
          case 0: // SUCCESS
14964
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14965
              this.success = iprot.readBool();
14966
              setSuccessIsSet(true);
14967
            } else { 
14968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14969
            }
14970
            break;
14971
          case 1: // CEX
14972
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14973
              this.cex = new InventoryServiceException();
14974
              this.cex.read(iprot);
14975
            } else { 
14976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14977
            }
14978
            break;
14979
          default:
14980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14981
        }
14982
        iprot.readFieldEnd();
14983
      }
14984
      iprot.readStructEnd();
14985
      validate();
14986
    }
14987
 
14988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14989
      oprot.writeStructBegin(STRUCT_DESC);
14990
 
14991
      if (this.isSetSuccess()) {
14992
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14993
        oprot.writeBool(this.success);
14994
        oprot.writeFieldEnd();
14995
      } else if (this.isSetCex()) {
14996
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14997
        this.cex.write(oprot);
14998
        oprot.writeFieldEnd();
14999
      }
15000
      oprot.writeFieldStop();
15001
      oprot.writeStructEnd();
15002
    }
15003
 
15004
    @Override
15005
    public String toString() {
15006
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
15007
      boolean first = true;
15008
 
15009
      sb.append("success:");
15010
      sb.append(this.success);
15011
      first = false;
15012
      if (!first) sb.append(", ");
15013
      sb.append("cex:");
15014
      if (this.cex == null) {
15015
        sb.append("null");
15016
      } else {
15017
        sb.append(this.cex);
15018
      }
15019
      first = false;
15020
      sb.append(")");
15021
      return sb.toString();
15022
    }
15023
 
15024
    public void validate() throws org.apache.thrift.TException {
15025
      // check for required fields
15026
    }
15027
 
15028
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15029
      try {
15030
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15031
      } catch (org.apache.thrift.TException te) {
15032
        throw new java.io.IOException(te);
15033
      }
15034
    }
15035
 
15036
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15037
      try {
15038
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15039
      } catch (org.apache.thrift.TException te) {
15040
        throw new java.io.IOException(te);
15041
      }
15042
    }
15043
 
15044
  }
15045
 
15046
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15047
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
15048
 
15049
    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);
15050
    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);
15051
 
15052
    private long itemId; // required
15053
    private long vendorId; // required
15054
 
15055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15056
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15057
      ITEM_ID((short)1, "itemId"),
15058
      VENDOR_ID((short)2, "vendorId");
15059
 
15060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15061
 
15062
      static {
15063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15064
          byName.put(field.getFieldName(), field);
15065
        }
15066
      }
15067
 
15068
      /**
15069
       * Find the _Fields constant that matches fieldId, or null if its not found.
15070
       */
15071
      public static _Fields findByThriftId(int fieldId) {
15072
        switch(fieldId) {
15073
          case 1: // ITEM_ID
15074
            return ITEM_ID;
15075
          case 2: // VENDOR_ID
15076
            return VENDOR_ID;
15077
          default:
15078
            return null;
15079
        }
15080
      }
15081
 
15082
      /**
15083
       * Find the _Fields constant that matches fieldId, throwing an exception
15084
       * if it is not found.
15085
       */
15086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15087
        _Fields fields = findByThriftId(fieldId);
15088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15089
        return fields;
15090
      }
15091
 
15092
      /**
15093
       * Find the _Fields constant that matches name, or null if its not found.
15094
       */
15095
      public static _Fields findByName(String name) {
15096
        return byName.get(name);
15097
      }
15098
 
15099
      private final short _thriftId;
15100
      private final String _fieldName;
15101
 
15102
      _Fields(short thriftId, String fieldName) {
15103
        _thriftId = thriftId;
15104
        _fieldName = fieldName;
15105
      }
15106
 
15107
      public short getThriftFieldId() {
15108
        return _thriftId;
15109
      }
15110
 
15111
      public String getFieldName() {
15112
        return _fieldName;
15113
      }
15114
    }
15115
 
15116
    // isset id assignments
15117
    private static final int __ITEMID_ISSET_ID = 0;
15118
    private static final int __VENDORID_ISSET_ID = 1;
15119
    private BitSet __isset_bit_vector = new BitSet(2);
15120
 
15121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15122
    static {
15123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15124
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15125
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15126
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15128
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15129
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
15130
    }
15131
 
15132
    public getItemPricing_args() {
15133
    }
15134
 
15135
    public getItemPricing_args(
15136
      long itemId,
15137
      long vendorId)
15138
    {
15139
      this();
15140
      this.itemId = itemId;
15141
      setItemIdIsSet(true);
15142
      this.vendorId = vendorId;
15143
      setVendorIdIsSet(true);
15144
    }
15145
 
15146
    /**
15147
     * Performs a deep copy on <i>other</i>.
15148
     */
15149
    public getItemPricing_args(getItemPricing_args other) {
15150
      __isset_bit_vector.clear();
15151
      __isset_bit_vector.or(other.__isset_bit_vector);
15152
      this.itemId = other.itemId;
15153
      this.vendorId = other.vendorId;
15154
    }
15155
 
15156
    public getItemPricing_args deepCopy() {
15157
      return new getItemPricing_args(this);
15158
    }
15159
 
15160
    @Override
15161
    public void clear() {
15162
      setItemIdIsSet(false);
15163
      this.itemId = 0;
15164
      setVendorIdIsSet(false);
15165
      this.vendorId = 0;
15166
    }
15167
 
15168
    public long getItemId() {
15169
      return this.itemId;
15170
    }
15171
 
15172
    public void setItemId(long itemId) {
15173
      this.itemId = itemId;
15174
      setItemIdIsSet(true);
15175
    }
15176
 
15177
    public void unsetItemId() {
15178
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15179
    }
15180
 
15181
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15182
    public boolean isSetItemId() {
15183
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15184
    }
15185
 
15186
    public void setItemIdIsSet(boolean value) {
15187
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15188
    }
15189
 
15190
    public long getVendorId() {
15191
      return this.vendorId;
15192
    }
15193
 
15194
    public void setVendorId(long vendorId) {
15195
      this.vendorId = vendorId;
15196
      setVendorIdIsSet(true);
15197
    }
15198
 
15199
    public void unsetVendorId() {
15200
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
15201
    }
15202
 
15203
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
15204
    public boolean isSetVendorId() {
15205
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
15206
    }
15207
 
15208
    public void setVendorIdIsSet(boolean value) {
15209
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
15210
    }
15211
 
15212
    public void setFieldValue(_Fields field, Object value) {
15213
      switch (field) {
15214
      case ITEM_ID:
15215
        if (value == null) {
15216
          unsetItemId();
15217
        } else {
15218
          setItemId((Long)value);
15219
        }
15220
        break;
15221
 
15222
      case VENDOR_ID:
15223
        if (value == null) {
15224
          unsetVendorId();
15225
        } else {
15226
          setVendorId((Long)value);
15227
        }
15228
        break;
15229
 
15230
      }
15231
    }
15232
 
15233
    public Object getFieldValue(_Fields field) {
15234
      switch (field) {
15235
      case ITEM_ID:
15236
        return Long.valueOf(getItemId());
15237
 
15238
      case VENDOR_ID:
15239
        return Long.valueOf(getVendorId());
15240
 
15241
      }
15242
      throw new IllegalStateException();
15243
    }
15244
 
15245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15246
    public boolean isSet(_Fields field) {
15247
      if (field == null) {
15248
        throw new IllegalArgumentException();
15249
      }
15250
 
15251
      switch (field) {
15252
      case ITEM_ID:
15253
        return isSetItemId();
15254
      case VENDOR_ID:
15255
        return isSetVendorId();
15256
      }
15257
      throw new IllegalStateException();
15258
    }
15259
 
15260
    @Override
15261
    public boolean equals(Object that) {
15262
      if (that == null)
15263
        return false;
15264
      if (that instanceof getItemPricing_args)
15265
        return this.equals((getItemPricing_args)that);
15266
      return false;
15267
    }
15268
 
15269
    public boolean equals(getItemPricing_args that) {
15270
      if (that == null)
15271
        return false;
15272
 
15273
      boolean this_present_itemId = true;
15274
      boolean that_present_itemId = true;
15275
      if (this_present_itemId || that_present_itemId) {
15276
        if (!(this_present_itemId && that_present_itemId))
15277
          return false;
15278
        if (this.itemId != that.itemId)
15279
          return false;
15280
      }
15281
 
15282
      boolean this_present_vendorId = true;
15283
      boolean that_present_vendorId = true;
15284
      if (this_present_vendorId || that_present_vendorId) {
15285
        if (!(this_present_vendorId && that_present_vendorId))
15286
          return false;
15287
        if (this.vendorId != that.vendorId)
15288
          return false;
15289
      }
15290
 
15291
      return true;
15292
    }
15293
 
15294
    @Override
15295
    public int hashCode() {
15296
      return 0;
15297
    }
15298
 
15299
    public int compareTo(getItemPricing_args other) {
15300
      if (!getClass().equals(other.getClass())) {
15301
        return getClass().getName().compareTo(other.getClass().getName());
15302
      }
15303
 
15304
      int lastComparison = 0;
15305
      getItemPricing_args typedOther = (getItemPricing_args)other;
15306
 
15307
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15308
      if (lastComparison != 0) {
15309
        return lastComparison;
15310
      }
15311
      if (isSetItemId()) {
15312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15313
        if (lastComparison != 0) {
15314
          return lastComparison;
15315
        }
15316
      }
15317
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
15318
      if (lastComparison != 0) {
15319
        return lastComparison;
15320
      }
15321
      if (isSetVendorId()) {
15322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
15323
        if (lastComparison != 0) {
15324
          return lastComparison;
15325
        }
15326
      }
15327
      return 0;
15328
    }
15329
 
15330
    public _Fields fieldForId(int fieldId) {
15331
      return _Fields.findByThriftId(fieldId);
15332
    }
15333
 
15334
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15335
      org.apache.thrift.protocol.TField field;
15336
      iprot.readStructBegin();
15337
      while (true)
15338
      {
15339
        field = iprot.readFieldBegin();
15340
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15341
          break;
15342
        }
15343
        switch (field.id) {
15344
          case 1: // ITEM_ID
15345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15346
              this.itemId = iprot.readI64();
15347
              setItemIdIsSet(true);
15348
            } else { 
15349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15350
            }
15351
            break;
15352
          case 2: // VENDOR_ID
15353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15354
              this.vendorId = iprot.readI64();
15355
              setVendorIdIsSet(true);
15356
            } else { 
15357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15358
            }
15359
            break;
15360
          default:
15361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15362
        }
15363
        iprot.readFieldEnd();
15364
      }
15365
      iprot.readStructEnd();
15366
      validate();
15367
    }
15368
 
15369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15370
      validate();
15371
 
15372
      oprot.writeStructBegin(STRUCT_DESC);
15373
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15374
      oprot.writeI64(this.itemId);
15375
      oprot.writeFieldEnd();
15376
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
15377
      oprot.writeI64(this.vendorId);
15378
      oprot.writeFieldEnd();
15379
      oprot.writeFieldStop();
15380
      oprot.writeStructEnd();
15381
    }
15382
 
15383
    @Override
15384
    public String toString() {
15385
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
15386
      boolean first = true;
15387
 
15388
      sb.append("itemId:");
15389
      sb.append(this.itemId);
15390
      first = false;
15391
      if (!first) sb.append(", ");
15392
      sb.append("vendorId:");
15393
      sb.append(this.vendorId);
15394
      first = false;
15395
      sb.append(")");
15396
      return sb.toString();
15397
    }
15398
 
15399
    public void validate() throws org.apache.thrift.TException {
15400
      // check for required fields
15401
    }
15402
 
15403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15404
      try {
15405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15406
      } catch (org.apache.thrift.TException te) {
15407
        throw new java.io.IOException(te);
15408
      }
15409
    }
15410
 
15411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15412
      try {
15413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15414
      } catch (org.apache.thrift.TException te) {
15415
        throw new java.io.IOException(te);
15416
      }
15417
    }
15418
 
15419
  }
15420
 
15421
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
15422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
15423
 
15424
    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);
15425
    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);
15426
 
15427
    private VendorItemPricing success; // required
15428
    private InventoryServiceException cex; // required
15429
 
15430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15432
      SUCCESS((short)0, "success"),
15433
      CEX((short)1, "cex");
15434
 
15435
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15436
 
15437
      static {
15438
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15439
          byName.put(field.getFieldName(), field);
15440
        }
15441
      }
15442
 
15443
      /**
15444
       * Find the _Fields constant that matches fieldId, or null if its not found.
15445
       */
15446
      public static _Fields findByThriftId(int fieldId) {
15447
        switch(fieldId) {
15448
          case 0: // SUCCESS
15449
            return SUCCESS;
15450
          case 1: // CEX
15451
            return CEX;
15452
          default:
15453
            return null;
15454
        }
15455
      }
15456
 
15457
      /**
15458
       * Find the _Fields constant that matches fieldId, throwing an exception
15459
       * if it is not found.
15460
       */
15461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15462
        _Fields fields = findByThriftId(fieldId);
15463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15464
        return fields;
15465
      }
15466
 
15467
      /**
15468
       * Find the _Fields constant that matches name, or null if its not found.
15469
       */
15470
      public static _Fields findByName(String name) {
15471
        return byName.get(name);
15472
      }
15473
 
15474
      private final short _thriftId;
15475
      private final String _fieldName;
15476
 
15477
      _Fields(short thriftId, String fieldName) {
15478
        _thriftId = thriftId;
15479
        _fieldName = fieldName;
15480
      }
15481
 
15482
      public short getThriftFieldId() {
15483
        return _thriftId;
15484
      }
15485
 
15486
      public String getFieldName() {
15487
        return _fieldName;
15488
      }
15489
    }
15490
 
15491
    // isset id assignments
15492
 
15493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15494
    static {
15495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15496
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15497
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
15498
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
15502
    }
15503
 
15504
    public getItemPricing_result() {
15505
    }
15506
 
15507
    public getItemPricing_result(
15508
      VendorItemPricing success,
15509
      InventoryServiceException cex)
15510
    {
15511
      this();
15512
      this.success = success;
15513
      this.cex = cex;
15514
    }
15515
 
15516
    /**
15517
     * Performs a deep copy on <i>other</i>.
15518
     */
15519
    public getItemPricing_result(getItemPricing_result other) {
15520
      if (other.isSetSuccess()) {
15521
        this.success = new VendorItemPricing(other.success);
15522
      }
15523
      if (other.isSetCex()) {
15524
        this.cex = new InventoryServiceException(other.cex);
15525
      }
15526
    }
15527
 
15528
    public getItemPricing_result deepCopy() {
15529
      return new getItemPricing_result(this);
15530
    }
15531
 
15532
    @Override
15533
    public void clear() {
15534
      this.success = null;
15535
      this.cex = null;
15536
    }
15537
 
15538
    public VendorItemPricing getSuccess() {
15539
      return this.success;
15540
    }
15541
 
15542
    public void setSuccess(VendorItemPricing success) {
15543
      this.success = success;
15544
    }
15545
 
15546
    public void unsetSuccess() {
15547
      this.success = null;
15548
    }
15549
 
15550
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15551
    public boolean isSetSuccess() {
15552
      return this.success != null;
15553
    }
15554
 
15555
    public void setSuccessIsSet(boolean value) {
15556
      if (!value) {
15557
        this.success = null;
15558
      }
15559
    }
15560
 
15561
    public InventoryServiceException getCex() {
15562
      return this.cex;
15563
    }
15564
 
15565
    public void setCex(InventoryServiceException cex) {
15566
      this.cex = cex;
15567
    }
15568
 
15569
    public void unsetCex() {
15570
      this.cex = null;
15571
    }
15572
 
15573
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15574
    public boolean isSetCex() {
15575
      return this.cex != null;
15576
    }
15577
 
15578
    public void setCexIsSet(boolean value) {
15579
      if (!value) {
15580
        this.cex = null;
15581
      }
15582
    }
15583
 
15584
    public void setFieldValue(_Fields field, Object value) {
15585
      switch (field) {
15586
      case SUCCESS:
15587
        if (value == null) {
15588
          unsetSuccess();
15589
        } else {
15590
          setSuccess((VendorItemPricing)value);
15591
        }
15592
        break;
15593
 
15594
      case CEX:
15595
        if (value == null) {
15596
          unsetCex();
15597
        } else {
15598
          setCex((InventoryServiceException)value);
15599
        }
15600
        break;
15601
 
15602
      }
15603
    }
15604
 
15605
    public Object getFieldValue(_Fields field) {
15606
      switch (field) {
15607
      case SUCCESS:
15608
        return getSuccess();
15609
 
15610
      case CEX:
15611
        return getCex();
15612
 
15613
      }
15614
      throw new IllegalStateException();
15615
    }
15616
 
15617
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15618
    public boolean isSet(_Fields field) {
15619
      if (field == null) {
15620
        throw new IllegalArgumentException();
15621
      }
15622
 
15623
      switch (field) {
15624
      case SUCCESS:
15625
        return isSetSuccess();
15626
      case CEX:
15627
        return isSetCex();
15628
      }
15629
      throw new IllegalStateException();
15630
    }
15631
 
15632
    @Override
15633
    public boolean equals(Object that) {
15634
      if (that == null)
15635
        return false;
15636
      if (that instanceof getItemPricing_result)
15637
        return this.equals((getItemPricing_result)that);
15638
      return false;
15639
    }
15640
 
15641
    public boolean equals(getItemPricing_result that) {
15642
      if (that == null)
15643
        return false;
15644
 
15645
      boolean this_present_success = true && this.isSetSuccess();
15646
      boolean that_present_success = true && that.isSetSuccess();
15647
      if (this_present_success || that_present_success) {
15648
        if (!(this_present_success && that_present_success))
15649
          return false;
15650
        if (!this.success.equals(that.success))
15651
          return false;
15652
      }
15653
 
15654
      boolean this_present_cex = true && this.isSetCex();
15655
      boolean that_present_cex = true && that.isSetCex();
15656
      if (this_present_cex || that_present_cex) {
15657
        if (!(this_present_cex && that_present_cex))
15658
          return false;
15659
        if (!this.cex.equals(that.cex))
15660
          return false;
15661
      }
15662
 
15663
      return true;
15664
    }
15665
 
15666
    @Override
15667
    public int hashCode() {
15668
      return 0;
15669
    }
15670
 
15671
    public int compareTo(getItemPricing_result other) {
15672
      if (!getClass().equals(other.getClass())) {
15673
        return getClass().getName().compareTo(other.getClass().getName());
15674
      }
15675
 
15676
      int lastComparison = 0;
15677
      getItemPricing_result typedOther = (getItemPricing_result)other;
15678
 
15679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15680
      if (lastComparison != 0) {
15681
        return lastComparison;
15682
      }
15683
      if (isSetSuccess()) {
15684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15685
        if (lastComparison != 0) {
15686
          return lastComparison;
15687
        }
15688
      }
15689
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15690
      if (lastComparison != 0) {
15691
        return lastComparison;
15692
      }
15693
      if (isSetCex()) {
15694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15695
        if (lastComparison != 0) {
15696
          return lastComparison;
15697
        }
15698
      }
15699
      return 0;
15700
    }
15701
 
15702
    public _Fields fieldForId(int fieldId) {
15703
      return _Fields.findByThriftId(fieldId);
15704
    }
15705
 
15706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15707
      org.apache.thrift.protocol.TField field;
15708
      iprot.readStructBegin();
15709
      while (true)
15710
      {
15711
        field = iprot.readFieldBegin();
15712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15713
          break;
15714
        }
15715
        switch (field.id) {
15716
          case 0: // SUCCESS
15717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15718
              this.success = new VendorItemPricing();
15719
              this.success.read(iprot);
15720
            } else { 
15721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15722
            }
15723
            break;
15724
          case 1: // CEX
15725
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15726
              this.cex = new InventoryServiceException();
15727
              this.cex.read(iprot);
15728
            } else { 
15729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15730
            }
15731
            break;
15732
          default:
15733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15734
        }
15735
        iprot.readFieldEnd();
15736
      }
15737
      iprot.readStructEnd();
15738
      validate();
15739
    }
15740
 
15741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15742
      oprot.writeStructBegin(STRUCT_DESC);
15743
 
15744
      if (this.isSetSuccess()) {
15745
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15746
        this.success.write(oprot);
15747
        oprot.writeFieldEnd();
15748
      } else if (this.isSetCex()) {
15749
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15750
        this.cex.write(oprot);
15751
        oprot.writeFieldEnd();
15752
      }
15753
      oprot.writeFieldStop();
15754
      oprot.writeStructEnd();
15755
    }
15756
 
15757
    @Override
15758
    public String toString() {
15759
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
15760
      boolean first = true;
15761
 
15762
      sb.append("success:");
15763
      if (this.success == null) {
15764
        sb.append("null");
15765
      } else {
15766
        sb.append(this.success);
15767
      }
15768
      first = false;
15769
      if (!first) sb.append(", ");
15770
      sb.append("cex:");
15771
      if (this.cex == null) {
15772
        sb.append("null");
15773
      } else {
15774
        sb.append(this.cex);
15775
      }
15776
      first = false;
15777
      sb.append(")");
15778
      return sb.toString();
15779
    }
15780
 
15781
    public void validate() throws org.apache.thrift.TException {
15782
      // check for required fields
15783
    }
15784
 
15785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15786
      try {
15787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15788
      } catch (org.apache.thrift.TException te) {
15789
        throw new java.io.IOException(te);
15790
      }
15791
    }
15792
 
15793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15794
      try {
15795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15796
      } catch (org.apache.thrift.TException te) {
15797
        throw new java.io.IOException(te);
15798
      }
15799
    }
15800
 
15801
  }
15802
 
15803
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
15805
 
15806
    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);
15807
 
15808
    private long itemId; // required
15809
 
15810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15812
      ITEM_ID((short)1, "itemId");
15813
 
15814
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15815
 
15816
      static {
15817
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15818
          byName.put(field.getFieldName(), field);
15819
        }
15820
      }
15821
 
15822
      /**
15823
       * Find the _Fields constant that matches fieldId, or null if its not found.
15824
       */
15825
      public static _Fields findByThriftId(int fieldId) {
15826
        switch(fieldId) {
15827
          case 1: // ITEM_ID
15828
            return ITEM_ID;
15829
          default:
15830
            return null;
15831
        }
15832
      }
15833
 
15834
      /**
15835
       * Find the _Fields constant that matches fieldId, throwing an exception
15836
       * if it is not found.
15837
       */
15838
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15839
        _Fields fields = findByThriftId(fieldId);
15840
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15841
        return fields;
15842
      }
15843
 
15844
      /**
15845
       * Find the _Fields constant that matches name, or null if its not found.
15846
       */
15847
      public static _Fields findByName(String name) {
15848
        return byName.get(name);
15849
      }
15850
 
15851
      private final short _thriftId;
15852
      private final String _fieldName;
15853
 
15854
      _Fields(short thriftId, String fieldName) {
15855
        _thriftId = thriftId;
15856
        _fieldName = fieldName;
15857
      }
15858
 
15859
      public short getThriftFieldId() {
15860
        return _thriftId;
15861
      }
15862
 
15863
      public String getFieldName() {
15864
        return _fieldName;
15865
      }
15866
    }
15867
 
15868
    // isset id assignments
15869
    private static final int __ITEMID_ISSET_ID = 0;
15870
    private BitSet __isset_bit_vector = new BitSet(1);
15871
 
15872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15873
    static {
15874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15875
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
15879
    }
15880
 
15881
    public getAllItemPricing_args() {
15882
    }
15883
 
15884
    public getAllItemPricing_args(
15885
      long itemId)
15886
    {
15887
      this();
15888
      this.itemId = itemId;
15889
      setItemIdIsSet(true);
15890
    }
15891
 
15892
    /**
15893
     * Performs a deep copy on <i>other</i>.
15894
     */
15895
    public getAllItemPricing_args(getAllItemPricing_args other) {
15896
      __isset_bit_vector.clear();
15897
      __isset_bit_vector.or(other.__isset_bit_vector);
15898
      this.itemId = other.itemId;
15899
    }
15900
 
15901
    public getAllItemPricing_args deepCopy() {
15902
      return new getAllItemPricing_args(this);
15903
    }
15904
 
15905
    @Override
15906
    public void clear() {
15907
      setItemIdIsSet(false);
15908
      this.itemId = 0;
15909
    }
15910
 
15911
    public long getItemId() {
15912
      return this.itemId;
15913
    }
15914
 
15915
    public void setItemId(long itemId) {
15916
      this.itemId = itemId;
15917
      setItemIdIsSet(true);
15918
    }
15919
 
15920
    public void unsetItemId() {
15921
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15922
    }
15923
 
15924
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15925
    public boolean isSetItemId() {
15926
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15927
    }
15928
 
15929
    public void setItemIdIsSet(boolean value) {
15930
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15931
    }
15932
 
15933
    public void setFieldValue(_Fields field, Object value) {
15934
      switch (field) {
15935
      case ITEM_ID:
15936
        if (value == null) {
15937
          unsetItemId();
15938
        } else {
15939
          setItemId((Long)value);
15940
        }
15941
        break;
15942
 
15943
      }
15944
    }
15945
 
15946
    public Object getFieldValue(_Fields field) {
15947
      switch (field) {
15948
      case ITEM_ID:
15949
        return Long.valueOf(getItemId());
15950
 
15951
      }
15952
      throw new IllegalStateException();
15953
    }
15954
 
15955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15956
    public boolean isSet(_Fields field) {
15957
      if (field == null) {
15958
        throw new IllegalArgumentException();
15959
      }
15960
 
15961
      switch (field) {
15962
      case ITEM_ID:
15963
        return isSetItemId();
15964
      }
15965
      throw new IllegalStateException();
15966
    }
15967
 
15968
    @Override
15969
    public boolean equals(Object that) {
15970
      if (that == null)
15971
        return false;
15972
      if (that instanceof getAllItemPricing_args)
15973
        return this.equals((getAllItemPricing_args)that);
15974
      return false;
15975
    }
15976
 
15977
    public boolean equals(getAllItemPricing_args that) {
15978
      if (that == null)
15979
        return false;
15980
 
15981
      boolean this_present_itemId = true;
15982
      boolean that_present_itemId = true;
15983
      if (this_present_itemId || that_present_itemId) {
15984
        if (!(this_present_itemId && that_present_itemId))
15985
          return false;
15986
        if (this.itemId != that.itemId)
15987
          return false;
15988
      }
15989
 
15990
      return true;
15991
    }
15992
 
15993
    @Override
15994
    public int hashCode() {
15995
      return 0;
15996
    }
15997
 
15998
    public int compareTo(getAllItemPricing_args other) {
15999
      if (!getClass().equals(other.getClass())) {
16000
        return getClass().getName().compareTo(other.getClass().getName());
16001
      }
16002
 
16003
      int lastComparison = 0;
16004
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
16005
 
16006
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16007
      if (lastComparison != 0) {
16008
        return lastComparison;
16009
      }
16010
      if (isSetItemId()) {
16011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16012
        if (lastComparison != 0) {
16013
          return lastComparison;
16014
        }
16015
      }
16016
      return 0;
16017
    }
16018
 
16019
    public _Fields fieldForId(int fieldId) {
16020
      return _Fields.findByThriftId(fieldId);
16021
    }
16022
 
16023
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16024
      org.apache.thrift.protocol.TField field;
16025
      iprot.readStructBegin();
16026
      while (true)
16027
      {
16028
        field = iprot.readFieldBegin();
16029
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16030
          break;
16031
        }
16032
        switch (field.id) {
16033
          case 1: // ITEM_ID
16034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16035
              this.itemId = iprot.readI64();
16036
              setItemIdIsSet(true);
16037
            } else { 
16038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16039
            }
16040
            break;
16041
          default:
16042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16043
        }
16044
        iprot.readFieldEnd();
16045
      }
16046
      iprot.readStructEnd();
16047
      validate();
16048
    }
16049
 
16050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16051
      validate();
16052
 
16053
      oprot.writeStructBegin(STRUCT_DESC);
16054
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16055
      oprot.writeI64(this.itemId);
16056
      oprot.writeFieldEnd();
16057
      oprot.writeFieldStop();
16058
      oprot.writeStructEnd();
16059
    }
16060
 
16061
    @Override
16062
    public String toString() {
16063
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
16064
      boolean first = true;
16065
 
16066
      sb.append("itemId:");
16067
      sb.append(this.itemId);
16068
      first = false;
16069
      sb.append(")");
16070
      return sb.toString();
16071
    }
16072
 
16073
    public void validate() throws org.apache.thrift.TException {
16074
      // check for required fields
16075
    }
16076
 
16077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16078
      try {
16079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16080
      } catch (org.apache.thrift.TException te) {
16081
        throw new java.io.IOException(te);
16082
      }
16083
    }
16084
 
16085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16086
      try {
16087
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16088
      } catch (org.apache.thrift.TException te) {
16089
        throw new java.io.IOException(te);
16090
      }
16091
    }
16092
 
16093
  }
16094
 
16095
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
16097
 
16098
    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);
16099
    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);
16100
 
16101
    private List<VendorItemPricing> success; // required
16102
    private InventoryServiceException cex; // required
16103
 
16104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16106
      SUCCESS((short)0, "success"),
16107
      CEX((short)1, "cex");
16108
 
16109
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16110
 
16111
      static {
16112
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16113
          byName.put(field.getFieldName(), field);
16114
        }
16115
      }
16116
 
16117
      /**
16118
       * Find the _Fields constant that matches fieldId, or null if its not found.
16119
       */
16120
      public static _Fields findByThriftId(int fieldId) {
16121
        switch(fieldId) {
16122
          case 0: // SUCCESS
16123
            return SUCCESS;
16124
          case 1: // CEX
16125
            return CEX;
16126
          default:
16127
            return null;
16128
        }
16129
      }
16130
 
16131
      /**
16132
       * Find the _Fields constant that matches fieldId, throwing an exception
16133
       * if it is not found.
16134
       */
16135
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16136
        _Fields fields = findByThriftId(fieldId);
16137
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16138
        return fields;
16139
      }
16140
 
16141
      /**
16142
       * Find the _Fields constant that matches name, or null if its not found.
16143
       */
16144
      public static _Fields findByName(String name) {
16145
        return byName.get(name);
16146
      }
16147
 
16148
      private final short _thriftId;
16149
      private final String _fieldName;
16150
 
16151
      _Fields(short thriftId, String fieldName) {
16152
        _thriftId = thriftId;
16153
        _fieldName = fieldName;
16154
      }
16155
 
16156
      public short getThriftFieldId() {
16157
        return _thriftId;
16158
      }
16159
 
16160
      public String getFieldName() {
16161
        return _fieldName;
16162
      }
16163
    }
16164
 
16165
    // isset id assignments
16166
 
16167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16168
    static {
16169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16170
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16171
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16172
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
16173
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
16177
    }
16178
 
16179
    public getAllItemPricing_result() {
16180
    }
16181
 
16182
    public getAllItemPricing_result(
16183
      List<VendorItemPricing> success,
16184
      InventoryServiceException cex)
16185
    {
16186
      this();
16187
      this.success = success;
16188
      this.cex = cex;
16189
    }
16190
 
16191
    /**
16192
     * Performs a deep copy on <i>other</i>.
16193
     */
16194
    public getAllItemPricing_result(getAllItemPricing_result other) {
16195
      if (other.isSetSuccess()) {
16196
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
16197
        for (VendorItemPricing other_element : other.success) {
16198
          __this__success.add(new VendorItemPricing(other_element));
16199
        }
16200
        this.success = __this__success;
16201
      }
16202
      if (other.isSetCex()) {
16203
        this.cex = new InventoryServiceException(other.cex);
16204
      }
16205
    }
16206
 
16207
    public getAllItemPricing_result deepCopy() {
16208
      return new getAllItemPricing_result(this);
16209
    }
16210
 
16211
    @Override
16212
    public void clear() {
16213
      this.success = null;
16214
      this.cex = null;
16215
    }
16216
 
16217
    public int getSuccessSize() {
16218
      return (this.success == null) ? 0 : this.success.size();
16219
    }
16220
 
16221
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
16222
      return (this.success == null) ? null : this.success.iterator();
16223
    }
16224
 
16225
    public void addToSuccess(VendorItemPricing elem) {
16226
      if (this.success == null) {
16227
        this.success = new ArrayList<VendorItemPricing>();
16228
      }
16229
      this.success.add(elem);
16230
    }
16231
 
16232
    public List<VendorItemPricing> getSuccess() {
16233
      return this.success;
16234
    }
16235
 
16236
    public void setSuccess(List<VendorItemPricing> success) {
16237
      this.success = success;
16238
    }
16239
 
16240
    public void unsetSuccess() {
16241
      this.success = null;
16242
    }
16243
 
16244
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16245
    public boolean isSetSuccess() {
16246
      return this.success != null;
16247
    }
16248
 
16249
    public void setSuccessIsSet(boolean value) {
16250
      if (!value) {
16251
        this.success = null;
16252
      }
16253
    }
16254
 
16255
    public InventoryServiceException getCex() {
16256
      return this.cex;
16257
    }
16258
 
16259
    public void setCex(InventoryServiceException cex) {
16260
      this.cex = cex;
16261
    }
16262
 
16263
    public void unsetCex() {
16264
      this.cex = null;
16265
    }
16266
 
16267
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16268
    public boolean isSetCex() {
16269
      return this.cex != null;
16270
    }
16271
 
16272
    public void setCexIsSet(boolean value) {
16273
      if (!value) {
16274
        this.cex = null;
16275
      }
16276
    }
16277
 
16278
    public void setFieldValue(_Fields field, Object value) {
16279
      switch (field) {
16280
      case SUCCESS:
16281
        if (value == null) {
16282
          unsetSuccess();
16283
        } else {
16284
          setSuccess((List<VendorItemPricing>)value);
16285
        }
16286
        break;
16287
 
16288
      case CEX:
16289
        if (value == null) {
16290
          unsetCex();
16291
        } else {
16292
          setCex((InventoryServiceException)value);
16293
        }
16294
        break;
16295
 
16296
      }
16297
    }
16298
 
16299
    public Object getFieldValue(_Fields field) {
16300
      switch (field) {
16301
      case SUCCESS:
16302
        return getSuccess();
16303
 
16304
      case CEX:
16305
        return getCex();
16306
 
16307
      }
16308
      throw new IllegalStateException();
16309
    }
16310
 
16311
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16312
    public boolean isSet(_Fields field) {
16313
      if (field == null) {
16314
        throw new IllegalArgumentException();
16315
      }
16316
 
16317
      switch (field) {
16318
      case SUCCESS:
16319
        return isSetSuccess();
16320
      case CEX:
16321
        return isSetCex();
16322
      }
16323
      throw new IllegalStateException();
16324
    }
16325
 
16326
    @Override
16327
    public boolean equals(Object that) {
16328
      if (that == null)
16329
        return false;
16330
      if (that instanceof getAllItemPricing_result)
16331
        return this.equals((getAllItemPricing_result)that);
16332
      return false;
16333
    }
16334
 
16335
    public boolean equals(getAllItemPricing_result that) {
16336
      if (that == null)
16337
        return false;
16338
 
16339
      boolean this_present_success = true && this.isSetSuccess();
16340
      boolean that_present_success = true && that.isSetSuccess();
16341
      if (this_present_success || that_present_success) {
16342
        if (!(this_present_success && that_present_success))
16343
          return false;
16344
        if (!this.success.equals(that.success))
16345
          return false;
16346
      }
16347
 
16348
      boolean this_present_cex = true && this.isSetCex();
16349
      boolean that_present_cex = true && that.isSetCex();
16350
      if (this_present_cex || that_present_cex) {
16351
        if (!(this_present_cex && that_present_cex))
16352
          return false;
16353
        if (!this.cex.equals(that.cex))
16354
          return false;
16355
      }
16356
 
16357
      return true;
16358
    }
16359
 
16360
    @Override
16361
    public int hashCode() {
16362
      return 0;
16363
    }
16364
 
16365
    public int compareTo(getAllItemPricing_result other) {
16366
      if (!getClass().equals(other.getClass())) {
16367
        return getClass().getName().compareTo(other.getClass().getName());
16368
      }
16369
 
16370
      int lastComparison = 0;
16371
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
16372
 
16373
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16374
      if (lastComparison != 0) {
16375
        return lastComparison;
16376
      }
16377
      if (isSetSuccess()) {
16378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16379
        if (lastComparison != 0) {
16380
          return lastComparison;
16381
        }
16382
      }
16383
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16384
      if (lastComparison != 0) {
16385
        return lastComparison;
16386
      }
16387
      if (isSetCex()) {
16388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16389
        if (lastComparison != 0) {
16390
          return lastComparison;
16391
        }
16392
      }
16393
      return 0;
16394
    }
16395
 
16396
    public _Fields fieldForId(int fieldId) {
16397
      return _Fields.findByThriftId(fieldId);
16398
    }
16399
 
16400
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16401
      org.apache.thrift.protocol.TField field;
16402
      iprot.readStructBegin();
16403
      while (true)
16404
      {
16405
        field = iprot.readFieldBegin();
16406
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16407
          break;
16408
        }
16409
        switch (field.id) {
16410
          case 0: // SUCCESS
16411
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16412
              {
16413
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16414
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
16415
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16416
                {
16417
                  VendorItemPricing _elem34; // required
16418
                  _elem34 = new VendorItemPricing();
16419
                  _elem34.read(iprot);
16420
                  this.success.add(_elem34);
16421
                }
16422
                iprot.readListEnd();
16423
              }
16424
            } else { 
16425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16426
            }
16427
            break;
16428
          case 1: // CEX
16429
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16430
              this.cex = new InventoryServiceException();
16431
              this.cex.read(iprot);
16432
            } else { 
16433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16434
            }
16435
            break;
16436
          default:
16437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16438
        }
16439
        iprot.readFieldEnd();
16440
      }
16441
      iprot.readStructEnd();
16442
      validate();
16443
    }
16444
 
16445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16446
      oprot.writeStructBegin(STRUCT_DESC);
16447
 
16448
      if (this.isSetSuccess()) {
16449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16450
        {
16451
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16452
          for (VendorItemPricing _iter35 : this.success)
16453
          {
16454
            _iter35.write(oprot);
16455
          }
16456
          oprot.writeListEnd();
16457
        }
16458
        oprot.writeFieldEnd();
16459
      } else if (this.isSetCex()) {
16460
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16461
        this.cex.write(oprot);
16462
        oprot.writeFieldEnd();
16463
      }
16464
      oprot.writeFieldStop();
16465
      oprot.writeStructEnd();
16466
    }
16467
 
16468
    @Override
16469
    public String toString() {
16470
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
16471
      boolean first = true;
16472
 
16473
      sb.append("success:");
16474
      if (this.success == null) {
16475
        sb.append("null");
16476
      } else {
16477
        sb.append(this.success);
16478
      }
16479
      first = false;
16480
      if (!first) sb.append(", ");
16481
      sb.append("cex:");
16482
      if (this.cex == null) {
16483
        sb.append("null");
16484
      } else {
16485
        sb.append(this.cex);
16486
      }
16487
      first = false;
16488
      sb.append(")");
16489
      return sb.toString();
16490
    }
16491
 
16492
    public void validate() throws org.apache.thrift.TException {
16493
      // check for required fields
16494
    }
16495
 
16496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16497
      try {
16498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16499
      } catch (org.apache.thrift.TException te) {
16500
        throw new java.io.IOException(te);
16501
      }
16502
    }
16503
 
16504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16505
      try {
16506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16507
      } catch (org.apache.thrift.TException te) {
16508
        throw new java.io.IOException(te);
16509
      }
16510
    }
16511
 
16512
  }
16513
 
16514
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
16516
 
16517
    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);
16518
 
16519
    private VendorItemPricing vendorItemPricing; // required
16520
 
16521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16523
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
16524
 
16525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16526
 
16527
      static {
16528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16529
          byName.put(field.getFieldName(), field);
16530
        }
16531
      }
16532
 
16533
      /**
16534
       * Find the _Fields constant that matches fieldId, or null if its not found.
16535
       */
16536
      public static _Fields findByThriftId(int fieldId) {
16537
        switch(fieldId) {
16538
          case 1: // VENDOR_ITEM_PRICING
16539
            return VENDOR_ITEM_PRICING;
16540
          default:
16541
            return null;
16542
        }
16543
      }
16544
 
16545
      /**
16546
       * Find the _Fields constant that matches fieldId, throwing an exception
16547
       * if it is not found.
16548
       */
16549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16550
        _Fields fields = findByThriftId(fieldId);
16551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16552
        return fields;
16553
      }
16554
 
16555
      /**
16556
       * Find the _Fields constant that matches name, or null if its not found.
16557
       */
16558
      public static _Fields findByName(String name) {
16559
        return byName.get(name);
16560
      }
16561
 
16562
      private final short _thriftId;
16563
      private final String _fieldName;
16564
 
16565
      _Fields(short thriftId, String fieldName) {
16566
        _thriftId = thriftId;
16567
        _fieldName = fieldName;
16568
      }
16569
 
16570
      public short getThriftFieldId() {
16571
        return _thriftId;
16572
      }
16573
 
16574
      public String getFieldName() {
16575
        return _fieldName;
16576
      }
16577
    }
16578
 
16579
    // isset id assignments
16580
 
16581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16582
    static {
16583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16584
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16585
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
16586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
16588
    }
16589
 
16590
    public addVendorItemPricing_args() {
16591
    }
16592
 
16593
    public addVendorItemPricing_args(
16594
      VendorItemPricing vendorItemPricing)
16595
    {
16596
      this();
16597
      this.vendorItemPricing = vendorItemPricing;
16598
    }
16599
 
16600
    /**
16601
     * Performs a deep copy on <i>other</i>.
16602
     */
16603
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
16604
      if (other.isSetVendorItemPricing()) {
16605
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
16606
      }
16607
    }
16608
 
16609
    public addVendorItemPricing_args deepCopy() {
16610
      return new addVendorItemPricing_args(this);
16611
    }
16612
 
16613
    @Override
16614
    public void clear() {
16615
      this.vendorItemPricing = null;
16616
    }
16617
 
16618
    public VendorItemPricing getVendorItemPricing() {
16619
      return this.vendorItemPricing;
16620
    }
16621
 
16622
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
16623
      this.vendorItemPricing = vendorItemPricing;
16624
    }
16625
 
16626
    public void unsetVendorItemPricing() {
16627
      this.vendorItemPricing = null;
16628
    }
16629
 
16630
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
16631
    public boolean isSetVendorItemPricing() {
16632
      return this.vendorItemPricing != null;
16633
    }
16634
 
16635
    public void setVendorItemPricingIsSet(boolean value) {
16636
      if (!value) {
16637
        this.vendorItemPricing = null;
16638
      }
16639
    }
16640
 
16641
    public void setFieldValue(_Fields field, Object value) {
16642
      switch (field) {
16643
      case VENDOR_ITEM_PRICING:
16644
        if (value == null) {
16645
          unsetVendorItemPricing();
16646
        } else {
16647
          setVendorItemPricing((VendorItemPricing)value);
16648
        }
16649
        break;
16650
 
16651
      }
16652
    }
16653
 
16654
    public Object getFieldValue(_Fields field) {
16655
      switch (field) {
16656
      case VENDOR_ITEM_PRICING:
16657
        return getVendorItemPricing();
16658
 
16659
      }
16660
      throw new IllegalStateException();
16661
    }
16662
 
16663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16664
    public boolean isSet(_Fields field) {
16665
      if (field == null) {
16666
        throw new IllegalArgumentException();
16667
      }
16668
 
16669
      switch (field) {
16670
      case VENDOR_ITEM_PRICING:
16671
        return isSetVendorItemPricing();
16672
      }
16673
      throw new IllegalStateException();
16674
    }
16675
 
16676
    @Override
16677
    public boolean equals(Object that) {
16678
      if (that == null)
16679
        return false;
16680
      if (that instanceof addVendorItemPricing_args)
16681
        return this.equals((addVendorItemPricing_args)that);
16682
      return false;
16683
    }
16684
 
16685
    public boolean equals(addVendorItemPricing_args that) {
16686
      if (that == null)
16687
        return false;
16688
 
16689
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
16690
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
16691
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
16692
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
16693
          return false;
16694
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
16695
          return false;
16696
      }
16697
 
16698
      return true;
16699
    }
16700
 
16701
    @Override
16702
    public int hashCode() {
16703
      return 0;
16704
    }
16705
 
16706
    public int compareTo(addVendorItemPricing_args other) {
16707
      if (!getClass().equals(other.getClass())) {
16708
        return getClass().getName().compareTo(other.getClass().getName());
16709
      }
16710
 
16711
      int lastComparison = 0;
16712
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
16713
 
16714
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
16715
      if (lastComparison != 0) {
16716
        return lastComparison;
16717
      }
16718
      if (isSetVendorItemPricing()) {
16719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
16720
        if (lastComparison != 0) {
16721
          return lastComparison;
16722
        }
16723
      }
16724
      return 0;
16725
    }
16726
 
16727
    public _Fields fieldForId(int fieldId) {
16728
      return _Fields.findByThriftId(fieldId);
16729
    }
16730
 
16731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16732
      org.apache.thrift.protocol.TField field;
16733
      iprot.readStructBegin();
16734
      while (true)
16735
      {
16736
        field = iprot.readFieldBegin();
16737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16738
          break;
16739
        }
16740
        switch (field.id) {
16741
          case 1: // VENDOR_ITEM_PRICING
16742
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16743
              this.vendorItemPricing = new VendorItemPricing();
16744
              this.vendorItemPricing.read(iprot);
16745
            } else { 
16746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16747
            }
16748
            break;
16749
          default:
16750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16751
        }
16752
        iprot.readFieldEnd();
16753
      }
16754
      iprot.readStructEnd();
16755
      validate();
16756
    }
16757
 
16758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16759
      validate();
16760
 
16761
      oprot.writeStructBegin(STRUCT_DESC);
16762
      if (this.vendorItemPricing != null) {
16763
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
16764
        this.vendorItemPricing.write(oprot);
16765
        oprot.writeFieldEnd();
16766
      }
16767
      oprot.writeFieldStop();
16768
      oprot.writeStructEnd();
16769
    }
16770
 
16771
    @Override
16772
    public String toString() {
16773
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
16774
      boolean first = true;
16775
 
16776
      sb.append("vendorItemPricing:");
16777
      if (this.vendorItemPricing == null) {
16778
        sb.append("null");
16779
      } else {
16780
        sb.append(this.vendorItemPricing);
16781
      }
16782
      first = false;
16783
      sb.append(")");
16784
      return sb.toString();
16785
    }
16786
 
16787
    public void validate() throws org.apache.thrift.TException {
16788
      // check for required fields
16789
    }
16790
 
16791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16792
      try {
16793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16794
      } catch (org.apache.thrift.TException te) {
16795
        throw new java.io.IOException(te);
16796
      }
16797
    }
16798
 
16799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16800
      try {
16801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16802
      } catch (org.apache.thrift.TException te) {
16803
        throw new java.io.IOException(te);
16804
      }
16805
    }
16806
 
16807
  }
16808
 
16809
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
16811
 
16812
    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);
16813
 
16814
    private InventoryServiceException cex; // required
16815
 
16816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16818
      CEX((short)1, "cex");
16819
 
16820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16821
 
16822
      static {
16823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16824
          byName.put(field.getFieldName(), field);
16825
        }
16826
      }
16827
 
16828
      /**
16829
       * Find the _Fields constant that matches fieldId, or null if its not found.
16830
       */
16831
      public static _Fields findByThriftId(int fieldId) {
16832
        switch(fieldId) {
16833
          case 1: // CEX
16834
            return CEX;
16835
          default:
16836
            return null;
16837
        }
16838
      }
16839
 
16840
      /**
16841
       * Find the _Fields constant that matches fieldId, throwing an exception
16842
       * if it is not found.
16843
       */
16844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16845
        _Fields fields = findByThriftId(fieldId);
16846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16847
        return fields;
16848
      }
16849
 
16850
      /**
16851
       * Find the _Fields constant that matches name, or null if its not found.
16852
       */
16853
      public static _Fields findByName(String name) {
16854
        return byName.get(name);
16855
      }
16856
 
16857
      private final short _thriftId;
16858
      private final String _fieldName;
16859
 
16860
      _Fields(short thriftId, String fieldName) {
16861
        _thriftId = thriftId;
16862
        _fieldName = fieldName;
16863
      }
16864
 
16865
      public short getThriftFieldId() {
16866
        return _thriftId;
16867
      }
16868
 
16869
      public String getFieldName() {
16870
        return _fieldName;
16871
      }
16872
    }
16873
 
16874
    // isset id assignments
16875
 
16876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16877
    static {
16878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16879
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
16883
    }
16884
 
16885
    public addVendorItemPricing_result() {
16886
    }
16887
 
16888
    public addVendorItemPricing_result(
16889
      InventoryServiceException cex)
16890
    {
16891
      this();
16892
      this.cex = cex;
16893
    }
16894
 
16895
    /**
16896
     * Performs a deep copy on <i>other</i>.
16897
     */
16898
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
16899
      if (other.isSetCex()) {
16900
        this.cex = new InventoryServiceException(other.cex);
16901
      }
16902
    }
16903
 
16904
    public addVendorItemPricing_result deepCopy() {
16905
      return new addVendorItemPricing_result(this);
16906
    }
16907
 
16908
    @Override
16909
    public void clear() {
16910
      this.cex = null;
16911
    }
16912
 
16913
    public InventoryServiceException getCex() {
16914
      return this.cex;
16915
    }
16916
 
16917
    public void setCex(InventoryServiceException cex) {
16918
      this.cex = cex;
16919
    }
16920
 
16921
    public void unsetCex() {
16922
      this.cex = null;
16923
    }
16924
 
16925
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16926
    public boolean isSetCex() {
16927
      return this.cex != null;
16928
    }
16929
 
16930
    public void setCexIsSet(boolean value) {
16931
      if (!value) {
16932
        this.cex = null;
16933
      }
16934
    }
16935
 
16936
    public void setFieldValue(_Fields field, Object value) {
16937
      switch (field) {
16938
      case CEX:
16939
        if (value == null) {
16940
          unsetCex();
16941
        } else {
16942
          setCex((InventoryServiceException)value);
16943
        }
16944
        break;
16945
 
16946
      }
16947
    }
16948
 
16949
    public Object getFieldValue(_Fields field) {
16950
      switch (field) {
16951
      case CEX:
16952
        return getCex();
16953
 
16954
      }
16955
      throw new IllegalStateException();
16956
    }
16957
 
16958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16959
    public boolean isSet(_Fields field) {
16960
      if (field == null) {
16961
        throw new IllegalArgumentException();
16962
      }
16963
 
16964
      switch (field) {
16965
      case CEX:
16966
        return isSetCex();
16967
      }
16968
      throw new IllegalStateException();
16969
    }
16970
 
16971
    @Override
16972
    public boolean equals(Object that) {
16973
      if (that == null)
16974
        return false;
16975
      if (that instanceof addVendorItemPricing_result)
16976
        return this.equals((addVendorItemPricing_result)that);
16977
      return false;
16978
    }
16979
 
16980
    public boolean equals(addVendorItemPricing_result that) {
16981
      if (that == null)
16982
        return false;
16983
 
16984
      boolean this_present_cex = true && this.isSetCex();
16985
      boolean that_present_cex = true && that.isSetCex();
16986
      if (this_present_cex || that_present_cex) {
16987
        if (!(this_present_cex && that_present_cex))
16988
          return false;
16989
        if (!this.cex.equals(that.cex))
16990
          return false;
16991
      }
16992
 
16993
      return true;
16994
    }
16995
 
16996
    @Override
16997
    public int hashCode() {
16998
      return 0;
16999
    }
17000
 
17001
    public int compareTo(addVendorItemPricing_result other) {
17002
      if (!getClass().equals(other.getClass())) {
17003
        return getClass().getName().compareTo(other.getClass().getName());
17004
      }
17005
 
17006
      int lastComparison = 0;
17007
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
17008
 
17009
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17010
      if (lastComparison != 0) {
17011
        return lastComparison;
17012
      }
17013
      if (isSetCex()) {
17014
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17015
        if (lastComparison != 0) {
17016
          return lastComparison;
17017
        }
17018
      }
17019
      return 0;
17020
    }
17021
 
17022
    public _Fields fieldForId(int fieldId) {
17023
      return _Fields.findByThriftId(fieldId);
17024
    }
17025
 
17026
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17027
      org.apache.thrift.protocol.TField field;
17028
      iprot.readStructBegin();
17029
      while (true)
17030
      {
17031
        field = iprot.readFieldBegin();
17032
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17033
          break;
17034
        }
17035
        switch (field.id) {
17036
          case 1: // CEX
17037
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17038
              this.cex = new InventoryServiceException();
17039
              this.cex.read(iprot);
17040
            } else { 
17041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17042
            }
17043
            break;
17044
          default:
17045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17046
        }
17047
        iprot.readFieldEnd();
17048
      }
17049
      iprot.readStructEnd();
17050
      validate();
17051
    }
17052
 
17053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17054
      oprot.writeStructBegin(STRUCT_DESC);
17055
 
17056
      if (this.isSetCex()) {
17057
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17058
        this.cex.write(oprot);
17059
        oprot.writeFieldEnd();
17060
      }
17061
      oprot.writeFieldStop();
17062
      oprot.writeStructEnd();
17063
    }
17064
 
17065
    @Override
17066
    public String toString() {
17067
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
17068
      boolean first = true;
17069
 
17070
      sb.append("cex:");
17071
      if (this.cex == null) {
17072
        sb.append("null");
17073
      } else {
17074
        sb.append(this.cex);
17075
      }
17076
      first = false;
17077
      sb.append(")");
17078
      return sb.toString();
17079
    }
17080
 
17081
    public void validate() throws org.apache.thrift.TException {
17082
      // check for required fields
17083
    }
17084
 
17085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17086
      try {
17087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17088
      } catch (org.apache.thrift.TException te) {
17089
        throw new java.io.IOException(te);
17090
      }
17091
    }
17092
 
17093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17094
      try {
17095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17096
      } catch (org.apache.thrift.TException te) {
17097
        throw new java.io.IOException(te);
17098
      }
17099
    }
17100
 
17101
  }
17102
 
17103
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
17104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
17105
 
17106
    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);
17107
 
17108
    private long vendorId; // required
17109
 
17110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17112
      VENDOR_ID((short)1, "vendorId");
17113
 
17114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17115
 
17116
      static {
17117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17118
          byName.put(field.getFieldName(), field);
17119
        }
17120
      }
17121
 
17122
      /**
17123
       * Find the _Fields constant that matches fieldId, or null if its not found.
17124
       */
17125
      public static _Fields findByThriftId(int fieldId) {
17126
        switch(fieldId) {
17127
          case 1: // VENDOR_ID
17128
            return VENDOR_ID;
17129
          default:
17130
            return null;
17131
        }
17132
      }
17133
 
17134
      /**
17135
       * Find the _Fields constant that matches fieldId, throwing an exception
17136
       * if it is not found.
17137
       */
17138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17139
        _Fields fields = findByThriftId(fieldId);
17140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17141
        return fields;
17142
      }
17143
 
17144
      /**
17145
       * Find the _Fields constant that matches name, or null if its not found.
17146
       */
17147
      public static _Fields findByName(String name) {
17148
        return byName.get(name);
17149
      }
17150
 
17151
      private final short _thriftId;
17152
      private final String _fieldName;
17153
 
17154
      _Fields(short thriftId, String fieldName) {
17155
        _thriftId = thriftId;
17156
        _fieldName = fieldName;
17157
      }
17158
 
17159
      public short getThriftFieldId() {
17160
        return _thriftId;
17161
      }
17162
 
17163
      public String getFieldName() {
17164
        return _fieldName;
17165
      }
17166
    }
17167
 
17168
    // isset id assignments
17169
    private static final int __VENDORID_ISSET_ID = 0;
17170
    private BitSet __isset_bit_vector = new BitSet(1);
17171
 
17172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17173
    static {
17174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17175
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17176
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17177
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17178
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
17179
    }
17180
 
17181
    public getVendor_args() {
17182
    }
17183
 
17184
    public getVendor_args(
17185
      long vendorId)
17186
    {
17187
      this();
17188
      this.vendorId = vendorId;
17189
      setVendorIdIsSet(true);
17190
    }
17191
 
17192
    /**
17193
     * Performs a deep copy on <i>other</i>.
17194
     */
17195
    public getVendor_args(getVendor_args other) {
17196
      __isset_bit_vector.clear();
17197
      __isset_bit_vector.or(other.__isset_bit_vector);
17198
      this.vendorId = other.vendorId;
17199
    }
17200
 
17201
    public getVendor_args deepCopy() {
17202
      return new getVendor_args(this);
17203
    }
17204
 
17205
    @Override
17206
    public void clear() {
17207
      setVendorIdIsSet(false);
17208
      this.vendorId = 0;
17209
    }
17210
 
17211
    public long getVendorId() {
17212
      return this.vendorId;
17213
    }
17214
 
17215
    public void setVendorId(long vendorId) {
17216
      this.vendorId = vendorId;
17217
      setVendorIdIsSet(true);
17218
    }
17219
 
17220
    public void unsetVendorId() {
17221
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17222
    }
17223
 
17224
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17225
    public boolean isSetVendorId() {
17226
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17227
    }
17228
 
17229
    public void setVendorIdIsSet(boolean value) {
17230
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17231
    }
17232
 
17233
    public void setFieldValue(_Fields field, Object value) {
17234
      switch (field) {
17235
      case VENDOR_ID:
17236
        if (value == null) {
17237
          unsetVendorId();
17238
        } else {
17239
          setVendorId((Long)value);
17240
        }
17241
        break;
17242
 
17243
      }
17244
    }
17245
 
17246
    public Object getFieldValue(_Fields field) {
17247
      switch (field) {
17248
      case VENDOR_ID:
17249
        return Long.valueOf(getVendorId());
17250
 
17251
      }
17252
      throw new IllegalStateException();
17253
    }
17254
 
17255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17256
    public boolean isSet(_Fields field) {
17257
      if (field == null) {
17258
        throw new IllegalArgumentException();
17259
      }
17260
 
17261
      switch (field) {
17262
      case VENDOR_ID:
17263
        return isSetVendorId();
17264
      }
17265
      throw new IllegalStateException();
17266
    }
17267
 
17268
    @Override
17269
    public boolean equals(Object that) {
17270
      if (that == null)
17271
        return false;
17272
      if (that instanceof getVendor_args)
17273
        return this.equals((getVendor_args)that);
17274
      return false;
17275
    }
17276
 
17277
    public boolean equals(getVendor_args that) {
17278
      if (that == null)
17279
        return false;
17280
 
17281
      boolean this_present_vendorId = true;
17282
      boolean that_present_vendorId = true;
17283
      if (this_present_vendorId || that_present_vendorId) {
17284
        if (!(this_present_vendorId && that_present_vendorId))
17285
          return false;
17286
        if (this.vendorId != that.vendorId)
17287
          return false;
17288
      }
17289
 
17290
      return true;
17291
    }
17292
 
17293
    @Override
17294
    public int hashCode() {
17295
      return 0;
17296
    }
17297
 
17298
    public int compareTo(getVendor_args other) {
17299
      if (!getClass().equals(other.getClass())) {
17300
        return getClass().getName().compareTo(other.getClass().getName());
17301
      }
17302
 
17303
      int lastComparison = 0;
17304
      getVendor_args typedOther = (getVendor_args)other;
17305
 
17306
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17307
      if (lastComparison != 0) {
17308
        return lastComparison;
17309
      }
17310
      if (isSetVendorId()) {
17311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17312
        if (lastComparison != 0) {
17313
          return lastComparison;
17314
        }
17315
      }
17316
      return 0;
17317
    }
17318
 
17319
    public _Fields fieldForId(int fieldId) {
17320
      return _Fields.findByThriftId(fieldId);
17321
    }
17322
 
17323
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17324
      org.apache.thrift.protocol.TField field;
17325
      iprot.readStructBegin();
17326
      while (true)
17327
      {
17328
        field = iprot.readFieldBegin();
17329
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17330
          break;
17331
        }
17332
        switch (field.id) {
17333
          case 1: // VENDOR_ID
17334
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17335
              this.vendorId = iprot.readI64();
17336
              setVendorIdIsSet(true);
17337
            } else { 
17338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17339
            }
17340
            break;
17341
          default:
17342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17343
        }
17344
        iprot.readFieldEnd();
17345
      }
17346
      iprot.readStructEnd();
17347
      validate();
17348
    }
17349
 
17350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17351
      validate();
17352
 
17353
      oprot.writeStructBegin(STRUCT_DESC);
17354
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17355
      oprot.writeI64(this.vendorId);
17356
      oprot.writeFieldEnd();
17357
      oprot.writeFieldStop();
17358
      oprot.writeStructEnd();
17359
    }
17360
 
17361
    @Override
17362
    public String toString() {
17363
      StringBuilder sb = new StringBuilder("getVendor_args(");
17364
      boolean first = true;
17365
 
17366
      sb.append("vendorId:");
17367
      sb.append(this.vendorId);
17368
      first = false;
17369
      sb.append(")");
17370
      return sb.toString();
17371
    }
17372
 
17373
    public void validate() throws org.apache.thrift.TException {
17374
      // check for required fields
17375
    }
17376
 
17377
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17378
      try {
17379
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17380
      } catch (org.apache.thrift.TException te) {
17381
        throw new java.io.IOException(te);
17382
      }
17383
    }
17384
 
17385
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17386
      try {
17387
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17388
        __isset_bit_vector = new BitSet(1);
17389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17390
      } catch (org.apache.thrift.TException te) {
17391
        throw new java.io.IOException(te);
17392
      }
17393
    }
17394
 
17395
  }
17396
 
17397
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
17398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
17399
 
17400
    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);
17401
 
17402
    private Vendor success; // required
17403
 
17404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17406
      SUCCESS((short)0, "success");
17407
 
17408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17409
 
17410
      static {
17411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17412
          byName.put(field.getFieldName(), field);
17413
        }
17414
      }
17415
 
17416
      /**
17417
       * Find the _Fields constant that matches fieldId, or null if its not found.
17418
       */
17419
      public static _Fields findByThriftId(int fieldId) {
17420
        switch(fieldId) {
17421
          case 0: // SUCCESS
17422
            return SUCCESS;
17423
          default:
17424
            return null;
17425
        }
17426
      }
17427
 
17428
      /**
17429
       * Find the _Fields constant that matches fieldId, throwing an exception
17430
       * if it is not found.
17431
       */
17432
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17433
        _Fields fields = findByThriftId(fieldId);
17434
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17435
        return fields;
17436
      }
17437
 
17438
      /**
17439
       * Find the _Fields constant that matches name, or null if its not found.
17440
       */
17441
      public static _Fields findByName(String name) {
17442
        return byName.get(name);
17443
      }
17444
 
17445
      private final short _thriftId;
17446
      private final String _fieldName;
17447
 
17448
      _Fields(short thriftId, String fieldName) {
17449
        _thriftId = thriftId;
17450
        _fieldName = fieldName;
17451
      }
17452
 
17453
      public short getThriftFieldId() {
17454
        return _thriftId;
17455
      }
17456
 
17457
      public String getFieldName() {
17458
        return _fieldName;
17459
      }
17460
    }
17461
 
17462
    // isset id assignments
17463
 
17464
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17465
    static {
17466
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17467
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17468
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
17469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
17471
    }
17472
 
17473
    public getVendor_result() {
17474
    }
17475
 
17476
    public getVendor_result(
17477
      Vendor success)
17478
    {
17479
      this();
17480
      this.success = success;
17481
    }
17482
 
17483
    /**
17484
     * Performs a deep copy on <i>other</i>.
17485
     */
17486
    public getVendor_result(getVendor_result other) {
17487
      if (other.isSetSuccess()) {
17488
        this.success = new Vendor(other.success);
17489
      }
17490
    }
17491
 
17492
    public getVendor_result deepCopy() {
17493
      return new getVendor_result(this);
17494
    }
17495
 
17496
    @Override
17497
    public void clear() {
17498
      this.success = null;
17499
    }
17500
 
17501
    public Vendor getSuccess() {
17502
      return this.success;
17503
    }
17504
 
17505
    public void setSuccess(Vendor success) {
17506
      this.success = success;
17507
    }
17508
 
17509
    public void unsetSuccess() {
17510
      this.success = null;
17511
    }
17512
 
17513
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17514
    public boolean isSetSuccess() {
17515
      return this.success != null;
17516
    }
17517
 
17518
    public void setSuccessIsSet(boolean value) {
17519
      if (!value) {
17520
        this.success = null;
17521
      }
17522
    }
17523
 
17524
    public void setFieldValue(_Fields field, Object value) {
17525
      switch (field) {
17526
      case SUCCESS:
17527
        if (value == null) {
17528
          unsetSuccess();
17529
        } else {
17530
          setSuccess((Vendor)value);
17531
        }
17532
        break;
17533
 
17534
      }
17535
    }
17536
 
17537
    public Object getFieldValue(_Fields field) {
17538
      switch (field) {
17539
      case SUCCESS:
17540
        return getSuccess();
17541
 
17542
      }
17543
      throw new IllegalStateException();
17544
    }
17545
 
17546
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17547
    public boolean isSet(_Fields field) {
17548
      if (field == null) {
17549
        throw new IllegalArgumentException();
17550
      }
17551
 
17552
      switch (field) {
17553
      case SUCCESS:
17554
        return isSetSuccess();
17555
      }
17556
      throw new IllegalStateException();
17557
    }
17558
 
17559
    @Override
17560
    public boolean equals(Object that) {
17561
      if (that == null)
17562
        return false;
17563
      if (that instanceof getVendor_result)
17564
        return this.equals((getVendor_result)that);
17565
      return false;
17566
    }
17567
 
17568
    public boolean equals(getVendor_result that) {
17569
      if (that == null)
17570
        return false;
17571
 
17572
      boolean this_present_success = true && this.isSetSuccess();
17573
      boolean that_present_success = true && that.isSetSuccess();
17574
      if (this_present_success || that_present_success) {
17575
        if (!(this_present_success && that_present_success))
17576
          return false;
17577
        if (!this.success.equals(that.success))
17578
          return false;
17579
      }
17580
 
17581
      return true;
17582
    }
17583
 
17584
    @Override
17585
    public int hashCode() {
17586
      return 0;
17587
    }
17588
 
17589
    public int compareTo(getVendor_result other) {
17590
      if (!getClass().equals(other.getClass())) {
17591
        return getClass().getName().compareTo(other.getClass().getName());
17592
      }
17593
 
17594
      int lastComparison = 0;
17595
      getVendor_result typedOther = (getVendor_result)other;
17596
 
17597
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17598
      if (lastComparison != 0) {
17599
        return lastComparison;
17600
      }
17601
      if (isSetSuccess()) {
17602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17603
        if (lastComparison != 0) {
17604
          return lastComparison;
17605
        }
17606
      }
17607
      return 0;
17608
    }
17609
 
17610
    public _Fields fieldForId(int fieldId) {
17611
      return _Fields.findByThriftId(fieldId);
17612
    }
17613
 
17614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17615
      org.apache.thrift.protocol.TField field;
17616
      iprot.readStructBegin();
17617
      while (true)
17618
      {
17619
        field = iprot.readFieldBegin();
17620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17621
          break;
17622
        }
17623
        switch (field.id) {
17624
          case 0: // SUCCESS
17625
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17626
              this.success = new Vendor();
17627
              this.success.read(iprot);
17628
            } else { 
17629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17630
            }
17631
            break;
17632
          default:
17633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17634
        }
17635
        iprot.readFieldEnd();
17636
      }
17637
      iprot.readStructEnd();
17638
      validate();
17639
    }
17640
 
17641
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17642
      oprot.writeStructBegin(STRUCT_DESC);
17643
 
17644
      if (this.isSetSuccess()) {
17645
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17646
        this.success.write(oprot);
17647
        oprot.writeFieldEnd();
17648
      }
17649
      oprot.writeFieldStop();
17650
      oprot.writeStructEnd();
17651
    }
17652
 
17653
    @Override
17654
    public String toString() {
17655
      StringBuilder sb = new StringBuilder("getVendor_result(");
17656
      boolean first = true;
17657
 
17658
      sb.append("success:");
17659
      if (this.success == null) {
17660
        sb.append("null");
17661
      } else {
17662
        sb.append(this.success);
17663
      }
17664
      first = false;
17665
      sb.append(")");
17666
      return sb.toString();
17667
    }
17668
 
17669
    public void validate() throws org.apache.thrift.TException {
17670
      // check for required fields
17671
    }
17672
 
17673
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17674
      try {
17675
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17676
      } catch (org.apache.thrift.TException te) {
17677
        throw new java.io.IOException(te);
17678
      }
17679
    }
17680
 
17681
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17682
      try {
17683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17684
      } catch (org.apache.thrift.TException te) {
17685
        throw new java.io.IOException(te);
17686
      }
17687
    }
17688
 
17689
  }
17690
 
17691
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
17692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
17693
 
17694
 
17695
 
17696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17698
;
17699
 
17700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17701
 
17702
      static {
17703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17704
          byName.put(field.getFieldName(), field);
17705
        }
17706
      }
17707
 
17708
      /**
17709
       * Find the _Fields constant that matches fieldId, or null if its not found.
17710
       */
17711
      public static _Fields findByThriftId(int fieldId) {
17712
        switch(fieldId) {
17713
          default:
17714
            return null;
17715
        }
17716
      }
17717
 
17718
      /**
17719
       * Find the _Fields constant that matches fieldId, throwing an exception
17720
       * if it is not found.
17721
       */
17722
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17723
        _Fields fields = findByThriftId(fieldId);
17724
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17725
        return fields;
17726
      }
17727
 
17728
      /**
17729
       * Find the _Fields constant that matches name, or null if its not found.
17730
       */
17731
      public static _Fields findByName(String name) {
17732
        return byName.get(name);
17733
      }
17734
 
17735
      private final short _thriftId;
17736
      private final String _fieldName;
17737
 
17738
      _Fields(short thriftId, String fieldName) {
17739
        _thriftId = thriftId;
17740
        _fieldName = fieldName;
17741
      }
17742
 
17743
      public short getThriftFieldId() {
17744
        return _thriftId;
17745
      }
17746
 
17747
      public String getFieldName() {
17748
        return _fieldName;
17749
      }
17750
    }
17751
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17752
    static {
17753
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17754
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17755
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
17756
    }
17757
 
17758
    public getAllVendors_args() {
17759
    }
17760
 
17761
    /**
17762
     * Performs a deep copy on <i>other</i>.
17763
     */
17764
    public getAllVendors_args(getAllVendors_args other) {
17765
    }
17766
 
17767
    public getAllVendors_args deepCopy() {
17768
      return new getAllVendors_args(this);
17769
    }
17770
 
17771
    @Override
17772
    public void clear() {
17773
    }
17774
 
17775
    public void setFieldValue(_Fields field, Object value) {
17776
      switch (field) {
17777
      }
17778
    }
17779
 
17780
    public Object getFieldValue(_Fields field) {
17781
      switch (field) {
17782
      }
17783
      throw new IllegalStateException();
17784
    }
17785
 
17786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17787
    public boolean isSet(_Fields field) {
17788
      if (field == null) {
17789
        throw new IllegalArgumentException();
17790
      }
17791
 
17792
      switch (field) {
17793
      }
17794
      throw new IllegalStateException();
17795
    }
17796
 
17797
    @Override
17798
    public boolean equals(Object that) {
17799
      if (that == null)
17800
        return false;
17801
      if (that instanceof getAllVendors_args)
17802
        return this.equals((getAllVendors_args)that);
17803
      return false;
17804
    }
17805
 
17806
    public boolean equals(getAllVendors_args that) {
17807
      if (that == null)
17808
        return false;
17809
 
17810
      return true;
17811
    }
17812
 
17813
    @Override
17814
    public int hashCode() {
17815
      return 0;
17816
    }
17817
 
17818
    public int compareTo(getAllVendors_args other) {
17819
      if (!getClass().equals(other.getClass())) {
17820
        return getClass().getName().compareTo(other.getClass().getName());
17821
      }
17822
 
17823
      int lastComparison = 0;
17824
      getAllVendors_args typedOther = (getAllVendors_args)other;
17825
 
17826
      return 0;
17827
    }
17828
 
17829
    public _Fields fieldForId(int fieldId) {
17830
      return _Fields.findByThriftId(fieldId);
17831
    }
17832
 
17833
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17834
      org.apache.thrift.protocol.TField field;
17835
      iprot.readStructBegin();
17836
      while (true)
17837
      {
17838
        field = iprot.readFieldBegin();
17839
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17840
          break;
17841
        }
17842
        switch (field.id) {
17843
          default:
17844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17845
        }
17846
        iprot.readFieldEnd();
17847
      }
17848
      iprot.readStructEnd();
17849
      validate();
17850
    }
17851
 
17852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17853
      validate();
17854
 
17855
      oprot.writeStructBegin(STRUCT_DESC);
17856
      oprot.writeFieldStop();
17857
      oprot.writeStructEnd();
17858
    }
17859
 
17860
    @Override
17861
    public String toString() {
17862
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
17863
      boolean first = true;
17864
 
17865
      sb.append(")");
17866
      return sb.toString();
17867
    }
17868
 
17869
    public void validate() throws org.apache.thrift.TException {
17870
      // check for required fields
17871
    }
17872
 
17873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17874
      try {
17875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17876
      } catch (org.apache.thrift.TException te) {
17877
        throw new java.io.IOException(te);
17878
      }
17879
    }
17880
 
17881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17882
      try {
17883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17884
      } catch (org.apache.thrift.TException te) {
17885
        throw new java.io.IOException(te);
17886
      }
17887
    }
17888
 
17889
  }
17890
 
17891
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
17892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
17893
 
17894
    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);
17895
 
17896
    private List<Vendor> success; // required
17897
 
17898
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17899
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17900
      SUCCESS((short)0, "success");
17901
 
17902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17903
 
17904
      static {
17905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17906
          byName.put(field.getFieldName(), field);
17907
        }
17908
      }
17909
 
17910
      /**
17911
       * Find the _Fields constant that matches fieldId, or null if its not found.
17912
       */
17913
      public static _Fields findByThriftId(int fieldId) {
17914
        switch(fieldId) {
17915
          case 0: // SUCCESS
17916
            return SUCCESS;
17917
          default:
17918
            return null;
17919
        }
17920
      }
17921
 
17922
      /**
17923
       * Find the _Fields constant that matches fieldId, throwing an exception
17924
       * if it is not found.
17925
       */
17926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17927
        _Fields fields = findByThriftId(fieldId);
17928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17929
        return fields;
17930
      }
17931
 
17932
      /**
17933
       * Find the _Fields constant that matches name, or null if its not found.
17934
       */
17935
      public static _Fields findByName(String name) {
17936
        return byName.get(name);
17937
      }
17938
 
17939
      private final short _thriftId;
17940
      private final String _fieldName;
17941
 
17942
      _Fields(short thriftId, String fieldName) {
17943
        _thriftId = thriftId;
17944
        _fieldName = fieldName;
17945
      }
17946
 
17947
      public short getThriftFieldId() {
17948
        return _thriftId;
17949
      }
17950
 
17951
      public String getFieldName() {
17952
        return _fieldName;
17953
      }
17954
    }
17955
 
17956
    // isset id assignments
17957
 
17958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17959
    static {
17960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17962
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17963
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
17964
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17965
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
17966
    }
17967
 
17968
    public getAllVendors_result() {
17969
    }
17970
 
17971
    public getAllVendors_result(
17972
      List<Vendor> success)
17973
    {
17974
      this();
17975
      this.success = success;
17976
    }
17977
 
17978
    /**
17979
     * Performs a deep copy on <i>other</i>.
17980
     */
17981
    public getAllVendors_result(getAllVendors_result other) {
17982
      if (other.isSetSuccess()) {
17983
        List<Vendor> __this__success = new ArrayList<Vendor>();
17984
        for (Vendor other_element : other.success) {
17985
          __this__success.add(new Vendor(other_element));
17986
        }
17987
        this.success = __this__success;
17988
      }
17989
    }
17990
 
17991
    public getAllVendors_result deepCopy() {
17992
      return new getAllVendors_result(this);
17993
    }
17994
 
17995
    @Override
17996
    public void clear() {
17997
      this.success = null;
17998
    }
17999
 
18000
    public int getSuccessSize() {
18001
      return (this.success == null) ? 0 : this.success.size();
18002
    }
18003
 
18004
    public java.util.Iterator<Vendor> getSuccessIterator() {
18005
      return (this.success == null) ? null : this.success.iterator();
18006
    }
18007
 
18008
    public void addToSuccess(Vendor elem) {
18009
      if (this.success == null) {
18010
        this.success = new ArrayList<Vendor>();
18011
      }
18012
      this.success.add(elem);
18013
    }
18014
 
18015
    public List<Vendor> getSuccess() {
18016
      return this.success;
18017
    }
18018
 
18019
    public void setSuccess(List<Vendor> success) {
18020
      this.success = success;
18021
    }
18022
 
18023
    public void unsetSuccess() {
18024
      this.success = null;
18025
    }
18026
 
18027
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18028
    public boolean isSetSuccess() {
18029
      return this.success != null;
18030
    }
18031
 
18032
    public void setSuccessIsSet(boolean value) {
18033
      if (!value) {
18034
        this.success = null;
18035
      }
18036
    }
18037
 
18038
    public void setFieldValue(_Fields field, Object value) {
18039
      switch (field) {
18040
      case SUCCESS:
18041
        if (value == null) {
18042
          unsetSuccess();
18043
        } else {
18044
          setSuccess((List<Vendor>)value);
18045
        }
18046
        break;
18047
 
18048
      }
18049
    }
18050
 
18051
    public Object getFieldValue(_Fields field) {
18052
      switch (field) {
18053
      case SUCCESS:
18054
        return getSuccess();
18055
 
18056
      }
18057
      throw new IllegalStateException();
18058
    }
18059
 
18060
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18061
    public boolean isSet(_Fields field) {
18062
      if (field == null) {
18063
        throw new IllegalArgumentException();
18064
      }
18065
 
18066
      switch (field) {
18067
      case SUCCESS:
18068
        return isSetSuccess();
18069
      }
18070
      throw new IllegalStateException();
18071
    }
18072
 
18073
    @Override
18074
    public boolean equals(Object that) {
18075
      if (that == null)
18076
        return false;
18077
      if (that instanceof getAllVendors_result)
18078
        return this.equals((getAllVendors_result)that);
18079
      return false;
18080
    }
18081
 
18082
    public boolean equals(getAllVendors_result that) {
18083
      if (that == null)
18084
        return false;
18085
 
18086
      boolean this_present_success = true && this.isSetSuccess();
18087
      boolean that_present_success = true && that.isSetSuccess();
18088
      if (this_present_success || that_present_success) {
18089
        if (!(this_present_success && that_present_success))
18090
          return false;
18091
        if (!this.success.equals(that.success))
18092
          return false;
18093
      }
18094
 
18095
      return true;
18096
    }
18097
 
18098
    @Override
18099
    public int hashCode() {
18100
      return 0;
18101
    }
18102
 
18103
    public int compareTo(getAllVendors_result other) {
18104
      if (!getClass().equals(other.getClass())) {
18105
        return getClass().getName().compareTo(other.getClass().getName());
18106
      }
18107
 
18108
      int lastComparison = 0;
18109
      getAllVendors_result typedOther = (getAllVendors_result)other;
18110
 
18111
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18112
      if (lastComparison != 0) {
18113
        return lastComparison;
18114
      }
18115
      if (isSetSuccess()) {
18116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18117
        if (lastComparison != 0) {
18118
          return lastComparison;
18119
        }
18120
      }
18121
      return 0;
18122
    }
18123
 
18124
    public _Fields fieldForId(int fieldId) {
18125
      return _Fields.findByThriftId(fieldId);
18126
    }
18127
 
18128
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18129
      org.apache.thrift.protocol.TField field;
18130
      iprot.readStructBegin();
18131
      while (true)
18132
      {
18133
        field = iprot.readFieldBegin();
18134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18135
          break;
18136
        }
18137
        switch (field.id) {
18138
          case 0: // SUCCESS
18139
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18140
              {
18141
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18142
                this.success = new ArrayList<Vendor>(_list36.size);
18143
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18144
                {
18145
                  Vendor _elem38; // required
18146
                  _elem38 = new Vendor();
18147
                  _elem38.read(iprot);
18148
                  this.success.add(_elem38);
18149
                }
18150
                iprot.readListEnd();
18151
              }
18152
            } else { 
18153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18154
            }
18155
            break;
18156
          default:
18157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18158
        }
18159
        iprot.readFieldEnd();
18160
      }
18161
      iprot.readStructEnd();
18162
      validate();
18163
    }
18164
 
18165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18166
      oprot.writeStructBegin(STRUCT_DESC);
18167
 
18168
      if (this.isSetSuccess()) {
18169
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18170
        {
18171
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18172
          for (Vendor _iter39 : this.success)
18173
          {
18174
            _iter39.write(oprot);
18175
          }
18176
          oprot.writeListEnd();
18177
        }
18178
        oprot.writeFieldEnd();
18179
      }
18180
      oprot.writeFieldStop();
18181
      oprot.writeStructEnd();
18182
    }
18183
 
18184
    @Override
18185
    public String toString() {
18186
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
18187
      boolean first = true;
18188
 
18189
      sb.append("success:");
18190
      if (this.success == null) {
18191
        sb.append("null");
18192
      } else {
18193
        sb.append(this.success);
18194
      }
18195
      first = false;
18196
      sb.append(")");
18197
      return sb.toString();
18198
    }
18199
 
18200
    public void validate() throws org.apache.thrift.TException {
18201
      // check for required fields
18202
    }
18203
 
18204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18205
      try {
18206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18207
      } catch (org.apache.thrift.TException te) {
18208
        throw new java.io.IOException(te);
18209
      }
18210
    }
18211
 
18212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18213
      try {
18214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18215
      } catch (org.apache.thrift.TException te) {
18216
        throw new java.io.IOException(te);
18217
      }
18218
    }
18219
 
18220
  }
18221
 
18222
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
18223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
18224
 
18225
    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);
18226
    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);
18227
 
18228
    private String key; // required
18229
    private VendorItemMapping vendorItemMapping; // required
18230
 
18231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18233
      KEY((short)1, "key"),
18234
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
18235
 
18236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18237
 
18238
      static {
18239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18240
          byName.put(field.getFieldName(), field);
18241
        }
18242
      }
18243
 
18244
      /**
18245
       * Find the _Fields constant that matches fieldId, or null if its not found.
18246
       */
18247
      public static _Fields findByThriftId(int fieldId) {
18248
        switch(fieldId) {
18249
          case 1: // KEY
18250
            return KEY;
18251
          case 2: // VENDOR_ITEM_MAPPING
18252
            return VENDOR_ITEM_MAPPING;
18253
          default:
18254
            return null;
18255
        }
18256
      }
18257
 
18258
      /**
18259
       * Find the _Fields constant that matches fieldId, throwing an exception
18260
       * if it is not found.
18261
       */
18262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18263
        _Fields fields = findByThriftId(fieldId);
18264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18265
        return fields;
18266
      }
18267
 
18268
      /**
18269
       * Find the _Fields constant that matches name, or null if its not found.
18270
       */
18271
      public static _Fields findByName(String name) {
18272
        return byName.get(name);
18273
      }
18274
 
18275
      private final short _thriftId;
18276
      private final String _fieldName;
18277
 
18278
      _Fields(short thriftId, String fieldName) {
18279
        _thriftId = thriftId;
18280
        _fieldName = fieldName;
18281
      }
18282
 
18283
      public short getThriftFieldId() {
18284
        return _thriftId;
18285
      }
18286
 
18287
      public String getFieldName() {
18288
        return _fieldName;
18289
      }
18290
    }
18291
 
18292
    // isset id assignments
18293
 
18294
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18295
    static {
18296
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18297
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18299
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18300
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
18301
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18302
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
18303
    }
18304
 
18305
    public addVendorItemMapping_args() {
18306
    }
18307
 
18308
    public addVendorItemMapping_args(
18309
      String key,
18310
      VendorItemMapping vendorItemMapping)
18311
    {
18312
      this();
18313
      this.key = key;
18314
      this.vendorItemMapping = vendorItemMapping;
18315
    }
18316
 
18317
    /**
18318
     * Performs a deep copy on <i>other</i>.
18319
     */
18320
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
18321
      if (other.isSetKey()) {
18322
        this.key = other.key;
18323
      }
18324
      if (other.isSetVendorItemMapping()) {
18325
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
18326
      }
18327
    }
18328
 
18329
    public addVendorItemMapping_args deepCopy() {
18330
      return new addVendorItemMapping_args(this);
18331
    }
18332
 
18333
    @Override
18334
    public void clear() {
18335
      this.key = null;
18336
      this.vendorItemMapping = null;
18337
    }
18338
 
18339
    public String getKey() {
18340
      return this.key;
18341
    }
18342
 
18343
    public void setKey(String key) {
18344
      this.key = key;
18345
    }
18346
 
18347
    public void unsetKey() {
18348
      this.key = null;
18349
    }
18350
 
18351
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
18352
    public boolean isSetKey() {
18353
      return this.key != null;
18354
    }
18355
 
18356
    public void setKeyIsSet(boolean value) {
18357
      if (!value) {
18358
        this.key = null;
18359
      }
18360
    }
18361
 
18362
    public VendorItemMapping getVendorItemMapping() {
18363
      return this.vendorItemMapping;
18364
    }
18365
 
18366
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
18367
      this.vendorItemMapping = vendorItemMapping;
18368
    }
18369
 
18370
    public void unsetVendorItemMapping() {
18371
      this.vendorItemMapping = null;
18372
    }
18373
 
18374
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
18375
    public boolean isSetVendorItemMapping() {
18376
      return this.vendorItemMapping != null;
18377
    }
18378
 
18379
    public void setVendorItemMappingIsSet(boolean value) {
18380
      if (!value) {
18381
        this.vendorItemMapping = null;
18382
      }
18383
    }
18384
 
18385
    public void setFieldValue(_Fields field, Object value) {
18386
      switch (field) {
18387
      case KEY:
18388
        if (value == null) {
18389
          unsetKey();
18390
        } else {
18391
          setKey((String)value);
18392
        }
18393
        break;
18394
 
18395
      case VENDOR_ITEM_MAPPING:
18396
        if (value == null) {
18397
          unsetVendorItemMapping();
18398
        } else {
18399
          setVendorItemMapping((VendorItemMapping)value);
18400
        }
18401
        break;
18402
 
18403
      }
18404
    }
18405
 
18406
    public Object getFieldValue(_Fields field) {
18407
      switch (field) {
18408
      case KEY:
18409
        return getKey();
18410
 
18411
      case VENDOR_ITEM_MAPPING:
18412
        return getVendorItemMapping();
18413
 
18414
      }
18415
      throw new IllegalStateException();
18416
    }
18417
 
18418
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18419
    public boolean isSet(_Fields field) {
18420
      if (field == null) {
18421
        throw new IllegalArgumentException();
18422
      }
18423
 
18424
      switch (field) {
18425
      case KEY:
18426
        return isSetKey();
18427
      case VENDOR_ITEM_MAPPING:
18428
        return isSetVendorItemMapping();
18429
      }
18430
      throw new IllegalStateException();
18431
    }
18432
 
18433
    @Override
18434
    public boolean equals(Object that) {
18435
      if (that == null)
18436
        return false;
18437
      if (that instanceof addVendorItemMapping_args)
18438
        return this.equals((addVendorItemMapping_args)that);
18439
      return false;
18440
    }
18441
 
18442
    public boolean equals(addVendorItemMapping_args that) {
18443
      if (that == null)
18444
        return false;
18445
 
18446
      boolean this_present_key = true && this.isSetKey();
18447
      boolean that_present_key = true && that.isSetKey();
18448
      if (this_present_key || that_present_key) {
18449
        if (!(this_present_key && that_present_key))
18450
          return false;
18451
        if (!this.key.equals(that.key))
18452
          return false;
18453
      }
18454
 
18455
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
18456
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
18457
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
18458
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
18459
          return false;
18460
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
18461
          return false;
18462
      }
18463
 
18464
      return true;
18465
    }
18466
 
18467
    @Override
18468
    public int hashCode() {
18469
      return 0;
18470
    }
18471
 
18472
    public int compareTo(addVendorItemMapping_args other) {
18473
      if (!getClass().equals(other.getClass())) {
18474
        return getClass().getName().compareTo(other.getClass().getName());
18475
      }
18476
 
18477
      int lastComparison = 0;
18478
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
18479
 
18480
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
18481
      if (lastComparison != 0) {
18482
        return lastComparison;
18483
      }
18484
      if (isSetKey()) {
18485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
18486
        if (lastComparison != 0) {
18487
          return lastComparison;
18488
        }
18489
      }
18490
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
18491
      if (lastComparison != 0) {
18492
        return lastComparison;
18493
      }
18494
      if (isSetVendorItemMapping()) {
18495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
18496
        if (lastComparison != 0) {
18497
          return lastComparison;
18498
        }
18499
      }
18500
      return 0;
18501
    }
18502
 
18503
    public _Fields fieldForId(int fieldId) {
18504
      return _Fields.findByThriftId(fieldId);
18505
    }
18506
 
18507
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18508
      org.apache.thrift.protocol.TField field;
18509
      iprot.readStructBegin();
18510
      while (true)
18511
      {
18512
        field = iprot.readFieldBegin();
18513
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18514
          break;
18515
        }
18516
        switch (field.id) {
18517
          case 1: // KEY
18518
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18519
              this.key = iprot.readString();
18520
            } else { 
18521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18522
            }
18523
            break;
18524
          case 2: // VENDOR_ITEM_MAPPING
18525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18526
              this.vendorItemMapping = new VendorItemMapping();
18527
              this.vendorItemMapping.read(iprot);
18528
            } else { 
18529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18530
            }
18531
            break;
18532
          default:
18533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18534
        }
18535
        iprot.readFieldEnd();
18536
      }
18537
      iprot.readStructEnd();
18538
      validate();
18539
    }
18540
 
18541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18542
      validate();
18543
 
18544
      oprot.writeStructBegin(STRUCT_DESC);
18545
      if (this.key != null) {
18546
        oprot.writeFieldBegin(KEY_FIELD_DESC);
18547
        oprot.writeString(this.key);
18548
        oprot.writeFieldEnd();
18549
      }
18550
      if (this.vendorItemMapping != null) {
18551
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
18552
        this.vendorItemMapping.write(oprot);
18553
        oprot.writeFieldEnd();
18554
      }
18555
      oprot.writeFieldStop();
18556
      oprot.writeStructEnd();
18557
    }
18558
 
18559
    @Override
18560
    public String toString() {
18561
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
18562
      boolean first = true;
18563
 
18564
      sb.append("key:");
18565
      if (this.key == null) {
18566
        sb.append("null");
18567
      } else {
18568
        sb.append(this.key);
18569
      }
18570
      first = false;
18571
      if (!first) sb.append(", ");
18572
      sb.append("vendorItemMapping:");
18573
      if (this.vendorItemMapping == null) {
18574
        sb.append("null");
18575
      } else {
18576
        sb.append(this.vendorItemMapping);
18577
      }
18578
      first = false;
18579
      sb.append(")");
18580
      return sb.toString();
18581
    }
18582
 
18583
    public void validate() throws org.apache.thrift.TException {
18584
      // check for required fields
18585
    }
18586
 
18587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18588
      try {
18589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18590
      } catch (org.apache.thrift.TException te) {
18591
        throw new java.io.IOException(te);
18592
      }
18593
    }
18594
 
18595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18596
      try {
18597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18598
      } catch (org.apache.thrift.TException te) {
18599
        throw new java.io.IOException(te);
18600
      }
18601
    }
18602
 
18603
  }
18604
 
18605
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
18606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
18607
 
18608
    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);
18609
 
18610
    private InventoryServiceException cex; // required
18611
 
18612
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18613
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18614
      CEX((short)1, "cex");
18615
 
18616
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18617
 
18618
      static {
18619
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18620
          byName.put(field.getFieldName(), field);
18621
        }
18622
      }
18623
 
18624
      /**
18625
       * Find the _Fields constant that matches fieldId, or null if its not found.
18626
       */
18627
      public static _Fields findByThriftId(int fieldId) {
18628
        switch(fieldId) {
18629
          case 1: // CEX
18630
            return CEX;
18631
          default:
18632
            return null;
18633
        }
18634
      }
18635
 
18636
      /**
18637
       * Find the _Fields constant that matches fieldId, throwing an exception
18638
       * if it is not found.
18639
       */
18640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18641
        _Fields fields = findByThriftId(fieldId);
18642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18643
        return fields;
18644
      }
18645
 
18646
      /**
18647
       * Find the _Fields constant that matches name, or null if its not found.
18648
       */
18649
      public static _Fields findByName(String name) {
18650
        return byName.get(name);
18651
      }
18652
 
18653
      private final short _thriftId;
18654
      private final String _fieldName;
18655
 
18656
      _Fields(short thriftId, String fieldName) {
18657
        _thriftId = thriftId;
18658
        _fieldName = fieldName;
18659
      }
18660
 
18661
      public short getThriftFieldId() {
18662
        return _thriftId;
18663
      }
18664
 
18665
      public String getFieldName() {
18666
        return _fieldName;
18667
      }
18668
    }
18669
 
18670
    // isset id assignments
18671
 
18672
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18673
    static {
18674
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18675
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18676
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18677
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18678
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
18679
    }
18680
 
18681
    public addVendorItemMapping_result() {
18682
    }
18683
 
18684
    public addVendorItemMapping_result(
18685
      InventoryServiceException cex)
18686
    {
18687
      this();
18688
      this.cex = cex;
18689
    }
18690
 
18691
    /**
18692
     * Performs a deep copy on <i>other</i>.
18693
     */
18694
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
18695
      if (other.isSetCex()) {
18696
        this.cex = new InventoryServiceException(other.cex);
18697
      }
18698
    }
18699
 
18700
    public addVendorItemMapping_result deepCopy() {
18701
      return new addVendorItemMapping_result(this);
18702
    }
18703
 
18704
    @Override
18705
    public void clear() {
18706
      this.cex = null;
18707
    }
18708
 
18709
    public InventoryServiceException getCex() {
18710
      return this.cex;
18711
    }
18712
 
18713
    public void setCex(InventoryServiceException cex) {
18714
      this.cex = cex;
18715
    }
18716
 
18717
    public void unsetCex() {
18718
      this.cex = null;
18719
    }
18720
 
18721
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18722
    public boolean isSetCex() {
18723
      return this.cex != null;
18724
    }
18725
 
18726
    public void setCexIsSet(boolean value) {
18727
      if (!value) {
18728
        this.cex = null;
18729
      }
18730
    }
18731
 
18732
    public void setFieldValue(_Fields field, Object value) {
18733
      switch (field) {
18734
      case CEX:
18735
        if (value == null) {
18736
          unsetCex();
18737
        } else {
18738
          setCex((InventoryServiceException)value);
18739
        }
18740
        break;
18741
 
18742
      }
18743
    }
18744
 
18745
    public Object getFieldValue(_Fields field) {
18746
      switch (field) {
18747
      case CEX:
18748
        return getCex();
18749
 
18750
      }
18751
      throw new IllegalStateException();
18752
    }
18753
 
18754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18755
    public boolean isSet(_Fields field) {
18756
      if (field == null) {
18757
        throw new IllegalArgumentException();
18758
      }
18759
 
18760
      switch (field) {
18761
      case CEX:
18762
        return isSetCex();
18763
      }
18764
      throw new IllegalStateException();
18765
    }
18766
 
18767
    @Override
18768
    public boolean equals(Object that) {
18769
      if (that == null)
18770
        return false;
18771
      if (that instanceof addVendorItemMapping_result)
18772
        return this.equals((addVendorItemMapping_result)that);
18773
      return false;
18774
    }
18775
 
18776
    public boolean equals(addVendorItemMapping_result that) {
18777
      if (that == null)
18778
        return false;
18779
 
18780
      boolean this_present_cex = true && this.isSetCex();
18781
      boolean that_present_cex = true && that.isSetCex();
18782
      if (this_present_cex || that_present_cex) {
18783
        if (!(this_present_cex && that_present_cex))
18784
          return false;
18785
        if (!this.cex.equals(that.cex))
18786
          return false;
18787
      }
18788
 
18789
      return true;
18790
    }
18791
 
18792
    @Override
18793
    public int hashCode() {
18794
      return 0;
18795
    }
18796
 
18797
    public int compareTo(addVendorItemMapping_result other) {
18798
      if (!getClass().equals(other.getClass())) {
18799
        return getClass().getName().compareTo(other.getClass().getName());
18800
      }
18801
 
18802
      int lastComparison = 0;
18803
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
18804
 
18805
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18806
      if (lastComparison != 0) {
18807
        return lastComparison;
18808
      }
18809
      if (isSetCex()) {
18810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18811
        if (lastComparison != 0) {
18812
          return lastComparison;
18813
        }
18814
      }
18815
      return 0;
18816
    }
18817
 
18818
    public _Fields fieldForId(int fieldId) {
18819
      return _Fields.findByThriftId(fieldId);
18820
    }
18821
 
18822
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18823
      org.apache.thrift.protocol.TField field;
18824
      iprot.readStructBegin();
18825
      while (true)
18826
      {
18827
        field = iprot.readFieldBegin();
18828
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18829
          break;
18830
        }
18831
        switch (field.id) {
18832
          case 1: // CEX
18833
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18834
              this.cex = new InventoryServiceException();
18835
              this.cex.read(iprot);
18836
            } else { 
18837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18838
            }
18839
            break;
18840
          default:
18841
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18842
        }
18843
        iprot.readFieldEnd();
18844
      }
18845
      iprot.readStructEnd();
18846
      validate();
18847
    }
18848
 
18849
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18850
      oprot.writeStructBegin(STRUCT_DESC);
18851
 
18852
      if (this.isSetCex()) {
18853
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18854
        this.cex.write(oprot);
18855
        oprot.writeFieldEnd();
18856
      }
18857
      oprot.writeFieldStop();
18858
      oprot.writeStructEnd();
18859
    }
18860
 
18861
    @Override
18862
    public String toString() {
18863
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
18864
      boolean first = true;
18865
 
18866
      sb.append("cex:");
18867
      if (this.cex == null) {
18868
        sb.append("null");
18869
      } else {
18870
        sb.append(this.cex);
18871
      }
18872
      first = false;
18873
      sb.append(")");
18874
      return sb.toString();
18875
    }
18876
 
18877
    public void validate() throws org.apache.thrift.TException {
18878
      // check for required fields
18879
    }
18880
 
18881
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18882
      try {
18883
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18884
      } catch (org.apache.thrift.TException te) {
18885
        throw new java.io.IOException(te);
18886
      }
18887
    }
18888
 
18889
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18890
      try {
18891
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18892
      } catch (org.apache.thrift.TException te) {
18893
        throw new java.io.IOException(te);
18894
      }
18895
    }
18896
 
18897
  }
18898
 
18899
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
18900
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
18901
 
18902
    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);
18903
 
18904
    private long itemId; // required
18905
 
18906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18908
      ITEM_ID((short)1, "itemId");
18909
 
18910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18911
 
18912
      static {
18913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18914
          byName.put(field.getFieldName(), field);
18915
        }
18916
      }
18917
 
18918
      /**
18919
       * Find the _Fields constant that matches fieldId, or null if its not found.
18920
       */
18921
      public static _Fields findByThriftId(int fieldId) {
18922
        switch(fieldId) {
18923
          case 1: // ITEM_ID
18924
            return ITEM_ID;
18925
          default:
18926
            return null;
18927
        }
18928
      }
18929
 
18930
      /**
18931
       * Find the _Fields constant that matches fieldId, throwing an exception
18932
       * if it is not found.
18933
       */
18934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18935
        _Fields fields = findByThriftId(fieldId);
18936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18937
        return fields;
18938
      }
18939
 
18940
      /**
18941
       * Find the _Fields constant that matches name, or null if its not found.
18942
       */
18943
      public static _Fields findByName(String name) {
18944
        return byName.get(name);
18945
      }
18946
 
18947
      private final short _thriftId;
18948
      private final String _fieldName;
18949
 
18950
      _Fields(short thriftId, String fieldName) {
18951
        _thriftId = thriftId;
18952
        _fieldName = fieldName;
18953
      }
18954
 
18955
      public short getThriftFieldId() {
18956
        return _thriftId;
18957
      }
18958
 
18959
      public String getFieldName() {
18960
        return _fieldName;
18961
      }
18962
    }
18963
 
18964
    // isset id assignments
18965
    private static final int __ITEMID_ISSET_ID = 0;
18966
    private BitSet __isset_bit_vector = new BitSet(1);
18967
 
18968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18969
    static {
18970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18971
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
18975
    }
18976
 
18977
    public getVendorItemMappings_args() {
18978
    }
18979
 
18980
    public getVendorItemMappings_args(
18981
      long itemId)
18982
    {
18983
      this();
18984
      this.itemId = itemId;
18985
      setItemIdIsSet(true);
18986
    }
18987
 
18988
    /**
18989
     * Performs a deep copy on <i>other</i>.
18990
     */
18991
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
18992
      __isset_bit_vector.clear();
18993
      __isset_bit_vector.or(other.__isset_bit_vector);
18994
      this.itemId = other.itemId;
18995
    }
18996
 
18997
    public getVendorItemMappings_args deepCopy() {
18998
      return new getVendorItemMappings_args(this);
18999
    }
19000
 
19001
    @Override
19002
    public void clear() {
19003
      setItemIdIsSet(false);
19004
      this.itemId = 0;
19005
    }
19006
 
19007
    public long getItemId() {
19008
      return this.itemId;
19009
    }
19010
 
19011
    public void setItemId(long itemId) {
19012
      this.itemId = itemId;
19013
      setItemIdIsSet(true);
19014
    }
19015
 
19016
    public void unsetItemId() {
19017
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19018
    }
19019
 
19020
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19021
    public boolean isSetItemId() {
19022
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19023
    }
19024
 
19025
    public void setItemIdIsSet(boolean value) {
19026
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19027
    }
19028
 
19029
    public void setFieldValue(_Fields field, Object value) {
19030
      switch (field) {
19031
      case ITEM_ID:
19032
        if (value == null) {
19033
          unsetItemId();
19034
        } else {
19035
          setItemId((Long)value);
19036
        }
19037
        break;
19038
 
19039
      }
19040
    }
19041
 
19042
    public Object getFieldValue(_Fields field) {
19043
      switch (field) {
19044
      case ITEM_ID:
19045
        return Long.valueOf(getItemId());
19046
 
19047
      }
19048
      throw new IllegalStateException();
19049
    }
19050
 
19051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19052
    public boolean isSet(_Fields field) {
19053
      if (field == null) {
19054
        throw new IllegalArgumentException();
19055
      }
19056
 
19057
      switch (field) {
19058
      case ITEM_ID:
19059
        return isSetItemId();
19060
      }
19061
      throw new IllegalStateException();
19062
    }
19063
 
19064
    @Override
19065
    public boolean equals(Object that) {
19066
      if (that == null)
19067
        return false;
19068
      if (that instanceof getVendorItemMappings_args)
19069
        return this.equals((getVendorItemMappings_args)that);
19070
      return false;
19071
    }
19072
 
19073
    public boolean equals(getVendorItemMappings_args that) {
19074
      if (that == null)
19075
        return false;
19076
 
19077
      boolean this_present_itemId = true;
19078
      boolean that_present_itemId = true;
19079
      if (this_present_itemId || that_present_itemId) {
19080
        if (!(this_present_itemId && that_present_itemId))
19081
          return false;
19082
        if (this.itemId != that.itemId)
19083
          return false;
19084
      }
19085
 
19086
      return true;
19087
    }
19088
 
19089
    @Override
19090
    public int hashCode() {
19091
      return 0;
19092
    }
19093
 
19094
    public int compareTo(getVendorItemMappings_args other) {
19095
      if (!getClass().equals(other.getClass())) {
19096
        return getClass().getName().compareTo(other.getClass().getName());
19097
      }
19098
 
19099
      int lastComparison = 0;
19100
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
19101
 
19102
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19103
      if (lastComparison != 0) {
19104
        return lastComparison;
19105
      }
19106
      if (isSetItemId()) {
19107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19108
        if (lastComparison != 0) {
19109
          return lastComparison;
19110
        }
19111
      }
19112
      return 0;
19113
    }
19114
 
19115
    public _Fields fieldForId(int fieldId) {
19116
      return _Fields.findByThriftId(fieldId);
19117
    }
19118
 
19119
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19120
      org.apache.thrift.protocol.TField field;
19121
      iprot.readStructBegin();
19122
      while (true)
19123
      {
19124
        field = iprot.readFieldBegin();
19125
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19126
          break;
19127
        }
19128
        switch (field.id) {
19129
          case 1: // ITEM_ID
19130
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19131
              this.itemId = iprot.readI64();
19132
              setItemIdIsSet(true);
19133
            } else { 
19134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19135
            }
19136
            break;
19137
          default:
19138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19139
        }
19140
        iprot.readFieldEnd();
19141
      }
19142
      iprot.readStructEnd();
19143
      validate();
19144
    }
19145
 
19146
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19147
      validate();
19148
 
19149
      oprot.writeStructBegin(STRUCT_DESC);
19150
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19151
      oprot.writeI64(this.itemId);
19152
      oprot.writeFieldEnd();
19153
      oprot.writeFieldStop();
19154
      oprot.writeStructEnd();
19155
    }
19156
 
19157
    @Override
19158
    public String toString() {
19159
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
19160
      boolean first = true;
19161
 
19162
      sb.append("itemId:");
19163
      sb.append(this.itemId);
19164
      first = false;
19165
      sb.append(")");
19166
      return sb.toString();
19167
    }
19168
 
19169
    public void validate() throws org.apache.thrift.TException {
19170
      // check for required fields
19171
    }
19172
 
19173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19174
      try {
19175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19176
      } catch (org.apache.thrift.TException te) {
19177
        throw new java.io.IOException(te);
19178
      }
19179
    }
19180
 
19181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19182
      try {
19183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19184
      } catch (org.apache.thrift.TException te) {
19185
        throw new java.io.IOException(te);
19186
      }
19187
    }
19188
 
19189
  }
19190
 
19191
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
19192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
19193
 
19194
    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);
19195
    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);
19196
 
19197
    private List<VendorItemMapping> success; // required
19198
    private InventoryServiceException cex; // required
19199
 
19200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19202
      SUCCESS((short)0, "success"),
19203
      CEX((short)1, "cex");
19204
 
19205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19206
 
19207
      static {
19208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19209
          byName.put(field.getFieldName(), field);
19210
        }
19211
      }
19212
 
19213
      /**
19214
       * Find the _Fields constant that matches fieldId, or null if its not found.
19215
       */
19216
      public static _Fields findByThriftId(int fieldId) {
19217
        switch(fieldId) {
19218
          case 0: // SUCCESS
19219
            return SUCCESS;
19220
          case 1: // CEX
19221
            return CEX;
19222
          default:
19223
            return null;
19224
        }
19225
      }
19226
 
19227
      /**
19228
       * Find the _Fields constant that matches fieldId, throwing an exception
19229
       * if it is not found.
19230
       */
19231
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19232
        _Fields fields = findByThriftId(fieldId);
19233
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19234
        return fields;
19235
      }
19236
 
19237
      /**
19238
       * Find the _Fields constant that matches name, or null if its not found.
19239
       */
19240
      public static _Fields findByName(String name) {
19241
        return byName.get(name);
19242
      }
19243
 
19244
      private final short _thriftId;
19245
      private final String _fieldName;
19246
 
19247
      _Fields(short thriftId, String fieldName) {
19248
        _thriftId = thriftId;
19249
        _fieldName = fieldName;
19250
      }
19251
 
19252
      public short getThriftFieldId() {
19253
        return _thriftId;
19254
      }
19255
 
19256
      public String getFieldName() {
19257
        return _fieldName;
19258
      }
19259
    }
19260
 
19261
    // isset id assignments
19262
 
19263
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19264
    static {
19265
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19266
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19267
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19268
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
19269
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19271
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19272
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
19273
    }
19274
 
19275
    public getVendorItemMappings_result() {
19276
    }
19277
 
19278
    public getVendorItemMappings_result(
19279
      List<VendorItemMapping> success,
19280
      InventoryServiceException cex)
19281
    {
19282
      this();
19283
      this.success = success;
19284
      this.cex = cex;
19285
    }
19286
 
19287
    /**
19288
     * Performs a deep copy on <i>other</i>.
19289
     */
19290
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
19291
      if (other.isSetSuccess()) {
19292
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
19293
        for (VendorItemMapping other_element : other.success) {
19294
          __this__success.add(new VendorItemMapping(other_element));
19295
        }
19296
        this.success = __this__success;
19297
      }
19298
      if (other.isSetCex()) {
19299
        this.cex = new InventoryServiceException(other.cex);
19300
      }
19301
    }
19302
 
19303
    public getVendorItemMappings_result deepCopy() {
19304
      return new getVendorItemMappings_result(this);
19305
    }
19306
 
19307
    @Override
19308
    public void clear() {
19309
      this.success = null;
19310
      this.cex = null;
19311
    }
19312
 
19313
    public int getSuccessSize() {
19314
      return (this.success == null) ? 0 : this.success.size();
19315
    }
19316
 
19317
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
19318
      return (this.success == null) ? null : this.success.iterator();
19319
    }
19320
 
19321
    public void addToSuccess(VendorItemMapping elem) {
19322
      if (this.success == null) {
19323
        this.success = new ArrayList<VendorItemMapping>();
19324
      }
19325
      this.success.add(elem);
19326
    }
19327
 
19328
    public List<VendorItemMapping> getSuccess() {
19329
      return this.success;
19330
    }
19331
 
19332
    public void setSuccess(List<VendorItemMapping> success) {
19333
      this.success = success;
19334
    }
19335
 
19336
    public void unsetSuccess() {
19337
      this.success = null;
19338
    }
19339
 
19340
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19341
    public boolean isSetSuccess() {
19342
      return this.success != null;
19343
    }
19344
 
19345
    public void setSuccessIsSet(boolean value) {
19346
      if (!value) {
19347
        this.success = null;
19348
      }
19349
    }
19350
 
19351
    public InventoryServiceException getCex() {
19352
      return this.cex;
19353
    }
19354
 
19355
    public void setCex(InventoryServiceException cex) {
19356
      this.cex = cex;
19357
    }
19358
 
19359
    public void unsetCex() {
19360
      this.cex = null;
19361
    }
19362
 
19363
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19364
    public boolean isSetCex() {
19365
      return this.cex != null;
19366
    }
19367
 
19368
    public void setCexIsSet(boolean value) {
19369
      if (!value) {
19370
        this.cex = null;
19371
      }
19372
    }
19373
 
19374
    public void setFieldValue(_Fields field, Object value) {
19375
      switch (field) {
19376
      case SUCCESS:
19377
        if (value == null) {
19378
          unsetSuccess();
19379
        } else {
19380
          setSuccess((List<VendorItemMapping>)value);
19381
        }
19382
        break;
19383
 
19384
      case CEX:
19385
        if (value == null) {
19386
          unsetCex();
19387
        } else {
19388
          setCex((InventoryServiceException)value);
19389
        }
19390
        break;
19391
 
19392
      }
19393
    }
19394
 
19395
    public Object getFieldValue(_Fields field) {
19396
      switch (field) {
19397
      case SUCCESS:
19398
        return getSuccess();
19399
 
19400
      case CEX:
19401
        return getCex();
19402
 
19403
      }
19404
      throw new IllegalStateException();
19405
    }
19406
 
19407
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19408
    public boolean isSet(_Fields field) {
19409
      if (field == null) {
19410
        throw new IllegalArgumentException();
19411
      }
19412
 
19413
      switch (field) {
19414
      case SUCCESS:
19415
        return isSetSuccess();
19416
      case CEX:
19417
        return isSetCex();
19418
      }
19419
      throw new IllegalStateException();
19420
    }
19421
 
19422
    @Override
19423
    public boolean equals(Object that) {
19424
      if (that == null)
19425
        return false;
19426
      if (that instanceof getVendorItemMappings_result)
19427
        return this.equals((getVendorItemMappings_result)that);
19428
      return false;
19429
    }
19430
 
19431
    public boolean equals(getVendorItemMappings_result that) {
19432
      if (that == null)
19433
        return false;
19434
 
19435
      boolean this_present_success = true && this.isSetSuccess();
19436
      boolean that_present_success = true && that.isSetSuccess();
19437
      if (this_present_success || that_present_success) {
19438
        if (!(this_present_success && that_present_success))
19439
          return false;
19440
        if (!this.success.equals(that.success))
19441
          return false;
19442
      }
19443
 
19444
      boolean this_present_cex = true && this.isSetCex();
19445
      boolean that_present_cex = true && that.isSetCex();
19446
      if (this_present_cex || that_present_cex) {
19447
        if (!(this_present_cex && that_present_cex))
19448
          return false;
19449
        if (!this.cex.equals(that.cex))
19450
          return false;
19451
      }
19452
 
19453
      return true;
19454
    }
19455
 
19456
    @Override
19457
    public int hashCode() {
19458
      return 0;
19459
    }
19460
 
19461
    public int compareTo(getVendorItemMappings_result other) {
19462
      if (!getClass().equals(other.getClass())) {
19463
        return getClass().getName().compareTo(other.getClass().getName());
19464
      }
19465
 
19466
      int lastComparison = 0;
19467
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
19468
 
19469
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19470
      if (lastComparison != 0) {
19471
        return lastComparison;
19472
      }
19473
      if (isSetSuccess()) {
19474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19475
        if (lastComparison != 0) {
19476
          return lastComparison;
19477
        }
19478
      }
19479
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19480
      if (lastComparison != 0) {
19481
        return lastComparison;
19482
      }
19483
      if (isSetCex()) {
19484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19485
        if (lastComparison != 0) {
19486
          return lastComparison;
19487
        }
19488
      }
19489
      return 0;
19490
    }
19491
 
19492
    public _Fields fieldForId(int fieldId) {
19493
      return _Fields.findByThriftId(fieldId);
19494
    }
19495
 
19496
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19497
      org.apache.thrift.protocol.TField field;
19498
      iprot.readStructBegin();
19499
      while (true)
19500
      {
19501
        field = iprot.readFieldBegin();
19502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19503
          break;
19504
        }
19505
        switch (field.id) {
19506
          case 0: // SUCCESS
19507
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19508
              {
19509
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
19510
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
19511
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
19512
                {
19513
                  VendorItemMapping _elem42; // required
19514
                  _elem42 = new VendorItemMapping();
19515
                  _elem42.read(iprot);
19516
                  this.success.add(_elem42);
19517
                }
19518
                iprot.readListEnd();
19519
              }
19520
            } else { 
19521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19522
            }
19523
            break;
19524
          case 1: // CEX
19525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19526
              this.cex = new InventoryServiceException();
19527
              this.cex.read(iprot);
19528
            } else { 
19529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19530
            }
19531
            break;
19532
          default:
19533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19534
        }
19535
        iprot.readFieldEnd();
19536
      }
19537
      iprot.readStructEnd();
19538
      validate();
19539
    }
19540
 
19541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19542
      oprot.writeStructBegin(STRUCT_DESC);
19543
 
19544
      if (this.isSetSuccess()) {
19545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19546
        {
19547
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19548
          for (VendorItemMapping _iter43 : this.success)
19549
          {
19550
            _iter43.write(oprot);
19551
          }
19552
          oprot.writeListEnd();
19553
        }
19554
        oprot.writeFieldEnd();
19555
      } else if (this.isSetCex()) {
19556
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19557
        this.cex.write(oprot);
19558
        oprot.writeFieldEnd();
19559
      }
19560
      oprot.writeFieldStop();
19561
      oprot.writeStructEnd();
19562
    }
19563
 
19564
    @Override
19565
    public String toString() {
19566
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
19567
      boolean first = true;
19568
 
19569
      sb.append("success:");
19570
      if (this.success == null) {
19571
        sb.append("null");
19572
      } else {
19573
        sb.append(this.success);
19574
      }
19575
      first = false;
19576
      if (!first) sb.append(", ");
19577
      sb.append("cex:");
19578
      if (this.cex == null) {
19579
        sb.append("null");
19580
      } else {
19581
        sb.append(this.cex);
19582
      }
19583
      first = false;
19584
      sb.append(")");
19585
      return sb.toString();
19586
    }
19587
 
19588
    public void validate() throws org.apache.thrift.TException {
19589
      // check for required fields
19590
    }
19591
 
19592
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19593
      try {
19594
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19595
      } catch (org.apache.thrift.TException te) {
19596
        throw new java.io.IOException(te);
19597
      }
19598
    }
19599
 
19600
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19601
      try {
19602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19603
      } catch (org.apache.thrift.TException te) {
19604
        throw new java.io.IOException(te);
19605
      }
19606
    }
19607
 
19608
  }
19609
 
19610
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
19611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
19612
 
19613
    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);
19614
 
19615
    private long vendorid; // required
19616
 
19617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19619
      VENDORID((short)1, "vendorid");
19620
 
19621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19622
 
19623
      static {
19624
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19625
          byName.put(field.getFieldName(), field);
19626
        }
19627
      }
19628
 
19629
      /**
19630
       * Find the _Fields constant that matches fieldId, or null if its not found.
19631
       */
19632
      public static _Fields findByThriftId(int fieldId) {
19633
        switch(fieldId) {
19634
          case 1: // VENDORID
19635
            return VENDORID;
19636
          default:
19637
            return null;
19638
        }
19639
      }
19640
 
19641
      /**
19642
       * Find the _Fields constant that matches fieldId, throwing an exception
19643
       * if it is not found.
19644
       */
19645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19646
        _Fields fields = findByThriftId(fieldId);
19647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19648
        return fields;
19649
      }
19650
 
19651
      /**
19652
       * Find the _Fields constant that matches name, or null if its not found.
19653
       */
19654
      public static _Fields findByName(String name) {
19655
        return byName.get(name);
19656
      }
19657
 
19658
      private final short _thriftId;
19659
      private final String _fieldName;
19660
 
19661
      _Fields(short thriftId, String fieldName) {
19662
        _thriftId = thriftId;
19663
        _fieldName = fieldName;
19664
      }
19665
 
19666
      public short getThriftFieldId() {
19667
        return _thriftId;
19668
      }
19669
 
19670
      public String getFieldName() {
19671
        return _fieldName;
19672
      }
19673
    }
19674
 
19675
    // isset id assignments
19676
    private static final int __VENDORID_ISSET_ID = 0;
19677
    private BitSet __isset_bit_vector = new BitSet(1);
19678
 
19679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19680
    static {
19681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19682
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
19686
    }
19687
 
19688
    public getPendingOrdersInventory_args() {
19689
    }
19690
 
19691
    public getPendingOrdersInventory_args(
19692
      long vendorid)
19693
    {
19694
      this();
19695
      this.vendorid = vendorid;
19696
      setVendoridIsSet(true);
19697
    }
19698
 
19699
    /**
19700
     * Performs a deep copy on <i>other</i>.
19701
     */
19702
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
19703
      __isset_bit_vector.clear();
19704
      __isset_bit_vector.or(other.__isset_bit_vector);
19705
      this.vendorid = other.vendorid;
19706
    }
19707
 
19708
    public getPendingOrdersInventory_args deepCopy() {
19709
      return new getPendingOrdersInventory_args(this);
19710
    }
19711
 
19712
    @Override
19713
    public void clear() {
19714
      setVendoridIsSet(false);
19715
      this.vendorid = 0;
19716
    }
19717
 
19718
    public long getVendorid() {
19719
      return this.vendorid;
19720
    }
19721
 
19722
    public void setVendorid(long vendorid) {
19723
      this.vendorid = vendorid;
19724
      setVendoridIsSet(true);
19725
    }
19726
 
19727
    public void unsetVendorid() {
19728
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
19729
    }
19730
 
19731
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
19732
    public boolean isSetVendorid() {
19733
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
19734
    }
19735
 
19736
    public void setVendoridIsSet(boolean value) {
19737
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
19738
    }
19739
 
19740
    public void setFieldValue(_Fields field, Object value) {
19741
      switch (field) {
19742
      case VENDORID:
19743
        if (value == null) {
19744
          unsetVendorid();
19745
        } else {
19746
          setVendorid((Long)value);
19747
        }
19748
        break;
19749
 
19750
      }
19751
    }
19752
 
19753
    public Object getFieldValue(_Fields field) {
19754
      switch (field) {
19755
      case VENDORID:
19756
        return Long.valueOf(getVendorid());
19757
 
19758
      }
19759
      throw new IllegalStateException();
19760
    }
19761
 
19762
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19763
    public boolean isSet(_Fields field) {
19764
      if (field == null) {
19765
        throw new IllegalArgumentException();
19766
      }
19767
 
19768
      switch (field) {
19769
      case VENDORID:
19770
        return isSetVendorid();
19771
      }
19772
      throw new IllegalStateException();
19773
    }
19774
 
19775
    @Override
19776
    public boolean equals(Object that) {
19777
      if (that == null)
19778
        return false;
19779
      if (that instanceof getPendingOrdersInventory_args)
19780
        return this.equals((getPendingOrdersInventory_args)that);
19781
      return false;
19782
    }
19783
 
19784
    public boolean equals(getPendingOrdersInventory_args that) {
19785
      if (that == null)
19786
        return false;
19787
 
19788
      boolean this_present_vendorid = true;
19789
      boolean that_present_vendorid = true;
19790
      if (this_present_vendorid || that_present_vendorid) {
19791
        if (!(this_present_vendorid && that_present_vendorid))
19792
          return false;
19793
        if (this.vendorid != that.vendorid)
19794
          return false;
19795
      }
19796
 
19797
      return true;
19798
    }
19799
 
19800
    @Override
19801
    public int hashCode() {
19802
      return 0;
19803
    }
19804
 
19805
    public int compareTo(getPendingOrdersInventory_args other) {
19806
      if (!getClass().equals(other.getClass())) {
19807
        return getClass().getName().compareTo(other.getClass().getName());
19808
      }
19809
 
19810
      int lastComparison = 0;
19811
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
19812
 
19813
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
19814
      if (lastComparison != 0) {
19815
        return lastComparison;
19816
      }
19817
      if (isSetVendorid()) {
19818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
19819
        if (lastComparison != 0) {
19820
          return lastComparison;
19821
        }
19822
      }
19823
      return 0;
19824
    }
19825
 
19826
    public _Fields fieldForId(int fieldId) {
19827
      return _Fields.findByThriftId(fieldId);
19828
    }
19829
 
19830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19831
      org.apache.thrift.protocol.TField field;
19832
      iprot.readStructBegin();
19833
      while (true)
19834
      {
19835
        field = iprot.readFieldBegin();
19836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19837
          break;
19838
        }
19839
        switch (field.id) {
19840
          case 1: // VENDORID
19841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19842
              this.vendorid = iprot.readI64();
19843
              setVendoridIsSet(true);
19844
            } else { 
19845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19846
            }
19847
            break;
19848
          default:
19849
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19850
        }
19851
        iprot.readFieldEnd();
19852
      }
19853
      iprot.readStructEnd();
19854
      validate();
19855
    }
19856
 
19857
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19858
      validate();
19859
 
19860
      oprot.writeStructBegin(STRUCT_DESC);
19861
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
19862
      oprot.writeI64(this.vendorid);
19863
      oprot.writeFieldEnd();
19864
      oprot.writeFieldStop();
19865
      oprot.writeStructEnd();
19866
    }
19867
 
19868
    @Override
19869
    public String toString() {
19870
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
19871
      boolean first = true;
19872
 
19873
      sb.append("vendorid:");
19874
      sb.append(this.vendorid);
19875
      first = false;
19876
      sb.append(")");
19877
      return sb.toString();
19878
    }
19879
 
19880
    public void validate() throws org.apache.thrift.TException {
19881
      // check for required fields
19882
    }
19883
 
19884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19885
      try {
19886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19887
      } catch (org.apache.thrift.TException te) {
19888
        throw new java.io.IOException(te);
19889
      }
19890
    }
19891
 
19892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19893
      try {
19894
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19895
        __isset_bit_vector = new BitSet(1);
19896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19897
      } catch (org.apache.thrift.TException te) {
19898
        throw new java.io.IOException(te);
19899
      }
19900
    }
19901
 
19902
  }
19903
 
19904
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
19905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
19906
 
19907
    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);
19908
 
19909
    private List<AvailableAndReservedStock> success; // required
19910
 
19911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19913
      SUCCESS((short)0, "success");
19914
 
19915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19916
 
19917
      static {
19918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19919
          byName.put(field.getFieldName(), field);
19920
        }
19921
      }
19922
 
19923
      /**
19924
       * Find the _Fields constant that matches fieldId, or null if its not found.
19925
       */
19926
      public static _Fields findByThriftId(int fieldId) {
19927
        switch(fieldId) {
19928
          case 0: // SUCCESS
19929
            return SUCCESS;
19930
          default:
19931
            return null;
19932
        }
19933
      }
19934
 
19935
      /**
19936
       * Find the _Fields constant that matches fieldId, throwing an exception
19937
       * if it is not found.
19938
       */
19939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19940
        _Fields fields = findByThriftId(fieldId);
19941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19942
        return fields;
19943
      }
19944
 
19945
      /**
19946
       * Find the _Fields constant that matches name, or null if its not found.
19947
       */
19948
      public static _Fields findByName(String name) {
19949
        return byName.get(name);
19950
      }
19951
 
19952
      private final short _thriftId;
19953
      private final String _fieldName;
19954
 
19955
      _Fields(short thriftId, String fieldName) {
19956
        _thriftId = thriftId;
19957
        _fieldName = fieldName;
19958
      }
19959
 
19960
      public short getThriftFieldId() {
19961
        return _thriftId;
19962
      }
19963
 
19964
      public String getFieldName() {
19965
        return _fieldName;
19966
      }
19967
    }
19968
 
19969
    // isset id assignments
19970
 
19971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19972
    static {
19973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19974
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19975
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19976
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
19977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
19979
    }
19980
 
19981
    public getPendingOrdersInventory_result() {
19982
    }
19983
 
19984
    public getPendingOrdersInventory_result(
19985
      List<AvailableAndReservedStock> success)
19986
    {
19987
      this();
19988
      this.success = success;
19989
    }
19990
 
19991
    /**
19992
     * Performs a deep copy on <i>other</i>.
19993
     */
19994
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
19995
      if (other.isSetSuccess()) {
19996
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
19997
        for (AvailableAndReservedStock other_element : other.success) {
19998
          __this__success.add(new AvailableAndReservedStock(other_element));
19999
        }
20000
        this.success = __this__success;
20001
      }
20002
    }
20003
 
20004
    public getPendingOrdersInventory_result deepCopy() {
20005
      return new getPendingOrdersInventory_result(this);
20006
    }
20007
 
20008
    @Override
20009
    public void clear() {
20010
      this.success = null;
20011
    }
20012
 
20013
    public int getSuccessSize() {
20014
      return (this.success == null) ? 0 : this.success.size();
20015
    }
20016
 
20017
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
20018
      return (this.success == null) ? null : this.success.iterator();
20019
    }
20020
 
20021
    public void addToSuccess(AvailableAndReservedStock elem) {
20022
      if (this.success == null) {
20023
        this.success = new ArrayList<AvailableAndReservedStock>();
20024
      }
20025
      this.success.add(elem);
20026
    }
20027
 
20028
    public List<AvailableAndReservedStock> getSuccess() {
20029
      return this.success;
20030
    }
20031
 
20032
    public void setSuccess(List<AvailableAndReservedStock> success) {
20033
      this.success = success;
20034
    }
20035
 
20036
    public void unsetSuccess() {
20037
      this.success = null;
20038
    }
20039
 
20040
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20041
    public boolean isSetSuccess() {
20042
      return this.success != null;
20043
    }
20044
 
20045
    public void setSuccessIsSet(boolean value) {
20046
      if (!value) {
20047
        this.success = null;
20048
      }
20049
    }
20050
 
20051
    public void setFieldValue(_Fields field, Object value) {
20052
      switch (field) {
20053
      case SUCCESS:
20054
        if (value == null) {
20055
          unsetSuccess();
20056
        } else {
20057
          setSuccess((List<AvailableAndReservedStock>)value);
20058
        }
20059
        break;
20060
 
20061
      }
20062
    }
20063
 
20064
    public Object getFieldValue(_Fields field) {
20065
      switch (field) {
20066
      case SUCCESS:
20067
        return getSuccess();
20068
 
20069
      }
20070
      throw new IllegalStateException();
20071
    }
20072
 
20073
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20074
    public boolean isSet(_Fields field) {
20075
      if (field == null) {
20076
        throw new IllegalArgumentException();
20077
      }
20078
 
20079
      switch (field) {
20080
      case SUCCESS:
20081
        return isSetSuccess();
20082
      }
20083
      throw new IllegalStateException();
20084
    }
20085
 
20086
    @Override
20087
    public boolean equals(Object that) {
20088
      if (that == null)
20089
        return false;
20090
      if (that instanceof getPendingOrdersInventory_result)
20091
        return this.equals((getPendingOrdersInventory_result)that);
20092
      return false;
20093
    }
20094
 
20095
    public boolean equals(getPendingOrdersInventory_result that) {
20096
      if (that == null)
20097
        return false;
20098
 
20099
      boolean this_present_success = true && this.isSetSuccess();
20100
      boolean that_present_success = true && that.isSetSuccess();
20101
      if (this_present_success || that_present_success) {
20102
        if (!(this_present_success && that_present_success))
20103
          return false;
20104
        if (!this.success.equals(that.success))
20105
          return false;
20106
      }
20107
 
20108
      return true;
20109
    }
20110
 
20111
    @Override
20112
    public int hashCode() {
20113
      return 0;
20114
    }
20115
 
20116
    public int compareTo(getPendingOrdersInventory_result other) {
20117
      if (!getClass().equals(other.getClass())) {
20118
        return getClass().getName().compareTo(other.getClass().getName());
20119
      }
20120
 
20121
      int lastComparison = 0;
20122
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
20123
 
20124
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20125
      if (lastComparison != 0) {
20126
        return lastComparison;
20127
      }
20128
      if (isSetSuccess()) {
20129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20130
        if (lastComparison != 0) {
20131
          return lastComparison;
20132
        }
20133
      }
20134
      return 0;
20135
    }
20136
 
20137
    public _Fields fieldForId(int fieldId) {
20138
      return _Fields.findByThriftId(fieldId);
20139
    }
20140
 
20141
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20142
      org.apache.thrift.protocol.TField field;
20143
      iprot.readStructBegin();
20144
      while (true)
20145
      {
20146
        field = iprot.readFieldBegin();
20147
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20148
          break;
20149
        }
20150
        switch (field.id) {
20151
          case 0: // SUCCESS
20152
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20153
              {
20154
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
20155
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
20156
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20157
                {
20158
                  AvailableAndReservedStock _elem46; // required
20159
                  _elem46 = new AvailableAndReservedStock();
20160
                  _elem46.read(iprot);
20161
                  this.success.add(_elem46);
20162
                }
20163
                iprot.readListEnd();
20164
              }
20165
            } else { 
20166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20167
            }
20168
            break;
20169
          default:
20170
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20171
        }
20172
        iprot.readFieldEnd();
20173
      }
20174
      iprot.readStructEnd();
20175
      validate();
20176
    }
20177
 
20178
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20179
      oprot.writeStructBegin(STRUCT_DESC);
20180
 
20181
      if (this.isSetSuccess()) {
20182
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20183
        {
20184
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20185
          for (AvailableAndReservedStock _iter47 : this.success)
20186
          {
20187
            _iter47.write(oprot);
20188
          }
20189
          oprot.writeListEnd();
20190
        }
20191
        oprot.writeFieldEnd();
20192
      }
20193
      oprot.writeFieldStop();
20194
      oprot.writeStructEnd();
20195
    }
20196
 
20197
    @Override
20198
    public String toString() {
20199
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
20200
      boolean first = true;
20201
 
20202
      sb.append("success:");
20203
      if (this.success == null) {
20204
        sb.append("null");
20205
      } else {
20206
        sb.append(this.success);
20207
      }
20208
      first = false;
20209
      sb.append(")");
20210
      return sb.toString();
20211
    }
20212
 
20213
    public void validate() throws org.apache.thrift.TException {
20214
      // check for required fields
20215
    }
20216
 
20217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20218
      try {
20219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20220
      } catch (org.apache.thrift.TException te) {
20221
        throw new java.io.IOException(te);
20222
      }
20223
    }
20224
 
20225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20226
      try {
20227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20228
      } catch (org.apache.thrift.TException te) {
20229
        throw new java.io.IOException(te);
20230
      }
20231
    }
20232
 
20233
  }
20234
 
20235
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
20236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
20237
 
20238
    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);
20239
    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);
20240
    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);
20241
    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);
20242
    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);
20243
 
20244
    private WarehouseType warehouseType; // required
20245
    private InventoryType inventoryType; // required
20246
    private long vendorId; // required
20247
    private long billingWarehouseId; // required
20248
    private long shippingWarehouseId; // required
20249
 
20250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20252
      /**
20253
       * 
20254
       * @see WarehouseType
20255
       */
20256
      WAREHOUSE_TYPE((short)1, "warehouseType"),
20257
      /**
20258
       * 
20259
       * @see InventoryType
20260
       */
20261
      INVENTORY_TYPE((short)2, "inventoryType"),
20262
      VENDOR_ID((short)3, "vendorId"),
20263
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
20264
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
20265
 
20266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20267
 
20268
      static {
20269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20270
          byName.put(field.getFieldName(), field);
20271
        }
20272
      }
20273
 
20274
      /**
20275
       * Find the _Fields constant that matches fieldId, or null if its not found.
20276
       */
20277
      public static _Fields findByThriftId(int fieldId) {
20278
        switch(fieldId) {
20279
          case 1: // WAREHOUSE_TYPE
20280
            return WAREHOUSE_TYPE;
20281
          case 2: // INVENTORY_TYPE
20282
            return INVENTORY_TYPE;
20283
          case 3: // VENDOR_ID
20284
            return VENDOR_ID;
20285
          case 4: // BILLING_WAREHOUSE_ID
20286
            return BILLING_WAREHOUSE_ID;
20287
          case 5: // SHIPPING_WAREHOUSE_ID
20288
            return SHIPPING_WAREHOUSE_ID;
20289
          default:
20290
            return null;
20291
        }
20292
      }
20293
 
20294
      /**
20295
       * Find the _Fields constant that matches fieldId, throwing an exception
20296
       * if it is not found.
20297
       */
20298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20299
        _Fields fields = findByThriftId(fieldId);
20300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20301
        return fields;
20302
      }
20303
 
20304
      /**
20305
       * Find the _Fields constant that matches name, or null if its not found.
20306
       */
20307
      public static _Fields findByName(String name) {
20308
        return byName.get(name);
20309
      }
20310
 
20311
      private final short _thriftId;
20312
      private final String _fieldName;
20313
 
20314
      _Fields(short thriftId, String fieldName) {
20315
        _thriftId = thriftId;
20316
        _fieldName = fieldName;
20317
      }
20318
 
20319
      public short getThriftFieldId() {
20320
        return _thriftId;
20321
      }
20322
 
20323
      public String getFieldName() {
20324
        return _fieldName;
20325
      }
20326
    }
20327
 
20328
    // isset id assignments
20329
    private static final int __VENDORID_ISSET_ID = 0;
20330
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
20331
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
20332
    private BitSet __isset_bit_vector = new BitSet(3);
20333
 
20334
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20335
    static {
20336
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20337
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20338
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
20339
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20340
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
20341
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20343
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20344
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20345
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20346
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20347
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20348
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
20349
    }
20350
 
20351
    public getWarehouses_args() {
20352
    }
20353
 
20354
    public getWarehouses_args(
20355
      WarehouseType warehouseType,
20356
      InventoryType inventoryType,
20357
      long vendorId,
20358
      long billingWarehouseId,
20359
      long shippingWarehouseId)
20360
    {
20361
      this();
20362
      this.warehouseType = warehouseType;
20363
      this.inventoryType = inventoryType;
20364
      this.vendorId = vendorId;
20365
      setVendorIdIsSet(true);
20366
      this.billingWarehouseId = billingWarehouseId;
20367
      setBillingWarehouseIdIsSet(true);
20368
      this.shippingWarehouseId = shippingWarehouseId;
20369
      setShippingWarehouseIdIsSet(true);
20370
    }
20371
 
20372
    /**
20373
     * Performs a deep copy on <i>other</i>.
20374
     */
20375
    public getWarehouses_args(getWarehouses_args other) {
20376
      __isset_bit_vector.clear();
20377
      __isset_bit_vector.or(other.__isset_bit_vector);
20378
      if (other.isSetWarehouseType()) {
20379
        this.warehouseType = other.warehouseType;
20380
      }
20381
      if (other.isSetInventoryType()) {
20382
        this.inventoryType = other.inventoryType;
20383
      }
20384
      this.vendorId = other.vendorId;
20385
      this.billingWarehouseId = other.billingWarehouseId;
20386
      this.shippingWarehouseId = other.shippingWarehouseId;
20387
    }
20388
 
20389
    public getWarehouses_args deepCopy() {
20390
      return new getWarehouses_args(this);
20391
    }
20392
 
20393
    @Override
20394
    public void clear() {
20395
      this.warehouseType = null;
20396
      this.inventoryType = null;
20397
      setVendorIdIsSet(false);
20398
      this.vendorId = 0;
20399
      setBillingWarehouseIdIsSet(false);
20400
      this.billingWarehouseId = 0;
20401
      setShippingWarehouseIdIsSet(false);
20402
      this.shippingWarehouseId = 0;
20403
    }
20404
 
20405
    /**
20406
     * 
20407
     * @see WarehouseType
20408
     */
20409
    public WarehouseType getWarehouseType() {
20410
      return this.warehouseType;
20411
    }
20412
 
20413
    /**
20414
     * 
20415
     * @see WarehouseType
20416
     */
20417
    public void setWarehouseType(WarehouseType warehouseType) {
20418
      this.warehouseType = warehouseType;
20419
    }
20420
 
20421
    public void unsetWarehouseType() {
20422
      this.warehouseType = null;
20423
    }
20424
 
20425
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
20426
    public boolean isSetWarehouseType() {
20427
      return this.warehouseType != null;
20428
    }
20429
 
20430
    public void setWarehouseTypeIsSet(boolean value) {
20431
      if (!value) {
20432
        this.warehouseType = null;
20433
      }
20434
    }
20435
 
20436
    /**
20437
     * 
20438
     * @see InventoryType
20439
     */
20440
    public InventoryType getInventoryType() {
20441
      return this.inventoryType;
20442
    }
20443
 
20444
    /**
20445
     * 
20446
     * @see InventoryType
20447
     */
20448
    public void setInventoryType(InventoryType inventoryType) {
20449
      this.inventoryType = inventoryType;
20450
    }
20451
 
20452
    public void unsetInventoryType() {
20453
      this.inventoryType = null;
20454
    }
20455
 
20456
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
20457
    public boolean isSetInventoryType() {
20458
      return this.inventoryType != null;
20459
    }
20460
 
20461
    public void setInventoryTypeIsSet(boolean value) {
20462
      if (!value) {
20463
        this.inventoryType = null;
20464
      }
20465
    }
20466
 
20467
    public long getVendorId() {
20468
      return this.vendorId;
20469
    }
20470
 
20471
    public void setVendorId(long vendorId) {
20472
      this.vendorId = vendorId;
20473
      setVendorIdIsSet(true);
20474
    }
20475
 
20476
    public void unsetVendorId() {
20477
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20478
    }
20479
 
20480
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
20481
    public boolean isSetVendorId() {
20482
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20483
    }
20484
 
20485
    public void setVendorIdIsSet(boolean value) {
20486
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20487
    }
20488
 
20489
    public long getBillingWarehouseId() {
20490
      return this.billingWarehouseId;
20491
    }
20492
 
20493
    public void setBillingWarehouseId(long billingWarehouseId) {
20494
      this.billingWarehouseId = billingWarehouseId;
20495
      setBillingWarehouseIdIsSet(true);
20496
    }
20497
 
20498
    public void unsetBillingWarehouseId() {
20499
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
20500
    }
20501
 
20502
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
20503
    public boolean isSetBillingWarehouseId() {
20504
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
20505
    }
20506
 
20507
    public void setBillingWarehouseIdIsSet(boolean value) {
20508
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
20509
    }
20510
 
20511
    public long getShippingWarehouseId() {
20512
      return this.shippingWarehouseId;
20513
    }
20514
 
20515
    public void setShippingWarehouseId(long shippingWarehouseId) {
20516
      this.shippingWarehouseId = shippingWarehouseId;
20517
      setShippingWarehouseIdIsSet(true);
20518
    }
20519
 
20520
    public void unsetShippingWarehouseId() {
20521
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
20522
    }
20523
 
20524
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
20525
    public boolean isSetShippingWarehouseId() {
20526
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
20527
    }
20528
 
20529
    public void setShippingWarehouseIdIsSet(boolean value) {
20530
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
20531
    }
20532
 
20533
    public void setFieldValue(_Fields field, Object value) {
20534
      switch (field) {
20535
      case WAREHOUSE_TYPE:
20536
        if (value == null) {
20537
          unsetWarehouseType();
20538
        } else {
20539
          setWarehouseType((WarehouseType)value);
20540
        }
20541
        break;
20542
 
20543
      case INVENTORY_TYPE:
20544
        if (value == null) {
20545
          unsetInventoryType();
20546
        } else {
20547
          setInventoryType((InventoryType)value);
20548
        }
20549
        break;
20550
 
20551
      case VENDOR_ID:
20552
        if (value == null) {
20553
          unsetVendorId();
20554
        } else {
20555
          setVendorId((Long)value);
20556
        }
20557
        break;
20558
 
20559
      case BILLING_WAREHOUSE_ID:
20560
        if (value == null) {
20561
          unsetBillingWarehouseId();
20562
        } else {
20563
          setBillingWarehouseId((Long)value);
20564
        }
20565
        break;
20566
 
20567
      case SHIPPING_WAREHOUSE_ID:
20568
        if (value == null) {
20569
          unsetShippingWarehouseId();
20570
        } else {
20571
          setShippingWarehouseId((Long)value);
20572
        }
20573
        break;
20574
 
20575
      }
20576
    }
20577
 
20578
    public Object getFieldValue(_Fields field) {
20579
      switch (field) {
20580
      case WAREHOUSE_TYPE:
20581
        return getWarehouseType();
20582
 
20583
      case INVENTORY_TYPE:
20584
        return getInventoryType();
20585
 
20586
      case VENDOR_ID:
20587
        return Long.valueOf(getVendorId());
20588
 
20589
      case BILLING_WAREHOUSE_ID:
20590
        return Long.valueOf(getBillingWarehouseId());
20591
 
20592
      case SHIPPING_WAREHOUSE_ID:
20593
        return Long.valueOf(getShippingWarehouseId());
20594
 
20595
      }
20596
      throw new IllegalStateException();
20597
    }
20598
 
20599
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20600
    public boolean isSet(_Fields field) {
20601
      if (field == null) {
20602
        throw new IllegalArgumentException();
20603
      }
20604
 
20605
      switch (field) {
20606
      case WAREHOUSE_TYPE:
20607
        return isSetWarehouseType();
20608
      case INVENTORY_TYPE:
20609
        return isSetInventoryType();
20610
      case VENDOR_ID:
20611
        return isSetVendorId();
20612
      case BILLING_WAREHOUSE_ID:
20613
        return isSetBillingWarehouseId();
20614
      case SHIPPING_WAREHOUSE_ID:
20615
        return isSetShippingWarehouseId();
20616
      }
20617
      throw new IllegalStateException();
20618
    }
20619
 
20620
    @Override
20621
    public boolean equals(Object that) {
20622
      if (that == null)
20623
        return false;
20624
      if (that instanceof getWarehouses_args)
20625
        return this.equals((getWarehouses_args)that);
20626
      return false;
20627
    }
20628
 
20629
    public boolean equals(getWarehouses_args that) {
20630
      if (that == null)
20631
        return false;
20632
 
20633
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
20634
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
20635
      if (this_present_warehouseType || that_present_warehouseType) {
20636
        if (!(this_present_warehouseType && that_present_warehouseType))
20637
          return false;
20638
        if (!this.warehouseType.equals(that.warehouseType))
20639
          return false;
20640
      }
20641
 
20642
      boolean this_present_inventoryType = true && this.isSetInventoryType();
20643
      boolean that_present_inventoryType = true && that.isSetInventoryType();
20644
      if (this_present_inventoryType || that_present_inventoryType) {
20645
        if (!(this_present_inventoryType && that_present_inventoryType))
20646
          return false;
20647
        if (!this.inventoryType.equals(that.inventoryType))
20648
          return false;
20649
      }
20650
 
20651
      boolean this_present_vendorId = true;
20652
      boolean that_present_vendorId = true;
20653
      if (this_present_vendorId || that_present_vendorId) {
20654
        if (!(this_present_vendorId && that_present_vendorId))
20655
          return false;
20656
        if (this.vendorId != that.vendorId)
20657
          return false;
20658
      }
20659
 
20660
      boolean this_present_billingWarehouseId = true;
20661
      boolean that_present_billingWarehouseId = true;
20662
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
20663
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
20664
          return false;
20665
        if (this.billingWarehouseId != that.billingWarehouseId)
20666
          return false;
20667
      }
20668
 
20669
      boolean this_present_shippingWarehouseId = true;
20670
      boolean that_present_shippingWarehouseId = true;
20671
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
20672
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
20673
          return false;
20674
        if (this.shippingWarehouseId != that.shippingWarehouseId)
20675
          return false;
20676
      }
20677
 
20678
      return true;
20679
    }
20680
 
20681
    @Override
20682
    public int hashCode() {
20683
      return 0;
20684
    }
20685
 
20686
    public int compareTo(getWarehouses_args other) {
20687
      if (!getClass().equals(other.getClass())) {
20688
        return getClass().getName().compareTo(other.getClass().getName());
20689
      }
20690
 
20691
      int lastComparison = 0;
20692
      getWarehouses_args typedOther = (getWarehouses_args)other;
20693
 
20694
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
20695
      if (lastComparison != 0) {
20696
        return lastComparison;
20697
      }
20698
      if (isSetWarehouseType()) {
20699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
20700
        if (lastComparison != 0) {
20701
          return lastComparison;
20702
        }
20703
      }
20704
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
20705
      if (lastComparison != 0) {
20706
        return lastComparison;
20707
      }
20708
      if (isSetInventoryType()) {
20709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
20710
        if (lastComparison != 0) {
20711
          return lastComparison;
20712
        }
20713
      }
20714
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
20715
      if (lastComparison != 0) {
20716
        return lastComparison;
20717
      }
20718
      if (isSetVendorId()) {
20719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
20720
        if (lastComparison != 0) {
20721
          return lastComparison;
20722
        }
20723
      }
20724
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
20725
      if (lastComparison != 0) {
20726
        return lastComparison;
20727
      }
20728
      if (isSetBillingWarehouseId()) {
20729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
20730
        if (lastComparison != 0) {
20731
          return lastComparison;
20732
        }
20733
      }
20734
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
20735
      if (lastComparison != 0) {
20736
        return lastComparison;
20737
      }
20738
      if (isSetShippingWarehouseId()) {
20739
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
20740
        if (lastComparison != 0) {
20741
          return lastComparison;
20742
        }
20743
      }
20744
      return 0;
20745
    }
20746
 
20747
    public _Fields fieldForId(int fieldId) {
20748
      return _Fields.findByThriftId(fieldId);
20749
    }
20750
 
20751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20752
      org.apache.thrift.protocol.TField field;
20753
      iprot.readStructBegin();
20754
      while (true)
20755
      {
20756
        field = iprot.readFieldBegin();
20757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20758
          break;
20759
        }
20760
        switch (field.id) {
20761
          case 1: // WAREHOUSE_TYPE
20762
            if (field.type == org.apache.thrift.protocol.TType.I32) {
20763
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
20764
            } else { 
20765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20766
            }
20767
            break;
20768
          case 2: // INVENTORY_TYPE
20769
            if (field.type == org.apache.thrift.protocol.TType.I32) {
20770
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
20771
            } else { 
20772
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20773
            }
20774
            break;
20775
          case 3: // VENDOR_ID
20776
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20777
              this.vendorId = iprot.readI64();
20778
              setVendorIdIsSet(true);
20779
            } else { 
20780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20781
            }
20782
            break;
20783
          case 4: // BILLING_WAREHOUSE_ID
20784
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20785
              this.billingWarehouseId = iprot.readI64();
20786
              setBillingWarehouseIdIsSet(true);
20787
            } else { 
20788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20789
            }
20790
            break;
20791
          case 5: // SHIPPING_WAREHOUSE_ID
20792
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20793
              this.shippingWarehouseId = iprot.readI64();
20794
              setShippingWarehouseIdIsSet(true);
20795
            } else { 
20796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20797
            }
20798
            break;
20799
          default:
20800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20801
        }
20802
        iprot.readFieldEnd();
20803
      }
20804
      iprot.readStructEnd();
20805
      validate();
20806
    }
20807
 
20808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20809
      validate();
20810
 
20811
      oprot.writeStructBegin(STRUCT_DESC);
20812
      if (this.warehouseType != null) {
20813
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
20814
        oprot.writeI32(this.warehouseType.getValue());
20815
        oprot.writeFieldEnd();
20816
      }
20817
      if (this.inventoryType != null) {
20818
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
20819
        oprot.writeI32(this.inventoryType.getValue());
20820
        oprot.writeFieldEnd();
20821
      }
20822
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
20823
      oprot.writeI64(this.vendorId);
20824
      oprot.writeFieldEnd();
20825
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
20826
      oprot.writeI64(this.billingWarehouseId);
20827
      oprot.writeFieldEnd();
20828
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
20829
      oprot.writeI64(this.shippingWarehouseId);
20830
      oprot.writeFieldEnd();
20831
      oprot.writeFieldStop();
20832
      oprot.writeStructEnd();
20833
    }
20834
 
20835
    @Override
20836
    public String toString() {
20837
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
20838
      boolean first = true;
20839
 
20840
      sb.append("warehouseType:");
20841
      if (this.warehouseType == null) {
20842
        sb.append("null");
20843
      } else {
20844
        sb.append(this.warehouseType);
20845
      }
20846
      first = false;
20847
      if (!first) sb.append(", ");
20848
      sb.append("inventoryType:");
20849
      if (this.inventoryType == null) {
20850
        sb.append("null");
20851
      } else {
20852
        sb.append(this.inventoryType);
20853
      }
20854
      first = false;
20855
      if (!first) sb.append(", ");
20856
      sb.append("vendorId:");
20857
      sb.append(this.vendorId);
20858
      first = false;
20859
      if (!first) sb.append(", ");
20860
      sb.append("billingWarehouseId:");
20861
      sb.append(this.billingWarehouseId);
20862
      first = false;
20863
      if (!first) sb.append(", ");
20864
      sb.append("shippingWarehouseId:");
20865
      sb.append(this.shippingWarehouseId);
20866
      first = false;
20867
      sb.append(")");
20868
      return sb.toString();
20869
    }
20870
 
20871
    public void validate() throws org.apache.thrift.TException {
20872
      // check for required fields
20873
    }
20874
 
20875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20876
      try {
20877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20878
      } catch (org.apache.thrift.TException te) {
20879
        throw new java.io.IOException(te);
20880
      }
20881
    }
20882
 
20883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20884
      try {
20885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20886
      } catch (org.apache.thrift.TException te) {
20887
        throw new java.io.IOException(te);
20888
      }
20889
    }
20890
 
20891
  }
20892
 
20893
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
20894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
20895
 
20896
    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);
20897
 
20898
    private List<Warehouse> success; // required
20899
 
20900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20902
      SUCCESS((short)0, "success");
20903
 
20904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20905
 
20906
      static {
20907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20908
          byName.put(field.getFieldName(), field);
20909
        }
20910
      }
20911
 
20912
      /**
20913
       * Find the _Fields constant that matches fieldId, or null if its not found.
20914
       */
20915
      public static _Fields findByThriftId(int fieldId) {
20916
        switch(fieldId) {
20917
          case 0: // SUCCESS
20918
            return SUCCESS;
20919
          default:
20920
            return null;
20921
        }
20922
      }
20923
 
20924
      /**
20925
       * Find the _Fields constant that matches fieldId, throwing an exception
20926
       * if it is not found.
20927
       */
20928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20929
        _Fields fields = findByThriftId(fieldId);
20930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20931
        return fields;
20932
      }
20933
 
20934
      /**
20935
       * Find the _Fields constant that matches name, or null if its not found.
20936
       */
20937
      public static _Fields findByName(String name) {
20938
        return byName.get(name);
20939
      }
20940
 
20941
      private final short _thriftId;
20942
      private final String _fieldName;
20943
 
20944
      _Fields(short thriftId, String fieldName) {
20945
        _thriftId = thriftId;
20946
        _fieldName = fieldName;
20947
      }
20948
 
20949
      public short getThriftFieldId() {
20950
        return _thriftId;
20951
      }
20952
 
20953
      public String getFieldName() {
20954
        return _fieldName;
20955
      }
20956
    }
20957
 
20958
    // isset id assignments
20959
 
20960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20961
    static {
20962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20963
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20964
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20965
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
20966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
20968
    }
20969
 
20970
    public getWarehouses_result() {
20971
    }
20972
 
20973
    public getWarehouses_result(
20974
      List<Warehouse> success)
20975
    {
20976
      this();
20977
      this.success = success;
20978
    }
20979
 
20980
    /**
20981
     * Performs a deep copy on <i>other</i>.
20982
     */
20983
    public getWarehouses_result(getWarehouses_result other) {
20984
      if (other.isSetSuccess()) {
20985
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
20986
        for (Warehouse other_element : other.success) {
20987
          __this__success.add(new Warehouse(other_element));
20988
        }
20989
        this.success = __this__success;
20990
      }
20991
    }
20992
 
20993
    public getWarehouses_result deepCopy() {
20994
      return new getWarehouses_result(this);
20995
    }
20996
 
20997
    @Override
20998
    public void clear() {
20999
      this.success = null;
21000
    }
21001
 
21002
    public int getSuccessSize() {
21003
      return (this.success == null) ? 0 : this.success.size();
21004
    }
21005
 
21006
    public java.util.Iterator<Warehouse> getSuccessIterator() {
21007
      return (this.success == null) ? null : this.success.iterator();
21008
    }
21009
 
21010
    public void addToSuccess(Warehouse elem) {
21011
      if (this.success == null) {
21012
        this.success = new ArrayList<Warehouse>();
21013
      }
21014
      this.success.add(elem);
21015
    }
21016
 
21017
    public List<Warehouse> getSuccess() {
21018
      return this.success;
21019
    }
21020
 
21021
    public void setSuccess(List<Warehouse> success) {
21022
      this.success = success;
21023
    }
21024
 
21025
    public void unsetSuccess() {
21026
      this.success = null;
21027
    }
21028
 
21029
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21030
    public boolean isSetSuccess() {
21031
      return this.success != null;
21032
    }
21033
 
21034
    public void setSuccessIsSet(boolean value) {
21035
      if (!value) {
21036
        this.success = null;
21037
      }
21038
    }
21039
 
21040
    public void setFieldValue(_Fields field, Object value) {
21041
      switch (field) {
21042
      case SUCCESS:
21043
        if (value == null) {
21044
          unsetSuccess();
21045
        } else {
21046
          setSuccess((List<Warehouse>)value);
21047
        }
21048
        break;
21049
 
21050
      }
21051
    }
21052
 
21053
    public Object getFieldValue(_Fields field) {
21054
      switch (field) {
21055
      case SUCCESS:
21056
        return getSuccess();
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 SUCCESS:
21070
        return isSetSuccess();
21071
      }
21072
      throw new IllegalStateException();
21073
    }
21074
 
21075
    @Override
21076
    public boolean equals(Object that) {
21077
      if (that == null)
21078
        return false;
21079
      if (that instanceof getWarehouses_result)
21080
        return this.equals((getWarehouses_result)that);
21081
      return false;
21082
    }
21083
 
21084
    public boolean equals(getWarehouses_result that) {
21085
      if (that == null)
21086
        return false;
21087
 
21088
      boolean this_present_success = true && this.isSetSuccess();
21089
      boolean that_present_success = true && that.isSetSuccess();
21090
      if (this_present_success || that_present_success) {
21091
        if (!(this_present_success && that_present_success))
21092
          return false;
21093
        if (!this.success.equals(that.success))
21094
          return false;
21095
      }
21096
 
21097
      return true;
21098
    }
21099
 
21100
    @Override
21101
    public int hashCode() {
21102
      return 0;
21103
    }
21104
 
21105
    public int compareTo(getWarehouses_result other) {
21106
      if (!getClass().equals(other.getClass())) {
21107
        return getClass().getName().compareTo(other.getClass().getName());
21108
      }
21109
 
21110
      int lastComparison = 0;
21111
      getWarehouses_result typedOther = (getWarehouses_result)other;
21112
 
21113
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21114
      if (lastComparison != 0) {
21115
        return lastComparison;
21116
      }
21117
      if (isSetSuccess()) {
21118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21119
        if (lastComparison != 0) {
21120
          return lastComparison;
21121
        }
21122
      }
21123
      return 0;
21124
    }
21125
 
21126
    public _Fields fieldForId(int fieldId) {
21127
      return _Fields.findByThriftId(fieldId);
21128
    }
21129
 
21130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21131
      org.apache.thrift.protocol.TField field;
21132
      iprot.readStructBegin();
21133
      while (true)
21134
      {
21135
        field = iprot.readFieldBegin();
21136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21137
          break;
21138
        }
21139
        switch (field.id) {
21140
          case 0: // SUCCESS
21141
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21142
              {
21143
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21144
                this.success = new ArrayList<Warehouse>(_list48.size);
21145
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21146
                {
21147
                  Warehouse _elem50; // required
21148
                  _elem50 = new Warehouse();
21149
                  _elem50.read(iprot);
21150
                  this.success.add(_elem50);
21151
                }
21152
                iprot.readListEnd();
21153
              }
21154
            } else { 
21155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21156
            }
21157
            break;
21158
          default:
21159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21160
        }
21161
        iprot.readFieldEnd();
21162
      }
21163
      iprot.readStructEnd();
21164
      validate();
21165
    }
21166
 
21167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21168
      oprot.writeStructBegin(STRUCT_DESC);
21169
 
21170
      if (this.isSetSuccess()) {
21171
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21172
        {
21173
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21174
          for (Warehouse _iter51 : this.success)
21175
          {
21176
            _iter51.write(oprot);
21177
          }
21178
          oprot.writeListEnd();
21179
        }
21180
        oprot.writeFieldEnd();
21181
      }
21182
      oprot.writeFieldStop();
21183
      oprot.writeStructEnd();
21184
    }
21185
 
21186
    @Override
21187
    public String toString() {
21188
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
21189
      boolean first = true;
21190
 
21191
      sb.append("success:");
21192
      if (this.success == null) {
21193
        sb.append("null");
21194
      } else {
21195
        sb.append(this.success);
21196
      }
21197
      first = false;
21198
      sb.append(")");
21199
      return sb.toString();
21200
    }
21201
 
21202
    public void validate() throws org.apache.thrift.TException {
21203
      // check for required fields
21204
    }
21205
 
21206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21207
      try {
21208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21209
      } catch (org.apache.thrift.TException te) {
21210
        throw new java.io.IOException(te);
21211
      }
21212
    }
21213
 
21214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21215
      try {
21216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21217
      } catch (org.apache.thrift.TException te) {
21218
        throw new java.io.IOException(te);
21219
      }
21220
    }
21221
 
21222
  }
21223
 
21224
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
21225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
21226
 
21227
    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);
21228
    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);
21229
    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);
21230
    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);
21231
 
21232
    private String itemKey; // required
21233
    private long vendorId; // required
21234
    private long quantity; // required
21235
    private long warehouseId; // required
21236
 
21237
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21238
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21239
      ITEM_KEY((short)1, "itemKey"),
21240
      VENDOR_ID((short)2, "vendorId"),
21241
      QUANTITY((short)3, "quantity"),
21242
      WAREHOUSE_ID((short)4, "warehouseId");
21243
 
21244
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21245
 
21246
      static {
21247
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21248
          byName.put(field.getFieldName(), field);
21249
        }
21250
      }
21251
 
21252
      /**
21253
       * Find the _Fields constant that matches fieldId, or null if its not found.
21254
       */
21255
      public static _Fields findByThriftId(int fieldId) {
21256
        switch(fieldId) {
21257
          case 1: // ITEM_KEY
21258
            return ITEM_KEY;
21259
          case 2: // VENDOR_ID
21260
            return VENDOR_ID;
21261
          case 3: // QUANTITY
21262
            return QUANTITY;
21263
          case 4: // WAREHOUSE_ID
21264
            return WAREHOUSE_ID;
21265
          default:
21266
            return null;
21267
        }
21268
      }
21269
 
21270
      /**
21271
       * Find the _Fields constant that matches fieldId, throwing an exception
21272
       * if it is not found.
21273
       */
21274
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21275
        _Fields fields = findByThriftId(fieldId);
21276
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21277
        return fields;
21278
      }
21279
 
21280
      /**
21281
       * Find the _Fields constant that matches name, or null if its not found.
21282
       */
21283
      public static _Fields findByName(String name) {
21284
        return byName.get(name);
21285
      }
21286
 
21287
      private final short _thriftId;
21288
      private final String _fieldName;
21289
 
21290
      _Fields(short thriftId, String fieldName) {
21291
        _thriftId = thriftId;
21292
        _fieldName = fieldName;
21293
      }
21294
 
21295
      public short getThriftFieldId() {
21296
        return _thriftId;
21297
      }
21298
 
21299
      public String getFieldName() {
21300
        return _fieldName;
21301
      }
21302
    }
21303
 
21304
    // isset id assignments
21305
    private static final int __VENDORID_ISSET_ID = 0;
21306
    private static final int __QUANTITY_ISSET_ID = 1;
21307
    private static final int __WAREHOUSEID_ISSET_ID = 2;
21308
    private BitSet __isset_bit_vector = new BitSet(3);
21309
 
21310
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21311
    static {
21312
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21313
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21314
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21315
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21317
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21319
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
21323
    }
21324
 
21325
    public resetAvailability_args() {
21326
    }
21327
 
21328
    public resetAvailability_args(
21329
      String itemKey,
21330
      long vendorId,
21331
      long quantity,
21332
      long warehouseId)
21333
    {
21334
      this();
21335
      this.itemKey = itemKey;
21336
      this.vendorId = vendorId;
21337
      setVendorIdIsSet(true);
21338
      this.quantity = quantity;
21339
      setQuantityIsSet(true);
21340
      this.warehouseId = warehouseId;
21341
      setWarehouseIdIsSet(true);
21342
    }
21343
 
21344
    /**
21345
     * Performs a deep copy on <i>other</i>.
21346
     */
21347
    public resetAvailability_args(resetAvailability_args other) {
21348
      __isset_bit_vector.clear();
21349
      __isset_bit_vector.or(other.__isset_bit_vector);
21350
      if (other.isSetItemKey()) {
21351
        this.itemKey = other.itemKey;
21352
      }
21353
      this.vendorId = other.vendorId;
21354
      this.quantity = other.quantity;
21355
      this.warehouseId = other.warehouseId;
21356
    }
21357
 
21358
    public resetAvailability_args deepCopy() {
21359
      return new resetAvailability_args(this);
21360
    }
21361
 
21362
    @Override
21363
    public void clear() {
21364
      this.itemKey = null;
21365
      setVendorIdIsSet(false);
21366
      this.vendorId = 0;
21367
      setQuantityIsSet(false);
21368
      this.quantity = 0;
21369
      setWarehouseIdIsSet(false);
21370
      this.warehouseId = 0;
21371
    }
21372
 
21373
    public String getItemKey() {
21374
      return this.itemKey;
21375
    }
21376
 
21377
    public void setItemKey(String itemKey) {
21378
      this.itemKey = itemKey;
21379
    }
21380
 
21381
    public void unsetItemKey() {
21382
      this.itemKey = null;
21383
    }
21384
 
21385
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
21386
    public boolean isSetItemKey() {
21387
      return this.itemKey != null;
21388
    }
21389
 
21390
    public void setItemKeyIsSet(boolean value) {
21391
      if (!value) {
21392
        this.itemKey = null;
21393
      }
21394
    }
21395
 
21396
    public long getVendorId() {
21397
      return this.vendorId;
21398
    }
21399
 
21400
    public void setVendorId(long vendorId) {
21401
      this.vendorId = vendorId;
21402
      setVendorIdIsSet(true);
21403
    }
21404
 
21405
    public void unsetVendorId() {
21406
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21407
    }
21408
 
21409
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21410
    public boolean isSetVendorId() {
21411
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21412
    }
21413
 
21414
    public void setVendorIdIsSet(boolean value) {
21415
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21416
    }
21417
 
21418
    public long getQuantity() {
21419
      return this.quantity;
21420
    }
21421
 
21422
    public void setQuantity(long quantity) {
21423
      this.quantity = quantity;
21424
      setQuantityIsSet(true);
21425
    }
21426
 
21427
    public void unsetQuantity() {
21428
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
21429
    }
21430
 
21431
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
21432
    public boolean isSetQuantity() {
21433
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
21434
    }
21435
 
21436
    public void setQuantityIsSet(boolean value) {
21437
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
21438
    }
21439
 
21440
    public long getWarehouseId() {
21441
      return this.warehouseId;
21442
    }
21443
 
21444
    public void setWarehouseId(long warehouseId) {
21445
      this.warehouseId = warehouseId;
21446
      setWarehouseIdIsSet(true);
21447
    }
21448
 
21449
    public void unsetWarehouseId() {
21450
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
21451
    }
21452
 
21453
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
21454
    public boolean isSetWarehouseId() {
21455
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
21456
    }
21457
 
21458
    public void setWarehouseIdIsSet(boolean value) {
21459
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
21460
    }
21461
 
21462
    public void setFieldValue(_Fields field, Object value) {
21463
      switch (field) {
21464
      case ITEM_KEY:
21465
        if (value == null) {
21466
          unsetItemKey();
21467
        } else {
21468
          setItemKey((String)value);
21469
        }
21470
        break;
21471
 
21472
      case VENDOR_ID:
21473
        if (value == null) {
21474
          unsetVendorId();
21475
        } else {
21476
          setVendorId((Long)value);
21477
        }
21478
        break;
21479
 
21480
      case QUANTITY:
21481
        if (value == null) {
21482
          unsetQuantity();
21483
        } else {
21484
          setQuantity((Long)value);
21485
        }
21486
        break;
21487
 
21488
      case WAREHOUSE_ID:
21489
        if (value == null) {
21490
          unsetWarehouseId();
21491
        } else {
21492
          setWarehouseId((Long)value);
21493
        }
21494
        break;
21495
 
21496
      }
21497
    }
21498
 
21499
    public Object getFieldValue(_Fields field) {
21500
      switch (field) {
21501
      case ITEM_KEY:
21502
        return getItemKey();
21503
 
21504
      case VENDOR_ID:
21505
        return Long.valueOf(getVendorId());
21506
 
21507
      case QUANTITY:
21508
        return Long.valueOf(getQuantity());
21509
 
21510
      case WAREHOUSE_ID:
21511
        return Long.valueOf(getWarehouseId());
21512
 
21513
      }
21514
      throw new IllegalStateException();
21515
    }
21516
 
21517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21518
    public boolean isSet(_Fields field) {
21519
      if (field == null) {
21520
        throw new IllegalArgumentException();
21521
      }
21522
 
21523
      switch (field) {
21524
      case ITEM_KEY:
21525
        return isSetItemKey();
21526
      case VENDOR_ID:
21527
        return isSetVendorId();
21528
      case QUANTITY:
21529
        return isSetQuantity();
21530
      case WAREHOUSE_ID:
21531
        return isSetWarehouseId();
21532
      }
21533
      throw new IllegalStateException();
21534
    }
21535
 
21536
    @Override
21537
    public boolean equals(Object that) {
21538
      if (that == null)
21539
        return false;
21540
      if (that instanceof resetAvailability_args)
21541
        return this.equals((resetAvailability_args)that);
21542
      return false;
21543
    }
21544
 
21545
    public boolean equals(resetAvailability_args that) {
21546
      if (that == null)
21547
        return false;
21548
 
21549
      boolean this_present_itemKey = true && this.isSetItemKey();
21550
      boolean that_present_itemKey = true && that.isSetItemKey();
21551
      if (this_present_itemKey || that_present_itemKey) {
21552
        if (!(this_present_itemKey && that_present_itemKey))
21553
          return false;
21554
        if (!this.itemKey.equals(that.itemKey))
21555
          return false;
21556
      }
21557
 
21558
      boolean this_present_vendorId = true;
21559
      boolean that_present_vendorId = true;
21560
      if (this_present_vendorId || that_present_vendorId) {
21561
        if (!(this_present_vendorId && that_present_vendorId))
21562
          return false;
21563
        if (this.vendorId != that.vendorId)
21564
          return false;
21565
      }
21566
 
21567
      boolean this_present_quantity = true;
21568
      boolean that_present_quantity = true;
21569
      if (this_present_quantity || that_present_quantity) {
21570
        if (!(this_present_quantity && that_present_quantity))
21571
          return false;
21572
        if (this.quantity != that.quantity)
21573
          return false;
21574
      }
21575
 
21576
      boolean this_present_warehouseId = true;
21577
      boolean that_present_warehouseId = true;
21578
      if (this_present_warehouseId || that_present_warehouseId) {
21579
        if (!(this_present_warehouseId && that_present_warehouseId))
21580
          return false;
21581
        if (this.warehouseId != that.warehouseId)
21582
          return false;
21583
      }
21584
 
21585
      return true;
21586
    }
21587
 
21588
    @Override
21589
    public int hashCode() {
21590
      return 0;
21591
    }
21592
 
21593
    public int compareTo(resetAvailability_args other) {
21594
      if (!getClass().equals(other.getClass())) {
21595
        return getClass().getName().compareTo(other.getClass().getName());
21596
      }
21597
 
21598
      int lastComparison = 0;
21599
      resetAvailability_args typedOther = (resetAvailability_args)other;
21600
 
21601
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
21602
      if (lastComparison != 0) {
21603
        return lastComparison;
21604
      }
21605
      if (isSetItemKey()) {
21606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
21607
        if (lastComparison != 0) {
21608
          return lastComparison;
21609
        }
21610
      }
21611
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21612
      if (lastComparison != 0) {
21613
        return lastComparison;
21614
      }
21615
      if (isSetVendorId()) {
21616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21617
        if (lastComparison != 0) {
21618
          return lastComparison;
21619
        }
21620
      }
21621
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
21622
      if (lastComparison != 0) {
21623
        return lastComparison;
21624
      }
21625
      if (isSetQuantity()) {
21626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
21627
        if (lastComparison != 0) {
21628
          return lastComparison;
21629
        }
21630
      }
21631
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
21632
      if (lastComparison != 0) {
21633
        return lastComparison;
21634
      }
21635
      if (isSetWarehouseId()) {
21636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
21637
        if (lastComparison != 0) {
21638
          return lastComparison;
21639
        }
21640
      }
21641
      return 0;
21642
    }
21643
 
21644
    public _Fields fieldForId(int fieldId) {
21645
      return _Fields.findByThriftId(fieldId);
21646
    }
21647
 
21648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21649
      org.apache.thrift.protocol.TField field;
21650
      iprot.readStructBegin();
21651
      while (true)
21652
      {
21653
        field = iprot.readFieldBegin();
21654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21655
          break;
21656
        }
21657
        switch (field.id) {
21658
          case 1: // ITEM_KEY
21659
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21660
              this.itemKey = iprot.readString();
21661
            } else { 
21662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21663
            }
21664
            break;
21665
          case 2: // VENDOR_ID
21666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21667
              this.vendorId = iprot.readI64();
21668
              setVendorIdIsSet(true);
21669
            } else { 
21670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21671
            }
21672
            break;
21673
          case 3: // QUANTITY
21674
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21675
              this.quantity = iprot.readI64();
21676
              setQuantityIsSet(true);
21677
            } else { 
21678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21679
            }
21680
            break;
21681
          case 4: // WAREHOUSE_ID
21682
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21683
              this.warehouseId = iprot.readI64();
21684
              setWarehouseIdIsSet(true);
21685
            } else { 
21686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21687
            }
21688
            break;
21689
          default:
21690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21691
        }
21692
        iprot.readFieldEnd();
21693
      }
21694
      iprot.readStructEnd();
21695
      validate();
21696
    }
21697
 
21698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21699
      validate();
21700
 
21701
      oprot.writeStructBegin(STRUCT_DESC);
21702
      if (this.itemKey != null) {
21703
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
21704
        oprot.writeString(this.itemKey);
21705
        oprot.writeFieldEnd();
21706
      }
21707
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21708
      oprot.writeI64(this.vendorId);
21709
      oprot.writeFieldEnd();
21710
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
21711
      oprot.writeI64(this.quantity);
21712
      oprot.writeFieldEnd();
21713
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
21714
      oprot.writeI64(this.warehouseId);
21715
      oprot.writeFieldEnd();
21716
      oprot.writeFieldStop();
21717
      oprot.writeStructEnd();
21718
    }
21719
 
21720
    @Override
21721
    public String toString() {
21722
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
21723
      boolean first = true;
21724
 
21725
      sb.append("itemKey:");
21726
      if (this.itemKey == null) {
21727
        sb.append("null");
21728
      } else {
21729
        sb.append(this.itemKey);
21730
      }
21731
      first = false;
21732
      if (!first) sb.append(", ");
21733
      sb.append("vendorId:");
21734
      sb.append(this.vendorId);
21735
      first = false;
21736
      if (!first) sb.append(", ");
21737
      sb.append("quantity:");
21738
      sb.append(this.quantity);
21739
      first = false;
21740
      if (!first) sb.append(", ");
21741
      sb.append("warehouseId:");
21742
      sb.append(this.warehouseId);
21743
      first = false;
21744
      sb.append(")");
21745
      return sb.toString();
21746
    }
21747
 
21748
    public void validate() throws org.apache.thrift.TException {
21749
      // check for required fields
21750
    }
21751
 
21752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21753
      try {
21754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21755
      } catch (org.apache.thrift.TException te) {
21756
        throw new java.io.IOException(te);
21757
      }
21758
    }
21759
 
21760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21761
      try {
21762
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21763
        __isset_bit_vector = new BitSet(1);
21764
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21765
      } catch (org.apache.thrift.TException te) {
21766
        throw new java.io.IOException(te);
21767
      }
21768
    }
21769
 
21770
  }
21771
 
21772
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
21773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
21774
 
21775
    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);
21776
 
21777
    private InventoryServiceException cex; // required
21778
 
21779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21781
      CEX((short)1, "cex");
21782
 
21783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21784
 
21785
      static {
21786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21787
          byName.put(field.getFieldName(), field);
21788
        }
21789
      }
21790
 
21791
      /**
21792
       * Find the _Fields constant that matches fieldId, or null if its not found.
21793
       */
21794
      public static _Fields findByThriftId(int fieldId) {
21795
        switch(fieldId) {
21796
          case 1: // CEX
21797
            return CEX;
21798
          default:
21799
            return null;
21800
        }
21801
      }
21802
 
21803
      /**
21804
       * Find the _Fields constant that matches fieldId, throwing an exception
21805
       * if it is not found.
21806
       */
21807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21808
        _Fields fields = findByThriftId(fieldId);
21809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21810
        return fields;
21811
      }
21812
 
21813
      /**
21814
       * Find the _Fields constant that matches name, or null if its not found.
21815
       */
21816
      public static _Fields findByName(String name) {
21817
        return byName.get(name);
21818
      }
21819
 
21820
      private final short _thriftId;
21821
      private final String _fieldName;
21822
 
21823
      _Fields(short thriftId, String fieldName) {
21824
        _thriftId = thriftId;
21825
        _fieldName = fieldName;
21826
      }
21827
 
21828
      public short getThriftFieldId() {
21829
        return _thriftId;
21830
      }
21831
 
21832
      public String getFieldName() {
21833
        return _fieldName;
21834
      }
21835
    }
21836
 
21837
    // isset id assignments
21838
 
21839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21840
    static {
21841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21842
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21844
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21845
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
21846
    }
21847
 
21848
    public resetAvailability_result() {
21849
    }
21850
 
21851
    public resetAvailability_result(
21852
      InventoryServiceException cex)
21853
    {
21854
      this();
21855
      this.cex = cex;
21856
    }
21857
 
21858
    /**
21859
     * Performs a deep copy on <i>other</i>.
21860
     */
21861
    public resetAvailability_result(resetAvailability_result other) {
21862
      if (other.isSetCex()) {
21863
        this.cex = new InventoryServiceException(other.cex);
21864
      }
21865
    }
21866
 
21867
    public resetAvailability_result deepCopy() {
21868
      return new resetAvailability_result(this);
21869
    }
21870
 
21871
    @Override
21872
    public void clear() {
21873
      this.cex = null;
21874
    }
21875
 
21876
    public InventoryServiceException getCex() {
21877
      return this.cex;
21878
    }
21879
 
21880
    public void setCex(InventoryServiceException cex) {
21881
      this.cex = cex;
21882
    }
21883
 
21884
    public void unsetCex() {
21885
      this.cex = null;
21886
    }
21887
 
21888
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
21889
    public boolean isSetCex() {
21890
      return this.cex != null;
21891
    }
21892
 
21893
    public void setCexIsSet(boolean value) {
21894
      if (!value) {
21895
        this.cex = null;
21896
      }
21897
    }
21898
 
21899
    public void setFieldValue(_Fields field, Object value) {
21900
      switch (field) {
21901
      case CEX:
21902
        if (value == null) {
21903
          unsetCex();
21904
        } else {
21905
          setCex((InventoryServiceException)value);
21906
        }
21907
        break;
21908
 
21909
      }
21910
    }
21911
 
21912
    public Object getFieldValue(_Fields field) {
21913
      switch (field) {
21914
      case CEX:
21915
        return getCex();
21916
 
21917
      }
21918
      throw new IllegalStateException();
21919
    }
21920
 
21921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21922
    public boolean isSet(_Fields field) {
21923
      if (field == null) {
21924
        throw new IllegalArgumentException();
21925
      }
21926
 
21927
      switch (field) {
21928
      case CEX:
21929
        return isSetCex();
21930
      }
21931
      throw new IllegalStateException();
21932
    }
21933
 
21934
    @Override
21935
    public boolean equals(Object that) {
21936
      if (that == null)
21937
        return false;
21938
      if (that instanceof resetAvailability_result)
21939
        return this.equals((resetAvailability_result)that);
21940
      return false;
21941
    }
21942
 
21943
    public boolean equals(resetAvailability_result that) {
21944
      if (that == null)
21945
        return false;
21946
 
21947
      boolean this_present_cex = true && this.isSetCex();
21948
      boolean that_present_cex = true && that.isSetCex();
21949
      if (this_present_cex || that_present_cex) {
21950
        if (!(this_present_cex && that_present_cex))
21951
          return false;
21952
        if (!this.cex.equals(that.cex))
21953
          return false;
21954
      }
21955
 
21956
      return true;
21957
    }
21958
 
21959
    @Override
21960
    public int hashCode() {
21961
      return 0;
21962
    }
21963
 
21964
    public int compareTo(resetAvailability_result other) {
21965
      if (!getClass().equals(other.getClass())) {
21966
        return getClass().getName().compareTo(other.getClass().getName());
21967
      }
21968
 
21969
      int lastComparison = 0;
21970
      resetAvailability_result typedOther = (resetAvailability_result)other;
21971
 
21972
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21973
      if (lastComparison != 0) {
21974
        return lastComparison;
21975
      }
21976
      if (isSetCex()) {
21977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21978
        if (lastComparison != 0) {
21979
          return lastComparison;
21980
        }
21981
      }
21982
      return 0;
21983
    }
21984
 
21985
    public _Fields fieldForId(int fieldId) {
21986
      return _Fields.findByThriftId(fieldId);
21987
    }
21988
 
21989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21990
      org.apache.thrift.protocol.TField field;
21991
      iprot.readStructBegin();
21992
      while (true)
21993
      {
21994
        field = iprot.readFieldBegin();
21995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21996
          break;
21997
        }
21998
        switch (field.id) {
21999
          case 1: // CEX
22000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22001
              this.cex = new InventoryServiceException();
22002
              this.cex.read(iprot);
22003
            } else { 
22004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22005
            }
22006
            break;
22007
          default:
22008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22009
        }
22010
        iprot.readFieldEnd();
22011
      }
22012
      iprot.readStructEnd();
22013
      validate();
22014
    }
22015
 
22016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22017
      oprot.writeStructBegin(STRUCT_DESC);
22018
 
22019
      if (this.isSetCex()) {
22020
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22021
        this.cex.write(oprot);
22022
        oprot.writeFieldEnd();
22023
      }
22024
      oprot.writeFieldStop();
22025
      oprot.writeStructEnd();
22026
    }
22027
 
22028
    @Override
22029
    public String toString() {
22030
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
22031
      boolean first = true;
22032
 
22033
      sb.append("cex:");
22034
      if (this.cex == null) {
22035
        sb.append("null");
22036
      } else {
22037
        sb.append(this.cex);
22038
      }
22039
      first = false;
22040
      sb.append(")");
22041
      return sb.toString();
22042
    }
22043
 
22044
    public void validate() throws org.apache.thrift.TException {
22045
      // check for required fields
22046
    }
22047
 
22048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22049
      try {
22050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22051
      } catch (org.apache.thrift.TException te) {
22052
        throw new java.io.IOException(te);
22053
      }
22054
    }
22055
 
22056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22057
      try {
22058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22059
      } catch (org.apache.thrift.TException te) {
22060
        throw new java.io.IOException(te);
22061
      }
22062
    }
22063
 
22064
  }
22065
 
22066
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
22067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
22068
 
22069
    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);
22070
 
22071
    private long warehouseId; // required
22072
 
22073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22075
      WAREHOUSE_ID((short)1, "warehouseId");
22076
 
22077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22078
 
22079
      static {
22080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22081
          byName.put(field.getFieldName(), field);
22082
        }
22083
      }
22084
 
22085
      /**
22086
       * Find the _Fields constant that matches fieldId, or null if its not found.
22087
       */
22088
      public static _Fields findByThriftId(int fieldId) {
22089
        switch(fieldId) {
22090
          case 1: // WAREHOUSE_ID
22091
            return WAREHOUSE_ID;
22092
          default:
22093
            return null;
22094
        }
22095
      }
22096
 
22097
      /**
22098
       * Find the _Fields constant that matches fieldId, throwing an exception
22099
       * if it is not found.
22100
       */
22101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22102
        _Fields fields = findByThriftId(fieldId);
22103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22104
        return fields;
22105
      }
22106
 
22107
      /**
22108
       * Find the _Fields constant that matches name, or null if its not found.
22109
       */
22110
      public static _Fields findByName(String name) {
22111
        return byName.get(name);
22112
      }
22113
 
22114
      private final short _thriftId;
22115
      private final String _fieldName;
22116
 
22117
      _Fields(short thriftId, String fieldName) {
22118
        _thriftId = thriftId;
22119
        _fieldName = fieldName;
22120
      }
22121
 
22122
      public short getThriftFieldId() {
22123
        return _thriftId;
22124
      }
22125
 
22126
      public String getFieldName() {
22127
        return _fieldName;
22128
      }
22129
    }
22130
 
22131
    // isset id assignments
22132
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22133
    private BitSet __isset_bit_vector = new BitSet(1);
22134
 
22135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22136
    static {
22137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22138
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22140
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22141
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
22142
    }
22143
 
22144
    public resetAvailabilityForWarehouse_args() {
22145
    }
22146
 
22147
    public resetAvailabilityForWarehouse_args(
22148
      long warehouseId)
22149
    {
22150
      this();
22151
      this.warehouseId = warehouseId;
22152
      setWarehouseIdIsSet(true);
22153
    }
22154
 
22155
    /**
22156
     * Performs a deep copy on <i>other</i>.
22157
     */
22158
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
22159
      __isset_bit_vector.clear();
22160
      __isset_bit_vector.or(other.__isset_bit_vector);
22161
      this.warehouseId = other.warehouseId;
22162
    }
22163
 
22164
    public resetAvailabilityForWarehouse_args deepCopy() {
22165
      return new resetAvailabilityForWarehouse_args(this);
22166
    }
22167
 
22168
    @Override
22169
    public void clear() {
22170
      setWarehouseIdIsSet(false);
22171
      this.warehouseId = 0;
22172
    }
22173
 
22174
    public long getWarehouseId() {
22175
      return this.warehouseId;
22176
    }
22177
 
22178
    public void setWarehouseId(long warehouseId) {
22179
      this.warehouseId = warehouseId;
22180
      setWarehouseIdIsSet(true);
22181
    }
22182
 
22183
    public void unsetWarehouseId() {
22184
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22185
    }
22186
 
22187
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22188
    public boolean isSetWarehouseId() {
22189
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22190
    }
22191
 
22192
    public void setWarehouseIdIsSet(boolean value) {
22193
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22194
    }
22195
 
22196
    public void setFieldValue(_Fields field, Object value) {
22197
      switch (field) {
22198
      case WAREHOUSE_ID:
22199
        if (value == null) {
22200
          unsetWarehouseId();
22201
        } else {
22202
          setWarehouseId((Long)value);
22203
        }
22204
        break;
22205
 
22206
      }
22207
    }
22208
 
22209
    public Object getFieldValue(_Fields field) {
22210
      switch (field) {
22211
      case WAREHOUSE_ID:
22212
        return Long.valueOf(getWarehouseId());
22213
 
22214
      }
22215
      throw new IllegalStateException();
22216
    }
22217
 
22218
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22219
    public boolean isSet(_Fields field) {
22220
      if (field == null) {
22221
        throw new IllegalArgumentException();
22222
      }
22223
 
22224
      switch (field) {
22225
      case WAREHOUSE_ID:
22226
        return isSetWarehouseId();
22227
      }
22228
      throw new IllegalStateException();
22229
    }
22230
 
22231
    @Override
22232
    public boolean equals(Object that) {
22233
      if (that == null)
22234
        return false;
22235
      if (that instanceof resetAvailabilityForWarehouse_args)
22236
        return this.equals((resetAvailabilityForWarehouse_args)that);
22237
      return false;
22238
    }
22239
 
22240
    public boolean equals(resetAvailabilityForWarehouse_args that) {
22241
      if (that == null)
22242
        return false;
22243
 
22244
      boolean this_present_warehouseId = true;
22245
      boolean that_present_warehouseId = true;
22246
      if (this_present_warehouseId || that_present_warehouseId) {
22247
        if (!(this_present_warehouseId && that_present_warehouseId))
22248
          return false;
22249
        if (this.warehouseId != that.warehouseId)
22250
          return false;
22251
      }
22252
 
22253
      return true;
22254
    }
22255
 
22256
    @Override
22257
    public int hashCode() {
22258
      return 0;
22259
    }
22260
 
22261
    public int compareTo(resetAvailabilityForWarehouse_args other) {
22262
      if (!getClass().equals(other.getClass())) {
22263
        return getClass().getName().compareTo(other.getClass().getName());
22264
      }
22265
 
22266
      int lastComparison = 0;
22267
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
22268
 
22269
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22270
      if (lastComparison != 0) {
22271
        return lastComparison;
22272
      }
22273
      if (isSetWarehouseId()) {
22274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22275
        if (lastComparison != 0) {
22276
          return lastComparison;
22277
        }
22278
      }
22279
      return 0;
22280
    }
22281
 
22282
    public _Fields fieldForId(int fieldId) {
22283
      return _Fields.findByThriftId(fieldId);
22284
    }
22285
 
22286
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22287
      org.apache.thrift.protocol.TField field;
22288
      iprot.readStructBegin();
22289
      while (true)
22290
      {
22291
        field = iprot.readFieldBegin();
22292
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22293
          break;
22294
        }
22295
        switch (field.id) {
22296
          case 1: // WAREHOUSE_ID
22297
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22298
              this.warehouseId = iprot.readI64();
22299
              setWarehouseIdIsSet(true);
22300
            } else { 
22301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22302
            }
22303
            break;
22304
          default:
22305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22306
        }
22307
        iprot.readFieldEnd();
22308
      }
22309
      iprot.readStructEnd();
22310
      validate();
22311
    }
22312
 
22313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22314
      validate();
22315
 
22316
      oprot.writeStructBegin(STRUCT_DESC);
22317
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22318
      oprot.writeI64(this.warehouseId);
22319
      oprot.writeFieldEnd();
22320
      oprot.writeFieldStop();
22321
      oprot.writeStructEnd();
22322
    }
22323
 
22324
    @Override
22325
    public String toString() {
22326
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
22327
      boolean first = true;
22328
 
22329
      sb.append("warehouseId:");
22330
      sb.append(this.warehouseId);
22331
      first = false;
22332
      sb.append(")");
22333
      return sb.toString();
22334
    }
22335
 
22336
    public void validate() throws org.apache.thrift.TException {
22337
      // check for required fields
22338
    }
22339
 
22340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22341
      try {
22342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22343
      } catch (org.apache.thrift.TException te) {
22344
        throw new java.io.IOException(te);
22345
      }
22346
    }
22347
 
22348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22349
      try {
22350
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22351
        __isset_bit_vector = new BitSet(1);
22352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22353
      } catch (org.apache.thrift.TException te) {
22354
        throw new java.io.IOException(te);
22355
      }
22356
    }
22357
 
22358
  }
22359
 
22360
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
22361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
22362
 
22363
    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);
22364
 
22365
    private InventoryServiceException cex; // required
22366
 
22367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22369
      CEX((short)1, "cex");
22370
 
22371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22372
 
22373
      static {
22374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22375
          byName.put(field.getFieldName(), field);
22376
        }
22377
      }
22378
 
22379
      /**
22380
       * Find the _Fields constant that matches fieldId, or null if its not found.
22381
       */
22382
      public static _Fields findByThriftId(int fieldId) {
22383
        switch(fieldId) {
22384
          case 1: // CEX
22385
            return CEX;
22386
          default:
22387
            return null;
22388
        }
22389
      }
22390
 
22391
      /**
22392
       * Find the _Fields constant that matches fieldId, throwing an exception
22393
       * if it is not found.
22394
       */
22395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22396
        _Fields fields = findByThriftId(fieldId);
22397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22398
        return fields;
22399
      }
22400
 
22401
      /**
22402
       * Find the _Fields constant that matches name, or null if its not found.
22403
       */
22404
      public static _Fields findByName(String name) {
22405
        return byName.get(name);
22406
      }
22407
 
22408
      private final short _thriftId;
22409
      private final String _fieldName;
22410
 
22411
      _Fields(short thriftId, String fieldName) {
22412
        _thriftId = thriftId;
22413
        _fieldName = fieldName;
22414
      }
22415
 
22416
      public short getThriftFieldId() {
22417
        return _thriftId;
22418
      }
22419
 
22420
      public String getFieldName() {
22421
        return _fieldName;
22422
      }
22423
    }
22424
 
22425
    // isset id assignments
22426
 
22427
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22428
    static {
22429
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22430
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22431
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22432
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22433
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
22434
    }
22435
 
22436
    public resetAvailabilityForWarehouse_result() {
22437
    }
22438
 
22439
    public resetAvailabilityForWarehouse_result(
22440
      InventoryServiceException cex)
22441
    {
22442
      this();
22443
      this.cex = cex;
22444
    }
22445
 
22446
    /**
22447
     * Performs a deep copy on <i>other</i>.
22448
     */
22449
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
22450
      if (other.isSetCex()) {
22451
        this.cex = new InventoryServiceException(other.cex);
22452
      }
22453
    }
22454
 
22455
    public resetAvailabilityForWarehouse_result deepCopy() {
22456
      return new resetAvailabilityForWarehouse_result(this);
22457
    }
22458
 
22459
    @Override
22460
    public void clear() {
22461
      this.cex = null;
22462
    }
22463
 
22464
    public InventoryServiceException getCex() {
22465
      return this.cex;
22466
    }
22467
 
22468
    public void setCex(InventoryServiceException cex) {
22469
      this.cex = cex;
22470
    }
22471
 
22472
    public void unsetCex() {
22473
      this.cex = null;
22474
    }
22475
 
22476
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22477
    public boolean isSetCex() {
22478
      return this.cex != null;
22479
    }
22480
 
22481
    public void setCexIsSet(boolean value) {
22482
      if (!value) {
22483
        this.cex = null;
22484
      }
22485
    }
22486
 
22487
    public void setFieldValue(_Fields field, Object value) {
22488
      switch (field) {
22489
      case CEX:
22490
        if (value == null) {
22491
          unsetCex();
22492
        } else {
22493
          setCex((InventoryServiceException)value);
22494
        }
22495
        break;
22496
 
22497
      }
22498
    }
22499
 
22500
    public Object getFieldValue(_Fields field) {
22501
      switch (field) {
22502
      case CEX:
22503
        return getCex();
22504
 
22505
      }
22506
      throw new IllegalStateException();
22507
    }
22508
 
22509
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22510
    public boolean isSet(_Fields field) {
22511
      if (field == null) {
22512
        throw new IllegalArgumentException();
22513
      }
22514
 
22515
      switch (field) {
22516
      case CEX:
22517
        return isSetCex();
22518
      }
22519
      throw new IllegalStateException();
22520
    }
22521
 
22522
    @Override
22523
    public boolean equals(Object that) {
22524
      if (that == null)
22525
        return false;
22526
      if (that instanceof resetAvailabilityForWarehouse_result)
22527
        return this.equals((resetAvailabilityForWarehouse_result)that);
22528
      return false;
22529
    }
22530
 
22531
    public boolean equals(resetAvailabilityForWarehouse_result that) {
22532
      if (that == null)
22533
        return false;
22534
 
22535
      boolean this_present_cex = true && this.isSetCex();
22536
      boolean that_present_cex = true && that.isSetCex();
22537
      if (this_present_cex || that_present_cex) {
22538
        if (!(this_present_cex && that_present_cex))
22539
          return false;
22540
        if (!this.cex.equals(that.cex))
22541
          return false;
22542
      }
22543
 
22544
      return true;
22545
    }
22546
 
22547
    @Override
22548
    public int hashCode() {
22549
      return 0;
22550
    }
22551
 
22552
    public int compareTo(resetAvailabilityForWarehouse_result other) {
22553
      if (!getClass().equals(other.getClass())) {
22554
        return getClass().getName().compareTo(other.getClass().getName());
22555
      }
22556
 
22557
      int lastComparison = 0;
22558
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
22559
 
22560
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22561
      if (lastComparison != 0) {
22562
        return lastComparison;
22563
      }
22564
      if (isSetCex()) {
22565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22566
        if (lastComparison != 0) {
22567
          return lastComparison;
22568
        }
22569
      }
22570
      return 0;
22571
    }
22572
 
22573
    public _Fields fieldForId(int fieldId) {
22574
      return _Fields.findByThriftId(fieldId);
22575
    }
22576
 
22577
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22578
      org.apache.thrift.protocol.TField field;
22579
      iprot.readStructBegin();
22580
      while (true)
22581
      {
22582
        field = iprot.readFieldBegin();
22583
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22584
          break;
22585
        }
22586
        switch (field.id) {
22587
          case 1: // CEX
22588
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22589
              this.cex = new InventoryServiceException();
22590
              this.cex.read(iprot);
22591
            } else { 
22592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22593
            }
22594
            break;
22595
          default:
22596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22597
        }
22598
        iprot.readFieldEnd();
22599
      }
22600
      iprot.readStructEnd();
22601
      validate();
22602
    }
22603
 
22604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22605
      oprot.writeStructBegin(STRUCT_DESC);
22606
 
22607
      if (this.isSetCex()) {
22608
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22609
        this.cex.write(oprot);
22610
        oprot.writeFieldEnd();
22611
      }
22612
      oprot.writeFieldStop();
22613
      oprot.writeStructEnd();
22614
    }
22615
 
22616
    @Override
22617
    public String toString() {
22618
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
22619
      boolean first = true;
22620
 
22621
      sb.append("cex:");
22622
      if (this.cex == null) {
22623
        sb.append("null");
22624
      } else {
22625
        sb.append(this.cex);
22626
      }
22627
      first = false;
22628
      sb.append(")");
22629
      return sb.toString();
22630
    }
22631
 
22632
    public void validate() throws org.apache.thrift.TException {
22633
      // check for required fields
22634
    }
22635
 
22636
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22637
      try {
22638
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22639
      } catch (org.apache.thrift.TException te) {
22640
        throw new java.io.IOException(te);
22641
      }
22642
    }
22643
 
22644
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22645
      try {
22646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22647
      } catch (org.apache.thrift.TException te) {
22648
        throw new java.io.IOException(te);
22649
      }
22650
    }
22651
 
22652
  }
22653
 
22654
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
22655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
22656
 
22657
    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);
22658
 
22659
    private long warehouseId; // required
22660
 
22661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22663
      WAREHOUSE_ID((short)1, "warehouseId");
22664
 
22665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22666
 
22667
      static {
22668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22669
          byName.put(field.getFieldName(), field);
22670
        }
22671
      }
22672
 
22673
      /**
22674
       * Find the _Fields constant that matches fieldId, or null if its not found.
22675
       */
22676
      public static _Fields findByThriftId(int fieldId) {
22677
        switch(fieldId) {
22678
          case 1: // WAREHOUSE_ID
22679
            return WAREHOUSE_ID;
22680
          default:
22681
            return null;
22682
        }
22683
      }
22684
 
22685
      /**
22686
       * Find the _Fields constant that matches fieldId, throwing an exception
22687
       * if it is not found.
22688
       */
22689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22690
        _Fields fields = findByThriftId(fieldId);
22691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22692
        return fields;
22693
      }
22694
 
22695
      /**
22696
       * Find the _Fields constant that matches name, or null if its not found.
22697
       */
22698
      public static _Fields findByName(String name) {
22699
        return byName.get(name);
22700
      }
22701
 
22702
      private final short _thriftId;
22703
      private final String _fieldName;
22704
 
22705
      _Fields(short thriftId, String fieldName) {
22706
        _thriftId = thriftId;
22707
        _fieldName = fieldName;
22708
      }
22709
 
22710
      public short getThriftFieldId() {
22711
        return _thriftId;
22712
      }
22713
 
22714
      public String getFieldName() {
22715
        return _fieldName;
22716
      }
22717
    }
22718
 
22719
    // isset id assignments
22720
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22721
    private BitSet __isset_bit_vector = new BitSet(1);
22722
 
22723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22724
    static {
22725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22726
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22728
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22729
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
22730
    }
22731
 
22732
    public getItemKeysToBeProcessed_args() {
22733
    }
22734
 
22735
    public getItemKeysToBeProcessed_args(
22736
      long warehouseId)
22737
    {
22738
      this();
22739
      this.warehouseId = warehouseId;
22740
      setWarehouseIdIsSet(true);
22741
    }
22742
 
22743
    /**
22744
     * Performs a deep copy on <i>other</i>.
22745
     */
22746
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
22747
      __isset_bit_vector.clear();
22748
      __isset_bit_vector.or(other.__isset_bit_vector);
22749
      this.warehouseId = other.warehouseId;
22750
    }
22751
 
22752
    public getItemKeysToBeProcessed_args deepCopy() {
22753
      return new getItemKeysToBeProcessed_args(this);
22754
    }
22755
 
22756
    @Override
22757
    public void clear() {
22758
      setWarehouseIdIsSet(false);
22759
      this.warehouseId = 0;
22760
    }
22761
 
22762
    public long getWarehouseId() {
22763
      return this.warehouseId;
22764
    }
22765
 
22766
    public void setWarehouseId(long warehouseId) {
22767
      this.warehouseId = warehouseId;
22768
      setWarehouseIdIsSet(true);
22769
    }
22770
 
22771
    public void unsetWarehouseId() {
22772
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22773
    }
22774
 
22775
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22776
    public boolean isSetWarehouseId() {
22777
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22778
    }
22779
 
22780
    public void setWarehouseIdIsSet(boolean value) {
22781
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22782
    }
22783
 
22784
    public void setFieldValue(_Fields field, Object value) {
22785
      switch (field) {
22786
      case WAREHOUSE_ID:
22787
        if (value == null) {
22788
          unsetWarehouseId();
22789
        } else {
22790
          setWarehouseId((Long)value);
22791
        }
22792
        break;
22793
 
22794
      }
22795
    }
22796
 
22797
    public Object getFieldValue(_Fields field) {
22798
      switch (field) {
22799
      case WAREHOUSE_ID:
22800
        return Long.valueOf(getWarehouseId());
22801
 
22802
      }
22803
      throw new IllegalStateException();
22804
    }
22805
 
22806
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22807
    public boolean isSet(_Fields field) {
22808
      if (field == null) {
22809
        throw new IllegalArgumentException();
22810
      }
22811
 
22812
      switch (field) {
22813
      case WAREHOUSE_ID:
22814
        return isSetWarehouseId();
22815
      }
22816
      throw new IllegalStateException();
22817
    }
22818
 
22819
    @Override
22820
    public boolean equals(Object that) {
22821
      if (that == null)
22822
        return false;
22823
      if (that instanceof getItemKeysToBeProcessed_args)
22824
        return this.equals((getItemKeysToBeProcessed_args)that);
22825
      return false;
22826
    }
22827
 
22828
    public boolean equals(getItemKeysToBeProcessed_args that) {
22829
      if (that == null)
22830
        return false;
22831
 
22832
      boolean this_present_warehouseId = true;
22833
      boolean that_present_warehouseId = true;
22834
      if (this_present_warehouseId || that_present_warehouseId) {
22835
        if (!(this_present_warehouseId && that_present_warehouseId))
22836
          return false;
22837
        if (this.warehouseId != that.warehouseId)
22838
          return false;
22839
      }
22840
 
22841
      return true;
22842
    }
22843
 
22844
    @Override
22845
    public int hashCode() {
22846
      return 0;
22847
    }
22848
 
22849
    public int compareTo(getItemKeysToBeProcessed_args other) {
22850
      if (!getClass().equals(other.getClass())) {
22851
        return getClass().getName().compareTo(other.getClass().getName());
22852
      }
22853
 
22854
      int lastComparison = 0;
22855
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
22856
 
22857
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22858
      if (lastComparison != 0) {
22859
        return lastComparison;
22860
      }
22861
      if (isSetWarehouseId()) {
22862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22863
        if (lastComparison != 0) {
22864
          return lastComparison;
22865
        }
22866
      }
22867
      return 0;
22868
    }
22869
 
22870
    public _Fields fieldForId(int fieldId) {
22871
      return _Fields.findByThriftId(fieldId);
22872
    }
22873
 
22874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22875
      org.apache.thrift.protocol.TField field;
22876
      iprot.readStructBegin();
22877
      while (true)
22878
      {
22879
        field = iprot.readFieldBegin();
22880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22881
          break;
22882
        }
22883
        switch (field.id) {
22884
          case 1: // WAREHOUSE_ID
22885
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22886
              this.warehouseId = iprot.readI64();
22887
              setWarehouseIdIsSet(true);
22888
            } else { 
22889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22890
            }
22891
            break;
22892
          default:
22893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22894
        }
22895
        iprot.readFieldEnd();
22896
      }
22897
      iprot.readStructEnd();
22898
      validate();
22899
    }
22900
 
22901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22902
      validate();
22903
 
22904
      oprot.writeStructBegin(STRUCT_DESC);
22905
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22906
      oprot.writeI64(this.warehouseId);
22907
      oprot.writeFieldEnd();
22908
      oprot.writeFieldStop();
22909
      oprot.writeStructEnd();
22910
    }
22911
 
22912
    @Override
22913
    public String toString() {
22914
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
22915
      boolean first = true;
22916
 
22917
      sb.append("warehouseId:");
22918
      sb.append(this.warehouseId);
22919
      first = false;
22920
      sb.append(")");
22921
      return sb.toString();
22922
    }
22923
 
22924
    public void validate() throws org.apache.thrift.TException {
22925
      // check for required fields
22926
    }
22927
 
22928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22929
      try {
22930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22931
      } catch (org.apache.thrift.TException te) {
22932
        throw new java.io.IOException(te);
22933
      }
22934
    }
22935
 
22936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22937
      try {
22938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22939
      } catch (org.apache.thrift.TException te) {
22940
        throw new java.io.IOException(te);
22941
      }
22942
    }
22943
 
22944
  }
22945
 
22946
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
22947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
22948
 
22949
    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);
22950
 
22951
    private List<String> success; // required
22952
 
22953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22955
      SUCCESS((short)0, "success");
22956
 
22957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22958
 
22959
      static {
22960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22961
          byName.put(field.getFieldName(), field);
22962
        }
22963
      }
22964
 
22965
      /**
22966
       * Find the _Fields constant that matches fieldId, or null if its not found.
22967
       */
22968
      public static _Fields findByThriftId(int fieldId) {
22969
        switch(fieldId) {
22970
          case 0: // SUCCESS
22971
            return SUCCESS;
22972
          default:
22973
            return null;
22974
        }
22975
      }
22976
 
22977
      /**
22978
       * Find the _Fields constant that matches fieldId, throwing an exception
22979
       * if it is not found.
22980
       */
22981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22982
        _Fields fields = findByThriftId(fieldId);
22983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22984
        return fields;
22985
      }
22986
 
22987
      /**
22988
       * Find the _Fields constant that matches name, or null if its not found.
22989
       */
22990
      public static _Fields findByName(String name) {
22991
        return byName.get(name);
22992
      }
22993
 
22994
      private final short _thriftId;
22995
      private final String _fieldName;
22996
 
22997
      _Fields(short thriftId, String fieldName) {
22998
        _thriftId = thriftId;
22999
        _fieldName = fieldName;
23000
      }
23001
 
23002
      public short getThriftFieldId() {
23003
        return _thriftId;
23004
      }
23005
 
23006
      public String getFieldName() {
23007
        return _fieldName;
23008
      }
23009
    }
23010
 
23011
    // isset id assignments
23012
 
23013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23014
    static {
23015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23016
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23017
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23018
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
23021
    }
23022
 
23023
    public getItemKeysToBeProcessed_result() {
23024
    }
23025
 
23026
    public getItemKeysToBeProcessed_result(
23027
      List<String> success)
23028
    {
23029
      this();
23030
      this.success = success;
23031
    }
23032
 
23033
    /**
23034
     * Performs a deep copy on <i>other</i>.
23035
     */
23036
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
23037
      if (other.isSetSuccess()) {
23038
        List<String> __this__success = new ArrayList<String>();
23039
        for (String other_element : other.success) {
23040
          __this__success.add(other_element);
23041
        }
23042
        this.success = __this__success;
23043
      }
23044
    }
23045
 
23046
    public getItemKeysToBeProcessed_result deepCopy() {
23047
      return new getItemKeysToBeProcessed_result(this);
23048
    }
23049
 
23050
    @Override
23051
    public void clear() {
23052
      this.success = null;
23053
    }
23054
 
23055
    public int getSuccessSize() {
23056
      return (this.success == null) ? 0 : this.success.size();
23057
    }
23058
 
23059
    public java.util.Iterator<String> getSuccessIterator() {
23060
      return (this.success == null) ? null : this.success.iterator();
23061
    }
23062
 
23063
    public void addToSuccess(String elem) {
23064
      if (this.success == null) {
23065
        this.success = new ArrayList<String>();
23066
      }
23067
      this.success.add(elem);
23068
    }
23069
 
23070
    public List<String> getSuccess() {
23071
      return this.success;
23072
    }
23073
 
23074
    public void setSuccess(List<String> success) {
23075
      this.success = success;
23076
    }
23077
 
23078
    public void unsetSuccess() {
23079
      this.success = null;
23080
    }
23081
 
23082
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23083
    public boolean isSetSuccess() {
23084
      return this.success != null;
23085
    }
23086
 
23087
    public void setSuccessIsSet(boolean value) {
23088
      if (!value) {
23089
        this.success = null;
23090
      }
23091
    }
23092
 
23093
    public void setFieldValue(_Fields field, Object value) {
23094
      switch (field) {
23095
      case SUCCESS:
23096
        if (value == null) {
23097
          unsetSuccess();
23098
        } else {
23099
          setSuccess((List<String>)value);
23100
        }
23101
        break;
23102
 
23103
      }
23104
    }
23105
 
23106
    public Object getFieldValue(_Fields field) {
23107
      switch (field) {
23108
      case SUCCESS:
23109
        return getSuccess();
23110
 
23111
      }
23112
      throw new IllegalStateException();
23113
    }
23114
 
23115
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23116
    public boolean isSet(_Fields field) {
23117
      if (field == null) {
23118
        throw new IllegalArgumentException();
23119
      }
23120
 
23121
      switch (field) {
23122
      case SUCCESS:
23123
        return isSetSuccess();
23124
      }
23125
      throw new IllegalStateException();
23126
    }
23127
 
23128
    @Override
23129
    public boolean equals(Object that) {
23130
      if (that == null)
23131
        return false;
23132
      if (that instanceof getItemKeysToBeProcessed_result)
23133
        return this.equals((getItemKeysToBeProcessed_result)that);
23134
      return false;
23135
    }
23136
 
23137
    public boolean equals(getItemKeysToBeProcessed_result that) {
23138
      if (that == null)
23139
        return false;
23140
 
23141
      boolean this_present_success = true && this.isSetSuccess();
23142
      boolean that_present_success = true && that.isSetSuccess();
23143
      if (this_present_success || that_present_success) {
23144
        if (!(this_present_success && that_present_success))
23145
          return false;
23146
        if (!this.success.equals(that.success))
23147
          return false;
23148
      }
23149
 
23150
      return true;
23151
    }
23152
 
23153
    @Override
23154
    public int hashCode() {
23155
      return 0;
23156
    }
23157
 
23158
    public int compareTo(getItemKeysToBeProcessed_result other) {
23159
      if (!getClass().equals(other.getClass())) {
23160
        return getClass().getName().compareTo(other.getClass().getName());
23161
      }
23162
 
23163
      int lastComparison = 0;
23164
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
23165
 
23166
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23167
      if (lastComparison != 0) {
23168
        return lastComparison;
23169
      }
23170
      if (isSetSuccess()) {
23171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23172
        if (lastComparison != 0) {
23173
          return lastComparison;
23174
        }
23175
      }
23176
      return 0;
23177
    }
23178
 
23179
    public _Fields fieldForId(int fieldId) {
23180
      return _Fields.findByThriftId(fieldId);
23181
    }
23182
 
23183
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23184
      org.apache.thrift.protocol.TField field;
23185
      iprot.readStructBegin();
23186
      while (true)
23187
      {
23188
        field = iprot.readFieldBegin();
23189
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23190
          break;
23191
        }
23192
        switch (field.id) {
23193
          case 0: // SUCCESS
23194
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23195
              {
23196
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23197
                this.success = new ArrayList<String>(_list52.size);
23198
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23199
                {
23200
                  String _elem54; // required
23201
                  _elem54 = iprot.readString();
23202
                  this.success.add(_elem54);
23203
                }
23204
                iprot.readListEnd();
23205
              }
23206
            } else { 
23207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23208
            }
23209
            break;
23210
          default:
23211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23212
        }
23213
        iprot.readFieldEnd();
23214
      }
23215
      iprot.readStructEnd();
23216
      validate();
23217
    }
23218
 
23219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23220
      oprot.writeStructBegin(STRUCT_DESC);
23221
 
23222
      if (this.isSetSuccess()) {
23223
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23224
        {
23225
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
23226
          for (String _iter55 : this.success)
23227
          {
23228
            oprot.writeString(_iter55);
23229
          }
23230
          oprot.writeListEnd();
23231
        }
23232
        oprot.writeFieldEnd();
23233
      }
23234
      oprot.writeFieldStop();
23235
      oprot.writeStructEnd();
23236
    }
23237
 
23238
    @Override
23239
    public String toString() {
23240
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
23241
      boolean first = true;
23242
 
23243
      sb.append("success:");
23244
      if (this.success == null) {
23245
        sb.append("null");
23246
      } else {
23247
        sb.append(this.success);
23248
      }
23249
      first = false;
23250
      sb.append(")");
23251
      return sb.toString();
23252
    }
23253
 
23254
    public void validate() throws org.apache.thrift.TException {
23255
      // check for required fields
23256
    }
23257
 
23258
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23259
      try {
23260
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23261
      } catch (org.apache.thrift.TException te) {
23262
        throw new java.io.IOException(te);
23263
      }
23264
    }
23265
 
23266
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23267
      try {
23268
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23269
      } catch (org.apache.thrift.TException te) {
23270
        throw new java.io.IOException(te);
23271
      }
23272
    }
23273
 
23274
  }
23275
 
23276
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23277
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
23278
 
23279
    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);
23280
    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);
23281
 
23282
    private String itemKey; // required
23283
    private long warehouseId; // required
23284
 
23285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23286
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23287
      ITEM_KEY((short)1, "itemKey"),
23288
      WAREHOUSE_ID((short)2, "warehouseId");
23289
 
23290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23291
 
23292
      static {
23293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23294
          byName.put(field.getFieldName(), field);
23295
        }
23296
      }
23297
 
23298
      /**
23299
       * Find the _Fields constant that matches fieldId, or null if its not found.
23300
       */
23301
      public static _Fields findByThriftId(int fieldId) {
23302
        switch(fieldId) {
23303
          case 1: // ITEM_KEY
23304
            return ITEM_KEY;
23305
          case 2: // WAREHOUSE_ID
23306
            return WAREHOUSE_ID;
23307
          default:
23308
            return null;
23309
        }
23310
      }
23311
 
23312
      /**
23313
       * Find the _Fields constant that matches fieldId, throwing an exception
23314
       * if it is not found.
23315
       */
23316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23317
        _Fields fields = findByThriftId(fieldId);
23318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23319
        return fields;
23320
      }
23321
 
23322
      /**
23323
       * Find the _Fields constant that matches name, or null if its not found.
23324
       */
23325
      public static _Fields findByName(String name) {
23326
        return byName.get(name);
23327
      }
23328
 
23329
      private final short _thriftId;
23330
      private final String _fieldName;
23331
 
23332
      _Fields(short thriftId, String fieldName) {
23333
        _thriftId = thriftId;
23334
        _fieldName = fieldName;
23335
      }
23336
 
23337
      public short getThriftFieldId() {
23338
        return _thriftId;
23339
      }
23340
 
23341
      public String getFieldName() {
23342
        return _fieldName;
23343
      }
23344
    }
23345
 
23346
    // isset id assignments
23347
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23348
    private BitSet __isset_bit_vector = new BitSet(1);
23349
 
23350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23351
    static {
23352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23353
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23355
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
23359
    }
23360
 
23361
    public markMissedInventoryUpdatesAsProcessed_args() {
23362
    }
23363
 
23364
    public markMissedInventoryUpdatesAsProcessed_args(
23365
      String itemKey,
23366
      long warehouseId)
23367
    {
23368
      this();
23369
      this.itemKey = itemKey;
23370
      this.warehouseId = warehouseId;
23371
      setWarehouseIdIsSet(true);
23372
    }
23373
 
23374
    /**
23375
     * Performs a deep copy on <i>other</i>.
23376
     */
23377
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
23378
      __isset_bit_vector.clear();
23379
      __isset_bit_vector.or(other.__isset_bit_vector);
23380
      if (other.isSetItemKey()) {
23381
        this.itemKey = other.itemKey;
23382
      }
23383
      this.warehouseId = other.warehouseId;
23384
    }
23385
 
23386
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
23387
      return new markMissedInventoryUpdatesAsProcessed_args(this);
23388
    }
23389
 
23390
    @Override
23391
    public void clear() {
23392
      this.itemKey = null;
23393
      setWarehouseIdIsSet(false);
23394
      this.warehouseId = 0;
23395
    }
23396
 
23397
    public String getItemKey() {
23398
      return this.itemKey;
23399
    }
23400
 
23401
    public void setItemKey(String itemKey) {
23402
      this.itemKey = itemKey;
23403
    }
23404
 
23405
    public void unsetItemKey() {
23406
      this.itemKey = null;
23407
    }
23408
 
23409
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
23410
    public boolean isSetItemKey() {
23411
      return this.itemKey != null;
23412
    }
23413
 
23414
    public void setItemKeyIsSet(boolean value) {
23415
      if (!value) {
23416
        this.itemKey = null;
23417
      }
23418
    }
23419
 
23420
    public long getWarehouseId() {
23421
      return this.warehouseId;
23422
    }
23423
 
23424
    public void setWarehouseId(long warehouseId) {
23425
      this.warehouseId = warehouseId;
23426
      setWarehouseIdIsSet(true);
23427
    }
23428
 
23429
    public void unsetWarehouseId() {
23430
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23431
    }
23432
 
23433
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23434
    public boolean isSetWarehouseId() {
23435
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23436
    }
23437
 
23438
    public void setWarehouseIdIsSet(boolean value) {
23439
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23440
    }
23441
 
23442
    public void setFieldValue(_Fields field, Object value) {
23443
      switch (field) {
23444
      case ITEM_KEY:
23445
        if (value == null) {
23446
          unsetItemKey();
23447
        } else {
23448
          setItemKey((String)value);
23449
        }
23450
        break;
23451
 
23452
      case WAREHOUSE_ID:
23453
        if (value == null) {
23454
          unsetWarehouseId();
23455
        } else {
23456
          setWarehouseId((Long)value);
23457
        }
23458
        break;
23459
 
23460
      }
23461
    }
23462
 
23463
    public Object getFieldValue(_Fields field) {
23464
      switch (field) {
23465
      case ITEM_KEY:
23466
        return getItemKey();
23467
 
23468
      case WAREHOUSE_ID:
23469
        return Long.valueOf(getWarehouseId());
23470
 
23471
      }
23472
      throw new IllegalStateException();
23473
    }
23474
 
23475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23476
    public boolean isSet(_Fields field) {
23477
      if (field == null) {
23478
        throw new IllegalArgumentException();
23479
      }
23480
 
23481
      switch (field) {
23482
      case ITEM_KEY:
23483
        return isSetItemKey();
23484
      case WAREHOUSE_ID:
23485
        return isSetWarehouseId();
23486
      }
23487
      throw new IllegalStateException();
23488
    }
23489
 
23490
    @Override
23491
    public boolean equals(Object that) {
23492
      if (that == null)
23493
        return false;
23494
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
23495
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
23496
      return false;
23497
    }
23498
 
23499
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
23500
      if (that == null)
23501
        return false;
23502
 
23503
      boolean this_present_itemKey = true && this.isSetItemKey();
23504
      boolean that_present_itemKey = true && that.isSetItemKey();
23505
      if (this_present_itemKey || that_present_itemKey) {
23506
        if (!(this_present_itemKey && that_present_itemKey))
23507
          return false;
23508
        if (!this.itemKey.equals(that.itemKey))
23509
          return false;
23510
      }
23511
 
23512
      boolean this_present_warehouseId = true;
23513
      boolean that_present_warehouseId = true;
23514
      if (this_present_warehouseId || that_present_warehouseId) {
23515
        if (!(this_present_warehouseId && that_present_warehouseId))
23516
          return false;
23517
        if (this.warehouseId != that.warehouseId)
23518
          return false;
23519
      }
23520
 
23521
      return true;
23522
    }
23523
 
23524
    @Override
23525
    public int hashCode() {
23526
      return 0;
23527
    }
23528
 
23529
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
23530
      if (!getClass().equals(other.getClass())) {
23531
        return getClass().getName().compareTo(other.getClass().getName());
23532
      }
23533
 
23534
      int lastComparison = 0;
23535
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
23536
 
23537
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
23538
      if (lastComparison != 0) {
23539
        return lastComparison;
23540
      }
23541
      if (isSetItemKey()) {
23542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
23543
        if (lastComparison != 0) {
23544
          return lastComparison;
23545
        }
23546
      }
23547
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23548
      if (lastComparison != 0) {
23549
        return lastComparison;
23550
      }
23551
      if (isSetWarehouseId()) {
23552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23553
        if (lastComparison != 0) {
23554
          return lastComparison;
23555
        }
23556
      }
23557
      return 0;
23558
    }
23559
 
23560
    public _Fields fieldForId(int fieldId) {
23561
      return _Fields.findByThriftId(fieldId);
23562
    }
23563
 
23564
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23565
      org.apache.thrift.protocol.TField field;
23566
      iprot.readStructBegin();
23567
      while (true)
23568
      {
23569
        field = iprot.readFieldBegin();
23570
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23571
          break;
23572
        }
23573
        switch (field.id) {
23574
          case 1: // ITEM_KEY
23575
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23576
              this.itemKey = iprot.readString();
23577
            } else { 
23578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23579
            }
23580
            break;
23581
          case 2: // WAREHOUSE_ID
23582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23583
              this.warehouseId = iprot.readI64();
23584
              setWarehouseIdIsSet(true);
23585
            } else { 
23586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23587
            }
23588
            break;
23589
          default:
23590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23591
        }
23592
        iprot.readFieldEnd();
23593
      }
23594
      iprot.readStructEnd();
23595
      validate();
23596
    }
23597
 
23598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23599
      validate();
23600
 
23601
      oprot.writeStructBegin(STRUCT_DESC);
23602
      if (this.itemKey != null) {
23603
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
23604
        oprot.writeString(this.itemKey);
23605
        oprot.writeFieldEnd();
23606
      }
23607
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23608
      oprot.writeI64(this.warehouseId);
23609
      oprot.writeFieldEnd();
23610
      oprot.writeFieldStop();
23611
      oprot.writeStructEnd();
23612
    }
23613
 
23614
    @Override
23615
    public String toString() {
23616
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
23617
      boolean first = true;
23618
 
23619
      sb.append("itemKey:");
23620
      if (this.itemKey == null) {
23621
        sb.append("null");
23622
      } else {
23623
        sb.append(this.itemKey);
23624
      }
23625
      first = false;
23626
      if (!first) sb.append(", ");
23627
      sb.append("warehouseId:");
23628
      sb.append(this.warehouseId);
23629
      first = false;
23630
      sb.append(")");
23631
      return sb.toString();
23632
    }
23633
 
23634
    public void validate() throws org.apache.thrift.TException {
23635
      // check for required fields
23636
    }
23637
 
23638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23639
      try {
23640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23641
      } catch (org.apache.thrift.TException te) {
23642
        throw new java.io.IOException(te);
23643
      }
23644
    }
23645
 
23646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23647
      try {
23648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23649
      } catch (org.apache.thrift.TException te) {
23650
        throw new java.io.IOException(te);
23651
      }
23652
    }
23653
 
23654
  }
23655
 
23656
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
23657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
23658
 
23659
 
23660
 
23661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23663
;
23664
 
23665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23666
 
23667
      static {
23668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23669
          byName.put(field.getFieldName(), field);
23670
        }
23671
      }
23672
 
23673
      /**
23674
       * Find the _Fields constant that matches fieldId, or null if its not found.
23675
       */
23676
      public static _Fields findByThriftId(int fieldId) {
23677
        switch(fieldId) {
23678
          default:
23679
            return null;
23680
        }
23681
      }
23682
 
23683
      /**
23684
       * Find the _Fields constant that matches fieldId, throwing an exception
23685
       * if it is not found.
23686
       */
23687
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23688
        _Fields fields = findByThriftId(fieldId);
23689
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23690
        return fields;
23691
      }
23692
 
23693
      /**
23694
       * Find the _Fields constant that matches name, or null if its not found.
23695
       */
23696
      public static _Fields findByName(String name) {
23697
        return byName.get(name);
23698
      }
23699
 
23700
      private final short _thriftId;
23701
      private final String _fieldName;
23702
 
23703
      _Fields(short thriftId, String fieldName) {
23704
        _thriftId = thriftId;
23705
        _fieldName = fieldName;
23706
      }
23707
 
23708
      public short getThriftFieldId() {
23709
        return _thriftId;
23710
      }
23711
 
23712
      public String getFieldName() {
23713
        return _fieldName;
23714
      }
23715
    }
23716
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23717
    static {
23718
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
23721
    }
23722
 
23723
    public markMissedInventoryUpdatesAsProcessed_result() {
23724
    }
23725
 
23726
    /**
23727
     * Performs a deep copy on <i>other</i>.
23728
     */
23729
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
23730
    }
23731
 
23732
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
23733
      return new markMissedInventoryUpdatesAsProcessed_result(this);
23734
    }
23735
 
23736
    @Override
23737
    public void clear() {
23738
    }
23739
 
23740
    public void setFieldValue(_Fields field, Object value) {
23741
      switch (field) {
23742
      }
23743
    }
23744
 
23745
    public Object getFieldValue(_Fields field) {
23746
      switch (field) {
23747
      }
23748
      throw new IllegalStateException();
23749
    }
23750
 
23751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23752
    public boolean isSet(_Fields field) {
23753
      if (field == null) {
23754
        throw new IllegalArgumentException();
23755
      }
23756
 
23757
      switch (field) {
23758
      }
23759
      throw new IllegalStateException();
23760
    }
23761
 
23762
    @Override
23763
    public boolean equals(Object that) {
23764
      if (that == null)
23765
        return false;
23766
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
23767
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
23768
      return false;
23769
    }
23770
 
23771
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
23772
      if (that == null)
23773
        return false;
23774
 
23775
      return true;
23776
    }
23777
 
23778
    @Override
23779
    public int hashCode() {
23780
      return 0;
23781
    }
23782
 
23783
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
23784
      if (!getClass().equals(other.getClass())) {
23785
        return getClass().getName().compareTo(other.getClass().getName());
23786
      }
23787
 
23788
      int lastComparison = 0;
23789
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
23790
 
23791
      return 0;
23792
    }
23793
 
23794
    public _Fields fieldForId(int fieldId) {
23795
      return _Fields.findByThriftId(fieldId);
23796
    }
23797
 
23798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23799
      org.apache.thrift.protocol.TField field;
23800
      iprot.readStructBegin();
23801
      while (true)
23802
      {
23803
        field = iprot.readFieldBegin();
23804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23805
          break;
23806
        }
23807
        switch (field.id) {
23808
          default:
23809
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23810
        }
23811
        iprot.readFieldEnd();
23812
      }
23813
      iprot.readStructEnd();
23814
      validate();
23815
    }
23816
 
23817
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23818
      oprot.writeStructBegin(STRUCT_DESC);
23819
 
23820
      oprot.writeFieldStop();
23821
      oprot.writeStructEnd();
23822
    }
23823
 
23824
    @Override
23825
    public String toString() {
23826
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
23827
      boolean first = true;
23828
 
23829
      sb.append(")");
23830
      return sb.toString();
23831
    }
23832
 
23833
    public void validate() throws org.apache.thrift.TException {
23834
      // check for required fields
23835
    }
23836
 
23837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23838
      try {
23839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23840
      } catch (org.apache.thrift.TException te) {
23841
        throw new java.io.IOException(te);
23842
      }
23843
    }
23844
 
23845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23846
      try {
23847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23848
      } catch (org.apache.thrift.TException te) {
23849
        throw new java.io.IOException(te);
23850
      }
23851
    }
23852
 
23853
  }
23854
 
23855
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
23856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
23857
 
23858
 
23859
 
23860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23862
;
23863
 
23864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23865
 
23866
      static {
23867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23868
          byName.put(field.getFieldName(), field);
23869
        }
23870
      }
23871
 
23872
      /**
23873
       * Find the _Fields constant that matches fieldId, or null if its not found.
23874
       */
23875
      public static _Fields findByThriftId(int fieldId) {
23876
        switch(fieldId) {
23877
          default:
23878
            return null;
23879
        }
23880
      }
23881
 
23882
      /**
23883
       * Find the _Fields constant that matches fieldId, throwing an exception
23884
       * if it is not found.
23885
       */
23886
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23887
        _Fields fields = findByThriftId(fieldId);
23888
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23889
        return fields;
23890
      }
23891
 
23892
      /**
23893
       * Find the _Fields constant that matches name, or null if its not found.
23894
       */
23895
      public static _Fields findByName(String name) {
23896
        return byName.get(name);
23897
      }
23898
 
23899
      private final short _thriftId;
23900
      private final String _fieldName;
23901
 
23902
      _Fields(short thriftId, String fieldName) {
23903
        _thriftId = thriftId;
23904
        _fieldName = fieldName;
23905
      }
23906
 
23907
      public short getThriftFieldId() {
23908
        return _thriftId;
23909
      }
23910
 
23911
      public String getFieldName() {
23912
        return _fieldName;
23913
      }
23914
    }
23915
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23916
    static {
23917
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23918
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23919
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
23920
    }
23921
 
23922
    public getIgnoredItemKeys_args() {
23923
    }
23924
 
23925
    /**
23926
     * Performs a deep copy on <i>other</i>.
23927
     */
23928
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
23929
    }
23930
 
23931
    public getIgnoredItemKeys_args deepCopy() {
23932
      return new getIgnoredItemKeys_args(this);
23933
    }
23934
 
23935
    @Override
23936
    public void clear() {
23937
    }
23938
 
23939
    public void setFieldValue(_Fields field, Object value) {
23940
      switch (field) {
23941
      }
23942
    }
23943
 
23944
    public Object getFieldValue(_Fields field) {
23945
      switch (field) {
23946
      }
23947
      throw new IllegalStateException();
23948
    }
23949
 
23950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23951
    public boolean isSet(_Fields field) {
23952
      if (field == null) {
23953
        throw new IllegalArgumentException();
23954
      }
23955
 
23956
      switch (field) {
23957
      }
23958
      throw new IllegalStateException();
23959
    }
23960
 
23961
    @Override
23962
    public boolean equals(Object that) {
23963
      if (that == null)
23964
        return false;
23965
      if (that instanceof getIgnoredItemKeys_args)
23966
        return this.equals((getIgnoredItemKeys_args)that);
23967
      return false;
23968
    }
23969
 
23970
    public boolean equals(getIgnoredItemKeys_args that) {
23971
      if (that == null)
23972
        return false;
23973
 
23974
      return true;
23975
    }
23976
 
23977
    @Override
23978
    public int hashCode() {
23979
      return 0;
23980
    }
23981
 
23982
    public int compareTo(getIgnoredItemKeys_args other) {
23983
      if (!getClass().equals(other.getClass())) {
23984
        return getClass().getName().compareTo(other.getClass().getName());
23985
      }
23986
 
23987
      int lastComparison = 0;
23988
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
23989
 
23990
      return 0;
23991
    }
23992
 
23993
    public _Fields fieldForId(int fieldId) {
23994
      return _Fields.findByThriftId(fieldId);
23995
    }
23996
 
23997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23998
      org.apache.thrift.protocol.TField field;
23999
      iprot.readStructBegin();
24000
      while (true)
24001
      {
24002
        field = iprot.readFieldBegin();
24003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24004
          break;
24005
        }
24006
        switch (field.id) {
24007
          default:
24008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24009
        }
24010
        iprot.readFieldEnd();
24011
      }
24012
      iprot.readStructEnd();
24013
      validate();
24014
    }
24015
 
24016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24017
      validate();
24018
 
24019
      oprot.writeStructBegin(STRUCT_DESC);
24020
      oprot.writeFieldStop();
24021
      oprot.writeStructEnd();
24022
    }
24023
 
24024
    @Override
24025
    public String toString() {
24026
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
24027
      boolean first = true;
24028
 
24029
      sb.append(")");
24030
      return sb.toString();
24031
    }
24032
 
24033
    public void validate() throws org.apache.thrift.TException {
24034
      // check for required fields
24035
    }
24036
 
24037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24038
      try {
24039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24040
      } catch (org.apache.thrift.TException te) {
24041
        throw new java.io.IOException(te);
24042
      }
24043
    }
24044
 
24045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24046
      try {
24047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24048
      } catch (org.apache.thrift.TException te) {
24049
        throw new java.io.IOException(te);
24050
      }
24051
    }
24052
 
24053
  }
24054
 
24055
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
24056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
24057
 
24058
    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);
24059
 
24060
    private Map<String,Map<Long,Long>> success; // required
24061
 
24062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24063
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24064
      SUCCESS((short)0, "success");
24065
 
24066
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24067
 
24068
      static {
24069
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24070
          byName.put(field.getFieldName(), field);
24071
        }
24072
      }
24073
 
24074
      /**
24075
       * Find the _Fields constant that matches fieldId, or null if its not found.
24076
       */
24077
      public static _Fields findByThriftId(int fieldId) {
24078
        switch(fieldId) {
24079
          case 0: // SUCCESS
24080
            return SUCCESS;
24081
          default:
24082
            return null;
24083
        }
24084
      }
24085
 
24086
      /**
24087
       * Find the _Fields constant that matches fieldId, throwing an exception
24088
       * if it is not found.
24089
       */
24090
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24091
        _Fields fields = findByThriftId(fieldId);
24092
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24093
        return fields;
24094
      }
24095
 
24096
      /**
24097
       * Find the _Fields constant that matches name, or null if its not found.
24098
       */
24099
      public static _Fields findByName(String name) {
24100
        return byName.get(name);
24101
      }
24102
 
24103
      private final short _thriftId;
24104
      private final String _fieldName;
24105
 
24106
      _Fields(short thriftId, String fieldName) {
24107
        _thriftId = thriftId;
24108
        _fieldName = fieldName;
24109
      }
24110
 
24111
      public short getThriftFieldId() {
24112
        return _thriftId;
24113
      }
24114
 
24115
      public String getFieldName() {
24116
        return _fieldName;
24117
      }
24118
    }
24119
 
24120
    // isset id assignments
24121
 
24122
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24123
    static {
24124
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24125
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24126
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24127
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
24128
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24129
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
24130
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
24131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
24133
    }
24134
 
24135
    public getIgnoredItemKeys_result() {
24136
    }
24137
 
24138
    public getIgnoredItemKeys_result(
24139
      Map<String,Map<Long,Long>> success)
24140
    {
24141
      this();
24142
      this.success = success;
24143
    }
24144
 
24145
    /**
24146
     * Performs a deep copy on <i>other</i>.
24147
     */
24148
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
24149
      if (other.isSetSuccess()) {
24150
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
24151
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
24152
 
24153
          String other_element_key = other_element.getKey();
24154
          Map<Long,Long> other_element_value = other_element.getValue();
24155
 
24156
          String __this__success_copy_key = other_element_key;
24157
 
24158
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
24159
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
24160
 
24161
            Long other_element_value_element_key = other_element_value_element.getKey();
24162
            Long other_element_value_element_value = other_element_value_element.getValue();
24163
 
24164
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
24165
 
24166
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
24167
 
24168
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
24169
          }
24170
 
24171
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
24172
        }
24173
        this.success = __this__success;
24174
      }
24175
    }
24176
 
24177
    public getIgnoredItemKeys_result deepCopy() {
24178
      return new getIgnoredItemKeys_result(this);
24179
    }
24180
 
24181
    @Override
24182
    public void clear() {
24183
      this.success = null;
24184
    }
24185
 
24186
    public int getSuccessSize() {
24187
      return (this.success == null) ? 0 : this.success.size();
24188
    }
24189
 
24190
    public void putToSuccess(String key, Map<Long,Long> val) {
24191
      if (this.success == null) {
24192
        this.success = new HashMap<String,Map<Long,Long>>();
24193
      }
24194
      this.success.put(key, val);
24195
    }
24196
 
24197
    public Map<String,Map<Long,Long>> getSuccess() {
24198
      return this.success;
24199
    }
24200
 
24201
    public void setSuccess(Map<String,Map<Long,Long>> success) {
24202
      this.success = success;
24203
    }
24204
 
24205
    public void unsetSuccess() {
24206
      this.success = null;
24207
    }
24208
 
24209
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24210
    public boolean isSetSuccess() {
24211
      return this.success != null;
24212
    }
24213
 
24214
    public void setSuccessIsSet(boolean value) {
24215
      if (!value) {
24216
        this.success = null;
24217
      }
24218
    }
24219
 
24220
    public void setFieldValue(_Fields field, Object value) {
24221
      switch (field) {
24222
      case SUCCESS:
24223
        if (value == null) {
24224
          unsetSuccess();
24225
        } else {
24226
          setSuccess((Map<String,Map<Long,Long>>)value);
24227
        }
24228
        break;
24229
 
24230
      }
24231
    }
24232
 
24233
    public Object getFieldValue(_Fields field) {
24234
      switch (field) {
24235
      case SUCCESS:
24236
        return getSuccess();
24237
 
24238
      }
24239
      throw new IllegalStateException();
24240
    }
24241
 
24242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24243
    public boolean isSet(_Fields field) {
24244
      if (field == null) {
24245
        throw new IllegalArgumentException();
24246
      }
24247
 
24248
      switch (field) {
24249
      case SUCCESS:
24250
        return isSetSuccess();
24251
      }
24252
      throw new IllegalStateException();
24253
    }
24254
 
24255
    @Override
24256
    public boolean equals(Object that) {
24257
      if (that == null)
24258
        return false;
24259
      if (that instanceof getIgnoredItemKeys_result)
24260
        return this.equals((getIgnoredItemKeys_result)that);
24261
      return false;
24262
    }
24263
 
24264
    public boolean equals(getIgnoredItemKeys_result that) {
24265
      if (that == null)
24266
        return false;
24267
 
24268
      boolean this_present_success = true && this.isSetSuccess();
24269
      boolean that_present_success = true && that.isSetSuccess();
24270
      if (this_present_success || that_present_success) {
24271
        if (!(this_present_success && that_present_success))
24272
          return false;
24273
        if (!this.success.equals(that.success))
24274
          return false;
24275
      }
24276
 
24277
      return true;
24278
    }
24279
 
24280
    @Override
24281
    public int hashCode() {
24282
      return 0;
24283
    }
24284
 
24285
    public int compareTo(getIgnoredItemKeys_result other) {
24286
      if (!getClass().equals(other.getClass())) {
24287
        return getClass().getName().compareTo(other.getClass().getName());
24288
      }
24289
 
24290
      int lastComparison = 0;
24291
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
24292
 
24293
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24294
      if (lastComparison != 0) {
24295
        return lastComparison;
24296
      }
24297
      if (isSetSuccess()) {
24298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24299
        if (lastComparison != 0) {
24300
          return lastComparison;
24301
        }
24302
      }
24303
      return 0;
24304
    }
24305
 
24306
    public _Fields fieldForId(int fieldId) {
24307
      return _Fields.findByThriftId(fieldId);
24308
    }
24309
 
24310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24311
      org.apache.thrift.protocol.TField field;
24312
      iprot.readStructBegin();
24313
      while (true)
24314
      {
24315
        field = iprot.readFieldBegin();
24316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24317
          break;
24318
        }
24319
        switch (field.id) {
24320
          case 0: // SUCCESS
24321
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
24322
              {
24323
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
24324
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
24325
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
24326
                {
24327
                  String _key58; // required
24328
                  Map<Long,Long> _val59; // required
24329
                  _key58 = iprot.readString();
24330
                  {
24331
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
24332
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
24333
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
24334
                    {
24335
                      long _key62; // required
24336
                      long _val63; // required
24337
                      _key62 = iprot.readI64();
24338
                      _val63 = iprot.readI64();
24339
                      _val59.put(_key62, _val63);
24340
                    }
24341
                    iprot.readMapEnd();
24342
                  }
24343
                  this.success.put(_key58, _val59);
24344
                }
24345
                iprot.readMapEnd();
24346
              }
24347
            } else { 
24348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24349
            }
24350
            break;
24351
          default:
24352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24353
        }
24354
        iprot.readFieldEnd();
24355
      }
24356
      iprot.readStructEnd();
24357
      validate();
24358
    }
24359
 
24360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24361
      oprot.writeStructBegin(STRUCT_DESC);
24362
 
24363
      if (this.isSetSuccess()) {
24364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24365
        {
24366
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
24367
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
24368
          {
24369
            oprot.writeString(_iter64.getKey());
24370
            {
24371
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
24372
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
24373
              {
24374
                oprot.writeI64(_iter65.getKey());
24375
                oprot.writeI64(_iter65.getValue());
24376
              }
24377
              oprot.writeMapEnd();
24378
            }
24379
          }
24380
          oprot.writeMapEnd();
24381
        }
24382
        oprot.writeFieldEnd();
24383
      }
24384
      oprot.writeFieldStop();
24385
      oprot.writeStructEnd();
24386
    }
24387
 
24388
    @Override
24389
    public String toString() {
24390
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
24391
      boolean first = true;
24392
 
24393
      sb.append("success:");
24394
      if (this.success == null) {
24395
        sb.append("null");
24396
      } else {
24397
        sb.append(this.success);
24398
      }
24399
      first = false;
24400
      sb.append(")");
24401
      return sb.toString();
24402
    }
24403
 
24404
    public void validate() throws org.apache.thrift.TException {
24405
      // check for required fields
24406
    }
24407
 
24408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24409
      try {
24410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24411
      } catch (org.apache.thrift.TException te) {
24412
        throw new java.io.IOException(te);
24413
      }
24414
    }
24415
 
24416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24417
      try {
24418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24419
      } catch (org.apache.thrift.TException te) {
24420
        throw new java.io.IOException(te);
24421
      }
24422
    }
24423
 
24424
  }
24425
 
24426
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
24427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
24428
 
24429
    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);
24430
    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);
24431
    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);
24432
 
24433
    private long itemId; // required
24434
    private long warehouseId; // required
24435
    private long quantity; // required
24436
 
24437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24439
      ITEM_ID((short)1, "itemId"),
24440
      WAREHOUSE_ID((short)2, "warehouseId"),
24441
      QUANTITY((short)3, "quantity");
24442
 
24443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24444
 
24445
      static {
24446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24447
          byName.put(field.getFieldName(), field);
24448
        }
24449
      }
24450
 
24451
      /**
24452
       * Find the _Fields constant that matches fieldId, or null if its not found.
24453
       */
24454
      public static _Fields findByThriftId(int fieldId) {
24455
        switch(fieldId) {
24456
          case 1: // ITEM_ID
24457
            return ITEM_ID;
24458
          case 2: // WAREHOUSE_ID
24459
            return WAREHOUSE_ID;
24460
          case 3: // QUANTITY
24461
            return QUANTITY;
24462
          default:
24463
            return null;
24464
        }
24465
      }
24466
 
24467
      /**
24468
       * Find the _Fields constant that matches fieldId, throwing an exception
24469
       * if it is not found.
24470
       */
24471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24472
        _Fields fields = findByThriftId(fieldId);
24473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24474
        return fields;
24475
      }
24476
 
24477
      /**
24478
       * Find the _Fields constant that matches name, or null if its not found.
24479
       */
24480
      public static _Fields findByName(String name) {
24481
        return byName.get(name);
24482
      }
24483
 
24484
      private final short _thriftId;
24485
      private final String _fieldName;
24486
 
24487
      _Fields(short thriftId, String fieldName) {
24488
        _thriftId = thriftId;
24489
        _fieldName = fieldName;
24490
      }
24491
 
24492
      public short getThriftFieldId() {
24493
        return _thriftId;
24494
      }
24495
 
24496
      public String getFieldName() {
24497
        return _fieldName;
24498
      }
24499
    }
24500
 
24501
    // isset id assignments
24502
    private static final int __ITEMID_ISSET_ID = 0;
24503
    private static final int __WAREHOUSEID_ISSET_ID = 1;
24504
    private static final int __QUANTITY_ISSET_ID = 2;
24505
    private BitSet __isset_bit_vector = new BitSet(3);
24506
 
24507
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24508
    static {
24509
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24510
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24512
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24514
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
24518
    }
24519
 
24520
    public addBadInventory_args() {
24521
    }
24522
 
24523
    public addBadInventory_args(
24524
      long itemId,
24525
      long warehouseId,
24526
      long quantity)
24527
    {
24528
      this();
24529
      this.itemId = itemId;
24530
      setItemIdIsSet(true);
24531
      this.warehouseId = warehouseId;
24532
      setWarehouseIdIsSet(true);
24533
      this.quantity = quantity;
24534
      setQuantityIsSet(true);
24535
    }
24536
 
24537
    /**
24538
     * Performs a deep copy on <i>other</i>.
24539
     */
24540
    public addBadInventory_args(addBadInventory_args other) {
24541
      __isset_bit_vector.clear();
24542
      __isset_bit_vector.or(other.__isset_bit_vector);
24543
      this.itemId = other.itemId;
24544
      this.warehouseId = other.warehouseId;
24545
      this.quantity = other.quantity;
24546
    }
24547
 
24548
    public addBadInventory_args deepCopy() {
24549
      return new addBadInventory_args(this);
24550
    }
24551
 
24552
    @Override
24553
    public void clear() {
24554
      setItemIdIsSet(false);
24555
      this.itemId = 0;
24556
      setWarehouseIdIsSet(false);
24557
      this.warehouseId = 0;
24558
      setQuantityIsSet(false);
24559
      this.quantity = 0;
24560
    }
24561
 
24562
    public long getItemId() {
24563
      return this.itemId;
24564
    }
24565
 
24566
    public void setItemId(long itemId) {
24567
      this.itemId = itemId;
24568
      setItemIdIsSet(true);
24569
    }
24570
 
24571
    public void unsetItemId() {
24572
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
24573
    }
24574
 
24575
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
24576
    public boolean isSetItemId() {
24577
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
24578
    }
24579
 
24580
    public void setItemIdIsSet(boolean value) {
24581
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
24582
    }
24583
 
24584
    public long getWarehouseId() {
24585
      return this.warehouseId;
24586
    }
24587
 
24588
    public void setWarehouseId(long warehouseId) {
24589
      this.warehouseId = warehouseId;
24590
      setWarehouseIdIsSet(true);
24591
    }
24592
 
24593
    public void unsetWarehouseId() {
24594
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24595
    }
24596
 
24597
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24598
    public boolean isSetWarehouseId() {
24599
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24600
    }
24601
 
24602
    public void setWarehouseIdIsSet(boolean value) {
24603
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24604
    }
24605
 
24606
    public long getQuantity() {
24607
      return this.quantity;
24608
    }
24609
 
24610
    public void setQuantity(long quantity) {
24611
      this.quantity = quantity;
24612
      setQuantityIsSet(true);
24613
    }
24614
 
24615
    public void unsetQuantity() {
24616
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
24617
    }
24618
 
24619
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
24620
    public boolean isSetQuantity() {
24621
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
24622
    }
24623
 
24624
    public void setQuantityIsSet(boolean value) {
24625
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
24626
    }
24627
 
24628
    public void setFieldValue(_Fields field, Object value) {
24629
      switch (field) {
24630
      case ITEM_ID:
24631
        if (value == null) {
24632
          unsetItemId();
24633
        } else {
24634
          setItemId((Long)value);
24635
        }
24636
        break;
24637
 
24638
      case WAREHOUSE_ID:
24639
        if (value == null) {
24640
          unsetWarehouseId();
24641
        } else {
24642
          setWarehouseId((Long)value);
24643
        }
24644
        break;
24645
 
24646
      case QUANTITY:
24647
        if (value == null) {
24648
          unsetQuantity();
24649
        } else {
24650
          setQuantity((Long)value);
24651
        }
24652
        break;
24653
 
24654
      }
24655
    }
24656
 
24657
    public Object getFieldValue(_Fields field) {
24658
      switch (field) {
24659
      case ITEM_ID:
24660
        return Long.valueOf(getItemId());
24661
 
24662
      case WAREHOUSE_ID:
24663
        return Long.valueOf(getWarehouseId());
24664
 
24665
      case QUANTITY:
24666
        return Long.valueOf(getQuantity());
24667
 
24668
      }
24669
      throw new IllegalStateException();
24670
    }
24671
 
24672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24673
    public boolean isSet(_Fields field) {
24674
      if (field == null) {
24675
        throw new IllegalArgumentException();
24676
      }
24677
 
24678
      switch (field) {
24679
      case ITEM_ID:
24680
        return isSetItemId();
24681
      case WAREHOUSE_ID:
24682
        return isSetWarehouseId();
24683
      case QUANTITY:
24684
        return isSetQuantity();
24685
      }
24686
      throw new IllegalStateException();
24687
    }
24688
 
24689
    @Override
24690
    public boolean equals(Object that) {
24691
      if (that == null)
24692
        return false;
24693
      if (that instanceof addBadInventory_args)
24694
        return this.equals((addBadInventory_args)that);
24695
      return false;
24696
    }
24697
 
24698
    public boolean equals(addBadInventory_args that) {
24699
      if (that == null)
24700
        return false;
24701
 
24702
      boolean this_present_itemId = true;
24703
      boolean that_present_itemId = true;
24704
      if (this_present_itemId || that_present_itemId) {
24705
        if (!(this_present_itemId && that_present_itemId))
24706
          return false;
24707
        if (this.itemId != that.itemId)
24708
          return false;
24709
      }
24710
 
24711
      boolean this_present_warehouseId = true;
24712
      boolean that_present_warehouseId = true;
24713
      if (this_present_warehouseId || that_present_warehouseId) {
24714
        if (!(this_present_warehouseId && that_present_warehouseId))
24715
          return false;
24716
        if (this.warehouseId != that.warehouseId)
24717
          return false;
24718
      }
24719
 
24720
      boolean this_present_quantity = true;
24721
      boolean that_present_quantity = true;
24722
      if (this_present_quantity || that_present_quantity) {
24723
        if (!(this_present_quantity && that_present_quantity))
24724
          return false;
24725
        if (this.quantity != that.quantity)
24726
          return false;
24727
      }
24728
 
24729
      return true;
24730
    }
24731
 
24732
    @Override
24733
    public int hashCode() {
24734
      return 0;
24735
    }
24736
 
24737
    public int compareTo(addBadInventory_args other) {
24738
      if (!getClass().equals(other.getClass())) {
24739
        return getClass().getName().compareTo(other.getClass().getName());
24740
      }
24741
 
24742
      int lastComparison = 0;
24743
      addBadInventory_args typedOther = (addBadInventory_args)other;
24744
 
24745
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
24746
      if (lastComparison != 0) {
24747
        return lastComparison;
24748
      }
24749
      if (isSetItemId()) {
24750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
24751
        if (lastComparison != 0) {
24752
          return lastComparison;
24753
        }
24754
      }
24755
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24756
      if (lastComparison != 0) {
24757
        return lastComparison;
24758
      }
24759
      if (isSetWarehouseId()) {
24760
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24761
        if (lastComparison != 0) {
24762
          return lastComparison;
24763
        }
24764
      }
24765
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
24766
      if (lastComparison != 0) {
24767
        return lastComparison;
24768
      }
24769
      if (isSetQuantity()) {
24770
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
24771
        if (lastComparison != 0) {
24772
          return lastComparison;
24773
        }
24774
      }
24775
      return 0;
24776
    }
24777
 
24778
    public _Fields fieldForId(int fieldId) {
24779
      return _Fields.findByThriftId(fieldId);
24780
    }
24781
 
24782
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24783
      org.apache.thrift.protocol.TField field;
24784
      iprot.readStructBegin();
24785
      while (true)
24786
      {
24787
        field = iprot.readFieldBegin();
24788
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24789
          break;
24790
        }
24791
        switch (field.id) {
24792
          case 1: // ITEM_ID
24793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24794
              this.itemId = iprot.readI64();
24795
              setItemIdIsSet(true);
24796
            } else { 
24797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24798
            }
24799
            break;
24800
          case 2: // WAREHOUSE_ID
24801
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24802
              this.warehouseId = iprot.readI64();
24803
              setWarehouseIdIsSet(true);
24804
            } else { 
24805
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24806
            }
24807
            break;
24808
          case 3: // QUANTITY
24809
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24810
              this.quantity = iprot.readI64();
24811
              setQuantityIsSet(true);
24812
            } else { 
24813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24814
            }
24815
            break;
24816
          default:
24817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24818
        }
24819
        iprot.readFieldEnd();
24820
      }
24821
      iprot.readStructEnd();
24822
      validate();
24823
    }
24824
 
24825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24826
      validate();
24827
 
24828
      oprot.writeStructBegin(STRUCT_DESC);
24829
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
24830
      oprot.writeI64(this.itemId);
24831
      oprot.writeFieldEnd();
24832
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24833
      oprot.writeI64(this.warehouseId);
24834
      oprot.writeFieldEnd();
24835
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
24836
      oprot.writeI64(this.quantity);
24837
      oprot.writeFieldEnd();
24838
      oprot.writeFieldStop();
24839
      oprot.writeStructEnd();
24840
    }
24841
 
24842
    @Override
24843
    public String toString() {
24844
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
24845
      boolean first = true;
24846
 
24847
      sb.append("itemId:");
24848
      sb.append(this.itemId);
24849
      first = false;
24850
      if (!first) sb.append(", ");
24851
      sb.append("warehouseId:");
24852
      sb.append(this.warehouseId);
24853
      first = false;
24854
      if (!first) sb.append(", ");
24855
      sb.append("quantity:");
24856
      sb.append(this.quantity);
24857
      first = false;
24858
      sb.append(")");
24859
      return sb.toString();
24860
    }
24861
 
24862
    public void validate() throws org.apache.thrift.TException {
24863
      // check for required fields
24864
    }
24865
 
24866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24867
      try {
24868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24869
      } catch (org.apache.thrift.TException te) {
24870
        throw new java.io.IOException(te);
24871
      }
24872
    }
24873
 
24874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24875
      try {
24876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24877
      } catch (org.apache.thrift.TException te) {
24878
        throw new java.io.IOException(te);
24879
      }
24880
    }
24881
 
24882
  }
24883
 
24884
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
24885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
24886
 
24887
    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);
24888
 
24889
    private InventoryServiceException cex; // required
24890
 
24891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24893
      CEX((short)1, "cex");
24894
 
24895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24896
 
24897
      static {
24898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24899
          byName.put(field.getFieldName(), field);
24900
        }
24901
      }
24902
 
24903
      /**
24904
       * Find the _Fields constant that matches fieldId, or null if its not found.
24905
       */
24906
      public static _Fields findByThriftId(int fieldId) {
24907
        switch(fieldId) {
24908
          case 1: // CEX
24909
            return CEX;
24910
          default:
24911
            return null;
24912
        }
24913
      }
24914
 
24915
      /**
24916
       * Find the _Fields constant that matches fieldId, throwing an exception
24917
       * if it is not found.
24918
       */
24919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24920
        _Fields fields = findByThriftId(fieldId);
24921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24922
        return fields;
24923
      }
24924
 
24925
      /**
24926
       * Find the _Fields constant that matches name, or null if its not found.
24927
       */
24928
      public static _Fields findByName(String name) {
24929
        return byName.get(name);
24930
      }
24931
 
24932
      private final short _thriftId;
24933
      private final String _fieldName;
24934
 
24935
      _Fields(short thriftId, String fieldName) {
24936
        _thriftId = thriftId;
24937
        _fieldName = fieldName;
24938
      }
24939
 
24940
      public short getThriftFieldId() {
24941
        return _thriftId;
24942
      }
24943
 
24944
      public String getFieldName() {
24945
        return _fieldName;
24946
      }
24947
    }
24948
 
24949
    // isset id assignments
24950
 
24951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24952
    static {
24953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24954
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
24958
    }
24959
 
24960
    public addBadInventory_result() {
24961
    }
24962
 
24963
    public addBadInventory_result(
24964
      InventoryServiceException cex)
24965
    {
24966
      this();
24967
      this.cex = cex;
24968
    }
24969
 
24970
    /**
24971
     * Performs a deep copy on <i>other</i>.
24972
     */
24973
    public addBadInventory_result(addBadInventory_result other) {
24974
      if (other.isSetCex()) {
24975
        this.cex = new InventoryServiceException(other.cex);
24976
      }
24977
    }
24978
 
24979
    public addBadInventory_result deepCopy() {
24980
      return new addBadInventory_result(this);
24981
    }
24982
 
24983
    @Override
24984
    public void clear() {
24985
      this.cex = null;
24986
    }
24987
 
24988
    public InventoryServiceException getCex() {
24989
      return this.cex;
24990
    }
24991
 
24992
    public void setCex(InventoryServiceException cex) {
24993
      this.cex = cex;
24994
    }
24995
 
24996
    public void unsetCex() {
24997
      this.cex = null;
24998
    }
24999
 
25000
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
25001
    public boolean isSetCex() {
25002
      return this.cex != null;
25003
    }
25004
 
25005
    public void setCexIsSet(boolean value) {
25006
      if (!value) {
25007
        this.cex = null;
25008
      }
25009
    }
25010
 
25011
    public void setFieldValue(_Fields field, Object value) {
25012
      switch (field) {
25013
      case CEX:
25014
        if (value == null) {
25015
          unsetCex();
25016
        } else {
25017
          setCex((InventoryServiceException)value);
25018
        }
25019
        break;
25020
 
25021
      }
25022
    }
25023
 
25024
    public Object getFieldValue(_Fields field) {
25025
      switch (field) {
25026
      case CEX:
25027
        return getCex();
25028
 
25029
      }
25030
      throw new IllegalStateException();
25031
    }
25032
 
25033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25034
    public boolean isSet(_Fields field) {
25035
      if (field == null) {
25036
        throw new IllegalArgumentException();
25037
      }
25038
 
25039
      switch (field) {
25040
      case CEX:
25041
        return isSetCex();
25042
      }
25043
      throw new IllegalStateException();
25044
    }
25045
 
25046
    @Override
25047
    public boolean equals(Object that) {
25048
      if (that == null)
25049
        return false;
25050
      if (that instanceof addBadInventory_result)
25051
        return this.equals((addBadInventory_result)that);
25052
      return false;
25053
    }
25054
 
25055
    public boolean equals(addBadInventory_result that) {
25056
      if (that == null)
25057
        return false;
25058
 
25059
      boolean this_present_cex = true && this.isSetCex();
25060
      boolean that_present_cex = true && that.isSetCex();
25061
      if (this_present_cex || that_present_cex) {
25062
        if (!(this_present_cex && that_present_cex))
25063
          return false;
25064
        if (!this.cex.equals(that.cex))
25065
          return false;
25066
      }
25067
 
25068
      return true;
25069
    }
25070
 
25071
    @Override
25072
    public int hashCode() {
25073
      return 0;
25074
    }
25075
 
25076
    public int compareTo(addBadInventory_result other) {
25077
      if (!getClass().equals(other.getClass())) {
25078
        return getClass().getName().compareTo(other.getClass().getName());
25079
      }
25080
 
25081
      int lastComparison = 0;
25082
      addBadInventory_result typedOther = (addBadInventory_result)other;
25083
 
25084
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25085
      if (lastComparison != 0) {
25086
        return lastComparison;
25087
      }
25088
      if (isSetCex()) {
25089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25090
        if (lastComparison != 0) {
25091
          return lastComparison;
25092
        }
25093
      }
25094
      return 0;
25095
    }
25096
 
25097
    public _Fields fieldForId(int fieldId) {
25098
      return _Fields.findByThriftId(fieldId);
25099
    }
25100
 
25101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25102
      org.apache.thrift.protocol.TField field;
25103
      iprot.readStructBegin();
25104
      while (true)
25105
      {
25106
        field = iprot.readFieldBegin();
25107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25108
          break;
25109
        }
25110
        switch (field.id) {
25111
          case 1: // CEX
25112
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25113
              this.cex = new InventoryServiceException();
25114
              this.cex.read(iprot);
25115
            } else { 
25116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25117
            }
25118
            break;
25119
          default:
25120
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25121
        }
25122
        iprot.readFieldEnd();
25123
      }
25124
      iprot.readStructEnd();
25125
      validate();
25126
    }
25127
 
25128
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25129
      oprot.writeStructBegin(STRUCT_DESC);
25130
 
25131
      if (this.isSetCex()) {
25132
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25133
        this.cex.write(oprot);
25134
        oprot.writeFieldEnd();
25135
      }
25136
      oprot.writeFieldStop();
25137
      oprot.writeStructEnd();
25138
    }
25139
 
25140
    @Override
25141
    public String toString() {
25142
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
25143
      boolean first = true;
25144
 
25145
      sb.append("cex:");
25146
      if (this.cex == null) {
25147
        sb.append("null");
25148
      } else {
25149
        sb.append(this.cex);
25150
      }
25151
      first = false;
25152
      sb.append(")");
25153
      return sb.toString();
25154
    }
25155
 
25156
    public void validate() throws org.apache.thrift.TException {
25157
      // check for required fields
25158
    }
25159
 
25160
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25161
      try {
25162
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25163
      } catch (org.apache.thrift.TException te) {
25164
        throw new java.io.IOException(te);
25165
      }
25166
    }
25167
 
25168
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25169
      try {
25170
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25171
      } catch (org.apache.thrift.TException te) {
25172
        throw new java.io.IOException(te);
25173
      }
25174
    }
25175
 
25176
  }
25177
 
25178
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
25179
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
25180
 
25181
 
25182
 
25183
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25184
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25185
;
25186
 
25187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25188
 
25189
      static {
25190
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25191
          byName.put(field.getFieldName(), field);
25192
        }
25193
      }
25194
 
25195
      /**
25196
       * Find the _Fields constant that matches fieldId, or null if its not found.
25197
       */
25198
      public static _Fields findByThriftId(int fieldId) {
25199
        switch(fieldId) {
25200
          default:
25201
            return null;
25202
        }
25203
      }
25204
 
25205
      /**
25206
       * Find the _Fields constant that matches fieldId, throwing an exception
25207
       * if it is not found.
25208
       */
25209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25210
        _Fields fields = findByThriftId(fieldId);
25211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25212
        return fields;
25213
      }
25214
 
25215
      /**
25216
       * Find the _Fields constant that matches name, or null if its not found.
25217
       */
25218
      public static _Fields findByName(String name) {
25219
        return byName.get(name);
25220
      }
25221
 
25222
      private final short _thriftId;
25223
      private final String _fieldName;
25224
 
25225
      _Fields(short thriftId, String fieldName) {
25226
        _thriftId = thriftId;
25227
        _fieldName = fieldName;
25228
      }
25229
 
25230
      public short getThriftFieldId() {
25231
        return _thriftId;
25232
      }
25233
 
25234
      public String getFieldName() {
25235
        return _fieldName;
25236
      }
25237
    }
25238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25239
    static {
25240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
25243
    }
25244
 
25245
    public getShippingLocations_args() {
25246
    }
25247
 
25248
    /**
25249
     * Performs a deep copy on <i>other</i>.
25250
     */
25251
    public getShippingLocations_args(getShippingLocations_args other) {
25252
    }
25253
 
25254
    public getShippingLocations_args deepCopy() {
25255
      return new getShippingLocations_args(this);
25256
    }
25257
 
25258
    @Override
25259
    public void clear() {
25260
    }
25261
 
25262
    public void setFieldValue(_Fields field, Object value) {
25263
      switch (field) {
25264
      }
25265
    }
25266
 
25267
    public Object getFieldValue(_Fields field) {
25268
      switch (field) {
25269
      }
25270
      throw new IllegalStateException();
25271
    }
25272
 
25273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25274
    public boolean isSet(_Fields field) {
25275
      if (field == null) {
25276
        throw new IllegalArgumentException();
25277
      }
25278
 
25279
      switch (field) {
25280
      }
25281
      throw new IllegalStateException();
25282
    }
25283
 
25284
    @Override
25285
    public boolean equals(Object that) {
25286
      if (that == null)
25287
        return false;
25288
      if (that instanceof getShippingLocations_args)
25289
        return this.equals((getShippingLocations_args)that);
25290
      return false;
25291
    }
25292
 
25293
    public boolean equals(getShippingLocations_args that) {
25294
      if (that == null)
25295
        return false;
25296
 
25297
      return true;
25298
    }
25299
 
25300
    @Override
25301
    public int hashCode() {
25302
      return 0;
25303
    }
25304
 
25305
    public int compareTo(getShippingLocations_args other) {
25306
      if (!getClass().equals(other.getClass())) {
25307
        return getClass().getName().compareTo(other.getClass().getName());
25308
      }
25309
 
25310
      int lastComparison = 0;
25311
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
25312
 
25313
      return 0;
25314
    }
25315
 
25316
    public _Fields fieldForId(int fieldId) {
25317
      return _Fields.findByThriftId(fieldId);
25318
    }
25319
 
25320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25321
      org.apache.thrift.protocol.TField field;
25322
      iprot.readStructBegin();
25323
      while (true)
25324
      {
25325
        field = iprot.readFieldBegin();
25326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25327
          break;
25328
        }
25329
        switch (field.id) {
25330
          default:
25331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25332
        }
25333
        iprot.readFieldEnd();
25334
      }
25335
      iprot.readStructEnd();
25336
      validate();
25337
    }
25338
 
25339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25340
      validate();
25341
 
25342
      oprot.writeStructBegin(STRUCT_DESC);
25343
      oprot.writeFieldStop();
25344
      oprot.writeStructEnd();
25345
    }
25346
 
25347
    @Override
25348
    public String toString() {
25349
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
25350
      boolean first = true;
25351
 
25352
      sb.append(")");
25353
      return sb.toString();
25354
    }
25355
 
25356
    public void validate() throws org.apache.thrift.TException {
25357
      // check for required fields
25358
    }
25359
 
25360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25361
      try {
25362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25363
      } catch (org.apache.thrift.TException te) {
25364
        throw new java.io.IOException(te);
25365
      }
25366
    }
25367
 
25368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25369
      try {
25370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25371
      } catch (org.apache.thrift.TException te) {
25372
        throw new java.io.IOException(te);
25373
      }
25374
    }
25375
 
25376
  }
25377
 
25378
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
25379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
25380
 
25381
    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);
25382
 
25383
    private List<Warehouse> success; // required
25384
 
25385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25387
      SUCCESS((short)0, "success");
25388
 
25389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25390
 
25391
      static {
25392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25393
          byName.put(field.getFieldName(), field);
25394
        }
25395
      }
25396
 
25397
      /**
25398
       * Find the _Fields constant that matches fieldId, or null if its not found.
25399
       */
25400
      public static _Fields findByThriftId(int fieldId) {
25401
        switch(fieldId) {
25402
          case 0: // SUCCESS
25403
            return SUCCESS;
25404
          default:
25405
            return null;
25406
        }
25407
      }
25408
 
25409
      /**
25410
       * Find the _Fields constant that matches fieldId, throwing an exception
25411
       * if it is not found.
25412
       */
25413
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25414
        _Fields fields = findByThriftId(fieldId);
25415
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25416
        return fields;
25417
      }
25418
 
25419
      /**
25420
       * Find the _Fields constant that matches name, or null if its not found.
25421
       */
25422
      public static _Fields findByName(String name) {
25423
        return byName.get(name);
25424
      }
25425
 
25426
      private final short _thriftId;
25427
      private final String _fieldName;
25428
 
25429
      _Fields(short thriftId, String fieldName) {
25430
        _thriftId = thriftId;
25431
        _fieldName = fieldName;
25432
      }
25433
 
25434
      public short getThriftFieldId() {
25435
        return _thriftId;
25436
      }
25437
 
25438
      public String getFieldName() {
25439
        return _fieldName;
25440
      }
25441
    }
25442
 
25443
    // isset id assignments
25444
 
25445
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25446
    static {
25447
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25448
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25449
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25450
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
25453
    }
25454
 
25455
    public getShippingLocations_result() {
25456
    }
25457
 
25458
    public getShippingLocations_result(
25459
      List<Warehouse> success)
25460
    {
25461
      this();
25462
      this.success = success;
25463
    }
25464
 
25465
    /**
25466
     * Performs a deep copy on <i>other</i>.
25467
     */
25468
    public getShippingLocations_result(getShippingLocations_result other) {
25469
      if (other.isSetSuccess()) {
25470
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25471
        for (Warehouse other_element : other.success) {
25472
          __this__success.add(new Warehouse(other_element));
25473
        }
25474
        this.success = __this__success;
25475
      }
25476
    }
25477
 
25478
    public getShippingLocations_result deepCopy() {
25479
      return new getShippingLocations_result(this);
25480
    }
25481
 
25482
    @Override
25483
    public void clear() {
25484
      this.success = null;
25485
    }
25486
 
25487
    public int getSuccessSize() {
25488
      return (this.success == null) ? 0 : this.success.size();
25489
    }
25490
 
25491
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25492
      return (this.success == null) ? null : this.success.iterator();
25493
    }
25494
 
25495
    public void addToSuccess(Warehouse elem) {
25496
      if (this.success == null) {
25497
        this.success = new ArrayList<Warehouse>();
25498
      }
25499
      this.success.add(elem);
25500
    }
25501
 
25502
    public List<Warehouse> getSuccess() {
25503
      return this.success;
25504
    }
25505
 
25506
    public void setSuccess(List<Warehouse> success) {
25507
      this.success = success;
25508
    }
25509
 
25510
    public void unsetSuccess() {
25511
      this.success = null;
25512
    }
25513
 
25514
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25515
    public boolean isSetSuccess() {
25516
      return this.success != null;
25517
    }
25518
 
25519
    public void setSuccessIsSet(boolean value) {
25520
      if (!value) {
25521
        this.success = null;
25522
      }
25523
    }
25524
 
25525
    public void setFieldValue(_Fields field, Object value) {
25526
      switch (field) {
25527
      case SUCCESS:
25528
        if (value == null) {
25529
          unsetSuccess();
25530
        } else {
25531
          setSuccess((List<Warehouse>)value);
25532
        }
25533
        break;
25534
 
25535
      }
25536
    }
25537
 
25538
    public Object getFieldValue(_Fields field) {
25539
      switch (field) {
25540
      case SUCCESS:
25541
        return getSuccess();
25542
 
25543
      }
25544
      throw new IllegalStateException();
25545
    }
25546
 
25547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25548
    public boolean isSet(_Fields field) {
25549
      if (field == null) {
25550
        throw new IllegalArgumentException();
25551
      }
25552
 
25553
      switch (field) {
25554
      case SUCCESS:
25555
        return isSetSuccess();
25556
      }
25557
      throw new IllegalStateException();
25558
    }
25559
 
25560
    @Override
25561
    public boolean equals(Object that) {
25562
      if (that == null)
25563
        return false;
25564
      if (that instanceof getShippingLocations_result)
25565
        return this.equals((getShippingLocations_result)that);
25566
      return false;
25567
    }
25568
 
25569
    public boolean equals(getShippingLocations_result that) {
25570
      if (that == null)
25571
        return false;
25572
 
25573
      boolean this_present_success = true && this.isSetSuccess();
25574
      boolean that_present_success = true && that.isSetSuccess();
25575
      if (this_present_success || that_present_success) {
25576
        if (!(this_present_success && that_present_success))
25577
          return false;
25578
        if (!this.success.equals(that.success))
25579
          return false;
25580
      }
25581
 
25582
      return true;
25583
    }
25584
 
25585
    @Override
25586
    public int hashCode() {
25587
      return 0;
25588
    }
25589
 
25590
    public int compareTo(getShippingLocations_result other) {
25591
      if (!getClass().equals(other.getClass())) {
25592
        return getClass().getName().compareTo(other.getClass().getName());
25593
      }
25594
 
25595
      int lastComparison = 0;
25596
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
25597
 
25598
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25599
      if (lastComparison != 0) {
25600
        return lastComparison;
25601
      }
25602
      if (isSetSuccess()) {
25603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25604
        if (lastComparison != 0) {
25605
          return lastComparison;
25606
        }
25607
      }
25608
      return 0;
25609
    }
25610
 
25611
    public _Fields fieldForId(int fieldId) {
25612
      return _Fields.findByThriftId(fieldId);
25613
    }
25614
 
25615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25616
      org.apache.thrift.protocol.TField field;
25617
      iprot.readStructBegin();
25618
      while (true)
25619
      {
25620
        field = iprot.readFieldBegin();
25621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25622
          break;
25623
        }
25624
        switch (field.id) {
25625
          case 0: // SUCCESS
25626
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25627
              {
25628
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
25629
                this.success = new ArrayList<Warehouse>(_list66.size);
25630
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
25631
                {
25632
                  Warehouse _elem68; // required
25633
                  _elem68 = new Warehouse();
25634
                  _elem68.read(iprot);
25635
                  this.success.add(_elem68);
25636
                }
25637
                iprot.readListEnd();
25638
              }
25639
            } else { 
25640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25641
            }
25642
            break;
25643
          default:
25644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25645
        }
25646
        iprot.readFieldEnd();
25647
      }
25648
      iprot.readStructEnd();
25649
      validate();
25650
    }
25651
 
25652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25653
      oprot.writeStructBegin(STRUCT_DESC);
25654
 
25655
      if (this.isSetSuccess()) {
25656
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25657
        {
25658
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25659
          for (Warehouse _iter69 : this.success)
25660
          {
25661
            _iter69.write(oprot);
25662
          }
25663
          oprot.writeListEnd();
25664
        }
25665
        oprot.writeFieldEnd();
25666
      }
25667
      oprot.writeFieldStop();
25668
      oprot.writeStructEnd();
25669
    }
25670
 
25671
    @Override
25672
    public String toString() {
25673
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
25674
      boolean first = true;
25675
 
25676
      sb.append("success:");
25677
      if (this.success == null) {
25678
        sb.append("null");
25679
      } else {
25680
        sb.append(this.success);
25681
      }
25682
      first = false;
25683
      sb.append(")");
25684
      return sb.toString();
25685
    }
25686
 
25687
    public void validate() throws org.apache.thrift.TException {
25688
      // check for required fields
25689
    }
25690
 
25691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25692
      try {
25693
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25694
      } catch (org.apache.thrift.TException te) {
25695
        throw new java.io.IOException(te);
25696
      }
25697
    }
25698
 
25699
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25700
      try {
25701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25702
      } catch (org.apache.thrift.TException te) {
25703
        throw new java.io.IOException(te);
25704
      }
25705
    }
25706
 
25707
  }
25708
 
25709
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
25710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
25711
 
25712
 
25713
 
25714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25716
;
25717
 
25718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25719
 
25720
      static {
25721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25722
          byName.put(field.getFieldName(), field);
25723
        }
25724
      }
25725
 
25726
      /**
25727
       * Find the _Fields constant that matches fieldId, or null if its not found.
25728
       */
25729
      public static _Fields findByThriftId(int fieldId) {
25730
        switch(fieldId) {
25731
          default:
25732
            return null;
25733
        }
25734
      }
25735
 
25736
      /**
25737
       * Find the _Fields constant that matches fieldId, throwing an exception
25738
       * if it is not found.
25739
       */
25740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25741
        _Fields fields = findByThriftId(fieldId);
25742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25743
        return fields;
25744
      }
25745
 
25746
      /**
25747
       * Find the _Fields constant that matches name, or null if its not found.
25748
       */
25749
      public static _Fields findByName(String name) {
25750
        return byName.get(name);
25751
      }
25752
 
25753
      private final short _thriftId;
25754
      private final String _fieldName;
25755
 
25756
      _Fields(short thriftId, String fieldName) {
25757
        _thriftId = thriftId;
25758
        _fieldName = fieldName;
25759
      }
25760
 
25761
      public short getThriftFieldId() {
25762
        return _thriftId;
25763
      }
25764
 
25765
      public String getFieldName() {
25766
        return _fieldName;
25767
      }
25768
    }
25769
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25770
    static {
25771
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
25774
    }
25775
 
25776
    public getAllVendorItemMappings_args() {
25777
    }
25778
 
25779
    /**
25780
     * Performs a deep copy on <i>other</i>.
25781
     */
25782
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
25783
    }
25784
 
25785
    public getAllVendorItemMappings_args deepCopy() {
25786
      return new getAllVendorItemMappings_args(this);
25787
    }
25788
 
25789
    @Override
25790
    public void clear() {
25791
    }
25792
 
25793
    public void setFieldValue(_Fields field, Object value) {
25794
      switch (field) {
25795
      }
25796
    }
25797
 
25798
    public Object getFieldValue(_Fields field) {
25799
      switch (field) {
25800
      }
25801
      throw new IllegalStateException();
25802
    }
25803
 
25804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25805
    public boolean isSet(_Fields field) {
25806
      if (field == null) {
25807
        throw new IllegalArgumentException();
25808
      }
25809
 
25810
      switch (field) {
25811
      }
25812
      throw new IllegalStateException();
25813
    }
25814
 
25815
    @Override
25816
    public boolean equals(Object that) {
25817
      if (that == null)
25818
        return false;
25819
      if (that instanceof getAllVendorItemMappings_args)
25820
        return this.equals((getAllVendorItemMappings_args)that);
25821
      return false;
25822
    }
25823
 
25824
    public boolean equals(getAllVendorItemMappings_args that) {
25825
      if (that == null)
25826
        return false;
25827
 
25828
      return true;
25829
    }
25830
 
25831
    @Override
25832
    public int hashCode() {
25833
      return 0;
25834
    }
25835
 
25836
    public int compareTo(getAllVendorItemMappings_args other) {
25837
      if (!getClass().equals(other.getClass())) {
25838
        return getClass().getName().compareTo(other.getClass().getName());
25839
      }
25840
 
25841
      int lastComparison = 0;
25842
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
25843
 
25844
      return 0;
25845
    }
25846
 
25847
    public _Fields fieldForId(int fieldId) {
25848
      return _Fields.findByThriftId(fieldId);
25849
    }
25850
 
25851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25852
      org.apache.thrift.protocol.TField field;
25853
      iprot.readStructBegin();
25854
      while (true)
25855
      {
25856
        field = iprot.readFieldBegin();
25857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25858
          break;
25859
        }
25860
        switch (field.id) {
25861
          default:
25862
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25863
        }
25864
        iprot.readFieldEnd();
25865
      }
25866
      iprot.readStructEnd();
25867
      validate();
25868
    }
25869
 
25870
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25871
      validate();
25872
 
25873
      oprot.writeStructBegin(STRUCT_DESC);
25874
      oprot.writeFieldStop();
25875
      oprot.writeStructEnd();
25876
    }
25877
 
25878
    @Override
25879
    public String toString() {
25880
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
25881
      boolean first = true;
25882
 
25883
      sb.append(")");
25884
      return sb.toString();
25885
    }
25886
 
25887
    public void validate() throws org.apache.thrift.TException {
25888
      // check for required fields
25889
    }
25890
 
25891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25892
      try {
25893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25894
      } catch (org.apache.thrift.TException te) {
25895
        throw new java.io.IOException(te);
25896
      }
25897
    }
25898
 
25899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25900
      try {
25901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25902
      } catch (org.apache.thrift.TException te) {
25903
        throw new java.io.IOException(te);
25904
      }
25905
    }
25906
 
25907
  }
25908
 
25909
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
25910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
25911
 
25912
    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);
25913
 
25914
    private List<VendorItemMapping> success; // required
25915
 
25916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25918
      SUCCESS((short)0, "success");
25919
 
25920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25921
 
25922
      static {
25923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25924
          byName.put(field.getFieldName(), field);
25925
        }
25926
      }
25927
 
25928
      /**
25929
       * Find the _Fields constant that matches fieldId, or null if its not found.
25930
       */
25931
      public static _Fields findByThriftId(int fieldId) {
25932
        switch(fieldId) {
25933
          case 0: // SUCCESS
25934
            return SUCCESS;
25935
          default:
25936
            return null;
25937
        }
25938
      }
25939
 
25940
      /**
25941
       * Find the _Fields constant that matches fieldId, throwing an exception
25942
       * if it is not found.
25943
       */
25944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25945
        _Fields fields = findByThriftId(fieldId);
25946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25947
        return fields;
25948
      }
25949
 
25950
      /**
25951
       * Find the _Fields constant that matches name, or null if its not found.
25952
       */
25953
      public static _Fields findByName(String name) {
25954
        return byName.get(name);
25955
      }
25956
 
25957
      private final short _thriftId;
25958
      private final String _fieldName;
25959
 
25960
      _Fields(short thriftId, String fieldName) {
25961
        _thriftId = thriftId;
25962
        _fieldName = fieldName;
25963
      }
25964
 
25965
      public short getThriftFieldId() {
25966
        return _thriftId;
25967
      }
25968
 
25969
      public String getFieldName() {
25970
        return _fieldName;
25971
      }
25972
    }
25973
 
25974
    // isset id assignments
25975
 
25976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25977
    static {
25978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25979
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25980
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25981
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
25982
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25983
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
25984
    }
25985
 
25986
    public getAllVendorItemMappings_result() {
25987
    }
25988
 
25989
    public getAllVendorItemMappings_result(
25990
      List<VendorItemMapping> success)
25991
    {
25992
      this();
25993
      this.success = success;
25994
    }
25995
 
25996
    /**
25997
     * Performs a deep copy on <i>other</i>.
25998
     */
25999
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
26000
      if (other.isSetSuccess()) {
26001
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
26002
        for (VendorItemMapping other_element : other.success) {
26003
          __this__success.add(new VendorItemMapping(other_element));
26004
        }
26005
        this.success = __this__success;
26006
      }
26007
    }
26008
 
26009
    public getAllVendorItemMappings_result deepCopy() {
26010
      return new getAllVendorItemMappings_result(this);
26011
    }
26012
 
26013
    @Override
26014
    public void clear() {
26015
      this.success = null;
26016
    }
26017
 
26018
    public int getSuccessSize() {
26019
      return (this.success == null) ? 0 : this.success.size();
26020
    }
26021
 
26022
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
26023
      return (this.success == null) ? null : this.success.iterator();
26024
    }
26025
 
26026
    public void addToSuccess(VendorItemMapping elem) {
26027
      if (this.success == null) {
26028
        this.success = new ArrayList<VendorItemMapping>();
26029
      }
26030
      this.success.add(elem);
26031
    }
26032
 
26033
    public List<VendorItemMapping> getSuccess() {
26034
      return this.success;
26035
    }
26036
 
26037
    public void setSuccess(List<VendorItemMapping> success) {
26038
      this.success = success;
26039
    }
26040
 
26041
    public void unsetSuccess() {
26042
      this.success = null;
26043
    }
26044
 
26045
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26046
    public boolean isSetSuccess() {
26047
      return this.success != null;
26048
    }
26049
 
26050
    public void setSuccessIsSet(boolean value) {
26051
      if (!value) {
26052
        this.success = null;
26053
      }
26054
    }
26055
 
26056
    public void setFieldValue(_Fields field, Object value) {
26057
      switch (field) {
26058
      case SUCCESS:
26059
        if (value == null) {
26060
          unsetSuccess();
26061
        } else {
26062
          setSuccess((List<VendorItemMapping>)value);
26063
        }
26064
        break;
26065
 
26066
      }
26067
    }
26068
 
26069
    public Object getFieldValue(_Fields field) {
26070
      switch (field) {
26071
      case SUCCESS:
26072
        return getSuccess();
26073
 
26074
      }
26075
      throw new IllegalStateException();
26076
    }
26077
 
26078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26079
    public boolean isSet(_Fields field) {
26080
      if (field == null) {
26081
        throw new IllegalArgumentException();
26082
      }
26083
 
26084
      switch (field) {
26085
      case SUCCESS:
26086
        return isSetSuccess();
26087
      }
26088
      throw new IllegalStateException();
26089
    }
26090
 
26091
    @Override
26092
    public boolean equals(Object that) {
26093
      if (that == null)
26094
        return false;
26095
      if (that instanceof getAllVendorItemMappings_result)
26096
        return this.equals((getAllVendorItemMappings_result)that);
26097
      return false;
26098
    }
26099
 
26100
    public boolean equals(getAllVendorItemMappings_result that) {
26101
      if (that == null)
26102
        return false;
26103
 
26104
      boolean this_present_success = true && this.isSetSuccess();
26105
      boolean that_present_success = true && that.isSetSuccess();
26106
      if (this_present_success || that_present_success) {
26107
        if (!(this_present_success && that_present_success))
26108
          return false;
26109
        if (!this.success.equals(that.success))
26110
          return false;
26111
      }
26112
 
26113
      return true;
26114
    }
26115
 
26116
    @Override
26117
    public int hashCode() {
26118
      return 0;
26119
    }
26120
 
26121
    public int compareTo(getAllVendorItemMappings_result other) {
26122
      if (!getClass().equals(other.getClass())) {
26123
        return getClass().getName().compareTo(other.getClass().getName());
26124
      }
26125
 
26126
      int lastComparison = 0;
26127
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
26128
 
26129
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26130
      if (lastComparison != 0) {
26131
        return lastComparison;
26132
      }
26133
      if (isSetSuccess()) {
26134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26135
        if (lastComparison != 0) {
26136
          return lastComparison;
26137
        }
26138
      }
26139
      return 0;
26140
    }
26141
 
26142
    public _Fields fieldForId(int fieldId) {
26143
      return _Fields.findByThriftId(fieldId);
26144
    }
26145
 
26146
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26147
      org.apache.thrift.protocol.TField field;
26148
      iprot.readStructBegin();
26149
      while (true)
26150
      {
26151
        field = iprot.readFieldBegin();
26152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26153
          break;
26154
        }
26155
        switch (field.id) {
26156
          case 0: // SUCCESS
26157
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26158
              {
26159
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
26160
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
26161
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
26162
                {
26163
                  VendorItemMapping _elem72; // required
26164
                  _elem72 = new VendorItemMapping();
26165
                  _elem72.read(iprot);
26166
                  this.success.add(_elem72);
26167
                }
26168
                iprot.readListEnd();
26169
              }
26170
            } else { 
26171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26172
            }
26173
            break;
26174
          default:
26175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26176
        }
26177
        iprot.readFieldEnd();
26178
      }
26179
      iprot.readStructEnd();
26180
      validate();
26181
    }
26182
 
26183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26184
      oprot.writeStructBegin(STRUCT_DESC);
26185
 
26186
      if (this.isSetSuccess()) {
26187
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26188
        {
26189
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26190
          for (VendorItemMapping _iter73 : this.success)
26191
          {
26192
            _iter73.write(oprot);
26193
          }
26194
          oprot.writeListEnd();
26195
        }
26196
        oprot.writeFieldEnd();
26197
      }
26198
      oprot.writeFieldStop();
26199
      oprot.writeStructEnd();
26200
    }
26201
 
26202
    @Override
26203
    public String toString() {
26204
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
26205
      boolean first = true;
26206
 
26207
      sb.append("success:");
26208
      if (this.success == null) {
26209
        sb.append("null");
26210
      } else {
26211
        sb.append(this.success);
26212
      }
26213
      first = false;
26214
      sb.append(")");
26215
      return sb.toString();
26216
    }
26217
 
26218
    public void validate() throws org.apache.thrift.TException {
26219
      // check for required fields
26220
    }
26221
 
26222
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26223
      try {
26224
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26225
      } catch (org.apache.thrift.TException te) {
26226
        throw new java.io.IOException(te);
26227
      }
26228
    }
26229
 
26230
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26231
      try {
26232
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26233
      } catch (org.apache.thrift.TException te) {
26234
        throw new java.io.IOException(te);
26235
      }
26236
    }
26237
 
26238
  }
26239
 
26240
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
26241
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
26242
 
26243
    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);
26244
 
26245
    private long warehouseId; // required
26246
 
26247
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26248
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26249
      WAREHOUSE_ID((short)1, "warehouseId");
26250
 
26251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26252
 
26253
      static {
26254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26255
          byName.put(field.getFieldName(), field);
26256
        }
26257
      }
26258
 
26259
      /**
26260
       * Find the _Fields constant that matches fieldId, or null if its not found.
26261
       */
26262
      public static _Fields findByThriftId(int fieldId) {
26263
        switch(fieldId) {
26264
          case 1: // WAREHOUSE_ID
26265
            return WAREHOUSE_ID;
26266
          default:
26267
            return null;
26268
        }
26269
      }
26270
 
26271
      /**
26272
       * Find the _Fields constant that matches fieldId, throwing an exception
26273
       * if it is not found.
26274
       */
26275
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26276
        _Fields fields = findByThriftId(fieldId);
26277
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26278
        return fields;
26279
      }
26280
 
26281
      /**
26282
       * Find the _Fields constant that matches name, or null if its not found.
26283
       */
26284
      public static _Fields findByName(String name) {
26285
        return byName.get(name);
26286
      }
26287
 
26288
      private final short _thriftId;
26289
      private final String _fieldName;
26290
 
26291
      _Fields(short thriftId, String fieldName) {
26292
        _thriftId = thriftId;
26293
        _fieldName = fieldName;
26294
      }
26295
 
26296
      public short getThriftFieldId() {
26297
        return _thriftId;
26298
      }
26299
 
26300
      public String getFieldName() {
26301
        return _fieldName;
26302
      }
26303
    }
26304
 
26305
    // isset id assignments
26306
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26307
    private BitSet __isset_bit_vector = new BitSet(1);
26308
 
26309
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26310
    static {
26311
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26312
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
26316
    }
26317
 
26318
    public getInventorySnapshot_args() {
26319
    }
26320
 
26321
    public getInventorySnapshot_args(
26322
      long warehouseId)
26323
    {
26324
      this();
26325
      this.warehouseId = warehouseId;
26326
      setWarehouseIdIsSet(true);
26327
    }
26328
 
26329
    /**
26330
     * Performs a deep copy on <i>other</i>.
26331
     */
26332
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
26333
      __isset_bit_vector.clear();
26334
      __isset_bit_vector.or(other.__isset_bit_vector);
26335
      this.warehouseId = other.warehouseId;
26336
    }
26337
 
26338
    public getInventorySnapshot_args deepCopy() {
26339
      return new getInventorySnapshot_args(this);
26340
    }
26341
 
26342
    @Override
26343
    public void clear() {
26344
      setWarehouseIdIsSet(false);
26345
      this.warehouseId = 0;
26346
    }
26347
 
26348
    public long getWarehouseId() {
26349
      return this.warehouseId;
26350
    }
26351
 
26352
    public void setWarehouseId(long warehouseId) {
26353
      this.warehouseId = warehouseId;
26354
      setWarehouseIdIsSet(true);
26355
    }
26356
 
26357
    public void unsetWarehouseId() {
26358
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26359
    }
26360
 
26361
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26362
    public boolean isSetWarehouseId() {
26363
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26364
    }
26365
 
26366
    public void setWarehouseIdIsSet(boolean value) {
26367
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26368
    }
26369
 
26370
    public void setFieldValue(_Fields field, Object value) {
26371
      switch (field) {
26372
      case WAREHOUSE_ID:
26373
        if (value == null) {
26374
          unsetWarehouseId();
26375
        } else {
26376
          setWarehouseId((Long)value);
26377
        }
26378
        break;
26379
 
26380
      }
26381
    }
26382
 
26383
    public Object getFieldValue(_Fields field) {
26384
      switch (field) {
26385
      case WAREHOUSE_ID:
26386
        return Long.valueOf(getWarehouseId());
26387
 
26388
      }
26389
      throw new IllegalStateException();
26390
    }
26391
 
26392
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26393
    public boolean isSet(_Fields field) {
26394
      if (field == null) {
26395
        throw new IllegalArgumentException();
26396
      }
26397
 
26398
      switch (field) {
26399
      case WAREHOUSE_ID:
26400
        return isSetWarehouseId();
26401
      }
26402
      throw new IllegalStateException();
26403
    }
26404
 
26405
    @Override
26406
    public boolean equals(Object that) {
26407
      if (that == null)
26408
        return false;
26409
      if (that instanceof getInventorySnapshot_args)
26410
        return this.equals((getInventorySnapshot_args)that);
26411
      return false;
26412
    }
26413
 
26414
    public boolean equals(getInventorySnapshot_args that) {
26415
      if (that == null)
26416
        return false;
26417
 
26418
      boolean this_present_warehouseId = true;
26419
      boolean that_present_warehouseId = true;
26420
      if (this_present_warehouseId || that_present_warehouseId) {
26421
        if (!(this_present_warehouseId && that_present_warehouseId))
26422
          return false;
26423
        if (this.warehouseId != that.warehouseId)
26424
          return false;
26425
      }
26426
 
26427
      return true;
26428
    }
26429
 
26430
    @Override
26431
    public int hashCode() {
26432
      return 0;
26433
    }
26434
 
26435
    public int compareTo(getInventorySnapshot_args other) {
26436
      if (!getClass().equals(other.getClass())) {
26437
        return getClass().getName().compareTo(other.getClass().getName());
26438
      }
26439
 
26440
      int lastComparison = 0;
26441
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
26442
 
26443
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26444
      if (lastComparison != 0) {
26445
        return lastComparison;
26446
      }
26447
      if (isSetWarehouseId()) {
26448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26449
        if (lastComparison != 0) {
26450
          return lastComparison;
26451
        }
26452
      }
26453
      return 0;
26454
    }
26455
 
26456
    public _Fields fieldForId(int fieldId) {
26457
      return _Fields.findByThriftId(fieldId);
26458
    }
26459
 
26460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26461
      org.apache.thrift.protocol.TField field;
26462
      iprot.readStructBegin();
26463
      while (true)
26464
      {
26465
        field = iprot.readFieldBegin();
26466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26467
          break;
26468
        }
26469
        switch (field.id) {
26470
          case 1: // WAREHOUSE_ID
26471
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26472
              this.warehouseId = iprot.readI64();
26473
              setWarehouseIdIsSet(true);
26474
            } else { 
26475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26476
            }
26477
            break;
26478
          default:
26479
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26480
        }
26481
        iprot.readFieldEnd();
26482
      }
26483
      iprot.readStructEnd();
26484
      validate();
26485
    }
26486
 
26487
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26488
      validate();
26489
 
26490
      oprot.writeStructBegin(STRUCT_DESC);
26491
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26492
      oprot.writeI64(this.warehouseId);
26493
      oprot.writeFieldEnd();
26494
      oprot.writeFieldStop();
26495
      oprot.writeStructEnd();
26496
    }
26497
 
26498
    @Override
26499
    public String toString() {
26500
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
26501
      boolean first = true;
26502
 
26503
      sb.append("warehouseId:");
26504
      sb.append(this.warehouseId);
26505
      first = false;
26506
      sb.append(")");
26507
      return sb.toString();
26508
    }
26509
 
26510
    public void validate() throws org.apache.thrift.TException {
26511
      // check for required fields
26512
    }
26513
 
26514
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26515
      try {
26516
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26517
      } catch (org.apache.thrift.TException te) {
26518
        throw new java.io.IOException(te);
26519
      }
26520
    }
26521
 
26522
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26523
      try {
26524
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26525
        __isset_bit_vector = new BitSet(1);
26526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26527
      } catch (org.apache.thrift.TException te) {
26528
        throw new java.io.IOException(te);
26529
      }
26530
    }
26531
 
26532
  }
26533
 
26534
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
26535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
26536
 
26537
    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);
26538
 
26539
    private Map<Long,ItemInventory> success; // required
26540
 
26541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26543
      SUCCESS((short)0, "success");
26544
 
26545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26546
 
26547
      static {
26548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26549
          byName.put(field.getFieldName(), field);
26550
        }
26551
      }
26552
 
26553
      /**
26554
       * Find the _Fields constant that matches fieldId, or null if its not found.
26555
       */
26556
      public static _Fields findByThriftId(int fieldId) {
26557
        switch(fieldId) {
26558
          case 0: // SUCCESS
26559
            return SUCCESS;
26560
          default:
26561
            return null;
26562
        }
26563
      }
26564
 
26565
      /**
26566
       * Find the _Fields constant that matches fieldId, throwing an exception
26567
       * if it is not found.
26568
       */
26569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26570
        _Fields fields = findByThriftId(fieldId);
26571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26572
        return fields;
26573
      }
26574
 
26575
      /**
26576
       * Find the _Fields constant that matches name, or null if its not found.
26577
       */
26578
      public static _Fields findByName(String name) {
26579
        return byName.get(name);
26580
      }
26581
 
26582
      private final short _thriftId;
26583
      private final String _fieldName;
26584
 
26585
      _Fields(short thriftId, String fieldName) {
26586
        _thriftId = thriftId;
26587
        _fieldName = fieldName;
26588
      }
26589
 
26590
      public short getThriftFieldId() {
26591
        return _thriftId;
26592
      }
26593
 
26594
      public String getFieldName() {
26595
        return _fieldName;
26596
      }
26597
    }
26598
 
26599
    // isset id assignments
26600
 
26601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26602
    static {
26603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26604
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26605
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
26606
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
26607
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
26608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
26610
    }
26611
 
26612
    public getInventorySnapshot_result() {
26613
    }
26614
 
26615
    public getInventorySnapshot_result(
26616
      Map<Long,ItemInventory> success)
26617
    {
26618
      this();
26619
      this.success = success;
26620
    }
26621
 
26622
    /**
26623
     * Performs a deep copy on <i>other</i>.
26624
     */
26625
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
26626
      if (other.isSetSuccess()) {
26627
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
26628
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
26629
 
26630
          Long other_element_key = other_element.getKey();
26631
          ItemInventory other_element_value = other_element.getValue();
26632
 
26633
          Long __this__success_copy_key = other_element_key;
26634
 
26635
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
26636
 
26637
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
26638
        }
26639
        this.success = __this__success;
26640
      }
26641
    }
26642
 
26643
    public getInventorySnapshot_result deepCopy() {
26644
      return new getInventorySnapshot_result(this);
26645
    }
26646
 
26647
    @Override
26648
    public void clear() {
26649
      this.success = null;
26650
    }
26651
 
26652
    public int getSuccessSize() {
26653
      return (this.success == null) ? 0 : this.success.size();
26654
    }
26655
 
26656
    public void putToSuccess(long key, ItemInventory val) {
26657
      if (this.success == null) {
26658
        this.success = new HashMap<Long,ItemInventory>();
26659
      }
26660
      this.success.put(key, val);
26661
    }
26662
 
26663
    public Map<Long,ItemInventory> getSuccess() {
26664
      return this.success;
26665
    }
26666
 
26667
    public void setSuccess(Map<Long,ItemInventory> success) {
26668
      this.success = success;
26669
    }
26670
 
26671
    public void unsetSuccess() {
26672
      this.success = null;
26673
    }
26674
 
26675
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26676
    public boolean isSetSuccess() {
26677
      return this.success != null;
26678
    }
26679
 
26680
    public void setSuccessIsSet(boolean value) {
26681
      if (!value) {
26682
        this.success = null;
26683
      }
26684
    }
26685
 
26686
    public void setFieldValue(_Fields field, Object value) {
26687
      switch (field) {
26688
      case SUCCESS:
26689
        if (value == null) {
26690
          unsetSuccess();
26691
        } else {
26692
          setSuccess((Map<Long,ItemInventory>)value);
26693
        }
26694
        break;
26695
 
26696
      }
26697
    }
26698
 
26699
    public Object getFieldValue(_Fields field) {
26700
      switch (field) {
26701
      case SUCCESS:
26702
        return getSuccess();
26703
 
26704
      }
26705
      throw new IllegalStateException();
26706
    }
26707
 
26708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26709
    public boolean isSet(_Fields field) {
26710
      if (field == null) {
26711
        throw new IllegalArgumentException();
26712
      }
26713
 
26714
      switch (field) {
26715
      case SUCCESS:
26716
        return isSetSuccess();
26717
      }
26718
      throw new IllegalStateException();
26719
    }
26720
 
26721
    @Override
26722
    public boolean equals(Object that) {
26723
      if (that == null)
26724
        return false;
26725
      if (that instanceof getInventorySnapshot_result)
26726
        return this.equals((getInventorySnapshot_result)that);
26727
      return false;
26728
    }
26729
 
26730
    public boolean equals(getInventorySnapshot_result that) {
26731
      if (that == null)
26732
        return false;
26733
 
26734
      boolean this_present_success = true && this.isSetSuccess();
26735
      boolean that_present_success = true && that.isSetSuccess();
26736
      if (this_present_success || that_present_success) {
26737
        if (!(this_present_success && that_present_success))
26738
          return false;
26739
        if (!this.success.equals(that.success))
26740
          return false;
26741
      }
26742
 
26743
      return true;
26744
    }
26745
 
26746
    @Override
26747
    public int hashCode() {
26748
      return 0;
26749
    }
26750
 
26751
    public int compareTo(getInventorySnapshot_result other) {
26752
      if (!getClass().equals(other.getClass())) {
26753
        return getClass().getName().compareTo(other.getClass().getName());
26754
      }
26755
 
26756
      int lastComparison = 0;
26757
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
26758
 
26759
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26760
      if (lastComparison != 0) {
26761
        return lastComparison;
26762
      }
26763
      if (isSetSuccess()) {
26764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26765
        if (lastComparison != 0) {
26766
          return lastComparison;
26767
        }
26768
      }
26769
      return 0;
26770
    }
26771
 
26772
    public _Fields fieldForId(int fieldId) {
26773
      return _Fields.findByThriftId(fieldId);
26774
    }
26775
 
26776
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26777
      org.apache.thrift.protocol.TField field;
26778
      iprot.readStructBegin();
26779
      while (true)
26780
      {
26781
        field = iprot.readFieldBegin();
26782
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26783
          break;
26784
        }
26785
        switch (field.id) {
26786
          case 0: // SUCCESS
26787
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
26788
              {
26789
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
26790
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
26791
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
26792
                {
26793
                  long _key76; // required
26794
                  ItemInventory _val77; // required
26795
                  _key76 = iprot.readI64();
26796
                  _val77 = new ItemInventory();
26797
                  _val77.read(iprot);
26798
                  this.success.put(_key76, _val77);
26799
                }
26800
                iprot.readMapEnd();
26801
              }
26802
            } else { 
26803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26804
            }
26805
            break;
26806
          default:
26807
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26808
        }
26809
        iprot.readFieldEnd();
26810
      }
26811
      iprot.readStructEnd();
26812
      validate();
26813
    }
26814
 
26815
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26816
      oprot.writeStructBegin(STRUCT_DESC);
26817
 
26818
      if (this.isSetSuccess()) {
26819
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26820
        {
26821
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26822
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
26823
          {
26824
            oprot.writeI64(_iter78.getKey());
26825
            _iter78.getValue().write(oprot);
26826
          }
26827
          oprot.writeMapEnd();
26828
        }
26829
        oprot.writeFieldEnd();
26830
      }
26831
      oprot.writeFieldStop();
26832
      oprot.writeStructEnd();
26833
    }
26834
 
26835
    @Override
26836
    public String toString() {
26837
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
26838
      boolean first = true;
26839
 
26840
      sb.append("success:");
26841
      if (this.success == null) {
26842
        sb.append("null");
26843
      } else {
26844
        sb.append(this.success);
26845
      }
26846
      first = false;
26847
      sb.append(")");
26848
      return sb.toString();
26849
    }
26850
 
26851
    public void validate() throws org.apache.thrift.TException {
26852
      // check for required fields
26853
    }
26854
 
26855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26856
      try {
26857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26858
      } catch (org.apache.thrift.TException te) {
26859
        throw new java.io.IOException(te);
26860
      }
26861
    }
26862
 
26863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26864
      try {
26865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26866
      } catch (org.apache.thrift.TException te) {
26867
        throw new java.io.IOException(te);
26868
      }
26869
    }
26870
 
26871
  }
26872
 
26873
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
26874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
26875
 
26876
 
26877
 
26878
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26879
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26880
;
26881
 
26882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26883
 
26884
      static {
26885
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26886
          byName.put(field.getFieldName(), field);
26887
        }
26888
      }
26889
 
26890
      /**
26891
       * Find the _Fields constant that matches fieldId, or null if its not found.
26892
       */
26893
      public static _Fields findByThriftId(int fieldId) {
26894
        switch(fieldId) {
26895
          default:
26896
            return null;
26897
        }
26898
      }
26899
 
26900
      /**
26901
       * Find the _Fields constant that matches fieldId, throwing an exception
26902
       * if it is not found.
26903
       */
26904
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26905
        _Fields fields = findByThriftId(fieldId);
26906
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26907
        return fields;
26908
      }
26909
 
26910
      /**
26911
       * Find the _Fields constant that matches name, or null if its not found.
26912
       */
26913
      public static _Fields findByName(String name) {
26914
        return byName.get(name);
26915
      }
26916
 
26917
      private final short _thriftId;
26918
      private final String _fieldName;
26919
 
26920
      _Fields(short thriftId, String fieldName) {
26921
        _thriftId = thriftId;
26922
        _fieldName = fieldName;
26923
      }
26924
 
26925
      public short getThriftFieldId() {
26926
        return _thriftId;
26927
      }
26928
 
26929
      public String getFieldName() {
26930
        return _fieldName;
26931
      }
26932
    }
26933
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26934
    static {
26935
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
26938
    }
26939
 
26940
    public clearItemAvailabilityCache_args() {
26941
    }
26942
 
26943
    /**
26944
     * Performs a deep copy on <i>other</i>.
26945
     */
26946
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
26947
    }
26948
 
26949
    public clearItemAvailabilityCache_args deepCopy() {
26950
      return new clearItemAvailabilityCache_args(this);
26951
    }
26952
 
26953
    @Override
26954
    public void clear() {
26955
    }
26956
 
26957
    public void setFieldValue(_Fields field, Object value) {
26958
      switch (field) {
26959
      }
26960
    }
26961
 
26962
    public Object getFieldValue(_Fields field) {
26963
      switch (field) {
26964
      }
26965
      throw new IllegalStateException();
26966
    }
26967
 
26968
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26969
    public boolean isSet(_Fields field) {
26970
      if (field == null) {
26971
        throw new IllegalArgumentException();
26972
      }
26973
 
26974
      switch (field) {
26975
      }
26976
      throw new IllegalStateException();
26977
    }
26978
 
26979
    @Override
26980
    public boolean equals(Object that) {
26981
      if (that == null)
26982
        return false;
26983
      if (that instanceof clearItemAvailabilityCache_args)
26984
        return this.equals((clearItemAvailabilityCache_args)that);
26985
      return false;
26986
    }
26987
 
26988
    public boolean equals(clearItemAvailabilityCache_args that) {
26989
      if (that == null)
26990
        return false;
26991
 
26992
      return true;
26993
    }
26994
 
26995
    @Override
26996
    public int hashCode() {
26997
      return 0;
26998
    }
26999
 
27000
    public int compareTo(clearItemAvailabilityCache_args other) {
27001
      if (!getClass().equals(other.getClass())) {
27002
        return getClass().getName().compareTo(other.getClass().getName());
27003
      }
27004
 
27005
      int lastComparison = 0;
27006
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
27007
 
27008
      return 0;
27009
    }
27010
 
27011
    public _Fields fieldForId(int fieldId) {
27012
      return _Fields.findByThriftId(fieldId);
27013
    }
27014
 
27015
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27016
      org.apache.thrift.protocol.TField field;
27017
      iprot.readStructBegin();
27018
      while (true)
27019
      {
27020
        field = iprot.readFieldBegin();
27021
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27022
          break;
27023
        }
27024
        switch (field.id) {
27025
          default:
27026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27027
        }
27028
        iprot.readFieldEnd();
27029
      }
27030
      iprot.readStructEnd();
27031
      validate();
27032
    }
27033
 
27034
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27035
      validate();
27036
 
27037
      oprot.writeStructBegin(STRUCT_DESC);
27038
      oprot.writeFieldStop();
27039
      oprot.writeStructEnd();
27040
    }
27041
 
27042
    @Override
27043
    public String toString() {
27044
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
27045
      boolean first = true;
27046
 
27047
      sb.append(")");
27048
      return sb.toString();
27049
    }
27050
 
27051
    public void validate() throws org.apache.thrift.TException {
27052
      // check for required fields
27053
    }
27054
 
27055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27056
      try {
27057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27058
      } catch (org.apache.thrift.TException te) {
27059
        throw new java.io.IOException(te);
27060
      }
27061
    }
27062
 
27063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27064
      try {
27065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27066
      } catch (org.apache.thrift.TException te) {
27067
        throw new java.io.IOException(te);
27068
      }
27069
    }
27070
 
27071
  }
27072
 
27073
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
27074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
27075
 
27076
 
27077
 
27078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27079
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27080
;
27081
 
27082
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27083
 
27084
      static {
27085
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27086
          byName.put(field.getFieldName(), field);
27087
        }
27088
      }
27089
 
27090
      /**
27091
       * Find the _Fields constant that matches fieldId, or null if its not found.
27092
       */
27093
      public static _Fields findByThriftId(int fieldId) {
27094
        switch(fieldId) {
27095
          default:
27096
            return null;
27097
        }
27098
      }
27099
 
27100
      /**
27101
       * Find the _Fields constant that matches fieldId, throwing an exception
27102
       * if it is not found.
27103
       */
27104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27105
        _Fields fields = findByThriftId(fieldId);
27106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27107
        return fields;
27108
      }
27109
 
27110
      /**
27111
       * Find the _Fields constant that matches name, or null if its not found.
27112
       */
27113
      public static _Fields findByName(String name) {
27114
        return byName.get(name);
27115
      }
27116
 
27117
      private final short _thriftId;
27118
      private final String _fieldName;
27119
 
27120
      _Fields(short thriftId, String fieldName) {
27121
        _thriftId = thriftId;
27122
        _fieldName = fieldName;
27123
      }
27124
 
27125
      public short getThriftFieldId() {
27126
        return _thriftId;
27127
      }
27128
 
27129
      public String getFieldName() {
27130
        return _fieldName;
27131
      }
27132
    }
27133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27134
    static {
27135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27136
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27137
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
27138
    }
27139
 
27140
    public clearItemAvailabilityCache_result() {
27141
    }
27142
 
27143
    /**
27144
     * Performs a deep copy on <i>other</i>.
27145
     */
27146
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
27147
    }
27148
 
27149
    public clearItemAvailabilityCache_result deepCopy() {
27150
      return new clearItemAvailabilityCache_result(this);
27151
    }
27152
 
27153
    @Override
27154
    public void clear() {
27155
    }
27156
 
27157
    public void setFieldValue(_Fields field, Object value) {
27158
      switch (field) {
27159
      }
27160
    }
27161
 
27162
    public Object getFieldValue(_Fields field) {
27163
      switch (field) {
27164
      }
27165
      throw new IllegalStateException();
27166
    }
27167
 
27168
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27169
    public boolean isSet(_Fields field) {
27170
      if (field == null) {
27171
        throw new IllegalArgumentException();
27172
      }
27173
 
27174
      switch (field) {
27175
      }
27176
      throw new IllegalStateException();
27177
    }
27178
 
27179
    @Override
27180
    public boolean equals(Object that) {
27181
      if (that == null)
27182
        return false;
27183
      if (that instanceof clearItemAvailabilityCache_result)
27184
        return this.equals((clearItemAvailabilityCache_result)that);
27185
      return false;
27186
    }
27187
 
27188
    public boolean equals(clearItemAvailabilityCache_result that) {
27189
      if (that == null)
27190
        return false;
27191
 
27192
      return true;
27193
    }
27194
 
27195
    @Override
27196
    public int hashCode() {
27197
      return 0;
27198
    }
27199
 
27200
    public int compareTo(clearItemAvailabilityCache_result other) {
27201
      if (!getClass().equals(other.getClass())) {
27202
        return getClass().getName().compareTo(other.getClass().getName());
27203
      }
27204
 
27205
      int lastComparison = 0;
27206
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
27207
 
27208
      return 0;
27209
    }
27210
 
27211
    public _Fields fieldForId(int fieldId) {
27212
      return _Fields.findByThriftId(fieldId);
27213
    }
27214
 
27215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27216
      org.apache.thrift.protocol.TField field;
27217
      iprot.readStructBegin();
27218
      while (true)
27219
      {
27220
        field = iprot.readFieldBegin();
27221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27222
          break;
27223
        }
27224
        switch (field.id) {
27225
          default:
27226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27227
        }
27228
        iprot.readFieldEnd();
27229
      }
27230
      iprot.readStructEnd();
27231
      validate();
27232
    }
27233
 
27234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27235
      oprot.writeStructBegin(STRUCT_DESC);
27236
 
27237
      oprot.writeFieldStop();
27238
      oprot.writeStructEnd();
27239
    }
27240
 
27241
    @Override
27242
    public String toString() {
27243
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
27244
      boolean first = true;
27245
 
27246
      sb.append(")");
27247
      return sb.toString();
27248
    }
27249
 
27250
    public void validate() throws org.apache.thrift.TException {
27251
      // check for required fields
27252
    }
27253
 
27254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27255
      try {
27256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27257
      } catch (org.apache.thrift.TException te) {
27258
        throw new java.io.IOException(te);
27259
      }
27260
    }
27261
 
27262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27263
      try {
27264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27265
      } catch (org.apache.thrift.TException te) {
27266
        throw new java.io.IOException(te);
27267
      }
27268
    }
27269
 
27270
  }
27271
 
27272
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
27273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
27274
 
27275
    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);
27276
    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);
27277
 
27278
    private long warehouseId; // required
27279
    private String vendorString; // required
27280
 
27281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27283
      WAREHOUSE_ID((short)1, "warehouseId"),
27284
      VENDOR_STRING((short)2, "vendorString");
27285
 
27286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27287
 
27288
      static {
27289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27290
          byName.put(field.getFieldName(), field);
27291
        }
27292
      }
27293
 
27294
      /**
27295
       * Find the _Fields constant that matches fieldId, or null if its not found.
27296
       */
27297
      public static _Fields findByThriftId(int fieldId) {
27298
        switch(fieldId) {
27299
          case 1: // WAREHOUSE_ID
27300
            return WAREHOUSE_ID;
27301
          case 2: // VENDOR_STRING
27302
            return VENDOR_STRING;
27303
          default:
27304
            return null;
27305
        }
27306
      }
27307
 
27308
      /**
27309
       * Find the _Fields constant that matches fieldId, throwing an exception
27310
       * if it is not found.
27311
       */
27312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27313
        _Fields fields = findByThriftId(fieldId);
27314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27315
        return fields;
27316
      }
27317
 
27318
      /**
27319
       * Find the _Fields constant that matches name, or null if its not found.
27320
       */
27321
      public static _Fields findByName(String name) {
27322
        return byName.get(name);
27323
      }
27324
 
27325
      private final short _thriftId;
27326
      private final String _fieldName;
27327
 
27328
      _Fields(short thriftId, String fieldName) {
27329
        _thriftId = thriftId;
27330
        _fieldName = fieldName;
27331
      }
27332
 
27333
      public short getThriftFieldId() {
27334
        return _thriftId;
27335
      }
27336
 
27337
      public String getFieldName() {
27338
        return _fieldName;
27339
      }
27340
    }
27341
 
27342
    // isset id assignments
27343
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27344
    private BitSet __isset_bit_vector = new BitSet(1);
27345
 
27346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27347
    static {
27348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27349
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27351
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27353
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27354
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
27355
    }
27356
 
27357
    public updateVendorString_args() {
27358
    }
27359
 
27360
    public updateVendorString_args(
27361
      long warehouseId,
27362
      String vendorString)
27363
    {
27364
      this();
27365
      this.warehouseId = warehouseId;
27366
      setWarehouseIdIsSet(true);
27367
      this.vendorString = vendorString;
27368
    }
27369
 
27370
    /**
27371
     * Performs a deep copy on <i>other</i>.
27372
     */
27373
    public updateVendorString_args(updateVendorString_args other) {
27374
      __isset_bit_vector.clear();
27375
      __isset_bit_vector.or(other.__isset_bit_vector);
27376
      this.warehouseId = other.warehouseId;
27377
      if (other.isSetVendorString()) {
27378
        this.vendorString = other.vendorString;
27379
      }
27380
    }
27381
 
27382
    public updateVendorString_args deepCopy() {
27383
      return new updateVendorString_args(this);
27384
    }
27385
 
27386
    @Override
27387
    public void clear() {
27388
      setWarehouseIdIsSet(false);
27389
      this.warehouseId = 0;
27390
      this.vendorString = null;
27391
    }
27392
 
27393
    public long getWarehouseId() {
27394
      return this.warehouseId;
27395
    }
27396
 
27397
    public void setWarehouseId(long warehouseId) {
27398
      this.warehouseId = warehouseId;
27399
      setWarehouseIdIsSet(true);
27400
    }
27401
 
27402
    public void unsetWarehouseId() {
27403
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27404
    }
27405
 
27406
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27407
    public boolean isSetWarehouseId() {
27408
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27409
    }
27410
 
27411
    public void setWarehouseIdIsSet(boolean value) {
27412
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27413
    }
27414
 
27415
    public String getVendorString() {
27416
      return this.vendorString;
27417
    }
27418
 
27419
    public void setVendorString(String vendorString) {
27420
      this.vendorString = vendorString;
27421
    }
27422
 
27423
    public void unsetVendorString() {
27424
      this.vendorString = null;
27425
    }
27426
 
27427
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
27428
    public boolean isSetVendorString() {
27429
      return this.vendorString != null;
27430
    }
27431
 
27432
    public void setVendorStringIsSet(boolean value) {
27433
      if (!value) {
27434
        this.vendorString = null;
27435
      }
27436
    }
27437
 
27438
    public void setFieldValue(_Fields field, Object value) {
27439
      switch (field) {
27440
      case WAREHOUSE_ID:
27441
        if (value == null) {
27442
          unsetWarehouseId();
27443
        } else {
27444
          setWarehouseId((Long)value);
27445
        }
27446
        break;
27447
 
27448
      case VENDOR_STRING:
27449
        if (value == null) {
27450
          unsetVendorString();
27451
        } else {
27452
          setVendorString((String)value);
27453
        }
27454
        break;
27455
 
27456
      }
27457
    }
27458
 
27459
    public Object getFieldValue(_Fields field) {
27460
      switch (field) {
27461
      case WAREHOUSE_ID:
27462
        return Long.valueOf(getWarehouseId());
27463
 
27464
      case VENDOR_STRING:
27465
        return getVendorString();
27466
 
27467
      }
27468
      throw new IllegalStateException();
27469
    }
27470
 
27471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27472
    public boolean isSet(_Fields field) {
27473
      if (field == null) {
27474
        throw new IllegalArgumentException();
27475
      }
27476
 
27477
      switch (field) {
27478
      case WAREHOUSE_ID:
27479
        return isSetWarehouseId();
27480
      case VENDOR_STRING:
27481
        return isSetVendorString();
27482
      }
27483
      throw new IllegalStateException();
27484
    }
27485
 
27486
    @Override
27487
    public boolean equals(Object that) {
27488
      if (that == null)
27489
        return false;
27490
      if (that instanceof updateVendorString_args)
27491
        return this.equals((updateVendorString_args)that);
27492
      return false;
27493
    }
27494
 
27495
    public boolean equals(updateVendorString_args that) {
27496
      if (that == null)
27497
        return false;
27498
 
27499
      boolean this_present_warehouseId = true;
27500
      boolean that_present_warehouseId = true;
27501
      if (this_present_warehouseId || that_present_warehouseId) {
27502
        if (!(this_present_warehouseId && that_present_warehouseId))
27503
          return false;
27504
        if (this.warehouseId != that.warehouseId)
27505
          return false;
27506
      }
27507
 
27508
      boolean this_present_vendorString = true && this.isSetVendorString();
27509
      boolean that_present_vendorString = true && that.isSetVendorString();
27510
      if (this_present_vendorString || that_present_vendorString) {
27511
        if (!(this_present_vendorString && that_present_vendorString))
27512
          return false;
27513
        if (!this.vendorString.equals(that.vendorString))
27514
          return false;
27515
      }
27516
 
27517
      return true;
27518
    }
27519
 
27520
    @Override
27521
    public int hashCode() {
27522
      return 0;
27523
    }
27524
 
27525
    public int compareTo(updateVendorString_args other) {
27526
      if (!getClass().equals(other.getClass())) {
27527
        return getClass().getName().compareTo(other.getClass().getName());
27528
      }
27529
 
27530
      int lastComparison = 0;
27531
      updateVendorString_args typedOther = (updateVendorString_args)other;
27532
 
27533
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27534
      if (lastComparison != 0) {
27535
        return lastComparison;
27536
      }
27537
      if (isSetWarehouseId()) {
27538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27539
        if (lastComparison != 0) {
27540
          return lastComparison;
27541
        }
27542
      }
27543
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
27544
      if (lastComparison != 0) {
27545
        return lastComparison;
27546
      }
27547
      if (isSetVendorString()) {
27548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
27549
        if (lastComparison != 0) {
27550
          return lastComparison;
27551
        }
27552
      }
27553
      return 0;
27554
    }
27555
 
27556
    public _Fields fieldForId(int fieldId) {
27557
      return _Fields.findByThriftId(fieldId);
27558
    }
27559
 
27560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27561
      org.apache.thrift.protocol.TField field;
27562
      iprot.readStructBegin();
27563
      while (true)
27564
      {
27565
        field = iprot.readFieldBegin();
27566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27567
          break;
27568
        }
27569
        switch (field.id) {
27570
          case 1: // WAREHOUSE_ID
27571
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27572
              this.warehouseId = iprot.readI64();
27573
              setWarehouseIdIsSet(true);
27574
            } else { 
27575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27576
            }
27577
            break;
27578
          case 2: // VENDOR_STRING
27579
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27580
              this.vendorString = iprot.readString();
27581
            } else { 
27582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27583
            }
27584
            break;
27585
          default:
27586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27587
        }
27588
        iprot.readFieldEnd();
27589
      }
27590
      iprot.readStructEnd();
27591
      validate();
27592
    }
27593
 
27594
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27595
      validate();
27596
 
27597
      oprot.writeStructBegin(STRUCT_DESC);
27598
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27599
      oprot.writeI64(this.warehouseId);
27600
      oprot.writeFieldEnd();
27601
      if (this.vendorString != null) {
27602
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
27603
        oprot.writeString(this.vendorString);
27604
        oprot.writeFieldEnd();
27605
      }
27606
      oprot.writeFieldStop();
27607
      oprot.writeStructEnd();
27608
    }
27609
 
27610
    @Override
27611
    public String toString() {
27612
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
27613
      boolean first = true;
27614
 
27615
      sb.append("warehouseId:");
27616
      sb.append(this.warehouseId);
27617
      first = false;
27618
      if (!first) sb.append(", ");
27619
      sb.append("vendorString:");
27620
      if (this.vendorString == null) {
27621
        sb.append("null");
27622
      } else {
27623
        sb.append(this.vendorString);
27624
      }
27625
      first = false;
27626
      sb.append(")");
27627
      return sb.toString();
27628
    }
27629
 
27630
    public void validate() throws org.apache.thrift.TException {
27631
      // check for required fields
27632
    }
27633
 
27634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27635
      try {
27636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27637
      } catch (org.apache.thrift.TException te) {
27638
        throw new java.io.IOException(te);
27639
      }
27640
    }
27641
 
27642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27643
      try {
5967 rajveer 27644
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27645
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 27646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27647
      } catch (org.apache.thrift.TException te) {
27648
        throw new java.io.IOException(te);
27649
      }
27650
    }
27651
 
27652
  }
27653
 
27654
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
27655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
27656
 
27657
 
27658
 
27659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27661
;
27662
 
27663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27664
 
27665
      static {
27666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27667
          byName.put(field.getFieldName(), field);
27668
        }
27669
      }
27670
 
27671
      /**
27672
       * Find the _Fields constant that matches fieldId, or null if its not found.
27673
       */
27674
      public static _Fields findByThriftId(int fieldId) {
27675
        switch(fieldId) {
27676
          default:
27677
            return null;
27678
        }
27679
      }
27680
 
27681
      /**
27682
       * Find the _Fields constant that matches fieldId, throwing an exception
27683
       * if it is not found.
27684
       */
27685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27686
        _Fields fields = findByThriftId(fieldId);
27687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27688
        return fields;
27689
      }
27690
 
27691
      /**
27692
       * Find the _Fields constant that matches name, or null if its not found.
27693
       */
27694
      public static _Fields findByName(String name) {
27695
        return byName.get(name);
27696
      }
27697
 
27698
      private final short _thriftId;
27699
      private final String _fieldName;
27700
 
27701
      _Fields(short thriftId, String fieldName) {
27702
        _thriftId = thriftId;
27703
        _fieldName = fieldName;
27704
      }
27705
 
27706
      public short getThriftFieldId() {
27707
        return _thriftId;
27708
      }
27709
 
27710
      public String getFieldName() {
27711
        return _fieldName;
27712
      }
27713
    }
27714
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27715
    static {
27716
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27717
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27718
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
27719
    }
27720
 
27721
    public updateVendorString_result() {
27722
    }
27723
 
27724
    /**
27725
     * Performs a deep copy on <i>other</i>.
27726
     */
27727
    public updateVendorString_result(updateVendorString_result other) {
27728
    }
27729
 
27730
    public updateVendorString_result deepCopy() {
27731
      return new updateVendorString_result(this);
27732
    }
27733
 
27734
    @Override
27735
    public void clear() {
27736
    }
27737
 
27738
    public void setFieldValue(_Fields field, Object value) {
27739
      switch (field) {
27740
      }
27741
    }
27742
 
27743
    public Object getFieldValue(_Fields field) {
27744
      switch (field) {
27745
      }
27746
      throw new IllegalStateException();
27747
    }
27748
 
27749
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27750
    public boolean isSet(_Fields field) {
27751
      if (field == null) {
27752
        throw new IllegalArgumentException();
27753
      }
27754
 
27755
      switch (field) {
27756
      }
27757
      throw new IllegalStateException();
27758
    }
27759
 
27760
    @Override
27761
    public boolean equals(Object that) {
27762
      if (that == null)
27763
        return false;
27764
      if (that instanceof updateVendorString_result)
27765
        return this.equals((updateVendorString_result)that);
27766
      return false;
27767
    }
27768
 
27769
    public boolean equals(updateVendorString_result that) {
27770
      if (that == null)
27771
        return false;
27772
 
27773
      return true;
27774
    }
27775
 
27776
    @Override
27777
    public int hashCode() {
27778
      return 0;
27779
    }
27780
 
27781
    public int compareTo(updateVendorString_result other) {
27782
      if (!getClass().equals(other.getClass())) {
27783
        return getClass().getName().compareTo(other.getClass().getName());
27784
      }
27785
 
27786
      int lastComparison = 0;
27787
      updateVendorString_result typedOther = (updateVendorString_result)other;
27788
 
27789
      return 0;
27790
    }
27791
 
27792
    public _Fields fieldForId(int fieldId) {
27793
      return _Fields.findByThriftId(fieldId);
27794
    }
27795
 
27796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27797
      org.apache.thrift.protocol.TField field;
27798
      iprot.readStructBegin();
27799
      while (true)
27800
      {
27801
        field = iprot.readFieldBegin();
27802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27803
          break;
27804
        }
27805
        switch (field.id) {
27806
          default:
27807
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27808
        }
27809
        iprot.readFieldEnd();
27810
      }
27811
      iprot.readStructEnd();
27812
      validate();
27813
    }
27814
 
27815
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27816
      oprot.writeStructBegin(STRUCT_DESC);
27817
 
27818
      oprot.writeFieldStop();
27819
      oprot.writeStructEnd();
27820
    }
27821
 
27822
    @Override
27823
    public String toString() {
27824
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
27825
      boolean first = true;
27826
 
27827
      sb.append(")");
27828
      return sb.toString();
27829
    }
27830
 
27831
    public void validate() throws org.apache.thrift.TException {
27832
      // check for required fields
27833
    }
27834
 
27835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27836
      try {
27837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27838
      } catch (org.apache.thrift.TException te) {
27839
        throw new java.io.IOException(te);
27840
      }
27841
    }
27842
 
27843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27844
      try {
27845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27846
      } catch (org.apache.thrift.TException te) {
27847
        throw new java.io.IOException(te);
27848
      }
27849
    }
27850
 
27851
  }
27852
 
6096 amit.gupta 27853
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
27854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
27855
 
27856
    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);
27857
 
27858
    private long item_id; // required
27859
 
27860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27862
      ITEM_ID((short)1, "item_id");
27863
 
27864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27865
 
27866
      static {
27867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27868
          byName.put(field.getFieldName(), field);
27869
        }
27870
      }
27871
 
27872
      /**
27873
       * Find the _Fields constant that matches fieldId, or null if its not found.
27874
       */
27875
      public static _Fields findByThriftId(int fieldId) {
27876
        switch(fieldId) {
27877
          case 1: // ITEM_ID
27878
            return ITEM_ID;
27879
          default:
27880
            return null;
27881
        }
27882
      }
27883
 
27884
      /**
27885
       * Find the _Fields constant that matches fieldId, throwing an exception
27886
       * if it is not found.
27887
       */
27888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27889
        _Fields fields = findByThriftId(fieldId);
27890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27891
        return fields;
27892
      }
27893
 
27894
      /**
27895
       * Find the _Fields constant that matches name, or null if its not found.
27896
       */
27897
      public static _Fields findByName(String name) {
27898
        return byName.get(name);
27899
      }
27900
 
27901
      private final short _thriftId;
27902
      private final String _fieldName;
27903
 
27904
      _Fields(short thriftId, String fieldName) {
27905
        _thriftId = thriftId;
27906
        _fieldName = fieldName;
27907
      }
27908
 
27909
      public short getThriftFieldId() {
27910
        return _thriftId;
27911
      }
27912
 
27913
      public String getFieldName() {
27914
        return _fieldName;
27915
      }
27916
    }
27917
 
27918
    // isset id assignments
27919
    private static final int __ITEM_ID_ISSET_ID = 0;
27920
    private BitSet __isset_bit_vector = new BitSet(1);
27921
 
27922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27923
    static {
27924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27925
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27927
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27928
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
27929
    }
27930
 
27931
    public clearItemAvailabilityCacheForItem_args() {
27932
    }
27933
 
27934
    public clearItemAvailabilityCacheForItem_args(
27935
      long item_id)
27936
    {
27937
      this();
27938
      this.item_id = item_id;
27939
      setItem_idIsSet(true);
27940
    }
27941
 
27942
    /**
27943
     * Performs a deep copy on <i>other</i>.
27944
     */
27945
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
27946
      __isset_bit_vector.clear();
27947
      __isset_bit_vector.or(other.__isset_bit_vector);
27948
      this.item_id = other.item_id;
27949
    }
27950
 
27951
    public clearItemAvailabilityCacheForItem_args deepCopy() {
27952
      return new clearItemAvailabilityCacheForItem_args(this);
27953
    }
27954
 
27955
    @Override
27956
    public void clear() {
27957
      setItem_idIsSet(false);
27958
      this.item_id = 0;
27959
    }
27960
 
27961
    public long getItem_id() {
27962
      return this.item_id;
27963
    }
27964
 
27965
    public void setItem_id(long item_id) {
27966
      this.item_id = item_id;
27967
      setItem_idIsSet(true);
27968
    }
27969
 
27970
    public void unsetItem_id() {
27971
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
27972
    }
27973
 
27974
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
27975
    public boolean isSetItem_id() {
27976
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
27977
    }
27978
 
27979
    public void setItem_idIsSet(boolean value) {
27980
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
27981
    }
27982
 
27983
    public void setFieldValue(_Fields field, Object value) {
27984
      switch (field) {
27985
      case ITEM_ID:
27986
        if (value == null) {
27987
          unsetItem_id();
27988
        } else {
27989
          setItem_id((Long)value);
27990
        }
27991
        break;
27992
 
27993
      }
27994
    }
27995
 
27996
    public Object getFieldValue(_Fields field) {
27997
      switch (field) {
27998
      case ITEM_ID:
27999
        return Long.valueOf(getItem_id());
28000
 
28001
      }
28002
      throw new IllegalStateException();
28003
    }
28004
 
28005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28006
    public boolean isSet(_Fields field) {
28007
      if (field == null) {
28008
        throw new IllegalArgumentException();
28009
      }
28010
 
28011
      switch (field) {
28012
      case ITEM_ID:
28013
        return isSetItem_id();
28014
      }
28015
      throw new IllegalStateException();
28016
    }
28017
 
28018
    @Override
28019
    public boolean equals(Object that) {
28020
      if (that == null)
28021
        return false;
28022
      if (that instanceof clearItemAvailabilityCacheForItem_args)
28023
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
28024
      return false;
28025
    }
28026
 
28027
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
28028
      if (that == null)
28029
        return false;
28030
 
28031
      boolean this_present_item_id = true;
28032
      boolean that_present_item_id = true;
28033
      if (this_present_item_id || that_present_item_id) {
28034
        if (!(this_present_item_id && that_present_item_id))
28035
          return false;
28036
        if (this.item_id != that.item_id)
28037
          return false;
28038
      }
28039
 
28040
      return true;
28041
    }
28042
 
28043
    @Override
28044
    public int hashCode() {
28045
      return 0;
28046
    }
28047
 
28048
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
28049
      if (!getClass().equals(other.getClass())) {
28050
        return getClass().getName().compareTo(other.getClass().getName());
28051
      }
28052
 
28053
      int lastComparison = 0;
28054
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
28055
 
28056
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
28057
      if (lastComparison != 0) {
28058
        return lastComparison;
28059
      }
28060
      if (isSetItem_id()) {
28061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
28062
        if (lastComparison != 0) {
28063
          return lastComparison;
28064
        }
28065
      }
28066
      return 0;
28067
    }
28068
 
28069
    public _Fields fieldForId(int fieldId) {
28070
      return _Fields.findByThriftId(fieldId);
28071
    }
28072
 
28073
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28074
      org.apache.thrift.protocol.TField field;
28075
      iprot.readStructBegin();
28076
      while (true)
28077
      {
28078
        field = iprot.readFieldBegin();
28079
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28080
          break;
28081
        }
28082
        switch (field.id) {
28083
          case 1: // ITEM_ID
28084
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28085
              this.item_id = iprot.readI64();
28086
              setItem_idIsSet(true);
28087
            } else { 
28088
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28089
            }
28090
            break;
28091
          default:
28092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28093
        }
28094
        iprot.readFieldEnd();
28095
      }
28096
      iprot.readStructEnd();
28097
      validate();
28098
    }
28099
 
28100
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28101
      validate();
28102
 
28103
      oprot.writeStructBegin(STRUCT_DESC);
28104
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28105
      oprot.writeI64(this.item_id);
28106
      oprot.writeFieldEnd();
28107
      oprot.writeFieldStop();
28108
      oprot.writeStructEnd();
28109
    }
28110
 
28111
    @Override
28112
    public String toString() {
28113
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
28114
      boolean first = true;
28115
 
28116
      sb.append("item_id:");
28117
      sb.append(this.item_id);
28118
      first = false;
28119
      sb.append(")");
28120
      return sb.toString();
28121
    }
28122
 
28123
    public void validate() throws org.apache.thrift.TException {
28124
      // check for required fields
28125
    }
28126
 
28127
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28128
      try {
28129
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28130
      } catch (org.apache.thrift.TException te) {
28131
        throw new java.io.IOException(te);
28132
      }
28133
    }
28134
 
28135
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28136
      try {
28137
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28138
        __isset_bit_vector = new BitSet(1);
28139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28140
      } catch (org.apache.thrift.TException te) {
28141
        throw new java.io.IOException(te);
28142
      }
28143
    }
28144
 
28145
  }
28146
 
28147
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
28148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
28149
 
28150
 
28151
 
28152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28154
;
28155
 
28156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28157
 
28158
      static {
28159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28160
          byName.put(field.getFieldName(), field);
28161
        }
28162
      }
28163
 
28164
      /**
28165
       * Find the _Fields constant that matches fieldId, or null if its not found.
28166
       */
28167
      public static _Fields findByThriftId(int fieldId) {
28168
        switch(fieldId) {
28169
          default:
28170
            return null;
28171
        }
28172
      }
28173
 
28174
      /**
28175
       * Find the _Fields constant that matches fieldId, throwing an exception
28176
       * if it is not found.
28177
       */
28178
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28179
        _Fields fields = findByThriftId(fieldId);
28180
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28181
        return fields;
28182
      }
28183
 
28184
      /**
28185
       * Find the _Fields constant that matches name, or null if its not found.
28186
       */
28187
      public static _Fields findByName(String name) {
28188
        return byName.get(name);
28189
      }
28190
 
28191
      private final short _thriftId;
28192
      private final String _fieldName;
28193
 
28194
      _Fields(short thriftId, String fieldName) {
28195
        _thriftId = thriftId;
28196
        _fieldName = fieldName;
28197
      }
28198
 
28199
      public short getThriftFieldId() {
28200
        return _thriftId;
28201
      }
28202
 
28203
      public String getFieldName() {
28204
        return _fieldName;
28205
      }
28206
    }
28207
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28208
    static {
28209
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28210
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28211
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
28212
    }
28213
 
28214
    public clearItemAvailabilityCacheForItem_result() {
28215
    }
28216
 
28217
    /**
28218
     * Performs a deep copy on <i>other</i>.
28219
     */
28220
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
28221
    }
28222
 
28223
    public clearItemAvailabilityCacheForItem_result deepCopy() {
28224
      return new clearItemAvailabilityCacheForItem_result(this);
28225
    }
28226
 
28227
    @Override
28228
    public void clear() {
28229
    }
28230
 
28231
    public void setFieldValue(_Fields field, Object value) {
28232
      switch (field) {
28233
      }
28234
    }
28235
 
28236
    public Object getFieldValue(_Fields field) {
28237
      switch (field) {
28238
      }
28239
      throw new IllegalStateException();
28240
    }
28241
 
28242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28243
    public boolean isSet(_Fields field) {
28244
      if (field == null) {
28245
        throw new IllegalArgumentException();
28246
      }
28247
 
28248
      switch (field) {
28249
      }
28250
      throw new IllegalStateException();
28251
    }
28252
 
28253
    @Override
28254
    public boolean equals(Object that) {
28255
      if (that == null)
28256
        return false;
28257
      if (that instanceof clearItemAvailabilityCacheForItem_result)
28258
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
28259
      return false;
28260
    }
28261
 
28262
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
28263
      if (that == null)
28264
        return false;
28265
 
28266
      return true;
28267
    }
28268
 
28269
    @Override
28270
    public int hashCode() {
28271
      return 0;
28272
    }
28273
 
28274
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
28275
      if (!getClass().equals(other.getClass())) {
28276
        return getClass().getName().compareTo(other.getClass().getName());
28277
      }
28278
 
28279
      int lastComparison = 0;
28280
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
28281
 
28282
      return 0;
28283
    }
28284
 
28285
    public _Fields fieldForId(int fieldId) {
28286
      return _Fields.findByThriftId(fieldId);
28287
    }
28288
 
28289
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28290
      org.apache.thrift.protocol.TField field;
28291
      iprot.readStructBegin();
28292
      while (true)
28293
      {
28294
        field = iprot.readFieldBegin();
28295
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28296
          break;
28297
        }
28298
        switch (field.id) {
28299
          default:
28300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28301
        }
28302
        iprot.readFieldEnd();
28303
      }
28304
      iprot.readStructEnd();
28305
      validate();
28306
    }
28307
 
28308
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28309
      oprot.writeStructBegin(STRUCT_DESC);
28310
 
28311
      oprot.writeFieldStop();
28312
      oprot.writeStructEnd();
28313
    }
28314
 
28315
    @Override
28316
    public String toString() {
28317
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
28318
      boolean first = true;
28319
 
28320
      sb.append(")");
28321
      return sb.toString();
28322
    }
28323
 
28324
    public void validate() throws org.apache.thrift.TException {
28325
      // check for required fields
28326
    }
28327
 
28328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28329
      try {
28330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28331
      } catch (org.apache.thrift.TException te) {
28332
        throw new java.io.IOException(te);
28333
      }
28334
    }
28335
 
28336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28337
      try {
28338
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28339
      } catch (org.apache.thrift.TException te) {
28340
        throw new java.io.IOException(te);
28341
      }
28342
    }
28343
 
28344
  }
28345
 
6467 amar.kumar 28346
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
28347
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
28348
 
28349
    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);
28350
 
28351
    private long vendorId; // required
28352
 
28353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28355
      VENDOR_ID((short)1, "vendorId");
28356
 
28357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28358
 
28359
      static {
28360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28361
          byName.put(field.getFieldName(), field);
28362
        }
28363
      }
28364
 
28365
      /**
28366
       * Find the _Fields constant that matches fieldId, or null if its not found.
28367
       */
28368
      public static _Fields findByThriftId(int fieldId) {
28369
        switch(fieldId) {
28370
          case 1: // VENDOR_ID
28371
            return VENDOR_ID;
28372
          default:
28373
            return null;
28374
        }
28375
      }
28376
 
28377
      /**
28378
       * Find the _Fields constant that matches fieldId, throwing an exception
28379
       * if it is not found.
28380
       */
28381
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28382
        _Fields fields = findByThriftId(fieldId);
28383
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28384
        return fields;
28385
      }
28386
 
28387
      /**
28388
       * Find the _Fields constant that matches name, or null if its not found.
28389
       */
28390
      public static _Fields findByName(String name) {
28391
        return byName.get(name);
28392
      }
28393
 
28394
      private final short _thriftId;
28395
      private final String _fieldName;
28396
 
28397
      _Fields(short thriftId, String fieldName) {
28398
        _thriftId = thriftId;
28399
        _fieldName = fieldName;
28400
      }
28401
 
28402
      public short getThriftFieldId() {
28403
        return _thriftId;
28404
      }
28405
 
28406
      public String getFieldName() {
28407
        return _fieldName;
28408
      }
28409
    }
28410
 
28411
    // isset id assignments
28412
    private static final int __VENDORID_ISSET_ID = 0;
28413
    private BitSet __isset_bit_vector = new BitSet(1);
28414
 
28415
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28416
    static {
28417
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28418
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28419
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28420
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28421
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
28422
    }
28423
 
28424
    public getOurWarehouseIdForVendor_args() {
28425
    }
28426
 
28427
    public getOurWarehouseIdForVendor_args(
28428
      long vendorId)
28429
    {
28430
      this();
28431
      this.vendorId = vendorId;
28432
      setVendorIdIsSet(true);
28433
    }
28434
 
28435
    /**
28436
     * Performs a deep copy on <i>other</i>.
28437
     */
28438
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
28439
      __isset_bit_vector.clear();
28440
      __isset_bit_vector.or(other.__isset_bit_vector);
28441
      this.vendorId = other.vendorId;
28442
    }
28443
 
28444
    public getOurWarehouseIdForVendor_args deepCopy() {
28445
      return new getOurWarehouseIdForVendor_args(this);
28446
    }
28447
 
28448
    @Override
28449
    public void clear() {
28450
      setVendorIdIsSet(false);
28451
      this.vendorId = 0;
28452
    }
28453
 
28454
    public long getVendorId() {
28455
      return this.vendorId;
28456
    }
28457
 
28458
    public void setVendorId(long vendorId) {
28459
      this.vendorId = vendorId;
28460
      setVendorIdIsSet(true);
28461
    }
28462
 
28463
    public void unsetVendorId() {
28464
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
28465
    }
28466
 
28467
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
28468
    public boolean isSetVendorId() {
28469
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
28470
    }
28471
 
28472
    public void setVendorIdIsSet(boolean value) {
28473
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
28474
    }
28475
 
28476
    public void setFieldValue(_Fields field, Object value) {
28477
      switch (field) {
28478
      case VENDOR_ID:
28479
        if (value == null) {
28480
          unsetVendorId();
28481
        } else {
28482
          setVendorId((Long)value);
28483
        }
28484
        break;
28485
 
28486
      }
28487
    }
28488
 
28489
    public Object getFieldValue(_Fields field) {
28490
      switch (field) {
28491
      case VENDOR_ID:
28492
        return Long.valueOf(getVendorId());
28493
 
28494
      }
28495
      throw new IllegalStateException();
28496
    }
28497
 
28498
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28499
    public boolean isSet(_Fields field) {
28500
      if (field == null) {
28501
        throw new IllegalArgumentException();
28502
      }
28503
 
28504
      switch (field) {
28505
      case VENDOR_ID:
28506
        return isSetVendorId();
28507
      }
28508
      throw new IllegalStateException();
28509
    }
28510
 
28511
    @Override
28512
    public boolean equals(Object that) {
28513
      if (that == null)
28514
        return false;
28515
      if (that instanceof getOurWarehouseIdForVendor_args)
28516
        return this.equals((getOurWarehouseIdForVendor_args)that);
28517
      return false;
28518
    }
28519
 
28520
    public boolean equals(getOurWarehouseIdForVendor_args that) {
28521
      if (that == null)
28522
        return false;
28523
 
28524
      boolean this_present_vendorId = true;
28525
      boolean that_present_vendorId = true;
28526
      if (this_present_vendorId || that_present_vendorId) {
28527
        if (!(this_present_vendorId && that_present_vendorId))
28528
          return false;
28529
        if (this.vendorId != that.vendorId)
28530
          return false;
28531
      }
28532
 
28533
      return true;
28534
    }
28535
 
28536
    @Override
28537
    public int hashCode() {
28538
      return 0;
28539
    }
28540
 
28541
    public int compareTo(getOurWarehouseIdForVendor_args other) {
28542
      if (!getClass().equals(other.getClass())) {
28543
        return getClass().getName().compareTo(other.getClass().getName());
28544
      }
28545
 
28546
      int lastComparison = 0;
28547
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
28548
 
28549
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
28550
      if (lastComparison != 0) {
28551
        return lastComparison;
28552
      }
28553
      if (isSetVendorId()) {
28554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
28555
        if (lastComparison != 0) {
28556
          return lastComparison;
28557
        }
28558
      }
28559
      return 0;
28560
    }
28561
 
28562
    public _Fields fieldForId(int fieldId) {
28563
      return _Fields.findByThriftId(fieldId);
28564
    }
28565
 
28566
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28567
      org.apache.thrift.protocol.TField field;
28568
      iprot.readStructBegin();
28569
      while (true)
28570
      {
28571
        field = iprot.readFieldBegin();
28572
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28573
          break;
28574
        }
28575
        switch (field.id) {
28576
          case 1: // VENDOR_ID
28577
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28578
              this.vendorId = iprot.readI64();
28579
              setVendorIdIsSet(true);
28580
            } else { 
28581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28582
            }
28583
            break;
28584
          default:
28585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28586
        }
28587
        iprot.readFieldEnd();
28588
      }
28589
      iprot.readStructEnd();
28590
      validate();
28591
    }
28592
 
28593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28594
      validate();
28595
 
28596
      oprot.writeStructBegin(STRUCT_DESC);
28597
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
28598
      oprot.writeI64(this.vendorId);
28599
      oprot.writeFieldEnd();
28600
      oprot.writeFieldStop();
28601
      oprot.writeStructEnd();
28602
    }
28603
 
28604
    @Override
28605
    public String toString() {
28606
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
28607
      boolean first = true;
28608
 
28609
      sb.append("vendorId:");
28610
      sb.append(this.vendorId);
28611
      first = false;
28612
      sb.append(")");
28613
      return sb.toString();
28614
    }
28615
 
28616
    public void validate() throws org.apache.thrift.TException {
28617
      // check for required fields
28618
    }
28619
 
28620
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28621
      try {
28622
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28623
      } catch (org.apache.thrift.TException te) {
28624
        throw new java.io.IOException(te);
28625
      }
28626
    }
28627
 
28628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28629
      try {
28630
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28631
        __isset_bit_vector = new BitSet(1);
28632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28633
      } catch (org.apache.thrift.TException te) {
28634
        throw new java.io.IOException(te);
28635
      }
28636
    }
28637
 
28638
  }
28639
 
28640
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
28641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
28642
 
28643
    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);
28644
 
28645
    private long success; // required
28646
 
28647
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28648
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28649
      SUCCESS((short)0, "success");
28650
 
28651
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28652
 
28653
      static {
28654
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28655
          byName.put(field.getFieldName(), field);
28656
        }
28657
      }
28658
 
28659
      /**
28660
       * Find the _Fields constant that matches fieldId, or null if its not found.
28661
       */
28662
      public static _Fields findByThriftId(int fieldId) {
28663
        switch(fieldId) {
28664
          case 0: // SUCCESS
28665
            return SUCCESS;
28666
          default:
28667
            return null;
28668
        }
28669
      }
28670
 
28671
      /**
28672
       * Find the _Fields constant that matches fieldId, throwing an exception
28673
       * if it is not found.
28674
       */
28675
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28676
        _Fields fields = findByThriftId(fieldId);
28677
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28678
        return fields;
28679
      }
28680
 
28681
      /**
28682
       * Find the _Fields constant that matches name, or null if its not found.
28683
       */
28684
      public static _Fields findByName(String name) {
28685
        return byName.get(name);
28686
      }
28687
 
28688
      private final short _thriftId;
28689
      private final String _fieldName;
28690
 
28691
      _Fields(short thriftId, String fieldName) {
28692
        _thriftId = thriftId;
28693
        _fieldName = fieldName;
28694
      }
28695
 
28696
      public short getThriftFieldId() {
28697
        return _thriftId;
28698
      }
28699
 
28700
      public String getFieldName() {
28701
        return _fieldName;
28702
      }
28703
    }
28704
 
28705
    // isset id assignments
28706
    private static final int __SUCCESS_ISSET_ID = 0;
28707
    private BitSet __isset_bit_vector = new BitSet(1);
28708
 
28709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28710
    static {
28711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28712
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
28716
    }
28717
 
28718
    public getOurWarehouseIdForVendor_result() {
28719
    }
28720
 
28721
    public getOurWarehouseIdForVendor_result(
28722
      long success)
28723
    {
28724
      this();
28725
      this.success = success;
28726
      setSuccessIsSet(true);
28727
    }
28728
 
28729
    /**
28730
     * Performs a deep copy on <i>other</i>.
28731
     */
28732
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
28733
      __isset_bit_vector.clear();
28734
      __isset_bit_vector.or(other.__isset_bit_vector);
28735
      this.success = other.success;
28736
    }
28737
 
28738
    public getOurWarehouseIdForVendor_result deepCopy() {
28739
      return new getOurWarehouseIdForVendor_result(this);
28740
    }
28741
 
28742
    @Override
28743
    public void clear() {
28744
      setSuccessIsSet(false);
28745
      this.success = 0;
28746
    }
28747
 
28748
    public long getSuccess() {
28749
      return this.success;
28750
    }
28751
 
28752
    public void setSuccess(long success) {
28753
      this.success = success;
28754
      setSuccessIsSet(true);
28755
    }
28756
 
28757
    public void unsetSuccess() {
28758
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28759
    }
28760
 
28761
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28762
    public boolean isSetSuccess() {
28763
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28764
    }
28765
 
28766
    public void setSuccessIsSet(boolean value) {
28767
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28768
    }
28769
 
28770
    public void setFieldValue(_Fields field, Object value) {
28771
      switch (field) {
28772
      case SUCCESS:
28773
        if (value == null) {
28774
          unsetSuccess();
28775
        } else {
28776
          setSuccess((Long)value);
28777
        }
28778
        break;
28779
 
28780
      }
28781
    }
28782
 
28783
    public Object getFieldValue(_Fields field) {
28784
      switch (field) {
28785
      case SUCCESS:
28786
        return Long.valueOf(getSuccess());
28787
 
28788
      }
28789
      throw new IllegalStateException();
28790
    }
28791
 
28792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28793
    public boolean isSet(_Fields field) {
28794
      if (field == null) {
28795
        throw new IllegalArgumentException();
28796
      }
28797
 
28798
      switch (field) {
28799
      case SUCCESS:
28800
        return isSetSuccess();
28801
      }
28802
      throw new IllegalStateException();
28803
    }
28804
 
28805
    @Override
28806
    public boolean equals(Object that) {
28807
      if (that == null)
28808
        return false;
28809
      if (that instanceof getOurWarehouseIdForVendor_result)
28810
        return this.equals((getOurWarehouseIdForVendor_result)that);
28811
      return false;
28812
    }
28813
 
28814
    public boolean equals(getOurWarehouseIdForVendor_result that) {
28815
      if (that == null)
28816
        return false;
28817
 
28818
      boolean this_present_success = true;
28819
      boolean that_present_success = true;
28820
      if (this_present_success || that_present_success) {
28821
        if (!(this_present_success && that_present_success))
28822
          return false;
28823
        if (this.success != that.success)
28824
          return false;
28825
      }
28826
 
28827
      return true;
28828
    }
28829
 
28830
    @Override
28831
    public int hashCode() {
28832
      return 0;
28833
    }
28834
 
28835
    public int compareTo(getOurWarehouseIdForVendor_result other) {
28836
      if (!getClass().equals(other.getClass())) {
28837
        return getClass().getName().compareTo(other.getClass().getName());
28838
      }
28839
 
28840
      int lastComparison = 0;
28841
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
28842
 
28843
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28844
      if (lastComparison != 0) {
28845
        return lastComparison;
28846
      }
28847
      if (isSetSuccess()) {
28848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28849
        if (lastComparison != 0) {
28850
          return lastComparison;
28851
        }
28852
      }
28853
      return 0;
28854
    }
28855
 
28856
    public _Fields fieldForId(int fieldId) {
28857
      return _Fields.findByThriftId(fieldId);
28858
    }
28859
 
28860
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28861
      org.apache.thrift.protocol.TField field;
28862
      iprot.readStructBegin();
28863
      while (true)
28864
      {
28865
        field = iprot.readFieldBegin();
28866
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28867
          break;
28868
        }
28869
        switch (field.id) {
28870
          case 0: // SUCCESS
28871
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28872
              this.success = iprot.readI64();
28873
              setSuccessIsSet(true);
28874
            } else { 
28875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28876
            }
28877
            break;
28878
          default:
28879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28880
        }
28881
        iprot.readFieldEnd();
28882
      }
28883
      iprot.readStructEnd();
28884
      validate();
28885
    }
28886
 
28887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28888
      oprot.writeStructBegin(STRUCT_DESC);
28889
 
28890
      if (this.isSetSuccess()) {
28891
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28892
        oprot.writeI64(this.success);
28893
        oprot.writeFieldEnd();
28894
      }
28895
      oprot.writeFieldStop();
28896
      oprot.writeStructEnd();
28897
    }
28898
 
28899
    @Override
28900
    public String toString() {
28901
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
28902
      boolean first = true;
28903
 
28904
      sb.append("success:");
28905
      sb.append(this.success);
28906
      first = false;
28907
      sb.append(")");
28908
      return sb.toString();
28909
    }
28910
 
28911
    public void validate() throws org.apache.thrift.TException {
28912
      // check for required fields
28913
    }
28914
 
28915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28916
      try {
28917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28918
      } catch (org.apache.thrift.TException te) {
28919
        throw new java.io.IOException(te);
28920
      }
28921
    }
28922
 
28923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28924
      try {
28925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28926
      } catch (org.apache.thrift.TException te) {
28927
        throw new java.io.IOException(te);
28928
      }
28929
    }
28930
 
28931
  }
28932
 
6484 amar.kumar 28933
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
28934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
28935
 
28936
    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);
28937
 
28938
    private List<Long> item_ids; // required
28939
 
28940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28942
      ITEM_IDS((short)1, "item_ids");
28943
 
28944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28945
 
28946
      static {
28947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28948
          byName.put(field.getFieldName(), field);
28949
        }
28950
      }
28951
 
28952
      /**
28953
       * Find the _Fields constant that matches fieldId, or null if its not found.
28954
       */
28955
      public static _Fields findByThriftId(int fieldId) {
28956
        switch(fieldId) {
28957
          case 1: // ITEM_IDS
28958
            return ITEM_IDS;
28959
          default:
28960
            return null;
28961
        }
28962
      }
28963
 
28964
      /**
28965
       * Find the _Fields constant that matches fieldId, throwing an exception
28966
       * if it is not found.
28967
       */
28968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28969
        _Fields fields = findByThriftId(fieldId);
28970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28971
        return fields;
28972
      }
28973
 
28974
      /**
28975
       * Find the _Fields constant that matches name, or null if its not found.
28976
       */
28977
      public static _Fields findByName(String name) {
28978
        return byName.get(name);
28979
      }
28980
 
28981
      private final short _thriftId;
28982
      private final String _fieldName;
28983
 
28984
      _Fields(short thriftId, String fieldName) {
28985
        _thriftId = thriftId;
28986
        _fieldName = fieldName;
28987
      }
28988
 
28989
      public short getThriftFieldId() {
28990
        return _thriftId;
28991
      }
28992
 
28993
      public String getFieldName() {
28994
        return _fieldName;
28995
      }
28996
    }
28997
 
28998
    // isset id assignments
28999
 
29000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29001
    static {
29002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29003
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29004
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29005
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
29008
    }
29009
 
29010
    public getItemAvailabilitiesAtOurWarehouses_args() {
29011
    }
29012
 
29013
    public getItemAvailabilitiesAtOurWarehouses_args(
29014
      List<Long> item_ids)
29015
    {
29016
      this();
29017
      this.item_ids = item_ids;
29018
    }
29019
 
29020
    /**
29021
     * Performs a deep copy on <i>other</i>.
29022
     */
29023
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
29024
      if (other.isSetItem_ids()) {
29025
        List<Long> __this__item_ids = new ArrayList<Long>();
29026
        for (Long other_element : other.item_ids) {
29027
          __this__item_ids.add(other_element);
29028
        }
29029
        this.item_ids = __this__item_ids;
29030
      }
29031
    }
29032
 
29033
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
29034
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
29035
    }
29036
 
29037
    @Override
29038
    public void clear() {
29039
      this.item_ids = null;
29040
    }
29041
 
29042
    public int getItem_idsSize() {
29043
      return (this.item_ids == null) ? 0 : this.item_ids.size();
29044
    }
29045
 
29046
    public java.util.Iterator<Long> getItem_idsIterator() {
29047
      return (this.item_ids == null) ? null : this.item_ids.iterator();
29048
    }
29049
 
29050
    public void addToItem_ids(long elem) {
29051
      if (this.item_ids == null) {
29052
        this.item_ids = new ArrayList<Long>();
29053
      }
29054
      this.item_ids.add(elem);
29055
    }
29056
 
29057
    public List<Long> getItem_ids() {
29058
      return this.item_ids;
29059
    }
29060
 
29061
    public void setItem_ids(List<Long> item_ids) {
29062
      this.item_ids = item_ids;
29063
    }
29064
 
29065
    public void unsetItem_ids() {
29066
      this.item_ids = null;
29067
    }
29068
 
29069
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
29070
    public boolean isSetItem_ids() {
29071
      return this.item_ids != null;
29072
    }
29073
 
29074
    public void setItem_idsIsSet(boolean value) {
29075
      if (!value) {
29076
        this.item_ids = null;
29077
      }
29078
    }
29079
 
29080
    public void setFieldValue(_Fields field, Object value) {
29081
      switch (field) {
29082
      case ITEM_IDS:
29083
        if (value == null) {
29084
          unsetItem_ids();
29085
        } else {
29086
          setItem_ids((List<Long>)value);
29087
        }
29088
        break;
29089
 
29090
      }
29091
    }
29092
 
29093
    public Object getFieldValue(_Fields field) {
29094
      switch (field) {
29095
      case ITEM_IDS:
29096
        return getItem_ids();
29097
 
29098
      }
29099
      throw new IllegalStateException();
29100
    }
29101
 
29102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29103
    public boolean isSet(_Fields field) {
29104
      if (field == null) {
29105
        throw new IllegalArgumentException();
29106
      }
29107
 
29108
      switch (field) {
29109
      case ITEM_IDS:
29110
        return isSetItem_ids();
29111
      }
29112
      throw new IllegalStateException();
29113
    }
29114
 
29115
    @Override
29116
    public boolean equals(Object that) {
29117
      if (that == null)
29118
        return false;
29119
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
29120
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
29121
      return false;
29122
    }
29123
 
29124
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
29125
      if (that == null)
29126
        return false;
29127
 
29128
      boolean this_present_item_ids = true && this.isSetItem_ids();
29129
      boolean that_present_item_ids = true && that.isSetItem_ids();
29130
      if (this_present_item_ids || that_present_item_ids) {
29131
        if (!(this_present_item_ids && that_present_item_ids))
29132
          return false;
29133
        if (!this.item_ids.equals(that.item_ids))
29134
          return false;
29135
      }
29136
 
29137
      return true;
29138
    }
29139
 
29140
    @Override
29141
    public int hashCode() {
29142
      return 0;
29143
    }
29144
 
29145
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
29146
      if (!getClass().equals(other.getClass())) {
29147
        return getClass().getName().compareTo(other.getClass().getName());
29148
      }
29149
 
29150
      int lastComparison = 0;
29151
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
29152
 
29153
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
29154
      if (lastComparison != 0) {
29155
        return lastComparison;
29156
      }
29157
      if (isSetItem_ids()) {
29158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
29159
        if (lastComparison != 0) {
29160
          return lastComparison;
29161
        }
29162
      }
29163
      return 0;
29164
    }
29165
 
29166
    public _Fields fieldForId(int fieldId) {
29167
      return _Fields.findByThriftId(fieldId);
29168
    }
29169
 
29170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29171
      org.apache.thrift.protocol.TField field;
29172
      iprot.readStructBegin();
29173
      while (true)
29174
      {
29175
        field = iprot.readFieldBegin();
29176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29177
          break;
29178
        }
29179
        switch (field.id) {
29180
          case 1: // ITEM_IDS
29181
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29182
              {
29183
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
29184
                this.item_ids = new ArrayList<Long>(_list79.size);
29185
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
29186
                {
29187
                  long _elem81; // required
29188
                  _elem81 = iprot.readI64();
29189
                  this.item_ids.add(_elem81);
29190
                }
29191
                iprot.readListEnd();
29192
              }
29193
            } else { 
29194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29195
            }
29196
            break;
29197
          default:
29198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29199
        }
29200
        iprot.readFieldEnd();
29201
      }
29202
      iprot.readStructEnd();
29203
      validate();
29204
    }
29205
 
29206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29207
      validate();
29208
 
29209
      oprot.writeStructBegin(STRUCT_DESC);
29210
      if (this.item_ids != null) {
29211
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
29212
        {
29213
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
29214
          for (long _iter82 : this.item_ids)
29215
          {
29216
            oprot.writeI64(_iter82);
29217
          }
29218
          oprot.writeListEnd();
29219
        }
29220
        oprot.writeFieldEnd();
29221
      }
29222
      oprot.writeFieldStop();
29223
      oprot.writeStructEnd();
29224
    }
29225
 
29226
    @Override
29227
    public String toString() {
29228
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
29229
      boolean first = true;
29230
 
29231
      sb.append("item_ids:");
29232
      if (this.item_ids == null) {
29233
        sb.append("null");
29234
      } else {
29235
        sb.append(this.item_ids);
29236
      }
29237
      first = false;
29238
      sb.append(")");
29239
      return sb.toString();
29240
    }
29241
 
29242
    public void validate() throws org.apache.thrift.TException {
29243
      // check for required fields
29244
    }
29245
 
29246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29247
      try {
29248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29249
      } catch (org.apache.thrift.TException te) {
29250
        throw new java.io.IOException(te);
29251
      }
29252
    }
29253
 
29254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29255
      try {
29256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29257
      } catch (org.apache.thrift.TException te) {
29258
        throw new java.io.IOException(te);
29259
      }
29260
    }
29261
 
29262
  }
29263
 
29264
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
29265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
29266
 
29267
    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);
29268
 
29269
    private Map<Long,Long> success; // required
29270
 
29271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29272
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29273
      SUCCESS((short)0, "success");
29274
 
29275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29276
 
29277
      static {
29278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29279
          byName.put(field.getFieldName(), field);
29280
        }
29281
      }
29282
 
29283
      /**
29284
       * Find the _Fields constant that matches fieldId, or null if its not found.
29285
       */
29286
      public static _Fields findByThriftId(int fieldId) {
29287
        switch(fieldId) {
29288
          case 0: // SUCCESS
29289
            return SUCCESS;
29290
          default:
29291
            return null;
29292
        }
29293
      }
29294
 
29295
      /**
29296
       * Find the _Fields constant that matches fieldId, throwing an exception
29297
       * if it is not found.
29298
       */
29299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29300
        _Fields fields = findByThriftId(fieldId);
29301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29302
        return fields;
29303
      }
29304
 
29305
      /**
29306
       * Find the _Fields constant that matches name, or null if its not found.
29307
       */
29308
      public static _Fields findByName(String name) {
29309
        return byName.get(name);
29310
      }
29311
 
29312
      private final short _thriftId;
29313
      private final String _fieldName;
29314
 
29315
      _Fields(short thriftId, String fieldName) {
29316
        _thriftId = thriftId;
29317
        _fieldName = fieldName;
29318
      }
29319
 
29320
      public short getThriftFieldId() {
29321
        return _thriftId;
29322
      }
29323
 
29324
      public String getFieldName() {
29325
        return _fieldName;
29326
      }
29327
    }
29328
 
29329
    // isset id assignments
29330
 
29331
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29332
    static {
29333
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29334
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29335
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
29336
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
29337
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
29338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
29340
    }
29341
 
29342
    public getItemAvailabilitiesAtOurWarehouses_result() {
29343
    }
29344
 
29345
    public getItemAvailabilitiesAtOurWarehouses_result(
29346
      Map<Long,Long> success)
29347
    {
29348
      this();
29349
      this.success = success;
29350
    }
29351
 
29352
    /**
29353
     * Performs a deep copy on <i>other</i>.
29354
     */
29355
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
29356
      if (other.isSetSuccess()) {
29357
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
29358
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
29359
 
29360
          Long other_element_key = other_element.getKey();
29361
          Long other_element_value = other_element.getValue();
29362
 
29363
          Long __this__success_copy_key = other_element_key;
29364
 
29365
          Long __this__success_copy_value = other_element_value;
29366
 
29367
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
29368
        }
29369
        this.success = __this__success;
29370
      }
29371
    }
29372
 
29373
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
29374
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
29375
    }
29376
 
29377
    @Override
29378
    public void clear() {
29379
      this.success = null;
29380
    }
29381
 
29382
    public int getSuccessSize() {
29383
      return (this.success == null) ? 0 : this.success.size();
29384
    }
29385
 
29386
    public void putToSuccess(long key, long val) {
29387
      if (this.success == null) {
29388
        this.success = new HashMap<Long,Long>();
29389
      }
29390
      this.success.put(key, val);
29391
    }
29392
 
29393
    public Map<Long,Long> getSuccess() {
29394
      return this.success;
29395
    }
29396
 
29397
    public void setSuccess(Map<Long,Long> success) {
29398
      this.success = success;
29399
    }
29400
 
29401
    public void unsetSuccess() {
29402
      this.success = null;
29403
    }
29404
 
29405
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29406
    public boolean isSetSuccess() {
29407
      return this.success != null;
29408
    }
29409
 
29410
    public void setSuccessIsSet(boolean value) {
29411
      if (!value) {
29412
        this.success = null;
29413
      }
29414
    }
29415
 
29416
    public void setFieldValue(_Fields field, Object value) {
29417
      switch (field) {
29418
      case SUCCESS:
29419
        if (value == null) {
29420
          unsetSuccess();
29421
        } else {
29422
          setSuccess((Map<Long,Long>)value);
29423
        }
29424
        break;
29425
 
29426
      }
29427
    }
29428
 
29429
    public Object getFieldValue(_Fields field) {
29430
      switch (field) {
29431
      case SUCCESS:
29432
        return getSuccess();
29433
 
29434
      }
29435
      throw new IllegalStateException();
29436
    }
29437
 
29438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29439
    public boolean isSet(_Fields field) {
29440
      if (field == null) {
29441
        throw new IllegalArgumentException();
29442
      }
29443
 
29444
      switch (field) {
29445
      case SUCCESS:
29446
        return isSetSuccess();
29447
      }
29448
      throw new IllegalStateException();
29449
    }
29450
 
29451
    @Override
29452
    public boolean equals(Object that) {
29453
      if (that == null)
29454
        return false;
29455
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
29456
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
29457
      return false;
29458
    }
29459
 
29460
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
29461
      if (that == null)
29462
        return false;
29463
 
29464
      boolean this_present_success = true && this.isSetSuccess();
29465
      boolean that_present_success = true && that.isSetSuccess();
29466
      if (this_present_success || that_present_success) {
29467
        if (!(this_present_success && that_present_success))
29468
          return false;
29469
        if (!this.success.equals(that.success))
29470
          return false;
29471
      }
29472
 
29473
      return true;
29474
    }
29475
 
29476
    @Override
29477
    public int hashCode() {
29478
      return 0;
29479
    }
29480
 
29481
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
29482
      if (!getClass().equals(other.getClass())) {
29483
        return getClass().getName().compareTo(other.getClass().getName());
29484
      }
29485
 
29486
      int lastComparison = 0;
29487
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
29488
 
29489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29490
      if (lastComparison != 0) {
29491
        return lastComparison;
29492
      }
29493
      if (isSetSuccess()) {
29494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29495
        if (lastComparison != 0) {
29496
          return lastComparison;
29497
        }
29498
      }
29499
      return 0;
29500
    }
29501
 
29502
    public _Fields fieldForId(int fieldId) {
29503
      return _Fields.findByThriftId(fieldId);
29504
    }
29505
 
29506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29507
      org.apache.thrift.protocol.TField field;
29508
      iprot.readStructBegin();
29509
      while (true)
29510
      {
29511
        field = iprot.readFieldBegin();
29512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29513
          break;
29514
        }
29515
        switch (field.id) {
29516
          case 0: // SUCCESS
29517
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
29518
              {
29519
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
29520
                this.success = new HashMap<Long,Long>(2*_map83.size);
29521
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
29522
                {
29523
                  long _key85; // required
29524
                  long _val86; // required
29525
                  _key85 = iprot.readI64();
29526
                  _val86 = iprot.readI64();
29527
                  this.success.put(_key85, _val86);
29528
                }
29529
                iprot.readMapEnd();
29530
              }
29531
            } else { 
29532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29533
            }
29534
            break;
29535
          default:
29536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29537
        }
29538
        iprot.readFieldEnd();
29539
      }
29540
      iprot.readStructEnd();
29541
      validate();
29542
    }
29543
 
29544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29545
      oprot.writeStructBegin(STRUCT_DESC);
29546
 
29547
      if (this.isSetSuccess()) {
29548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29549
        {
29550
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
29551
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
29552
          {
29553
            oprot.writeI64(_iter87.getKey());
29554
            oprot.writeI64(_iter87.getValue());
29555
          }
29556
          oprot.writeMapEnd();
29557
        }
29558
        oprot.writeFieldEnd();
29559
      }
29560
      oprot.writeFieldStop();
29561
      oprot.writeStructEnd();
29562
    }
29563
 
29564
    @Override
29565
    public String toString() {
29566
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
29567
      boolean first = true;
29568
 
29569
      sb.append("success:");
29570
      if (this.success == null) {
29571
        sb.append("null");
29572
      } else {
29573
        sb.append(this.success);
29574
      }
29575
      first = false;
29576
      sb.append(")");
29577
      return sb.toString();
29578
    }
29579
 
29580
    public void validate() throws org.apache.thrift.TException {
29581
      // check for required fields
29582
    }
29583
 
29584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29585
      try {
29586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29587
      } catch (org.apache.thrift.TException te) {
29588
        throw new java.io.IOException(te);
29589
      }
29590
    }
29591
 
29592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29593
      try {
29594
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29595
      } catch (org.apache.thrift.TException te) {
29596
        throw new java.io.IOException(te);
29597
      }
29598
    }
29599
 
29600
  }
29601
 
5945 mandeep.dh 29602
}