Subversion Repositories SmartDukaan

Rev

Rev 6096 | Rev 6484 | 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
 
5945 mandeep.dh 284
  }
285
 
286
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
287
 
288
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
289
 
290
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
291
 
292
    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;
293
 
294
    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;
295
 
296
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
297
 
298
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
299
 
300
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
301
 
302
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
303
 
5978 rajveer 304
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 305
 
306
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
307
 
308
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
309
 
310
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
311
 
5967 rajveer 312
    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 313
 
5967 rajveer 314
    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 315
 
5967 rajveer 316
    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;
317
 
5945 mandeep.dh 318
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
319
 
320
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
323
 
324
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
325
 
326
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
327
 
328
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
329
 
330
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
331
 
332
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    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;
335
 
336
    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;
337
 
338
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
347
 
348
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
349
 
350
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
351
 
352
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
355
 
356
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
357
 
6096 amit.gupta 358
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
359
 
6467 amar.kumar 360
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
361
 
5945 mandeep.dh 362
  }
363
 
364
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
365
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
366
      public Factory() {}
367
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
368
        return new Client(prot);
369
      }
370
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
371
        return new Client(iprot, oprot);
372
      }
373
    }
374
 
375
    public Client(org.apache.thrift.protocol.TProtocol prot)
376
    {
377
      super(prot, prot);
378
    }
379
 
380
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
381
      super(iprot, oprot);
382
    }
383
 
384
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
385
    {
386
      send_addWarehouse(warehouse);
387
      return recv_addWarehouse();
388
    }
389
 
390
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
391
    {
392
      addWarehouse_args args = new addWarehouse_args();
393
      args.setWarehouse(warehouse);
394
      sendBase("addWarehouse", args);
395
    }
396
 
397
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
398
    {
399
      addWarehouse_result result = new addWarehouse_result();
400
      receiveBase(result, "addWarehouse");
401
      if (result.isSetSuccess()) {
402
        return result.success;
403
      }
404
      if (result.cex != null) {
405
        throw result.cex;
406
      }
407
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
408
    }
409
 
410
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
411
    {
412
      send_addVendor(vendor);
413
      return recv_addVendor();
414
    }
415
 
416
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
417
    {
418
      addVendor_args args = new addVendor_args();
419
      args.setVendor(vendor);
420
      sendBase("addVendor", args);
421
    }
422
 
423
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
424
    {
425
      addVendor_result result = new addVendor_result();
426
      receiveBase(result, "addVendor");
427
      if (result.isSetSuccess()) {
428
        return result.success;
429
      }
430
      if (result.cex != null) {
431
        throw result.cex;
432
      }
433
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
434
    }
435
 
436
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
437
    {
438
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
439
      recv_updateInventoryHistory();
440
    }
441
 
442
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
443
    {
444
      updateInventoryHistory_args args = new updateInventoryHistory_args();
445
      args.setWarehouse_id(warehouse_id);
446
      args.setTimestamp(timestamp);
447
      args.setAvailability(availability);
448
      sendBase("updateInventoryHistory", args);
449
    }
450
 
451
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
452
    {
453
      updateInventoryHistory_result result = new updateInventoryHistory_result();
454
      receiveBase(result, "updateInventoryHistory");
455
      if (result.cex != null) {
456
        throw result.cex;
457
      }
458
      return;
459
    }
460
 
461
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
462
    {
463
      send_updateInventory(warehouse_id, timestamp, availability);
464
      recv_updateInventory();
465
    }
466
 
467
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
468
    {
469
      updateInventory_args args = new updateInventory_args();
470
      args.setWarehouse_id(warehouse_id);
471
      args.setTimestamp(timestamp);
472
      args.setAvailability(availability);
473
      sendBase("updateInventory", args);
474
    }
475
 
476
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
477
    {
478
      updateInventory_result result = new updateInventory_result();
479
      receiveBase(result, "updateInventory");
480
      if (result.cex != null) {
481
        throw result.cex;
482
      }
483
      return;
484
    }
485
 
486
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
487
    {
488
      send_addInventory(itemId, warehouseId, quantity);
489
      recv_addInventory();
490
    }
491
 
492
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
493
    {
494
      addInventory_args args = new addInventory_args();
495
      args.setItemId(itemId);
496
      args.setWarehouseId(warehouseId);
497
      args.setQuantity(quantity);
498
      sendBase("addInventory", args);
499
    }
500
 
501
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
502
    {
503
      addInventory_result result = new addInventory_result();
504
      receiveBase(result, "addInventory");
505
      if (result.cex != null) {
506
        throw result.cex;
507
      }
508
      return;
509
    }
510
 
511
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
512
    {
513
      send_retireWarehouse(warehouse_id);
514
      recv_retireWarehouse();
515
    }
516
 
517
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
518
    {
519
      retireWarehouse_args args = new retireWarehouse_args();
520
      args.setWarehouse_id(warehouse_id);
521
      sendBase("retireWarehouse", args);
522
    }
523
 
524
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
525
    {
526
      retireWarehouse_result result = new retireWarehouse_result();
527
      receiveBase(result, "retireWarehouse");
528
      if (result.cex != null) {
529
        throw result.cex;
530
      }
531
      return;
532
    }
533
 
534
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
535
    {
536
      send_getItemInventoryByItemId(item_id);
537
      return recv_getItemInventoryByItemId();
538
    }
539
 
540
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
541
    {
542
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
543
      args.setItem_id(item_id);
544
      sendBase("getItemInventoryByItemId", args);
545
    }
546
 
547
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
548
    {
549
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
550
      receiveBase(result, "getItemInventoryByItemId");
551
      if (result.isSetSuccess()) {
552
        return result.success;
553
      }
554
      if (result.cex != null) {
555
        throw result.cex;
556
      }
557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
558
    }
559
 
560
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
561
    {
562
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
563
      return recv_getItemAvailibilityAtWarehouse();
564
    }
565
 
566
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
567
    {
568
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
569
      args.setWarehouse_id(warehouse_id);
570
      args.setItem_id(item_id);
571
      sendBase("getItemAvailibilityAtWarehouse", args);
572
    }
573
 
574
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
575
    {
576
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
577
      receiveBase(result, "getItemAvailibilityAtWarehouse");
578
      if (result.isSetSuccess()) {
579
        return result.success;
580
      }
581
      if (result.cex != null) {
582
        throw result.cex;
583
      }
584
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
585
    }
586
 
5978 rajveer 587
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 588
    {
5978 rajveer 589
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 590
      return recv_getItemAvailabilityAtLocation();
591
    }
592
 
5978 rajveer 593
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 594
    {
595
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
596
      args.setItemId(itemId);
5978 rajveer 597
      args.setSourceId(sourceId);
5945 mandeep.dh 598
      sendBase("getItemAvailabilityAtLocation", args);
599
    }
600
 
601
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
602
    {
603
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
604
      receiveBase(result, "getItemAvailabilityAtLocation");
605
      if (result.isSetSuccess()) {
606
        return result.success;
607
      }
608
      if (result.isex != null) {
609
        throw result.isex;
610
      }
611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
612
    }
613
 
614
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
615
    {
616
      send_getAllWarehouses(isActive);
617
      return recv_getAllWarehouses();
618
    }
619
 
620
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
621
    {
622
      getAllWarehouses_args args = new getAllWarehouses_args();
623
      args.setIsActive(isActive);
624
      sendBase("getAllWarehouses", args);
625
    }
626
 
627
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
628
    {
629
      getAllWarehouses_result result = new getAllWarehouses_result();
630
      receiveBase(result, "getAllWarehouses");
631
      if (result.isSetSuccess()) {
632
        return result.success;
633
      }
634
      if (result.cex != null) {
635
        throw result.cex;
636
      }
637
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
638
    }
639
 
640
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
641
    {
642
      send_getWarehouse(warehouse_id);
643
      return recv_getWarehouse();
644
    }
645
 
646
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
647
    {
648
      getWarehouse_args args = new getWarehouse_args();
649
      args.setWarehouse_id(warehouse_id);
650
      sendBase("getWarehouse", args);
651
    }
652
 
653
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
654
    {
655
      getWarehouse_result result = new getWarehouse_result();
656
      receiveBase(result, "getWarehouse");
657
      if (result.isSetSuccess()) {
658
        return result.success;
659
      }
660
      if (result.cex != null) {
661
        throw result.cex;
662
      }
663
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
664
    }
665
 
666
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
667
    {
668
      send_getAllItemsForWarehouse(warehouse_id);
669
      return recv_getAllItemsForWarehouse();
670
    }
671
 
672
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
673
    {
674
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
675
      args.setWarehouse_id(warehouse_id);
676
      sendBase("getAllItemsForWarehouse", args);
677
    }
678
 
679
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
680
    {
681
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
682
      receiveBase(result, "getAllItemsForWarehouse");
683
      if (result.isSetSuccess()) {
684
        return result.success;
685
      }
686
      if (result.cex != null) {
687
        throw result.cex;
688
      }
689
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
690
    }
691
 
5967 rajveer 692
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 693
    {
5967 rajveer 694
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
695
      return recv_isOrderBillable();
696
    }
697
 
698
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
699
    {
700
      isOrderBillable_args args = new isOrderBillable_args();
701
      args.setItemId(itemId);
702
      args.setWarehouseId(warehouseId);
703
      args.setSourceId(sourceId);
704
      args.setOrderId(orderId);
705
      sendBase("isOrderBillable", args);
706
    }
707
 
708
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
709
    {
710
      isOrderBillable_result result = new isOrderBillable_result();
711
      receiveBase(result, "isOrderBillable");
712
      if (result.isSetSuccess()) {
713
        return result.success;
714
      }
715
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
716
    }
717
 
718
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
719
    {
720
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 721
      return recv_reserveItemInWarehouse();
722
    }
723
 
5967 rajveer 724
    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 725
    {
726
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
727
      args.setItemId(itemId);
728
      args.setWarehouseId(warehouseId);
5967 rajveer 729
      args.setSourceId(sourceId);
730
      args.setOrderId(orderId);
731
      args.setCreatedTimestamp(createdTimestamp);
732
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 733
      args.setQuantity(quantity);
734
      sendBase("reserveItemInWarehouse", args);
735
    }
736
 
737
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
738
    {
739
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
740
      receiveBase(result, "reserveItemInWarehouse");
741
      if (result.isSetSuccess()) {
742
        return result.success;
743
      }
744
      if (result.cex != null) {
745
        throw result.cex;
746
      }
747
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
748
    }
749
 
5967 rajveer 750
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 751
    {
5967 rajveer 752
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 753
      return recv_reduceReservationCount();
754
    }
755
 
5967 rajveer 756
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 757
    {
758
      reduceReservationCount_args args = new reduceReservationCount_args();
759
      args.setItemId(itemId);
760
      args.setWarehouseId(warehouseId);
5967 rajveer 761
      args.setSourceId(sourceId);
762
      args.setOrderId(orderId);
5945 mandeep.dh 763
      args.setQuantity(quantity);
764
      sendBase("reduceReservationCount", args);
765
    }
766
 
767
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
768
    {
769
      reduceReservationCount_result result = new reduceReservationCount_result();
770
      receiveBase(result, "reduceReservationCount");
771
      if (result.isSetSuccess()) {
772
        return result.success;
773
      }
774
      if (result.cex != null) {
775
        throw result.cex;
776
      }
777
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
778
    }
779
 
780
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
781
    {
782
      send_getItemPricing(itemId, vendorId);
783
      return recv_getItemPricing();
784
    }
785
 
786
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
787
    {
788
      getItemPricing_args args = new getItemPricing_args();
789
      args.setItemId(itemId);
790
      args.setVendorId(vendorId);
791
      sendBase("getItemPricing", args);
792
    }
793
 
794
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
795
    {
796
      getItemPricing_result result = new getItemPricing_result();
797
      receiveBase(result, "getItemPricing");
798
      if (result.isSetSuccess()) {
799
        return result.success;
800
      }
801
      if (result.cex != null) {
802
        throw result.cex;
803
      }
804
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
805
    }
806
 
807
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
808
    {
809
      send_getAllItemPricing(itemId);
810
      return recv_getAllItemPricing();
811
    }
812
 
813
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
814
    {
815
      getAllItemPricing_args args = new getAllItemPricing_args();
816
      args.setItemId(itemId);
817
      sendBase("getAllItemPricing", args);
818
    }
819
 
820
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
821
    {
822
      getAllItemPricing_result result = new getAllItemPricing_result();
823
      receiveBase(result, "getAllItemPricing");
824
      if (result.isSetSuccess()) {
825
        return result.success;
826
      }
827
      if (result.cex != null) {
828
        throw result.cex;
829
      }
830
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
831
    }
832
 
833
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
834
    {
835
      send_addVendorItemPricing(vendorItemPricing);
836
      recv_addVendorItemPricing();
837
    }
838
 
839
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
840
    {
841
      addVendorItemPricing_args args = new addVendorItemPricing_args();
842
      args.setVendorItemPricing(vendorItemPricing);
843
      sendBase("addVendorItemPricing", args);
844
    }
845
 
846
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
847
    {
848
      addVendorItemPricing_result result = new addVendorItemPricing_result();
849
      receiveBase(result, "addVendorItemPricing");
850
      if (result.cex != null) {
851
        throw result.cex;
852
      }
853
      return;
854
    }
855
 
856
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
857
    {
858
      send_getVendor(vendorId);
859
      return recv_getVendor();
860
    }
861
 
862
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
863
    {
864
      getVendor_args args = new getVendor_args();
865
      args.setVendorId(vendorId);
866
      sendBase("getVendor", args);
867
    }
868
 
869
    public Vendor recv_getVendor() throws org.apache.thrift.TException
870
    {
871
      getVendor_result result = new getVendor_result();
872
      receiveBase(result, "getVendor");
873
      if (result.isSetSuccess()) {
874
        return result.success;
875
      }
876
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
877
    }
878
 
879
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
880
    {
881
      send_getAllVendors();
882
      return recv_getAllVendors();
883
    }
884
 
885
    public void send_getAllVendors() throws org.apache.thrift.TException
886
    {
887
      getAllVendors_args args = new getAllVendors_args();
888
      sendBase("getAllVendors", args);
889
    }
890
 
891
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
892
    {
893
      getAllVendors_result result = new getAllVendors_result();
894
      receiveBase(result, "getAllVendors");
895
      if (result.isSetSuccess()) {
896
        return result.success;
897
      }
898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
899
    }
900
 
901
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
902
    {
903
      send_addVendorItemMapping(key, vendorItemMapping);
904
      recv_addVendorItemMapping();
905
    }
906
 
907
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
908
    {
909
      addVendorItemMapping_args args = new addVendorItemMapping_args();
910
      args.setKey(key);
911
      args.setVendorItemMapping(vendorItemMapping);
912
      sendBase("addVendorItemMapping", args);
913
    }
914
 
915
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
916
    {
917
      addVendorItemMapping_result result = new addVendorItemMapping_result();
918
      receiveBase(result, "addVendorItemMapping");
919
      if (result.cex != null) {
920
        throw result.cex;
921
      }
922
      return;
923
    }
924
 
925
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
926
    {
927
      send_getVendorItemMappings(itemId);
928
      return recv_getVendorItemMappings();
929
    }
930
 
931
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
932
    {
933
      getVendorItemMappings_args args = new getVendorItemMappings_args();
934
      args.setItemId(itemId);
935
      sendBase("getVendorItemMappings", args);
936
    }
937
 
938
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
939
    {
940
      getVendorItemMappings_result result = new getVendorItemMappings_result();
941
      receiveBase(result, "getVendorItemMappings");
942
      if (result.isSetSuccess()) {
943
        return result.success;
944
      }
945
      if (result.cex != null) {
946
        throw result.cex;
947
      }
948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
949
    }
950
 
951
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
952
    {
953
      send_getPendingOrdersInventory(vendorid);
954
      return recv_getPendingOrdersInventory();
955
    }
956
 
957
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
958
    {
959
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
960
      args.setVendorid(vendorid);
961
      sendBase("getPendingOrdersInventory", args);
962
    }
963
 
964
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
965
    {
966
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
967
      receiveBase(result, "getPendingOrdersInventory");
968
      if (result.isSetSuccess()) {
969
        return result.success;
970
      }
971
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
972
    }
973
 
974
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
975
    {
976
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
977
      return recv_getWarehouses();
978
    }
979
 
980
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
981
    {
982
      getWarehouses_args args = new getWarehouses_args();
983
      args.setWarehouseType(warehouseType);
984
      args.setInventoryType(inventoryType);
985
      args.setVendorId(vendorId);
986
      args.setBillingWarehouseId(billingWarehouseId);
987
      args.setShippingWarehouseId(shippingWarehouseId);
988
      sendBase("getWarehouses", args);
989
    }
990
 
991
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
992
    {
993
      getWarehouses_result result = new getWarehouses_result();
994
      receiveBase(result, "getWarehouses");
995
      if (result.isSetSuccess()) {
996
        return result.success;
997
      }
998
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
999
    }
1000
 
1001
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1002
    {
1003
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1004
      recv_resetAvailability();
1005
    }
1006
 
1007
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1008
    {
1009
      resetAvailability_args args = new resetAvailability_args();
1010
      args.setItemKey(itemKey);
1011
      args.setVendorId(vendorId);
1012
      args.setQuantity(quantity);
1013
      args.setWarehouseId(warehouseId);
1014
      sendBase("resetAvailability", args);
1015
    }
1016
 
1017
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1018
    {
1019
      resetAvailability_result result = new resetAvailability_result();
1020
      receiveBase(result, "resetAvailability");
1021
      if (result.cex != null) {
1022
        throw result.cex;
1023
      }
1024
      return;
1025
    }
1026
 
1027
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1028
    {
1029
      send_resetAvailabilityForWarehouse(warehouseId);
1030
      recv_resetAvailabilityForWarehouse();
1031
    }
1032
 
1033
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1034
    {
1035
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1036
      args.setWarehouseId(warehouseId);
1037
      sendBase("resetAvailabilityForWarehouse", args);
1038
    }
1039
 
1040
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1041
    {
1042
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1043
      receiveBase(result, "resetAvailabilityForWarehouse");
1044
      if (result.cex != null) {
1045
        throw result.cex;
1046
      }
1047
      return;
1048
    }
1049
 
1050
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1051
    {
1052
      send_getItemKeysToBeProcessed(warehouseId);
1053
      return recv_getItemKeysToBeProcessed();
1054
    }
1055
 
1056
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1057
    {
1058
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1059
      args.setWarehouseId(warehouseId);
1060
      sendBase("getItemKeysToBeProcessed", args);
1061
    }
1062
 
1063
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1064
    {
1065
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1066
      receiveBase(result, "getItemKeysToBeProcessed");
1067
      if (result.isSetSuccess()) {
1068
        return result.success;
1069
      }
1070
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1071
    }
1072
 
1073
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1074
    {
1075
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1076
      recv_markMissedInventoryUpdatesAsProcessed();
1077
    }
1078
 
1079
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1080
    {
1081
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1082
      args.setItemKey(itemKey);
1083
      args.setWarehouseId(warehouseId);
1084
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1085
    }
1086
 
1087
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1088
    {
1089
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1090
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1091
      return;
1092
    }
1093
 
1094
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1095
    {
1096
      send_getIgnoredItemKeys();
1097
      return recv_getIgnoredItemKeys();
1098
    }
1099
 
1100
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1101
    {
1102
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1103
      sendBase("getIgnoredItemKeys", args);
1104
    }
1105
 
1106
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1107
    {
1108
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1109
      receiveBase(result, "getIgnoredItemKeys");
1110
      if (result.isSetSuccess()) {
1111
        return result.success;
1112
      }
1113
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1114
    }
1115
 
1116
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1117
    {
1118
      send_addBadInventory(itemId, warehouseId, quantity);
1119
      recv_addBadInventory();
1120
    }
1121
 
1122
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1123
    {
1124
      addBadInventory_args args = new addBadInventory_args();
1125
      args.setItemId(itemId);
1126
      args.setWarehouseId(warehouseId);
1127
      args.setQuantity(quantity);
1128
      sendBase("addBadInventory", args);
1129
    }
1130
 
1131
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1132
    {
1133
      addBadInventory_result result = new addBadInventory_result();
1134
      receiveBase(result, "addBadInventory");
1135
      if (result.cex != null) {
1136
        throw result.cex;
1137
      }
1138
      return;
1139
    }
1140
 
1141
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1142
    {
1143
      send_getShippingLocations();
1144
      return recv_getShippingLocations();
1145
    }
1146
 
1147
    public void send_getShippingLocations() throws org.apache.thrift.TException
1148
    {
1149
      getShippingLocations_args args = new getShippingLocations_args();
1150
      sendBase("getShippingLocations", args);
1151
    }
1152
 
1153
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1154
    {
1155
      getShippingLocations_result result = new getShippingLocations_result();
1156
      receiveBase(result, "getShippingLocations");
1157
      if (result.isSetSuccess()) {
1158
        return result.success;
1159
      }
1160
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1161
    }
1162
 
1163
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1164
    {
1165
      send_getAllVendorItemMappings();
1166
      return recv_getAllVendorItemMappings();
1167
    }
1168
 
1169
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1170
    {
1171
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1172
      sendBase("getAllVendorItemMappings", args);
1173
    }
1174
 
1175
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1176
    {
1177
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1178
      receiveBase(result, "getAllVendorItemMappings");
1179
      if (result.isSetSuccess()) {
1180
        return result.success;
1181
      }
1182
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1183
    }
1184
 
1185
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1186
    {
1187
      send_getInventorySnapshot(warehouseId);
1188
      return recv_getInventorySnapshot();
1189
    }
1190
 
1191
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1192
    {
1193
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1194
      args.setWarehouseId(warehouseId);
1195
      sendBase("getInventorySnapshot", args);
1196
    }
1197
 
1198
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1199
    {
1200
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1201
      receiveBase(result, "getInventorySnapshot");
1202
      if (result.isSetSuccess()) {
1203
        return result.success;
1204
      }
1205
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1206
    }
1207
 
1208
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1209
    {
1210
      send_clearItemAvailabilityCache();
1211
      recv_clearItemAvailabilityCache();
1212
    }
1213
 
1214
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1215
    {
1216
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1217
      sendBase("clearItemAvailabilityCache", args);
1218
    }
1219
 
1220
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1221
    {
1222
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1223
      receiveBase(result, "clearItemAvailabilityCache");
1224
      return;
1225
    }
1226
 
1227
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1228
    {
1229
      send_updateVendorString(warehouseId, vendorString);
1230
      recv_updateVendorString();
1231
    }
1232
 
1233
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1234
    {
1235
      updateVendorString_args args = new updateVendorString_args();
1236
      args.setWarehouseId(warehouseId);
1237
      args.setVendorString(vendorString);
1238
      sendBase("updateVendorString", args);
1239
    }
1240
 
1241
    public void recv_updateVendorString() throws org.apache.thrift.TException
1242
    {
1243
      updateVendorString_result result = new updateVendorString_result();
1244
      receiveBase(result, "updateVendorString");
1245
      return;
1246
    }
1247
 
6096 amit.gupta 1248
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1249
    {
1250
      send_clearItemAvailabilityCacheForItem(item_id);
1251
      recv_clearItemAvailabilityCacheForItem();
1252
    }
1253
 
1254
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1255
    {
1256
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1257
      args.setItem_id(item_id);
1258
      sendBase("clearItemAvailabilityCacheForItem", args);
1259
    }
1260
 
1261
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1262
    {
1263
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1264
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1265
      return;
1266
    }
1267
 
6467 amar.kumar 1268
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1269
    {
1270
      send_getOurWarehouseIdForVendor(vendorId);
1271
      return recv_getOurWarehouseIdForVendor();
1272
    }
1273
 
1274
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1275
    {
1276
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1277
      args.setVendorId(vendorId);
1278
      sendBase("getOurWarehouseIdForVendor", args);
1279
    }
1280
 
1281
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1282
    {
1283
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1284
      receiveBase(result, "getOurWarehouseIdForVendor");
1285
      if (result.isSetSuccess()) {
1286
        return result.success;
1287
      }
1288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1289
    }
1290
 
5945 mandeep.dh 1291
  }
1292
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1293
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1294
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1295
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1296
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1297
        this.clientManager = clientManager;
1298
        this.protocolFactory = protocolFactory;
1299
      }
1300
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1301
        return new AsyncClient(protocolFactory, clientManager, transport);
1302
      }
1303
    }
1304
 
1305
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1306
      super(protocolFactory, clientManager, transport);
1307
    }
1308
 
1309
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1310
      checkReady();
1311
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1312
      this.___currentMethod = method_call;
1313
      ___manager.call(method_call);
1314
    }
1315
 
1316
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1317
      private Warehouse warehouse;
1318
      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 {
1319
        super(client, protocolFactory, transport, resultHandler, false);
1320
        this.warehouse = warehouse;
1321
      }
1322
 
1323
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1324
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1325
        addWarehouse_args args = new addWarehouse_args();
1326
        args.setWarehouse(warehouse);
1327
        args.write(prot);
1328
        prot.writeMessageEnd();
1329
      }
1330
 
1331
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1332
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1333
          throw new IllegalStateException("Method call not finished!");
1334
        }
1335
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1336
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1337
        return (new Client(prot)).recv_addWarehouse();
1338
      }
1339
    }
1340
 
1341
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1342
      checkReady();
1343
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1344
      this.___currentMethod = method_call;
1345
      ___manager.call(method_call);
1346
    }
1347
 
1348
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1349
      private Vendor vendor;
1350
      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 {
1351
        super(client, protocolFactory, transport, resultHandler, false);
1352
        this.vendor = vendor;
1353
      }
1354
 
1355
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1356
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1357
        addVendor_args args = new addVendor_args();
1358
        args.setVendor(vendor);
1359
        args.write(prot);
1360
        prot.writeMessageEnd();
1361
      }
1362
 
1363
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1364
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1365
          throw new IllegalStateException("Method call not finished!");
1366
        }
1367
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1368
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1369
        return (new Client(prot)).recv_addVendor();
1370
      }
1371
    }
1372
 
1373
    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 {
1374
      checkReady();
1375
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1376
      this.___currentMethod = method_call;
1377
      ___manager.call(method_call);
1378
    }
1379
 
1380
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1381
      private long warehouse_id;
1382
      private String timestamp;
1383
      private Map<String,Long> availability;
1384
      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 {
1385
        super(client, protocolFactory, transport, resultHandler, false);
1386
        this.warehouse_id = warehouse_id;
1387
        this.timestamp = timestamp;
1388
        this.availability = availability;
1389
      }
1390
 
1391
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1392
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1393
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1394
        args.setWarehouse_id(warehouse_id);
1395
        args.setTimestamp(timestamp);
1396
        args.setAvailability(availability);
1397
        args.write(prot);
1398
        prot.writeMessageEnd();
1399
      }
1400
 
1401
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1402
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1403
          throw new IllegalStateException("Method call not finished!");
1404
        }
1405
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1406
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1407
        (new Client(prot)).recv_updateInventoryHistory();
1408
      }
1409
    }
1410
 
1411
    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 {
1412
      checkReady();
1413
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1414
      this.___currentMethod = method_call;
1415
      ___manager.call(method_call);
1416
    }
1417
 
1418
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1419
      private long warehouse_id;
1420
      private String timestamp;
1421
      private Map<String,Long> availability;
1422
      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 {
1423
        super(client, protocolFactory, transport, resultHandler, false);
1424
        this.warehouse_id = warehouse_id;
1425
        this.timestamp = timestamp;
1426
        this.availability = availability;
1427
      }
1428
 
1429
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1430
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1431
        updateInventory_args args = new updateInventory_args();
1432
        args.setWarehouse_id(warehouse_id);
1433
        args.setTimestamp(timestamp);
1434
        args.setAvailability(availability);
1435
        args.write(prot);
1436
        prot.writeMessageEnd();
1437
      }
1438
 
1439
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1440
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1441
          throw new IllegalStateException("Method call not finished!");
1442
        }
1443
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1444
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1445
        (new Client(prot)).recv_updateInventory();
1446
      }
1447
    }
1448
 
1449
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
1450
      checkReady();
1451
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1452
      this.___currentMethod = method_call;
1453
      ___manager.call(method_call);
1454
    }
1455
 
1456
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1457
      private long itemId;
1458
      private long warehouseId;
1459
      private long quantity;
1460
      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 {
1461
        super(client, protocolFactory, transport, resultHandler, false);
1462
        this.itemId = itemId;
1463
        this.warehouseId = warehouseId;
1464
        this.quantity = quantity;
1465
      }
1466
 
1467
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1468
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1469
        addInventory_args args = new addInventory_args();
1470
        args.setItemId(itemId);
1471
        args.setWarehouseId(warehouseId);
1472
        args.setQuantity(quantity);
1473
        args.write(prot);
1474
        prot.writeMessageEnd();
1475
      }
1476
 
1477
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1478
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1479
          throw new IllegalStateException("Method call not finished!");
1480
        }
1481
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1482
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1483
        (new Client(prot)).recv_addInventory();
1484
      }
1485
    }
1486
 
1487
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1488
      checkReady();
1489
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1490
      this.___currentMethod = method_call;
1491
      ___manager.call(method_call);
1492
    }
1493
 
1494
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1495
      private long warehouse_id;
1496
      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 {
1497
        super(client, protocolFactory, transport, resultHandler, false);
1498
        this.warehouse_id = warehouse_id;
1499
      }
1500
 
1501
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1502
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1503
        retireWarehouse_args args = new retireWarehouse_args();
1504
        args.setWarehouse_id(warehouse_id);
1505
        args.write(prot);
1506
        prot.writeMessageEnd();
1507
      }
1508
 
1509
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1510
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1511
          throw new IllegalStateException("Method call not finished!");
1512
        }
1513
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1514
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1515
        (new Client(prot)).recv_retireWarehouse();
1516
      }
1517
    }
1518
 
1519
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
1520
      checkReady();
1521
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
1522
      this.___currentMethod = method_call;
1523
      ___manager.call(method_call);
1524
    }
1525
 
1526
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
1527
      private long item_id;
1528
      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 {
1529
        super(client, protocolFactory, transport, resultHandler, false);
1530
        this.item_id = item_id;
1531
      }
1532
 
1533
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1534
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1535
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
1536
        args.setItem_id(item_id);
1537
        args.write(prot);
1538
        prot.writeMessageEnd();
1539
      }
1540
 
1541
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
1542
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1543
          throw new IllegalStateException("Method call not finished!");
1544
        }
1545
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1547
        return (new Client(prot)).recv_getItemInventoryByItemId();
1548
      }
1549
    }
1550
 
1551
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1552
      checkReady();
1553
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
1554
      this.___currentMethod = method_call;
1555
      ___manager.call(method_call);
1556
    }
1557
 
1558
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1559
      private long warehouse_id;
1560
      private long item_id;
1561
      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 {
1562
        super(client, protocolFactory, transport, resultHandler, false);
1563
        this.warehouse_id = warehouse_id;
1564
        this.item_id = item_id;
1565
      }
1566
 
1567
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1568
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1569
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
1570
        args.setWarehouse_id(warehouse_id);
1571
        args.setItem_id(item_id);
1572
        args.write(prot);
1573
        prot.writeMessageEnd();
1574
      }
1575
 
1576
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1577
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1578
          throw new IllegalStateException("Method call not finished!");
1579
        }
1580
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1581
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1582
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
1583
      }
1584
    }
1585
 
5978 rajveer 1586
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 1587
      checkReady();
5978 rajveer 1588
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1589
      this.___currentMethod = method_call;
1590
      ___manager.call(method_call);
1591
    }
1592
 
1593
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1594
      private long itemId;
5978 rajveer 1595
      private long sourceId;
1596
      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 1597
        super(client, protocolFactory, transport, resultHandler, false);
1598
        this.itemId = itemId;
5978 rajveer 1599
        this.sourceId = sourceId;
5945 mandeep.dh 1600
      }
1601
 
1602
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1603
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1604
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
1605
        args.setItemId(itemId);
5978 rajveer 1606
        args.setSourceId(sourceId);
5945 mandeep.dh 1607
        args.write(prot);
1608
        prot.writeMessageEnd();
1609
      }
1610
 
1611
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1612
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1613
          throw new IllegalStateException("Method call not finished!");
1614
        }
1615
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1616
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1617
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
1618
      }
1619
    }
1620
 
1621
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
1622
      checkReady();
1623
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
1624
      this.___currentMethod = method_call;
1625
      ___manager.call(method_call);
1626
    }
1627
 
1628
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
1629
      private boolean isActive;
1630
      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 {
1631
        super(client, protocolFactory, transport, resultHandler, false);
1632
        this.isActive = isActive;
1633
      }
1634
 
1635
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1636
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
1637
        getAllWarehouses_args args = new getAllWarehouses_args();
1638
        args.setIsActive(isActive);
1639
        args.write(prot);
1640
        prot.writeMessageEnd();
1641
      }
1642
 
1643
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1644
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1645
          throw new IllegalStateException("Method call not finished!");
1646
        }
1647
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1648
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1649
        return (new Client(prot)).recv_getAllWarehouses();
1650
      }
1651
    }
1652
 
1653
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1654
      checkReady();
1655
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1656
      this.___currentMethod = method_call;
1657
      ___manager.call(method_call);
1658
    }
1659
 
1660
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1661
      private long warehouse_id;
1662
      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 {
1663
        super(client, protocolFactory, transport, resultHandler, false);
1664
        this.warehouse_id = warehouse_id;
1665
      }
1666
 
1667
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1668
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1669
        getWarehouse_args args = new getWarehouse_args();
1670
        args.setWarehouse_id(warehouse_id);
1671
        args.write(prot);
1672
        prot.writeMessageEnd();
1673
      }
1674
 
1675
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
1676
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1677
          throw new IllegalStateException("Method call not finished!");
1678
        }
1679
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1680
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1681
        return (new Client(prot)).recv_getWarehouse();
1682
      }
1683
    }
1684
 
1685
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1686
      checkReady();
1687
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1688
      this.___currentMethod = method_call;
1689
      ___manager.call(method_call);
1690
    }
1691
 
1692
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1693
      private long warehouse_id;
1694
      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 {
1695
        super(client, protocolFactory, transport, resultHandler, false);
1696
        this.warehouse_id = warehouse_id;
1697
      }
1698
 
1699
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1700
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1701
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
1702
        args.setWarehouse_id(warehouse_id);
1703
        args.write(prot);
1704
        prot.writeMessageEnd();
1705
      }
1706
 
1707
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1708
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1709
          throw new IllegalStateException("Method call not finished!");
1710
        }
1711
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1712
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1713
        return (new Client(prot)).recv_getAllItemsForWarehouse();
1714
      }
1715
    }
1716
 
5967 rajveer 1717
    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 1718
      checkReady();
5967 rajveer 1719
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1720
      this.___currentMethod = method_call;
1721
      ___manager.call(method_call);
1722
    }
1723
 
5967 rajveer 1724
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
1725
      private long itemId;
1726
      private long warehouseId;
1727
      private long sourceId;
1728
      private long orderId;
1729
      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 {
1730
        super(client, protocolFactory, transport, resultHandler, false);
1731
        this.itemId = itemId;
1732
        this.warehouseId = warehouseId;
1733
        this.sourceId = sourceId;
1734
        this.orderId = orderId;
1735
      }
1736
 
1737
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1738
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
1739
        isOrderBillable_args args = new isOrderBillable_args();
1740
        args.setItemId(itemId);
1741
        args.setWarehouseId(warehouseId);
1742
        args.setSourceId(sourceId);
1743
        args.setOrderId(orderId);
1744
        args.write(prot);
1745
        prot.writeMessageEnd();
1746
      }
1747
 
1748
      public boolean getResult() throws org.apache.thrift.TException {
1749
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1750
          throw new IllegalStateException("Method call not finished!");
1751
        }
1752
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1753
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1754
        return (new Client(prot)).recv_isOrderBillable();
1755
      }
1756
    }
1757
 
1758
    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 {
1759
      checkReady();
1760
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
1761
      this.___currentMethod = method_call;
1762
      ___manager.call(method_call);
1763
    }
1764
 
5945 mandeep.dh 1765
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1766
      private long itemId;
1767
      private long warehouseId;
5967 rajveer 1768
      private long sourceId;
1769
      private long orderId;
1770
      private long createdTimestamp;
1771
      private long promisedShippingTimestamp;
5945 mandeep.dh 1772
      private double quantity;
5967 rajveer 1773
      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 1774
        super(client, protocolFactory, transport, resultHandler, false);
1775
        this.itemId = itemId;
1776
        this.warehouseId = warehouseId;
5967 rajveer 1777
        this.sourceId = sourceId;
1778
        this.orderId = orderId;
1779
        this.createdTimestamp = createdTimestamp;
1780
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 1781
        this.quantity = quantity;
1782
      }
1783
 
1784
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1785
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1786
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
1787
        args.setItemId(itemId);
1788
        args.setWarehouseId(warehouseId);
5967 rajveer 1789
        args.setSourceId(sourceId);
1790
        args.setOrderId(orderId);
1791
        args.setCreatedTimestamp(createdTimestamp);
1792
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 1793
        args.setQuantity(quantity);
1794
        args.write(prot);
1795
        prot.writeMessageEnd();
1796
      }
1797
 
1798
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
1799
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1800
          throw new IllegalStateException("Method call not finished!");
1801
        }
1802
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1803
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1804
        return (new Client(prot)).recv_reserveItemInWarehouse();
1805
      }
1806
    }
1807
 
5967 rajveer 1808
    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 1809
      checkReady();
5967 rajveer 1810
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 1811
      this.___currentMethod = method_call;
1812
      ___manager.call(method_call);
1813
    }
1814
 
1815
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1816
      private long itemId;
1817
      private long warehouseId;
5967 rajveer 1818
      private long sourceId;
1819
      private long orderId;
5945 mandeep.dh 1820
      private double quantity;
5967 rajveer 1821
      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 1822
        super(client, protocolFactory, transport, resultHandler, false);
1823
        this.itemId = itemId;
1824
        this.warehouseId = warehouseId;
5967 rajveer 1825
        this.sourceId = sourceId;
1826
        this.orderId = orderId;
5945 mandeep.dh 1827
        this.quantity = quantity;
1828
      }
1829
 
1830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1832
        reduceReservationCount_args args = new reduceReservationCount_args();
1833
        args.setItemId(itemId);
1834
        args.setWarehouseId(warehouseId);
5967 rajveer 1835
        args.setSourceId(sourceId);
1836
        args.setOrderId(orderId);
5945 mandeep.dh 1837
        args.setQuantity(quantity);
1838
        args.write(prot);
1839
        prot.writeMessageEnd();
1840
      }
1841
 
1842
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
1843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1844
          throw new IllegalStateException("Method call not finished!");
1845
        }
1846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1848
        return (new Client(prot)).recv_reduceReservationCount();
1849
      }
1850
    }
1851
 
1852
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1853
      checkReady();
1854
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
1855
      this.___currentMethod = method_call;
1856
      ___manager.call(method_call);
1857
    }
1858
 
1859
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1860
      private long itemId;
1861
      private long vendorId;
1862
      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 {
1863
        super(client, protocolFactory, transport, resultHandler, false);
1864
        this.itemId = itemId;
1865
        this.vendorId = vendorId;
1866
      }
1867
 
1868
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1869
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1870
        getItemPricing_args args = new getItemPricing_args();
1871
        args.setItemId(itemId);
1872
        args.setVendorId(vendorId);
1873
        args.write(prot);
1874
        prot.writeMessageEnd();
1875
      }
1876
 
1877
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
1878
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1879
          throw new IllegalStateException("Method call not finished!");
1880
        }
1881
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1882
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1883
        return (new Client(prot)).recv_getItemPricing();
1884
      }
1885
    }
1886
 
1887
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1888
      checkReady();
1889
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1890
      this.___currentMethod = method_call;
1891
      ___manager.call(method_call);
1892
    }
1893
 
1894
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1895
      private long itemId;
1896
      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 {
1897
        super(client, protocolFactory, transport, resultHandler, false);
1898
        this.itemId = itemId;
1899
      }
1900
 
1901
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1902
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1903
        getAllItemPricing_args args = new getAllItemPricing_args();
1904
        args.setItemId(itemId);
1905
        args.write(prot);
1906
        prot.writeMessageEnd();
1907
      }
1908
 
1909
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
1910
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1911
          throw new IllegalStateException("Method call not finished!");
1912
        }
1913
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1914
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1915
        return (new Client(prot)).recv_getAllItemPricing();
1916
      }
1917
    }
1918
 
1919
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
1920
      checkReady();
1921
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
1922
      this.___currentMethod = method_call;
1923
      ___manager.call(method_call);
1924
    }
1925
 
1926
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
1927
      private VendorItemPricing vendorItemPricing;
1928
      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 {
1929
        super(client, protocolFactory, transport, resultHandler, false);
1930
        this.vendorItemPricing = vendorItemPricing;
1931
      }
1932
 
1933
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1934
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1935
        addVendorItemPricing_args args = new addVendorItemPricing_args();
1936
        args.setVendorItemPricing(vendorItemPricing);
1937
        args.write(prot);
1938
        prot.writeMessageEnd();
1939
      }
1940
 
1941
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1942
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1943
          throw new IllegalStateException("Method call not finished!");
1944
        }
1945
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1946
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1947
        (new Client(prot)).recv_addVendorItemPricing();
1948
      }
1949
    }
1950
 
1951
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
1952
      checkReady();
1953
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
1954
      this.___currentMethod = method_call;
1955
      ___manager.call(method_call);
1956
    }
1957
 
1958
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1959
      private long vendorId;
1960
      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 {
1961
        super(client, protocolFactory, transport, resultHandler, false);
1962
        this.vendorId = vendorId;
1963
      }
1964
 
1965
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1966
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1967
        getVendor_args args = new getVendor_args();
1968
        args.setVendorId(vendorId);
1969
        args.write(prot);
1970
        prot.writeMessageEnd();
1971
      }
1972
 
1973
      public Vendor getResult() throws org.apache.thrift.TException {
1974
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1975
          throw new IllegalStateException("Method call not finished!");
1976
        }
1977
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1978
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1979
        return (new Client(prot)).recv_getVendor();
1980
      }
1981
    }
1982
 
1983
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
1984
      checkReady();
1985
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
1986
      this.___currentMethod = method_call;
1987
      ___manager.call(method_call);
1988
    }
1989
 
1990
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
1991
      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 {
1992
        super(client, protocolFactory, transport, resultHandler, false);
1993
      }
1994
 
1995
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1996
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
1997
        getAllVendors_args args = new getAllVendors_args();
1998
        args.write(prot);
1999
        prot.writeMessageEnd();
2000
      }
2001
 
2002
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2004
          throw new IllegalStateException("Method call not finished!");
2005
        }
2006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2008
        return (new Client(prot)).recv_getAllVendors();
2009
      }
2010
    }
2011
 
2012
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2013
      checkReady();
2014
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2015
      this.___currentMethod = method_call;
2016
      ___manager.call(method_call);
2017
    }
2018
 
2019
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2020
      private String key;
2021
      private VendorItemMapping vendorItemMapping;
2022
      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 {
2023
        super(client, protocolFactory, transport, resultHandler, false);
2024
        this.key = key;
2025
        this.vendorItemMapping = vendorItemMapping;
2026
      }
2027
 
2028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2030
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2031
        args.setKey(key);
2032
        args.setVendorItemMapping(vendorItemMapping);
2033
        args.write(prot);
2034
        prot.writeMessageEnd();
2035
      }
2036
 
2037
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2039
          throw new IllegalStateException("Method call not finished!");
2040
        }
2041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2043
        (new Client(prot)).recv_addVendorItemMapping();
2044
      }
2045
    }
2046
 
2047
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2048
      checkReady();
2049
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2050
      this.___currentMethod = method_call;
2051
      ___manager.call(method_call);
2052
    }
2053
 
2054
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2055
      private long itemId;
2056
      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 {
2057
        super(client, protocolFactory, transport, resultHandler, false);
2058
        this.itemId = itemId;
2059
      }
2060
 
2061
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2062
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2063
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2064
        args.setItemId(itemId);
2065
        args.write(prot);
2066
        prot.writeMessageEnd();
2067
      }
2068
 
2069
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2071
          throw new IllegalStateException("Method call not finished!");
2072
        }
2073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2075
        return (new Client(prot)).recv_getVendorItemMappings();
2076
      }
2077
    }
2078
 
2079
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2080
      checkReady();
2081
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2082
      this.___currentMethod = method_call;
2083
      ___manager.call(method_call);
2084
    }
2085
 
2086
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2087
      private long vendorid;
2088
      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 {
2089
        super(client, protocolFactory, transport, resultHandler, false);
2090
        this.vendorid = vendorid;
2091
      }
2092
 
2093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2095
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2096
        args.setVendorid(vendorid);
2097
        args.write(prot);
2098
        prot.writeMessageEnd();
2099
      }
2100
 
2101
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2102
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2103
          throw new IllegalStateException("Method call not finished!");
2104
        }
2105
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2106
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2107
        return (new Client(prot)).recv_getPendingOrdersInventory();
2108
      }
2109
    }
2110
 
2111
    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 {
2112
      checkReady();
2113
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2114
      this.___currentMethod = method_call;
2115
      ___manager.call(method_call);
2116
    }
2117
 
2118
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2119
      private WarehouseType warehouseType;
2120
      private InventoryType inventoryType;
2121
      private long vendorId;
2122
      private long billingWarehouseId;
2123
      private long shippingWarehouseId;
2124
      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 {
2125
        super(client, protocolFactory, transport, resultHandler, false);
2126
        this.warehouseType = warehouseType;
2127
        this.inventoryType = inventoryType;
2128
        this.vendorId = vendorId;
2129
        this.billingWarehouseId = billingWarehouseId;
2130
        this.shippingWarehouseId = shippingWarehouseId;
2131
      }
2132
 
2133
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2134
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2135
        getWarehouses_args args = new getWarehouses_args();
2136
        args.setWarehouseType(warehouseType);
2137
        args.setInventoryType(inventoryType);
2138
        args.setVendorId(vendorId);
2139
        args.setBillingWarehouseId(billingWarehouseId);
2140
        args.setShippingWarehouseId(shippingWarehouseId);
2141
        args.write(prot);
2142
        prot.writeMessageEnd();
2143
      }
2144
 
2145
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2147
          throw new IllegalStateException("Method call not finished!");
2148
        }
2149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2151
        return (new Client(prot)).recv_getWarehouses();
2152
      }
2153
    }
2154
 
2155
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2156
      checkReady();
2157
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2158
      this.___currentMethod = method_call;
2159
      ___manager.call(method_call);
2160
    }
2161
 
2162
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2163
      private String itemKey;
2164
      private long vendorId;
2165
      private long quantity;
2166
      private long warehouseId;
2167
      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 {
2168
        super(client, protocolFactory, transport, resultHandler, false);
2169
        this.itemKey = itemKey;
2170
        this.vendorId = vendorId;
2171
        this.quantity = quantity;
2172
        this.warehouseId = warehouseId;
2173
      }
2174
 
2175
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2176
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2177
        resetAvailability_args args = new resetAvailability_args();
2178
        args.setItemKey(itemKey);
2179
        args.setVendorId(vendorId);
2180
        args.setQuantity(quantity);
2181
        args.setWarehouseId(warehouseId);
2182
        args.write(prot);
2183
        prot.writeMessageEnd();
2184
      }
2185
 
2186
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2187
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2188
          throw new IllegalStateException("Method call not finished!");
2189
        }
2190
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2191
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2192
        (new Client(prot)).recv_resetAvailability();
2193
      }
2194
    }
2195
 
2196
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2197
      checkReady();
2198
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2199
      this.___currentMethod = method_call;
2200
      ___manager.call(method_call);
2201
    }
2202
 
2203
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2204
      private long warehouseId;
2205
      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 {
2206
        super(client, protocolFactory, transport, resultHandler, false);
2207
        this.warehouseId = warehouseId;
2208
      }
2209
 
2210
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2211
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2212
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2213
        args.setWarehouseId(warehouseId);
2214
        args.write(prot);
2215
        prot.writeMessageEnd();
2216
      }
2217
 
2218
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2219
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2220
          throw new IllegalStateException("Method call not finished!");
2221
        }
2222
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2223
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2224
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2225
      }
2226
    }
2227
 
2228
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2229
      checkReady();
2230
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2231
      this.___currentMethod = method_call;
2232
      ___manager.call(method_call);
2233
    }
2234
 
2235
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2236
      private long warehouseId;
2237
      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 {
2238
        super(client, protocolFactory, transport, resultHandler, false);
2239
        this.warehouseId = warehouseId;
2240
      }
2241
 
2242
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2243
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2244
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2245
        args.setWarehouseId(warehouseId);
2246
        args.write(prot);
2247
        prot.writeMessageEnd();
2248
      }
2249
 
2250
      public List<String> getResult() throws org.apache.thrift.TException {
2251
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2252
          throw new IllegalStateException("Method call not finished!");
2253
        }
2254
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2255
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2256
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2257
      }
2258
    }
2259
 
2260
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2261
      checkReady();
2262
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2263
      this.___currentMethod = method_call;
2264
      ___manager.call(method_call);
2265
    }
2266
 
2267
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2268
      private String itemKey;
2269
      private long warehouseId;
2270
      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 {
2271
        super(client, protocolFactory, transport, resultHandler, false);
2272
        this.itemKey = itemKey;
2273
        this.warehouseId = warehouseId;
2274
      }
2275
 
2276
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2277
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2278
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2279
        args.setItemKey(itemKey);
2280
        args.setWarehouseId(warehouseId);
2281
        args.write(prot);
2282
        prot.writeMessageEnd();
2283
      }
2284
 
2285
      public void getResult() throws org.apache.thrift.TException {
2286
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2287
          throw new IllegalStateException("Method call not finished!");
2288
        }
2289
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2290
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2291
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2292
      }
2293
    }
2294
 
2295
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2296
      checkReady();
2297
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2298
      this.___currentMethod = method_call;
2299
      ___manager.call(method_call);
2300
    }
2301
 
2302
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2303
      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 {
2304
        super(client, protocolFactory, transport, resultHandler, false);
2305
      }
2306
 
2307
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2308
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2309
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2310
        args.write(prot);
2311
        prot.writeMessageEnd();
2312
      }
2313
 
2314
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2315
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2316
          throw new IllegalStateException("Method call not finished!");
2317
        }
2318
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2319
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2320
        return (new Client(prot)).recv_getIgnoredItemKeys();
2321
      }
2322
    }
2323
 
2324
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2325
      checkReady();
2326
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2327
      this.___currentMethod = method_call;
2328
      ___manager.call(method_call);
2329
    }
2330
 
2331
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2332
      private long itemId;
2333
      private long warehouseId;
2334
      private long quantity;
2335
      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 {
2336
        super(client, protocolFactory, transport, resultHandler, false);
2337
        this.itemId = itemId;
2338
        this.warehouseId = warehouseId;
2339
        this.quantity = quantity;
2340
      }
2341
 
2342
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2343
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2344
        addBadInventory_args args = new addBadInventory_args();
2345
        args.setItemId(itemId);
2346
        args.setWarehouseId(warehouseId);
2347
        args.setQuantity(quantity);
2348
        args.write(prot);
2349
        prot.writeMessageEnd();
2350
      }
2351
 
2352
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2353
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2354
          throw new IllegalStateException("Method call not finished!");
2355
        }
2356
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2357
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2358
        (new Client(prot)).recv_addBadInventory();
2359
      }
2360
    }
2361
 
2362
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2363
      checkReady();
2364
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2365
      this.___currentMethod = method_call;
2366
      ___manager.call(method_call);
2367
    }
2368
 
2369
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2370
      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 {
2371
        super(client, protocolFactory, transport, resultHandler, false);
2372
      }
2373
 
2374
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2375
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2376
        getShippingLocations_args args = new getShippingLocations_args();
2377
        args.write(prot);
2378
        prot.writeMessageEnd();
2379
      }
2380
 
2381
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2382
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2383
          throw new IllegalStateException("Method call not finished!");
2384
        }
2385
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2386
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2387
        return (new Client(prot)).recv_getShippingLocations();
2388
      }
2389
    }
2390
 
2391
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2392
      checkReady();
2393
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
2394
      this.___currentMethod = method_call;
2395
      ___manager.call(method_call);
2396
    }
2397
 
2398
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2399
      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 {
2400
        super(client, protocolFactory, transport, resultHandler, false);
2401
      }
2402
 
2403
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2404
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2405
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
2406
        args.write(prot);
2407
        prot.writeMessageEnd();
2408
      }
2409
 
2410
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
2411
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2412
          throw new IllegalStateException("Method call not finished!");
2413
        }
2414
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2415
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2416
        return (new Client(prot)).recv_getAllVendorItemMappings();
2417
      }
2418
    }
2419
 
2420
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
2421
      checkReady();
2422
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2423
      this.___currentMethod = method_call;
2424
      ___manager.call(method_call);
2425
    }
2426
 
2427
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
2428
      private long warehouseId;
2429
      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 {
2430
        super(client, protocolFactory, transport, resultHandler, false);
2431
        this.warehouseId = warehouseId;
2432
      }
2433
 
2434
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2435
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2436
        getInventorySnapshot_args args = new getInventorySnapshot_args();
2437
        args.setWarehouseId(warehouseId);
2438
        args.write(prot);
2439
        prot.writeMessageEnd();
2440
      }
2441
 
2442
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
2443
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2444
          throw new IllegalStateException("Method call not finished!");
2445
        }
2446
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2447
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2448
        return (new Client(prot)).recv_getInventorySnapshot();
2449
      }
2450
    }
2451
 
2452
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
2453
      checkReady();
2454
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
2455
      this.___currentMethod = method_call;
2456
      ___manager.call(method_call);
2457
    }
2458
 
2459
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
2460
      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 {
2461
        super(client, protocolFactory, transport, resultHandler, false);
2462
      }
2463
 
2464
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2465
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
2466
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
2467
        args.write(prot);
2468
        prot.writeMessageEnd();
2469
      }
2470
 
2471
      public void getResult() throws org.apache.thrift.TException {
2472
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2473
          throw new IllegalStateException("Method call not finished!");
2474
        }
2475
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2476
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2477
        (new Client(prot)).recv_clearItemAvailabilityCache();
2478
      }
2479
    }
2480
 
2481
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
2482
      checkReady();
2483
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
2484
      this.___currentMethod = method_call;
2485
      ___manager.call(method_call);
2486
    }
2487
 
2488
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
2489
      private long warehouseId;
2490
      private String vendorString;
2491
      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 {
2492
        super(client, protocolFactory, transport, resultHandler, false);
2493
        this.warehouseId = warehouseId;
2494
        this.vendorString = vendorString;
2495
      }
2496
 
2497
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2498
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
2499
        updateVendorString_args args = new updateVendorString_args();
2500
        args.setWarehouseId(warehouseId);
2501
        args.setVendorString(vendorString);
2502
        args.write(prot);
2503
        prot.writeMessageEnd();
2504
      }
2505
 
2506
      public void getResult() throws org.apache.thrift.TException {
2507
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2508
          throw new IllegalStateException("Method call not finished!");
2509
        }
2510
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2511
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2512
        (new Client(prot)).recv_updateVendorString();
2513
      }
2514
    }
2515
 
6096 amit.gupta 2516
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
2517
      checkReady();
2518
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2519
      this.___currentMethod = method_call;
2520
      ___manager.call(method_call);
2521
    }
2522
 
2523
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2524
      private long item_id;
2525
      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 {
2526
        super(client, protocolFactory, transport, resultHandler, false);
2527
        this.item_id = item_id;
2528
      }
2529
 
2530
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2531
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2532
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
2533
        args.setItem_id(item_id);
2534
        args.write(prot);
2535
        prot.writeMessageEnd();
2536
      }
2537
 
2538
      public void getResult() throws org.apache.thrift.TException {
2539
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2540
          throw new IllegalStateException("Method call not finished!");
2541
        }
2542
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2543
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2544
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2545
      }
2546
    }
2547
 
6467 amar.kumar 2548
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
2549
      checkReady();
2550
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2551
      this.___currentMethod = method_call;
2552
      ___manager.call(method_call);
2553
    }
2554
 
2555
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2556
      private long vendorId;
2557
      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 {
2558
        super(client, protocolFactory, transport, resultHandler, false);
2559
        this.vendorId = vendorId;
2560
      }
2561
 
2562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2564
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
2565
        args.setVendorId(vendorId);
2566
        args.write(prot);
2567
        prot.writeMessageEnd();
2568
      }
2569
 
2570
      public long getResult() throws org.apache.thrift.TException {
2571
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2572
          throw new IllegalStateException("Method call not finished!");
2573
        }
2574
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2575
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2576
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2577
      }
2578
    }
2579
 
5945 mandeep.dh 2580
  }
2581
 
2582
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2583
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2584
    public Processor(I iface) {
2585
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2586
    }
2587
 
2588
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2589
      super(iface, getProcessMap(processMap));
2590
    }
2591
 
2592
    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) {
2593
      processMap.put("addWarehouse", new addWarehouse());
2594
      processMap.put("addVendor", new addVendor());
2595
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
2596
      processMap.put("updateInventory", new updateInventory());
2597
      processMap.put("addInventory", new addInventory());
2598
      processMap.put("retireWarehouse", new retireWarehouse());
2599
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
2600
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
2601
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
2602
      processMap.put("getAllWarehouses", new getAllWarehouses());
2603
      processMap.put("getWarehouse", new getWarehouse());
2604
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 2605
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 2606
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
2607
      processMap.put("reduceReservationCount", new reduceReservationCount());
2608
      processMap.put("getItemPricing", new getItemPricing());
2609
      processMap.put("getAllItemPricing", new getAllItemPricing());
2610
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
2611
      processMap.put("getVendor", new getVendor());
2612
      processMap.put("getAllVendors", new getAllVendors());
2613
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
2614
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
2615
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
2616
      processMap.put("getWarehouses", new getWarehouses());
2617
      processMap.put("resetAvailability", new resetAvailability());
2618
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
2619
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
2620
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
2621
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
2622
      processMap.put("addBadInventory", new addBadInventory());
2623
      processMap.put("getShippingLocations", new getShippingLocations());
2624
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2625
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2626
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2627
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 2628
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 2629
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
5945 mandeep.dh 2630
      return processMap;
2631
    }
2632
 
2633
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2634
      public addWarehouse() {
2635
        super("addWarehouse");
2636
      }
2637
 
2638
      protected addWarehouse_args getEmptyArgsInstance() {
2639
        return new addWarehouse_args();
2640
      }
2641
 
2642
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
2643
        addWarehouse_result result = new addWarehouse_result();
2644
        try {
2645
          result.success = iface.addWarehouse(args.warehouse);
2646
          result.setSuccessIsSet(true);
2647
        } catch (InventoryServiceException cex) {
2648
          result.cex = cex;
2649
        }
2650
        return result;
2651
      }
2652
    }
2653
 
2654
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
2655
      public addVendor() {
2656
        super("addVendor");
2657
      }
2658
 
2659
      protected addVendor_args getEmptyArgsInstance() {
2660
        return new addVendor_args();
2661
      }
2662
 
2663
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
2664
        addVendor_result result = new addVendor_result();
2665
        try {
2666
          result.success = iface.addVendor(args.vendor);
2667
          result.setSuccessIsSet(true);
2668
        } catch (InventoryServiceException cex) {
2669
          result.cex = cex;
2670
        }
2671
        return result;
2672
      }
2673
    }
2674
 
2675
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
2676
      public updateInventoryHistory() {
2677
        super("updateInventoryHistory");
2678
      }
2679
 
2680
      protected updateInventoryHistory_args getEmptyArgsInstance() {
2681
        return new updateInventoryHistory_args();
2682
      }
2683
 
2684
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
2685
        updateInventoryHistory_result result = new updateInventoryHistory_result();
2686
        try {
2687
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
2688
        } catch (InventoryServiceException cex) {
2689
          result.cex = cex;
2690
        }
2691
        return result;
2692
      }
2693
    }
2694
 
2695
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
2696
      public updateInventory() {
2697
        super("updateInventory");
2698
      }
2699
 
2700
      protected updateInventory_args getEmptyArgsInstance() {
2701
        return new updateInventory_args();
2702
      }
2703
 
2704
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
2705
        updateInventory_result result = new updateInventory_result();
2706
        try {
2707
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
2708
        } catch (InventoryServiceException cex) {
2709
          result.cex = cex;
2710
        }
2711
        return result;
2712
      }
2713
    }
2714
 
2715
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
2716
      public addInventory() {
2717
        super("addInventory");
2718
      }
2719
 
2720
      protected addInventory_args getEmptyArgsInstance() {
2721
        return new addInventory_args();
2722
      }
2723
 
2724
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
2725
        addInventory_result result = new addInventory_result();
2726
        try {
2727
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
2728
        } catch (InventoryServiceException cex) {
2729
          result.cex = cex;
2730
        }
2731
        return result;
2732
      }
2733
    }
2734
 
2735
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
2736
      public retireWarehouse() {
2737
        super("retireWarehouse");
2738
      }
2739
 
2740
      protected retireWarehouse_args getEmptyArgsInstance() {
2741
        return new retireWarehouse_args();
2742
      }
2743
 
2744
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
2745
        retireWarehouse_result result = new retireWarehouse_result();
2746
        try {
2747
          iface.retireWarehouse(args.warehouse_id);
2748
        } catch (InventoryServiceException cex) {
2749
          result.cex = cex;
2750
        }
2751
        return result;
2752
      }
2753
    }
2754
 
2755
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
2756
      public getItemInventoryByItemId() {
2757
        super("getItemInventoryByItemId");
2758
      }
2759
 
2760
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
2761
        return new getItemInventoryByItemId_args();
2762
      }
2763
 
2764
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
2765
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
2766
        try {
2767
          result.success = iface.getItemInventoryByItemId(args.item_id);
2768
        } catch (InventoryServiceException cex) {
2769
          result.cex = cex;
2770
        }
2771
        return result;
2772
      }
2773
    }
2774
 
2775
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
2776
      public getItemAvailibilityAtWarehouse() {
2777
        super("getItemAvailibilityAtWarehouse");
2778
      }
2779
 
2780
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
2781
        return new getItemAvailibilityAtWarehouse_args();
2782
      }
2783
 
2784
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
2785
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
2786
        try {
2787
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
2788
          result.setSuccessIsSet(true);
2789
        } catch (InventoryServiceException cex) {
2790
          result.cex = cex;
2791
        }
2792
        return result;
2793
      }
2794
    }
2795
 
2796
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
2797
      public getItemAvailabilityAtLocation() {
2798
        super("getItemAvailabilityAtLocation");
2799
      }
2800
 
2801
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
2802
        return new getItemAvailabilityAtLocation_args();
2803
      }
2804
 
2805
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
2806
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
2807
        try {
5978 rajveer 2808
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 2809
        } catch (InventoryServiceException isex) {
2810
          result.isex = isex;
2811
        }
2812
        return result;
2813
      }
2814
    }
2815
 
2816
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
2817
      public getAllWarehouses() {
2818
        super("getAllWarehouses");
2819
      }
2820
 
2821
      protected getAllWarehouses_args getEmptyArgsInstance() {
2822
        return new getAllWarehouses_args();
2823
      }
2824
 
2825
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
2826
        getAllWarehouses_result result = new getAllWarehouses_result();
2827
        try {
2828
          result.success = iface.getAllWarehouses(args.isActive);
2829
        } catch (InventoryServiceException cex) {
2830
          result.cex = cex;
2831
        }
2832
        return result;
2833
      }
2834
    }
2835
 
2836
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
2837
      public getWarehouse() {
2838
        super("getWarehouse");
2839
      }
2840
 
2841
      protected getWarehouse_args getEmptyArgsInstance() {
2842
        return new getWarehouse_args();
2843
      }
2844
 
2845
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
2846
        getWarehouse_result result = new getWarehouse_result();
2847
        try {
2848
          result.success = iface.getWarehouse(args.warehouse_id);
2849
        } catch (InventoryServiceException cex) {
2850
          result.cex = cex;
2851
        }
2852
        return result;
2853
      }
2854
    }
2855
 
2856
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
2857
      public getAllItemsForWarehouse() {
2858
        super("getAllItemsForWarehouse");
2859
      }
2860
 
2861
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
2862
        return new getAllItemsForWarehouse_args();
2863
      }
2864
 
2865
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
2866
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
2867
        try {
2868
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
2869
        } catch (InventoryServiceException cex) {
2870
          result.cex = cex;
2871
        }
2872
        return result;
2873
      }
2874
    }
2875
 
5967 rajveer 2876
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
2877
      public isOrderBillable() {
2878
        super("isOrderBillable");
2879
      }
2880
 
2881
      protected isOrderBillable_args getEmptyArgsInstance() {
2882
        return new isOrderBillable_args();
2883
      }
2884
 
2885
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
2886
        isOrderBillable_result result = new isOrderBillable_result();
2887
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
2888
        result.setSuccessIsSet(true);
2889
        return result;
2890
      }
2891
    }
2892
 
5945 mandeep.dh 2893
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
2894
      public reserveItemInWarehouse() {
2895
        super("reserveItemInWarehouse");
2896
      }
2897
 
2898
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
2899
        return new reserveItemInWarehouse_args();
2900
      }
2901
 
2902
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
2903
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
2904
        try {
5967 rajveer 2905
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 2906
          result.setSuccessIsSet(true);
2907
        } catch (InventoryServiceException cex) {
2908
          result.cex = cex;
2909
        }
2910
        return result;
2911
      }
2912
    }
2913
 
2914
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
2915
      public reduceReservationCount() {
2916
        super("reduceReservationCount");
2917
      }
2918
 
2919
      protected reduceReservationCount_args getEmptyArgsInstance() {
2920
        return new reduceReservationCount_args();
2921
      }
2922
 
2923
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
2924
        reduceReservationCount_result result = new reduceReservationCount_result();
2925
        try {
5967 rajveer 2926
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 2927
          result.setSuccessIsSet(true);
2928
        } catch (InventoryServiceException cex) {
2929
          result.cex = cex;
2930
        }
2931
        return result;
2932
      }
2933
    }
2934
 
2935
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
2936
      public getItemPricing() {
2937
        super("getItemPricing");
2938
      }
2939
 
2940
      protected getItemPricing_args getEmptyArgsInstance() {
2941
        return new getItemPricing_args();
2942
      }
2943
 
2944
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
2945
        getItemPricing_result result = new getItemPricing_result();
2946
        try {
2947
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
2948
        } catch (InventoryServiceException cex) {
2949
          result.cex = cex;
2950
        }
2951
        return result;
2952
      }
2953
    }
2954
 
2955
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
2956
      public getAllItemPricing() {
2957
        super("getAllItemPricing");
2958
      }
2959
 
2960
      protected getAllItemPricing_args getEmptyArgsInstance() {
2961
        return new getAllItemPricing_args();
2962
      }
2963
 
2964
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
2965
        getAllItemPricing_result result = new getAllItemPricing_result();
2966
        try {
2967
          result.success = iface.getAllItemPricing(args.itemId);
2968
        } catch (InventoryServiceException cex) {
2969
          result.cex = cex;
2970
        }
2971
        return result;
2972
      }
2973
    }
2974
 
2975
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
2976
      public addVendorItemPricing() {
2977
        super("addVendorItemPricing");
2978
      }
2979
 
2980
      protected addVendorItemPricing_args getEmptyArgsInstance() {
2981
        return new addVendorItemPricing_args();
2982
      }
2983
 
2984
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
2985
        addVendorItemPricing_result result = new addVendorItemPricing_result();
2986
        try {
2987
          iface.addVendorItemPricing(args.vendorItemPricing);
2988
        } catch (InventoryServiceException cex) {
2989
          result.cex = cex;
2990
        }
2991
        return result;
2992
      }
2993
    }
2994
 
2995
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
2996
      public getVendor() {
2997
        super("getVendor");
2998
      }
2999
 
3000
      protected getVendor_args getEmptyArgsInstance() {
3001
        return new getVendor_args();
3002
      }
3003
 
3004
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
3005
        getVendor_result result = new getVendor_result();
3006
        result.success = iface.getVendor(args.vendorId);
3007
        return result;
3008
      }
3009
    }
3010
 
3011
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
3012
      public getAllVendors() {
3013
        super("getAllVendors");
3014
      }
3015
 
3016
      protected getAllVendors_args getEmptyArgsInstance() {
3017
        return new getAllVendors_args();
3018
      }
3019
 
3020
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
3021
        getAllVendors_result result = new getAllVendors_result();
3022
        result.success = iface.getAllVendors();
3023
        return result;
3024
      }
3025
    }
3026
 
3027
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
3028
      public addVendorItemMapping() {
3029
        super("addVendorItemMapping");
3030
      }
3031
 
3032
      protected addVendorItemMapping_args getEmptyArgsInstance() {
3033
        return new addVendorItemMapping_args();
3034
      }
3035
 
3036
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
3037
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3038
        try {
3039
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
3040
        } catch (InventoryServiceException cex) {
3041
          result.cex = cex;
3042
        }
3043
        return result;
3044
      }
3045
    }
3046
 
3047
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
3048
      public getVendorItemMappings() {
3049
        super("getVendorItemMappings");
3050
      }
3051
 
3052
      protected getVendorItemMappings_args getEmptyArgsInstance() {
3053
        return new getVendorItemMappings_args();
3054
      }
3055
 
3056
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
3057
        getVendorItemMappings_result result = new getVendorItemMappings_result();
3058
        try {
3059
          result.success = iface.getVendorItemMappings(args.itemId);
3060
        } catch (InventoryServiceException cex) {
3061
          result.cex = cex;
3062
        }
3063
        return result;
3064
      }
3065
    }
3066
 
3067
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
3068
      public getPendingOrdersInventory() {
3069
        super("getPendingOrdersInventory");
3070
      }
3071
 
3072
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
3073
        return new getPendingOrdersInventory_args();
3074
      }
3075
 
3076
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
3077
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
3078
        result.success = iface.getPendingOrdersInventory(args.vendorid);
3079
        return result;
3080
      }
3081
    }
3082
 
3083
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
3084
      public getWarehouses() {
3085
        super("getWarehouses");
3086
      }
3087
 
3088
      protected getWarehouses_args getEmptyArgsInstance() {
3089
        return new getWarehouses_args();
3090
      }
3091
 
3092
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
3093
        getWarehouses_result result = new getWarehouses_result();
3094
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
3095
        return result;
3096
      }
3097
    }
3098
 
3099
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
3100
      public resetAvailability() {
3101
        super("resetAvailability");
3102
      }
3103
 
3104
      protected resetAvailability_args getEmptyArgsInstance() {
3105
        return new resetAvailability_args();
3106
      }
3107
 
3108
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
3109
        resetAvailability_result result = new resetAvailability_result();
3110
        try {
3111
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
3112
        } catch (InventoryServiceException cex) {
3113
          result.cex = cex;
3114
        }
3115
        return result;
3116
      }
3117
    }
3118
 
3119
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
3120
      public resetAvailabilityForWarehouse() {
3121
        super("resetAvailabilityForWarehouse");
3122
      }
3123
 
3124
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
3125
        return new resetAvailabilityForWarehouse_args();
3126
      }
3127
 
3128
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
3129
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
3130
        try {
3131
          iface.resetAvailabilityForWarehouse(args.warehouseId);
3132
        } catch (InventoryServiceException cex) {
3133
          result.cex = cex;
3134
        }
3135
        return result;
3136
      }
3137
    }
3138
 
3139
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
3140
      public getItemKeysToBeProcessed() {
3141
        super("getItemKeysToBeProcessed");
3142
      }
3143
 
3144
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
3145
        return new getItemKeysToBeProcessed_args();
3146
      }
3147
 
3148
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
3149
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
3150
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
3151
        return result;
3152
      }
3153
    }
3154
 
3155
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
3156
      public markMissedInventoryUpdatesAsProcessed() {
3157
        super("markMissedInventoryUpdatesAsProcessed");
3158
      }
3159
 
3160
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
3161
        return new markMissedInventoryUpdatesAsProcessed_args();
3162
      }
3163
 
3164
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
3165
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
3166
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
3167
        return result;
3168
      }
3169
    }
3170
 
3171
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
3172
      public getIgnoredItemKeys() {
3173
        super("getIgnoredItemKeys");
3174
      }
3175
 
3176
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
3177
        return new getIgnoredItemKeys_args();
3178
      }
3179
 
3180
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
3181
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
3182
        result.success = iface.getIgnoredItemKeys();
3183
        return result;
3184
      }
3185
    }
3186
 
3187
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
3188
      public addBadInventory() {
3189
        super("addBadInventory");
3190
      }
3191
 
3192
      protected addBadInventory_args getEmptyArgsInstance() {
3193
        return new addBadInventory_args();
3194
      }
3195
 
3196
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
3197
        addBadInventory_result result = new addBadInventory_result();
3198
        try {
3199
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
3200
        } catch (InventoryServiceException cex) {
3201
          result.cex = cex;
3202
        }
3203
        return result;
3204
      }
3205
    }
3206
 
3207
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
3208
      public getShippingLocations() {
3209
        super("getShippingLocations");
3210
      }
3211
 
3212
      protected getShippingLocations_args getEmptyArgsInstance() {
3213
        return new getShippingLocations_args();
3214
      }
3215
 
3216
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
3217
        getShippingLocations_result result = new getShippingLocations_result();
3218
        result.success = iface.getShippingLocations();
3219
        return result;
3220
      }
3221
    }
3222
 
3223
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
3224
      public getAllVendorItemMappings() {
3225
        super("getAllVendorItemMappings");
3226
      }
3227
 
3228
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
3229
        return new getAllVendorItemMappings_args();
3230
      }
3231
 
3232
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
3233
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
3234
        result.success = iface.getAllVendorItemMappings();
3235
        return result;
3236
      }
3237
    }
3238
 
3239
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
3240
      public getInventorySnapshot() {
3241
        super("getInventorySnapshot");
3242
      }
3243
 
3244
      protected getInventorySnapshot_args getEmptyArgsInstance() {
3245
        return new getInventorySnapshot_args();
3246
      }
3247
 
3248
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
3249
        getInventorySnapshot_result result = new getInventorySnapshot_result();
3250
        result.success = iface.getInventorySnapshot(args.warehouseId);
3251
        return result;
3252
      }
3253
    }
3254
 
3255
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
3256
      public clearItemAvailabilityCache() {
3257
        super("clearItemAvailabilityCache");
3258
      }
3259
 
3260
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
3261
        return new clearItemAvailabilityCache_args();
3262
      }
3263
 
3264
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
3265
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
3266
        iface.clearItemAvailabilityCache();
3267
        return result;
3268
      }
3269
    }
3270
 
3271
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
3272
      public updateVendorString() {
3273
        super("updateVendorString");
3274
      }
3275
 
3276
      protected updateVendorString_args getEmptyArgsInstance() {
3277
        return new updateVendorString_args();
3278
      }
3279
 
3280
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
3281
        updateVendorString_result result = new updateVendorString_result();
3282
        iface.updateVendorString(args.warehouseId, args.vendorString);
3283
        return result;
3284
      }
3285
    }
3286
 
6096 amit.gupta 3287
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
3288
      public clearItemAvailabilityCacheForItem() {
3289
        super("clearItemAvailabilityCacheForItem");
3290
      }
3291
 
3292
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
3293
        return new clearItemAvailabilityCacheForItem_args();
3294
      }
3295
 
3296
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
3297
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
3298
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3299
        return result;
3300
      }
3301
    }
3302
 
6467 amar.kumar 3303
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
3304
      public getOurWarehouseIdForVendor() {
3305
        super("getOurWarehouseIdForVendor");
3306
      }
3307
 
3308
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
3309
        return new getOurWarehouseIdForVendor_args();
3310
      }
3311
 
3312
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
3313
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
3314
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
3315
        result.setSuccessIsSet(true);
3316
        return result;
3317
      }
3318
    }
3319
 
5945 mandeep.dh 3320
  }
3321
 
3322
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3324
 
3325
    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);
3326
 
3327
    private Warehouse warehouse; // required
3328
 
3329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3331
      WAREHOUSE((short)1, "warehouse");
3332
 
3333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3334
 
3335
      static {
3336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3337
          byName.put(field.getFieldName(), field);
3338
        }
3339
      }
3340
 
3341
      /**
3342
       * Find the _Fields constant that matches fieldId, or null if its not found.
3343
       */
3344
      public static _Fields findByThriftId(int fieldId) {
3345
        switch(fieldId) {
3346
          case 1: // WAREHOUSE
3347
            return WAREHOUSE;
3348
          default:
3349
            return null;
3350
        }
3351
      }
3352
 
3353
      /**
3354
       * Find the _Fields constant that matches fieldId, throwing an exception
3355
       * if it is not found.
3356
       */
3357
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3358
        _Fields fields = findByThriftId(fieldId);
3359
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3360
        return fields;
3361
      }
3362
 
3363
      /**
3364
       * Find the _Fields constant that matches name, or null if its not found.
3365
       */
3366
      public static _Fields findByName(String name) {
3367
        return byName.get(name);
3368
      }
3369
 
3370
      private final short _thriftId;
3371
      private final String _fieldName;
3372
 
3373
      _Fields(short thriftId, String fieldName) {
3374
        _thriftId = thriftId;
3375
        _fieldName = fieldName;
3376
      }
3377
 
3378
      public short getThriftFieldId() {
3379
        return _thriftId;
3380
      }
3381
 
3382
      public String getFieldName() {
3383
        return _fieldName;
3384
      }
3385
    }
3386
 
3387
    // isset id assignments
3388
 
3389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3390
    static {
3391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3392
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3393
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
3394
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3395
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
3396
    }
3397
 
3398
    public addWarehouse_args() {
3399
    }
3400
 
3401
    public addWarehouse_args(
3402
      Warehouse warehouse)
3403
    {
3404
      this();
3405
      this.warehouse = warehouse;
3406
    }
3407
 
3408
    /**
3409
     * Performs a deep copy on <i>other</i>.
3410
     */
3411
    public addWarehouse_args(addWarehouse_args other) {
3412
      if (other.isSetWarehouse()) {
3413
        this.warehouse = new Warehouse(other.warehouse);
3414
      }
3415
    }
3416
 
3417
    public addWarehouse_args deepCopy() {
3418
      return new addWarehouse_args(this);
3419
    }
3420
 
3421
    @Override
3422
    public void clear() {
3423
      this.warehouse = null;
3424
    }
3425
 
3426
    public Warehouse getWarehouse() {
3427
      return this.warehouse;
3428
    }
3429
 
3430
    public void setWarehouse(Warehouse warehouse) {
3431
      this.warehouse = warehouse;
3432
    }
3433
 
3434
    public void unsetWarehouse() {
3435
      this.warehouse = null;
3436
    }
3437
 
3438
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
3439
    public boolean isSetWarehouse() {
3440
      return this.warehouse != null;
3441
    }
3442
 
3443
    public void setWarehouseIsSet(boolean value) {
3444
      if (!value) {
3445
        this.warehouse = null;
3446
      }
3447
    }
3448
 
3449
    public void setFieldValue(_Fields field, Object value) {
3450
      switch (field) {
3451
      case WAREHOUSE:
3452
        if (value == null) {
3453
          unsetWarehouse();
3454
        } else {
3455
          setWarehouse((Warehouse)value);
3456
        }
3457
        break;
3458
 
3459
      }
3460
    }
3461
 
3462
    public Object getFieldValue(_Fields field) {
3463
      switch (field) {
3464
      case WAREHOUSE:
3465
        return getWarehouse();
3466
 
3467
      }
3468
      throw new IllegalStateException();
3469
    }
3470
 
3471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3472
    public boolean isSet(_Fields field) {
3473
      if (field == null) {
3474
        throw new IllegalArgumentException();
3475
      }
3476
 
3477
      switch (field) {
3478
      case WAREHOUSE:
3479
        return isSetWarehouse();
3480
      }
3481
      throw new IllegalStateException();
3482
    }
3483
 
3484
    @Override
3485
    public boolean equals(Object that) {
3486
      if (that == null)
3487
        return false;
3488
      if (that instanceof addWarehouse_args)
3489
        return this.equals((addWarehouse_args)that);
3490
      return false;
3491
    }
3492
 
3493
    public boolean equals(addWarehouse_args that) {
3494
      if (that == null)
3495
        return false;
3496
 
3497
      boolean this_present_warehouse = true && this.isSetWarehouse();
3498
      boolean that_present_warehouse = true && that.isSetWarehouse();
3499
      if (this_present_warehouse || that_present_warehouse) {
3500
        if (!(this_present_warehouse && that_present_warehouse))
3501
          return false;
3502
        if (!this.warehouse.equals(that.warehouse))
3503
          return false;
3504
      }
3505
 
3506
      return true;
3507
    }
3508
 
3509
    @Override
3510
    public int hashCode() {
3511
      return 0;
3512
    }
3513
 
3514
    public int compareTo(addWarehouse_args other) {
3515
      if (!getClass().equals(other.getClass())) {
3516
        return getClass().getName().compareTo(other.getClass().getName());
3517
      }
3518
 
3519
      int lastComparison = 0;
3520
      addWarehouse_args typedOther = (addWarehouse_args)other;
3521
 
3522
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
3523
      if (lastComparison != 0) {
3524
        return lastComparison;
3525
      }
3526
      if (isSetWarehouse()) {
3527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
3528
        if (lastComparison != 0) {
3529
          return lastComparison;
3530
        }
3531
      }
3532
      return 0;
3533
    }
3534
 
3535
    public _Fields fieldForId(int fieldId) {
3536
      return _Fields.findByThriftId(fieldId);
3537
    }
3538
 
3539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3540
      org.apache.thrift.protocol.TField field;
3541
      iprot.readStructBegin();
3542
      while (true)
3543
      {
3544
        field = iprot.readFieldBegin();
3545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3546
          break;
3547
        }
3548
        switch (field.id) {
3549
          case 1: // WAREHOUSE
3550
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3551
              this.warehouse = new Warehouse();
3552
              this.warehouse.read(iprot);
3553
            } else { 
3554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3555
            }
3556
            break;
3557
          default:
3558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3559
        }
3560
        iprot.readFieldEnd();
3561
      }
3562
      iprot.readStructEnd();
3563
      validate();
3564
    }
3565
 
3566
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3567
      validate();
3568
 
3569
      oprot.writeStructBegin(STRUCT_DESC);
3570
      if (this.warehouse != null) {
3571
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
3572
        this.warehouse.write(oprot);
3573
        oprot.writeFieldEnd();
3574
      }
3575
      oprot.writeFieldStop();
3576
      oprot.writeStructEnd();
3577
    }
3578
 
3579
    @Override
3580
    public String toString() {
3581
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
3582
      boolean first = true;
3583
 
3584
      sb.append("warehouse:");
3585
      if (this.warehouse == null) {
3586
        sb.append("null");
3587
      } else {
3588
        sb.append(this.warehouse);
3589
      }
3590
      first = false;
3591
      sb.append(")");
3592
      return sb.toString();
3593
    }
3594
 
3595
    public void validate() throws org.apache.thrift.TException {
3596
      // check for required fields
3597
    }
3598
 
3599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3600
      try {
3601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3602
      } catch (org.apache.thrift.TException te) {
3603
        throw new java.io.IOException(te);
3604
      }
3605
    }
3606
 
3607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3608
      try {
3609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3610
      } catch (org.apache.thrift.TException te) {
3611
        throw new java.io.IOException(te);
3612
      }
3613
    }
3614
 
3615
  }
3616
 
3617
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
3618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
3619
 
3620
    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);
3621
    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);
3622
 
3623
    private long success; // required
3624
    private InventoryServiceException cex; // required
3625
 
3626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3628
      SUCCESS((short)0, "success"),
3629
      CEX((short)1, "cex");
3630
 
3631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3632
 
3633
      static {
3634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3635
          byName.put(field.getFieldName(), field);
3636
        }
3637
      }
3638
 
3639
      /**
3640
       * Find the _Fields constant that matches fieldId, or null if its not found.
3641
       */
3642
      public static _Fields findByThriftId(int fieldId) {
3643
        switch(fieldId) {
3644
          case 0: // SUCCESS
3645
            return SUCCESS;
3646
          case 1: // CEX
3647
            return CEX;
3648
          default:
3649
            return null;
3650
        }
3651
      }
3652
 
3653
      /**
3654
       * Find the _Fields constant that matches fieldId, throwing an exception
3655
       * if it is not found.
3656
       */
3657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3658
        _Fields fields = findByThriftId(fieldId);
3659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3660
        return fields;
3661
      }
3662
 
3663
      /**
3664
       * Find the _Fields constant that matches name, or null if its not found.
3665
       */
3666
      public static _Fields findByName(String name) {
3667
        return byName.get(name);
3668
      }
3669
 
3670
      private final short _thriftId;
3671
      private final String _fieldName;
3672
 
3673
      _Fields(short thriftId, String fieldName) {
3674
        _thriftId = thriftId;
3675
        _fieldName = fieldName;
3676
      }
3677
 
3678
      public short getThriftFieldId() {
3679
        return _thriftId;
3680
      }
3681
 
3682
      public String getFieldName() {
3683
        return _fieldName;
3684
      }
3685
    }
3686
 
3687
    // isset id assignments
3688
    private static final int __SUCCESS_ISSET_ID = 0;
3689
    private BitSet __isset_bit_vector = new BitSet(1);
3690
 
3691
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3692
    static {
3693
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3694
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3696
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
3700
    }
3701
 
3702
    public addWarehouse_result() {
3703
    }
3704
 
3705
    public addWarehouse_result(
3706
      long success,
3707
      InventoryServiceException cex)
3708
    {
3709
      this();
3710
      this.success = success;
3711
      setSuccessIsSet(true);
3712
      this.cex = cex;
3713
    }
3714
 
3715
    /**
3716
     * Performs a deep copy on <i>other</i>.
3717
     */
3718
    public addWarehouse_result(addWarehouse_result other) {
3719
      __isset_bit_vector.clear();
3720
      __isset_bit_vector.or(other.__isset_bit_vector);
3721
      this.success = other.success;
3722
      if (other.isSetCex()) {
3723
        this.cex = new InventoryServiceException(other.cex);
3724
      }
3725
    }
3726
 
3727
    public addWarehouse_result deepCopy() {
3728
      return new addWarehouse_result(this);
3729
    }
3730
 
3731
    @Override
3732
    public void clear() {
3733
      setSuccessIsSet(false);
3734
      this.success = 0;
3735
      this.cex = null;
3736
    }
3737
 
3738
    public long getSuccess() {
3739
      return this.success;
3740
    }
3741
 
3742
    public void setSuccess(long success) {
3743
      this.success = success;
3744
      setSuccessIsSet(true);
3745
    }
3746
 
3747
    public void unsetSuccess() {
3748
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3749
    }
3750
 
3751
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3752
    public boolean isSetSuccess() {
3753
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3754
    }
3755
 
3756
    public void setSuccessIsSet(boolean value) {
3757
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3758
    }
3759
 
3760
    public InventoryServiceException getCex() {
3761
      return this.cex;
3762
    }
3763
 
3764
    public void setCex(InventoryServiceException cex) {
3765
      this.cex = cex;
3766
    }
3767
 
3768
    public void unsetCex() {
3769
      this.cex = null;
3770
    }
3771
 
3772
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
3773
    public boolean isSetCex() {
3774
      return this.cex != null;
3775
    }
3776
 
3777
    public void setCexIsSet(boolean value) {
3778
      if (!value) {
3779
        this.cex = null;
3780
      }
3781
    }
3782
 
3783
    public void setFieldValue(_Fields field, Object value) {
3784
      switch (field) {
3785
      case SUCCESS:
3786
        if (value == null) {
3787
          unsetSuccess();
3788
        } else {
3789
          setSuccess((Long)value);
3790
        }
3791
        break;
3792
 
3793
      case CEX:
3794
        if (value == null) {
3795
          unsetCex();
3796
        } else {
3797
          setCex((InventoryServiceException)value);
3798
        }
3799
        break;
3800
 
3801
      }
3802
    }
3803
 
3804
    public Object getFieldValue(_Fields field) {
3805
      switch (field) {
3806
      case SUCCESS:
3807
        return Long.valueOf(getSuccess());
3808
 
3809
      case CEX:
3810
        return getCex();
3811
 
3812
      }
3813
      throw new IllegalStateException();
3814
    }
3815
 
3816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3817
    public boolean isSet(_Fields field) {
3818
      if (field == null) {
3819
        throw new IllegalArgumentException();
3820
      }
3821
 
3822
      switch (field) {
3823
      case SUCCESS:
3824
        return isSetSuccess();
3825
      case CEX:
3826
        return isSetCex();
3827
      }
3828
      throw new IllegalStateException();
3829
    }
3830
 
3831
    @Override
3832
    public boolean equals(Object that) {
3833
      if (that == null)
3834
        return false;
3835
      if (that instanceof addWarehouse_result)
3836
        return this.equals((addWarehouse_result)that);
3837
      return false;
3838
    }
3839
 
3840
    public boolean equals(addWarehouse_result that) {
3841
      if (that == null)
3842
        return false;
3843
 
3844
      boolean this_present_success = true;
3845
      boolean that_present_success = true;
3846
      if (this_present_success || that_present_success) {
3847
        if (!(this_present_success && that_present_success))
3848
          return false;
3849
        if (this.success != that.success)
3850
          return false;
3851
      }
3852
 
3853
      boolean this_present_cex = true && this.isSetCex();
3854
      boolean that_present_cex = true && that.isSetCex();
3855
      if (this_present_cex || that_present_cex) {
3856
        if (!(this_present_cex && that_present_cex))
3857
          return false;
3858
        if (!this.cex.equals(that.cex))
3859
          return false;
3860
      }
3861
 
3862
      return true;
3863
    }
3864
 
3865
    @Override
3866
    public int hashCode() {
3867
      return 0;
3868
    }
3869
 
3870
    public int compareTo(addWarehouse_result other) {
3871
      if (!getClass().equals(other.getClass())) {
3872
        return getClass().getName().compareTo(other.getClass().getName());
3873
      }
3874
 
3875
      int lastComparison = 0;
3876
      addWarehouse_result typedOther = (addWarehouse_result)other;
3877
 
3878
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3879
      if (lastComparison != 0) {
3880
        return lastComparison;
3881
      }
3882
      if (isSetSuccess()) {
3883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3884
        if (lastComparison != 0) {
3885
          return lastComparison;
3886
        }
3887
      }
3888
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
3889
      if (lastComparison != 0) {
3890
        return lastComparison;
3891
      }
3892
      if (isSetCex()) {
3893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
3894
        if (lastComparison != 0) {
3895
          return lastComparison;
3896
        }
3897
      }
3898
      return 0;
3899
    }
3900
 
3901
    public _Fields fieldForId(int fieldId) {
3902
      return _Fields.findByThriftId(fieldId);
3903
    }
3904
 
3905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3906
      org.apache.thrift.protocol.TField field;
3907
      iprot.readStructBegin();
3908
      while (true)
3909
      {
3910
        field = iprot.readFieldBegin();
3911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3912
          break;
3913
        }
3914
        switch (field.id) {
3915
          case 0: // SUCCESS
3916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3917
              this.success = iprot.readI64();
3918
              setSuccessIsSet(true);
3919
            } else { 
3920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3921
            }
3922
            break;
3923
          case 1: // CEX
3924
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3925
              this.cex = new InventoryServiceException();
3926
              this.cex.read(iprot);
3927
            } else { 
3928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3929
            }
3930
            break;
3931
          default:
3932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3933
        }
3934
        iprot.readFieldEnd();
3935
      }
3936
      iprot.readStructEnd();
3937
      validate();
3938
    }
3939
 
3940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3941
      oprot.writeStructBegin(STRUCT_DESC);
3942
 
3943
      if (this.isSetSuccess()) {
3944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3945
        oprot.writeI64(this.success);
3946
        oprot.writeFieldEnd();
3947
      } else if (this.isSetCex()) {
3948
        oprot.writeFieldBegin(CEX_FIELD_DESC);
3949
        this.cex.write(oprot);
3950
        oprot.writeFieldEnd();
3951
      }
3952
      oprot.writeFieldStop();
3953
      oprot.writeStructEnd();
3954
    }
3955
 
3956
    @Override
3957
    public String toString() {
3958
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
3959
      boolean first = true;
3960
 
3961
      sb.append("success:");
3962
      sb.append(this.success);
3963
      first = false;
3964
      if (!first) sb.append(", ");
3965
      sb.append("cex:");
3966
      if (this.cex == null) {
3967
        sb.append("null");
3968
      } else {
3969
        sb.append(this.cex);
3970
      }
3971
      first = false;
3972
      sb.append(")");
3973
      return sb.toString();
3974
    }
3975
 
3976
    public void validate() throws org.apache.thrift.TException {
3977
      // check for required fields
3978
    }
3979
 
3980
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3981
      try {
3982
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3983
      } catch (org.apache.thrift.TException te) {
3984
        throw new java.io.IOException(te);
3985
      }
3986
    }
3987
 
3988
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3989
      try {
3990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3991
      } catch (org.apache.thrift.TException te) {
3992
        throw new java.io.IOException(te);
3993
      }
3994
    }
3995
 
3996
  }
3997
 
3998
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
3999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
4000
 
4001
    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);
4002
 
4003
    private Vendor vendor; // required
4004
 
4005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4007
      VENDOR((short)1, "vendor");
4008
 
4009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4010
 
4011
      static {
4012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4013
          byName.put(field.getFieldName(), field);
4014
        }
4015
      }
4016
 
4017
      /**
4018
       * Find the _Fields constant that matches fieldId, or null if its not found.
4019
       */
4020
      public static _Fields findByThriftId(int fieldId) {
4021
        switch(fieldId) {
4022
          case 1: // VENDOR
4023
            return VENDOR;
4024
          default:
4025
            return null;
4026
        }
4027
      }
4028
 
4029
      /**
4030
       * Find the _Fields constant that matches fieldId, throwing an exception
4031
       * if it is not found.
4032
       */
4033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4034
        _Fields fields = findByThriftId(fieldId);
4035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4036
        return fields;
4037
      }
4038
 
4039
      /**
4040
       * Find the _Fields constant that matches name, or null if its not found.
4041
       */
4042
      public static _Fields findByName(String name) {
4043
        return byName.get(name);
4044
      }
4045
 
4046
      private final short _thriftId;
4047
      private final String _fieldName;
4048
 
4049
      _Fields(short thriftId, String fieldName) {
4050
        _thriftId = thriftId;
4051
        _fieldName = fieldName;
4052
      }
4053
 
4054
      public short getThriftFieldId() {
4055
        return _thriftId;
4056
      }
4057
 
4058
      public String getFieldName() {
4059
        return _fieldName;
4060
      }
4061
    }
4062
 
4063
    // isset id assignments
4064
 
4065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4066
    static {
4067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4068
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4069
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
4070
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4071
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
4072
    }
4073
 
4074
    public addVendor_args() {
4075
    }
4076
 
4077
    public addVendor_args(
4078
      Vendor vendor)
4079
    {
4080
      this();
4081
      this.vendor = vendor;
4082
    }
4083
 
4084
    /**
4085
     * Performs a deep copy on <i>other</i>.
4086
     */
4087
    public addVendor_args(addVendor_args other) {
4088
      if (other.isSetVendor()) {
4089
        this.vendor = new Vendor(other.vendor);
4090
      }
4091
    }
4092
 
4093
    public addVendor_args deepCopy() {
4094
      return new addVendor_args(this);
4095
    }
4096
 
4097
    @Override
4098
    public void clear() {
4099
      this.vendor = null;
4100
    }
4101
 
4102
    public Vendor getVendor() {
4103
      return this.vendor;
4104
    }
4105
 
4106
    public void setVendor(Vendor vendor) {
4107
      this.vendor = vendor;
4108
    }
4109
 
4110
    public void unsetVendor() {
4111
      this.vendor = null;
4112
    }
4113
 
4114
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
4115
    public boolean isSetVendor() {
4116
      return this.vendor != null;
4117
    }
4118
 
4119
    public void setVendorIsSet(boolean value) {
4120
      if (!value) {
4121
        this.vendor = null;
4122
      }
4123
    }
4124
 
4125
    public void setFieldValue(_Fields field, Object value) {
4126
      switch (field) {
4127
      case VENDOR:
4128
        if (value == null) {
4129
          unsetVendor();
4130
        } else {
4131
          setVendor((Vendor)value);
4132
        }
4133
        break;
4134
 
4135
      }
4136
    }
4137
 
4138
    public Object getFieldValue(_Fields field) {
4139
      switch (field) {
4140
      case VENDOR:
4141
        return getVendor();
4142
 
4143
      }
4144
      throw new IllegalStateException();
4145
    }
4146
 
4147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4148
    public boolean isSet(_Fields field) {
4149
      if (field == null) {
4150
        throw new IllegalArgumentException();
4151
      }
4152
 
4153
      switch (field) {
4154
      case VENDOR:
4155
        return isSetVendor();
4156
      }
4157
      throw new IllegalStateException();
4158
    }
4159
 
4160
    @Override
4161
    public boolean equals(Object that) {
4162
      if (that == null)
4163
        return false;
4164
      if (that instanceof addVendor_args)
4165
        return this.equals((addVendor_args)that);
4166
      return false;
4167
    }
4168
 
4169
    public boolean equals(addVendor_args that) {
4170
      if (that == null)
4171
        return false;
4172
 
4173
      boolean this_present_vendor = true && this.isSetVendor();
4174
      boolean that_present_vendor = true && that.isSetVendor();
4175
      if (this_present_vendor || that_present_vendor) {
4176
        if (!(this_present_vendor && that_present_vendor))
4177
          return false;
4178
        if (!this.vendor.equals(that.vendor))
4179
          return false;
4180
      }
4181
 
4182
      return true;
4183
    }
4184
 
4185
    @Override
4186
    public int hashCode() {
4187
      return 0;
4188
    }
4189
 
4190
    public int compareTo(addVendor_args other) {
4191
      if (!getClass().equals(other.getClass())) {
4192
        return getClass().getName().compareTo(other.getClass().getName());
4193
      }
4194
 
4195
      int lastComparison = 0;
4196
      addVendor_args typedOther = (addVendor_args)other;
4197
 
4198
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
4199
      if (lastComparison != 0) {
4200
        return lastComparison;
4201
      }
4202
      if (isSetVendor()) {
4203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
4204
        if (lastComparison != 0) {
4205
          return lastComparison;
4206
        }
4207
      }
4208
      return 0;
4209
    }
4210
 
4211
    public _Fields fieldForId(int fieldId) {
4212
      return _Fields.findByThriftId(fieldId);
4213
    }
4214
 
4215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4216
      org.apache.thrift.protocol.TField field;
4217
      iprot.readStructBegin();
4218
      while (true)
4219
      {
4220
        field = iprot.readFieldBegin();
4221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4222
          break;
4223
        }
4224
        switch (field.id) {
4225
          case 1: // VENDOR
4226
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4227
              this.vendor = new Vendor();
4228
              this.vendor.read(iprot);
4229
            } else { 
4230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4231
            }
4232
            break;
4233
          default:
4234
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4235
        }
4236
        iprot.readFieldEnd();
4237
      }
4238
      iprot.readStructEnd();
4239
      validate();
4240
    }
4241
 
4242
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4243
      validate();
4244
 
4245
      oprot.writeStructBegin(STRUCT_DESC);
4246
      if (this.vendor != null) {
4247
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
4248
        this.vendor.write(oprot);
4249
        oprot.writeFieldEnd();
4250
      }
4251
      oprot.writeFieldStop();
4252
      oprot.writeStructEnd();
4253
    }
4254
 
4255
    @Override
4256
    public String toString() {
4257
      StringBuilder sb = new StringBuilder("addVendor_args(");
4258
      boolean first = true;
4259
 
4260
      sb.append("vendor:");
4261
      if (this.vendor == null) {
4262
        sb.append("null");
4263
      } else {
4264
        sb.append(this.vendor);
4265
      }
4266
      first = false;
4267
      sb.append(")");
4268
      return sb.toString();
4269
    }
4270
 
4271
    public void validate() throws org.apache.thrift.TException {
4272
      // check for required fields
4273
    }
4274
 
4275
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4276
      try {
4277
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4278
      } catch (org.apache.thrift.TException te) {
4279
        throw new java.io.IOException(te);
4280
      }
4281
    }
4282
 
4283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4284
      try {
4285
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4286
      } catch (org.apache.thrift.TException te) {
4287
        throw new java.io.IOException(te);
4288
      }
4289
    }
4290
 
4291
  }
4292
 
4293
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
4294
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
4295
 
4296
    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);
4297
    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);
4298
 
4299
    private long success; // required
4300
    private InventoryServiceException cex; // required
4301
 
4302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4304
      SUCCESS((short)0, "success"),
4305
      CEX((short)1, "cex");
4306
 
4307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4308
 
4309
      static {
4310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4311
          byName.put(field.getFieldName(), field);
4312
        }
4313
      }
4314
 
4315
      /**
4316
       * Find the _Fields constant that matches fieldId, or null if its not found.
4317
       */
4318
      public static _Fields findByThriftId(int fieldId) {
4319
        switch(fieldId) {
4320
          case 0: // SUCCESS
4321
            return SUCCESS;
4322
          case 1: // CEX
4323
            return CEX;
4324
          default:
4325
            return null;
4326
        }
4327
      }
4328
 
4329
      /**
4330
       * Find the _Fields constant that matches fieldId, throwing an exception
4331
       * if it is not found.
4332
       */
4333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4334
        _Fields fields = findByThriftId(fieldId);
4335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4336
        return fields;
4337
      }
4338
 
4339
      /**
4340
       * Find the _Fields constant that matches name, or null if its not found.
4341
       */
4342
      public static _Fields findByName(String name) {
4343
        return byName.get(name);
4344
      }
4345
 
4346
      private final short _thriftId;
4347
      private final String _fieldName;
4348
 
4349
      _Fields(short thriftId, String fieldName) {
4350
        _thriftId = thriftId;
4351
        _fieldName = fieldName;
4352
      }
4353
 
4354
      public short getThriftFieldId() {
4355
        return _thriftId;
4356
      }
4357
 
4358
      public String getFieldName() {
4359
        return _fieldName;
4360
      }
4361
    }
4362
 
4363
    // isset id assignments
4364
    private static final int __SUCCESS_ISSET_ID = 0;
4365
    private BitSet __isset_bit_vector = new BitSet(1);
4366
 
4367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4368
    static {
4369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4370
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4372
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
4376
    }
4377
 
4378
    public addVendor_result() {
4379
    }
4380
 
4381
    public addVendor_result(
4382
      long success,
4383
      InventoryServiceException cex)
4384
    {
4385
      this();
4386
      this.success = success;
4387
      setSuccessIsSet(true);
4388
      this.cex = cex;
4389
    }
4390
 
4391
    /**
4392
     * Performs a deep copy on <i>other</i>.
4393
     */
4394
    public addVendor_result(addVendor_result other) {
4395
      __isset_bit_vector.clear();
4396
      __isset_bit_vector.or(other.__isset_bit_vector);
4397
      this.success = other.success;
4398
      if (other.isSetCex()) {
4399
        this.cex = new InventoryServiceException(other.cex);
4400
      }
4401
    }
4402
 
4403
    public addVendor_result deepCopy() {
4404
      return new addVendor_result(this);
4405
    }
4406
 
4407
    @Override
4408
    public void clear() {
4409
      setSuccessIsSet(false);
4410
      this.success = 0;
4411
      this.cex = null;
4412
    }
4413
 
4414
    public long getSuccess() {
4415
      return this.success;
4416
    }
4417
 
4418
    public void setSuccess(long success) {
4419
      this.success = success;
4420
      setSuccessIsSet(true);
4421
    }
4422
 
4423
    public void unsetSuccess() {
4424
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4425
    }
4426
 
4427
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4428
    public boolean isSetSuccess() {
4429
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4430
    }
4431
 
4432
    public void setSuccessIsSet(boolean value) {
4433
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4434
    }
4435
 
4436
    public InventoryServiceException getCex() {
4437
      return this.cex;
4438
    }
4439
 
4440
    public void setCex(InventoryServiceException cex) {
4441
      this.cex = cex;
4442
    }
4443
 
4444
    public void unsetCex() {
4445
      this.cex = null;
4446
    }
4447
 
4448
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
4449
    public boolean isSetCex() {
4450
      return this.cex != null;
4451
    }
4452
 
4453
    public void setCexIsSet(boolean value) {
4454
      if (!value) {
4455
        this.cex = null;
4456
      }
4457
    }
4458
 
4459
    public void setFieldValue(_Fields field, Object value) {
4460
      switch (field) {
4461
      case SUCCESS:
4462
        if (value == null) {
4463
          unsetSuccess();
4464
        } else {
4465
          setSuccess((Long)value);
4466
        }
4467
        break;
4468
 
4469
      case CEX:
4470
        if (value == null) {
4471
          unsetCex();
4472
        } else {
4473
          setCex((InventoryServiceException)value);
4474
        }
4475
        break;
4476
 
4477
      }
4478
    }
4479
 
4480
    public Object getFieldValue(_Fields field) {
4481
      switch (field) {
4482
      case SUCCESS:
4483
        return Long.valueOf(getSuccess());
4484
 
4485
      case CEX:
4486
        return getCex();
4487
 
4488
      }
4489
      throw new IllegalStateException();
4490
    }
4491
 
4492
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4493
    public boolean isSet(_Fields field) {
4494
      if (field == null) {
4495
        throw new IllegalArgumentException();
4496
      }
4497
 
4498
      switch (field) {
4499
      case SUCCESS:
4500
        return isSetSuccess();
4501
      case CEX:
4502
        return isSetCex();
4503
      }
4504
      throw new IllegalStateException();
4505
    }
4506
 
4507
    @Override
4508
    public boolean equals(Object that) {
4509
      if (that == null)
4510
        return false;
4511
      if (that instanceof addVendor_result)
4512
        return this.equals((addVendor_result)that);
4513
      return false;
4514
    }
4515
 
4516
    public boolean equals(addVendor_result that) {
4517
      if (that == null)
4518
        return false;
4519
 
4520
      boolean this_present_success = true;
4521
      boolean that_present_success = true;
4522
      if (this_present_success || that_present_success) {
4523
        if (!(this_present_success && that_present_success))
4524
          return false;
4525
        if (this.success != that.success)
4526
          return false;
4527
      }
4528
 
4529
      boolean this_present_cex = true && this.isSetCex();
4530
      boolean that_present_cex = true && that.isSetCex();
4531
      if (this_present_cex || that_present_cex) {
4532
        if (!(this_present_cex && that_present_cex))
4533
          return false;
4534
        if (!this.cex.equals(that.cex))
4535
          return false;
4536
      }
4537
 
4538
      return true;
4539
    }
4540
 
4541
    @Override
4542
    public int hashCode() {
4543
      return 0;
4544
    }
4545
 
4546
    public int compareTo(addVendor_result other) {
4547
      if (!getClass().equals(other.getClass())) {
4548
        return getClass().getName().compareTo(other.getClass().getName());
4549
      }
4550
 
4551
      int lastComparison = 0;
4552
      addVendor_result typedOther = (addVendor_result)other;
4553
 
4554
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4555
      if (lastComparison != 0) {
4556
        return lastComparison;
4557
      }
4558
      if (isSetSuccess()) {
4559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4560
        if (lastComparison != 0) {
4561
          return lastComparison;
4562
        }
4563
      }
4564
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
4565
      if (lastComparison != 0) {
4566
        return lastComparison;
4567
      }
4568
      if (isSetCex()) {
4569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
4570
        if (lastComparison != 0) {
4571
          return lastComparison;
4572
        }
4573
      }
4574
      return 0;
4575
    }
4576
 
4577
    public _Fields fieldForId(int fieldId) {
4578
      return _Fields.findByThriftId(fieldId);
4579
    }
4580
 
4581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4582
      org.apache.thrift.protocol.TField field;
4583
      iprot.readStructBegin();
4584
      while (true)
4585
      {
4586
        field = iprot.readFieldBegin();
4587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4588
          break;
4589
        }
4590
        switch (field.id) {
4591
          case 0: // SUCCESS
4592
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4593
              this.success = iprot.readI64();
4594
              setSuccessIsSet(true);
4595
            } else { 
4596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4597
            }
4598
            break;
4599
          case 1: // CEX
4600
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4601
              this.cex = new InventoryServiceException();
4602
              this.cex.read(iprot);
4603
            } else { 
4604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4605
            }
4606
            break;
4607
          default:
4608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4609
        }
4610
        iprot.readFieldEnd();
4611
      }
4612
      iprot.readStructEnd();
4613
      validate();
4614
    }
4615
 
4616
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4617
      oprot.writeStructBegin(STRUCT_DESC);
4618
 
4619
      if (this.isSetSuccess()) {
4620
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4621
        oprot.writeI64(this.success);
4622
        oprot.writeFieldEnd();
4623
      } else if (this.isSetCex()) {
4624
        oprot.writeFieldBegin(CEX_FIELD_DESC);
4625
        this.cex.write(oprot);
4626
        oprot.writeFieldEnd();
4627
      }
4628
      oprot.writeFieldStop();
4629
      oprot.writeStructEnd();
4630
    }
4631
 
4632
    @Override
4633
    public String toString() {
4634
      StringBuilder sb = new StringBuilder("addVendor_result(");
4635
      boolean first = true;
4636
 
4637
      sb.append("success:");
4638
      sb.append(this.success);
4639
      first = false;
4640
      if (!first) sb.append(", ");
4641
      sb.append("cex:");
4642
      if (this.cex == null) {
4643
        sb.append("null");
4644
      } else {
4645
        sb.append(this.cex);
4646
      }
4647
      first = false;
4648
      sb.append(")");
4649
      return sb.toString();
4650
    }
4651
 
4652
    public void validate() throws org.apache.thrift.TException {
4653
      // check for required fields
4654
    }
4655
 
4656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4657
      try {
4658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4659
      } catch (org.apache.thrift.TException te) {
4660
        throw new java.io.IOException(te);
4661
      }
4662
    }
4663
 
4664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4665
      try {
4666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4667
      } catch (org.apache.thrift.TException te) {
4668
        throw new java.io.IOException(te);
4669
      }
4670
    }
4671
 
4672
  }
4673
 
4674
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
4675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
4676
 
4677
    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);
4678
    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);
4679
    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);
4680
 
4681
    private long warehouse_id; // required
4682
    private String timestamp; // required
4683
    private Map<String,Long> availability; // required
4684
 
4685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4687
      WAREHOUSE_ID((short)1, "warehouse_id"),
4688
      TIMESTAMP((short)2, "timestamp"),
4689
      AVAILABILITY((short)3, "availability");
4690
 
4691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4692
 
4693
      static {
4694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4695
          byName.put(field.getFieldName(), field);
4696
        }
4697
      }
4698
 
4699
      /**
4700
       * Find the _Fields constant that matches fieldId, or null if its not found.
4701
       */
4702
      public static _Fields findByThriftId(int fieldId) {
4703
        switch(fieldId) {
4704
          case 1: // WAREHOUSE_ID
4705
            return WAREHOUSE_ID;
4706
          case 2: // TIMESTAMP
4707
            return TIMESTAMP;
4708
          case 3: // AVAILABILITY
4709
            return AVAILABILITY;
4710
          default:
4711
            return null;
4712
        }
4713
      }
4714
 
4715
      /**
4716
       * Find the _Fields constant that matches fieldId, throwing an exception
4717
       * if it is not found.
4718
       */
4719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4720
        _Fields fields = findByThriftId(fieldId);
4721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4722
        return fields;
4723
      }
4724
 
4725
      /**
4726
       * Find the _Fields constant that matches name, or null if its not found.
4727
       */
4728
      public static _Fields findByName(String name) {
4729
        return byName.get(name);
4730
      }
4731
 
4732
      private final short _thriftId;
4733
      private final String _fieldName;
4734
 
4735
      _Fields(short thriftId, String fieldName) {
4736
        _thriftId = thriftId;
4737
        _fieldName = fieldName;
4738
      }
4739
 
4740
      public short getThriftFieldId() {
4741
        return _thriftId;
4742
      }
4743
 
4744
      public String getFieldName() {
4745
        return _fieldName;
4746
      }
4747
    }
4748
 
4749
    // isset id assignments
4750
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
4751
    private BitSet __isset_bit_vector = new BitSet(1);
4752
 
4753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4754
    static {
4755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4756
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4757
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4758
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4760
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4761
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
4762
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
4763
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
4764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
4766
    }
4767
 
4768
    public updateInventoryHistory_args() {
4769
    }
4770
 
4771
    public updateInventoryHistory_args(
4772
      long warehouse_id,
4773
      String timestamp,
4774
      Map<String,Long> availability)
4775
    {
4776
      this();
4777
      this.warehouse_id = warehouse_id;
4778
      setWarehouse_idIsSet(true);
4779
      this.timestamp = timestamp;
4780
      this.availability = availability;
4781
    }
4782
 
4783
    /**
4784
     * Performs a deep copy on <i>other</i>.
4785
     */
4786
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
4787
      __isset_bit_vector.clear();
4788
      __isset_bit_vector.or(other.__isset_bit_vector);
4789
      this.warehouse_id = other.warehouse_id;
4790
      if (other.isSetTimestamp()) {
4791
        this.timestamp = other.timestamp;
4792
      }
4793
      if (other.isSetAvailability()) {
4794
        Map<String,Long> __this__availability = new HashMap<String,Long>();
4795
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
4796
 
4797
          String other_element_key = other_element.getKey();
4798
          Long other_element_value = other_element.getValue();
4799
 
4800
          String __this__availability_copy_key = other_element_key;
4801
 
4802
          Long __this__availability_copy_value = other_element_value;
4803
 
4804
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
4805
        }
4806
        this.availability = __this__availability;
4807
      }
4808
    }
4809
 
4810
    public updateInventoryHistory_args deepCopy() {
4811
      return new updateInventoryHistory_args(this);
4812
    }
4813
 
4814
    @Override
4815
    public void clear() {
4816
      setWarehouse_idIsSet(false);
4817
      this.warehouse_id = 0;
4818
      this.timestamp = null;
4819
      this.availability = null;
4820
    }
4821
 
4822
    public long getWarehouse_id() {
4823
      return this.warehouse_id;
4824
    }
4825
 
4826
    public void setWarehouse_id(long warehouse_id) {
4827
      this.warehouse_id = warehouse_id;
4828
      setWarehouse_idIsSet(true);
4829
    }
4830
 
4831
    public void unsetWarehouse_id() {
4832
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
4833
    }
4834
 
4835
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
4836
    public boolean isSetWarehouse_id() {
4837
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
4838
    }
4839
 
4840
    public void setWarehouse_idIsSet(boolean value) {
4841
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
4842
    }
4843
 
4844
    public String getTimestamp() {
4845
      return this.timestamp;
4846
    }
4847
 
4848
    public void setTimestamp(String timestamp) {
4849
      this.timestamp = timestamp;
4850
    }
4851
 
4852
    public void unsetTimestamp() {
4853
      this.timestamp = null;
4854
    }
4855
 
4856
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
4857
    public boolean isSetTimestamp() {
4858
      return this.timestamp != null;
4859
    }
4860
 
4861
    public void setTimestampIsSet(boolean value) {
4862
      if (!value) {
4863
        this.timestamp = null;
4864
      }
4865
    }
4866
 
4867
    public int getAvailabilitySize() {
4868
      return (this.availability == null) ? 0 : this.availability.size();
4869
    }
4870
 
4871
    public void putToAvailability(String key, long val) {
4872
      if (this.availability == null) {
4873
        this.availability = new HashMap<String,Long>();
4874
      }
4875
      this.availability.put(key, val);
4876
    }
4877
 
4878
    public Map<String,Long> getAvailability() {
4879
      return this.availability;
4880
    }
4881
 
4882
    public void setAvailability(Map<String,Long> availability) {
4883
      this.availability = availability;
4884
    }
4885
 
4886
    public void unsetAvailability() {
4887
      this.availability = null;
4888
    }
4889
 
4890
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
4891
    public boolean isSetAvailability() {
4892
      return this.availability != null;
4893
    }
4894
 
4895
    public void setAvailabilityIsSet(boolean value) {
4896
      if (!value) {
4897
        this.availability = null;
4898
      }
4899
    }
4900
 
4901
    public void setFieldValue(_Fields field, Object value) {
4902
      switch (field) {
4903
      case WAREHOUSE_ID:
4904
        if (value == null) {
4905
          unsetWarehouse_id();
4906
        } else {
4907
          setWarehouse_id((Long)value);
4908
        }
4909
        break;
4910
 
4911
      case TIMESTAMP:
4912
        if (value == null) {
4913
          unsetTimestamp();
4914
        } else {
4915
          setTimestamp((String)value);
4916
        }
4917
        break;
4918
 
4919
      case AVAILABILITY:
4920
        if (value == null) {
4921
          unsetAvailability();
4922
        } else {
4923
          setAvailability((Map<String,Long>)value);
4924
        }
4925
        break;
4926
 
4927
      }
4928
    }
4929
 
4930
    public Object getFieldValue(_Fields field) {
4931
      switch (field) {
4932
      case WAREHOUSE_ID:
4933
        return Long.valueOf(getWarehouse_id());
4934
 
4935
      case TIMESTAMP:
4936
        return getTimestamp();
4937
 
4938
      case AVAILABILITY:
4939
        return getAvailability();
4940
 
4941
      }
4942
      throw new IllegalStateException();
4943
    }
4944
 
4945
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4946
    public boolean isSet(_Fields field) {
4947
      if (field == null) {
4948
        throw new IllegalArgumentException();
4949
      }
4950
 
4951
      switch (field) {
4952
      case WAREHOUSE_ID:
4953
        return isSetWarehouse_id();
4954
      case TIMESTAMP:
4955
        return isSetTimestamp();
4956
      case AVAILABILITY:
4957
        return isSetAvailability();
4958
      }
4959
      throw new IllegalStateException();
4960
    }
4961
 
4962
    @Override
4963
    public boolean equals(Object that) {
4964
      if (that == null)
4965
        return false;
4966
      if (that instanceof updateInventoryHistory_args)
4967
        return this.equals((updateInventoryHistory_args)that);
4968
      return false;
4969
    }
4970
 
4971
    public boolean equals(updateInventoryHistory_args that) {
4972
      if (that == null)
4973
        return false;
4974
 
4975
      boolean this_present_warehouse_id = true;
4976
      boolean that_present_warehouse_id = true;
4977
      if (this_present_warehouse_id || that_present_warehouse_id) {
4978
        if (!(this_present_warehouse_id && that_present_warehouse_id))
4979
          return false;
4980
        if (this.warehouse_id != that.warehouse_id)
4981
          return false;
4982
      }
4983
 
4984
      boolean this_present_timestamp = true && this.isSetTimestamp();
4985
      boolean that_present_timestamp = true && that.isSetTimestamp();
4986
      if (this_present_timestamp || that_present_timestamp) {
4987
        if (!(this_present_timestamp && that_present_timestamp))
4988
          return false;
4989
        if (!this.timestamp.equals(that.timestamp))
4990
          return false;
4991
      }
4992
 
4993
      boolean this_present_availability = true && this.isSetAvailability();
4994
      boolean that_present_availability = true && that.isSetAvailability();
4995
      if (this_present_availability || that_present_availability) {
4996
        if (!(this_present_availability && that_present_availability))
4997
          return false;
4998
        if (!this.availability.equals(that.availability))
4999
          return false;
5000
      }
5001
 
5002
      return true;
5003
    }
5004
 
5005
    @Override
5006
    public int hashCode() {
5007
      return 0;
5008
    }
5009
 
5010
    public int compareTo(updateInventoryHistory_args other) {
5011
      if (!getClass().equals(other.getClass())) {
5012
        return getClass().getName().compareTo(other.getClass().getName());
5013
      }
5014
 
5015
      int lastComparison = 0;
5016
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
5017
 
5018
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5019
      if (lastComparison != 0) {
5020
        return lastComparison;
5021
      }
5022
      if (isSetWarehouse_id()) {
5023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5024
        if (lastComparison != 0) {
5025
          return lastComparison;
5026
        }
5027
      }
5028
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5029
      if (lastComparison != 0) {
5030
        return lastComparison;
5031
      }
5032
      if (isSetTimestamp()) {
5033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5034
        if (lastComparison != 0) {
5035
          return lastComparison;
5036
        }
5037
      }
5038
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5039
      if (lastComparison != 0) {
5040
        return lastComparison;
5041
      }
5042
      if (isSetAvailability()) {
5043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5044
        if (lastComparison != 0) {
5045
          return lastComparison;
5046
        }
5047
      }
5048
      return 0;
5049
    }
5050
 
5051
    public _Fields fieldForId(int fieldId) {
5052
      return _Fields.findByThriftId(fieldId);
5053
    }
5054
 
5055
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5056
      org.apache.thrift.protocol.TField field;
5057
      iprot.readStructBegin();
5058
      while (true)
5059
      {
5060
        field = iprot.readFieldBegin();
5061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5062
          break;
5063
        }
5064
        switch (field.id) {
5065
          case 1: // WAREHOUSE_ID
5066
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5067
              this.warehouse_id = iprot.readI64();
5068
              setWarehouse_idIsSet(true);
5069
            } else { 
5070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5071
            }
5072
            break;
5073
          case 2: // TIMESTAMP
5074
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5075
              this.timestamp = iprot.readString();
5076
            } else { 
5077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5078
            }
5079
            break;
5080
          case 3: // AVAILABILITY
5081
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5082
              {
5083
                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
5084
                this.availability = new HashMap<String,Long>(2*_map10.size);
5085
                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
5086
                {
5087
                  String _key12; // required
5088
                  long _val13; // required
5089
                  _key12 = iprot.readString();
5090
                  _val13 = iprot.readI64();
5091
                  this.availability.put(_key12, _val13);
5092
                }
5093
                iprot.readMapEnd();
5094
              }
5095
            } else { 
5096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5097
            }
5098
            break;
5099
          default:
5100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5101
        }
5102
        iprot.readFieldEnd();
5103
      }
5104
      iprot.readStructEnd();
5105
      validate();
5106
    }
5107
 
5108
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5109
      validate();
5110
 
5111
      oprot.writeStructBegin(STRUCT_DESC);
5112
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5113
      oprot.writeI64(this.warehouse_id);
5114
      oprot.writeFieldEnd();
5115
      if (this.timestamp != null) {
5116
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
5117
        oprot.writeString(this.timestamp);
5118
        oprot.writeFieldEnd();
5119
      }
5120
      if (this.availability != null) {
5121
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5122
        {
5123
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
5124
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
5125
          {
5126
            oprot.writeString(_iter14.getKey());
5127
            oprot.writeI64(_iter14.getValue());
5128
          }
5129
          oprot.writeMapEnd();
5130
        }
5131
        oprot.writeFieldEnd();
5132
      }
5133
      oprot.writeFieldStop();
5134
      oprot.writeStructEnd();
5135
    }
5136
 
5137
    @Override
5138
    public String toString() {
5139
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
5140
      boolean first = true;
5141
 
5142
      sb.append("warehouse_id:");
5143
      sb.append(this.warehouse_id);
5144
      first = false;
5145
      if (!first) sb.append(", ");
5146
      sb.append("timestamp:");
5147
      if (this.timestamp == null) {
5148
        sb.append("null");
5149
      } else {
5150
        sb.append(this.timestamp);
5151
      }
5152
      first = false;
5153
      if (!first) sb.append(", ");
5154
      sb.append("availability:");
5155
      if (this.availability == null) {
5156
        sb.append("null");
5157
      } else {
5158
        sb.append(this.availability);
5159
      }
5160
      first = false;
5161
      sb.append(")");
5162
      return sb.toString();
5163
    }
5164
 
5165
    public void validate() throws org.apache.thrift.TException {
5166
      // check for required fields
5167
    }
5168
 
5169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5170
      try {
5171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5172
      } catch (org.apache.thrift.TException te) {
5173
        throw new java.io.IOException(te);
5174
      }
5175
    }
5176
 
5177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5178
      try {
5179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5180
      } catch (org.apache.thrift.TException te) {
5181
        throw new java.io.IOException(te);
5182
      }
5183
    }
5184
 
5185
  }
5186
 
5187
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
5188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
5189
 
5190
    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);
5191
 
5192
    private InventoryServiceException cex; // required
5193
 
5194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5196
      CEX((short)1, "cex");
5197
 
5198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5199
 
5200
      static {
5201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5202
          byName.put(field.getFieldName(), field);
5203
        }
5204
      }
5205
 
5206
      /**
5207
       * Find the _Fields constant that matches fieldId, or null if its not found.
5208
       */
5209
      public static _Fields findByThriftId(int fieldId) {
5210
        switch(fieldId) {
5211
          case 1: // CEX
5212
            return CEX;
5213
          default:
5214
            return null;
5215
        }
5216
      }
5217
 
5218
      /**
5219
       * Find the _Fields constant that matches fieldId, throwing an exception
5220
       * if it is not found.
5221
       */
5222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5223
        _Fields fields = findByThriftId(fieldId);
5224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5225
        return fields;
5226
      }
5227
 
5228
      /**
5229
       * Find the _Fields constant that matches name, or null if its not found.
5230
       */
5231
      public static _Fields findByName(String name) {
5232
        return byName.get(name);
5233
      }
5234
 
5235
      private final short _thriftId;
5236
      private final String _fieldName;
5237
 
5238
      _Fields(short thriftId, String fieldName) {
5239
        _thriftId = thriftId;
5240
        _fieldName = fieldName;
5241
      }
5242
 
5243
      public short getThriftFieldId() {
5244
        return _thriftId;
5245
      }
5246
 
5247
      public String getFieldName() {
5248
        return _fieldName;
5249
      }
5250
    }
5251
 
5252
    // isset id assignments
5253
 
5254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5255
    static {
5256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5257
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5258
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5259
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5260
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
5261
    }
5262
 
5263
    public updateInventoryHistory_result() {
5264
    }
5265
 
5266
    public updateInventoryHistory_result(
5267
      InventoryServiceException cex)
5268
    {
5269
      this();
5270
      this.cex = cex;
5271
    }
5272
 
5273
    /**
5274
     * Performs a deep copy on <i>other</i>.
5275
     */
5276
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
5277
      if (other.isSetCex()) {
5278
        this.cex = new InventoryServiceException(other.cex);
5279
      }
5280
    }
5281
 
5282
    public updateInventoryHistory_result deepCopy() {
5283
      return new updateInventoryHistory_result(this);
5284
    }
5285
 
5286
    @Override
5287
    public void clear() {
5288
      this.cex = null;
5289
    }
5290
 
5291
    public InventoryServiceException getCex() {
5292
      return this.cex;
5293
    }
5294
 
5295
    public void setCex(InventoryServiceException cex) {
5296
      this.cex = cex;
5297
    }
5298
 
5299
    public void unsetCex() {
5300
      this.cex = null;
5301
    }
5302
 
5303
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5304
    public boolean isSetCex() {
5305
      return this.cex != null;
5306
    }
5307
 
5308
    public void setCexIsSet(boolean value) {
5309
      if (!value) {
5310
        this.cex = null;
5311
      }
5312
    }
5313
 
5314
    public void setFieldValue(_Fields field, Object value) {
5315
      switch (field) {
5316
      case CEX:
5317
        if (value == null) {
5318
          unsetCex();
5319
        } else {
5320
          setCex((InventoryServiceException)value);
5321
        }
5322
        break;
5323
 
5324
      }
5325
    }
5326
 
5327
    public Object getFieldValue(_Fields field) {
5328
      switch (field) {
5329
      case CEX:
5330
        return getCex();
5331
 
5332
      }
5333
      throw new IllegalStateException();
5334
    }
5335
 
5336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5337
    public boolean isSet(_Fields field) {
5338
      if (field == null) {
5339
        throw new IllegalArgumentException();
5340
      }
5341
 
5342
      switch (field) {
5343
      case CEX:
5344
        return isSetCex();
5345
      }
5346
      throw new IllegalStateException();
5347
    }
5348
 
5349
    @Override
5350
    public boolean equals(Object that) {
5351
      if (that == null)
5352
        return false;
5353
      if (that instanceof updateInventoryHistory_result)
5354
        return this.equals((updateInventoryHistory_result)that);
5355
      return false;
5356
    }
5357
 
5358
    public boolean equals(updateInventoryHistory_result that) {
5359
      if (that == null)
5360
        return false;
5361
 
5362
      boolean this_present_cex = true && this.isSetCex();
5363
      boolean that_present_cex = true && that.isSetCex();
5364
      if (this_present_cex || that_present_cex) {
5365
        if (!(this_present_cex && that_present_cex))
5366
          return false;
5367
        if (!this.cex.equals(that.cex))
5368
          return false;
5369
      }
5370
 
5371
      return true;
5372
    }
5373
 
5374
    @Override
5375
    public int hashCode() {
5376
      return 0;
5377
    }
5378
 
5379
    public int compareTo(updateInventoryHistory_result other) {
5380
      if (!getClass().equals(other.getClass())) {
5381
        return getClass().getName().compareTo(other.getClass().getName());
5382
      }
5383
 
5384
      int lastComparison = 0;
5385
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
5386
 
5387
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5388
      if (lastComparison != 0) {
5389
        return lastComparison;
5390
      }
5391
      if (isSetCex()) {
5392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5393
        if (lastComparison != 0) {
5394
          return lastComparison;
5395
        }
5396
      }
5397
      return 0;
5398
    }
5399
 
5400
    public _Fields fieldForId(int fieldId) {
5401
      return _Fields.findByThriftId(fieldId);
5402
    }
5403
 
5404
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5405
      org.apache.thrift.protocol.TField field;
5406
      iprot.readStructBegin();
5407
      while (true)
5408
      {
5409
        field = iprot.readFieldBegin();
5410
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5411
          break;
5412
        }
5413
        switch (field.id) {
5414
          case 1: // CEX
5415
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5416
              this.cex = new InventoryServiceException();
5417
              this.cex.read(iprot);
5418
            } else { 
5419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5420
            }
5421
            break;
5422
          default:
5423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5424
        }
5425
        iprot.readFieldEnd();
5426
      }
5427
      iprot.readStructEnd();
5428
      validate();
5429
    }
5430
 
5431
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5432
      oprot.writeStructBegin(STRUCT_DESC);
5433
 
5434
      if (this.isSetCex()) {
5435
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5436
        this.cex.write(oprot);
5437
        oprot.writeFieldEnd();
5438
      }
5439
      oprot.writeFieldStop();
5440
      oprot.writeStructEnd();
5441
    }
5442
 
5443
    @Override
5444
    public String toString() {
5445
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
5446
      boolean first = true;
5447
 
5448
      sb.append("cex:");
5449
      if (this.cex == null) {
5450
        sb.append("null");
5451
      } else {
5452
        sb.append(this.cex);
5453
      }
5454
      first = false;
5455
      sb.append(")");
5456
      return sb.toString();
5457
    }
5458
 
5459
    public void validate() throws org.apache.thrift.TException {
5460
      // check for required fields
5461
    }
5462
 
5463
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5464
      try {
5465
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5466
      } catch (org.apache.thrift.TException te) {
5467
        throw new java.io.IOException(te);
5468
      }
5469
    }
5470
 
5471
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5472
      try {
5473
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5474
      } catch (org.apache.thrift.TException te) {
5475
        throw new java.io.IOException(te);
5476
      }
5477
    }
5478
 
5479
  }
5480
 
5481
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
5482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
5483
 
5484
    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);
5485
    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);
5486
    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);
5487
 
5488
    private long warehouse_id; // required
5489
    private String timestamp; // required
5490
    private Map<String,Long> availability; // required
5491
 
5492
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5493
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5494
      WAREHOUSE_ID((short)1, "warehouse_id"),
5495
      TIMESTAMP((short)2, "timestamp"),
5496
      AVAILABILITY((short)3, "availability");
5497
 
5498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5499
 
5500
      static {
5501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5502
          byName.put(field.getFieldName(), field);
5503
        }
5504
      }
5505
 
5506
      /**
5507
       * Find the _Fields constant that matches fieldId, or null if its not found.
5508
       */
5509
      public static _Fields findByThriftId(int fieldId) {
5510
        switch(fieldId) {
5511
          case 1: // WAREHOUSE_ID
5512
            return WAREHOUSE_ID;
5513
          case 2: // TIMESTAMP
5514
            return TIMESTAMP;
5515
          case 3: // AVAILABILITY
5516
            return AVAILABILITY;
5517
          default:
5518
            return null;
5519
        }
5520
      }
5521
 
5522
      /**
5523
       * Find the _Fields constant that matches fieldId, throwing an exception
5524
       * if it is not found.
5525
       */
5526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5527
        _Fields fields = findByThriftId(fieldId);
5528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5529
        return fields;
5530
      }
5531
 
5532
      /**
5533
       * Find the _Fields constant that matches name, or null if its not found.
5534
       */
5535
      public static _Fields findByName(String name) {
5536
        return byName.get(name);
5537
      }
5538
 
5539
      private final short _thriftId;
5540
      private final String _fieldName;
5541
 
5542
      _Fields(short thriftId, String fieldName) {
5543
        _thriftId = thriftId;
5544
        _fieldName = fieldName;
5545
      }
5546
 
5547
      public short getThriftFieldId() {
5548
        return _thriftId;
5549
      }
5550
 
5551
      public String getFieldName() {
5552
        return _fieldName;
5553
      }
5554
    }
5555
 
5556
    // isset id assignments
5557
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
5558
    private BitSet __isset_bit_vector = new BitSet(1);
5559
 
5560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5561
    static {
5562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5563
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5564
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5565
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5566
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5567
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5568
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
5569
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
5570
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
5571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
5573
    }
5574
 
5575
    public updateInventory_args() {
5576
    }
5577
 
5578
    public updateInventory_args(
5579
      long warehouse_id,
5580
      String timestamp,
5581
      Map<String,Long> availability)
5582
    {
5583
      this();
5584
      this.warehouse_id = warehouse_id;
5585
      setWarehouse_idIsSet(true);
5586
      this.timestamp = timestamp;
5587
      this.availability = availability;
5588
    }
5589
 
5590
    /**
5591
     * Performs a deep copy on <i>other</i>.
5592
     */
5593
    public updateInventory_args(updateInventory_args other) {
5594
      __isset_bit_vector.clear();
5595
      __isset_bit_vector.or(other.__isset_bit_vector);
5596
      this.warehouse_id = other.warehouse_id;
5597
      if (other.isSetTimestamp()) {
5598
        this.timestamp = other.timestamp;
5599
      }
5600
      if (other.isSetAvailability()) {
5601
        Map<String,Long> __this__availability = new HashMap<String,Long>();
5602
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
5603
 
5604
          String other_element_key = other_element.getKey();
5605
          Long other_element_value = other_element.getValue();
5606
 
5607
          String __this__availability_copy_key = other_element_key;
5608
 
5609
          Long __this__availability_copy_value = other_element_value;
5610
 
5611
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
5612
        }
5613
        this.availability = __this__availability;
5614
      }
5615
    }
5616
 
5617
    public updateInventory_args deepCopy() {
5618
      return new updateInventory_args(this);
5619
    }
5620
 
5621
    @Override
5622
    public void clear() {
5623
      setWarehouse_idIsSet(false);
5624
      this.warehouse_id = 0;
5625
      this.timestamp = null;
5626
      this.availability = null;
5627
    }
5628
 
5629
    public long getWarehouse_id() {
5630
      return this.warehouse_id;
5631
    }
5632
 
5633
    public void setWarehouse_id(long warehouse_id) {
5634
      this.warehouse_id = warehouse_id;
5635
      setWarehouse_idIsSet(true);
5636
    }
5637
 
5638
    public void unsetWarehouse_id() {
5639
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
5640
    }
5641
 
5642
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
5643
    public boolean isSetWarehouse_id() {
5644
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
5645
    }
5646
 
5647
    public void setWarehouse_idIsSet(boolean value) {
5648
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
5649
    }
5650
 
5651
    public String getTimestamp() {
5652
      return this.timestamp;
5653
    }
5654
 
5655
    public void setTimestamp(String timestamp) {
5656
      this.timestamp = timestamp;
5657
    }
5658
 
5659
    public void unsetTimestamp() {
5660
      this.timestamp = null;
5661
    }
5662
 
5663
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
5664
    public boolean isSetTimestamp() {
5665
      return this.timestamp != null;
5666
    }
5667
 
5668
    public void setTimestampIsSet(boolean value) {
5669
      if (!value) {
5670
        this.timestamp = null;
5671
      }
5672
    }
5673
 
5674
    public int getAvailabilitySize() {
5675
      return (this.availability == null) ? 0 : this.availability.size();
5676
    }
5677
 
5678
    public void putToAvailability(String key, long val) {
5679
      if (this.availability == null) {
5680
        this.availability = new HashMap<String,Long>();
5681
      }
5682
      this.availability.put(key, val);
5683
    }
5684
 
5685
    public Map<String,Long> getAvailability() {
5686
      return this.availability;
5687
    }
5688
 
5689
    public void setAvailability(Map<String,Long> availability) {
5690
      this.availability = availability;
5691
    }
5692
 
5693
    public void unsetAvailability() {
5694
      this.availability = null;
5695
    }
5696
 
5697
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
5698
    public boolean isSetAvailability() {
5699
      return this.availability != null;
5700
    }
5701
 
5702
    public void setAvailabilityIsSet(boolean value) {
5703
      if (!value) {
5704
        this.availability = null;
5705
      }
5706
    }
5707
 
5708
    public void setFieldValue(_Fields field, Object value) {
5709
      switch (field) {
5710
      case WAREHOUSE_ID:
5711
        if (value == null) {
5712
          unsetWarehouse_id();
5713
        } else {
5714
          setWarehouse_id((Long)value);
5715
        }
5716
        break;
5717
 
5718
      case TIMESTAMP:
5719
        if (value == null) {
5720
          unsetTimestamp();
5721
        } else {
5722
          setTimestamp((String)value);
5723
        }
5724
        break;
5725
 
5726
      case AVAILABILITY:
5727
        if (value == null) {
5728
          unsetAvailability();
5729
        } else {
5730
          setAvailability((Map<String,Long>)value);
5731
        }
5732
        break;
5733
 
5734
      }
5735
    }
5736
 
5737
    public Object getFieldValue(_Fields field) {
5738
      switch (field) {
5739
      case WAREHOUSE_ID:
5740
        return Long.valueOf(getWarehouse_id());
5741
 
5742
      case TIMESTAMP:
5743
        return getTimestamp();
5744
 
5745
      case AVAILABILITY:
5746
        return getAvailability();
5747
 
5748
      }
5749
      throw new IllegalStateException();
5750
    }
5751
 
5752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5753
    public boolean isSet(_Fields field) {
5754
      if (field == null) {
5755
        throw new IllegalArgumentException();
5756
      }
5757
 
5758
      switch (field) {
5759
      case WAREHOUSE_ID:
5760
        return isSetWarehouse_id();
5761
      case TIMESTAMP:
5762
        return isSetTimestamp();
5763
      case AVAILABILITY:
5764
        return isSetAvailability();
5765
      }
5766
      throw new IllegalStateException();
5767
    }
5768
 
5769
    @Override
5770
    public boolean equals(Object that) {
5771
      if (that == null)
5772
        return false;
5773
      if (that instanceof updateInventory_args)
5774
        return this.equals((updateInventory_args)that);
5775
      return false;
5776
    }
5777
 
5778
    public boolean equals(updateInventory_args that) {
5779
      if (that == null)
5780
        return false;
5781
 
5782
      boolean this_present_warehouse_id = true;
5783
      boolean that_present_warehouse_id = true;
5784
      if (this_present_warehouse_id || that_present_warehouse_id) {
5785
        if (!(this_present_warehouse_id && that_present_warehouse_id))
5786
          return false;
5787
        if (this.warehouse_id != that.warehouse_id)
5788
          return false;
5789
      }
5790
 
5791
      boolean this_present_timestamp = true && this.isSetTimestamp();
5792
      boolean that_present_timestamp = true && that.isSetTimestamp();
5793
      if (this_present_timestamp || that_present_timestamp) {
5794
        if (!(this_present_timestamp && that_present_timestamp))
5795
          return false;
5796
        if (!this.timestamp.equals(that.timestamp))
5797
          return false;
5798
      }
5799
 
5800
      boolean this_present_availability = true && this.isSetAvailability();
5801
      boolean that_present_availability = true && that.isSetAvailability();
5802
      if (this_present_availability || that_present_availability) {
5803
        if (!(this_present_availability && that_present_availability))
5804
          return false;
5805
        if (!this.availability.equals(that.availability))
5806
          return false;
5807
      }
5808
 
5809
      return true;
5810
    }
5811
 
5812
    @Override
5813
    public int hashCode() {
5814
      return 0;
5815
    }
5816
 
5817
    public int compareTo(updateInventory_args other) {
5818
      if (!getClass().equals(other.getClass())) {
5819
        return getClass().getName().compareTo(other.getClass().getName());
5820
      }
5821
 
5822
      int lastComparison = 0;
5823
      updateInventory_args typedOther = (updateInventory_args)other;
5824
 
5825
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
5826
      if (lastComparison != 0) {
5827
        return lastComparison;
5828
      }
5829
      if (isSetWarehouse_id()) {
5830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
5831
        if (lastComparison != 0) {
5832
          return lastComparison;
5833
        }
5834
      }
5835
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
5836
      if (lastComparison != 0) {
5837
        return lastComparison;
5838
      }
5839
      if (isSetTimestamp()) {
5840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
5841
        if (lastComparison != 0) {
5842
          return lastComparison;
5843
        }
5844
      }
5845
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
5846
      if (lastComparison != 0) {
5847
        return lastComparison;
5848
      }
5849
      if (isSetAvailability()) {
5850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
5851
        if (lastComparison != 0) {
5852
          return lastComparison;
5853
        }
5854
      }
5855
      return 0;
5856
    }
5857
 
5858
    public _Fields fieldForId(int fieldId) {
5859
      return _Fields.findByThriftId(fieldId);
5860
    }
5861
 
5862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5863
      org.apache.thrift.protocol.TField field;
5864
      iprot.readStructBegin();
5865
      while (true)
5866
      {
5867
        field = iprot.readFieldBegin();
5868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5869
          break;
5870
        }
5871
        switch (field.id) {
5872
          case 1: // WAREHOUSE_ID
5873
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5874
              this.warehouse_id = iprot.readI64();
5875
              setWarehouse_idIsSet(true);
5876
            } else { 
5877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5878
            }
5879
            break;
5880
          case 2: // TIMESTAMP
5881
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5882
              this.timestamp = iprot.readString();
5883
            } else { 
5884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5885
            }
5886
            break;
5887
          case 3: // AVAILABILITY
5888
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
5889
              {
5890
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
5891
                this.availability = new HashMap<String,Long>(2*_map15.size);
5892
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
5893
                {
5894
                  String _key17; // required
5895
                  long _val18; // required
5896
                  _key17 = iprot.readString();
5897
                  _val18 = iprot.readI64();
5898
                  this.availability.put(_key17, _val18);
5899
                }
5900
                iprot.readMapEnd();
5901
              }
5902
            } else { 
5903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5904
            }
5905
            break;
5906
          default:
5907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5908
        }
5909
        iprot.readFieldEnd();
5910
      }
5911
      iprot.readStructEnd();
5912
      validate();
5913
    }
5914
 
5915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5916
      validate();
5917
 
5918
      oprot.writeStructBegin(STRUCT_DESC);
5919
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5920
      oprot.writeI64(this.warehouse_id);
5921
      oprot.writeFieldEnd();
5922
      if (this.timestamp != null) {
5923
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
5924
        oprot.writeString(this.timestamp);
5925
        oprot.writeFieldEnd();
5926
      }
5927
      if (this.availability != null) {
5928
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5929
        {
5930
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
5931
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
5932
          {
5933
            oprot.writeString(_iter19.getKey());
5934
            oprot.writeI64(_iter19.getValue());
5935
          }
5936
          oprot.writeMapEnd();
5937
        }
5938
        oprot.writeFieldEnd();
5939
      }
5940
      oprot.writeFieldStop();
5941
      oprot.writeStructEnd();
5942
    }
5943
 
5944
    @Override
5945
    public String toString() {
5946
      StringBuilder sb = new StringBuilder("updateInventory_args(");
5947
      boolean first = true;
5948
 
5949
      sb.append("warehouse_id:");
5950
      sb.append(this.warehouse_id);
5951
      first = false;
5952
      if (!first) sb.append(", ");
5953
      sb.append("timestamp:");
5954
      if (this.timestamp == null) {
5955
        sb.append("null");
5956
      } else {
5957
        sb.append(this.timestamp);
5958
      }
5959
      first = false;
5960
      if (!first) sb.append(", ");
5961
      sb.append("availability:");
5962
      if (this.availability == null) {
5963
        sb.append("null");
5964
      } else {
5965
        sb.append(this.availability);
5966
      }
5967
      first = false;
5968
      sb.append(")");
5969
      return sb.toString();
5970
    }
5971
 
5972
    public void validate() throws org.apache.thrift.TException {
5973
      // check for required fields
5974
    }
5975
 
5976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5977
      try {
5978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5979
      } catch (org.apache.thrift.TException te) {
5980
        throw new java.io.IOException(te);
5981
      }
5982
    }
5983
 
5984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5985
      try {
5986
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5987
        __isset_bit_vector = new BitSet(1);
5988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5989
      } catch (org.apache.thrift.TException te) {
5990
        throw new java.io.IOException(te);
5991
      }
5992
    }
5993
 
5994
  }
5995
 
5996
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
5997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
5998
 
5999
    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);
6000
 
6001
    private InventoryServiceException cex; // required
6002
 
6003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6005
      CEX((short)1, "cex");
6006
 
6007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6008
 
6009
      static {
6010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6011
          byName.put(field.getFieldName(), field);
6012
        }
6013
      }
6014
 
6015
      /**
6016
       * Find the _Fields constant that matches fieldId, or null if its not found.
6017
       */
6018
      public static _Fields findByThriftId(int fieldId) {
6019
        switch(fieldId) {
6020
          case 1: // CEX
6021
            return CEX;
6022
          default:
6023
            return null;
6024
        }
6025
      }
6026
 
6027
      /**
6028
       * Find the _Fields constant that matches fieldId, throwing an exception
6029
       * if it is not found.
6030
       */
6031
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6032
        _Fields fields = findByThriftId(fieldId);
6033
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6034
        return fields;
6035
      }
6036
 
6037
      /**
6038
       * Find the _Fields constant that matches name, or null if its not found.
6039
       */
6040
      public static _Fields findByName(String name) {
6041
        return byName.get(name);
6042
      }
6043
 
6044
      private final short _thriftId;
6045
      private final String _fieldName;
6046
 
6047
      _Fields(short thriftId, String fieldName) {
6048
        _thriftId = thriftId;
6049
        _fieldName = fieldName;
6050
      }
6051
 
6052
      public short getThriftFieldId() {
6053
        return _thriftId;
6054
      }
6055
 
6056
      public String getFieldName() {
6057
        return _fieldName;
6058
      }
6059
    }
6060
 
6061
    // isset id assignments
6062
 
6063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6064
    static {
6065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6066
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6067
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
6070
    }
6071
 
6072
    public updateInventory_result() {
6073
    }
6074
 
6075
    public updateInventory_result(
6076
      InventoryServiceException cex)
6077
    {
6078
      this();
6079
      this.cex = cex;
6080
    }
6081
 
6082
    /**
6083
     * Performs a deep copy on <i>other</i>.
6084
     */
6085
    public updateInventory_result(updateInventory_result other) {
6086
      if (other.isSetCex()) {
6087
        this.cex = new InventoryServiceException(other.cex);
6088
      }
6089
    }
6090
 
6091
    public updateInventory_result deepCopy() {
6092
      return new updateInventory_result(this);
6093
    }
6094
 
6095
    @Override
6096
    public void clear() {
6097
      this.cex = null;
6098
    }
6099
 
6100
    public InventoryServiceException getCex() {
6101
      return this.cex;
6102
    }
6103
 
6104
    public void setCex(InventoryServiceException cex) {
6105
      this.cex = cex;
6106
    }
6107
 
6108
    public void unsetCex() {
6109
      this.cex = null;
6110
    }
6111
 
6112
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6113
    public boolean isSetCex() {
6114
      return this.cex != null;
6115
    }
6116
 
6117
    public void setCexIsSet(boolean value) {
6118
      if (!value) {
6119
        this.cex = null;
6120
      }
6121
    }
6122
 
6123
    public void setFieldValue(_Fields field, Object value) {
6124
      switch (field) {
6125
      case CEX:
6126
        if (value == null) {
6127
          unsetCex();
6128
        } else {
6129
          setCex((InventoryServiceException)value);
6130
        }
6131
        break;
6132
 
6133
      }
6134
    }
6135
 
6136
    public Object getFieldValue(_Fields field) {
6137
      switch (field) {
6138
      case CEX:
6139
        return getCex();
6140
 
6141
      }
6142
      throw new IllegalStateException();
6143
    }
6144
 
6145
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6146
    public boolean isSet(_Fields field) {
6147
      if (field == null) {
6148
        throw new IllegalArgumentException();
6149
      }
6150
 
6151
      switch (field) {
6152
      case CEX:
6153
        return isSetCex();
6154
      }
6155
      throw new IllegalStateException();
6156
    }
6157
 
6158
    @Override
6159
    public boolean equals(Object that) {
6160
      if (that == null)
6161
        return false;
6162
      if (that instanceof updateInventory_result)
6163
        return this.equals((updateInventory_result)that);
6164
      return false;
6165
    }
6166
 
6167
    public boolean equals(updateInventory_result that) {
6168
      if (that == null)
6169
        return false;
6170
 
6171
      boolean this_present_cex = true && this.isSetCex();
6172
      boolean that_present_cex = true && that.isSetCex();
6173
      if (this_present_cex || that_present_cex) {
6174
        if (!(this_present_cex && that_present_cex))
6175
          return false;
6176
        if (!this.cex.equals(that.cex))
6177
          return false;
6178
      }
6179
 
6180
      return true;
6181
    }
6182
 
6183
    @Override
6184
    public int hashCode() {
6185
      return 0;
6186
    }
6187
 
6188
    public int compareTo(updateInventory_result other) {
6189
      if (!getClass().equals(other.getClass())) {
6190
        return getClass().getName().compareTo(other.getClass().getName());
6191
      }
6192
 
6193
      int lastComparison = 0;
6194
      updateInventory_result typedOther = (updateInventory_result)other;
6195
 
6196
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6197
      if (lastComparison != 0) {
6198
        return lastComparison;
6199
      }
6200
      if (isSetCex()) {
6201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6202
        if (lastComparison != 0) {
6203
          return lastComparison;
6204
        }
6205
      }
6206
      return 0;
6207
    }
6208
 
6209
    public _Fields fieldForId(int fieldId) {
6210
      return _Fields.findByThriftId(fieldId);
6211
    }
6212
 
6213
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6214
      org.apache.thrift.protocol.TField field;
6215
      iprot.readStructBegin();
6216
      while (true)
6217
      {
6218
        field = iprot.readFieldBegin();
6219
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6220
          break;
6221
        }
6222
        switch (field.id) {
6223
          case 1: // CEX
6224
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6225
              this.cex = new InventoryServiceException();
6226
              this.cex.read(iprot);
6227
            } else { 
6228
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6229
            }
6230
            break;
6231
          default:
6232
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6233
        }
6234
        iprot.readFieldEnd();
6235
      }
6236
      iprot.readStructEnd();
6237
      validate();
6238
    }
6239
 
6240
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6241
      oprot.writeStructBegin(STRUCT_DESC);
6242
 
6243
      if (this.isSetCex()) {
6244
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6245
        this.cex.write(oprot);
6246
        oprot.writeFieldEnd();
6247
      }
6248
      oprot.writeFieldStop();
6249
      oprot.writeStructEnd();
6250
    }
6251
 
6252
    @Override
6253
    public String toString() {
6254
      StringBuilder sb = new StringBuilder("updateInventory_result(");
6255
      boolean first = true;
6256
 
6257
      sb.append("cex:");
6258
      if (this.cex == null) {
6259
        sb.append("null");
6260
      } else {
6261
        sb.append(this.cex);
6262
      }
6263
      first = false;
6264
      sb.append(")");
6265
      return sb.toString();
6266
    }
6267
 
6268
    public void validate() throws org.apache.thrift.TException {
6269
      // check for required fields
6270
    }
6271
 
6272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6273
      try {
6274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6275
      } catch (org.apache.thrift.TException te) {
6276
        throw new java.io.IOException(te);
6277
      }
6278
    }
6279
 
6280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6281
      try {
6282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6283
      } catch (org.apache.thrift.TException te) {
6284
        throw new java.io.IOException(te);
6285
      }
6286
    }
6287
 
6288
  }
6289
 
6290
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
6291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
6292
 
6293
    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);
6294
    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);
6295
    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);
6296
 
6297
    private long itemId; // required
6298
    private long warehouseId; // required
6299
    private long quantity; // required
6300
 
6301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6302
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6303
      ITEM_ID((short)1, "itemId"),
6304
      WAREHOUSE_ID((short)2, "warehouseId"),
6305
      QUANTITY((short)3, "quantity");
6306
 
6307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6308
 
6309
      static {
6310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6311
          byName.put(field.getFieldName(), field);
6312
        }
6313
      }
6314
 
6315
      /**
6316
       * Find the _Fields constant that matches fieldId, or null if its not found.
6317
       */
6318
      public static _Fields findByThriftId(int fieldId) {
6319
        switch(fieldId) {
6320
          case 1: // ITEM_ID
6321
            return ITEM_ID;
6322
          case 2: // WAREHOUSE_ID
6323
            return WAREHOUSE_ID;
6324
          case 3: // QUANTITY
6325
            return QUANTITY;
6326
          default:
6327
            return null;
6328
        }
6329
      }
6330
 
6331
      /**
6332
       * Find the _Fields constant that matches fieldId, throwing an exception
6333
       * if it is not found.
6334
       */
6335
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6336
        _Fields fields = findByThriftId(fieldId);
6337
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6338
        return fields;
6339
      }
6340
 
6341
      /**
6342
       * Find the _Fields constant that matches name, or null if its not found.
6343
       */
6344
      public static _Fields findByName(String name) {
6345
        return byName.get(name);
6346
      }
6347
 
6348
      private final short _thriftId;
6349
      private final String _fieldName;
6350
 
6351
      _Fields(short thriftId, String fieldName) {
6352
        _thriftId = thriftId;
6353
        _fieldName = fieldName;
6354
      }
6355
 
6356
      public short getThriftFieldId() {
6357
        return _thriftId;
6358
      }
6359
 
6360
      public String getFieldName() {
6361
        return _fieldName;
6362
      }
6363
    }
6364
 
6365
    // isset id assignments
6366
    private static final int __ITEMID_ISSET_ID = 0;
6367
    private static final int __WAREHOUSEID_ISSET_ID = 1;
6368
    private static final int __QUANTITY_ISSET_ID = 2;
6369
    private BitSet __isset_bit_vector = new BitSet(3);
6370
 
6371
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6372
    static {
6373
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6374
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6375
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6376
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6378
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
6382
    }
6383
 
6384
    public addInventory_args() {
6385
    }
6386
 
6387
    public addInventory_args(
6388
      long itemId,
6389
      long warehouseId,
6390
      long quantity)
6391
    {
6392
      this();
6393
      this.itemId = itemId;
6394
      setItemIdIsSet(true);
6395
      this.warehouseId = warehouseId;
6396
      setWarehouseIdIsSet(true);
6397
      this.quantity = quantity;
6398
      setQuantityIsSet(true);
6399
    }
6400
 
6401
    /**
6402
     * Performs a deep copy on <i>other</i>.
6403
     */
6404
    public addInventory_args(addInventory_args other) {
6405
      __isset_bit_vector.clear();
6406
      __isset_bit_vector.or(other.__isset_bit_vector);
6407
      this.itemId = other.itemId;
6408
      this.warehouseId = other.warehouseId;
6409
      this.quantity = other.quantity;
6410
    }
6411
 
6412
    public addInventory_args deepCopy() {
6413
      return new addInventory_args(this);
6414
    }
6415
 
6416
    @Override
6417
    public void clear() {
6418
      setItemIdIsSet(false);
6419
      this.itemId = 0;
6420
      setWarehouseIdIsSet(false);
6421
      this.warehouseId = 0;
6422
      setQuantityIsSet(false);
6423
      this.quantity = 0;
6424
    }
6425
 
6426
    public long getItemId() {
6427
      return this.itemId;
6428
    }
6429
 
6430
    public void setItemId(long itemId) {
6431
      this.itemId = itemId;
6432
      setItemIdIsSet(true);
6433
    }
6434
 
6435
    public void unsetItemId() {
6436
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
6437
    }
6438
 
6439
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
6440
    public boolean isSetItemId() {
6441
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
6442
    }
6443
 
6444
    public void setItemIdIsSet(boolean value) {
6445
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
6446
    }
6447
 
6448
    public long getWarehouseId() {
6449
      return this.warehouseId;
6450
    }
6451
 
6452
    public void setWarehouseId(long warehouseId) {
6453
      this.warehouseId = warehouseId;
6454
      setWarehouseIdIsSet(true);
6455
    }
6456
 
6457
    public void unsetWarehouseId() {
6458
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
6459
    }
6460
 
6461
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
6462
    public boolean isSetWarehouseId() {
6463
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
6464
    }
6465
 
6466
    public void setWarehouseIdIsSet(boolean value) {
6467
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
6468
    }
6469
 
6470
    public long getQuantity() {
6471
      return this.quantity;
6472
    }
6473
 
6474
    public void setQuantity(long quantity) {
6475
      this.quantity = quantity;
6476
      setQuantityIsSet(true);
6477
    }
6478
 
6479
    public void unsetQuantity() {
6480
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6481
    }
6482
 
6483
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6484
    public boolean isSetQuantity() {
6485
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6486
    }
6487
 
6488
    public void setQuantityIsSet(boolean value) {
6489
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6490
    }
6491
 
6492
    public void setFieldValue(_Fields field, Object value) {
6493
      switch (field) {
6494
      case ITEM_ID:
6495
        if (value == null) {
6496
          unsetItemId();
6497
        } else {
6498
          setItemId((Long)value);
6499
        }
6500
        break;
6501
 
6502
      case WAREHOUSE_ID:
6503
        if (value == null) {
6504
          unsetWarehouseId();
6505
        } else {
6506
          setWarehouseId((Long)value);
6507
        }
6508
        break;
6509
 
6510
      case QUANTITY:
6511
        if (value == null) {
6512
          unsetQuantity();
6513
        } else {
6514
          setQuantity((Long)value);
6515
        }
6516
        break;
6517
 
6518
      }
6519
    }
6520
 
6521
    public Object getFieldValue(_Fields field) {
6522
      switch (field) {
6523
      case ITEM_ID:
6524
        return Long.valueOf(getItemId());
6525
 
6526
      case WAREHOUSE_ID:
6527
        return Long.valueOf(getWarehouseId());
6528
 
6529
      case QUANTITY:
6530
        return Long.valueOf(getQuantity());
6531
 
6532
      }
6533
      throw new IllegalStateException();
6534
    }
6535
 
6536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6537
    public boolean isSet(_Fields field) {
6538
      if (field == null) {
6539
        throw new IllegalArgumentException();
6540
      }
6541
 
6542
      switch (field) {
6543
      case ITEM_ID:
6544
        return isSetItemId();
6545
      case WAREHOUSE_ID:
6546
        return isSetWarehouseId();
6547
      case QUANTITY:
6548
        return isSetQuantity();
6549
      }
6550
      throw new IllegalStateException();
6551
    }
6552
 
6553
    @Override
6554
    public boolean equals(Object that) {
6555
      if (that == null)
6556
        return false;
6557
      if (that instanceof addInventory_args)
6558
        return this.equals((addInventory_args)that);
6559
      return false;
6560
    }
6561
 
6562
    public boolean equals(addInventory_args that) {
6563
      if (that == null)
6564
        return false;
6565
 
6566
      boolean this_present_itemId = true;
6567
      boolean that_present_itemId = true;
6568
      if (this_present_itemId || that_present_itemId) {
6569
        if (!(this_present_itemId && that_present_itemId))
6570
          return false;
6571
        if (this.itemId != that.itemId)
6572
          return false;
6573
      }
6574
 
6575
      boolean this_present_warehouseId = true;
6576
      boolean that_present_warehouseId = true;
6577
      if (this_present_warehouseId || that_present_warehouseId) {
6578
        if (!(this_present_warehouseId && that_present_warehouseId))
6579
          return false;
6580
        if (this.warehouseId != that.warehouseId)
6581
          return false;
6582
      }
6583
 
6584
      boolean this_present_quantity = true;
6585
      boolean that_present_quantity = true;
6586
      if (this_present_quantity || that_present_quantity) {
6587
        if (!(this_present_quantity && that_present_quantity))
6588
          return false;
6589
        if (this.quantity != that.quantity)
6590
          return false;
6591
      }
6592
 
6593
      return true;
6594
    }
6595
 
6596
    @Override
6597
    public int hashCode() {
6598
      return 0;
6599
    }
6600
 
6601
    public int compareTo(addInventory_args other) {
6602
      if (!getClass().equals(other.getClass())) {
6603
        return getClass().getName().compareTo(other.getClass().getName());
6604
      }
6605
 
6606
      int lastComparison = 0;
6607
      addInventory_args typedOther = (addInventory_args)other;
6608
 
6609
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
6610
      if (lastComparison != 0) {
6611
        return lastComparison;
6612
      }
6613
      if (isSetItemId()) {
6614
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
6615
        if (lastComparison != 0) {
6616
          return lastComparison;
6617
        }
6618
      }
6619
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
6620
      if (lastComparison != 0) {
6621
        return lastComparison;
6622
      }
6623
      if (isSetWarehouseId()) {
6624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
6625
        if (lastComparison != 0) {
6626
          return lastComparison;
6627
        }
6628
      }
6629
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6630
      if (lastComparison != 0) {
6631
        return lastComparison;
6632
      }
6633
      if (isSetQuantity()) {
6634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6635
        if (lastComparison != 0) {
6636
          return lastComparison;
6637
        }
6638
      }
6639
      return 0;
6640
    }
6641
 
6642
    public _Fields fieldForId(int fieldId) {
6643
      return _Fields.findByThriftId(fieldId);
6644
    }
6645
 
6646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6647
      org.apache.thrift.protocol.TField field;
6648
      iprot.readStructBegin();
6649
      while (true)
6650
      {
6651
        field = iprot.readFieldBegin();
6652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6653
          break;
6654
        }
6655
        switch (field.id) {
6656
          case 1: // ITEM_ID
6657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6658
              this.itemId = iprot.readI64();
6659
              setItemIdIsSet(true);
6660
            } else { 
6661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6662
            }
6663
            break;
6664
          case 2: // WAREHOUSE_ID
6665
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6666
              this.warehouseId = iprot.readI64();
6667
              setWarehouseIdIsSet(true);
6668
            } else { 
6669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6670
            }
6671
            break;
6672
          case 3: // QUANTITY
6673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6674
              this.quantity = iprot.readI64();
6675
              setQuantityIsSet(true);
6676
            } else { 
6677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6678
            }
6679
            break;
6680
          default:
6681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6682
        }
6683
        iprot.readFieldEnd();
6684
      }
6685
      iprot.readStructEnd();
6686
      validate();
6687
    }
6688
 
6689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6690
      validate();
6691
 
6692
      oprot.writeStructBegin(STRUCT_DESC);
6693
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
6694
      oprot.writeI64(this.itemId);
6695
      oprot.writeFieldEnd();
6696
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6697
      oprot.writeI64(this.warehouseId);
6698
      oprot.writeFieldEnd();
6699
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6700
      oprot.writeI64(this.quantity);
6701
      oprot.writeFieldEnd();
6702
      oprot.writeFieldStop();
6703
      oprot.writeStructEnd();
6704
    }
6705
 
6706
    @Override
6707
    public String toString() {
6708
      StringBuilder sb = new StringBuilder("addInventory_args(");
6709
      boolean first = true;
6710
 
6711
      sb.append("itemId:");
6712
      sb.append(this.itemId);
6713
      first = false;
6714
      if (!first) sb.append(", ");
6715
      sb.append("warehouseId:");
6716
      sb.append(this.warehouseId);
6717
      first = false;
6718
      if (!first) sb.append(", ");
6719
      sb.append("quantity:");
6720
      sb.append(this.quantity);
6721
      first = false;
6722
      sb.append(")");
6723
      return sb.toString();
6724
    }
6725
 
6726
    public void validate() throws org.apache.thrift.TException {
6727
      // check for required fields
6728
    }
6729
 
6730
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6731
      try {
6732
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6733
      } catch (org.apache.thrift.TException te) {
6734
        throw new java.io.IOException(te);
6735
      }
6736
    }
6737
 
6738
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6739
      try {
6740
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6741
        __isset_bit_vector = new BitSet(1);
6742
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6743
      } catch (org.apache.thrift.TException te) {
6744
        throw new java.io.IOException(te);
6745
      }
6746
    }
6747
 
6748
  }
6749
 
6750
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
6751
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
6752
 
6753
    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);
6754
 
6755
    private InventoryServiceException cex; // required
6756
 
6757
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6758
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6759
      CEX((short)1, "cex");
6760
 
6761
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6762
 
6763
      static {
6764
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6765
          byName.put(field.getFieldName(), field);
6766
        }
6767
      }
6768
 
6769
      /**
6770
       * Find the _Fields constant that matches fieldId, or null if its not found.
6771
       */
6772
      public static _Fields findByThriftId(int fieldId) {
6773
        switch(fieldId) {
6774
          case 1: // CEX
6775
            return CEX;
6776
          default:
6777
            return null;
6778
        }
6779
      }
6780
 
6781
      /**
6782
       * Find the _Fields constant that matches fieldId, throwing an exception
6783
       * if it is not found.
6784
       */
6785
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6786
        _Fields fields = findByThriftId(fieldId);
6787
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6788
        return fields;
6789
      }
6790
 
6791
      /**
6792
       * Find the _Fields constant that matches name, or null if its not found.
6793
       */
6794
      public static _Fields findByName(String name) {
6795
        return byName.get(name);
6796
      }
6797
 
6798
      private final short _thriftId;
6799
      private final String _fieldName;
6800
 
6801
      _Fields(short thriftId, String fieldName) {
6802
        _thriftId = thriftId;
6803
        _fieldName = fieldName;
6804
      }
6805
 
6806
      public short getThriftFieldId() {
6807
        return _thriftId;
6808
      }
6809
 
6810
      public String getFieldName() {
6811
        return _fieldName;
6812
      }
6813
    }
6814
 
6815
    // isset id assignments
6816
 
6817
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6818
    static {
6819
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6820
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6821
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
6824
    }
6825
 
6826
    public addInventory_result() {
6827
    }
6828
 
6829
    public addInventory_result(
6830
      InventoryServiceException cex)
6831
    {
6832
      this();
6833
      this.cex = cex;
6834
    }
6835
 
6836
    /**
6837
     * Performs a deep copy on <i>other</i>.
6838
     */
6839
    public addInventory_result(addInventory_result other) {
6840
      if (other.isSetCex()) {
6841
        this.cex = new InventoryServiceException(other.cex);
6842
      }
6843
    }
6844
 
6845
    public addInventory_result deepCopy() {
6846
      return new addInventory_result(this);
6847
    }
6848
 
6849
    @Override
6850
    public void clear() {
6851
      this.cex = null;
6852
    }
6853
 
6854
    public InventoryServiceException getCex() {
6855
      return this.cex;
6856
    }
6857
 
6858
    public void setCex(InventoryServiceException cex) {
6859
      this.cex = cex;
6860
    }
6861
 
6862
    public void unsetCex() {
6863
      this.cex = null;
6864
    }
6865
 
6866
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6867
    public boolean isSetCex() {
6868
      return this.cex != null;
6869
    }
6870
 
6871
    public void setCexIsSet(boolean value) {
6872
      if (!value) {
6873
        this.cex = null;
6874
      }
6875
    }
6876
 
6877
    public void setFieldValue(_Fields field, Object value) {
6878
      switch (field) {
6879
      case CEX:
6880
        if (value == null) {
6881
          unsetCex();
6882
        } else {
6883
          setCex((InventoryServiceException)value);
6884
        }
6885
        break;
6886
 
6887
      }
6888
    }
6889
 
6890
    public Object getFieldValue(_Fields field) {
6891
      switch (field) {
6892
      case CEX:
6893
        return getCex();
6894
 
6895
      }
6896
      throw new IllegalStateException();
6897
    }
6898
 
6899
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6900
    public boolean isSet(_Fields field) {
6901
      if (field == null) {
6902
        throw new IllegalArgumentException();
6903
      }
6904
 
6905
      switch (field) {
6906
      case CEX:
6907
        return isSetCex();
6908
      }
6909
      throw new IllegalStateException();
6910
    }
6911
 
6912
    @Override
6913
    public boolean equals(Object that) {
6914
      if (that == null)
6915
        return false;
6916
      if (that instanceof addInventory_result)
6917
        return this.equals((addInventory_result)that);
6918
      return false;
6919
    }
6920
 
6921
    public boolean equals(addInventory_result that) {
6922
      if (that == null)
6923
        return false;
6924
 
6925
      boolean this_present_cex = true && this.isSetCex();
6926
      boolean that_present_cex = true && that.isSetCex();
6927
      if (this_present_cex || that_present_cex) {
6928
        if (!(this_present_cex && that_present_cex))
6929
          return false;
6930
        if (!this.cex.equals(that.cex))
6931
          return false;
6932
      }
6933
 
6934
      return true;
6935
    }
6936
 
6937
    @Override
6938
    public int hashCode() {
6939
      return 0;
6940
    }
6941
 
6942
    public int compareTo(addInventory_result other) {
6943
      if (!getClass().equals(other.getClass())) {
6944
        return getClass().getName().compareTo(other.getClass().getName());
6945
      }
6946
 
6947
      int lastComparison = 0;
6948
      addInventory_result typedOther = (addInventory_result)other;
6949
 
6950
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6951
      if (lastComparison != 0) {
6952
        return lastComparison;
6953
      }
6954
      if (isSetCex()) {
6955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6956
        if (lastComparison != 0) {
6957
          return lastComparison;
6958
        }
6959
      }
6960
      return 0;
6961
    }
6962
 
6963
    public _Fields fieldForId(int fieldId) {
6964
      return _Fields.findByThriftId(fieldId);
6965
    }
6966
 
6967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6968
      org.apache.thrift.protocol.TField field;
6969
      iprot.readStructBegin();
6970
      while (true)
6971
      {
6972
        field = iprot.readFieldBegin();
6973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6974
          break;
6975
        }
6976
        switch (field.id) {
6977
          case 1: // CEX
6978
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6979
              this.cex = new InventoryServiceException();
6980
              this.cex.read(iprot);
6981
            } else { 
6982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6983
            }
6984
            break;
6985
          default:
6986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6987
        }
6988
        iprot.readFieldEnd();
6989
      }
6990
      iprot.readStructEnd();
6991
      validate();
6992
    }
6993
 
6994
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6995
      oprot.writeStructBegin(STRUCT_DESC);
6996
 
6997
      if (this.isSetCex()) {
6998
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6999
        this.cex.write(oprot);
7000
        oprot.writeFieldEnd();
7001
      }
7002
      oprot.writeFieldStop();
7003
      oprot.writeStructEnd();
7004
    }
7005
 
7006
    @Override
7007
    public String toString() {
7008
      StringBuilder sb = new StringBuilder("addInventory_result(");
7009
      boolean first = true;
7010
 
7011
      sb.append("cex:");
7012
      if (this.cex == null) {
7013
        sb.append("null");
7014
      } else {
7015
        sb.append(this.cex);
7016
      }
7017
      first = false;
7018
      sb.append(")");
7019
      return sb.toString();
7020
    }
7021
 
7022
    public void validate() throws org.apache.thrift.TException {
7023
      // check for required fields
7024
    }
7025
 
7026
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7027
      try {
7028
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7029
      } catch (org.apache.thrift.TException te) {
7030
        throw new java.io.IOException(te);
7031
      }
7032
    }
7033
 
7034
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7035
      try {
7036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7037
      } catch (org.apache.thrift.TException te) {
7038
        throw new java.io.IOException(te);
7039
      }
7040
    }
7041
 
7042
  }
7043
 
7044
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
7046
 
7047
    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);
7048
 
7049
    private long warehouse_id; // required
7050
 
7051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7053
      WAREHOUSE_ID((short)1, "warehouse_id");
7054
 
7055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7056
 
7057
      static {
7058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7059
          byName.put(field.getFieldName(), field);
7060
        }
7061
      }
7062
 
7063
      /**
7064
       * Find the _Fields constant that matches fieldId, or null if its not found.
7065
       */
7066
      public static _Fields findByThriftId(int fieldId) {
7067
        switch(fieldId) {
7068
          case 1: // WAREHOUSE_ID
7069
            return WAREHOUSE_ID;
7070
          default:
7071
            return null;
7072
        }
7073
      }
7074
 
7075
      /**
7076
       * Find the _Fields constant that matches fieldId, throwing an exception
7077
       * if it is not found.
7078
       */
7079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7080
        _Fields fields = findByThriftId(fieldId);
7081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7082
        return fields;
7083
      }
7084
 
7085
      /**
7086
       * Find the _Fields constant that matches name, or null if its not found.
7087
       */
7088
      public static _Fields findByName(String name) {
7089
        return byName.get(name);
7090
      }
7091
 
7092
      private final short _thriftId;
7093
      private final String _fieldName;
7094
 
7095
      _Fields(short thriftId, String fieldName) {
7096
        _thriftId = thriftId;
7097
        _fieldName = fieldName;
7098
      }
7099
 
7100
      public short getThriftFieldId() {
7101
        return _thriftId;
7102
      }
7103
 
7104
      public String getFieldName() {
7105
        return _fieldName;
7106
      }
7107
    }
7108
 
7109
    // isset id assignments
7110
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7111
    private BitSet __isset_bit_vector = new BitSet(1);
7112
 
7113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7114
    static {
7115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7116
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
7120
    }
7121
 
7122
    public retireWarehouse_args() {
7123
    }
7124
 
7125
    public retireWarehouse_args(
7126
      long warehouse_id)
7127
    {
7128
      this();
7129
      this.warehouse_id = warehouse_id;
7130
      setWarehouse_idIsSet(true);
7131
    }
7132
 
7133
    /**
7134
     * Performs a deep copy on <i>other</i>.
7135
     */
7136
    public retireWarehouse_args(retireWarehouse_args other) {
7137
      __isset_bit_vector.clear();
7138
      __isset_bit_vector.or(other.__isset_bit_vector);
7139
      this.warehouse_id = other.warehouse_id;
7140
    }
7141
 
7142
    public retireWarehouse_args deepCopy() {
7143
      return new retireWarehouse_args(this);
7144
    }
7145
 
7146
    @Override
7147
    public void clear() {
7148
      setWarehouse_idIsSet(false);
7149
      this.warehouse_id = 0;
7150
    }
7151
 
7152
    public long getWarehouse_id() {
7153
      return this.warehouse_id;
7154
    }
7155
 
7156
    public void setWarehouse_id(long warehouse_id) {
7157
      this.warehouse_id = warehouse_id;
7158
      setWarehouse_idIsSet(true);
7159
    }
7160
 
7161
    public void unsetWarehouse_id() {
7162
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
7163
    }
7164
 
7165
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
7166
    public boolean isSetWarehouse_id() {
7167
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
7168
    }
7169
 
7170
    public void setWarehouse_idIsSet(boolean value) {
7171
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
7172
    }
7173
 
7174
    public void setFieldValue(_Fields field, Object value) {
7175
      switch (field) {
7176
      case WAREHOUSE_ID:
7177
        if (value == null) {
7178
          unsetWarehouse_id();
7179
        } else {
7180
          setWarehouse_id((Long)value);
7181
        }
7182
        break;
7183
 
7184
      }
7185
    }
7186
 
7187
    public Object getFieldValue(_Fields field) {
7188
      switch (field) {
7189
      case WAREHOUSE_ID:
7190
        return Long.valueOf(getWarehouse_id());
7191
 
7192
      }
7193
      throw new IllegalStateException();
7194
    }
7195
 
7196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7197
    public boolean isSet(_Fields field) {
7198
      if (field == null) {
7199
        throw new IllegalArgumentException();
7200
      }
7201
 
7202
      switch (field) {
7203
      case WAREHOUSE_ID:
7204
        return isSetWarehouse_id();
7205
      }
7206
      throw new IllegalStateException();
7207
    }
7208
 
7209
    @Override
7210
    public boolean equals(Object that) {
7211
      if (that == null)
7212
        return false;
7213
      if (that instanceof retireWarehouse_args)
7214
        return this.equals((retireWarehouse_args)that);
7215
      return false;
7216
    }
7217
 
7218
    public boolean equals(retireWarehouse_args that) {
7219
      if (that == null)
7220
        return false;
7221
 
7222
      boolean this_present_warehouse_id = true;
7223
      boolean that_present_warehouse_id = true;
7224
      if (this_present_warehouse_id || that_present_warehouse_id) {
7225
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7226
          return false;
7227
        if (this.warehouse_id != that.warehouse_id)
7228
          return false;
7229
      }
7230
 
7231
      return true;
7232
    }
7233
 
7234
    @Override
7235
    public int hashCode() {
7236
      return 0;
7237
    }
7238
 
7239
    public int compareTo(retireWarehouse_args other) {
7240
      if (!getClass().equals(other.getClass())) {
7241
        return getClass().getName().compareTo(other.getClass().getName());
7242
      }
7243
 
7244
      int lastComparison = 0;
7245
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
7246
 
7247
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7248
      if (lastComparison != 0) {
7249
        return lastComparison;
7250
      }
7251
      if (isSetWarehouse_id()) {
7252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7253
        if (lastComparison != 0) {
7254
          return lastComparison;
7255
        }
7256
      }
7257
      return 0;
7258
    }
7259
 
7260
    public _Fields fieldForId(int fieldId) {
7261
      return _Fields.findByThriftId(fieldId);
7262
    }
7263
 
7264
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7265
      org.apache.thrift.protocol.TField field;
7266
      iprot.readStructBegin();
7267
      while (true)
7268
      {
7269
        field = iprot.readFieldBegin();
7270
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7271
          break;
7272
        }
7273
        switch (field.id) {
7274
          case 1: // WAREHOUSE_ID
7275
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7276
              this.warehouse_id = iprot.readI64();
7277
              setWarehouse_idIsSet(true);
7278
            } else { 
7279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7280
            }
7281
            break;
7282
          default:
7283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7284
        }
7285
        iprot.readFieldEnd();
7286
      }
7287
      iprot.readStructEnd();
7288
      validate();
7289
    }
7290
 
7291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7292
      validate();
7293
 
7294
      oprot.writeStructBegin(STRUCT_DESC);
7295
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7296
      oprot.writeI64(this.warehouse_id);
7297
      oprot.writeFieldEnd();
7298
      oprot.writeFieldStop();
7299
      oprot.writeStructEnd();
7300
    }
7301
 
7302
    @Override
7303
    public String toString() {
7304
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
7305
      boolean first = true;
7306
 
7307
      sb.append("warehouse_id:");
7308
      sb.append(this.warehouse_id);
7309
      first = false;
7310
      sb.append(")");
7311
      return sb.toString();
7312
    }
7313
 
7314
    public void validate() throws org.apache.thrift.TException {
7315
      // check for required fields
7316
    }
7317
 
7318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7319
      try {
7320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7321
      } catch (org.apache.thrift.TException te) {
7322
        throw new java.io.IOException(te);
7323
      }
7324
    }
7325
 
7326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7327
      try {
7328
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7329
        __isset_bit_vector = new BitSet(1);
7330
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7331
      } catch (org.apache.thrift.TException te) {
7332
        throw new java.io.IOException(te);
7333
      }
7334
    }
7335
 
7336
  }
7337
 
7338
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
7339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
7340
 
7341
    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);
7342
 
7343
    private InventoryServiceException cex; // required
7344
 
7345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7347
      CEX((short)1, "cex");
7348
 
7349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7350
 
7351
      static {
7352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7353
          byName.put(field.getFieldName(), field);
7354
        }
7355
      }
7356
 
7357
      /**
7358
       * Find the _Fields constant that matches fieldId, or null if its not found.
7359
       */
7360
      public static _Fields findByThriftId(int fieldId) {
7361
        switch(fieldId) {
7362
          case 1: // CEX
7363
            return CEX;
7364
          default:
7365
            return null;
7366
        }
7367
      }
7368
 
7369
      /**
7370
       * Find the _Fields constant that matches fieldId, throwing an exception
7371
       * if it is not found.
7372
       */
7373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7374
        _Fields fields = findByThriftId(fieldId);
7375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7376
        return fields;
7377
      }
7378
 
7379
      /**
7380
       * Find the _Fields constant that matches name, or null if its not found.
7381
       */
7382
      public static _Fields findByName(String name) {
7383
        return byName.get(name);
7384
      }
7385
 
7386
      private final short _thriftId;
7387
      private final String _fieldName;
7388
 
7389
      _Fields(short thriftId, String fieldName) {
7390
        _thriftId = thriftId;
7391
        _fieldName = fieldName;
7392
      }
7393
 
7394
      public short getThriftFieldId() {
7395
        return _thriftId;
7396
      }
7397
 
7398
      public String getFieldName() {
7399
        return _fieldName;
7400
      }
7401
    }
7402
 
7403
    // isset id assignments
7404
 
7405
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7406
    static {
7407
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7408
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7410
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7411
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
7412
    }
7413
 
7414
    public retireWarehouse_result() {
7415
    }
7416
 
7417
    public retireWarehouse_result(
7418
      InventoryServiceException cex)
7419
    {
7420
      this();
7421
      this.cex = cex;
7422
    }
7423
 
7424
    /**
7425
     * Performs a deep copy on <i>other</i>.
7426
     */
7427
    public retireWarehouse_result(retireWarehouse_result other) {
7428
      if (other.isSetCex()) {
7429
        this.cex = new InventoryServiceException(other.cex);
7430
      }
7431
    }
7432
 
7433
    public retireWarehouse_result deepCopy() {
7434
      return new retireWarehouse_result(this);
7435
    }
7436
 
7437
    @Override
7438
    public void clear() {
7439
      this.cex = null;
7440
    }
7441
 
7442
    public InventoryServiceException getCex() {
7443
      return this.cex;
7444
    }
7445
 
7446
    public void setCex(InventoryServiceException cex) {
7447
      this.cex = cex;
7448
    }
7449
 
7450
    public void unsetCex() {
7451
      this.cex = null;
7452
    }
7453
 
7454
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7455
    public boolean isSetCex() {
7456
      return this.cex != null;
7457
    }
7458
 
7459
    public void setCexIsSet(boolean value) {
7460
      if (!value) {
7461
        this.cex = null;
7462
      }
7463
    }
7464
 
7465
    public void setFieldValue(_Fields field, Object value) {
7466
      switch (field) {
7467
      case CEX:
7468
        if (value == null) {
7469
          unsetCex();
7470
        } else {
7471
          setCex((InventoryServiceException)value);
7472
        }
7473
        break;
7474
 
7475
      }
7476
    }
7477
 
7478
    public Object getFieldValue(_Fields field) {
7479
      switch (field) {
7480
      case CEX:
7481
        return getCex();
7482
 
7483
      }
7484
      throw new IllegalStateException();
7485
    }
7486
 
7487
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7488
    public boolean isSet(_Fields field) {
7489
      if (field == null) {
7490
        throw new IllegalArgumentException();
7491
      }
7492
 
7493
      switch (field) {
7494
      case CEX:
7495
        return isSetCex();
7496
      }
7497
      throw new IllegalStateException();
7498
    }
7499
 
7500
    @Override
7501
    public boolean equals(Object that) {
7502
      if (that == null)
7503
        return false;
7504
      if (that instanceof retireWarehouse_result)
7505
        return this.equals((retireWarehouse_result)that);
7506
      return false;
7507
    }
7508
 
7509
    public boolean equals(retireWarehouse_result that) {
7510
      if (that == null)
7511
        return false;
7512
 
7513
      boolean this_present_cex = true && this.isSetCex();
7514
      boolean that_present_cex = true && that.isSetCex();
7515
      if (this_present_cex || that_present_cex) {
7516
        if (!(this_present_cex && that_present_cex))
7517
          return false;
7518
        if (!this.cex.equals(that.cex))
7519
          return false;
7520
      }
7521
 
7522
      return true;
7523
    }
7524
 
7525
    @Override
7526
    public int hashCode() {
7527
      return 0;
7528
    }
7529
 
7530
    public int compareTo(retireWarehouse_result other) {
7531
      if (!getClass().equals(other.getClass())) {
7532
        return getClass().getName().compareTo(other.getClass().getName());
7533
      }
7534
 
7535
      int lastComparison = 0;
7536
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
7537
 
7538
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7539
      if (lastComparison != 0) {
7540
        return lastComparison;
7541
      }
7542
      if (isSetCex()) {
7543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7544
        if (lastComparison != 0) {
7545
          return lastComparison;
7546
        }
7547
      }
7548
      return 0;
7549
    }
7550
 
7551
    public _Fields fieldForId(int fieldId) {
7552
      return _Fields.findByThriftId(fieldId);
7553
    }
7554
 
7555
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7556
      org.apache.thrift.protocol.TField field;
7557
      iprot.readStructBegin();
7558
      while (true)
7559
      {
7560
        field = iprot.readFieldBegin();
7561
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7562
          break;
7563
        }
7564
        switch (field.id) {
7565
          case 1: // CEX
7566
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7567
              this.cex = new InventoryServiceException();
7568
              this.cex.read(iprot);
7569
            } else { 
7570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7571
            }
7572
            break;
7573
          default:
7574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7575
        }
7576
        iprot.readFieldEnd();
7577
      }
7578
      iprot.readStructEnd();
7579
      validate();
7580
    }
7581
 
7582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7583
      oprot.writeStructBegin(STRUCT_DESC);
7584
 
7585
      if (this.isSetCex()) {
7586
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7587
        this.cex.write(oprot);
7588
        oprot.writeFieldEnd();
7589
      }
7590
      oprot.writeFieldStop();
7591
      oprot.writeStructEnd();
7592
    }
7593
 
7594
    @Override
7595
    public String toString() {
7596
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
7597
      boolean first = true;
7598
 
7599
      sb.append("cex:");
7600
      if (this.cex == null) {
7601
        sb.append("null");
7602
      } else {
7603
        sb.append(this.cex);
7604
      }
7605
      first = false;
7606
      sb.append(")");
7607
      return sb.toString();
7608
    }
7609
 
7610
    public void validate() throws org.apache.thrift.TException {
7611
      // check for required fields
7612
    }
7613
 
7614
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7615
      try {
7616
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7617
      } catch (org.apache.thrift.TException te) {
7618
        throw new java.io.IOException(te);
7619
      }
7620
    }
7621
 
7622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7623
      try {
7624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7625
      } catch (org.apache.thrift.TException te) {
7626
        throw new java.io.IOException(te);
7627
      }
7628
    }
7629
 
7630
  }
7631
 
7632
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
7633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
7634
 
7635
    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);
7636
 
7637
    private long item_id; // required
7638
 
7639
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7640
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7641
      ITEM_ID((short)1, "item_id");
7642
 
7643
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7644
 
7645
      static {
7646
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7647
          byName.put(field.getFieldName(), field);
7648
        }
7649
      }
7650
 
7651
      /**
7652
       * Find the _Fields constant that matches fieldId, or null if its not found.
7653
       */
7654
      public static _Fields findByThriftId(int fieldId) {
7655
        switch(fieldId) {
7656
          case 1: // ITEM_ID
7657
            return ITEM_ID;
7658
          default:
7659
            return null;
7660
        }
7661
      }
7662
 
7663
      /**
7664
       * Find the _Fields constant that matches fieldId, throwing an exception
7665
       * if it is not found.
7666
       */
7667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7668
        _Fields fields = findByThriftId(fieldId);
7669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7670
        return fields;
7671
      }
7672
 
7673
      /**
7674
       * Find the _Fields constant that matches name, or null if its not found.
7675
       */
7676
      public static _Fields findByName(String name) {
7677
        return byName.get(name);
7678
      }
7679
 
7680
      private final short _thriftId;
7681
      private final String _fieldName;
7682
 
7683
      _Fields(short thriftId, String fieldName) {
7684
        _thriftId = thriftId;
7685
        _fieldName = fieldName;
7686
      }
7687
 
7688
      public short getThriftFieldId() {
7689
        return _thriftId;
7690
      }
7691
 
7692
      public String getFieldName() {
7693
        return _fieldName;
7694
      }
7695
    }
7696
 
7697
    // isset id assignments
7698
    private static final int __ITEM_ID_ISSET_ID = 0;
7699
    private BitSet __isset_bit_vector = new BitSet(1);
7700
 
7701
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7702
    static {
7703
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7704
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7706
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7707
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
7708
    }
7709
 
7710
    public getItemInventoryByItemId_args() {
7711
    }
7712
 
7713
    public getItemInventoryByItemId_args(
7714
      long item_id)
7715
    {
7716
      this();
7717
      this.item_id = item_id;
7718
      setItem_idIsSet(true);
7719
    }
7720
 
7721
    /**
7722
     * Performs a deep copy on <i>other</i>.
7723
     */
7724
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
7725
      __isset_bit_vector.clear();
7726
      __isset_bit_vector.or(other.__isset_bit_vector);
7727
      this.item_id = other.item_id;
7728
    }
7729
 
7730
    public getItemInventoryByItemId_args deepCopy() {
7731
      return new getItemInventoryByItemId_args(this);
7732
    }
7733
 
7734
    @Override
7735
    public void clear() {
7736
      setItem_idIsSet(false);
7737
      this.item_id = 0;
7738
    }
7739
 
7740
    public long getItem_id() {
7741
      return this.item_id;
7742
    }
7743
 
7744
    public void setItem_id(long item_id) {
7745
      this.item_id = item_id;
7746
      setItem_idIsSet(true);
7747
    }
7748
 
7749
    public void unsetItem_id() {
7750
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
7751
    }
7752
 
7753
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
7754
    public boolean isSetItem_id() {
7755
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
7756
    }
7757
 
7758
    public void setItem_idIsSet(boolean value) {
7759
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
7760
    }
7761
 
7762
    public void setFieldValue(_Fields field, Object value) {
7763
      switch (field) {
7764
      case ITEM_ID:
7765
        if (value == null) {
7766
          unsetItem_id();
7767
        } else {
7768
          setItem_id((Long)value);
7769
        }
7770
        break;
7771
 
7772
      }
7773
    }
7774
 
7775
    public Object getFieldValue(_Fields field) {
7776
      switch (field) {
7777
      case ITEM_ID:
7778
        return Long.valueOf(getItem_id());
7779
 
7780
      }
7781
      throw new IllegalStateException();
7782
    }
7783
 
7784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7785
    public boolean isSet(_Fields field) {
7786
      if (field == null) {
7787
        throw new IllegalArgumentException();
7788
      }
7789
 
7790
      switch (field) {
7791
      case ITEM_ID:
7792
        return isSetItem_id();
7793
      }
7794
      throw new IllegalStateException();
7795
    }
7796
 
7797
    @Override
7798
    public boolean equals(Object that) {
7799
      if (that == null)
7800
        return false;
7801
      if (that instanceof getItemInventoryByItemId_args)
7802
        return this.equals((getItemInventoryByItemId_args)that);
7803
      return false;
7804
    }
7805
 
7806
    public boolean equals(getItemInventoryByItemId_args that) {
7807
      if (that == null)
7808
        return false;
7809
 
7810
      boolean this_present_item_id = true;
7811
      boolean that_present_item_id = true;
7812
      if (this_present_item_id || that_present_item_id) {
7813
        if (!(this_present_item_id && that_present_item_id))
7814
          return false;
7815
        if (this.item_id != that.item_id)
7816
          return false;
7817
      }
7818
 
7819
      return true;
7820
    }
7821
 
7822
    @Override
7823
    public int hashCode() {
7824
      return 0;
7825
    }
7826
 
7827
    public int compareTo(getItemInventoryByItemId_args other) {
7828
      if (!getClass().equals(other.getClass())) {
7829
        return getClass().getName().compareTo(other.getClass().getName());
7830
      }
7831
 
7832
      int lastComparison = 0;
7833
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
7834
 
7835
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
7836
      if (lastComparison != 0) {
7837
        return lastComparison;
7838
      }
7839
      if (isSetItem_id()) {
7840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
7841
        if (lastComparison != 0) {
7842
          return lastComparison;
7843
        }
7844
      }
7845
      return 0;
7846
    }
7847
 
7848
    public _Fields fieldForId(int fieldId) {
7849
      return _Fields.findByThriftId(fieldId);
7850
    }
7851
 
7852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7853
      org.apache.thrift.protocol.TField field;
7854
      iprot.readStructBegin();
7855
      while (true)
7856
      {
7857
        field = iprot.readFieldBegin();
7858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7859
          break;
7860
        }
7861
        switch (field.id) {
7862
          case 1: // ITEM_ID
7863
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7864
              this.item_id = iprot.readI64();
7865
              setItem_idIsSet(true);
7866
            } else { 
7867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7868
            }
7869
            break;
7870
          default:
7871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7872
        }
7873
        iprot.readFieldEnd();
7874
      }
7875
      iprot.readStructEnd();
7876
      validate();
7877
    }
7878
 
7879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7880
      validate();
7881
 
7882
      oprot.writeStructBegin(STRUCT_DESC);
7883
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7884
      oprot.writeI64(this.item_id);
7885
      oprot.writeFieldEnd();
7886
      oprot.writeFieldStop();
7887
      oprot.writeStructEnd();
7888
    }
7889
 
7890
    @Override
7891
    public String toString() {
7892
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
7893
      boolean first = true;
7894
 
7895
      sb.append("item_id:");
7896
      sb.append(this.item_id);
7897
      first = false;
7898
      sb.append(")");
7899
      return sb.toString();
7900
    }
7901
 
7902
    public void validate() throws org.apache.thrift.TException {
7903
      // check for required fields
7904
    }
7905
 
7906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7907
      try {
7908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7909
      } catch (org.apache.thrift.TException te) {
7910
        throw new java.io.IOException(te);
7911
      }
7912
    }
7913
 
7914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7915
      try {
7916
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7917
        __isset_bit_vector = new BitSet(1);
7918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7919
      } catch (org.apache.thrift.TException te) {
7920
        throw new java.io.IOException(te);
7921
      }
7922
    }
7923
 
7924
  }
7925
 
7926
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
7927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
7928
 
7929
    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);
7930
    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);
7931
 
7932
    private ItemInventory success; // required
7933
    private InventoryServiceException cex; // required
7934
 
7935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7937
      SUCCESS((short)0, "success"),
7938
      CEX((short)1, "cex");
7939
 
7940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7941
 
7942
      static {
7943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7944
          byName.put(field.getFieldName(), field);
7945
        }
7946
      }
7947
 
7948
      /**
7949
       * Find the _Fields constant that matches fieldId, or null if its not found.
7950
       */
7951
      public static _Fields findByThriftId(int fieldId) {
7952
        switch(fieldId) {
7953
          case 0: // SUCCESS
7954
            return SUCCESS;
7955
          case 1: // CEX
7956
            return CEX;
7957
          default:
7958
            return null;
7959
        }
7960
      }
7961
 
7962
      /**
7963
       * Find the _Fields constant that matches fieldId, throwing an exception
7964
       * if it is not found.
7965
       */
7966
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7967
        _Fields fields = findByThriftId(fieldId);
7968
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7969
        return fields;
7970
      }
7971
 
7972
      /**
7973
       * Find the _Fields constant that matches name, or null if its not found.
7974
       */
7975
      public static _Fields findByName(String name) {
7976
        return byName.get(name);
7977
      }
7978
 
7979
      private final short _thriftId;
7980
      private final String _fieldName;
7981
 
7982
      _Fields(short thriftId, String fieldName) {
7983
        _thriftId = thriftId;
7984
        _fieldName = fieldName;
7985
      }
7986
 
7987
      public short getThriftFieldId() {
7988
        return _thriftId;
7989
      }
7990
 
7991
      public String getFieldName() {
7992
        return _fieldName;
7993
      }
7994
    }
7995
 
7996
    // isset id assignments
7997
 
7998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7999
    static {
8000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8001
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8002
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
8003
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8004
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
8007
    }
8008
 
8009
    public getItemInventoryByItemId_result() {
8010
    }
8011
 
8012
    public getItemInventoryByItemId_result(
8013
      ItemInventory success,
8014
      InventoryServiceException cex)
8015
    {
8016
      this();
8017
      this.success = success;
8018
      this.cex = cex;
8019
    }
8020
 
8021
    /**
8022
     * Performs a deep copy on <i>other</i>.
8023
     */
8024
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
8025
      if (other.isSetSuccess()) {
8026
        this.success = new ItemInventory(other.success);
8027
      }
8028
      if (other.isSetCex()) {
8029
        this.cex = new InventoryServiceException(other.cex);
8030
      }
8031
    }
8032
 
8033
    public getItemInventoryByItemId_result deepCopy() {
8034
      return new getItemInventoryByItemId_result(this);
8035
    }
8036
 
8037
    @Override
8038
    public void clear() {
8039
      this.success = null;
8040
      this.cex = null;
8041
    }
8042
 
8043
    public ItemInventory getSuccess() {
8044
      return this.success;
8045
    }
8046
 
8047
    public void setSuccess(ItemInventory success) {
8048
      this.success = success;
8049
    }
8050
 
8051
    public void unsetSuccess() {
8052
      this.success = null;
8053
    }
8054
 
8055
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8056
    public boolean isSetSuccess() {
8057
      return this.success != null;
8058
    }
8059
 
8060
    public void setSuccessIsSet(boolean value) {
8061
      if (!value) {
8062
        this.success = null;
8063
      }
8064
    }
8065
 
8066
    public InventoryServiceException getCex() {
8067
      return this.cex;
8068
    }
8069
 
8070
    public void setCex(InventoryServiceException cex) {
8071
      this.cex = cex;
8072
    }
8073
 
8074
    public void unsetCex() {
8075
      this.cex = null;
8076
    }
8077
 
8078
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8079
    public boolean isSetCex() {
8080
      return this.cex != null;
8081
    }
8082
 
8083
    public void setCexIsSet(boolean value) {
8084
      if (!value) {
8085
        this.cex = null;
8086
      }
8087
    }
8088
 
8089
    public void setFieldValue(_Fields field, Object value) {
8090
      switch (field) {
8091
      case SUCCESS:
8092
        if (value == null) {
8093
          unsetSuccess();
8094
        } else {
8095
          setSuccess((ItemInventory)value);
8096
        }
8097
        break;
8098
 
8099
      case CEX:
8100
        if (value == null) {
8101
          unsetCex();
8102
        } else {
8103
          setCex((InventoryServiceException)value);
8104
        }
8105
        break;
8106
 
8107
      }
8108
    }
8109
 
8110
    public Object getFieldValue(_Fields field) {
8111
      switch (field) {
8112
      case SUCCESS:
8113
        return getSuccess();
8114
 
8115
      case CEX:
8116
        return getCex();
8117
 
8118
      }
8119
      throw new IllegalStateException();
8120
    }
8121
 
8122
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8123
    public boolean isSet(_Fields field) {
8124
      if (field == null) {
8125
        throw new IllegalArgumentException();
8126
      }
8127
 
8128
      switch (field) {
8129
      case SUCCESS:
8130
        return isSetSuccess();
8131
      case CEX:
8132
        return isSetCex();
8133
      }
8134
      throw new IllegalStateException();
8135
    }
8136
 
8137
    @Override
8138
    public boolean equals(Object that) {
8139
      if (that == null)
8140
        return false;
8141
      if (that instanceof getItemInventoryByItemId_result)
8142
        return this.equals((getItemInventoryByItemId_result)that);
8143
      return false;
8144
    }
8145
 
8146
    public boolean equals(getItemInventoryByItemId_result that) {
8147
      if (that == null)
8148
        return false;
8149
 
8150
      boolean this_present_success = true && this.isSetSuccess();
8151
      boolean that_present_success = true && that.isSetSuccess();
8152
      if (this_present_success || that_present_success) {
8153
        if (!(this_present_success && that_present_success))
8154
          return false;
8155
        if (!this.success.equals(that.success))
8156
          return false;
8157
      }
8158
 
8159
      boolean this_present_cex = true && this.isSetCex();
8160
      boolean that_present_cex = true && that.isSetCex();
8161
      if (this_present_cex || that_present_cex) {
8162
        if (!(this_present_cex && that_present_cex))
8163
          return false;
8164
        if (!this.cex.equals(that.cex))
8165
          return false;
8166
      }
8167
 
8168
      return true;
8169
    }
8170
 
8171
    @Override
8172
    public int hashCode() {
8173
      return 0;
8174
    }
8175
 
8176
    public int compareTo(getItemInventoryByItemId_result other) {
8177
      if (!getClass().equals(other.getClass())) {
8178
        return getClass().getName().compareTo(other.getClass().getName());
8179
      }
8180
 
8181
      int lastComparison = 0;
8182
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
8183
 
8184
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8185
      if (lastComparison != 0) {
8186
        return lastComparison;
8187
      }
8188
      if (isSetSuccess()) {
8189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8190
        if (lastComparison != 0) {
8191
          return lastComparison;
8192
        }
8193
      }
8194
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8195
      if (lastComparison != 0) {
8196
        return lastComparison;
8197
      }
8198
      if (isSetCex()) {
8199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8200
        if (lastComparison != 0) {
8201
          return lastComparison;
8202
        }
8203
      }
8204
      return 0;
8205
    }
8206
 
8207
    public _Fields fieldForId(int fieldId) {
8208
      return _Fields.findByThriftId(fieldId);
8209
    }
8210
 
8211
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8212
      org.apache.thrift.protocol.TField field;
8213
      iprot.readStructBegin();
8214
      while (true)
8215
      {
8216
        field = iprot.readFieldBegin();
8217
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8218
          break;
8219
        }
8220
        switch (field.id) {
8221
          case 0: // SUCCESS
8222
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8223
              this.success = new ItemInventory();
8224
              this.success.read(iprot);
8225
            } else { 
8226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8227
            }
8228
            break;
8229
          case 1: // CEX
8230
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8231
              this.cex = new InventoryServiceException();
8232
              this.cex.read(iprot);
8233
            } else { 
8234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8235
            }
8236
            break;
8237
          default:
8238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8239
        }
8240
        iprot.readFieldEnd();
8241
      }
8242
      iprot.readStructEnd();
8243
      validate();
8244
    }
8245
 
8246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8247
      oprot.writeStructBegin(STRUCT_DESC);
8248
 
8249
      if (this.isSetSuccess()) {
8250
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8251
        this.success.write(oprot);
8252
        oprot.writeFieldEnd();
8253
      } else if (this.isSetCex()) {
8254
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8255
        this.cex.write(oprot);
8256
        oprot.writeFieldEnd();
8257
      }
8258
      oprot.writeFieldStop();
8259
      oprot.writeStructEnd();
8260
    }
8261
 
8262
    @Override
8263
    public String toString() {
8264
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
8265
      boolean first = true;
8266
 
8267
      sb.append("success:");
8268
      if (this.success == null) {
8269
        sb.append("null");
8270
      } else {
8271
        sb.append(this.success);
8272
      }
8273
      first = false;
8274
      if (!first) sb.append(", ");
8275
      sb.append("cex:");
8276
      if (this.cex == null) {
8277
        sb.append("null");
8278
      } else {
8279
        sb.append(this.cex);
8280
      }
8281
      first = false;
8282
      sb.append(")");
8283
      return sb.toString();
8284
    }
8285
 
8286
    public void validate() throws org.apache.thrift.TException {
8287
      // check for required fields
8288
    }
8289
 
8290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8291
      try {
8292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8293
      } catch (org.apache.thrift.TException te) {
8294
        throw new java.io.IOException(te);
8295
      }
8296
    }
8297
 
8298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8299
      try {
8300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8301
      } catch (org.apache.thrift.TException te) {
8302
        throw new java.io.IOException(te);
8303
      }
8304
    }
8305
 
8306
  }
8307
 
8308
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
8310
 
8311
    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);
8312
    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);
8313
 
8314
    private long warehouse_id; // required
8315
    private long item_id; // required
8316
 
8317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8319
      WAREHOUSE_ID((short)1, "warehouse_id"),
8320
      ITEM_ID((short)2, "item_id");
8321
 
8322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8323
 
8324
      static {
8325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8326
          byName.put(field.getFieldName(), field);
8327
        }
8328
      }
8329
 
8330
      /**
8331
       * Find the _Fields constant that matches fieldId, or null if its not found.
8332
       */
8333
      public static _Fields findByThriftId(int fieldId) {
8334
        switch(fieldId) {
8335
          case 1: // WAREHOUSE_ID
8336
            return WAREHOUSE_ID;
8337
          case 2: // ITEM_ID
8338
            return ITEM_ID;
8339
          default:
8340
            return null;
8341
        }
8342
      }
8343
 
8344
      /**
8345
       * Find the _Fields constant that matches fieldId, throwing an exception
8346
       * if it is not found.
8347
       */
8348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8349
        _Fields fields = findByThriftId(fieldId);
8350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8351
        return fields;
8352
      }
8353
 
8354
      /**
8355
       * Find the _Fields constant that matches name, or null if its not found.
8356
       */
8357
      public static _Fields findByName(String name) {
8358
        return byName.get(name);
8359
      }
8360
 
8361
      private final short _thriftId;
8362
      private final String _fieldName;
8363
 
8364
      _Fields(short thriftId, String fieldName) {
8365
        _thriftId = thriftId;
8366
        _fieldName = fieldName;
8367
      }
8368
 
8369
      public short getThriftFieldId() {
8370
        return _thriftId;
8371
      }
8372
 
8373
      public String getFieldName() {
8374
        return _fieldName;
8375
      }
8376
    }
8377
 
8378
    // isset id assignments
8379
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8380
    private static final int __ITEM_ID_ISSET_ID = 1;
8381
    private BitSet __isset_bit_vector = new BitSet(2);
8382
 
8383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8384
    static {
8385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8386
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8388
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
8392
    }
8393
 
8394
    public getItemAvailibilityAtWarehouse_args() {
8395
    }
8396
 
8397
    public getItemAvailibilityAtWarehouse_args(
8398
      long warehouse_id,
8399
      long item_id)
8400
    {
8401
      this();
8402
      this.warehouse_id = warehouse_id;
8403
      setWarehouse_idIsSet(true);
8404
      this.item_id = item_id;
8405
      setItem_idIsSet(true);
8406
    }
8407
 
8408
    /**
8409
     * Performs a deep copy on <i>other</i>.
8410
     */
8411
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
8412
      __isset_bit_vector.clear();
8413
      __isset_bit_vector.or(other.__isset_bit_vector);
8414
      this.warehouse_id = other.warehouse_id;
8415
      this.item_id = other.item_id;
8416
    }
8417
 
8418
    public getItemAvailibilityAtWarehouse_args deepCopy() {
8419
      return new getItemAvailibilityAtWarehouse_args(this);
8420
    }
8421
 
8422
    @Override
8423
    public void clear() {
8424
      setWarehouse_idIsSet(false);
8425
      this.warehouse_id = 0;
8426
      setItem_idIsSet(false);
8427
      this.item_id = 0;
8428
    }
8429
 
8430
    public long getWarehouse_id() {
8431
      return this.warehouse_id;
8432
    }
8433
 
8434
    public void setWarehouse_id(long warehouse_id) {
8435
      this.warehouse_id = warehouse_id;
8436
      setWarehouse_idIsSet(true);
8437
    }
8438
 
8439
    public void unsetWarehouse_id() {
8440
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8441
    }
8442
 
8443
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8444
    public boolean isSetWarehouse_id() {
8445
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8446
    }
8447
 
8448
    public void setWarehouse_idIsSet(boolean value) {
8449
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8450
    }
8451
 
8452
    public long getItem_id() {
8453
      return this.item_id;
8454
    }
8455
 
8456
    public void setItem_id(long item_id) {
8457
      this.item_id = item_id;
8458
      setItem_idIsSet(true);
8459
    }
8460
 
8461
    public void unsetItem_id() {
8462
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
8463
    }
8464
 
8465
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
8466
    public boolean isSetItem_id() {
8467
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
8468
    }
8469
 
8470
    public void setItem_idIsSet(boolean value) {
8471
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
8472
    }
8473
 
8474
    public void setFieldValue(_Fields field, Object value) {
8475
      switch (field) {
8476
      case WAREHOUSE_ID:
8477
        if (value == null) {
8478
          unsetWarehouse_id();
8479
        } else {
8480
          setWarehouse_id((Long)value);
8481
        }
8482
        break;
8483
 
8484
      case ITEM_ID:
8485
        if (value == null) {
8486
          unsetItem_id();
8487
        } else {
8488
          setItem_id((Long)value);
8489
        }
8490
        break;
8491
 
8492
      }
8493
    }
8494
 
8495
    public Object getFieldValue(_Fields field) {
8496
      switch (field) {
8497
      case WAREHOUSE_ID:
8498
        return Long.valueOf(getWarehouse_id());
8499
 
8500
      case ITEM_ID:
8501
        return Long.valueOf(getItem_id());
8502
 
8503
      }
8504
      throw new IllegalStateException();
8505
    }
8506
 
8507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8508
    public boolean isSet(_Fields field) {
8509
      if (field == null) {
8510
        throw new IllegalArgumentException();
8511
      }
8512
 
8513
      switch (field) {
8514
      case WAREHOUSE_ID:
8515
        return isSetWarehouse_id();
8516
      case ITEM_ID:
8517
        return isSetItem_id();
8518
      }
8519
      throw new IllegalStateException();
8520
    }
8521
 
8522
    @Override
8523
    public boolean equals(Object that) {
8524
      if (that == null)
8525
        return false;
8526
      if (that instanceof getItemAvailibilityAtWarehouse_args)
8527
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
8528
      return false;
8529
    }
8530
 
8531
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
8532
      if (that == null)
8533
        return false;
8534
 
8535
      boolean this_present_warehouse_id = true;
8536
      boolean that_present_warehouse_id = true;
8537
      if (this_present_warehouse_id || that_present_warehouse_id) {
8538
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8539
          return false;
8540
        if (this.warehouse_id != that.warehouse_id)
8541
          return false;
8542
      }
8543
 
8544
      boolean this_present_item_id = true;
8545
      boolean that_present_item_id = true;
8546
      if (this_present_item_id || that_present_item_id) {
8547
        if (!(this_present_item_id && that_present_item_id))
8548
          return false;
8549
        if (this.item_id != that.item_id)
8550
          return false;
8551
      }
8552
 
8553
      return true;
8554
    }
8555
 
8556
    @Override
8557
    public int hashCode() {
8558
      return 0;
8559
    }
8560
 
8561
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
8562
      if (!getClass().equals(other.getClass())) {
8563
        return getClass().getName().compareTo(other.getClass().getName());
8564
      }
8565
 
8566
      int lastComparison = 0;
8567
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
8568
 
8569
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8570
      if (lastComparison != 0) {
8571
        return lastComparison;
8572
      }
8573
      if (isSetWarehouse_id()) {
8574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8575
        if (lastComparison != 0) {
8576
          return lastComparison;
8577
        }
8578
      }
8579
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
8580
      if (lastComparison != 0) {
8581
        return lastComparison;
8582
      }
8583
      if (isSetItem_id()) {
8584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
8585
        if (lastComparison != 0) {
8586
          return lastComparison;
8587
        }
8588
      }
8589
      return 0;
8590
    }
8591
 
8592
    public _Fields fieldForId(int fieldId) {
8593
      return _Fields.findByThriftId(fieldId);
8594
    }
8595
 
8596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8597
      org.apache.thrift.protocol.TField field;
8598
      iprot.readStructBegin();
8599
      while (true)
8600
      {
8601
        field = iprot.readFieldBegin();
8602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8603
          break;
8604
        }
8605
        switch (field.id) {
8606
          case 1: // WAREHOUSE_ID
8607
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8608
              this.warehouse_id = iprot.readI64();
8609
              setWarehouse_idIsSet(true);
8610
            } else { 
8611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8612
            }
8613
            break;
8614
          case 2: // ITEM_ID
8615
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8616
              this.item_id = iprot.readI64();
8617
              setItem_idIsSet(true);
8618
            } else { 
8619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8620
            }
8621
            break;
8622
          default:
8623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8624
        }
8625
        iprot.readFieldEnd();
8626
      }
8627
      iprot.readStructEnd();
8628
      validate();
8629
    }
8630
 
8631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8632
      validate();
8633
 
8634
      oprot.writeStructBegin(STRUCT_DESC);
8635
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8636
      oprot.writeI64(this.warehouse_id);
8637
      oprot.writeFieldEnd();
8638
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8639
      oprot.writeI64(this.item_id);
8640
      oprot.writeFieldEnd();
8641
      oprot.writeFieldStop();
8642
      oprot.writeStructEnd();
8643
    }
8644
 
8645
    @Override
8646
    public String toString() {
8647
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
8648
      boolean first = true;
8649
 
8650
      sb.append("warehouse_id:");
8651
      sb.append(this.warehouse_id);
8652
      first = false;
8653
      if (!first) sb.append(", ");
8654
      sb.append("item_id:");
8655
      sb.append(this.item_id);
8656
      first = false;
8657
      sb.append(")");
8658
      return sb.toString();
8659
    }
8660
 
8661
    public void validate() throws org.apache.thrift.TException {
8662
      // check for required fields
8663
    }
8664
 
8665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8666
      try {
8667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8668
      } catch (org.apache.thrift.TException te) {
8669
        throw new java.io.IOException(te);
8670
      }
8671
    }
8672
 
8673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8674
      try {
8675
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8676
        __isset_bit_vector = new BitSet(1);
8677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8678
      } catch (org.apache.thrift.TException te) {
8679
        throw new java.io.IOException(te);
8680
      }
8681
    }
8682
 
8683
  }
8684
 
8685
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
8686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
8687
 
8688
    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);
8689
    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);
8690
 
8691
    private long success; // required
8692
    private InventoryServiceException cex; // required
8693
 
8694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8696
      SUCCESS((short)0, "success"),
8697
      CEX((short)1, "cex");
8698
 
8699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8700
 
8701
      static {
8702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8703
          byName.put(field.getFieldName(), field);
8704
        }
8705
      }
8706
 
8707
      /**
8708
       * Find the _Fields constant that matches fieldId, or null if its not found.
8709
       */
8710
      public static _Fields findByThriftId(int fieldId) {
8711
        switch(fieldId) {
8712
          case 0: // SUCCESS
8713
            return SUCCESS;
8714
          case 1: // CEX
8715
            return CEX;
8716
          default:
8717
            return null;
8718
        }
8719
      }
8720
 
8721
      /**
8722
       * Find the _Fields constant that matches fieldId, throwing an exception
8723
       * if it is not found.
8724
       */
8725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8726
        _Fields fields = findByThriftId(fieldId);
8727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8728
        return fields;
8729
      }
8730
 
8731
      /**
8732
       * Find the _Fields constant that matches name, or null if its not found.
8733
       */
8734
      public static _Fields findByName(String name) {
8735
        return byName.get(name);
8736
      }
8737
 
8738
      private final short _thriftId;
8739
      private final String _fieldName;
8740
 
8741
      _Fields(short thriftId, String fieldName) {
8742
        _thriftId = thriftId;
8743
        _fieldName = fieldName;
8744
      }
8745
 
8746
      public short getThriftFieldId() {
8747
        return _thriftId;
8748
      }
8749
 
8750
      public String getFieldName() {
8751
        return _fieldName;
8752
      }
8753
    }
8754
 
8755
    // isset id assignments
8756
    private static final int __SUCCESS_ISSET_ID = 0;
8757
    private BitSet __isset_bit_vector = new BitSet(1);
8758
 
8759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8760
    static {
8761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8762
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8764
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
8768
    }
8769
 
8770
    public getItemAvailibilityAtWarehouse_result() {
8771
    }
8772
 
8773
    public getItemAvailibilityAtWarehouse_result(
8774
      long success,
8775
      InventoryServiceException cex)
8776
    {
8777
      this();
8778
      this.success = success;
8779
      setSuccessIsSet(true);
8780
      this.cex = cex;
8781
    }
8782
 
8783
    /**
8784
     * Performs a deep copy on <i>other</i>.
8785
     */
8786
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
8787
      __isset_bit_vector.clear();
8788
      __isset_bit_vector.or(other.__isset_bit_vector);
8789
      this.success = other.success;
8790
      if (other.isSetCex()) {
8791
        this.cex = new InventoryServiceException(other.cex);
8792
      }
8793
    }
8794
 
8795
    public getItemAvailibilityAtWarehouse_result deepCopy() {
8796
      return new getItemAvailibilityAtWarehouse_result(this);
8797
    }
8798
 
8799
    @Override
8800
    public void clear() {
8801
      setSuccessIsSet(false);
8802
      this.success = 0;
8803
      this.cex = null;
8804
    }
8805
 
8806
    public long getSuccess() {
8807
      return this.success;
8808
    }
8809
 
8810
    public void setSuccess(long success) {
8811
      this.success = success;
8812
      setSuccessIsSet(true);
8813
    }
8814
 
8815
    public void unsetSuccess() {
8816
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8817
    }
8818
 
8819
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8820
    public boolean isSetSuccess() {
8821
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8822
    }
8823
 
8824
    public void setSuccessIsSet(boolean value) {
8825
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8826
    }
8827
 
8828
    public InventoryServiceException getCex() {
8829
      return this.cex;
8830
    }
8831
 
8832
    public void setCex(InventoryServiceException cex) {
8833
      this.cex = cex;
8834
    }
8835
 
8836
    public void unsetCex() {
8837
      this.cex = null;
8838
    }
8839
 
8840
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8841
    public boolean isSetCex() {
8842
      return this.cex != null;
8843
    }
8844
 
8845
    public void setCexIsSet(boolean value) {
8846
      if (!value) {
8847
        this.cex = null;
8848
      }
8849
    }
8850
 
8851
    public void setFieldValue(_Fields field, Object value) {
8852
      switch (field) {
8853
      case SUCCESS:
8854
        if (value == null) {
8855
          unsetSuccess();
8856
        } else {
8857
          setSuccess((Long)value);
8858
        }
8859
        break;
8860
 
8861
      case CEX:
8862
        if (value == null) {
8863
          unsetCex();
8864
        } else {
8865
          setCex((InventoryServiceException)value);
8866
        }
8867
        break;
8868
 
8869
      }
8870
    }
8871
 
8872
    public Object getFieldValue(_Fields field) {
8873
      switch (field) {
8874
      case SUCCESS:
8875
        return Long.valueOf(getSuccess());
8876
 
8877
      case CEX:
8878
        return getCex();
8879
 
8880
      }
8881
      throw new IllegalStateException();
8882
    }
8883
 
8884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8885
    public boolean isSet(_Fields field) {
8886
      if (field == null) {
8887
        throw new IllegalArgumentException();
8888
      }
8889
 
8890
      switch (field) {
8891
      case SUCCESS:
8892
        return isSetSuccess();
8893
      case CEX:
8894
        return isSetCex();
8895
      }
8896
      throw new IllegalStateException();
8897
    }
8898
 
8899
    @Override
8900
    public boolean equals(Object that) {
8901
      if (that == null)
8902
        return false;
8903
      if (that instanceof getItemAvailibilityAtWarehouse_result)
8904
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
8905
      return false;
8906
    }
8907
 
8908
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
8909
      if (that == null)
8910
        return false;
8911
 
8912
      boolean this_present_success = true;
8913
      boolean that_present_success = true;
8914
      if (this_present_success || that_present_success) {
8915
        if (!(this_present_success && that_present_success))
8916
          return false;
8917
        if (this.success != that.success)
8918
          return false;
8919
      }
8920
 
8921
      boolean this_present_cex = true && this.isSetCex();
8922
      boolean that_present_cex = true && that.isSetCex();
8923
      if (this_present_cex || that_present_cex) {
8924
        if (!(this_present_cex && that_present_cex))
8925
          return false;
8926
        if (!this.cex.equals(that.cex))
8927
          return false;
8928
      }
8929
 
8930
      return true;
8931
    }
8932
 
8933
    @Override
8934
    public int hashCode() {
8935
      return 0;
8936
    }
8937
 
8938
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
8939
      if (!getClass().equals(other.getClass())) {
8940
        return getClass().getName().compareTo(other.getClass().getName());
8941
      }
8942
 
8943
      int lastComparison = 0;
8944
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
8945
 
8946
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8947
      if (lastComparison != 0) {
8948
        return lastComparison;
8949
      }
8950
      if (isSetSuccess()) {
8951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8952
        if (lastComparison != 0) {
8953
          return lastComparison;
8954
        }
8955
      }
8956
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8957
      if (lastComparison != 0) {
8958
        return lastComparison;
8959
      }
8960
      if (isSetCex()) {
8961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8962
        if (lastComparison != 0) {
8963
          return lastComparison;
8964
        }
8965
      }
8966
      return 0;
8967
    }
8968
 
8969
    public _Fields fieldForId(int fieldId) {
8970
      return _Fields.findByThriftId(fieldId);
8971
    }
8972
 
8973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8974
      org.apache.thrift.protocol.TField field;
8975
      iprot.readStructBegin();
8976
      while (true)
8977
      {
8978
        field = iprot.readFieldBegin();
8979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8980
          break;
8981
        }
8982
        switch (field.id) {
8983
          case 0: // SUCCESS
8984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8985
              this.success = iprot.readI64();
8986
              setSuccessIsSet(true);
8987
            } else { 
8988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8989
            }
8990
            break;
8991
          case 1: // CEX
8992
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8993
              this.cex = new InventoryServiceException();
8994
              this.cex.read(iprot);
8995
            } else { 
8996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8997
            }
8998
            break;
8999
          default:
9000
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9001
        }
9002
        iprot.readFieldEnd();
9003
      }
9004
      iprot.readStructEnd();
9005
      validate();
9006
    }
9007
 
9008
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9009
      oprot.writeStructBegin(STRUCT_DESC);
9010
 
9011
      if (this.isSetSuccess()) {
9012
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9013
        oprot.writeI64(this.success);
9014
        oprot.writeFieldEnd();
9015
      } else if (this.isSetCex()) {
9016
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9017
        this.cex.write(oprot);
9018
        oprot.writeFieldEnd();
9019
      }
9020
      oprot.writeFieldStop();
9021
      oprot.writeStructEnd();
9022
    }
9023
 
9024
    @Override
9025
    public String toString() {
9026
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
9027
      boolean first = true;
9028
 
9029
      sb.append("success:");
9030
      sb.append(this.success);
9031
      first = false;
9032
      if (!first) sb.append(", ");
9033
      sb.append("cex:");
9034
      if (this.cex == null) {
9035
        sb.append("null");
9036
      } else {
9037
        sb.append(this.cex);
9038
      }
9039
      first = false;
9040
      sb.append(")");
9041
      return sb.toString();
9042
    }
9043
 
9044
    public void validate() throws org.apache.thrift.TException {
9045
      // check for required fields
9046
    }
9047
 
9048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9049
      try {
9050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9051
      } catch (org.apache.thrift.TException te) {
9052
        throw new java.io.IOException(te);
9053
      }
9054
    }
9055
 
9056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9057
      try {
9058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9059
      } catch (org.apache.thrift.TException te) {
9060
        throw new java.io.IOException(te);
9061
      }
9062
    }
9063
 
9064
  }
9065
 
9066
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
9067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
9068
 
9069
    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 9070
    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 9071
 
9072
    private long itemId; // required
5978 rajveer 9073
    private long sourceId; // required
5945 mandeep.dh 9074
 
9075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 9077
      ITEM_ID((short)1, "itemId"),
9078
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 9079
 
9080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9081
 
9082
      static {
9083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9084
          byName.put(field.getFieldName(), field);
9085
        }
9086
      }
9087
 
9088
      /**
9089
       * Find the _Fields constant that matches fieldId, or null if its not found.
9090
       */
9091
      public static _Fields findByThriftId(int fieldId) {
9092
        switch(fieldId) {
9093
          case 1: // ITEM_ID
9094
            return ITEM_ID;
5978 rajveer 9095
          case 2: // SOURCE_ID
9096
            return SOURCE_ID;
5945 mandeep.dh 9097
          default:
9098
            return null;
9099
        }
9100
      }
9101
 
9102
      /**
9103
       * Find the _Fields constant that matches fieldId, throwing an exception
9104
       * if it is not found.
9105
       */
9106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9107
        _Fields fields = findByThriftId(fieldId);
9108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9109
        return fields;
9110
      }
9111
 
9112
      /**
9113
       * Find the _Fields constant that matches name, or null if its not found.
9114
       */
9115
      public static _Fields findByName(String name) {
9116
        return byName.get(name);
9117
      }
9118
 
9119
      private final short _thriftId;
9120
      private final String _fieldName;
9121
 
9122
      _Fields(short thriftId, String fieldName) {
9123
        _thriftId = thriftId;
9124
        _fieldName = fieldName;
9125
      }
9126
 
9127
      public short getThriftFieldId() {
9128
        return _thriftId;
9129
      }
9130
 
9131
      public String getFieldName() {
9132
        return _fieldName;
9133
      }
9134
    }
9135
 
9136
    // isset id assignments
9137
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 9138
    private static final int __SOURCEID_ISSET_ID = 1;
9139
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 9140
 
9141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9142
    static {
9143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9144
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 9146
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 9148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
9150
    }
9151
 
9152
    public getItemAvailabilityAtLocation_args() {
9153
    }
9154
 
9155
    public getItemAvailabilityAtLocation_args(
5978 rajveer 9156
      long itemId,
9157
      long sourceId)
5945 mandeep.dh 9158
    {
9159
      this();
9160
      this.itemId = itemId;
9161
      setItemIdIsSet(true);
5978 rajveer 9162
      this.sourceId = sourceId;
9163
      setSourceIdIsSet(true);
5945 mandeep.dh 9164
    }
9165
 
9166
    /**
9167
     * Performs a deep copy on <i>other</i>.
9168
     */
9169
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
9170
      __isset_bit_vector.clear();
9171
      __isset_bit_vector.or(other.__isset_bit_vector);
9172
      this.itemId = other.itemId;
5978 rajveer 9173
      this.sourceId = other.sourceId;
5945 mandeep.dh 9174
    }
9175
 
9176
    public getItemAvailabilityAtLocation_args deepCopy() {
9177
      return new getItemAvailabilityAtLocation_args(this);
9178
    }
9179
 
9180
    @Override
9181
    public void clear() {
9182
      setItemIdIsSet(false);
9183
      this.itemId = 0;
5978 rajveer 9184
      setSourceIdIsSet(false);
9185
      this.sourceId = 0;
5945 mandeep.dh 9186
    }
9187
 
9188
    public long getItemId() {
9189
      return this.itemId;
9190
    }
9191
 
9192
    public void setItemId(long itemId) {
9193
      this.itemId = itemId;
9194
      setItemIdIsSet(true);
9195
    }
9196
 
9197
    public void unsetItemId() {
9198
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9199
    }
9200
 
9201
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9202
    public boolean isSetItemId() {
9203
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9204
    }
9205
 
9206
    public void setItemIdIsSet(boolean value) {
9207
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9208
    }
9209
 
5978 rajveer 9210
    public long getSourceId() {
9211
      return this.sourceId;
9212
    }
9213
 
9214
    public void setSourceId(long sourceId) {
9215
      this.sourceId = sourceId;
9216
      setSourceIdIsSet(true);
9217
    }
9218
 
9219
    public void unsetSourceId() {
9220
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
9221
    }
9222
 
9223
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
9224
    public boolean isSetSourceId() {
9225
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
9226
    }
9227
 
9228
    public void setSourceIdIsSet(boolean value) {
9229
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
9230
    }
9231
 
5945 mandeep.dh 9232
    public void setFieldValue(_Fields field, Object value) {
9233
      switch (field) {
9234
      case ITEM_ID:
9235
        if (value == null) {
9236
          unsetItemId();
9237
        } else {
9238
          setItemId((Long)value);
9239
        }
9240
        break;
9241
 
5978 rajveer 9242
      case SOURCE_ID:
9243
        if (value == null) {
9244
          unsetSourceId();
9245
        } else {
9246
          setSourceId((Long)value);
9247
        }
9248
        break;
9249
 
5945 mandeep.dh 9250
      }
9251
    }
9252
 
9253
    public Object getFieldValue(_Fields field) {
9254
      switch (field) {
9255
      case ITEM_ID:
9256
        return Long.valueOf(getItemId());
9257
 
5978 rajveer 9258
      case SOURCE_ID:
9259
        return Long.valueOf(getSourceId());
9260
 
5945 mandeep.dh 9261
      }
9262
      throw new IllegalStateException();
9263
    }
9264
 
9265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9266
    public boolean isSet(_Fields field) {
9267
      if (field == null) {
9268
        throw new IllegalArgumentException();
9269
      }
9270
 
9271
      switch (field) {
9272
      case ITEM_ID:
9273
        return isSetItemId();
5978 rajveer 9274
      case SOURCE_ID:
9275
        return isSetSourceId();
5945 mandeep.dh 9276
      }
9277
      throw new IllegalStateException();
9278
    }
9279
 
9280
    @Override
9281
    public boolean equals(Object that) {
9282
      if (that == null)
9283
        return false;
9284
      if (that instanceof getItemAvailabilityAtLocation_args)
9285
        return this.equals((getItemAvailabilityAtLocation_args)that);
9286
      return false;
9287
    }
9288
 
9289
    public boolean equals(getItemAvailabilityAtLocation_args that) {
9290
      if (that == null)
9291
        return false;
9292
 
9293
      boolean this_present_itemId = true;
9294
      boolean that_present_itemId = true;
9295
      if (this_present_itemId || that_present_itemId) {
9296
        if (!(this_present_itemId && that_present_itemId))
9297
          return false;
9298
        if (this.itemId != that.itemId)
9299
          return false;
9300
      }
9301
 
5978 rajveer 9302
      boolean this_present_sourceId = true;
9303
      boolean that_present_sourceId = true;
9304
      if (this_present_sourceId || that_present_sourceId) {
9305
        if (!(this_present_sourceId && that_present_sourceId))
9306
          return false;
9307
        if (this.sourceId != that.sourceId)
9308
          return false;
9309
      }
9310
 
5945 mandeep.dh 9311
      return true;
9312
    }
9313
 
9314
    @Override
9315
    public int hashCode() {
9316
      return 0;
9317
    }
9318
 
9319
    public int compareTo(getItemAvailabilityAtLocation_args other) {
9320
      if (!getClass().equals(other.getClass())) {
9321
        return getClass().getName().compareTo(other.getClass().getName());
9322
      }
9323
 
9324
      int lastComparison = 0;
9325
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
9326
 
9327
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9328
      if (lastComparison != 0) {
9329
        return lastComparison;
9330
      }
9331
      if (isSetItemId()) {
9332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9333
        if (lastComparison != 0) {
9334
          return lastComparison;
9335
        }
9336
      }
5978 rajveer 9337
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
9338
      if (lastComparison != 0) {
9339
        return lastComparison;
9340
      }
9341
      if (isSetSourceId()) {
9342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
9343
        if (lastComparison != 0) {
9344
          return lastComparison;
9345
        }
9346
      }
5945 mandeep.dh 9347
      return 0;
9348
    }
9349
 
9350
    public _Fields fieldForId(int fieldId) {
9351
      return _Fields.findByThriftId(fieldId);
9352
    }
9353
 
9354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9355
      org.apache.thrift.protocol.TField field;
9356
      iprot.readStructBegin();
9357
      while (true)
9358
      {
9359
        field = iprot.readFieldBegin();
9360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9361
          break;
9362
        }
9363
        switch (field.id) {
9364
          case 1: // ITEM_ID
9365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9366
              this.itemId = iprot.readI64();
9367
              setItemIdIsSet(true);
9368
            } else { 
9369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9370
            }
9371
            break;
5978 rajveer 9372
          case 2: // SOURCE_ID
9373
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9374
              this.sourceId = iprot.readI64();
9375
              setSourceIdIsSet(true);
9376
            } else { 
9377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9378
            }
9379
            break;
5945 mandeep.dh 9380
          default:
9381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9382
        }
9383
        iprot.readFieldEnd();
9384
      }
9385
      iprot.readStructEnd();
9386
      validate();
9387
    }
9388
 
9389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9390
      validate();
9391
 
9392
      oprot.writeStructBegin(STRUCT_DESC);
9393
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9394
      oprot.writeI64(this.itemId);
9395
      oprot.writeFieldEnd();
5978 rajveer 9396
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
9397
      oprot.writeI64(this.sourceId);
9398
      oprot.writeFieldEnd();
5945 mandeep.dh 9399
      oprot.writeFieldStop();
9400
      oprot.writeStructEnd();
9401
    }
9402
 
9403
    @Override
9404
    public String toString() {
9405
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
9406
      boolean first = true;
9407
 
9408
      sb.append("itemId:");
9409
      sb.append(this.itemId);
9410
      first = false;
5978 rajveer 9411
      if (!first) sb.append(", ");
9412
      sb.append("sourceId:");
9413
      sb.append(this.sourceId);
9414
      first = false;
5945 mandeep.dh 9415
      sb.append(")");
9416
      return sb.toString();
9417
    }
9418
 
9419
    public void validate() throws org.apache.thrift.TException {
9420
      // check for required fields
9421
    }
9422
 
9423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9424
      try {
9425
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9426
      } catch (org.apache.thrift.TException te) {
9427
        throw new java.io.IOException(te);
9428
      }
9429
    }
9430
 
9431
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9432
      try {
9433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9434
      } catch (org.apache.thrift.TException te) {
9435
        throw new java.io.IOException(te);
9436
      }
9437
    }
9438
 
9439
  }
9440
 
9441
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
9442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
9443
 
9444
    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);
9445
    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);
9446
 
9447
    private List<Long> success; // required
9448
    private InventoryServiceException isex; // required
9449
 
9450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9452
      SUCCESS((short)0, "success"),
9453
      ISEX((short)1, "isex");
9454
 
9455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9456
 
9457
      static {
9458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9459
          byName.put(field.getFieldName(), field);
9460
        }
9461
      }
9462
 
9463
      /**
9464
       * Find the _Fields constant that matches fieldId, or null if its not found.
9465
       */
9466
      public static _Fields findByThriftId(int fieldId) {
9467
        switch(fieldId) {
9468
          case 0: // SUCCESS
9469
            return SUCCESS;
9470
          case 1: // ISEX
9471
            return ISEX;
9472
          default:
9473
            return null;
9474
        }
9475
      }
9476
 
9477
      /**
9478
       * Find the _Fields constant that matches fieldId, throwing an exception
9479
       * if it is not found.
9480
       */
9481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9482
        _Fields fields = findByThriftId(fieldId);
9483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9484
        return fields;
9485
      }
9486
 
9487
      /**
9488
       * Find the _Fields constant that matches name, or null if its not found.
9489
       */
9490
      public static _Fields findByName(String name) {
9491
        return byName.get(name);
9492
      }
9493
 
9494
      private final short _thriftId;
9495
      private final String _fieldName;
9496
 
9497
      _Fields(short thriftId, String fieldName) {
9498
        _thriftId = thriftId;
9499
        _fieldName = fieldName;
9500
      }
9501
 
9502
      public short getThriftFieldId() {
9503
        return _thriftId;
9504
      }
9505
 
9506
      public String getFieldName() {
9507
        return _fieldName;
9508
      }
9509
    }
9510
 
9511
    // isset id assignments
9512
 
9513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9514
    static {
9515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9516
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9517
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9518
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9519
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9521
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9522
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
9523
    }
9524
 
9525
    public getItemAvailabilityAtLocation_result() {
9526
    }
9527
 
9528
    public getItemAvailabilityAtLocation_result(
9529
      List<Long> success,
9530
      InventoryServiceException isex)
9531
    {
9532
      this();
9533
      this.success = success;
9534
      this.isex = isex;
9535
    }
9536
 
9537
    /**
9538
     * Performs a deep copy on <i>other</i>.
9539
     */
9540
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
9541
      if (other.isSetSuccess()) {
9542
        List<Long> __this__success = new ArrayList<Long>();
9543
        for (Long other_element : other.success) {
9544
          __this__success.add(other_element);
9545
        }
9546
        this.success = __this__success;
9547
      }
9548
      if (other.isSetIsex()) {
9549
        this.isex = new InventoryServiceException(other.isex);
9550
      }
9551
    }
9552
 
9553
    public getItemAvailabilityAtLocation_result deepCopy() {
9554
      return new getItemAvailabilityAtLocation_result(this);
9555
    }
9556
 
9557
    @Override
9558
    public void clear() {
9559
      this.success = null;
9560
      this.isex = null;
9561
    }
9562
 
9563
    public int getSuccessSize() {
9564
      return (this.success == null) ? 0 : this.success.size();
9565
    }
9566
 
9567
    public java.util.Iterator<Long> getSuccessIterator() {
9568
      return (this.success == null) ? null : this.success.iterator();
9569
    }
9570
 
9571
    public void addToSuccess(long elem) {
9572
      if (this.success == null) {
9573
        this.success = new ArrayList<Long>();
9574
      }
9575
      this.success.add(elem);
9576
    }
9577
 
9578
    public List<Long> getSuccess() {
9579
      return this.success;
9580
    }
9581
 
9582
    public void setSuccess(List<Long> success) {
9583
      this.success = success;
9584
    }
9585
 
9586
    public void unsetSuccess() {
9587
      this.success = null;
9588
    }
9589
 
9590
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9591
    public boolean isSetSuccess() {
9592
      return this.success != null;
9593
    }
9594
 
9595
    public void setSuccessIsSet(boolean value) {
9596
      if (!value) {
9597
        this.success = null;
9598
      }
9599
    }
9600
 
9601
    public InventoryServiceException getIsex() {
9602
      return this.isex;
9603
    }
9604
 
9605
    public void setIsex(InventoryServiceException isex) {
9606
      this.isex = isex;
9607
    }
9608
 
9609
    public void unsetIsex() {
9610
      this.isex = null;
9611
    }
9612
 
9613
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
9614
    public boolean isSetIsex() {
9615
      return this.isex != null;
9616
    }
9617
 
9618
    public void setIsexIsSet(boolean value) {
9619
      if (!value) {
9620
        this.isex = null;
9621
      }
9622
    }
9623
 
9624
    public void setFieldValue(_Fields field, Object value) {
9625
      switch (field) {
9626
      case SUCCESS:
9627
        if (value == null) {
9628
          unsetSuccess();
9629
        } else {
9630
          setSuccess((List<Long>)value);
9631
        }
9632
        break;
9633
 
9634
      case ISEX:
9635
        if (value == null) {
9636
          unsetIsex();
9637
        } else {
9638
          setIsex((InventoryServiceException)value);
9639
        }
9640
        break;
9641
 
9642
      }
9643
    }
9644
 
9645
    public Object getFieldValue(_Fields field) {
9646
      switch (field) {
9647
      case SUCCESS:
9648
        return getSuccess();
9649
 
9650
      case ISEX:
9651
        return getIsex();
9652
 
9653
      }
9654
      throw new IllegalStateException();
9655
    }
9656
 
9657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9658
    public boolean isSet(_Fields field) {
9659
      if (field == null) {
9660
        throw new IllegalArgumentException();
9661
      }
9662
 
9663
      switch (field) {
9664
      case SUCCESS:
9665
        return isSetSuccess();
9666
      case ISEX:
9667
        return isSetIsex();
9668
      }
9669
      throw new IllegalStateException();
9670
    }
9671
 
9672
    @Override
9673
    public boolean equals(Object that) {
9674
      if (that == null)
9675
        return false;
9676
      if (that instanceof getItemAvailabilityAtLocation_result)
9677
        return this.equals((getItemAvailabilityAtLocation_result)that);
9678
      return false;
9679
    }
9680
 
9681
    public boolean equals(getItemAvailabilityAtLocation_result that) {
9682
      if (that == null)
9683
        return false;
9684
 
9685
      boolean this_present_success = true && this.isSetSuccess();
9686
      boolean that_present_success = true && that.isSetSuccess();
9687
      if (this_present_success || that_present_success) {
9688
        if (!(this_present_success && that_present_success))
9689
          return false;
9690
        if (!this.success.equals(that.success))
9691
          return false;
9692
      }
9693
 
9694
      boolean this_present_isex = true && this.isSetIsex();
9695
      boolean that_present_isex = true && that.isSetIsex();
9696
      if (this_present_isex || that_present_isex) {
9697
        if (!(this_present_isex && that_present_isex))
9698
          return false;
9699
        if (!this.isex.equals(that.isex))
9700
          return false;
9701
      }
9702
 
9703
      return true;
9704
    }
9705
 
9706
    @Override
9707
    public int hashCode() {
9708
      return 0;
9709
    }
9710
 
9711
    public int compareTo(getItemAvailabilityAtLocation_result other) {
9712
      if (!getClass().equals(other.getClass())) {
9713
        return getClass().getName().compareTo(other.getClass().getName());
9714
      }
9715
 
9716
      int lastComparison = 0;
9717
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
9718
 
9719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9720
      if (lastComparison != 0) {
9721
        return lastComparison;
9722
      }
9723
      if (isSetSuccess()) {
9724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9725
        if (lastComparison != 0) {
9726
          return lastComparison;
9727
        }
9728
      }
9729
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
9730
      if (lastComparison != 0) {
9731
        return lastComparison;
9732
      }
9733
      if (isSetIsex()) {
9734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
9735
        if (lastComparison != 0) {
9736
          return lastComparison;
9737
        }
9738
      }
9739
      return 0;
9740
    }
9741
 
9742
    public _Fields fieldForId(int fieldId) {
9743
      return _Fields.findByThriftId(fieldId);
9744
    }
9745
 
9746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9747
      org.apache.thrift.protocol.TField field;
9748
      iprot.readStructBegin();
9749
      while (true)
9750
      {
9751
        field = iprot.readFieldBegin();
9752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9753
          break;
9754
        }
9755
        switch (field.id) {
9756
          case 0: // SUCCESS
9757
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9758
              {
9759
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
9760
                this.success = new ArrayList<Long>(_list20.size);
9761
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
9762
                {
9763
                  long _elem22; // required
9764
                  _elem22 = iprot.readI64();
9765
                  this.success.add(_elem22);
9766
                }
9767
                iprot.readListEnd();
9768
              }
9769
            } else { 
9770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9771
            }
9772
            break;
9773
          case 1: // ISEX
9774
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9775
              this.isex = new InventoryServiceException();
9776
              this.isex.read(iprot);
9777
            } else { 
9778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9779
            }
9780
            break;
9781
          default:
9782
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9783
        }
9784
        iprot.readFieldEnd();
9785
      }
9786
      iprot.readStructEnd();
9787
      validate();
9788
    }
9789
 
9790
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9791
      oprot.writeStructBegin(STRUCT_DESC);
9792
 
9793
      if (this.isSetSuccess()) {
9794
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9795
        {
9796
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
9797
          for (long _iter23 : this.success)
9798
          {
9799
            oprot.writeI64(_iter23);
9800
          }
9801
          oprot.writeListEnd();
9802
        }
9803
        oprot.writeFieldEnd();
9804
      } else if (this.isSetIsex()) {
9805
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
9806
        this.isex.write(oprot);
9807
        oprot.writeFieldEnd();
9808
      }
9809
      oprot.writeFieldStop();
9810
      oprot.writeStructEnd();
9811
    }
9812
 
9813
    @Override
9814
    public String toString() {
9815
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
9816
      boolean first = true;
9817
 
9818
      sb.append("success:");
9819
      if (this.success == null) {
9820
        sb.append("null");
9821
      } else {
9822
        sb.append(this.success);
9823
      }
9824
      first = false;
9825
      if (!first) sb.append(", ");
9826
      sb.append("isex:");
9827
      if (this.isex == null) {
9828
        sb.append("null");
9829
      } else {
9830
        sb.append(this.isex);
9831
      }
9832
      first = false;
9833
      sb.append(")");
9834
      return sb.toString();
9835
    }
9836
 
9837
    public void validate() throws org.apache.thrift.TException {
9838
      // check for required fields
9839
    }
9840
 
9841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9842
      try {
9843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9844
      } catch (org.apache.thrift.TException te) {
9845
        throw new java.io.IOException(te);
9846
      }
9847
    }
9848
 
9849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9850
      try {
9851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9852
      } catch (org.apache.thrift.TException te) {
9853
        throw new java.io.IOException(te);
9854
      }
9855
    }
9856
 
9857
  }
9858
 
9859
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
9860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
9861
 
9862
    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);
9863
 
9864
    private boolean isActive; // required
9865
 
9866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9868
      IS_ACTIVE((short)1, "isActive");
9869
 
9870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9871
 
9872
      static {
9873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9874
          byName.put(field.getFieldName(), field);
9875
        }
9876
      }
9877
 
9878
      /**
9879
       * Find the _Fields constant that matches fieldId, or null if its not found.
9880
       */
9881
      public static _Fields findByThriftId(int fieldId) {
9882
        switch(fieldId) {
9883
          case 1: // IS_ACTIVE
9884
            return IS_ACTIVE;
9885
          default:
9886
            return null;
9887
        }
9888
      }
9889
 
9890
      /**
9891
       * Find the _Fields constant that matches fieldId, throwing an exception
9892
       * if it is not found.
9893
       */
9894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9895
        _Fields fields = findByThriftId(fieldId);
9896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9897
        return fields;
9898
      }
9899
 
9900
      /**
9901
       * Find the _Fields constant that matches name, or null if its not found.
9902
       */
9903
      public static _Fields findByName(String name) {
9904
        return byName.get(name);
9905
      }
9906
 
9907
      private final short _thriftId;
9908
      private final String _fieldName;
9909
 
9910
      _Fields(short thriftId, String fieldName) {
9911
        _thriftId = thriftId;
9912
        _fieldName = fieldName;
9913
      }
9914
 
9915
      public short getThriftFieldId() {
9916
        return _thriftId;
9917
      }
9918
 
9919
      public String getFieldName() {
9920
        return _fieldName;
9921
      }
9922
    }
9923
 
9924
    // isset id assignments
9925
    private static final int __ISACTIVE_ISSET_ID = 0;
9926
    private BitSet __isset_bit_vector = new BitSet(1);
9927
 
9928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9929
    static {
9930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9931
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9932
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
9935
    }
9936
 
9937
    public getAllWarehouses_args() {
9938
    }
9939
 
9940
    public getAllWarehouses_args(
9941
      boolean isActive)
9942
    {
9943
      this();
9944
      this.isActive = isActive;
9945
      setIsActiveIsSet(true);
9946
    }
9947
 
9948
    /**
9949
     * Performs a deep copy on <i>other</i>.
9950
     */
9951
    public getAllWarehouses_args(getAllWarehouses_args other) {
9952
      __isset_bit_vector.clear();
9953
      __isset_bit_vector.or(other.__isset_bit_vector);
9954
      this.isActive = other.isActive;
9955
    }
9956
 
9957
    public getAllWarehouses_args deepCopy() {
9958
      return new getAllWarehouses_args(this);
9959
    }
9960
 
9961
    @Override
9962
    public void clear() {
9963
      setIsActiveIsSet(false);
9964
      this.isActive = false;
9965
    }
9966
 
9967
    public boolean isIsActive() {
9968
      return this.isActive;
9969
    }
9970
 
9971
    public void setIsActive(boolean isActive) {
9972
      this.isActive = isActive;
9973
      setIsActiveIsSet(true);
9974
    }
9975
 
9976
    public void unsetIsActive() {
9977
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
9978
    }
9979
 
9980
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
9981
    public boolean isSetIsActive() {
9982
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
9983
    }
9984
 
9985
    public void setIsActiveIsSet(boolean value) {
9986
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
9987
    }
9988
 
9989
    public void setFieldValue(_Fields field, Object value) {
9990
      switch (field) {
9991
      case IS_ACTIVE:
9992
        if (value == null) {
9993
          unsetIsActive();
9994
        } else {
9995
          setIsActive((Boolean)value);
9996
        }
9997
        break;
9998
 
9999
      }
10000
    }
10001
 
10002
    public Object getFieldValue(_Fields field) {
10003
      switch (field) {
10004
      case IS_ACTIVE:
10005
        return Boolean.valueOf(isIsActive());
10006
 
10007
      }
10008
      throw new IllegalStateException();
10009
    }
10010
 
10011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10012
    public boolean isSet(_Fields field) {
10013
      if (field == null) {
10014
        throw new IllegalArgumentException();
10015
      }
10016
 
10017
      switch (field) {
10018
      case IS_ACTIVE:
10019
        return isSetIsActive();
10020
      }
10021
      throw new IllegalStateException();
10022
    }
10023
 
10024
    @Override
10025
    public boolean equals(Object that) {
10026
      if (that == null)
10027
        return false;
10028
      if (that instanceof getAllWarehouses_args)
10029
        return this.equals((getAllWarehouses_args)that);
10030
      return false;
10031
    }
10032
 
10033
    public boolean equals(getAllWarehouses_args that) {
10034
      if (that == null)
10035
        return false;
10036
 
10037
      boolean this_present_isActive = true;
10038
      boolean that_present_isActive = true;
10039
      if (this_present_isActive || that_present_isActive) {
10040
        if (!(this_present_isActive && that_present_isActive))
10041
          return false;
10042
        if (this.isActive != that.isActive)
10043
          return false;
10044
      }
10045
 
10046
      return true;
10047
    }
10048
 
10049
    @Override
10050
    public int hashCode() {
10051
      return 0;
10052
    }
10053
 
10054
    public int compareTo(getAllWarehouses_args other) {
10055
      if (!getClass().equals(other.getClass())) {
10056
        return getClass().getName().compareTo(other.getClass().getName());
10057
      }
10058
 
10059
      int lastComparison = 0;
10060
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
10061
 
10062
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
10063
      if (lastComparison != 0) {
10064
        return lastComparison;
10065
      }
10066
      if (isSetIsActive()) {
10067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
10068
        if (lastComparison != 0) {
10069
          return lastComparison;
10070
        }
10071
      }
10072
      return 0;
10073
    }
10074
 
10075
    public _Fields fieldForId(int fieldId) {
10076
      return _Fields.findByThriftId(fieldId);
10077
    }
10078
 
10079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10080
      org.apache.thrift.protocol.TField field;
10081
      iprot.readStructBegin();
10082
      while (true)
10083
      {
10084
        field = iprot.readFieldBegin();
10085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10086
          break;
10087
        }
10088
        switch (field.id) {
10089
          case 1: // IS_ACTIVE
10090
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10091
              this.isActive = iprot.readBool();
10092
              setIsActiveIsSet(true);
10093
            } else { 
10094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10095
            }
10096
            break;
10097
          default:
10098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10099
        }
10100
        iprot.readFieldEnd();
10101
      }
10102
      iprot.readStructEnd();
10103
      validate();
10104
    }
10105
 
10106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10107
      validate();
10108
 
10109
      oprot.writeStructBegin(STRUCT_DESC);
10110
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
10111
      oprot.writeBool(this.isActive);
10112
      oprot.writeFieldEnd();
10113
      oprot.writeFieldStop();
10114
      oprot.writeStructEnd();
10115
    }
10116
 
10117
    @Override
10118
    public String toString() {
10119
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
10120
      boolean first = true;
10121
 
10122
      sb.append("isActive:");
10123
      sb.append(this.isActive);
10124
      first = false;
10125
      sb.append(")");
10126
      return sb.toString();
10127
    }
10128
 
10129
    public void validate() throws org.apache.thrift.TException {
10130
      // check for required fields
10131
    }
10132
 
10133
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10134
      try {
10135
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10136
      } catch (org.apache.thrift.TException te) {
10137
        throw new java.io.IOException(te);
10138
      }
10139
    }
10140
 
10141
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10142
      try {
10143
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10144
        __isset_bit_vector = new BitSet(1);
10145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10146
      } catch (org.apache.thrift.TException te) {
10147
        throw new java.io.IOException(te);
10148
      }
10149
    }
10150
 
10151
  }
10152
 
10153
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
10154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
10155
 
10156
    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);
10157
    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);
10158
 
10159
    private List<Warehouse> success; // required
10160
    private InventoryServiceException cex; // required
10161
 
10162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10164
      SUCCESS((short)0, "success"),
10165
      CEX((short)1, "cex");
10166
 
10167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10168
 
10169
      static {
10170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10171
          byName.put(field.getFieldName(), field);
10172
        }
10173
      }
10174
 
10175
      /**
10176
       * Find the _Fields constant that matches fieldId, or null if its not found.
10177
       */
10178
      public static _Fields findByThriftId(int fieldId) {
10179
        switch(fieldId) {
10180
          case 0: // SUCCESS
10181
            return SUCCESS;
10182
          case 1: // CEX
10183
            return CEX;
10184
          default:
10185
            return null;
10186
        }
10187
      }
10188
 
10189
      /**
10190
       * Find the _Fields constant that matches fieldId, throwing an exception
10191
       * if it is not found.
10192
       */
10193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10194
        _Fields fields = findByThriftId(fieldId);
10195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10196
        return fields;
10197
      }
10198
 
10199
      /**
10200
       * Find the _Fields constant that matches name, or null if its not found.
10201
       */
10202
      public static _Fields findByName(String name) {
10203
        return byName.get(name);
10204
      }
10205
 
10206
      private final short _thriftId;
10207
      private final String _fieldName;
10208
 
10209
      _Fields(short thriftId, String fieldName) {
10210
        _thriftId = thriftId;
10211
        _fieldName = fieldName;
10212
      }
10213
 
10214
      public short getThriftFieldId() {
10215
        return _thriftId;
10216
      }
10217
 
10218
      public String getFieldName() {
10219
        return _fieldName;
10220
      }
10221
    }
10222
 
10223
    // isset id assignments
10224
 
10225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10226
    static {
10227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10228
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10229
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10230
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
10231
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
10235
    }
10236
 
10237
    public getAllWarehouses_result() {
10238
    }
10239
 
10240
    public getAllWarehouses_result(
10241
      List<Warehouse> success,
10242
      InventoryServiceException cex)
10243
    {
10244
      this();
10245
      this.success = success;
10246
      this.cex = cex;
10247
    }
10248
 
10249
    /**
10250
     * Performs a deep copy on <i>other</i>.
10251
     */
10252
    public getAllWarehouses_result(getAllWarehouses_result other) {
10253
      if (other.isSetSuccess()) {
10254
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
10255
        for (Warehouse other_element : other.success) {
10256
          __this__success.add(new Warehouse(other_element));
10257
        }
10258
        this.success = __this__success;
10259
      }
10260
      if (other.isSetCex()) {
10261
        this.cex = new InventoryServiceException(other.cex);
10262
      }
10263
    }
10264
 
10265
    public getAllWarehouses_result deepCopy() {
10266
      return new getAllWarehouses_result(this);
10267
    }
10268
 
10269
    @Override
10270
    public void clear() {
10271
      this.success = null;
10272
      this.cex = null;
10273
    }
10274
 
10275
    public int getSuccessSize() {
10276
      return (this.success == null) ? 0 : this.success.size();
10277
    }
10278
 
10279
    public java.util.Iterator<Warehouse> getSuccessIterator() {
10280
      return (this.success == null) ? null : this.success.iterator();
10281
    }
10282
 
10283
    public void addToSuccess(Warehouse elem) {
10284
      if (this.success == null) {
10285
        this.success = new ArrayList<Warehouse>();
10286
      }
10287
      this.success.add(elem);
10288
    }
10289
 
10290
    public List<Warehouse> getSuccess() {
10291
      return this.success;
10292
    }
10293
 
10294
    public void setSuccess(List<Warehouse> success) {
10295
      this.success = success;
10296
    }
10297
 
10298
    public void unsetSuccess() {
10299
      this.success = null;
10300
    }
10301
 
10302
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10303
    public boolean isSetSuccess() {
10304
      return this.success != null;
10305
    }
10306
 
10307
    public void setSuccessIsSet(boolean value) {
10308
      if (!value) {
10309
        this.success = null;
10310
      }
10311
    }
10312
 
10313
    public InventoryServiceException getCex() {
10314
      return this.cex;
10315
    }
10316
 
10317
    public void setCex(InventoryServiceException cex) {
10318
      this.cex = cex;
10319
    }
10320
 
10321
    public void unsetCex() {
10322
      this.cex = null;
10323
    }
10324
 
10325
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10326
    public boolean isSetCex() {
10327
      return this.cex != null;
10328
    }
10329
 
10330
    public void setCexIsSet(boolean value) {
10331
      if (!value) {
10332
        this.cex = null;
10333
      }
10334
    }
10335
 
10336
    public void setFieldValue(_Fields field, Object value) {
10337
      switch (field) {
10338
      case SUCCESS:
10339
        if (value == null) {
10340
          unsetSuccess();
10341
        } else {
10342
          setSuccess((List<Warehouse>)value);
10343
        }
10344
        break;
10345
 
10346
      case CEX:
10347
        if (value == null) {
10348
          unsetCex();
10349
        } else {
10350
          setCex((InventoryServiceException)value);
10351
        }
10352
        break;
10353
 
10354
      }
10355
    }
10356
 
10357
    public Object getFieldValue(_Fields field) {
10358
      switch (field) {
10359
      case SUCCESS:
10360
        return getSuccess();
10361
 
10362
      case CEX:
10363
        return getCex();
10364
 
10365
      }
10366
      throw new IllegalStateException();
10367
    }
10368
 
10369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10370
    public boolean isSet(_Fields field) {
10371
      if (field == null) {
10372
        throw new IllegalArgumentException();
10373
      }
10374
 
10375
      switch (field) {
10376
      case SUCCESS:
10377
        return isSetSuccess();
10378
      case CEX:
10379
        return isSetCex();
10380
      }
10381
      throw new IllegalStateException();
10382
    }
10383
 
10384
    @Override
10385
    public boolean equals(Object that) {
10386
      if (that == null)
10387
        return false;
10388
      if (that instanceof getAllWarehouses_result)
10389
        return this.equals((getAllWarehouses_result)that);
10390
      return false;
10391
    }
10392
 
10393
    public boolean equals(getAllWarehouses_result that) {
10394
      if (that == null)
10395
        return false;
10396
 
10397
      boolean this_present_success = true && this.isSetSuccess();
10398
      boolean that_present_success = true && that.isSetSuccess();
10399
      if (this_present_success || that_present_success) {
10400
        if (!(this_present_success && that_present_success))
10401
          return false;
10402
        if (!this.success.equals(that.success))
10403
          return false;
10404
      }
10405
 
10406
      boolean this_present_cex = true && this.isSetCex();
10407
      boolean that_present_cex = true && that.isSetCex();
10408
      if (this_present_cex || that_present_cex) {
10409
        if (!(this_present_cex && that_present_cex))
10410
          return false;
10411
        if (!this.cex.equals(that.cex))
10412
          return false;
10413
      }
10414
 
10415
      return true;
10416
    }
10417
 
10418
    @Override
10419
    public int hashCode() {
10420
      return 0;
10421
    }
10422
 
10423
    public int compareTo(getAllWarehouses_result other) {
10424
      if (!getClass().equals(other.getClass())) {
10425
        return getClass().getName().compareTo(other.getClass().getName());
10426
      }
10427
 
10428
      int lastComparison = 0;
10429
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
10430
 
10431
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10432
      if (lastComparison != 0) {
10433
        return lastComparison;
10434
      }
10435
      if (isSetSuccess()) {
10436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10437
        if (lastComparison != 0) {
10438
          return lastComparison;
10439
        }
10440
      }
10441
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10442
      if (lastComparison != 0) {
10443
        return lastComparison;
10444
      }
10445
      if (isSetCex()) {
10446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10447
        if (lastComparison != 0) {
10448
          return lastComparison;
10449
        }
10450
      }
10451
      return 0;
10452
    }
10453
 
10454
    public _Fields fieldForId(int fieldId) {
10455
      return _Fields.findByThriftId(fieldId);
10456
    }
10457
 
10458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10459
      org.apache.thrift.protocol.TField field;
10460
      iprot.readStructBegin();
10461
      while (true)
10462
      {
10463
        field = iprot.readFieldBegin();
10464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10465
          break;
10466
        }
10467
        switch (field.id) {
10468
          case 0: // SUCCESS
10469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10470
              {
10471
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
10472
                this.success = new ArrayList<Warehouse>(_list24.size);
10473
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
10474
                {
10475
                  Warehouse _elem26; // required
10476
                  _elem26 = new Warehouse();
10477
                  _elem26.read(iprot);
10478
                  this.success.add(_elem26);
10479
                }
10480
                iprot.readListEnd();
10481
              }
10482
            } else { 
10483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10484
            }
10485
            break;
10486
          case 1: // CEX
10487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10488
              this.cex = new InventoryServiceException();
10489
              this.cex.read(iprot);
10490
            } else { 
10491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10492
            }
10493
            break;
10494
          default:
10495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10496
        }
10497
        iprot.readFieldEnd();
10498
      }
10499
      iprot.readStructEnd();
10500
      validate();
10501
    }
10502
 
10503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10504
      oprot.writeStructBegin(STRUCT_DESC);
10505
 
10506
      if (this.isSetSuccess()) {
10507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10508
        {
10509
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10510
          for (Warehouse _iter27 : this.success)
10511
          {
10512
            _iter27.write(oprot);
10513
          }
10514
          oprot.writeListEnd();
10515
        }
10516
        oprot.writeFieldEnd();
10517
      } else if (this.isSetCex()) {
10518
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10519
        this.cex.write(oprot);
10520
        oprot.writeFieldEnd();
10521
      }
10522
      oprot.writeFieldStop();
10523
      oprot.writeStructEnd();
10524
    }
10525
 
10526
    @Override
10527
    public String toString() {
10528
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
10529
      boolean first = true;
10530
 
10531
      sb.append("success:");
10532
      if (this.success == null) {
10533
        sb.append("null");
10534
      } else {
10535
        sb.append(this.success);
10536
      }
10537
      first = false;
10538
      if (!first) sb.append(", ");
10539
      sb.append("cex:");
10540
      if (this.cex == null) {
10541
        sb.append("null");
10542
      } else {
10543
        sb.append(this.cex);
10544
      }
10545
      first = false;
10546
      sb.append(")");
10547
      return sb.toString();
10548
    }
10549
 
10550
    public void validate() throws org.apache.thrift.TException {
10551
      // check for required fields
10552
    }
10553
 
10554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10555
      try {
10556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10557
      } catch (org.apache.thrift.TException te) {
10558
        throw new java.io.IOException(te);
10559
      }
10560
    }
10561
 
10562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10563
      try {
10564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10565
      } catch (org.apache.thrift.TException te) {
10566
        throw new java.io.IOException(te);
10567
      }
10568
    }
10569
 
10570
  }
10571
 
10572
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
10573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
10574
 
10575
    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);
10576
 
10577
    private long warehouse_id; // required
10578
 
10579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10581
      WAREHOUSE_ID((short)1, "warehouse_id");
10582
 
10583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10584
 
10585
      static {
10586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10587
          byName.put(field.getFieldName(), field);
10588
        }
10589
      }
10590
 
10591
      /**
10592
       * Find the _Fields constant that matches fieldId, or null if its not found.
10593
       */
10594
      public static _Fields findByThriftId(int fieldId) {
10595
        switch(fieldId) {
10596
          case 1: // WAREHOUSE_ID
10597
            return WAREHOUSE_ID;
10598
          default:
10599
            return null;
10600
        }
10601
      }
10602
 
10603
      /**
10604
       * Find the _Fields constant that matches fieldId, throwing an exception
10605
       * if it is not found.
10606
       */
10607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10608
        _Fields fields = findByThriftId(fieldId);
10609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10610
        return fields;
10611
      }
10612
 
10613
      /**
10614
       * Find the _Fields constant that matches name, or null if its not found.
10615
       */
10616
      public static _Fields findByName(String name) {
10617
        return byName.get(name);
10618
      }
10619
 
10620
      private final short _thriftId;
10621
      private final String _fieldName;
10622
 
10623
      _Fields(short thriftId, String fieldName) {
10624
        _thriftId = thriftId;
10625
        _fieldName = fieldName;
10626
      }
10627
 
10628
      public short getThriftFieldId() {
10629
        return _thriftId;
10630
      }
10631
 
10632
      public String getFieldName() {
10633
        return _fieldName;
10634
      }
10635
    }
10636
 
10637
    // isset id assignments
10638
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
10639
    private BitSet __isset_bit_vector = new BitSet(1);
10640
 
10641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10642
    static {
10643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10644
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
10648
    }
10649
 
10650
    public getWarehouse_args() {
10651
    }
10652
 
10653
    public getWarehouse_args(
10654
      long warehouse_id)
10655
    {
10656
      this();
10657
      this.warehouse_id = warehouse_id;
10658
      setWarehouse_idIsSet(true);
10659
    }
10660
 
10661
    /**
10662
     * Performs a deep copy on <i>other</i>.
10663
     */
10664
    public getWarehouse_args(getWarehouse_args other) {
10665
      __isset_bit_vector.clear();
10666
      __isset_bit_vector.or(other.__isset_bit_vector);
10667
      this.warehouse_id = other.warehouse_id;
10668
    }
10669
 
10670
    public getWarehouse_args deepCopy() {
10671
      return new getWarehouse_args(this);
10672
    }
10673
 
10674
    @Override
10675
    public void clear() {
10676
      setWarehouse_idIsSet(false);
10677
      this.warehouse_id = 0;
10678
    }
10679
 
10680
    public long getWarehouse_id() {
10681
      return this.warehouse_id;
10682
    }
10683
 
10684
    public void setWarehouse_id(long warehouse_id) {
10685
      this.warehouse_id = warehouse_id;
10686
      setWarehouse_idIsSet(true);
10687
    }
10688
 
10689
    public void unsetWarehouse_id() {
10690
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
10691
    }
10692
 
10693
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
10694
    public boolean isSetWarehouse_id() {
10695
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
10696
    }
10697
 
10698
    public void setWarehouse_idIsSet(boolean value) {
10699
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
10700
    }
10701
 
10702
    public void setFieldValue(_Fields field, Object value) {
10703
      switch (field) {
10704
      case WAREHOUSE_ID:
10705
        if (value == null) {
10706
          unsetWarehouse_id();
10707
        } else {
10708
          setWarehouse_id((Long)value);
10709
        }
10710
        break;
10711
 
10712
      }
10713
    }
10714
 
10715
    public Object getFieldValue(_Fields field) {
10716
      switch (field) {
10717
      case WAREHOUSE_ID:
10718
        return Long.valueOf(getWarehouse_id());
10719
 
10720
      }
10721
      throw new IllegalStateException();
10722
    }
10723
 
10724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10725
    public boolean isSet(_Fields field) {
10726
      if (field == null) {
10727
        throw new IllegalArgumentException();
10728
      }
10729
 
10730
      switch (field) {
10731
      case WAREHOUSE_ID:
10732
        return isSetWarehouse_id();
10733
      }
10734
      throw new IllegalStateException();
10735
    }
10736
 
10737
    @Override
10738
    public boolean equals(Object that) {
10739
      if (that == null)
10740
        return false;
10741
      if (that instanceof getWarehouse_args)
10742
        return this.equals((getWarehouse_args)that);
10743
      return false;
10744
    }
10745
 
10746
    public boolean equals(getWarehouse_args that) {
10747
      if (that == null)
10748
        return false;
10749
 
10750
      boolean this_present_warehouse_id = true;
10751
      boolean that_present_warehouse_id = true;
10752
      if (this_present_warehouse_id || that_present_warehouse_id) {
10753
        if (!(this_present_warehouse_id && that_present_warehouse_id))
10754
          return false;
10755
        if (this.warehouse_id != that.warehouse_id)
10756
          return false;
10757
      }
10758
 
10759
      return true;
10760
    }
10761
 
10762
    @Override
10763
    public int hashCode() {
10764
      return 0;
10765
    }
10766
 
10767
    public int compareTo(getWarehouse_args other) {
10768
      if (!getClass().equals(other.getClass())) {
10769
        return getClass().getName().compareTo(other.getClass().getName());
10770
      }
10771
 
10772
      int lastComparison = 0;
10773
      getWarehouse_args typedOther = (getWarehouse_args)other;
10774
 
10775
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
10776
      if (lastComparison != 0) {
10777
        return lastComparison;
10778
      }
10779
      if (isSetWarehouse_id()) {
10780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10781
        if (lastComparison != 0) {
10782
          return lastComparison;
10783
        }
10784
      }
10785
      return 0;
10786
    }
10787
 
10788
    public _Fields fieldForId(int fieldId) {
10789
      return _Fields.findByThriftId(fieldId);
10790
    }
10791
 
10792
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10793
      org.apache.thrift.protocol.TField field;
10794
      iprot.readStructBegin();
10795
      while (true)
10796
      {
10797
        field = iprot.readFieldBegin();
10798
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10799
          break;
10800
        }
10801
        switch (field.id) {
10802
          case 1: // WAREHOUSE_ID
10803
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10804
              this.warehouse_id = iprot.readI64();
10805
              setWarehouse_idIsSet(true);
10806
            } else { 
10807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10808
            }
10809
            break;
10810
          default:
10811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10812
        }
10813
        iprot.readFieldEnd();
10814
      }
10815
      iprot.readStructEnd();
10816
      validate();
10817
    }
10818
 
10819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10820
      validate();
10821
 
10822
      oprot.writeStructBegin(STRUCT_DESC);
10823
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10824
      oprot.writeI64(this.warehouse_id);
10825
      oprot.writeFieldEnd();
10826
      oprot.writeFieldStop();
10827
      oprot.writeStructEnd();
10828
    }
10829
 
10830
    @Override
10831
    public String toString() {
10832
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
10833
      boolean first = true;
10834
 
10835
      sb.append("warehouse_id:");
10836
      sb.append(this.warehouse_id);
10837
      first = false;
10838
      sb.append(")");
10839
      return sb.toString();
10840
    }
10841
 
10842
    public void validate() throws org.apache.thrift.TException {
10843
      // check for required fields
10844
    }
10845
 
10846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10847
      try {
10848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10849
      } catch (org.apache.thrift.TException te) {
10850
        throw new java.io.IOException(te);
10851
      }
10852
    }
10853
 
10854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10855
      try {
10856
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10857
        __isset_bit_vector = new BitSet(1);
10858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10859
      } catch (org.apache.thrift.TException te) {
10860
        throw new java.io.IOException(te);
10861
      }
10862
    }
10863
 
10864
  }
10865
 
10866
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
10867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
10868
 
10869
    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);
10870
    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);
10871
 
10872
    private Warehouse success; // required
10873
    private InventoryServiceException cex; // required
10874
 
10875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10877
      SUCCESS((short)0, "success"),
10878
      CEX((short)1, "cex");
10879
 
10880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10881
 
10882
      static {
10883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10884
          byName.put(field.getFieldName(), field);
10885
        }
10886
      }
10887
 
10888
      /**
10889
       * Find the _Fields constant that matches fieldId, or null if its not found.
10890
       */
10891
      public static _Fields findByThriftId(int fieldId) {
10892
        switch(fieldId) {
10893
          case 0: // SUCCESS
10894
            return SUCCESS;
10895
          case 1: // CEX
10896
            return CEX;
10897
          default:
10898
            return null;
10899
        }
10900
      }
10901
 
10902
      /**
10903
       * Find the _Fields constant that matches fieldId, throwing an exception
10904
       * if it is not found.
10905
       */
10906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10907
        _Fields fields = findByThriftId(fieldId);
10908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10909
        return fields;
10910
      }
10911
 
10912
      /**
10913
       * Find the _Fields constant that matches name, or null if its not found.
10914
       */
10915
      public static _Fields findByName(String name) {
10916
        return byName.get(name);
10917
      }
10918
 
10919
      private final short _thriftId;
10920
      private final String _fieldName;
10921
 
10922
      _Fields(short thriftId, String fieldName) {
10923
        _thriftId = thriftId;
10924
        _fieldName = fieldName;
10925
      }
10926
 
10927
      public short getThriftFieldId() {
10928
        return _thriftId;
10929
      }
10930
 
10931
      public String getFieldName() {
10932
        return _fieldName;
10933
      }
10934
    }
10935
 
10936
    // isset id assignments
10937
 
10938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10939
    static {
10940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10941
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10942
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
10943
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10944
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10945
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10946
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
10947
    }
10948
 
10949
    public getWarehouse_result() {
10950
    }
10951
 
10952
    public getWarehouse_result(
10953
      Warehouse success,
10954
      InventoryServiceException cex)
10955
    {
10956
      this();
10957
      this.success = success;
10958
      this.cex = cex;
10959
    }
10960
 
10961
    /**
10962
     * Performs a deep copy on <i>other</i>.
10963
     */
10964
    public getWarehouse_result(getWarehouse_result other) {
10965
      if (other.isSetSuccess()) {
10966
        this.success = new Warehouse(other.success);
10967
      }
10968
      if (other.isSetCex()) {
10969
        this.cex = new InventoryServiceException(other.cex);
10970
      }
10971
    }
10972
 
10973
    public getWarehouse_result deepCopy() {
10974
      return new getWarehouse_result(this);
10975
    }
10976
 
10977
    @Override
10978
    public void clear() {
10979
      this.success = null;
10980
      this.cex = null;
10981
    }
10982
 
10983
    public Warehouse getSuccess() {
10984
      return this.success;
10985
    }
10986
 
10987
    public void setSuccess(Warehouse success) {
10988
      this.success = success;
10989
    }
10990
 
10991
    public void unsetSuccess() {
10992
      this.success = null;
10993
    }
10994
 
10995
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10996
    public boolean isSetSuccess() {
10997
      return this.success != null;
10998
    }
10999
 
11000
    public void setSuccessIsSet(boolean value) {
11001
      if (!value) {
11002
        this.success = null;
11003
      }
11004
    }
11005
 
11006
    public InventoryServiceException getCex() {
11007
      return this.cex;
11008
    }
11009
 
11010
    public void setCex(InventoryServiceException cex) {
11011
      this.cex = cex;
11012
    }
11013
 
11014
    public void unsetCex() {
11015
      this.cex = null;
11016
    }
11017
 
11018
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11019
    public boolean isSetCex() {
11020
      return this.cex != null;
11021
    }
11022
 
11023
    public void setCexIsSet(boolean value) {
11024
      if (!value) {
11025
        this.cex = null;
11026
      }
11027
    }
11028
 
11029
    public void setFieldValue(_Fields field, Object value) {
11030
      switch (field) {
11031
      case SUCCESS:
11032
        if (value == null) {
11033
          unsetSuccess();
11034
        } else {
11035
          setSuccess((Warehouse)value);
11036
        }
11037
        break;
11038
 
11039
      case CEX:
11040
        if (value == null) {
11041
          unsetCex();
11042
        } else {
11043
          setCex((InventoryServiceException)value);
11044
        }
11045
        break;
11046
 
11047
      }
11048
    }
11049
 
11050
    public Object getFieldValue(_Fields field) {
11051
      switch (field) {
11052
      case SUCCESS:
11053
        return getSuccess();
11054
 
11055
      case CEX:
11056
        return getCex();
11057
 
11058
      }
11059
      throw new IllegalStateException();
11060
    }
11061
 
11062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11063
    public boolean isSet(_Fields field) {
11064
      if (field == null) {
11065
        throw new IllegalArgumentException();
11066
      }
11067
 
11068
      switch (field) {
11069
      case SUCCESS:
11070
        return isSetSuccess();
11071
      case CEX:
11072
        return isSetCex();
11073
      }
11074
      throw new IllegalStateException();
11075
    }
11076
 
11077
    @Override
11078
    public boolean equals(Object that) {
11079
      if (that == null)
11080
        return false;
11081
      if (that instanceof getWarehouse_result)
11082
        return this.equals((getWarehouse_result)that);
11083
      return false;
11084
    }
11085
 
11086
    public boolean equals(getWarehouse_result that) {
11087
      if (that == null)
11088
        return false;
11089
 
11090
      boolean this_present_success = true && this.isSetSuccess();
11091
      boolean that_present_success = true && that.isSetSuccess();
11092
      if (this_present_success || that_present_success) {
11093
        if (!(this_present_success && that_present_success))
11094
          return false;
11095
        if (!this.success.equals(that.success))
11096
          return false;
11097
      }
11098
 
11099
      boolean this_present_cex = true && this.isSetCex();
11100
      boolean that_present_cex = true && that.isSetCex();
11101
      if (this_present_cex || that_present_cex) {
11102
        if (!(this_present_cex && that_present_cex))
11103
          return false;
11104
        if (!this.cex.equals(that.cex))
11105
          return false;
11106
      }
11107
 
11108
      return true;
11109
    }
11110
 
11111
    @Override
11112
    public int hashCode() {
11113
      return 0;
11114
    }
11115
 
11116
    public int compareTo(getWarehouse_result other) {
11117
      if (!getClass().equals(other.getClass())) {
11118
        return getClass().getName().compareTo(other.getClass().getName());
11119
      }
11120
 
11121
      int lastComparison = 0;
11122
      getWarehouse_result typedOther = (getWarehouse_result)other;
11123
 
11124
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11125
      if (lastComparison != 0) {
11126
        return lastComparison;
11127
      }
11128
      if (isSetSuccess()) {
11129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11130
        if (lastComparison != 0) {
11131
          return lastComparison;
11132
        }
11133
      }
11134
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11135
      if (lastComparison != 0) {
11136
        return lastComparison;
11137
      }
11138
      if (isSetCex()) {
11139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11140
        if (lastComparison != 0) {
11141
          return lastComparison;
11142
        }
11143
      }
11144
      return 0;
11145
    }
11146
 
11147
    public _Fields fieldForId(int fieldId) {
11148
      return _Fields.findByThriftId(fieldId);
11149
    }
11150
 
11151
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11152
      org.apache.thrift.protocol.TField field;
11153
      iprot.readStructBegin();
11154
      while (true)
11155
      {
11156
        field = iprot.readFieldBegin();
11157
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11158
          break;
11159
        }
11160
        switch (field.id) {
11161
          case 0: // SUCCESS
11162
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11163
              this.success = new Warehouse();
11164
              this.success.read(iprot);
11165
            } else { 
11166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11167
            }
11168
            break;
11169
          case 1: // CEX
11170
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11171
              this.cex = new InventoryServiceException();
11172
              this.cex.read(iprot);
11173
            } else { 
11174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11175
            }
11176
            break;
11177
          default:
11178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11179
        }
11180
        iprot.readFieldEnd();
11181
      }
11182
      iprot.readStructEnd();
11183
      validate();
11184
    }
11185
 
11186
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11187
      oprot.writeStructBegin(STRUCT_DESC);
11188
 
11189
      if (this.isSetSuccess()) {
11190
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11191
        this.success.write(oprot);
11192
        oprot.writeFieldEnd();
11193
      } else if (this.isSetCex()) {
11194
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11195
        this.cex.write(oprot);
11196
        oprot.writeFieldEnd();
11197
      }
11198
      oprot.writeFieldStop();
11199
      oprot.writeStructEnd();
11200
    }
11201
 
11202
    @Override
11203
    public String toString() {
11204
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
11205
      boolean first = true;
11206
 
11207
      sb.append("success:");
11208
      if (this.success == null) {
11209
        sb.append("null");
11210
      } else {
11211
        sb.append(this.success);
11212
      }
11213
      first = false;
11214
      if (!first) sb.append(", ");
11215
      sb.append("cex:");
11216
      if (this.cex == null) {
11217
        sb.append("null");
11218
      } else {
11219
        sb.append(this.cex);
11220
      }
11221
      first = false;
11222
      sb.append(")");
11223
      return sb.toString();
11224
    }
11225
 
11226
    public void validate() throws org.apache.thrift.TException {
11227
      // check for required fields
11228
    }
11229
 
11230
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11231
      try {
11232
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11233
      } catch (org.apache.thrift.TException te) {
11234
        throw new java.io.IOException(te);
11235
      }
11236
    }
11237
 
11238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11239
      try {
11240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11241
      } catch (org.apache.thrift.TException te) {
11242
        throw new java.io.IOException(te);
11243
      }
11244
    }
11245
 
11246
  }
11247
 
11248
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
11250
 
11251
    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);
11252
 
11253
    private long warehouse_id; // required
11254
 
11255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11257
      WAREHOUSE_ID((short)1, "warehouse_id");
11258
 
11259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11260
 
11261
      static {
11262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11263
          byName.put(field.getFieldName(), field);
11264
        }
11265
      }
11266
 
11267
      /**
11268
       * Find the _Fields constant that matches fieldId, or null if its not found.
11269
       */
11270
      public static _Fields findByThriftId(int fieldId) {
11271
        switch(fieldId) {
11272
          case 1: // WAREHOUSE_ID
11273
            return WAREHOUSE_ID;
11274
          default:
11275
            return null;
11276
        }
11277
      }
11278
 
11279
      /**
11280
       * Find the _Fields constant that matches fieldId, throwing an exception
11281
       * if it is not found.
11282
       */
11283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11284
        _Fields fields = findByThriftId(fieldId);
11285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11286
        return fields;
11287
      }
11288
 
11289
      /**
11290
       * Find the _Fields constant that matches name, or null if its not found.
11291
       */
11292
      public static _Fields findByName(String name) {
11293
        return byName.get(name);
11294
      }
11295
 
11296
      private final short _thriftId;
11297
      private final String _fieldName;
11298
 
11299
      _Fields(short thriftId, String fieldName) {
11300
        _thriftId = thriftId;
11301
        _fieldName = fieldName;
11302
      }
11303
 
11304
      public short getThriftFieldId() {
11305
        return _thriftId;
11306
      }
11307
 
11308
      public String getFieldName() {
11309
        return _fieldName;
11310
      }
11311
    }
11312
 
11313
    // isset id assignments
11314
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11315
    private BitSet __isset_bit_vector = new BitSet(1);
11316
 
11317
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11318
    static {
11319
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11320
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11321
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11322
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11323
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
11324
    }
11325
 
11326
    public getAllItemsForWarehouse_args() {
11327
    }
11328
 
11329
    public getAllItemsForWarehouse_args(
11330
      long warehouse_id)
11331
    {
11332
      this();
11333
      this.warehouse_id = warehouse_id;
11334
      setWarehouse_idIsSet(true);
11335
    }
11336
 
11337
    /**
11338
     * Performs a deep copy on <i>other</i>.
11339
     */
11340
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
11341
      __isset_bit_vector.clear();
11342
      __isset_bit_vector.or(other.__isset_bit_vector);
11343
      this.warehouse_id = other.warehouse_id;
11344
    }
11345
 
11346
    public getAllItemsForWarehouse_args deepCopy() {
11347
      return new getAllItemsForWarehouse_args(this);
11348
    }
11349
 
11350
    @Override
11351
    public void clear() {
11352
      setWarehouse_idIsSet(false);
11353
      this.warehouse_id = 0;
11354
    }
11355
 
11356
    public long getWarehouse_id() {
11357
      return this.warehouse_id;
11358
    }
11359
 
11360
    public void setWarehouse_id(long warehouse_id) {
11361
      this.warehouse_id = warehouse_id;
11362
      setWarehouse_idIsSet(true);
11363
    }
11364
 
11365
    public void unsetWarehouse_id() {
11366
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11367
    }
11368
 
11369
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11370
    public boolean isSetWarehouse_id() {
11371
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11372
    }
11373
 
11374
    public void setWarehouse_idIsSet(boolean value) {
11375
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11376
    }
11377
 
11378
    public void setFieldValue(_Fields field, Object value) {
11379
      switch (field) {
11380
      case WAREHOUSE_ID:
11381
        if (value == null) {
11382
          unsetWarehouse_id();
11383
        } else {
11384
          setWarehouse_id((Long)value);
11385
        }
11386
        break;
11387
 
11388
      }
11389
    }
11390
 
11391
    public Object getFieldValue(_Fields field) {
11392
      switch (field) {
11393
      case WAREHOUSE_ID:
11394
        return Long.valueOf(getWarehouse_id());
11395
 
11396
      }
11397
      throw new IllegalStateException();
11398
    }
11399
 
11400
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11401
    public boolean isSet(_Fields field) {
11402
      if (field == null) {
11403
        throw new IllegalArgumentException();
11404
      }
11405
 
11406
      switch (field) {
11407
      case WAREHOUSE_ID:
11408
        return isSetWarehouse_id();
11409
      }
11410
      throw new IllegalStateException();
11411
    }
11412
 
11413
    @Override
11414
    public boolean equals(Object that) {
11415
      if (that == null)
11416
        return false;
11417
      if (that instanceof getAllItemsForWarehouse_args)
11418
        return this.equals((getAllItemsForWarehouse_args)that);
11419
      return false;
11420
    }
11421
 
11422
    public boolean equals(getAllItemsForWarehouse_args that) {
11423
      if (that == null)
11424
        return false;
11425
 
11426
      boolean this_present_warehouse_id = true;
11427
      boolean that_present_warehouse_id = true;
11428
      if (this_present_warehouse_id || that_present_warehouse_id) {
11429
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11430
          return false;
11431
        if (this.warehouse_id != that.warehouse_id)
11432
          return false;
11433
      }
11434
 
11435
      return true;
11436
    }
11437
 
11438
    @Override
11439
    public int hashCode() {
11440
      return 0;
11441
    }
11442
 
11443
    public int compareTo(getAllItemsForWarehouse_args other) {
11444
      if (!getClass().equals(other.getClass())) {
11445
        return getClass().getName().compareTo(other.getClass().getName());
11446
      }
11447
 
11448
      int lastComparison = 0;
11449
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
11450
 
11451
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11452
      if (lastComparison != 0) {
11453
        return lastComparison;
11454
      }
11455
      if (isSetWarehouse_id()) {
11456
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11457
        if (lastComparison != 0) {
11458
          return lastComparison;
11459
        }
11460
      }
11461
      return 0;
11462
    }
11463
 
11464
    public _Fields fieldForId(int fieldId) {
11465
      return _Fields.findByThriftId(fieldId);
11466
    }
11467
 
11468
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11469
      org.apache.thrift.protocol.TField field;
11470
      iprot.readStructBegin();
11471
      while (true)
11472
      {
11473
        field = iprot.readFieldBegin();
11474
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11475
          break;
11476
        }
11477
        switch (field.id) {
11478
          case 1: // WAREHOUSE_ID
11479
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11480
              this.warehouse_id = iprot.readI64();
11481
              setWarehouse_idIsSet(true);
11482
            } else { 
11483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11484
            }
11485
            break;
11486
          default:
11487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11488
        }
11489
        iprot.readFieldEnd();
11490
      }
11491
      iprot.readStructEnd();
11492
      validate();
11493
    }
11494
 
11495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11496
      validate();
11497
 
11498
      oprot.writeStructBegin(STRUCT_DESC);
11499
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11500
      oprot.writeI64(this.warehouse_id);
11501
      oprot.writeFieldEnd();
11502
      oprot.writeFieldStop();
11503
      oprot.writeStructEnd();
11504
    }
11505
 
11506
    @Override
11507
    public String toString() {
11508
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
11509
      boolean first = true;
11510
 
11511
      sb.append("warehouse_id:");
11512
      sb.append(this.warehouse_id);
11513
      first = false;
11514
      sb.append(")");
11515
      return sb.toString();
11516
    }
11517
 
11518
    public void validate() throws org.apache.thrift.TException {
11519
      // check for required fields
11520
    }
11521
 
11522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11523
      try {
11524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11525
      } catch (org.apache.thrift.TException te) {
11526
        throw new java.io.IOException(te);
11527
      }
11528
    }
11529
 
11530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11531
      try {
11532
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11533
        __isset_bit_vector = new BitSet(1);
11534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11535
      } catch (org.apache.thrift.TException te) {
11536
        throw new java.io.IOException(te);
11537
      }
11538
    }
11539
 
11540
  }
11541
 
11542
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
11544
 
11545
    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);
11546
    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);
11547
 
11548
    private List<Long> success; // required
11549
    private InventoryServiceException cex; // required
11550
 
11551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11552
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11553
      SUCCESS((short)0, "success"),
11554
      CEX((short)1, "cex");
11555
 
11556
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11557
 
11558
      static {
11559
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11560
          byName.put(field.getFieldName(), field);
11561
        }
11562
      }
11563
 
11564
      /**
11565
       * Find the _Fields constant that matches fieldId, or null if its not found.
11566
       */
11567
      public static _Fields findByThriftId(int fieldId) {
11568
        switch(fieldId) {
11569
          case 0: // SUCCESS
11570
            return SUCCESS;
11571
          case 1: // CEX
11572
            return CEX;
11573
          default:
11574
            return null;
11575
        }
11576
      }
11577
 
11578
      /**
11579
       * Find the _Fields constant that matches fieldId, throwing an exception
11580
       * if it is not found.
11581
       */
11582
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11583
        _Fields fields = findByThriftId(fieldId);
11584
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11585
        return fields;
11586
      }
11587
 
11588
      /**
11589
       * Find the _Fields constant that matches name, or null if its not found.
11590
       */
11591
      public static _Fields findByName(String name) {
11592
        return byName.get(name);
11593
      }
11594
 
11595
      private final short _thriftId;
11596
      private final String _fieldName;
11597
 
11598
      _Fields(short thriftId, String fieldName) {
11599
        _thriftId = thriftId;
11600
        _fieldName = fieldName;
11601
      }
11602
 
11603
      public short getThriftFieldId() {
11604
        return _thriftId;
11605
      }
11606
 
11607
      public String getFieldName() {
11608
        return _fieldName;
11609
      }
11610
    }
11611
 
11612
    // isset id assignments
11613
 
11614
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11615
    static {
11616
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11617
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11618
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11619
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
11620
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11621
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11622
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11623
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
11624
    }
11625
 
11626
    public getAllItemsForWarehouse_result() {
11627
    }
11628
 
11629
    public getAllItemsForWarehouse_result(
11630
      List<Long> success,
11631
      InventoryServiceException cex)
11632
    {
11633
      this();
11634
      this.success = success;
11635
      this.cex = cex;
11636
    }
11637
 
11638
    /**
11639
     * Performs a deep copy on <i>other</i>.
11640
     */
11641
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
11642
      if (other.isSetSuccess()) {
11643
        List<Long> __this__success = new ArrayList<Long>();
11644
        for (Long other_element : other.success) {
11645
          __this__success.add(other_element);
11646
        }
11647
        this.success = __this__success;
11648
      }
11649
      if (other.isSetCex()) {
11650
        this.cex = new InventoryServiceException(other.cex);
11651
      }
11652
    }
11653
 
11654
    public getAllItemsForWarehouse_result deepCopy() {
11655
      return new getAllItemsForWarehouse_result(this);
11656
    }
11657
 
11658
    @Override
11659
    public void clear() {
11660
      this.success = null;
11661
      this.cex = null;
11662
    }
11663
 
11664
    public int getSuccessSize() {
11665
      return (this.success == null) ? 0 : this.success.size();
11666
    }
11667
 
11668
    public java.util.Iterator<Long> getSuccessIterator() {
11669
      return (this.success == null) ? null : this.success.iterator();
11670
    }
11671
 
11672
    public void addToSuccess(long elem) {
11673
      if (this.success == null) {
11674
        this.success = new ArrayList<Long>();
11675
      }
11676
      this.success.add(elem);
11677
    }
11678
 
11679
    public List<Long> getSuccess() {
11680
      return this.success;
11681
    }
11682
 
11683
    public void setSuccess(List<Long> success) {
11684
      this.success = success;
11685
    }
11686
 
11687
    public void unsetSuccess() {
11688
      this.success = null;
11689
    }
11690
 
11691
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11692
    public boolean isSetSuccess() {
11693
      return this.success != null;
11694
    }
11695
 
11696
    public void setSuccessIsSet(boolean value) {
11697
      if (!value) {
11698
        this.success = null;
11699
      }
11700
    }
11701
 
11702
    public InventoryServiceException getCex() {
11703
      return this.cex;
11704
    }
11705
 
11706
    public void setCex(InventoryServiceException cex) {
11707
      this.cex = cex;
11708
    }
11709
 
11710
    public void unsetCex() {
11711
      this.cex = null;
11712
    }
11713
 
11714
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11715
    public boolean isSetCex() {
11716
      return this.cex != null;
11717
    }
11718
 
11719
    public void setCexIsSet(boolean value) {
11720
      if (!value) {
11721
        this.cex = null;
11722
      }
11723
    }
11724
 
11725
    public void setFieldValue(_Fields field, Object value) {
11726
      switch (field) {
11727
      case SUCCESS:
11728
        if (value == null) {
11729
          unsetSuccess();
11730
        } else {
11731
          setSuccess((List<Long>)value);
11732
        }
11733
        break;
11734
 
11735
      case CEX:
11736
        if (value == null) {
11737
          unsetCex();
11738
        } else {
11739
          setCex((InventoryServiceException)value);
11740
        }
11741
        break;
11742
 
11743
      }
11744
    }
11745
 
11746
    public Object getFieldValue(_Fields field) {
11747
      switch (field) {
11748
      case SUCCESS:
11749
        return getSuccess();
11750
 
11751
      case CEX:
11752
        return getCex();
11753
 
11754
      }
11755
      throw new IllegalStateException();
11756
    }
11757
 
11758
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11759
    public boolean isSet(_Fields field) {
11760
      if (field == null) {
11761
        throw new IllegalArgumentException();
11762
      }
11763
 
11764
      switch (field) {
11765
      case SUCCESS:
11766
        return isSetSuccess();
11767
      case CEX:
11768
        return isSetCex();
11769
      }
11770
      throw new IllegalStateException();
11771
    }
11772
 
11773
    @Override
11774
    public boolean equals(Object that) {
11775
      if (that == null)
11776
        return false;
11777
      if (that instanceof getAllItemsForWarehouse_result)
11778
        return this.equals((getAllItemsForWarehouse_result)that);
11779
      return false;
11780
    }
11781
 
11782
    public boolean equals(getAllItemsForWarehouse_result that) {
11783
      if (that == null)
11784
        return false;
11785
 
11786
      boolean this_present_success = true && this.isSetSuccess();
11787
      boolean that_present_success = true && that.isSetSuccess();
11788
      if (this_present_success || that_present_success) {
11789
        if (!(this_present_success && that_present_success))
11790
          return false;
11791
        if (!this.success.equals(that.success))
11792
          return false;
11793
      }
11794
 
11795
      boolean this_present_cex = true && this.isSetCex();
11796
      boolean that_present_cex = true && that.isSetCex();
11797
      if (this_present_cex || that_present_cex) {
11798
        if (!(this_present_cex && that_present_cex))
11799
          return false;
11800
        if (!this.cex.equals(that.cex))
11801
          return false;
11802
      }
11803
 
11804
      return true;
11805
    }
11806
 
11807
    @Override
11808
    public int hashCode() {
11809
      return 0;
11810
    }
11811
 
11812
    public int compareTo(getAllItemsForWarehouse_result other) {
11813
      if (!getClass().equals(other.getClass())) {
11814
        return getClass().getName().compareTo(other.getClass().getName());
11815
      }
11816
 
11817
      int lastComparison = 0;
11818
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
11819
 
11820
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11821
      if (lastComparison != 0) {
11822
        return lastComparison;
11823
      }
11824
      if (isSetSuccess()) {
11825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11826
        if (lastComparison != 0) {
11827
          return lastComparison;
11828
        }
11829
      }
11830
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11831
      if (lastComparison != 0) {
11832
        return lastComparison;
11833
      }
11834
      if (isSetCex()) {
11835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11836
        if (lastComparison != 0) {
11837
          return lastComparison;
11838
        }
11839
      }
11840
      return 0;
11841
    }
11842
 
11843
    public _Fields fieldForId(int fieldId) {
11844
      return _Fields.findByThriftId(fieldId);
11845
    }
11846
 
11847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11848
      org.apache.thrift.protocol.TField field;
11849
      iprot.readStructBegin();
11850
      while (true)
11851
      {
11852
        field = iprot.readFieldBegin();
11853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11854
          break;
11855
        }
11856
        switch (field.id) {
11857
          case 0: // SUCCESS
11858
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11859
              {
11860
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
11861
                this.success = new ArrayList<Long>(_list28.size);
11862
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11863
                {
11864
                  long _elem30; // required
11865
                  _elem30 = iprot.readI64();
11866
                  this.success.add(_elem30);
11867
                }
11868
                iprot.readListEnd();
11869
              }
11870
            } else { 
11871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11872
            }
11873
            break;
11874
          case 1: // CEX
11875
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11876
              this.cex = new InventoryServiceException();
11877
              this.cex.read(iprot);
11878
            } else { 
11879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11880
            }
11881
            break;
11882
          default:
11883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11884
        }
11885
        iprot.readFieldEnd();
11886
      }
11887
      iprot.readStructEnd();
11888
      validate();
11889
    }
11890
 
11891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11892
      oprot.writeStructBegin(STRUCT_DESC);
11893
 
11894
      if (this.isSetSuccess()) {
11895
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11896
        {
11897
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11898
          for (long _iter31 : this.success)
11899
          {
11900
            oprot.writeI64(_iter31);
11901
          }
11902
          oprot.writeListEnd();
11903
        }
11904
        oprot.writeFieldEnd();
11905
      } else if (this.isSetCex()) {
11906
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11907
        this.cex.write(oprot);
11908
        oprot.writeFieldEnd();
11909
      }
11910
      oprot.writeFieldStop();
11911
      oprot.writeStructEnd();
11912
    }
11913
 
11914
    @Override
11915
    public String toString() {
11916
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
11917
      boolean first = true;
11918
 
11919
      sb.append("success:");
11920
      if (this.success == null) {
11921
        sb.append("null");
11922
      } else {
11923
        sb.append(this.success);
11924
      }
11925
      first = false;
11926
      if (!first) sb.append(", ");
11927
      sb.append("cex:");
11928
      if (this.cex == null) {
11929
        sb.append("null");
11930
      } else {
11931
        sb.append(this.cex);
11932
      }
11933
      first = false;
11934
      sb.append(")");
11935
      return sb.toString();
11936
    }
11937
 
11938
    public void validate() throws org.apache.thrift.TException {
11939
      // check for required fields
11940
    }
11941
 
11942
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11943
      try {
11944
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11945
      } catch (org.apache.thrift.TException te) {
11946
        throw new java.io.IOException(te);
11947
      }
11948
    }
11949
 
11950
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11951
      try {
11952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11953
      } catch (org.apache.thrift.TException te) {
11954
        throw new java.io.IOException(te);
11955
      }
11956
    }
11957
 
11958
  }
11959
 
5967 rajveer 11960
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
11961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
11962
 
11963
    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);
11964
    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);
11965
    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);
11966
    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);
11967
 
11968
    private long itemId; // required
11969
    private long warehouseId; // required
11970
    private long sourceId; // required
11971
    private long orderId; // required
11972
 
11973
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11974
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11975
      ITEM_ID((short)1, "itemId"),
11976
      WAREHOUSE_ID((short)2, "warehouseId"),
11977
      SOURCE_ID((short)3, "sourceId"),
11978
      ORDER_ID((short)4, "orderId");
11979
 
11980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11981
 
11982
      static {
11983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11984
          byName.put(field.getFieldName(), field);
11985
        }
11986
      }
11987
 
11988
      /**
11989
       * Find the _Fields constant that matches fieldId, or null if its not found.
11990
       */
11991
      public static _Fields findByThriftId(int fieldId) {
11992
        switch(fieldId) {
11993
          case 1: // ITEM_ID
11994
            return ITEM_ID;
11995
          case 2: // WAREHOUSE_ID
11996
            return WAREHOUSE_ID;
11997
          case 3: // SOURCE_ID
11998
            return SOURCE_ID;
11999
          case 4: // ORDER_ID
12000
            return ORDER_ID;
12001
          default:
12002
            return null;
12003
        }
12004
      }
12005
 
12006
      /**
12007
       * Find the _Fields constant that matches fieldId, throwing an exception
12008
       * if it is not found.
12009
       */
12010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12011
        _Fields fields = findByThriftId(fieldId);
12012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12013
        return fields;
12014
      }
12015
 
12016
      /**
12017
       * Find the _Fields constant that matches name, or null if its not found.
12018
       */
12019
      public static _Fields findByName(String name) {
12020
        return byName.get(name);
12021
      }
12022
 
12023
      private final short _thriftId;
12024
      private final String _fieldName;
12025
 
12026
      _Fields(short thriftId, String fieldName) {
12027
        _thriftId = thriftId;
12028
        _fieldName = fieldName;
12029
      }
12030
 
12031
      public short getThriftFieldId() {
12032
        return _thriftId;
12033
      }
12034
 
12035
      public String getFieldName() {
12036
        return _fieldName;
12037
      }
12038
    }
12039
 
12040
    // isset id assignments
12041
    private static final int __ITEMID_ISSET_ID = 0;
12042
    private static final int __WAREHOUSEID_ISSET_ID = 1;
12043
    private static final int __SOURCEID_ISSET_ID = 2;
12044
    private static final int __ORDERID_ISSET_ID = 3;
12045
    private BitSet __isset_bit_vector = new BitSet(4);
12046
 
12047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12048
    static {
12049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12050
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12052
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12054
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12056
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
12060
    }
12061
 
12062
    public isOrderBillable_args() {
12063
    }
12064
 
12065
    public isOrderBillable_args(
12066
      long itemId,
12067
      long warehouseId,
12068
      long sourceId,
12069
      long orderId)
12070
    {
12071
      this();
12072
      this.itemId = itemId;
12073
      setItemIdIsSet(true);
12074
      this.warehouseId = warehouseId;
12075
      setWarehouseIdIsSet(true);
12076
      this.sourceId = sourceId;
12077
      setSourceIdIsSet(true);
12078
      this.orderId = orderId;
12079
      setOrderIdIsSet(true);
12080
    }
12081
 
12082
    /**
12083
     * Performs a deep copy on <i>other</i>.
12084
     */
12085
    public isOrderBillable_args(isOrderBillable_args other) {
12086
      __isset_bit_vector.clear();
12087
      __isset_bit_vector.or(other.__isset_bit_vector);
12088
      this.itemId = other.itemId;
12089
      this.warehouseId = other.warehouseId;
12090
      this.sourceId = other.sourceId;
12091
      this.orderId = other.orderId;
12092
    }
12093
 
12094
    public isOrderBillable_args deepCopy() {
12095
      return new isOrderBillable_args(this);
12096
    }
12097
 
12098
    @Override
12099
    public void clear() {
12100
      setItemIdIsSet(false);
12101
      this.itemId = 0;
12102
      setWarehouseIdIsSet(false);
12103
      this.warehouseId = 0;
12104
      setSourceIdIsSet(false);
12105
      this.sourceId = 0;
12106
      setOrderIdIsSet(false);
12107
      this.orderId = 0;
12108
    }
12109
 
12110
    public long getItemId() {
12111
      return this.itemId;
12112
    }
12113
 
12114
    public void setItemId(long itemId) {
12115
      this.itemId = itemId;
12116
      setItemIdIsSet(true);
12117
    }
12118
 
12119
    public void unsetItemId() {
12120
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12121
    }
12122
 
12123
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12124
    public boolean isSetItemId() {
12125
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12126
    }
12127
 
12128
    public void setItemIdIsSet(boolean value) {
12129
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12130
    }
12131
 
12132
    public long getWarehouseId() {
12133
      return this.warehouseId;
12134
    }
12135
 
12136
    public void setWarehouseId(long warehouseId) {
12137
      this.warehouseId = warehouseId;
12138
      setWarehouseIdIsSet(true);
12139
    }
12140
 
12141
    public void unsetWarehouseId() {
12142
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12143
    }
12144
 
12145
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
12146
    public boolean isSetWarehouseId() {
12147
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12148
    }
12149
 
12150
    public void setWarehouseIdIsSet(boolean value) {
12151
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12152
    }
12153
 
12154
    public long getSourceId() {
12155
      return this.sourceId;
12156
    }
12157
 
12158
    public void setSourceId(long sourceId) {
12159
      this.sourceId = sourceId;
12160
      setSourceIdIsSet(true);
12161
    }
12162
 
12163
    public void unsetSourceId() {
12164
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12165
    }
12166
 
12167
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12168
    public boolean isSetSourceId() {
12169
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12170
    }
12171
 
12172
    public void setSourceIdIsSet(boolean value) {
12173
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12174
    }
12175
 
12176
    public long getOrderId() {
12177
      return this.orderId;
12178
    }
12179
 
12180
    public void setOrderId(long orderId) {
12181
      this.orderId = orderId;
12182
      setOrderIdIsSet(true);
12183
    }
12184
 
12185
    public void unsetOrderId() {
12186
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
12187
    }
12188
 
12189
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
12190
    public boolean isSetOrderId() {
12191
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
12192
    }
12193
 
12194
    public void setOrderIdIsSet(boolean value) {
12195
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
12196
    }
12197
 
12198
    public void setFieldValue(_Fields field, Object value) {
12199
      switch (field) {
12200
      case ITEM_ID:
12201
        if (value == null) {
12202
          unsetItemId();
12203
        } else {
12204
          setItemId((Long)value);
12205
        }
12206
        break;
12207
 
12208
      case WAREHOUSE_ID:
12209
        if (value == null) {
12210
          unsetWarehouseId();
12211
        } else {
12212
          setWarehouseId((Long)value);
12213
        }
12214
        break;
12215
 
12216
      case SOURCE_ID:
12217
        if (value == null) {
12218
          unsetSourceId();
12219
        } else {
12220
          setSourceId((Long)value);
12221
        }
12222
        break;
12223
 
12224
      case ORDER_ID:
12225
        if (value == null) {
12226
          unsetOrderId();
12227
        } else {
12228
          setOrderId((Long)value);
12229
        }
12230
        break;
12231
 
12232
      }
12233
    }
12234
 
12235
    public Object getFieldValue(_Fields field) {
12236
      switch (field) {
12237
      case ITEM_ID:
12238
        return Long.valueOf(getItemId());
12239
 
12240
      case WAREHOUSE_ID:
12241
        return Long.valueOf(getWarehouseId());
12242
 
12243
      case SOURCE_ID:
12244
        return Long.valueOf(getSourceId());
12245
 
12246
      case ORDER_ID:
12247
        return Long.valueOf(getOrderId());
12248
 
12249
      }
12250
      throw new IllegalStateException();
12251
    }
12252
 
12253
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12254
    public boolean isSet(_Fields field) {
12255
      if (field == null) {
12256
        throw new IllegalArgumentException();
12257
      }
12258
 
12259
      switch (field) {
12260
      case ITEM_ID:
12261
        return isSetItemId();
12262
      case WAREHOUSE_ID:
12263
        return isSetWarehouseId();
12264
      case SOURCE_ID:
12265
        return isSetSourceId();
12266
      case ORDER_ID:
12267
        return isSetOrderId();
12268
      }
12269
      throw new IllegalStateException();
12270
    }
12271
 
12272
    @Override
12273
    public boolean equals(Object that) {
12274
      if (that == null)
12275
        return false;
12276
      if (that instanceof isOrderBillable_args)
12277
        return this.equals((isOrderBillable_args)that);
12278
      return false;
12279
    }
12280
 
12281
    public boolean equals(isOrderBillable_args that) {
12282
      if (that == null)
12283
        return false;
12284
 
12285
      boolean this_present_itemId = true;
12286
      boolean that_present_itemId = true;
12287
      if (this_present_itemId || that_present_itemId) {
12288
        if (!(this_present_itemId && that_present_itemId))
12289
          return false;
12290
        if (this.itemId != that.itemId)
12291
          return false;
12292
      }
12293
 
12294
      boolean this_present_warehouseId = true;
12295
      boolean that_present_warehouseId = true;
12296
      if (this_present_warehouseId || that_present_warehouseId) {
12297
        if (!(this_present_warehouseId && that_present_warehouseId))
12298
          return false;
12299
        if (this.warehouseId != that.warehouseId)
12300
          return false;
12301
      }
12302
 
12303
      boolean this_present_sourceId = true;
12304
      boolean that_present_sourceId = true;
12305
      if (this_present_sourceId || that_present_sourceId) {
12306
        if (!(this_present_sourceId && that_present_sourceId))
12307
          return false;
12308
        if (this.sourceId != that.sourceId)
12309
          return false;
12310
      }
12311
 
12312
      boolean this_present_orderId = true;
12313
      boolean that_present_orderId = true;
12314
      if (this_present_orderId || that_present_orderId) {
12315
        if (!(this_present_orderId && that_present_orderId))
12316
          return false;
12317
        if (this.orderId != that.orderId)
12318
          return false;
12319
      }
12320
 
12321
      return true;
12322
    }
12323
 
12324
    @Override
12325
    public int hashCode() {
12326
      return 0;
12327
    }
12328
 
12329
    public int compareTo(isOrderBillable_args other) {
12330
      if (!getClass().equals(other.getClass())) {
12331
        return getClass().getName().compareTo(other.getClass().getName());
12332
      }
12333
 
12334
      int lastComparison = 0;
12335
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
12336
 
12337
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12338
      if (lastComparison != 0) {
12339
        return lastComparison;
12340
      }
12341
      if (isSetItemId()) {
12342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12343
        if (lastComparison != 0) {
12344
          return lastComparison;
12345
        }
12346
      }
12347
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
12348
      if (lastComparison != 0) {
12349
        return lastComparison;
12350
      }
12351
      if (isSetWarehouseId()) {
12352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
12353
        if (lastComparison != 0) {
12354
          return lastComparison;
12355
        }
12356
      }
12357
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12358
      if (lastComparison != 0) {
12359
        return lastComparison;
12360
      }
12361
      if (isSetSourceId()) {
12362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12363
        if (lastComparison != 0) {
12364
          return lastComparison;
12365
        }
12366
      }
12367
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
12368
      if (lastComparison != 0) {
12369
        return lastComparison;
12370
      }
12371
      if (isSetOrderId()) {
12372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
12373
        if (lastComparison != 0) {
12374
          return lastComparison;
12375
        }
12376
      }
12377
      return 0;
12378
    }
12379
 
12380
    public _Fields fieldForId(int fieldId) {
12381
      return _Fields.findByThriftId(fieldId);
12382
    }
12383
 
12384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12385
      org.apache.thrift.protocol.TField field;
12386
      iprot.readStructBegin();
12387
      while (true)
12388
      {
12389
        field = iprot.readFieldBegin();
12390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12391
          break;
12392
        }
12393
        switch (field.id) {
12394
          case 1: // ITEM_ID
12395
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12396
              this.itemId = iprot.readI64();
12397
              setItemIdIsSet(true);
12398
            } else { 
12399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12400
            }
12401
            break;
12402
          case 2: // WAREHOUSE_ID
12403
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12404
              this.warehouseId = iprot.readI64();
12405
              setWarehouseIdIsSet(true);
12406
            } else { 
12407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12408
            }
12409
            break;
12410
          case 3: // SOURCE_ID
12411
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12412
              this.sourceId = iprot.readI64();
12413
              setSourceIdIsSet(true);
12414
            } else { 
12415
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12416
            }
12417
            break;
12418
          case 4: // ORDER_ID
12419
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12420
              this.orderId = iprot.readI64();
12421
              setOrderIdIsSet(true);
12422
            } else { 
12423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12424
            }
12425
            break;
12426
          default:
12427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12428
        }
12429
        iprot.readFieldEnd();
12430
      }
12431
      iprot.readStructEnd();
12432
      validate();
12433
    }
12434
 
12435
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12436
      validate();
12437
 
12438
      oprot.writeStructBegin(STRUCT_DESC);
12439
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12440
      oprot.writeI64(this.itemId);
12441
      oprot.writeFieldEnd();
12442
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12443
      oprot.writeI64(this.warehouseId);
12444
      oprot.writeFieldEnd();
12445
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12446
      oprot.writeI64(this.sourceId);
12447
      oprot.writeFieldEnd();
12448
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
12449
      oprot.writeI64(this.orderId);
12450
      oprot.writeFieldEnd();
12451
      oprot.writeFieldStop();
12452
      oprot.writeStructEnd();
12453
    }
12454
 
12455
    @Override
12456
    public String toString() {
12457
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
12458
      boolean first = true;
12459
 
12460
      sb.append("itemId:");
12461
      sb.append(this.itemId);
12462
      first = false;
12463
      if (!first) sb.append(", ");
12464
      sb.append("warehouseId:");
12465
      sb.append(this.warehouseId);
12466
      first = false;
12467
      if (!first) sb.append(", ");
12468
      sb.append("sourceId:");
12469
      sb.append(this.sourceId);
12470
      first = false;
12471
      if (!first) sb.append(", ");
12472
      sb.append("orderId:");
12473
      sb.append(this.orderId);
12474
      first = false;
12475
      sb.append(")");
12476
      return sb.toString();
12477
    }
12478
 
12479
    public void validate() throws org.apache.thrift.TException {
12480
      // check for required fields
12481
    }
12482
 
12483
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12484
      try {
12485
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12486
      } catch (org.apache.thrift.TException te) {
12487
        throw new java.io.IOException(te);
12488
      }
12489
    }
12490
 
12491
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12492
      try {
12493
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12494
      } catch (org.apache.thrift.TException te) {
12495
        throw new java.io.IOException(te);
12496
      }
12497
    }
12498
 
12499
  }
12500
 
12501
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
12502
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
12503
 
12504
    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);
12505
 
12506
    private boolean success; // required
12507
 
12508
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12509
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12510
      SUCCESS((short)0, "success");
12511
 
12512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12513
 
12514
      static {
12515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12516
          byName.put(field.getFieldName(), field);
12517
        }
12518
      }
12519
 
12520
      /**
12521
       * Find the _Fields constant that matches fieldId, or null if its not found.
12522
       */
12523
      public static _Fields findByThriftId(int fieldId) {
12524
        switch(fieldId) {
12525
          case 0: // SUCCESS
12526
            return SUCCESS;
12527
          default:
12528
            return null;
12529
        }
12530
      }
12531
 
12532
      /**
12533
       * Find the _Fields constant that matches fieldId, throwing an exception
12534
       * if it is not found.
12535
       */
12536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12537
        _Fields fields = findByThriftId(fieldId);
12538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12539
        return fields;
12540
      }
12541
 
12542
      /**
12543
       * Find the _Fields constant that matches name, or null if its not found.
12544
       */
12545
      public static _Fields findByName(String name) {
12546
        return byName.get(name);
12547
      }
12548
 
12549
      private final short _thriftId;
12550
      private final String _fieldName;
12551
 
12552
      _Fields(short thriftId, String fieldName) {
12553
        _thriftId = thriftId;
12554
        _fieldName = fieldName;
12555
      }
12556
 
12557
      public short getThriftFieldId() {
12558
        return _thriftId;
12559
      }
12560
 
12561
      public String getFieldName() {
12562
        return _fieldName;
12563
      }
12564
    }
12565
 
12566
    // isset id assignments
12567
    private static final int __SUCCESS_ISSET_ID = 0;
12568
    private BitSet __isset_bit_vector = new BitSet(1);
12569
 
12570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12571
    static {
12572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12573
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12575
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12576
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
12577
    }
12578
 
12579
    public isOrderBillable_result() {
12580
    }
12581
 
12582
    public isOrderBillable_result(
12583
      boolean success)
12584
    {
12585
      this();
12586
      this.success = success;
12587
      setSuccessIsSet(true);
12588
    }
12589
 
12590
    /**
12591
     * Performs a deep copy on <i>other</i>.
12592
     */
12593
    public isOrderBillable_result(isOrderBillable_result other) {
12594
      __isset_bit_vector.clear();
12595
      __isset_bit_vector.or(other.__isset_bit_vector);
12596
      this.success = other.success;
12597
    }
12598
 
12599
    public isOrderBillable_result deepCopy() {
12600
      return new isOrderBillable_result(this);
12601
    }
12602
 
12603
    @Override
12604
    public void clear() {
12605
      setSuccessIsSet(false);
12606
      this.success = false;
12607
    }
12608
 
12609
    public boolean isSuccess() {
12610
      return this.success;
12611
    }
12612
 
12613
    public void setSuccess(boolean success) {
12614
      this.success = success;
12615
      setSuccessIsSet(true);
12616
    }
12617
 
12618
    public void unsetSuccess() {
12619
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12620
    }
12621
 
12622
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12623
    public boolean isSetSuccess() {
12624
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12625
    }
12626
 
12627
    public void setSuccessIsSet(boolean value) {
12628
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12629
    }
12630
 
12631
    public void setFieldValue(_Fields field, Object value) {
12632
      switch (field) {
12633
      case SUCCESS:
12634
        if (value == null) {
12635
          unsetSuccess();
12636
        } else {
12637
          setSuccess((Boolean)value);
12638
        }
12639
        break;
12640
 
12641
      }
12642
    }
12643
 
12644
    public Object getFieldValue(_Fields field) {
12645
      switch (field) {
12646
      case SUCCESS:
12647
        return Boolean.valueOf(isSuccess());
12648
 
12649
      }
12650
      throw new IllegalStateException();
12651
    }
12652
 
12653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12654
    public boolean isSet(_Fields field) {
12655
      if (field == null) {
12656
        throw new IllegalArgumentException();
12657
      }
12658
 
12659
      switch (field) {
12660
      case SUCCESS:
12661
        return isSetSuccess();
12662
      }
12663
      throw new IllegalStateException();
12664
    }
12665
 
12666
    @Override
12667
    public boolean equals(Object that) {
12668
      if (that == null)
12669
        return false;
12670
      if (that instanceof isOrderBillable_result)
12671
        return this.equals((isOrderBillable_result)that);
12672
      return false;
12673
    }
12674
 
12675
    public boolean equals(isOrderBillable_result that) {
12676
      if (that == null)
12677
        return false;
12678
 
12679
      boolean this_present_success = true;
12680
      boolean that_present_success = true;
12681
      if (this_present_success || that_present_success) {
12682
        if (!(this_present_success && that_present_success))
12683
          return false;
12684
        if (this.success != that.success)
12685
          return false;
12686
      }
12687
 
12688
      return true;
12689
    }
12690
 
12691
    @Override
12692
    public int hashCode() {
12693
      return 0;
12694
    }
12695
 
12696
    public int compareTo(isOrderBillable_result other) {
12697
      if (!getClass().equals(other.getClass())) {
12698
        return getClass().getName().compareTo(other.getClass().getName());
12699
      }
12700
 
12701
      int lastComparison = 0;
12702
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
12703
 
12704
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12705
      if (lastComparison != 0) {
12706
        return lastComparison;
12707
      }
12708
      if (isSetSuccess()) {
12709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12710
        if (lastComparison != 0) {
12711
          return lastComparison;
12712
        }
12713
      }
12714
      return 0;
12715
    }
12716
 
12717
    public _Fields fieldForId(int fieldId) {
12718
      return _Fields.findByThriftId(fieldId);
12719
    }
12720
 
12721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12722
      org.apache.thrift.protocol.TField field;
12723
      iprot.readStructBegin();
12724
      while (true)
12725
      {
12726
        field = iprot.readFieldBegin();
12727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12728
          break;
12729
        }
12730
        switch (field.id) {
12731
          case 0: // SUCCESS
12732
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12733
              this.success = iprot.readBool();
12734
              setSuccessIsSet(true);
12735
            } else { 
12736
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12737
            }
12738
            break;
12739
          default:
12740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12741
        }
12742
        iprot.readFieldEnd();
12743
      }
12744
      iprot.readStructEnd();
12745
      validate();
12746
    }
12747
 
12748
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12749
      oprot.writeStructBegin(STRUCT_DESC);
12750
 
12751
      if (this.isSetSuccess()) {
12752
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12753
        oprot.writeBool(this.success);
12754
        oprot.writeFieldEnd();
12755
      }
12756
      oprot.writeFieldStop();
12757
      oprot.writeStructEnd();
12758
    }
12759
 
12760
    @Override
12761
    public String toString() {
12762
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
12763
      boolean first = true;
12764
 
12765
      sb.append("success:");
12766
      sb.append(this.success);
12767
      first = false;
12768
      sb.append(")");
12769
      return sb.toString();
12770
    }
12771
 
12772
    public void validate() throws org.apache.thrift.TException {
12773
      // check for required fields
12774
    }
12775
 
12776
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12777
      try {
12778
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12779
      } catch (org.apache.thrift.TException te) {
12780
        throw new java.io.IOException(te);
12781
      }
12782
    }
12783
 
12784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12785
      try {
12786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12787
      } catch (org.apache.thrift.TException te) {
12788
        throw new java.io.IOException(te);
12789
      }
12790
    }
12791
 
12792
  }
12793
 
5945 mandeep.dh 12794
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12795
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
12796
 
12797
    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);
12798
    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 12799
    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);
12800
    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);
12801
    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);
12802
    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);
12803
    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 12804
 
12805
    private long itemId; // required
12806
    private long warehouseId; // required
5967 rajveer 12807
    private long sourceId; // required
12808
    private long orderId; // required
12809
    private long createdTimestamp; // required
12810
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 12811
    private double quantity; // required
12812
 
12813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12815
      ITEM_ID((short)1, "itemId"),
12816
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 12817
      SOURCE_ID((short)3, "sourceId"),
12818
      ORDER_ID((short)4, "orderId"),
12819
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
12820
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
12821
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 12822
 
12823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12824
 
12825
      static {
12826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12827
          byName.put(field.getFieldName(), field);
12828
        }
12829
      }
12830
 
12831
      /**
12832
       * Find the _Fields constant that matches fieldId, or null if its not found.
12833
       */
12834
      public static _Fields findByThriftId(int fieldId) {
12835
        switch(fieldId) {
12836
          case 1: // ITEM_ID
12837
            return ITEM_ID;
12838
          case 2: // WAREHOUSE_ID
12839
            return WAREHOUSE_ID;
5967 rajveer 12840
          case 3: // SOURCE_ID
12841
            return SOURCE_ID;
12842
          case 4: // ORDER_ID
12843
            return ORDER_ID;
12844
          case 5: // CREATED_TIMESTAMP
12845
            return CREATED_TIMESTAMP;
12846
          case 6: // PROMISED_SHIPPING_TIMESTAMP
12847
            return PROMISED_SHIPPING_TIMESTAMP;
12848
          case 7: // QUANTITY
5945 mandeep.dh 12849
            return QUANTITY;
12850
          default:
12851
            return null;
12852
        }
12853
      }
12854
 
12855
      /**
12856
       * Find the _Fields constant that matches fieldId, throwing an exception
12857
       * if it is not found.
12858
       */
12859
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12860
        _Fields fields = findByThriftId(fieldId);
12861
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12862
        return fields;
12863
      }
12864
 
12865
      /**
12866
       * Find the _Fields constant that matches name, or null if its not found.
12867
       */
12868
      public static _Fields findByName(String name) {
12869
        return byName.get(name);
12870
      }
12871
 
12872
      private final short _thriftId;
12873
      private final String _fieldName;
12874
 
12875
      _Fields(short thriftId, String fieldName) {
12876
        _thriftId = thriftId;
12877
        _fieldName = fieldName;
12878
      }
12879
 
12880
      public short getThriftFieldId() {
12881
        return _thriftId;
12882
      }
12883
 
12884
      public String getFieldName() {
12885
        return _fieldName;
12886
      }
12887
    }
12888
 
12889
    // isset id assignments
12890
    private static final int __ITEMID_ISSET_ID = 0;
12891
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 12892
    private static final int __SOURCEID_ISSET_ID = 2;
12893
    private static final int __ORDERID_ISSET_ID = 3;
12894
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
12895
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
12896
    private static final int __QUANTITY_ISSET_ID = 6;
12897
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 12898
 
12899
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12900
    static {
12901
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12902
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12903
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12904
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 12906
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12908
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12909
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12910
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12912
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 12914
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12915
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12916
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12917
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
12918
    }
12919
 
12920
    public reserveItemInWarehouse_args() {
12921
    }
12922
 
12923
    public reserveItemInWarehouse_args(
12924
      long itemId,
12925
      long warehouseId,
5967 rajveer 12926
      long sourceId,
12927
      long orderId,
12928
      long createdTimestamp,
12929
      long promisedShippingTimestamp,
5945 mandeep.dh 12930
      double quantity)
12931
    {
12932
      this();
12933
      this.itemId = itemId;
12934
      setItemIdIsSet(true);
12935
      this.warehouseId = warehouseId;
12936
      setWarehouseIdIsSet(true);
5967 rajveer 12937
      this.sourceId = sourceId;
12938
      setSourceIdIsSet(true);
12939
      this.orderId = orderId;
12940
      setOrderIdIsSet(true);
12941
      this.createdTimestamp = createdTimestamp;
12942
      setCreatedTimestampIsSet(true);
12943
      this.promisedShippingTimestamp = promisedShippingTimestamp;
12944
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 12945
      this.quantity = quantity;
12946
      setQuantityIsSet(true);
12947
    }
12948
 
12949
    /**
12950
     * Performs a deep copy on <i>other</i>.
12951
     */
12952
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
12953
      __isset_bit_vector.clear();
12954
      __isset_bit_vector.or(other.__isset_bit_vector);
12955
      this.itemId = other.itemId;
12956
      this.warehouseId = other.warehouseId;
5967 rajveer 12957
      this.sourceId = other.sourceId;
12958
      this.orderId = other.orderId;
12959
      this.createdTimestamp = other.createdTimestamp;
12960
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 12961
      this.quantity = other.quantity;
12962
    }
12963
 
12964
    public reserveItemInWarehouse_args deepCopy() {
12965
      return new reserveItemInWarehouse_args(this);
12966
    }
12967
 
12968
    @Override
12969
    public void clear() {
12970
      setItemIdIsSet(false);
12971
      this.itemId = 0;
12972
      setWarehouseIdIsSet(false);
12973
      this.warehouseId = 0;
5967 rajveer 12974
      setSourceIdIsSet(false);
12975
      this.sourceId = 0;
12976
      setOrderIdIsSet(false);
12977
      this.orderId = 0;
12978
      setCreatedTimestampIsSet(false);
12979
      this.createdTimestamp = 0;
12980
      setPromisedShippingTimestampIsSet(false);
12981
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 12982
      setQuantityIsSet(false);
12983
      this.quantity = 0.0;
12984
    }
12985
 
12986
    public long getItemId() {
12987
      return this.itemId;
12988
    }
12989
 
12990
    public void setItemId(long itemId) {
12991
      this.itemId = itemId;
12992
      setItemIdIsSet(true);
12993
    }
12994
 
12995
    public void unsetItemId() {
12996
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12997
    }
12998
 
12999
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13000
    public boolean isSetItemId() {
13001
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13002
    }
13003
 
13004
    public void setItemIdIsSet(boolean value) {
13005
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13006
    }
13007
 
13008
    public long getWarehouseId() {
13009
      return this.warehouseId;
13010
    }
13011
 
13012
    public void setWarehouseId(long warehouseId) {
13013
      this.warehouseId = warehouseId;
13014
      setWarehouseIdIsSet(true);
13015
    }
13016
 
13017
    public void unsetWarehouseId() {
13018
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13019
    }
13020
 
13021
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13022
    public boolean isSetWarehouseId() {
13023
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13024
    }
13025
 
13026
    public void setWarehouseIdIsSet(boolean value) {
13027
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13028
    }
13029
 
5967 rajveer 13030
    public long getSourceId() {
13031
      return this.sourceId;
13032
    }
13033
 
13034
    public void setSourceId(long sourceId) {
13035
      this.sourceId = sourceId;
13036
      setSourceIdIsSet(true);
13037
    }
13038
 
13039
    public void unsetSourceId() {
13040
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13041
    }
13042
 
13043
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13044
    public boolean isSetSourceId() {
13045
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13046
    }
13047
 
13048
    public void setSourceIdIsSet(boolean value) {
13049
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13050
    }
13051
 
13052
    public long getOrderId() {
13053
      return this.orderId;
13054
    }
13055
 
13056
    public void setOrderId(long orderId) {
13057
      this.orderId = orderId;
13058
      setOrderIdIsSet(true);
13059
    }
13060
 
13061
    public void unsetOrderId() {
13062
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13063
    }
13064
 
13065
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13066
    public boolean isSetOrderId() {
13067
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13068
    }
13069
 
13070
    public void setOrderIdIsSet(boolean value) {
13071
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13072
    }
13073
 
13074
    public long getCreatedTimestamp() {
13075
      return this.createdTimestamp;
13076
    }
13077
 
13078
    public void setCreatedTimestamp(long createdTimestamp) {
13079
      this.createdTimestamp = createdTimestamp;
13080
      setCreatedTimestampIsSet(true);
13081
    }
13082
 
13083
    public void unsetCreatedTimestamp() {
13084
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
13085
    }
13086
 
13087
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
13088
    public boolean isSetCreatedTimestamp() {
13089
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
13090
    }
13091
 
13092
    public void setCreatedTimestampIsSet(boolean value) {
13093
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
13094
    }
13095
 
13096
    public long getPromisedShippingTimestamp() {
13097
      return this.promisedShippingTimestamp;
13098
    }
13099
 
13100
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
13101
      this.promisedShippingTimestamp = promisedShippingTimestamp;
13102
      setPromisedShippingTimestampIsSet(true);
13103
    }
13104
 
13105
    public void unsetPromisedShippingTimestamp() {
13106
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13107
    }
13108
 
13109
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
13110
    public boolean isSetPromisedShippingTimestamp() {
13111
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
13112
    }
13113
 
13114
    public void setPromisedShippingTimestampIsSet(boolean value) {
13115
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
13116
    }
13117
 
5945 mandeep.dh 13118
    public double getQuantity() {
13119
      return this.quantity;
13120
    }
13121
 
13122
    public void setQuantity(double quantity) {
13123
      this.quantity = quantity;
13124
      setQuantityIsSet(true);
13125
    }
13126
 
13127
    public void unsetQuantity() {
13128
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
13129
    }
13130
 
13131
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
13132
    public boolean isSetQuantity() {
13133
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
13134
    }
13135
 
13136
    public void setQuantityIsSet(boolean value) {
13137
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
13138
    }
13139
 
13140
    public void setFieldValue(_Fields field, Object value) {
13141
      switch (field) {
13142
      case ITEM_ID:
13143
        if (value == null) {
13144
          unsetItemId();
13145
        } else {
13146
          setItemId((Long)value);
13147
        }
13148
        break;
13149
 
13150
      case WAREHOUSE_ID:
13151
        if (value == null) {
13152
          unsetWarehouseId();
13153
        } else {
13154
          setWarehouseId((Long)value);
13155
        }
13156
        break;
13157
 
5967 rajveer 13158
      case SOURCE_ID:
13159
        if (value == null) {
13160
          unsetSourceId();
13161
        } else {
13162
          setSourceId((Long)value);
13163
        }
13164
        break;
13165
 
13166
      case ORDER_ID:
13167
        if (value == null) {
13168
          unsetOrderId();
13169
        } else {
13170
          setOrderId((Long)value);
13171
        }
13172
        break;
13173
 
13174
      case CREATED_TIMESTAMP:
13175
        if (value == null) {
13176
          unsetCreatedTimestamp();
13177
        } else {
13178
          setCreatedTimestamp((Long)value);
13179
        }
13180
        break;
13181
 
13182
      case PROMISED_SHIPPING_TIMESTAMP:
13183
        if (value == null) {
13184
          unsetPromisedShippingTimestamp();
13185
        } else {
13186
          setPromisedShippingTimestamp((Long)value);
13187
        }
13188
        break;
13189
 
5945 mandeep.dh 13190
      case QUANTITY:
13191
        if (value == null) {
13192
          unsetQuantity();
13193
        } else {
13194
          setQuantity((Double)value);
13195
        }
13196
        break;
13197
 
13198
      }
13199
    }
13200
 
13201
    public Object getFieldValue(_Fields field) {
13202
      switch (field) {
13203
      case ITEM_ID:
13204
        return Long.valueOf(getItemId());
13205
 
13206
      case WAREHOUSE_ID:
13207
        return Long.valueOf(getWarehouseId());
13208
 
5967 rajveer 13209
      case SOURCE_ID:
13210
        return Long.valueOf(getSourceId());
13211
 
13212
      case ORDER_ID:
13213
        return Long.valueOf(getOrderId());
13214
 
13215
      case CREATED_TIMESTAMP:
13216
        return Long.valueOf(getCreatedTimestamp());
13217
 
13218
      case PROMISED_SHIPPING_TIMESTAMP:
13219
        return Long.valueOf(getPromisedShippingTimestamp());
13220
 
5945 mandeep.dh 13221
      case QUANTITY:
13222
        return Double.valueOf(getQuantity());
13223
 
13224
      }
13225
      throw new IllegalStateException();
13226
    }
13227
 
13228
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13229
    public boolean isSet(_Fields field) {
13230
      if (field == null) {
13231
        throw new IllegalArgumentException();
13232
      }
13233
 
13234
      switch (field) {
13235
      case ITEM_ID:
13236
        return isSetItemId();
13237
      case WAREHOUSE_ID:
13238
        return isSetWarehouseId();
5967 rajveer 13239
      case SOURCE_ID:
13240
        return isSetSourceId();
13241
      case ORDER_ID:
13242
        return isSetOrderId();
13243
      case CREATED_TIMESTAMP:
13244
        return isSetCreatedTimestamp();
13245
      case PROMISED_SHIPPING_TIMESTAMP:
13246
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 13247
      case QUANTITY:
13248
        return isSetQuantity();
13249
      }
13250
      throw new IllegalStateException();
13251
    }
13252
 
13253
    @Override
13254
    public boolean equals(Object that) {
13255
      if (that == null)
13256
        return false;
13257
      if (that instanceof reserveItemInWarehouse_args)
13258
        return this.equals((reserveItemInWarehouse_args)that);
13259
      return false;
13260
    }
13261
 
13262
    public boolean equals(reserveItemInWarehouse_args that) {
13263
      if (that == null)
13264
        return false;
13265
 
13266
      boolean this_present_itemId = true;
13267
      boolean that_present_itemId = true;
13268
      if (this_present_itemId || that_present_itemId) {
13269
        if (!(this_present_itemId && that_present_itemId))
13270
          return false;
13271
        if (this.itemId != that.itemId)
13272
          return false;
13273
      }
13274
 
13275
      boolean this_present_warehouseId = true;
13276
      boolean that_present_warehouseId = true;
13277
      if (this_present_warehouseId || that_present_warehouseId) {
13278
        if (!(this_present_warehouseId && that_present_warehouseId))
13279
          return false;
13280
        if (this.warehouseId != that.warehouseId)
13281
          return false;
13282
      }
13283
 
5967 rajveer 13284
      boolean this_present_sourceId = true;
13285
      boolean that_present_sourceId = true;
13286
      if (this_present_sourceId || that_present_sourceId) {
13287
        if (!(this_present_sourceId && that_present_sourceId))
13288
          return false;
13289
        if (this.sourceId != that.sourceId)
13290
          return false;
13291
      }
13292
 
13293
      boolean this_present_orderId = true;
13294
      boolean that_present_orderId = true;
13295
      if (this_present_orderId || that_present_orderId) {
13296
        if (!(this_present_orderId && that_present_orderId))
13297
          return false;
13298
        if (this.orderId != that.orderId)
13299
          return false;
13300
      }
13301
 
13302
      boolean this_present_createdTimestamp = true;
13303
      boolean that_present_createdTimestamp = true;
13304
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
13305
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
13306
          return false;
13307
        if (this.createdTimestamp != that.createdTimestamp)
13308
          return false;
13309
      }
13310
 
13311
      boolean this_present_promisedShippingTimestamp = true;
13312
      boolean that_present_promisedShippingTimestamp = true;
13313
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
13314
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
13315
          return false;
13316
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
13317
          return false;
13318
      }
13319
 
5945 mandeep.dh 13320
      boolean this_present_quantity = true;
13321
      boolean that_present_quantity = true;
13322
      if (this_present_quantity || that_present_quantity) {
13323
        if (!(this_present_quantity && that_present_quantity))
13324
          return false;
13325
        if (this.quantity != that.quantity)
13326
          return false;
13327
      }
13328
 
13329
      return true;
13330
    }
13331
 
13332
    @Override
13333
    public int hashCode() {
13334
      return 0;
13335
    }
13336
 
13337
    public int compareTo(reserveItemInWarehouse_args other) {
13338
      if (!getClass().equals(other.getClass())) {
13339
        return getClass().getName().compareTo(other.getClass().getName());
13340
      }
13341
 
13342
      int lastComparison = 0;
13343
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
13344
 
13345
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13346
      if (lastComparison != 0) {
13347
        return lastComparison;
13348
      }
13349
      if (isSetItemId()) {
13350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13351
        if (lastComparison != 0) {
13352
          return lastComparison;
13353
        }
13354
      }
13355
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13356
      if (lastComparison != 0) {
13357
        return lastComparison;
13358
      }
13359
      if (isSetWarehouseId()) {
13360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13361
        if (lastComparison != 0) {
13362
          return lastComparison;
13363
        }
13364
      }
5967 rajveer 13365
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13366
      if (lastComparison != 0) {
13367
        return lastComparison;
13368
      }
13369
      if (isSetSourceId()) {
13370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13371
        if (lastComparison != 0) {
13372
          return lastComparison;
13373
        }
13374
      }
13375
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13376
      if (lastComparison != 0) {
13377
        return lastComparison;
13378
      }
13379
      if (isSetOrderId()) {
13380
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13381
        if (lastComparison != 0) {
13382
          return lastComparison;
13383
        }
13384
      }
13385
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
13386
      if (lastComparison != 0) {
13387
        return lastComparison;
13388
      }
13389
      if (isSetCreatedTimestamp()) {
13390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
13391
        if (lastComparison != 0) {
13392
          return lastComparison;
13393
        }
13394
      }
13395
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
13396
      if (lastComparison != 0) {
13397
        return lastComparison;
13398
      }
13399
      if (isSetPromisedShippingTimestamp()) {
13400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
13401
        if (lastComparison != 0) {
13402
          return lastComparison;
13403
        }
13404
      }
5945 mandeep.dh 13405
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
13406
      if (lastComparison != 0) {
13407
        return lastComparison;
13408
      }
13409
      if (isSetQuantity()) {
13410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
13411
        if (lastComparison != 0) {
13412
          return lastComparison;
13413
        }
13414
      }
13415
      return 0;
13416
    }
13417
 
13418
    public _Fields fieldForId(int fieldId) {
13419
      return _Fields.findByThriftId(fieldId);
13420
    }
13421
 
13422
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13423
      org.apache.thrift.protocol.TField field;
13424
      iprot.readStructBegin();
13425
      while (true)
13426
      {
13427
        field = iprot.readFieldBegin();
13428
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13429
          break;
13430
        }
13431
        switch (field.id) {
13432
          case 1: // ITEM_ID
13433
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13434
              this.itemId = iprot.readI64();
13435
              setItemIdIsSet(true);
13436
            } else { 
13437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13438
            }
13439
            break;
13440
          case 2: // WAREHOUSE_ID
13441
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13442
              this.warehouseId = iprot.readI64();
13443
              setWarehouseIdIsSet(true);
13444
            } else { 
13445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13446
            }
13447
            break;
5967 rajveer 13448
          case 3: // SOURCE_ID
13449
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13450
              this.sourceId = iprot.readI64();
13451
              setSourceIdIsSet(true);
13452
            } else { 
13453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13454
            }
13455
            break;
13456
          case 4: // ORDER_ID
13457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13458
              this.orderId = iprot.readI64();
13459
              setOrderIdIsSet(true);
13460
            } else { 
13461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13462
            }
13463
            break;
13464
          case 5: // CREATED_TIMESTAMP
13465
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13466
              this.createdTimestamp = iprot.readI64();
13467
              setCreatedTimestampIsSet(true);
13468
            } else { 
13469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13470
            }
13471
            break;
13472
          case 6: // PROMISED_SHIPPING_TIMESTAMP
13473
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13474
              this.promisedShippingTimestamp = iprot.readI64();
13475
              setPromisedShippingTimestampIsSet(true);
13476
            } else { 
13477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13478
            }
13479
            break;
13480
          case 7: // QUANTITY
5945 mandeep.dh 13481
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
13482
              this.quantity = iprot.readDouble();
13483
              setQuantityIsSet(true);
13484
            } else { 
13485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13486
            }
13487
            break;
13488
          default:
13489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13490
        }
13491
        iprot.readFieldEnd();
13492
      }
13493
      iprot.readStructEnd();
13494
      validate();
13495
    }
13496
 
13497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13498
      validate();
13499
 
13500
      oprot.writeStructBegin(STRUCT_DESC);
13501
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
13502
      oprot.writeI64(this.itemId);
13503
      oprot.writeFieldEnd();
13504
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13505
      oprot.writeI64(this.warehouseId);
13506
      oprot.writeFieldEnd();
5967 rajveer 13507
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
13508
      oprot.writeI64(this.sourceId);
13509
      oprot.writeFieldEnd();
13510
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13511
      oprot.writeI64(this.orderId);
13512
      oprot.writeFieldEnd();
13513
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
13514
      oprot.writeI64(this.createdTimestamp);
13515
      oprot.writeFieldEnd();
13516
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
13517
      oprot.writeI64(this.promisedShippingTimestamp);
13518
      oprot.writeFieldEnd();
5945 mandeep.dh 13519
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
13520
      oprot.writeDouble(this.quantity);
13521
      oprot.writeFieldEnd();
13522
      oprot.writeFieldStop();
13523
      oprot.writeStructEnd();
13524
    }
13525
 
13526
    @Override
13527
    public String toString() {
13528
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
13529
      boolean first = true;
13530
 
13531
      sb.append("itemId:");
13532
      sb.append(this.itemId);
13533
      first = false;
13534
      if (!first) sb.append(", ");
13535
      sb.append("warehouseId:");
13536
      sb.append(this.warehouseId);
13537
      first = false;
13538
      if (!first) sb.append(", ");
5967 rajveer 13539
      sb.append("sourceId:");
13540
      sb.append(this.sourceId);
13541
      first = false;
13542
      if (!first) sb.append(", ");
13543
      sb.append("orderId:");
13544
      sb.append(this.orderId);
13545
      first = false;
13546
      if (!first) sb.append(", ");
13547
      sb.append("createdTimestamp:");
13548
      sb.append(this.createdTimestamp);
13549
      first = false;
13550
      if (!first) sb.append(", ");
13551
      sb.append("promisedShippingTimestamp:");
13552
      sb.append(this.promisedShippingTimestamp);
13553
      first = false;
13554
      if (!first) sb.append(", ");
5945 mandeep.dh 13555
      sb.append("quantity:");
13556
      sb.append(this.quantity);
13557
      first = false;
13558
      sb.append(")");
13559
      return sb.toString();
13560
    }
13561
 
13562
    public void validate() throws org.apache.thrift.TException {
13563
      // check for required fields
13564
    }
13565
 
13566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13567
      try {
13568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13569
      } catch (org.apache.thrift.TException te) {
13570
        throw new java.io.IOException(te);
13571
      }
13572
    }
13573
 
13574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13575
      try {
13576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13577
      } catch (org.apache.thrift.TException te) {
13578
        throw new java.io.IOException(te);
13579
      }
13580
    }
13581
 
13582
  }
13583
 
13584
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
13585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
13586
 
13587
    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);
13588
    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);
13589
 
13590
    private boolean success; // required
13591
    private InventoryServiceException cex; // required
13592
 
13593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13595
      SUCCESS((short)0, "success"),
13596
      CEX((short)1, "cex");
13597
 
13598
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13599
 
13600
      static {
13601
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13602
          byName.put(field.getFieldName(), field);
13603
        }
13604
      }
13605
 
13606
      /**
13607
       * Find the _Fields constant that matches fieldId, or null if its not found.
13608
       */
13609
      public static _Fields findByThriftId(int fieldId) {
13610
        switch(fieldId) {
13611
          case 0: // SUCCESS
13612
            return SUCCESS;
13613
          case 1: // CEX
13614
            return CEX;
13615
          default:
13616
            return null;
13617
        }
13618
      }
13619
 
13620
      /**
13621
       * Find the _Fields constant that matches fieldId, throwing an exception
13622
       * if it is not found.
13623
       */
13624
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13625
        _Fields fields = findByThriftId(fieldId);
13626
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13627
        return fields;
13628
      }
13629
 
13630
      /**
13631
       * Find the _Fields constant that matches name, or null if its not found.
13632
       */
13633
      public static _Fields findByName(String name) {
13634
        return byName.get(name);
13635
      }
13636
 
13637
      private final short _thriftId;
13638
      private final String _fieldName;
13639
 
13640
      _Fields(short thriftId, String fieldName) {
13641
        _thriftId = thriftId;
13642
        _fieldName = fieldName;
13643
      }
13644
 
13645
      public short getThriftFieldId() {
13646
        return _thriftId;
13647
      }
13648
 
13649
      public String getFieldName() {
13650
        return _fieldName;
13651
      }
13652
    }
13653
 
13654
    // isset id assignments
13655
    private static final int __SUCCESS_ISSET_ID = 0;
13656
    private BitSet __isset_bit_vector = new BitSet(1);
13657
 
13658
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13659
    static {
13660
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13661
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13662
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13663
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13664
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13665
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13666
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
13667
    }
13668
 
13669
    public reserveItemInWarehouse_result() {
13670
    }
13671
 
13672
    public reserveItemInWarehouse_result(
13673
      boolean success,
13674
      InventoryServiceException cex)
13675
    {
13676
      this();
13677
      this.success = success;
13678
      setSuccessIsSet(true);
13679
      this.cex = cex;
13680
    }
13681
 
13682
    /**
13683
     * Performs a deep copy on <i>other</i>.
13684
     */
13685
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
13686
      __isset_bit_vector.clear();
13687
      __isset_bit_vector.or(other.__isset_bit_vector);
13688
      this.success = other.success;
13689
      if (other.isSetCex()) {
13690
        this.cex = new InventoryServiceException(other.cex);
13691
      }
13692
    }
13693
 
13694
    public reserveItemInWarehouse_result deepCopy() {
13695
      return new reserveItemInWarehouse_result(this);
13696
    }
13697
 
13698
    @Override
13699
    public void clear() {
13700
      setSuccessIsSet(false);
13701
      this.success = false;
13702
      this.cex = null;
13703
    }
13704
 
13705
    public boolean isSuccess() {
13706
      return this.success;
13707
    }
13708
 
13709
    public void setSuccess(boolean success) {
13710
      this.success = success;
13711
      setSuccessIsSet(true);
13712
    }
13713
 
13714
    public void unsetSuccess() {
13715
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13716
    }
13717
 
13718
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13719
    public boolean isSetSuccess() {
13720
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13721
    }
13722
 
13723
    public void setSuccessIsSet(boolean value) {
13724
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13725
    }
13726
 
13727
    public InventoryServiceException getCex() {
13728
      return this.cex;
13729
    }
13730
 
13731
    public void setCex(InventoryServiceException cex) {
13732
      this.cex = cex;
13733
    }
13734
 
13735
    public void unsetCex() {
13736
      this.cex = null;
13737
    }
13738
 
13739
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13740
    public boolean isSetCex() {
13741
      return this.cex != null;
13742
    }
13743
 
13744
    public void setCexIsSet(boolean value) {
13745
      if (!value) {
13746
        this.cex = null;
13747
      }
13748
    }
13749
 
13750
    public void setFieldValue(_Fields field, Object value) {
13751
      switch (field) {
13752
      case SUCCESS:
13753
        if (value == null) {
13754
          unsetSuccess();
13755
        } else {
13756
          setSuccess((Boolean)value);
13757
        }
13758
        break;
13759
 
13760
      case CEX:
13761
        if (value == null) {
13762
          unsetCex();
13763
        } else {
13764
          setCex((InventoryServiceException)value);
13765
        }
13766
        break;
13767
 
13768
      }
13769
    }
13770
 
13771
    public Object getFieldValue(_Fields field) {
13772
      switch (field) {
13773
      case SUCCESS:
13774
        return Boolean.valueOf(isSuccess());
13775
 
13776
      case CEX:
13777
        return getCex();
13778
 
13779
      }
13780
      throw new IllegalStateException();
13781
    }
13782
 
13783
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13784
    public boolean isSet(_Fields field) {
13785
      if (field == null) {
13786
        throw new IllegalArgumentException();
13787
      }
13788
 
13789
      switch (field) {
13790
      case SUCCESS:
13791
        return isSetSuccess();
13792
      case CEX:
13793
        return isSetCex();
13794
      }
13795
      throw new IllegalStateException();
13796
    }
13797
 
13798
    @Override
13799
    public boolean equals(Object that) {
13800
      if (that == null)
13801
        return false;
13802
      if (that instanceof reserveItemInWarehouse_result)
13803
        return this.equals((reserveItemInWarehouse_result)that);
13804
      return false;
13805
    }
13806
 
13807
    public boolean equals(reserveItemInWarehouse_result that) {
13808
      if (that == null)
13809
        return false;
13810
 
13811
      boolean this_present_success = true;
13812
      boolean that_present_success = true;
13813
      if (this_present_success || that_present_success) {
13814
        if (!(this_present_success && that_present_success))
13815
          return false;
13816
        if (this.success != that.success)
13817
          return false;
13818
      }
13819
 
13820
      boolean this_present_cex = true && this.isSetCex();
13821
      boolean that_present_cex = true && that.isSetCex();
13822
      if (this_present_cex || that_present_cex) {
13823
        if (!(this_present_cex && that_present_cex))
13824
          return false;
13825
        if (!this.cex.equals(that.cex))
13826
          return false;
13827
      }
13828
 
13829
      return true;
13830
    }
13831
 
13832
    @Override
13833
    public int hashCode() {
13834
      return 0;
13835
    }
13836
 
13837
    public int compareTo(reserveItemInWarehouse_result other) {
13838
      if (!getClass().equals(other.getClass())) {
13839
        return getClass().getName().compareTo(other.getClass().getName());
13840
      }
13841
 
13842
      int lastComparison = 0;
13843
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
13844
 
13845
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13846
      if (lastComparison != 0) {
13847
        return lastComparison;
13848
      }
13849
      if (isSetSuccess()) {
13850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13851
        if (lastComparison != 0) {
13852
          return lastComparison;
13853
        }
13854
      }
13855
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13856
      if (lastComparison != 0) {
13857
        return lastComparison;
13858
      }
13859
      if (isSetCex()) {
13860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13861
        if (lastComparison != 0) {
13862
          return lastComparison;
13863
        }
13864
      }
13865
      return 0;
13866
    }
13867
 
13868
    public _Fields fieldForId(int fieldId) {
13869
      return _Fields.findByThriftId(fieldId);
13870
    }
13871
 
13872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13873
      org.apache.thrift.protocol.TField field;
13874
      iprot.readStructBegin();
13875
      while (true)
13876
      {
13877
        field = iprot.readFieldBegin();
13878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13879
          break;
13880
        }
13881
        switch (field.id) {
13882
          case 0: // SUCCESS
13883
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13884
              this.success = iprot.readBool();
13885
              setSuccessIsSet(true);
13886
            } else { 
13887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13888
            }
13889
            break;
13890
          case 1: // CEX
13891
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13892
              this.cex = new InventoryServiceException();
13893
              this.cex.read(iprot);
13894
            } else { 
13895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13896
            }
13897
            break;
13898
          default:
13899
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13900
        }
13901
        iprot.readFieldEnd();
13902
      }
13903
      iprot.readStructEnd();
13904
      validate();
13905
    }
13906
 
13907
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13908
      oprot.writeStructBegin(STRUCT_DESC);
13909
 
13910
      if (this.isSetSuccess()) {
13911
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13912
        oprot.writeBool(this.success);
13913
        oprot.writeFieldEnd();
13914
      } else if (this.isSetCex()) {
13915
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13916
        this.cex.write(oprot);
13917
        oprot.writeFieldEnd();
13918
      }
13919
      oprot.writeFieldStop();
13920
      oprot.writeStructEnd();
13921
    }
13922
 
13923
    @Override
13924
    public String toString() {
13925
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
13926
      boolean first = true;
13927
 
13928
      sb.append("success:");
13929
      sb.append(this.success);
13930
      first = false;
13931
      if (!first) sb.append(", ");
13932
      sb.append("cex:");
13933
      if (this.cex == null) {
13934
        sb.append("null");
13935
      } else {
13936
        sb.append(this.cex);
13937
      }
13938
      first = false;
13939
      sb.append(")");
13940
      return sb.toString();
13941
    }
13942
 
13943
    public void validate() throws org.apache.thrift.TException {
13944
      // check for required fields
13945
    }
13946
 
13947
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13948
      try {
13949
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13950
      } catch (org.apache.thrift.TException te) {
13951
        throw new java.io.IOException(te);
13952
      }
13953
    }
13954
 
13955
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13956
      try {
13957
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13958
      } catch (org.apache.thrift.TException te) {
13959
        throw new java.io.IOException(te);
13960
      }
13961
    }
13962
 
13963
  }
13964
 
13965
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
13966
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
13967
 
13968
    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);
13969
    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 13970
    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);
13971
    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);
13972
    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 13973
 
13974
    private long itemId; // required
13975
    private long warehouseId; // required
5967 rajveer 13976
    private long sourceId; // required
13977
    private long orderId; // required
5945 mandeep.dh 13978
    private double quantity; // required
13979
 
13980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13982
      ITEM_ID((short)1, "itemId"),
13983
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 13984
      SOURCE_ID((short)3, "sourceId"),
13985
      ORDER_ID((short)4, "orderId"),
13986
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 13987
 
13988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13989
 
13990
      static {
13991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13992
          byName.put(field.getFieldName(), field);
13993
        }
13994
      }
13995
 
13996
      /**
13997
       * Find the _Fields constant that matches fieldId, or null if its not found.
13998
       */
13999
      public static _Fields findByThriftId(int fieldId) {
14000
        switch(fieldId) {
14001
          case 1: // ITEM_ID
14002
            return ITEM_ID;
14003
          case 2: // WAREHOUSE_ID
14004
            return WAREHOUSE_ID;
5967 rajveer 14005
          case 3: // SOURCE_ID
14006
            return SOURCE_ID;
14007
          case 4: // ORDER_ID
14008
            return ORDER_ID;
14009
          case 5: // QUANTITY
5945 mandeep.dh 14010
            return QUANTITY;
14011
          default:
14012
            return null;
14013
        }
14014
      }
14015
 
14016
      /**
14017
       * Find the _Fields constant that matches fieldId, throwing an exception
14018
       * if it is not found.
14019
       */
14020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14021
        _Fields fields = findByThriftId(fieldId);
14022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14023
        return fields;
14024
      }
14025
 
14026
      /**
14027
       * Find the _Fields constant that matches name, or null if its not found.
14028
       */
14029
      public static _Fields findByName(String name) {
14030
        return byName.get(name);
14031
      }
14032
 
14033
      private final short _thriftId;
14034
      private final String _fieldName;
14035
 
14036
      _Fields(short thriftId, String fieldName) {
14037
        _thriftId = thriftId;
14038
        _fieldName = fieldName;
14039
      }
14040
 
14041
      public short getThriftFieldId() {
14042
        return _thriftId;
14043
      }
14044
 
14045
      public String getFieldName() {
14046
        return _fieldName;
14047
      }
14048
    }
14049
 
14050
    // isset id assignments
14051
    private static final int __ITEMID_ISSET_ID = 0;
14052
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14053
    private static final int __SOURCEID_ISSET_ID = 2;
14054
    private static final int __ORDERID_ISSET_ID = 3;
14055
    private static final int __QUANTITY_ISSET_ID = 4;
14056
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 14057
 
14058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14059
    static {
14060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14061
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14063
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14064
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14065
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14067
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14068
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14069
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
14073
    }
14074
 
14075
    public reduceReservationCount_args() {
14076
    }
14077
 
14078
    public reduceReservationCount_args(
14079
      long itemId,
14080
      long warehouseId,
5967 rajveer 14081
      long sourceId,
14082
      long orderId,
5945 mandeep.dh 14083
      double quantity)
14084
    {
14085
      this();
14086
      this.itemId = itemId;
14087
      setItemIdIsSet(true);
14088
      this.warehouseId = warehouseId;
14089
      setWarehouseIdIsSet(true);
5967 rajveer 14090
      this.sourceId = sourceId;
14091
      setSourceIdIsSet(true);
14092
      this.orderId = orderId;
14093
      setOrderIdIsSet(true);
5945 mandeep.dh 14094
      this.quantity = quantity;
14095
      setQuantityIsSet(true);
14096
    }
14097
 
14098
    /**
14099
     * Performs a deep copy on <i>other</i>.
14100
     */
14101
    public reduceReservationCount_args(reduceReservationCount_args other) {
14102
      __isset_bit_vector.clear();
14103
      __isset_bit_vector.or(other.__isset_bit_vector);
14104
      this.itemId = other.itemId;
14105
      this.warehouseId = other.warehouseId;
5967 rajveer 14106
      this.sourceId = other.sourceId;
14107
      this.orderId = other.orderId;
5945 mandeep.dh 14108
      this.quantity = other.quantity;
14109
    }
14110
 
14111
    public reduceReservationCount_args deepCopy() {
14112
      return new reduceReservationCount_args(this);
14113
    }
14114
 
14115
    @Override
14116
    public void clear() {
14117
      setItemIdIsSet(false);
14118
      this.itemId = 0;
14119
      setWarehouseIdIsSet(false);
14120
      this.warehouseId = 0;
5967 rajveer 14121
      setSourceIdIsSet(false);
14122
      this.sourceId = 0;
14123
      setOrderIdIsSet(false);
14124
      this.orderId = 0;
5945 mandeep.dh 14125
      setQuantityIsSet(false);
14126
      this.quantity = 0.0;
14127
    }
14128
 
14129
    public long getItemId() {
14130
      return this.itemId;
14131
    }
14132
 
14133
    public void setItemId(long itemId) {
14134
      this.itemId = itemId;
14135
      setItemIdIsSet(true);
14136
    }
14137
 
14138
    public void unsetItemId() {
14139
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14140
    }
14141
 
14142
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14143
    public boolean isSetItemId() {
14144
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14145
    }
14146
 
14147
    public void setItemIdIsSet(boolean value) {
14148
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14149
    }
14150
 
14151
    public long getWarehouseId() {
14152
      return this.warehouseId;
14153
    }
14154
 
14155
    public void setWarehouseId(long warehouseId) {
14156
      this.warehouseId = warehouseId;
14157
      setWarehouseIdIsSet(true);
14158
    }
14159
 
14160
    public void unsetWarehouseId() {
14161
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14162
    }
14163
 
14164
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14165
    public boolean isSetWarehouseId() {
14166
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14167
    }
14168
 
14169
    public void setWarehouseIdIsSet(boolean value) {
14170
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14171
    }
14172
 
5967 rajveer 14173
    public long getSourceId() {
14174
      return this.sourceId;
14175
    }
14176
 
14177
    public void setSourceId(long sourceId) {
14178
      this.sourceId = sourceId;
14179
      setSourceIdIsSet(true);
14180
    }
14181
 
14182
    public void unsetSourceId() {
14183
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14184
    }
14185
 
14186
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14187
    public boolean isSetSourceId() {
14188
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14189
    }
14190
 
14191
    public void setSourceIdIsSet(boolean value) {
14192
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14193
    }
14194
 
14195
    public long getOrderId() {
14196
      return this.orderId;
14197
    }
14198
 
14199
    public void setOrderId(long orderId) {
14200
      this.orderId = orderId;
14201
      setOrderIdIsSet(true);
14202
    }
14203
 
14204
    public void unsetOrderId() {
14205
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14206
    }
14207
 
14208
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14209
    public boolean isSetOrderId() {
14210
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14211
    }
14212
 
14213
    public void setOrderIdIsSet(boolean value) {
14214
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14215
    }
14216
 
5945 mandeep.dh 14217
    public double getQuantity() {
14218
      return this.quantity;
14219
    }
14220
 
14221
    public void setQuantity(double quantity) {
14222
      this.quantity = quantity;
14223
      setQuantityIsSet(true);
14224
    }
14225
 
14226
    public void unsetQuantity() {
14227
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14228
    }
14229
 
14230
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14231
    public boolean isSetQuantity() {
14232
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14233
    }
14234
 
14235
    public void setQuantityIsSet(boolean value) {
14236
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14237
    }
14238
 
14239
    public void setFieldValue(_Fields field, Object value) {
14240
      switch (field) {
14241
      case ITEM_ID:
14242
        if (value == null) {
14243
          unsetItemId();
14244
        } else {
14245
          setItemId((Long)value);
14246
        }
14247
        break;
14248
 
14249
      case WAREHOUSE_ID:
14250
        if (value == null) {
14251
          unsetWarehouseId();
14252
        } else {
14253
          setWarehouseId((Long)value);
14254
        }
14255
        break;
14256
 
5967 rajveer 14257
      case SOURCE_ID:
14258
        if (value == null) {
14259
          unsetSourceId();
14260
        } else {
14261
          setSourceId((Long)value);
14262
        }
14263
        break;
14264
 
14265
      case ORDER_ID:
14266
        if (value == null) {
14267
          unsetOrderId();
14268
        } else {
14269
          setOrderId((Long)value);
14270
        }
14271
        break;
14272
 
5945 mandeep.dh 14273
      case QUANTITY:
14274
        if (value == null) {
14275
          unsetQuantity();
14276
        } else {
14277
          setQuantity((Double)value);
14278
        }
14279
        break;
14280
 
14281
      }
14282
    }
14283
 
14284
    public Object getFieldValue(_Fields field) {
14285
      switch (field) {
14286
      case ITEM_ID:
14287
        return Long.valueOf(getItemId());
14288
 
14289
      case WAREHOUSE_ID:
14290
        return Long.valueOf(getWarehouseId());
14291
 
5967 rajveer 14292
      case SOURCE_ID:
14293
        return Long.valueOf(getSourceId());
14294
 
14295
      case ORDER_ID:
14296
        return Long.valueOf(getOrderId());
14297
 
5945 mandeep.dh 14298
      case QUANTITY:
14299
        return Double.valueOf(getQuantity());
14300
 
14301
      }
14302
      throw new IllegalStateException();
14303
    }
14304
 
14305
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14306
    public boolean isSet(_Fields field) {
14307
      if (field == null) {
14308
        throw new IllegalArgumentException();
14309
      }
14310
 
14311
      switch (field) {
14312
      case ITEM_ID:
14313
        return isSetItemId();
14314
      case WAREHOUSE_ID:
14315
        return isSetWarehouseId();
5967 rajveer 14316
      case SOURCE_ID:
14317
        return isSetSourceId();
14318
      case ORDER_ID:
14319
        return isSetOrderId();
5945 mandeep.dh 14320
      case QUANTITY:
14321
        return isSetQuantity();
14322
      }
14323
      throw new IllegalStateException();
14324
    }
14325
 
14326
    @Override
14327
    public boolean equals(Object that) {
14328
      if (that == null)
14329
        return false;
14330
      if (that instanceof reduceReservationCount_args)
14331
        return this.equals((reduceReservationCount_args)that);
14332
      return false;
14333
    }
14334
 
14335
    public boolean equals(reduceReservationCount_args that) {
14336
      if (that == null)
14337
        return false;
14338
 
14339
      boolean this_present_itemId = true;
14340
      boolean that_present_itemId = true;
14341
      if (this_present_itemId || that_present_itemId) {
14342
        if (!(this_present_itemId && that_present_itemId))
14343
          return false;
14344
        if (this.itemId != that.itemId)
14345
          return false;
14346
      }
14347
 
14348
      boolean this_present_warehouseId = true;
14349
      boolean that_present_warehouseId = true;
14350
      if (this_present_warehouseId || that_present_warehouseId) {
14351
        if (!(this_present_warehouseId && that_present_warehouseId))
14352
          return false;
14353
        if (this.warehouseId != that.warehouseId)
14354
          return false;
14355
      }
14356
 
5967 rajveer 14357
      boolean this_present_sourceId = true;
14358
      boolean that_present_sourceId = true;
14359
      if (this_present_sourceId || that_present_sourceId) {
14360
        if (!(this_present_sourceId && that_present_sourceId))
14361
          return false;
14362
        if (this.sourceId != that.sourceId)
14363
          return false;
14364
      }
14365
 
14366
      boolean this_present_orderId = true;
14367
      boolean that_present_orderId = true;
14368
      if (this_present_orderId || that_present_orderId) {
14369
        if (!(this_present_orderId && that_present_orderId))
14370
          return false;
14371
        if (this.orderId != that.orderId)
14372
          return false;
14373
      }
14374
 
5945 mandeep.dh 14375
      boolean this_present_quantity = true;
14376
      boolean that_present_quantity = true;
14377
      if (this_present_quantity || that_present_quantity) {
14378
        if (!(this_present_quantity && that_present_quantity))
14379
          return false;
14380
        if (this.quantity != that.quantity)
14381
          return false;
14382
      }
14383
 
14384
      return true;
14385
    }
14386
 
14387
    @Override
14388
    public int hashCode() {
14389
      return 0;
14390
    }
14391
 
14392
    public int compareTo(reduceReservationCount_args other) {
14393
      if (!getClass().equals(other.getClass())) {
14394
        return getClass().getName().compareTo(other.getClass().getName());
14395
      }
14396
 
14397
      int lastComparison = 0;
14398
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
14399
 
14400
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14401
      if (lastComparison != 0) {
14402
        return lastComparison;
14403
      }
14404
      if (isSetItemId()) {
14405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14406
        if (lastComparison != 0) {
14407
          return lastComparison;
14408
        }
14409
      }
14410
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14411
      if (lastComparison != 0) {
14412
        return lastComparison;
14413
      }
14414
      if (isSetWarehouseId()) {
14415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14416
        if (lastComparison != 0) {
14417
          return lastComparison;
14418
        }
14419
      }
5967 rajveer 14420
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14421
      if (lastComparison != 0) {
14422
        return lastComparison;
14423
      }
14424
      if (isSetSourceId()) {
14425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14426
        if (lastComparison != 0) {
14427
          return lastComparison;
14428
        }
14429
      }
14430
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14431
      if (lastComparison != 0) {
14432
        return lastComparison;
14433
      }
14434
      if (isSetOrderId()) {
14435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14436
        if (lastComparison != 0) {
14437
          return lastComparison;
14438
        }
14439
      }
5945 mandeep.dh 14440
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14441
      if (lastComparison != 0) {
14442
        return lastComparison;
14443
      }
14444
      if (isSetQuantity()) {
14445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14446
        if (lastComparison != 0) {
14447
          return lastComparison;
14448
        }
14449
      }
14450
      return 0;
14451
    }
14452
 
14453
    public _Fields fieldForId(int fieldId) {
14454
      return _Fields.findByThriftId(fieldId);
14455
    }
14456
 
14457
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14458
      org.apache.thrift.protocol.TField field;
14459
      iprot.readStructBegin();
14460
      while (true)
14461
      {
14462
        field = iprot.readFieldBegin();
14463
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14464
          break;
14465
        }
14466
        switch (field.id) {
14467
          case 1: // ITEM_ID
14468
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14469
              this.itemId = iprot.readI64();
14470
              setItemIdIsSet(true);
14471
            } else { 
14472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14473
            }
14474
            break;
14475
          case 2: // WAREHOUSE_ID
14476
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14477
              this.warehouseId = iprot.readI64();
14478
              setWarehouseIdIsSet(true);
14479
            } else { 
14480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14481
            }
14482
            break;
5967 rajveer 14483
          case 3: // SOURCE_ID
14484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14485
              this.sourceId = iprot.readI64();
14486
              setSourceIdIsSet(true);
14487
            } else { 
14488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14489
            }
14490
            break;
14491
          case 4: // ORDER_ID
14492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14493
              this.orderId = iprot.readI64();
14494
              setOrderIdIsSet(true);
14495
            } else { 
14496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14497
            }
14498
            break;
14499
          case 5: // QUANTITY
5945 mandeep.dh 14500
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14501
              this.quantity = iprot.readDouble();
14502
              setQuantityIsSet(true);
14503
            } else { 
14504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14505
            }
14506
            break;
14507
          default:
14508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14509
        }
14510
        iprot.readFieldEnd();
14511
      }
14512
      iprot.readStructEnd();
14513
      validate();
14514
    }
14515
 
14516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14517
      validate();
14518
 
14519
      oprot.writeStructBegin(STRUCT_DESC);
14520
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14521
      oprot.writeI64(this.itemId);
14522
      oprot.writeFieldEnd();
14523
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14524
      oprot.writeI64(this.warehouseId);
14525
      oprot.writeFieldEnd();
5967 rajveer 14526
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14527
      oprot.writeI64(this.sourceId);
14528
      oprot.writeFieldEnd();
14529
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14530
      oprot.writeI64(this.orderId);
14531
      oprot.writeFieldEnd();
5945 mandeep.dh 14532
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14533
      oprot.writeDouble(this.quantity);
14534
      oprot.writeFieldEnd();
14535
      oprot.writeFieldStop();
14536
      oprot.writeStructEnd();
14537
    }
14538
 
14539
    @Override
14540
    public String toString() {
14541
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
14542
      boolean first = true;
14543
 
14544
      sb.append("itemId:");
14545
      sb.append(this.itemId);
14546
      first = false;
14547
      if (!first) sb.append(", ");
14548
      sb.append("warehouseId:");
14549
      sb.append(this.warehouseId);
14550
      first = false;
14551
      if (!first) sb.append(", ");
5967 rajveer 14552
      sb.append("sourceId:");
14553
      sb.append(this.sourceId);
14554
      first = false;
14555
      if (!first) sb.append(", ");
14556
      sb.append("orderId:");
14557
      sb.append(this.orderId);
14558
      first = false;
14559
      if (!first) sb.append(", ");
5945 mandeep.dh 14560
      sb.append("quantity:");
14561
      sb.append(this.quantity);
14562
      first = false;
14563
      sb.append(")");
14564
      return sb.toString();
14565
    }
14566
 
14567
    public void validate() throws org.apache.thrift.TException {
14568
      // check for required fields
14569
    }
14570
 
14571
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14572
      try {
14573
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14574
      } catch (org.apache.thrift.TException te) {
14575
        throw new java.io.IOException(te);
14576
      }
14577
    }
14578
 
14579
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14580
      try {
14581
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14582
      } catch (org.apache.thrift.TException te) {
14583
        throw new java.io.IOException(te);
14584
      }
14585
    }
14586
 
14587
  }
14588
 
14589
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
14590
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
14591
 
14592
    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);
14593
    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);
14594
 
14595
    private boolean success; // required
14596
    private InventoryServiceException cex; // required
14597
 
14598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14599
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14600
      SUCCESS((short)0, "success"),
14601
      CEX((short)1, "cex");
14602
 
14603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14604
 
14605
      static {
14606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14607
          byName.put(field.getFieldName(), field);
14608
        }
14609
      }
14610
 
14611
      /**
14612
       * Find the _Fields constant that matches fieldId, or null if its not found.
14613
       */
14614
      public static _Fields findByThriftId(int fieldId) {
14615
        switch(fieldId) {
14616
          case 0: // SUCCESS
14617
            return SUCCESS;
14618
          case 1: // CEX
14619
            return CEX;
14620
          default:
14621
            return null;
14622
        }
14623
      }
14624
 
14625
      /**
14626
       * Find the _Fields constant that matches fieldId, throwing an exception
14627
       * if it is not found.
14628
       */
14629
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14630
        _Fields fields = findByThriftId(fieldId);
14631
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14632
        return fields;
14633
      }
14634
 
14635
      /**
14636
       * Find the _Fields constant that matches name, or null if its not found.
14637
       */
14638
      public static _Fields findByName(String name) {
14639
        return byName.get(name);
14640
      }
14641
 
14642
      private final short _thriftId;
14643
      private final String _fieldName;
14644
 
14645
      _Fields(short thriftId, String fieldName) {
14646
        _thriftId = thriftId;
14647
        _fieldName = fieldName;
14648
      }
14649
 
14650
      public short getThriftFieldId() {
14651
        return _thriftId;
14652
      }
14653
 
14654
      public String getFieldName() {
14655
        return _fieldName;
14656
      }
14657
    }
14658
 
14659
    // isset id assignments
14660
    private static final int __SUCCESS_ISSET_ID = 0;
14661
    private BitSet __isset_bit_vector = new BitSet(1);
14662
 
14663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14664
    static {
14665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14666
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14668
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
14672
    }
14673
 
14674
    public reduceReservationCount_result() {
14675
    }
14676
 
14677
    public reduceReservationCount_result(
14678
      boolean success,
14679
      InventoryServiceException cex)
14680
    {
14681
      this();
14682
      this.success = success;
14683
      setSuccessIsSet(true);
14684
      this.cex = cex;
14685
    }
14686
 
14687
    /**
14688
     * Performs a deep copy on <i>other</i>.
14689
     */
14690
    public reduceReservationCount_result(reduceReservationCount_result other) {
14691
      __isset_bit_vector.clear();
14692
      __isset_bit_vector.or(other.__isset_bit_vector);
14693
      this.success = other.success;
14694
      if (other.isSetCex()) {
14695
        this.cex = new InventoryServiceException(other.cex);
14696
      }
14697
    }
14698
 
14699
    public reduceReservationCount_result deepCopy() {
14700
      return new reduceReservationCount_result(this);
14701
    }
14702
 
14703
    @Override
14704
    public void clear() {
14705
      setSuccessIsSet(false);
14706
      this.success = false;
14707
      this.cex = null;
14708
    }
14709
 
14710
    public boolean isSuccess() {
14711
      return this.success;
14712
    }
14713
 
14714
    public void setSuccess(boolean success) {
14715
      this.success = success;
14716
      setSuccessIsSet(true);
14717
    }
14718
 
14719
    public void unsetSuccess() {
14720
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14721
    }
14722
 
14723
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14724
    public boolean isSetSuccess() {
14725
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14726
    }
14727
 
14728
    public void setSuccessIsSet(boolean value) {
14729
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14730
    }
14731
 
14732
    public InventoryServiceException getCex() {
14733
      return this.cex;
14734
    }
14735
 
14736
    public void setCex(InventoryServiceException cex) {
14737
      this.cex = cex;
14738
    }
14739
 
14740
    public void unsetCex() {
14741
      this.cex = null;
14742
    }
14743
 
14744
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14745
    public boolean isSetCex() {
14746
      return this.cex != null;
14747
    }
14748
 
14749
    public void setCexIsSet(boolean value) {
14750
      if (!value) {
14751
        this.cex = null;
14752
      }
14753
    }
14754
 
14755
    public void setFieldValue(_Fields field, Object value) {
14756
      switch (field) {
14757
      case SUCCESS:
14758
        if (value == null) {
14759
          unsetSuccess();
14760
        } else {
14761
          setSuccess((Boolean)value);
14762
        }
14763
        break;
14764
 
14765
      case CEX:
14766
        if (value == null) {
14767
          unsetCex();
14768
        } else {
14769
          setCex((InventoryServiceException)value);
14770
        }
14771
        break;
14772
 
14773
      }
14774
    }
14775
 
14776
    public Object getFieldValue(_Fields field) {
14777
      switch (field) {
14778
      case SUCCESS:
14779
        return Boolean.valueOf(isSuccess());
14780
 
14781
      case CEX:
14782
        return getCex();
14783
 
14784
      }
14785
      throw new IllegalStateException();
14786
    }
14787
 
14788
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14789
    public boolean isSet(_Fields field) {
14790
      if (field == null) {
14791
        throw new IllegalArgumentException();
14792
      }
14793
 
14794
      switch (field) {
14795
      case SUCCESS:
14796
        return isSetSuccess();
14797
      case CEX:
14798
        return isSetCex();
14799
      }
14800
      throw new IllegalStateException();
14801
    }
14802
 
14803
    @Override
14804
    public boolean equals(Object that) {
14805
      if (that == null)
14806
        return false;
14807
      if (that instanceof reduceReservationCount_result)
14808
        return this.equals((reduceReservationCount_result)that);
14809
      return false;
14810
    }
14811
 
14812
    public boolean equals(reduceReservationCount_result that) {
14813
      if (that == null)
14814
        return false;
14815
 
14816
      boolean this_present_success = true;
14817
      boolean that_present_success = true;
14818
      if (this_present_success || that_present_success) {
14819
        if (!(this_present_success && that_present_success))
14820
          return false;
14821
        if (this.success != that.success)
14822
          return false;
14823
      }
14824
 
14825
      boolean this_present_cex = true && this.isSetCex();
14826
      boolean that_present_cex = true && that.isSetCex();
14827
      if (this_present_cex || that_present_cex) {
14828
        if (!(this_present_cex && that_present_cex))
14829
          return false;
14830
        if (!this.cex.equals(that.cex))
14831
          return false;
14832
      }
14833
 
14834
      return true;
14835
    }
14836
 
14837
    @Override
14838
    public int hashCode() {
14839
      return 0;
14840
    }
14841
 
14842
    public int compareTo(reduceReservationCount_result other) {
14843
      if (!getClass().equals(other.getClass())) {
14844
        return getClass().getName().compareTo(other.getClass().getName());
14845
      }
14846
 
14847
      int lastComparison = 0;
14848
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
14849
 
14850
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14851
      if (lastComparison != 0) {
14852
        return lastComparison;
14853
      }
14854
      if (isSetSuccess()) {
14855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14856
        if (lastComparison != 0) {
14857
          return lastComparison;
14858
        }
14859
      }
14860
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14861
      if (lastComparison != 0) {
14862
        return lastComparison;
14863
      }
14864
      if (isSetCex()) {
14865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14866
        if (lastComparison != 0) {
14867
          return lastComparison;
14868
        }
14869
      }
14870
      return 0;
14871
    }
14872
 
14873
    public _Fields fieldForId(int fieldId) {
14874
      return _Fields.findByThriftId(fieldId);
14875
    }
14876
 
14877
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14878
      org.apache.thrift.protocol.TField field;
14879
      iprot.readStructBegin();
14880
      while (true)
14881
      {
14882
        field = iprot.readFieldBegin();
14883
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14884
          break;
14885
        }
14886
        switch (field.id) {
14887
          case 0: // SUCCESS
14888
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14889
              this.success = iprot.readBool();
14890
              setSuccessIsSet(true);
14891
            } else { 
14892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14893
            }
14894
            break;
14895
          case 1: // CEX
14896
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14897
              this.cex = new InventoryServiceException();
14898
              this.cex.read(iprot);
14899
            } else { 
14900
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14901
            }
14902
            break;
14903
          default:
14904
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14905
        }
14906
        iprot.readFieldEnd();
14907
      }
14908
      iprot.readStructEnd();
14909
      validate();
14910
    }
14911
 
14912
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14913
      oprot.writeStructBegin(STRUCT_DESC);
14914
 
14915
      if (this.isSetSuccess()) {
14916
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14917
        oprot.writeBool(this.success);
14918
        oprot.writeFieldEnd();
14919
      } else if (this.isSetCex()) {
14920
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14921
        this.cex.write(oprot);
14922
        oprot.writeFieldEnd();
14923
      }
14924
      oprot.writeFieldStop();
14925
      oprot.writeStructEnd();
14926
    }
14927
 
14928
    @Override
14929
    public String toString() {
14930
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
14931
      boolean first = true;
14932
 
14933
      sb.append("success:");
14934
      sb.append(this.success);
14935
      first = false;
14936
      if (!first) sb.append(", ");
14937
      sb.append("cex:");
14938
      if (this.cex == null) {
14939
        sb.append("null");
14940
      } else {
14941
        sb.append(this.cex);
14942
      }
14943
      first = false;
14944
      sb.append(")");
14945
      return sb.toString();
14946
    }
14947
 
14948
    public void validate() throws org.apache.thrift.TException {
14949
      // check for required fields
14950
    }
14951
 
14952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14953
      try {
14954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14955
      } catch (org.apache.thrift.TException te) {
14956
        throw new java.io.IOException(te);
14957
      }
14958
    }
14959
 
14960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14961
      try {
14962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14963
      } catch (org.apache.thrift.TException te) {
14964
        throw new java.io.IOException(te);
14965
      }
14966
    }
14967
 
14968
  }
14969
 
14970
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
14971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
14972
 
14973
    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);
14974
    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);
14975
 
14976
    private long itemId; // required
14977
    private long vendorId; // required
14978
 
14979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14981
      ITEM_ID((short)1, "itemId"),
14982
      VENDOR_ID((short)2, "vendorId");
14983
 
14984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14985
 
14986
      static {
14987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14988
          byName.put(field.getFieldName(), field);
14989
        }
14990
      }
14991
 
14992
      /**
14993
       * Find the _Fields constant that matches fieldId, or null if its not found.
14994
       */
14995
      public static _Fields findByThriftId(int fieldId) {
14996
        switch(fieldId) {
14997
          case 1: // ITEM_ID
14998
            return ITEM_ID;
14999
          case 2: // VENDOR_ID
15000
            return VENDOR_ID;
15001
          default:
15002
            return null;
15003
        }
15004
      }
15005
 
15006
      /**
15007
       * Find the _Fields constant that matches fieldId, throwing an exception
15008
       * if it is not found.
15009
       */
15010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15011
        _Fields fields = findByThriftId(fieldId);
15012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15013
        return fields;
15014
      }
15015
 
15016
      /**
15017
       * Find the _Fields constant that matches name, or null if its not found.
15018
       */
15019
      public static _Fields findByName(String name) {
15020
        return byName.get(name);
15021
      }
15022
 
15023
      private final short _thriftId;
15024
      private final String _fieldName;
15025
 
15026
      _Fields(short thriftId, String fieldName) {
15027
        _thriftId = thriftId;
15028
        _fieldName = fieldName;
15029
      }
15030
 
15031
      public short getThriftFieldId() {
15032
        return _thriftId;
15033
      }
15034
 
15035
      public String getFieldName() {
15036
        return _fieldName;
15037
      }
15038
    }
15039
 
15040
    // isset id assignments
15041
    private static final int __ITEMID_ISSET_ID = 0;
15042
    private static final int __VENDORID_ISSET_ID = 1;
15043
    private BitSet __isset_bit_vector = new BitSet(2);
15044
 
15045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15046
    static {
15047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15048
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15050
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
15054
    }
15055
 
15056
    public getItemPricing_args() {
15057
    }
15058
 
15059
    public getItemPricing_args(
15060
      long itemId,
15061
      long vendorId)
15062
    {
15063
      this();
15064
      this.itemId = itemId;
15065
      setItemIdIsSet(true);
15066
      this.vendorId = vendorId;
15067
      setVendorIdIsSet(true);
15068
    }
15069
 
15070
    /**
15071
     * Performs a deep copy on <i>other</i>.
15072
     */
15073
    public getItemPricing_args(getItemPricing_args other) {
15074
      __isset_bit_vector.clear();
15075
      __isset_bit_vector.or(other.__isset_bit_vector);
15076
      this.itemId = other.itemId;
15077
      this.vendorId = other.vendorId;
15078
    }
15079
 
15080
    public getItemPricing_args deepCopy() {
15081
      return new getItemPricing_args(this);
15082
    }
15083
 
15084
    @Override
15085
    public void clear() {
15086
      setItemIdIsSet(false);
15087
      this.itemId = 0;
15088
      setVendorIdIsSet(false);
15089
      this.vendorId = 0;
15090
    }
15091
 
15092
    public long getItemId() {
15093
      return this.itemId;
15094
    }
15095
 
15096
    public void setItemId(long itemId) {
15097
      this.itemId = itemId;
15098
      setItemIdIsSet(true);
15099
    }
15100
 
15101
    public void unsetItemId() {
15102
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15103
    }
15104
 
15105
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15106
    public boolean isSetItemId() {
15107
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15108
    }
15109
 
15110
    public void setItemIdIsSet(boolean value) {
15111
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15112
    }
15113
 
15114
    public long getVendorId() {
15115
      return this.vendorId;
15116
    }
15117
 
15118
    public void setVendorId(long vendorId) {
15119
      this.vendorId = vendorId;
15120
      setVendorIdIsSet(true);
15121
    }
15122
 
15123
    public void unsetVendorId() {
15124
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
15125
    }
15126
 
15127
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
15128
    public boolean isSetVendorId() {
15129
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
15130
    }
15131
 
15132
    public void setVendorIdIsSet(boolean value) {
15133
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
15134
    }
15135
 
15136
    public void setFieldValue(_Fields field, Object value) {
15137
      switch (field) {
15138
      case ITEM_ID:
15139
        if (value == null) {
15140
          unsetItemId();
15141
        } else {
15142
          setItemId((Long)value);
15143
        }
15144
        break;
15145
 
15146
      case VENDOR_ID:
15147
        if (value == null) {
15148
          unsetVendorId();
15149
        } else {
15150
          setVendorId((Long)value);
15151
        }
15152
        break;
15153
 
15154
      }
15155
    }
15156
 
15157
    public Object getFieldValue(_Fields field) {
15158
      switch (field) {
15159
      case ITEM_ID:
15160
        return Long.valueOf(getItemId());
15161
 
15162
      case VENDOR_ID:
15163
        return Long.valueOf(getVendorId());
15164
 
15165
      }
15166
      throw new IllegalStateException();
15167
    }
15168
 
15169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15170
    public boolean isSet(_Fields field) {
15171
      if (field == null) {
15172
        throw new IllegalArgumentException();
15173
      }
15174
 
15175
      switch (field) {
15176
      case ITEM_ID:
15177
        return isSetItemId();
15178
      case VENDOR_ID:
15179
        return isSetVendorId();
15180
      }
15181
      throw new IllegalStateException();
15182
    }
15183
 
15184
    @Override
15185
    public boolean equals(Object that) {
15186
      if (that == null)
15187
        return false;
15188
      if (that instanceof getItemPricing_args)
15189
        return this.equals((getItemPricing_args)that);
15190
      return false;
15191
    }
15192
 
15193
    public boolean equals(getItemPricing_args that) {
15194
      if (that == null)
15195
        return false;
15196
 
15197
      boolean this_present_itemId = true;
15198
      boolean that_present_itemId = true;
15199
      if (this_present_itemId || that_present_itemId) {
15200
        if (!(this_present_itemId && that_present_itemId))
15201
          return false;
15202
        if (this.itemId != that.itemId)
15203
          return false;
15204
      }
15205
 
15206
      boolean this_present_vendorId = true;
15207
      boolean that_present_vendorId = true;
15208
      if (this_present_vendorId || that_present_vendorId) {
15209
        if (!(this_present_vendorId && that_present_vendorId))
15210
          return false;
15211
        if (this.vendorId != that.vendorId)
15212
          return false;
15213
      }
15214
 
15215
      return true;
15216
    }
15217
 
15218
    @Override
15219
    public int hashCode() {
15220
      return 0;
15221
    }
15222
 
15223
    public int compareTo(getItemPricing_args other) {
15224
      if (!getClass().equals(other.getClass())) {
15225
        return getClass().getName().compareTo(other.getClass().getName());
15226
      }
15227
 
15228
      int lastComparison = 0;
15229
      getItemPricing_args typedOther = (getItemPricing_args)other;
15230
 
15231
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15232
      if (lastComparison != 0) {
15233
        return lastComparison;
15234
      }
15235
      if (isSetItemId()) {
15236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15237
        if (lastComparison != 0) {
15238
          return lastComparison;
15239
        }
15240
      }
15241
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
15242
      if (lastComparison != 0) {
15243
        return lastComparison;
15244
      }
15245
      if (isSetVendorId()) {
15246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
15247
        if (lastComparison != 0) {
15248
          return lastComparison;
15249
        }
15250
      }
15251
      return 0;
15252
    }
15253
 
15254
    public _Fields fieldForId(int fieldId) {
15255
      return _Fields.findByThriftId(fieldId);
15256
    }
15257
 
15258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15259
      org.apache.thrift.protocol.TField field;
15260
      iprot.readStructBegin();
15261
      while (true)
15262
      {
15263
        field = iprot.readFieldBegin();
15264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15265
          break;
15266
        }
15267
        switch (field.id) {
15268
          case 1: // ITEM_ID
15269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15270
              this.itemId = iprot.readI64();
15271
              setItemIdIsSet(true);
15272
            } else { 
15273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15274
            }
15275
            break;
15276
          case 2: // VENDOR_ID
15277
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15278
              this.vendorId = iprot.readI64();
15279
              setVendorIdIsSet(true);
15280
            } else { 
15281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15282
            }
15283
            break;
15284
          default:
15285
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15286
        }
15287
        iprot.readFieldEnd();
15288
      }
15289
      iprot.readStructEnd();
15290
      validate();
15291
    }
15292
 
15293
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15294
      validate();
15295
 
15296
      oprot.writeStructBegin(STRUCT_DESC);
15297
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15298
      oprot.writeI64(this.itemId);
15299
      oprot.writeFieldEnd();
15300
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
15301
      oprot.writeI64(this.vendorId);
15302
      oprot.writeFieldEnd();
15303
      oprot.writeFieldStop();
15304
      oprot.writeStructEnd();
15305
    }
15306
 
15307
    @Override
15308
    public String toString() {
15309
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
15310
      boolean first = true;
15311
 
15312
      sb.append("itemId:");
15313
      sb.append(this.itemId);
15314
      first = false;
15315
      if (!first) sb.append(", ");
15316
      sb.append("vendorId:");
15317
      sb.append(this.vendorId);
15318
      first = false;
15319
      sb.append(")");
15320
      return sb.toString();
15321
    }
15322
 
15323
    public void validate() throws org.apache.thrift.TException {
15324
      // check for required fields
15325
    }
15326
 
15327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15328
      try {
15329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15330
      } catch (org.apache.thrift.TException te) {
15331
        throw new java.io.IOException(te);
15332
      }
15333
    }
15334
 
15335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15336
      try {
15337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15338
      } catch (org.apache.thrift.TException te) {
15339
        throw new java.io.IOException(te);
15340
      }
15341
    }
15342
 
15343
  }
15344
 
15345
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
15346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
15347
 
15348
    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);
15349
    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);
15350
 
15351
    private VendorItemPricing success; // required
15352
    private InventoryServiceException cex; // required
15353
 
15354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15356
      SUCCESS((short)0, "success"),
15357
      CEX((short)1, "cex");
15358
 
15359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15360
 
15361
      static {
15362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15363
          byName.put(field.getFieldName(), field);
15364
        }
15365
      }
15366
 
15367
      /**
15368
       * Find the _Fields constant that matches fieldId, or null if its not found.
15369
       */
15370
      public static _Fields findByThriftId(int fieldId) {
15371
        switch(fieldId) {
15372
          case 0: // SUCCESS
15373
            return SUCCESS;
15374
          case 1: // CEX
15375
            return CEX;
15376
          default:
15377
            return null;
15378
        }
15379
      }
15380
 
15381
      /**
15382
       * Find the _Fields constant that matches fieldId, throwing an exception
15383
       * if it is not found.
15384
       */
15385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15386
        _Fields fields = findByThriftId(fieldId);
15387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15388
        return fields;
15389
      }
15390
 
15391
      /**
15392
       * Find the _Fields constant that matches name, or null if its not found.
15393
       */
15394
      public static _Fields findByName(String name) {
15395
        return byName.get(name);
15396
      }
15397
 
15398
      private final short _thriftId;
15399
      private final String _fieldName;
15400
 
15401
      _Fields(short thriftId, String fieldName) {
15402
        _thriftId = thriftId;
15403
        _fieldName = fieldName;
15404
      }
15405
 
15406
      public short getThriftFieldId() {
15407
        return _thriftId;
15408
      }
15409
 
15410
      public String getFieldName() {
15411
        return _fieldName;
15412
      }
15413
    }
15414
 
15415
    // isset id assignments
15416
 
15417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15418
    static {
15419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15421
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
15422
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
15426
    }
15427
 
15428
    public getItemPricing_result() {
15429
    }
15430
 
15431
    public getItemPricing_result(
15432
      VendorItemPricing success,
15433
      InventoryServiceException cex)
15434
    {
15435
      this();
15436
      this.success = success;
15437
      this.cex = cex;
15438
    }
15439
 
15440
    /**
15441
     * Performs a deep copy on <i>other</i>.
15442
     */
15443
    public getItemPricing_result(getItemPricing_result other) {
15444
      if (other.isSetSuccess()) {
15445
        this.success = new VendorItemPricing(other.success);
15446
      }
15447
      if (other.isSetCex()) {
15448
        this.cex = new InventoryServiceException(other.cex);
15449
      }
15450
    }
15451
 
15452
    public getItemPricing_result deepCopy() {
15453
      return new getItemPricing_result(this);
15454
    }
15455
 
15456
    @Override
15457
    public void clear() {
15458
      this.success = null;
15459
      this.cex = null;
15460
    }
15461
 
15462
    public VendorItemPricing getSuccess() {
15463
      return this.success;
15464
    }
15465
 
15466
    public void setSuccess(VendorItemPricing success) {
15467
      this.success = success;
15468
    }
15469
 
15470
    public void unsetSuccess() {
15471
      this.success = null;
15472
    }
15473
 
15474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15475
    public boolean isSetSuccess() {
15476
      return this.success != null;
15477
    }
15478
 
15479
    public void setSuccessIsSet(boolean value) {
15480
      if (!value) {
15481
        this.success = null;
15482
      }
15483
    }
15484
 
15485
    public InventoryServiceException getCex() {
15486
      return this.cex;
15487
    }
15488
 
15489
    public void setCex(InventoryServiceException cex) {
15490
      this.cex = cex;
15491
    }
15492
 
15493
    public void unsetCex() {
15494
      this.cex = null;
15495
    }
15496
 
15497
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15498
    public boolean isSetCex() {
15499
      return this.cex != null;
15500
    }
15501
 
15502
    public void setCexIsSet(boolean value) {
15503
      if (!value) {
15504
        this.cex = null;
15505
      }
15506
    }
15507
 
15508
    public void setFieldValue(_Fields field, Object value) {
15509
      switch (field) {
15510
      case SUCCESS:
15511
        if (value == null) {
15512
          unsetSuccess();
15513
        } else {
15514
          setSuccess((VendorItemPricing)value);
15515
        }
15516
        break;
15517
 
15518
      case CEX:
15519
        if (value == null) {
15520
          unsetCex();
15521
        } else {
15522
          setCex((InventoryServiceException)value);
15523
        }
15524
        break;
15525
 
15526
      }
15527
    }
15528
 
15529
    public Object getFieldValue(_Fields field) {
15530
      switch (field) {
15531
      case SUCCESS:
15532
        return getSuccess();
15533
 
15534
      case CEX:
15535
        return getCex();
15536
 
15537
      }
15538
      throw new IllegalStateException();
15539
    }
15540
 
15541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15542
    public boolean isSet(_Fields field) {
15543
      if (field == null) {
15544
        throw new IllegalArgumentException();
15545
      }
15546
 
15547
      switch (field) {
15548
      case SUCCESS:
15549
        return isSetSuccess();
15550
      case CEX:
15551
        return isSetCex();
15552
      }
15553
      throw new IllegalStateException();
15554
    }
15555
 
15556
    @Override
15557
    public boolean equals(Object that) {
15558
      if (that == null)
15559
        return false;
15560
      if (that instanceof getItemPricing_result)
15561
        return this.equals((getItemPricing_result)that);
15562
      return false;
15563
    }
15564
 
15565
    public boolean equals(getItemPricing_result that) {
15566
      if (that == null)
15567
        return false;
15568
 
15569
      boolean this_present_success = true && this.isSetSuccess();
15570
      boolean that_present_success = true && that.isSetSuccess();
15571
      if (this_present_success || that_present_success) {
15572
        if (!(this_present_success && that_present_success))
15573
          return false;
15574
        if (!this.success.equals(that.success))
15575
          return false;
15576
      }
15577
 
15578
      boolean this_present_cex = true && this.isSetCex();
15579
      boolean that_present_cex = true && that.isSetCex();
15580
      if (this_present_cex || that_present_cex) {
15581
        if (!(this_present_cex && that_present_cex))
15582
          return false;
15583
        if (!this.cex.equals(that.cex))
15584
          return false;
15585
      }
15586
 
15587
      return true;
15588
    }
15589
 
15590
    @Override
15591
    public int hashCode() {
15592
      return 0;
15593
    }
15594
 
15595
    public int compareTo(getItemPricing_result other) {
15596
      if (!getClass().equals(other.getClass())) {
15597
        return getClass().getName().compareTo(other.getClass().getName());
15598
      }
15599
 
15600
      int lastComparison = 0;
15601
      getItemPricing_result typedOther = (getItemPricing_result)other;
15602
 
15603
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15604
      if (lastComparison != 0) {
15605
        return lastComparison;
15606
      }
15607
      if (isSetSuccess()) {
15608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15609
        if (lastComparison != 0) {
15610
          return lastComparison;
15611
        }
15612
      }
15613
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15614
      if (lastComparison != 0) {
15615
        return lastComparison;
15616
      }
15617
      if (isSetCex()) {
15618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15619
        if (lastComparison != 0) {
15620
          return lastComparison;
15621
        }
15622
      }
15623
      return 0;
15624
    }
15625
 
15626
    public _Fields fieldForId(int fieldId) {
15627
      return _Fields.findByThriftId(fieldId);
15628
    }
15629
 
15630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15631
      org.apache.thrift.protocol.TField field;
15632
      iprot.readStructBegin();
15633
      while (true)
15634
      {
15635
        field = iprot.readFieldBegin();
15636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15637
          break;
15638
        }
15639
        switch (field.id) {
15640
          case 0: // SUCCESS
15641
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15642
              this.success = new VendorItemPricing();
15643
              this.success.read(iprot);
15644
            } else { 
15645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15646
            }
15647
            break;
15648
          case 1: // CEX
15649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15650
              this.cex = new InventoryServiceException();
15651
              this.cex.read(iprot);
15652
            } else { 
15653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15654
            }
15655
            break;
15656
          default:
15657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15658
        }
15659
        iprot.readFieldEnd();
15660
      }
15661
      iprot.readStructEnd();
15662
      validate();
15663
    }
15664
 
15665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15666
      oprot.writeStructBegin(STRUCT_DESC);
15667
 
15668
      if (this.isSetSuccess()) {
15669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15670
        this.success.write(oprot);
15671
        oprot.writeFieldEnd();
15672
      } else if (this.isSetCex()) {
15673
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15674
        this.cex.write(oprot);
15675
        oprot.writeFieldEnd();
15676
      }
15677
      oprot.writeFieldStop();
15678
      oprot.writeStructEnd();
15679
    }
15680
 
15681
    @Override
15682
    public String toString() {
15683
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
15684
      boolean first = true;
15685
 
15686
      sb.append("success:");
15687
      if (this.success == null) {
15688
        sb.append("null");
15689
      } else {
15690
        sb.append(this.success);
15691
      }
15692
      first = false;
15693
      if (!first) sb.append(", ");
15694
      sb.append("cex:");
15695
      if (this.cex == null) {
15696
        sb.append("null");
15697
      } else {
15698
        sb.append(this.cex);
15699
      }
15700
      first = false;
15701
      sb.append(")");
15702
      return sb.toString();
15703
    }
15704
 
15705
    public void validate() throws org.apache.thrift.TException {
15706
      // check for required fields
15707
    }
15708
 
15709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15710
      try {
15711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15712
      } catch (org.apache.thrift.TException te) {
15713
        throw new java.io.IOException(te);
15714
      }
15715
    }
15716
 
15717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15718
      try {
15719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15720
      } catch (org.apache.thrift.TException te) {
15721
        throw new java.io.IOException(te);
15722
      }
15723
    }
15724
 
15725
  }
15726
 
15727
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
15728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
15729
 
15730
    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);
15731
 
15732
    private long itemId; // required
15733
 
15734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15736
      ITEM_ID((short)1, "itemId");
15737
 
15738
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15739
 
15740
      static {
15741
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15742
          byName.put(field.getFieldName(), field);
15743
        }
15744
      }
15745
 
15746
      /**
15747
       * Find the _Fields constant that matches fieldId, or null if its not found.
15748
       */
15749
      public static _Fields findByThriftId(int fieldId) {
15750
        switch(fieldId) {
15751
          case 1: // ITEM_ID
15752
            return ITEM_ID;
15753
          default:
15754
            return null;
15755
        }
15756
      }
15757
 
15758
      /**
15759
       * Find the _Fields constant that matches fieldId, throwing an exception
15760
       * if it is not found.
15761
       */
15762
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15763
        _Fields fields = findByThriftId(fieldId);
15764
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15765
        return fields;
15766
      }
15767
 
15768
      /**
15769
       * Find the _Fields constant that matches name, or null if its not found.
15770
       */
15771
      public static _Fields findByName(String name) {
15772
        return byName.get(name);
15773
      }
15774
 
15775
      private final short _thriftId;
15776
      private final String _fieldName;
15777
 
15778
      _Fields(short thriftId, String fieldName) {
15779
        _thriftId = thriftId;
15780
        _fieldName = fieldName;
15781
      }
15782
 
15783
      public short getThriftFieldId() {
15784
        return _thriftId;
15785
      }
15786
 
15787
      public String getFieldName() {
15788
        return _fieldName;
15789
      }
15790
    }
15791
 
15792
    // isset id assignments
15793
    private static final int __ITEMID_ISSET_ID = 0;
15794
    private BitSet __isset_bit_vector = new BitSet(1);
15795
 
15796
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15797
    static {
15798
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15799
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
15803
    }
15804
 
15805
    public getAllItemPricing_args() {
15806
    }
15807
 
15808
    public getAllItemPricing_args(
15809
      long itemId)
15810
    {
15811
      this();
15812
      this.itemId = itemId;
15813
      setItemIdIsSet(true);
15814
    }
15815
 
15816
    /**
15817
     * Performs a deep copy on <i>other</i>.
15818
     */
15819
    public getAllItemPricing_args(getAllItemPricing_args other) {
15820
      __isset_bit_vector.clear();
15821
      __isset_bit_vector.or(other.__isset_bit_vector);
15822
      this.itemId = other.itemId;
15823
    }
15824
 
15825
    public getAllItemPricing_args deepCopy() {
15826
      return new getAllItemPricing_args(this);
15827
    }
15828
 
15829
    @Override
15830
    public void clear() {
15831
      setItemIdIsSet(false);
15832
      this.itemId = 0;
15833
    }
15834
 
15835
    public long getItemId() {
15836
      return this.itemId;
15837
    }
15838
 
15839
    public void setItemId(long itemId) {
15840
      this.itemId = itemId;
15841
      setItemIdIsSet(true);
15842
    }
15843
 
15844
    public void unsetItemId() {
15845
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15846
    }
15847
 
15848
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15849
    public boolean isSetItemId() {
15850
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15851
    }
15852
 
15853
    public void setItemIdIsSet(boolean value) {
15854
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15855
    }
15856
 
15857
    public void setFieldValue(_Fields field, Object value) {
15858
      switch (field) {
15859
      case ITEM_ID:
15860
        if (value == null) {
15861
          unsetItemId();
15862
        } else {
15863
          setItemId((Long)value);
15864
        }
15865
        break;
15866
 
15867
      }
15868
    }
15869
 
15870
    public Object getFieldValue(_Fields field) {
15871
      switch (field) {
15872
      case ITEM_ID:
15873
        return Long.valueOf(getItemId());
15874
 
15875
      }
15876
      throw new IllegalStateException();
15877
    }
15878
 
15879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15880
    public boolean isSet(_Fields field) {
15881
      if (field == null) {
15882
        throw new IllegalArgumentException();
15883
      }
15884
 
15885
      switch (field) {
15886
      case ITEM_ID:
15887
        return isSetItemId();
15888
      }
15889
      throw new IllegalStateException();
15890
    }
15891
 
15892
    @Override
15893
    public boolean equals(Object that) {
15894
      if (that == null)
15895
        return false;
15896
      if (that instanceof getAllItemPricing_args)
15897
        return this.equals((getAllItemPricing_args)that);
15898
      return false;
15899
    }
15900
 
15901
    public boolean equals(getAllItemPricing_args that) {
15902
      if (that == null)
15903
        return false;
15904
 
15905
      boolean this_present_itemId = true;
15906
      boolean that_present_itemId = true;
15907
      if (this_present_itemId || that_present_itemId) {
15908
        if (!(this_present_itemId && that_present_itemId))
15909
          return false;
15910
        if (this.itemId != that.itemId)
15911
          return false;
15912
      }
15913
 
15914
      return true;
15915
    }
15916
 
15917
    @Override
15918
    public int hashCode() {
15919
      return 0;
15920
    }
15921
 
15922
    public int compareTo(getAllItemPricing_args other) {
15923
      if (!getClass().equals(other.getClass())) {
15924
        return getClass().getName().compareTo(other.getClass().getName());
15925
      }
15926
 
15927
      int lastComparison = 0;
15928
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
15929
 
15930
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15931
      if (lastComparison != 0) {
15932
        return lastComparison;
15933
      }
15934
      if (isSetItemId()) {
15935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15936
        if (lastComparison != 0) {
15937
          return lastComparison;
15938
        }
15939
      }
15940
      return 0;
15941
    }
15942
 
15943
    public _Fields fieldForId(int fieldId) {
15944
      return _Fields.findByThriftId(fieldId);
15945
    }
15946
 
15947
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15948
      org.apache.thrift.protocol.TField field;
15949
      iprot.readStructBegin();
15950
      while (true)
15951
      {
15952
        field = iprot.readFieldBegin();
15953
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15954
          break;
15955
        }
15956
        switch (field.id) {
15957
          case 1: // ITEM_ID
15958
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15959
              this.itemId = iprot.readI64();
15960
              setItemIdIsSet(true);
15961
            } else { 
15962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15963
            }
15964
            break;
15965
          default:
15966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15967
        }
15968
        iprot.readFieldEnd();
15969
      }
15970
      iprot.readStructEnd();
15971
      validate();
15972
    }
15973
 
15974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15975
      validate();
15976
 
15977
      oprot.writeStructBegin(STRUCT_DESC);
15978
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15979
      oprot.writeI64(this.itemId);
15980
      oprot.writeFieldEnd();
15981
      oprot.writeFieldStop();
15982
      oprot.writeStructEnd();
15983
    }
15984
 
15985
    @Override
15986
    public String toString() {
15987
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
15988
      boolean first = true;
15989
 
15990
      sb.append("itemId:");
15991
      sb.append(this.itemId);
15992
      first = false;
15993
      sb.append(")");
15994
      return sb.toString();
15995
    }
15996
 
15997
    public void validate() throws org.apache.thrift.TException {
15998
      // check for required fields
15999
    }
16000
 
16001
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16002
      try {
16003
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16004
      } catch (org.apache.thrift.TException te) {
16005
        throw new java.io.IOException(te);
16006
      }
16007
    }
16008
 
16009
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16010
      try {
16011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16012
      } catch (org.apache.thrift.TException te) {
16013
        throw new java.io.IOException(te);
16014
      }
16015
    }
16016
 
16017
  }
16018
 
16019
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
16021
 
16022
    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);
16023
    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);
16024
 
16025
    private List<VendorItemPricing> success; // required
16026
    private InventoryServiceException cex; // required
16027
 
16028
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16029
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16030
      SUCCESS((short)0, "success"),
16031
      CEX((short)1, "cex");
16032
 
16033
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16034
 
16035
      static {
16036
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16037
          byName.put(field.getFieldName(), field);
16038
        }
16039
      }
16040
 
16041
      /**
16042
       * Find the _Fields constant that matches fieldId, or null if its not found.
16043
       */
16044
      public static _Fields findByThriftId(int fieldId) {
16045
        switch(fieldId) {
16046
          case 0: // SUCCESS
16047
            return SUCCESS;
16048
          case 1: // CEX
16049
            return CEX;
16050
          default:
16051
            return null;
16052
        }
16053
      }
16054
 
16055
      /**
16056
       * Find the _Fields constant that matches fieldId, throwing an exception
16057
       * if it is not found.
16058
       */
16059
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16060
        _Fields fields = findByThriftId(fieldId);
16061
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16062
        return fields;
16063
      }
16064
 
16065
      /**
16066
       * Find the _Fields constant that matches name, or null if its not found.
16067
       */
16068
      public static _Fields findByName(String name) {
16069
        return byName.get(name);
16070
      }
16071
 
16072
      private final short _thriftId;
16073
      private final String _fieldName;
16074
 
16075
      _Fields(short thriftId, String fieldName) {
16076
        _thriftId = thriftId;
16077
        _fieldName = fieldName;
16078
      }
16079
 
16080
      public short getThriftFieldId() {
16081
        return _thriftId;
16082
      }
16083
 
16084
      public String getFieldName() {
16085
        return _fieldName;
16086
      }
16087
    }
16088
 
16089
    // isset id assignments
16090
 
16091
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16092
    static {
16093
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16094
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16095
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16096
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
16097
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
16101
    }
16102
 
16103
    public getAllItemPricing_result() {
16104
    }
16105
 
16106
    public getAllItemPricing_result(
16107
      List<VendorItemPricing> success,
16108
      InventoryServiceException cex)
16109
    {
16110
      this();
16111
      this.success = success;
16112
      this.cex = cex;
16113
    }
16114
 
16115
    /**
16116
     * Performs a deep copy on <i>other</i>.
16117
     */
16118
    public getAllItemPricing_result(getAllItemPricing_result other) {
16119
      if (other.isSetSuccess()) {
16120
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
16121
        for (VendorItemPricing other_element : other.success) {
16122
          __this__success.add(new VendorItemPricing(other_element));
16123
        }
16124
        this.success = __this__success;
16125
      }
16126
      if (other.isSetCex()) {
16127
        this.cex = new InventoryServiceException(other.cex);
16128
      }
16129
    }
16130
 
16131
    public getAllItemPricing_result deepCopy() {
16132
      return new getAllItemPricing_result(this);
16133
    }
16134
 
16135
    @Override
16136
    public void clear() {
16137
      this.success = null;
16138
      this.cex = null;
16139
    }
16140
 
16141
    public int getSuccessSize() {
16142
      return (this.success == null) ? 0 : this.success.size();
16143
    }
16144
 
16145
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
16146
      return (this.success == null) ? null : this.success.iterator();
16147
    }
16148
 
16149
    public void addToSuccess(VendorItemPricing elem) {
16150
      if (this.success == null) {
16151
        this.success = new ArrayList<VendorItemPricing>();
16152
      }
16153
      this.success.add(elem);
16154
    }
16155
 
16156
    public List<VendorItemPricing> getSuccess() {
16157
      return this.success;
16158
    }
16159
 
16160
    public void setSuccess(List<VendorItemPricing> success) {
16161
      this.success = success;
16162
    }
16163
 
16164
    public void unsetSuccess() {
16165
      this.success = null;
16166
    }
16167
 
16168
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16169
    public boolean isSetSuccess() {
16170
      return this.success != null;
16171
    }
16172
 
16173
    public void setSuccessIsSet(boolean value) {
16174
      if (!value) {
16175
        this.success = null;
16176
      }
16177
    }
16178
 
16179
    public InventoryServiceException getCex() {
16180
      return this.cex;
16181
    }
16182
 
16183
    public void setCex(InventoryServiceException cex) {
16184
      this.cex = cex;
16185
    }
16186
 
16187
    public void unsetCex() {
16188
      this.cex = null;
16189
    }
16190
 
16191
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16192
    public boolean isSetCex() {
16193
      return this.cex != null;
16194
    }
16195
 
16196
    public void setCexIsSet(boolean value) {
16197
      if (!value) {
16198
        this.cex = null;
16199
      }
16200
    }
16201
 
16202
    public void setFieldValue(_Fields field, Object value) {
16203
      switch (field) {
16204
      case SUCCESS:
16205
        if (value == null) {
16206
          unsetSuccess();
16207
        } else {
16208
          setSuccess((List<VendorItemPricing>)value);
16209
        }
16210
        break;
16211
 
16212
      case CEX:
16213
        if (value == null) {
16214
          unsetCex();
16215
        } else {
16216
          setCex((InventoryServiceException)value);
16217
        }
16218
        break;
16219
 
16220
      }
16221
    }
16222
 
16223
    public Object getFieldValue(_Fields field) {
16224
      switch (field) {
16225
      case SUCCESS:
16226
        return getSuccess();
16227
 
16228
      case CEX:
16229
        return getCex();
16230
 
16231
      }
16232
      throw new IllegalStateException();
16233
    }
16234
 
16235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16236
    public boolean isSet(_Fields field) {
16237
      if (field == null) {
16238
        throw new IllegalArgumentException();
16239
      }
16240
 
16241
      switch (field) {
16242
      case SUCCESS:
16243
        return isSetSuccess();
16244
      case CEX:
16245
        return isSetCex();
16246
      }
16247
      throw new IllegalStateException();
16248
    }
16249
 
16250
    @Override
16251
    public boolean equals(Object that) {
16252
      if (that == null)
16253
        return false;
16254
      if (that instanceof getAllItemPricing_result)
16255
        return this.equals((getAllItemPricing_result)that);
16256
      return false;
16257
    }
16258
 
16259
    public boolean equals(getAllItemPricing_result that) {
16260
      if (that == null)
16261
        return false;
16262
 
16263
      boolean this_present_success = true && this.isSetSuccess();
16264
      boolean that_present_success = true && that.isSetSuccess();
16265
      if (this_present_success || that_present_success) {
16266
        if (!(this_present_success && that_present_success))
16267
          return false;
16268
        if (!this.success.equals(that.success))
16269
          return false;
16270
      }
16271
 
16272
      boolean this_present_cex = true && this.isSetCex();
16273
      boolean that_present_cex = true && that.isSetCex();
16274
      if (this_present_cex || that_present_cex) {
16275
        if (!(this_present_cex && that_present_cex))
16276
          return false;
16277
        if (!this.cex.equals(that.cex))
16278
          return false;
16279
      }
16280
 
16281
      return true;
16282
    }
16283
 
16284
    @Override
16285
    public int hashCode() {
16286
      return 0;
16287
    }
16288
 
16289
    public int compareTo(getAllItemPricing_result other) {
16290
      if (!getClass().equals(other.getClass())) {
16291
        return getClass().getName().compareTo(other.getClass().getName());
16292
      }
16293
 
16294
      int lastComparison = 0;
16295
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
16296
 
16297
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16298
      if (lastComparison != 0) {
16299
        return lastComparison;
16300
      }
16301
      if (isSetSuccess()) {
16302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16303
        if (lastComparison != 0) {
16304
          return lastComparison;
16305
        }
16306
      }
16307
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16308
      if (lastComparison != 0) {
16309
        return lastComparison;
16310
      }
16311
      if (isSetCex()) {
16312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16313
        if (lastComparison != 0) {
16314
          return lastComparison;
16315
        }
16316
      }
16317
      return 0;
16318
    }
16319
 
16320
    public _Fields fieldForId(int fieldId) {
16321
      return _Fields.findByThriftId(fieldId);
16322
    }
16323
 
16324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16325
      org.apache.thrift.protocol.TField field;
16326
      iprot.readStructBegin();
16327
      while (true)
16328
      {
16329
        field = iprot.readFieldBegin();
16330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16331
          break;
16332
        }
16333
        switch (field.id) {
16334
          case 0: // SUCCESS
16335
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16336
              {
16337
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16338
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
16339
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16340
                {
16341
                  VendorItemPricing _elem34; // required
16342
                  _elem34 = new VendorItemPricing();
16343
                  _elem34.read(iprot);
16344
                  this.success.add(_elem34);
16345
                }
16346
                iprot.readListEnd();
16347
              }
16348
            } else { 
16349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16350
            }
16351
            break;
16352
          case 1: // CEX
16353
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16354
              this.cex = new InventoryServiceException();
16355
              this.cex.read(iprot);
16356
            } else { 
16357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16358
            }
16359
            break;
16360
          default:
16361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16362
        }
16363
        iprot.readFieldEnd();
16364
      }
16365
      iprot.readStructEnd();
16366
      validate();
16367
    }
16368
 
16369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16370
      oprot.writeStructBegin(STRUCT_DESC);
16371
 
16372
      if (this.isSetSuccess()) {
16373
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16374
        {
16375
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16376
          for (VendorItemPricing _iter35 : this.success)
16377
          {
16378
            _iter35.write(oprot);
16379
          }
16380
          oprot.writeListEnd();
16381
        }
16382
        oprot.writeFieldEnd();
16383
      } else if (this.isSetCex()) {
16384
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16385
        this.cex.write(oprot);
16386
        oprot.writeFieldEnd();
16387
      }
16388
      oprot.writeFieldStop();
16389
      oprot.writeStructEnd();
16390
    }
16391
 
16392
    @Override
16393
    public String toString() {
16394
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
16395
      boolean first = true;
16396
 
16397
      sb.append("success:");
16398
      if (this.success == null) {
16399
        sb.append("null");
16400
      } else {
16401
        sb.append(this.success);
16402
      }
16403
      first = false;
16404
      if (!first) sb.append(", ");
16405
      sb.append("cex:");
16406
      if (this.cex == null) {
16407
        sb.append("null");
16408
      } else {
16409
        sb.append(this.cex);
16410
      }
16411
      first = false;
16412
      sb.append(")");
16413
      return sb.toString();
16414
    }
16415
 
16416
    public void validate() throws org.apache.thrift.TException {
16417
      // check for required fields
16418
    }
16419
 
16420
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16421
      try {
16422
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16423
      } catch (org.apache.thrift.TException te) {
16424
        throw new java.io.IOException(te);
16425
      }
16426
    }
16427
 
16428
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16429
      try {
16430
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16431
      } catch (org.apache.thrift.TException te) {
16432
        throw new java.io.IOException(te);
16433
      }
16434
    }
16435
 
16436
  }
16437
 
16438
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16439
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
16440
 
16441
    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);
16442
 
16443
    private VendorItemPricing vendorItemPricing; // required
16444
 
16445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16446
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16447
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
16448
 
16449
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16450
 
16451
      static {
16452
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16453
          byName.put(field.getFieldName(), field);
16454
        }
16455
      }
16456
 
16457
      /**
16458
       * Find the _Fields constant that matches fieldId, or null if its not found.
16459
       */
16460
      public static _Fields findByThriftId(int fieldId) {
16461
        switch(fieldId) {
16462
          case 1: // VENDOR_ITEM_PRICING
16463
            return VENDOR_ITEM_PRICING;
16464
          default:
16465
            return null;
16466
        }
16467
      }
16468
 
16469
      /**
16470
       * Find the _Fields constant that matches fieldId, throwing an exception
16471
       * if it is not found.
16472
       */
16473
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16474
        _Fields fields = findByThriftId(fieldId);
16475
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16476
        return fields;
16477
      }
16478
 
16479
      /**
16480
       * Find the _Fields constant that matches name, or null if its not found.
16481
       */
16482
      public static _Fields findByName(String name) {
16483
        return byName.get(name);
16484
      }
16485
 
16486
      private final short _thriftId;
16487
      private final String _fieldName;
16488
 
16489
      _Fields(short thriftId, String fieldName) {
16490
        _thriftId = thriftId;
16491
        _fieldName = fieldName;
16492
      }
16493
 
16494
      public short getThriftFieldId() {
16495
        return _thriftId;
16496
      }
16497
 
16498
      public String getFieldName() {
16499
        return _fieldName;
16500
      }
16501
    }
16502
 
16503
    // isset id assignments
16504
 
16505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16506
    static {
16507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16508
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16509
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
16510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
16512
    }
16513
 
16514
    public addVendorItemPricing_args() {
16515
    }
16516
 
16517
    public addVendorItemPricing_args(
16518
      VendorItemPricing vendorItemPricing)
16519
    {
16520
      this();
16521
      this.vendorItemPricing = vendorItemPricing;
16522
    }
16523
 
16524
    /**
16525
     * Performs a deep copy on <i>other</i>.
16526
     */
16527
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
16528
      if (other.isSetVendorItemPricing()) {
16529
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
16530
      }
16531
    }
16532
 
16533
    public addVendorItemPricing_args deepCopy() {
16534
      return new addVendorItemPricing_args(this);
16535
    }
16536
 
16537
    @Override
16538
    public void clear() {
16539
      this.vendorItemPricing = null;
16540
    }
16541
 
16542
    public VendorItemPricing getVendorItemPricing() {
16543
      return this.vendorItemPricing;
16544
    }
16545
 
16546
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
16547
      this.vendorItemPricing = vendorItemPricing;
16548
    }
16549
 
16550
    public void unsetVendorItemPricing() {
16551
      this.vendorItemPricing = null;
16552
    }
16553
 
16554
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
16555
    public boolean isSetVendorItemPricing() {
16556
      return this.vendorItemPricing != null;
16557
    }
16558
 
16559
    public void setVendorItemPricingIsSet(boolean value) {
16560
      if (!value) {
16561
        this.vendorItemPricing = null;
16562
      }
16563
    }
16564
 
16565
    public void setFieldValue(_Fields field, Object value) {
16566
      switch (field) {
16567
      case VENDOR_ITEM_PRICING:
16568
        if (value == null) {
16569
          unsetVendorItemPricing();
16570
        } else {
16571
          setVendorItemPricing((VendorItemPricing)value);
16572
        }
16573
        break;
16574
 
16575
      }
16576
    }
16577
 
16578
    public Object getFieldValue(_Fields field) {
16579
      switch (field) {
16580
      case VENDOR_ITEM_PRICING:
16581
        return getVendorItemPricing();
16582
 
16583
      }
16584
      throw new IllegalStateException();
16585
    }
16586
 
16587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16588
    public boolean isSet(_Fields field) {
16589
      if (field == null) {
16590
        throw new IllegalArgumentException();
16591
      }
16592
 
16593
      switch (field) {
16594
      case VENDOR_ITEM_PRICING:
16595
        return isSetVendorItemPricing();
16596
      }
16597
      throw new IllegalStateException();
16598
    }
16599
 
16600
    @Override
16601
    public boolean equals(Object that) {
16602
      if (that == null)
16603
        return false;
16604
      if (that instanceof addVendorItemPricing_args)
16605
        return this.equals((addVendorItemPricing_args)that);
16606
      return false;
16607
    }
16608
 
16609
    public boolean equals(addVendorItemPricing_args that) {
16610
      if (that == null)
16611
        return false;
16612
 
16613
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
16614
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
16615
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
16616
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
16617
          return false;
16618
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
16619
          return false;
16620
      }
16621
 
16622
      return true;
16623
    }
16624
 
16625
    @Override
16626
    public int hashCode() {
16627
      return 0;
16628
    }
16629
 
16630
    public int compareTo(addVendorItemPricing_args other) {
16631
      if (!getClass().equals(other.getClass())) {
16632
        return getClass().getName().compareTo(other.getClass().getName());
16633
      }
16634
 
16635
      int lastComparison = 0;
16636
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
16637
 
16638
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
16639
      if (lastComparison != 0) {
16640
        return lastComparison;
16641
      }
16642
      if (isSetVendorItemPricing()) {
16643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
16644
        if (lastComparison != 0) {
16645
          return lastComparison;
16646
        }
16647
      }
16648
      return 0;
16649
    }
16650
 
16651
    public _Fields fieldForId(int fieldId) {
16652
      return _Fields.findByThriftId(fieldId);
16653
    }
16654
 
16655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16656
      org.apache.thrift.protocol.TField field;
16657
      iprot.readStructBegin();
16658
      while (true)
16659
      {
16660
        field = iprot.readFieldBegin();
16661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16662
          break;
16663
        }
16664
        switch (field.id) {
16665
          case 1: // VENDOR_ITEM_PRICING
16666
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16667
              this.vendorItemPricing = new VendorItemPricing();
16668
              this.vendorItemPricing.read(iprot);
16669
            } else { 
16670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16671
            }
16672
            break;
16673
          default:
16674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16675
        }
16676
        iprot.readFieldEnd();
16677
      }
16678
      iprot.readStructEnd();
16679
      validate();
16680
    }
16681
 
16682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16683
      validate();
16684
 
16685
      oprot.writeStructBegin(STRUCT_DESC);
16686
      if (this.vendorItemPricing != null) {
16687
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
16688
        this.vendorItemPricing.write(oprot);
16689
        oprot.writeFieldEnd();
16690
      }
16691
      oprot.writeFieldStop();
16692
      oprot.writeStructEnd();
16693
    }
16694
 
16695
    @Override
16696
    public String toString() {
16697
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
16698
      boolean first = true;
16699
 
16700
      sb.append("vendorItemPricing:");
16701
      if (this.vendorItemPricing == null) {
16702
        sb.append("null");
16703
      } else {
16704
        sb.append(this.vendorItemPricing);
16705
      }
16706
      first = false;
16707
      sb.append(")");
16708
      return sb.toString();
16709
    }
16710
 
16711
    public void validate() throws org.apache.thrift.TException {
16712
      // check for required fields
16713
    }
16714
 
16715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16716
      try {
16717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16718
      } catch (org.apache.thrift.TException te) {
16719
        throw new java.io.IOException(te);
16720
      }
16721
    }
16722
 
16723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16724
      try {
16725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16726
      } catch (org.apache.thrift.TException te) {
16727
        throw new java.io.IOException(te);
16728
      }
16729
    }
16730
 
16731
  }
16732
 
16733
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
16735
 
16736
    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);
16737
 
16738
    private InventoryServiceException cex; // required
16739
 
16740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16742
      CEX((short)1, "cex");
16743
 
16744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16745
 
16746
      static {
16747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16748
          byName.put(field.getFieldName(), field);
16749
        }
16750
      }
16751
 
16752
      /**
16753
       * Find the _Fields constant that matches fieldId, or null if its not found.
16754
       */
16755
      public static _Fields findByThriftId(int fieldId) {
16756
        switch(fieldId) {
16757
          case 1: // CEX
16758
            return CEX;
16759
          default:
16760
            return null;
16761
        }
16762
      }
16763
 
16764
      /**
16765
       * Find the _Fields constant that matches fieldId, throwing an exception
16766
       * if it is not found.
16767
       */
16768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16769
        _Fields fields = findByThriftId(fieldId);
16770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16771
        return fields;
16772
      }
16773
 
16774
      /**
16775
       * Find the _Fields constant that matches name, or null if its not found.
16776
       */
16777
      public static _Fields findByName(String name) {
16778
        return byName.get(name);
16779
      }
16780
 
16781
      private final short _thriftId;
16782
      private final String _fieldName;
16783
 
16784
      _Fields(short thriftId, String fieldName) {
16785
        _thriftId = thriftId;
16786
        _fieldName = fieldName;
16787
      }
16788
 
16789
      public short getThriftFieldId() {
16790
        return _thriftId;
16791
      }
16792
 
16793
      public String getFieldName() {
16794
        return _fieldName;
16795
      }
16796
    }
16797
 
16798
    // isset id assignments
16799
 
16800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16801
    static {
16802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16803
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16804
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
16807
    }
16808
 
16809
    public addVendorItemPricing_result() {
16810
    }
16811
 
16812
    public addVendorItemPricing_result(
16813
      InventoryServiceException cex)
16814
    {
16815
      this();
16816
      this.cex = cex;
16817
    }
16818
 
16819
    /**
16820
     * Performs a deep copy on <i>other</i>.
16821
     */
16822
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
16823
      if (other.isSetCex()) {
16824
        this.cex = new InventoryServiceException(other.cex);
16825
      }
16826
    }
16827
 
16828
    public addVendorItemPricing_result deepCopy() {
16829
      return new addVendorItemPricing_result(this);
16830
    }
16831
 
16832
    @Override
16833
    public void clear() {
16834
      this.cex = null;
16835
    }
16836
 
16837
    public InventoryServiceException getCex() {
16838
      return this.cex;
16839
    }
16840
 
16841
    public void setCex(InventoryServiceException cex) {
16842
      this.cex = cex;
16843
    }
16844
 
16845
    public void unsetCex() {
16846
      this.cex = null;
16847
    }
16848
 
16849
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16850
    public boolean isSetCex() {
16851
      return this.cex != null;
16852
    }
16853
 
16854
    public void setCexIsSet(boolean value) {
16855
      if (!value) {
16856
        this.cex = null;
16857
      }
16858
    }
16859
 
16860
    public void setFieldValue(_Fields field, Object value) {
16861
      switch (field) {
16862
      case CEX:
16863
        if (value == null) {
16864
          unsetCex();
16865
        } else {
16866
          setCex((InventoryServiceException)value);
16867
        }
16868
        break;
16869
 
16870
      }
16871
    }
16872
 
16873
    public Object getFieldValue(_Fields field) {
16874
      switch (field) {
16875
      case CEX:
16876
        return getCex();
16877
 
16878
      }
16879
      throw new IllegalStateException();
16880
    }
16881
 
16882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16883
    public boolean isSet(_Fields field) {
16884
      if (field == null) {
16885
        throw new IllegalArgumentException();
16886
      }
16887
 
16888
      switch (field) {
16889
      case CEX:
16890
        return isSetCex();
16891
      }
16892
      throw new IllegalStateException();
16893
    }
16894
 
16895
    @Override
16896
    public boolean equals(Object that) {
16897
      if (that == null)
16898
        return false;
16899
      if (that instanceof addVendorItemPricing_result)
16900
        return this.equals((addVendorItemPricing_result)that);
16901
      return false;
16902
    }
16903
 
16904
    public boolean equals(addVendorItemPricing_result that) {
16905
      if (that == null)
16906
        return false;
16907
 
16908
      boolean this_present_cex = true && this.isSetCex();
16909
      boolean that_present_cex = true && that.isSetCex();
16910
      if (this_present_cex || that_present_cex) {
16911
        if (!(this_present_cex && that_present_cex))
16912
          return false;
16913
        if (!this.cex.equals(that.cex))
16914
          return false;
16915
      }
16916
 
16917
      return true;
16918
    }
16919
 
16920
    @Override
16921
    public int hashCode() {
16922
      return 0;
16923
    }
16924
 
16925
    public int compareTo(addVendorItemPricing_result other) {
16926
      if (!getClass().equals(other.getClass())) {
16927
        return getClass().getName().compareTo(other.getClass().getName());
16928
      }
16929
 
16930
      int lastComparison = 0;
16931
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
16932
 
16933
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16934
      if (lastComparison != 0) {
16935
        return lastComparison;
16936
      }
16937
      if (isSetCex()) {
16938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16939
        if (lastComparison != 0) {
16940
          return lastComparison;
16941
        }
16942
      }
16943
      return 0;
16944
    }
16945
 
16946
    public _Fields fieldForId(int fieldId) {
16947
      return _Fields.findByThriftId(fieldId);
16948
    }
16949
 
16950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16951
      org.apache.thrift.protocol.TField field;
16952
      iprot.readStructBegin();
16953
      while (true)
16954
      {
16955
        field = iprot.readFieldBegin();
16956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16957
          break;
16958
        }
16959
        switch (field.id) {
16960
          case 1: // CEX
16961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16962
              this.cex = new InventoryServiceException();
16963
              this.cex.read(iprot);
16964
            } else { 
16965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16966
            }
16967
            break;
16968
          default:
16969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16970
        }
16971
        iprot.readFieldEnd();
16972
      }
16973
      iprot.readStructEnd();
16974
      validate();
16975
    }
16976
 
16977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16978
      oprot.writeStructBegin(STRUCT_DESC);
16979
 
16980
      if (this.isSetCex()) {
16981
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16982
        this.cex.write(oprot);
16983
        oprot.writeFieldEnd();
16984
      }
16985
      oprot.writeFieldStop();
16986
      oprot.writeStructEnd();
16987
    }
16988
 
16989
    @Override
16990
    public String toString() {
16991
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
16992
      boolean first = true;
16993
 
16994
      sb.append("cex:");
16995
      if (this.cex == null) {
16996
        sb.append("null");
16997
      } else {
16998
        sb.append(this.cex);
16999
      }
17000
      first = false;
17001
      sb.append(")");
17002
      return sb.toString();
17003
    }
17004
 
17005
    public void validate() throws org.apache.thrift.TException {
17006
      // check for required fields
17007
    }
17008
 
17009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17010
      try {
17011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17012
      } catch (org.apache.thrift.TException te) {
17013
        throw new java.io.IOException(te);
17014
      }
17015
    }
17016
 
17017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17018
      try {
17019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17020
      } catch (org.apache.thrift.TException te) {
17021
        throw new java.io.IOException(te);
17022
      }
17023
    }
17024
 
17025
  }
17026
 
17027
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
17028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
17029
 
17030
    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);
17031
 
17032
    private long vendorId; // required
17033
 
17034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17036
      VENDOR_ID((short)1, "vendorId");
17037
 
17038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17039
 
17040
      static {
17041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17042
          byName.put(field.getFieldName(), field);
17043
        }
17044
      }
17045
 
17046
      /**
17047
       * Find the _Fields constant that matches fieldId, or null if its not found.
17048
       */
17049
      public static _Fields findByThriftId(int fieldId) {
17050
        switch(fieldId) {
17051
          case 1: // VENDOR_ID
17052
            return VENDOR_ID;
17053
          default:
17054
            return null;
17055
        }
17056
      }
17057
 
17058
      /**
17059
       * Find the _Fields constant that matches fieldId, throwing an exception
17060
       * if it is not found.
17061
       */
17062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17063
        _Fields fields = findByThriftId(fieldId);
17064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17065
        return fields;
17066
      }
17067
 
17068
      /**
17069
       * Find the _Fields constant that matches name, or null if its not found.
17070
       */
17071
      public static _Fields findByName(String name) {
17072
        return byName.get(name);
17073
      }
17074
 
17075
      private final short _thriftId;
17076
      private final String _fieldName;
17077
 
17078
      _Fields(short thriftId, String fieldName) {
17079
        _thriftId = thriftId;
17080
        _fieldName = fieldName;
17081
      }
17082
 
17083
      public short getThriftFieldId() {
17084
        return _thriftId;
17085
      }
17086
 
17087
      public String getFieldName() {
17088
        return _fieldName;
17089
      }
17090
    }
17091
 
17092
    // isset id assignments
17093
    private static final int __VENDORID_ISSET_ID = 0;
17094
    private BitSet __isset_bit_vector = new BitSet(1);
17095
 
17096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17097
    static {
17098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17099
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
17103
    }
17104
 
17105
    public getVendor_args() {
17106
    }
17107
 
17108
    public getVendor_args(
17109
      long vendorId)
17110
    {
17111
      this();
17112
      this.vendorId = vendorId;
17113
      setVendorIdIsSet(true);
17114
    }
17115
 
17116
    /**
17117
     * Performs a deep copy on <i>other</i>.
17118
     */
17119
    public getVendor_args(getVendor_args other) {
17120
      __isset_bit_vector.clear();
17121
      __isset_bit_vector.or(other.__isset_bit_vector);
17122
      this.vendorId = other.vendorId;
17123
    }
17124
 
17125
    public getVendor_args deepCopy() {
17126
      return new getVendor_args(this);
17127
    }
17128
 
17129
    @Override
17130
    public void clear() {
17131
      setVendorIdIsSet(false);
17132
      this.vendorId = 0;
17133
    }
17134
 
17135
    public long getVendorId() {
17136
      return this.vendorId;
17137
    }
17138
 
17139
    public void setVendorId(long vendorId) {
17140
      this.vendorId = vendorId;
17141
      setVendorIdIsSet(true);
17142
    }
17143
 
17144
    public void unsetVendorId() {
17145
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17146
    }
17147
 
17148
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17149
    public boolean isSetVendorId() {
17150
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17151
    }
17152
 
17153
    public void setVendorIdIsSet(boolean value) {
17154
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17155
    }
17156
 
17157
    public void setFieldValue(_Fields field, Object value) {
17158
      switch (field) {
17159
      case VENDOR_ID:
17160
        if (value == null) {
17161
          unsetVendorId();
17162
        } else {
17163
          setVendorId((Long)value);
17164
        }
17165
        break;
17166
 
17167
      }
17168
    }
17169
 
17170
    public Object getFieldValue(_Fields field) {
17171
      switch (field) {
17172
      case VENDOR_ID:
17173
        return Long.valueOf(getVendorId());
17174
 
17175
      }
17176
      throw new IllegalStateException();
17177
    }
17178
 
17179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17180
    public boolean isSet(_Fields field) {
17181
      if (field == null) {
17182
        throw new IllegalArgumentException();
17183
      }
17184
 
17185
      switch (field) {
17186
      case VENDOR_ID:
17187
        return isSetVendorId();
17188
      }
17189
      throw new IllegalStateException();
17190
    }
17191
 
17192
    @Override
17193
    public boolean equals(Object that) {
17194
      if (that == null)
17195
        return false;
17196
      if (that instanceof getVendor_args)
17197
        return this.equals((getVendor_args)that);
17198
      return false;
17199
    }
17200
 
17201
    public boolean equals(getVendor_args that) {
17202
      if (that == null)
17203
        return false;
17204
 
17205
      boolean this_present_vendorId = true;
17206
      boolean that_present_vendorId = true;
17207
      if (this_present_vendorId || that_present_vendorId) {
17208
        if (!(this_present_vendorId && that_present_vendorId))
17209
          return false;
17210
        if (this.vendorId != that.vendorId)
17211
          return false;
17212
      }
17213
 
17214
      return true;
17215
    }
17216
 
17217
    @Override
17218
    public int hashCode() {
17219
      return 0;
17220
    }
17221
 
17222
    public int compareTo(getVendor_args other) {
17223
      if (!getClass().equals(other.getClass())) {
17224
        return getClass().getName().compareTo(other.getClass().getName());
17225
      }
17226
 
17227
      int lastComparison = 0;
17228
      getVendor_args typedOther = (getVendor_args)other;
17229
 
17230
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17231
      if (lastComparison != 0) {
17232
        return lastComparison;
17233
      }
17234
      if (isSetVendorId()) {
17235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17236
        if (lastComparison != 0) {
17237
          return lastComparison;
17238
        }
17239
      }
17240
      return 0;
17241
    }
17242
 
17243
    public _Fields fieldForId(int fieldId) {
17244
      return _Fields.findByThriftId(fieldId);
17245
    }
17246
 
17247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17248
      org.apache.thrift.protocol.TField field;
17249
      iprot.readStructBegin();
17250
      while (true)
17251
      {
17252
        field = iprot.readFieldBegin();
17253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17254
          break;
17255
        }
17256
        switch (field.id) {
17257
          case 1: // VENDOR_ID
17258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17259
              this.vendorId = iprot.readI64();
17260
              setVendorIdIsSet(true);
17261
            } else { 
17262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17263
            }
17264
            break;
17265
          default:
17266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17267
        }
17268
        iprot.readFieldEnd();
17269
      }
17270
      iprot.readStructEnd();
17271
      validate();
17272
    }
17273
 
17274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17275
      validate();
17276
 
17277
      oprot.writeStructBegin(STRUCT_DESC);
17278
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17279
      oprot.writeI64(this.vendorId);
17280
      oprot.writeFieldEnd();
17281
      oprot.writeFieldStop();
17282
      oprot.writeStructEnd();
17283
    }
17284
 
17285
    @Override
17286
    public String toString() {
17287
      StringBuilder sb = new StringBuilder("getVendor_args(");
17288
      boolean first = true;
17289
 
17290
      sb.append("vendorId:");
17291
      sb.append(this.vendorId);
17292
      first = false;
17293
      sb.append(")");
17294
      return sb.toString();
17295
    }
17296
 
17297
    public void validate() throws org.apache.thrift.TException {
17298
      // check for required fields
17299
    }
17300
 
17301
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17302
      try {
17303
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17304
      } catch (org.apache.thrift.TException te) {
17305
        throw new java.io.IOException(te);
17306
      }
17307
    }
17308
 
17309
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17310
      try {
17311
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17312
        __isset_bit_vector = new BitSet(1);
17313
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17314
      } catch (org.apache.thrift.TException te) {
17315
        throw new java.io.IOException(te);
17316
      }
17317
    }
17318
 
17319
  }
17320
 
17321
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
17322
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
17323
 
17324
    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);
17325
 
17326
    private Vendor success; // required
17327
 
17328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17330
      SUCCESS((short)0, "success");
17331
 
17332
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17333
 
17334
      static {
17335
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17336
          byName.put(field.getFieldName(), field);
17337
        }
17338
      }
17339
 
17340
      /**
17341
       * Find the _Fields constant that matches fieldId, or null if its not found.
17342
       */
17343
      public static _Fields findByThriftId(int fieldId) {
17344
        switch(fieldId) {
17345
          case 0: // SUCCESS
17346
            return SUCCESS;
17347
          default:
17348
            return null;
17349
        }
17350
      }
17351
 
17352
      /**
17353
       * Find the _Fields constant that matches fieldId, throwing an exception
17354
       * if it is not found.
17355
       */
17356
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17357
        _Fields fields = findByThriftId(fieldId);
17358
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17359
        return fields;
17360
      }
17361
 
17362
      /**
17363
       * Find the _Fields constant that matches name, or null if its not found.
17364
       */
17365
      public static _Fields findByName(String name) {
17366
        return byName.get(name);
17367
      }
17368
 
17369
      private final short _thriftId;
17370
      private final String _fieldName;
17371
 
17372
      _Fields(short thriftId, String fieldName) {
17373
        _thriftId = thriftId;
17374
        _fieldName = fieldName;
17375
      }
17376
 
17377
      public short getThriftFieldId() {
17378
        return _thriftId;
17379
      }
17380
 
17381
      public String getFieldName() {
17382
        return _fieldName;
17383
      }
17384
    }
17385
 
17386
    // isset id assignments
17387
 
17388
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17389
    static {
17390
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17391
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17392
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
17393
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17394
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
17395
    }
17396
 
17397
    public getVendor_result() {
17398
    }
17399
 
17400
    public getVendor_result(
17401
      Vendor success)
17402
    {
17403
      this();
17404
      this.success = success;
17405
    }
17406
 
17407
    /**
17408
     * Performs a deep copy on <i>other</i>.
17409
     */
17410
    public getVendor_result(getVendor_result other) {
17411
      if (other.isSetSuccess()) {
17412
        this.success = new Vendor(other.success);
17413
      }
17414
    }
17415
 
17416
    public getVendor_result deepCopy() {
17417
      return new getVendor_result(this);
17418
    }
17419
 
17420
    @Override
17421
    public void clear() {
17422
      this.success = null;
17423
    }
17424
 
17425
    public Vendor getSuccess() {
17426
      return this.success;
17427
    }
17428
 
17429
    public void setSuccess(Vendor success) {
17430
      this.success = success;
17431
    }
17432
 
17433
    public void unsetSuccess() {
17434
      this.success = null;
17435
    }
17436
 
17437
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17438
    public boolean isSetSuccess() {
17439
      return this.success != null;
17440
    }
17441
 
17442
    public void setSuccessIsSet(boolean value) {
17443
      if (!value) {
17444
        this.success = null;
17445
      }
17446
    }
17447
 
17448
    public void setFieldValue(_Fields field, Object value) {
17449
      switch (field) {
17450
      case SUCCESS:
17451
        if (value == null) {
17452
          unsetSuccess();
17453
        } else {
17454
          setSuccess((Vendor)value);
17455
        }
17456
        break;
17457
 
17458
      }
17459
    }
17460
 
17461
    public Object getFieldValue(_Fields field) {
17462
      switch (field) {
17463
      case SUCCESS:
17464
        return getSuccess();
17465
 
17466
      }
17467
      throw new IllegalStateException();
17468
    }
17469
 
17470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17471
    public boolean isSet(_Fields field) {
17472
      if (field == null) {
17473
        throw new IllegalArgumentException();
17474
      }
17475
 
17476
      switch (field) {
17477
      case SUCCESS:
17478
        return isSetSuccess();
17479
      }
17480
      throw new IllegalStateException();
17481
    }
17482
 
17483
    @Override
17484
    public boolean equals(Object that) {
17485
      if (that == null)
17486
        return false;
17487
      if (that instanceof getVendor_result)
17488
        return this.equals((getVendor_result)that);
17489
      return false;
17490
    }
17491
 
17492
    public boolean equals(getVendor_result that) {
17493
      if (that == null)
17494
        return false;
17495
 
17496
      boolean this_present_success = true && this.isSetSuccess();
17497
      boolean that_present_success = true && that.isSetSuccess();
17498
      if (this_present_success || that_present_success) {
17499
        if (!(this_present_success && that_present_success))
17500
          return false;
17501
        if (!this.success.equals(that.success))
17502
          return false;
17503
      }
17504
 
17505
      return true;
17506
    }
17507
 
17508
    @Override
17509
    public int hashCode() {
17510
      return 0;
17511
    }
17512
 
17513
    public int compareTo(getVendor_result other) {
17514
      if (!getClass().equals(other.getClass())) {
17515
        return getClass().getName().compareTo(other.getClass().getName());
17516
      }
17517
 
17518
      int lastComparison = 0;
17519
      getVendor_result typedOther = (getVendor_result)other;
17520
 
17521
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17522
      if (lastComparison != 0) {
17523
        return lastComparison;
17524
      }
17525
      if (isSetSuccess()) {
17526
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17527
        if (lastComparison != 0) {
17528
          return lastComparison;
17529
        }
17530
      }
17531
      return 0;
17532
    }
17533
 
17534
    public _Fields fieldForId(int fieldId) {
17535
      return _Fields.findByThriftId(fieldId);
17536
    }
17537
 
17538
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17539
      org.apache.thrift.protocol.TField field;
17540
      iprot.readStructBegin();
17541
      while (true)
17542
      {
17543
        field = iprot.readFieldBegin();
17544
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17545
          break;
17546
        }
17547
        switch (field.id) {
17548
          case 0: // SUCCESS
17549
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17550
              this.success = new Vendor();
17551
              this.success.read(iprot);
17552
            } else { 
17553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17554
            }
17555
            break;
17556
          default:
17557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17558
        }
17559
        iprot.readFieldEnd();
17560
      }
17561
      iprot.readStructEnd();
17562
      validate();
17563
    }
17564
 
17565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17566
      oprot.writeStructBegin(STRUCT_DESC);
17567
 
17568
      if (this.isSetSuccess()) {
17569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17570
        this.success.write(oprot);
17571
        oprot.writeFieldEnd();
17572
      }
17573
      oprot.writeFieldStop();
17574
      oprot.writeStructEnd();
17575
    }
17576
 
17577
    @Override
17578
    public String toString() {
17579
      StringBuilder sb = new StringBuilder("getVendor_result(");
17580
      boolean first = true;
17581
 
17582
      sb.append("success:");
17583
      if (this.success == null) {
17584
        sb.append("null");
17585
      } else {
17586
        sb.append(this.success);
17587
      }
17588
      first = false;
17589
      sb.append(")");
17590
      return sb.toString();
17591
    }
17592
 
17593
    public void validate() throws org.apache.thrift.TException {
17594
      // check for required fields
17595
    }
17596
 
17597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17598
      try {
17599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17600
      } catch (org.apache.thrift.TException te) {
17601
        throw new java.io.IOException(te);
17602
      }
17603
    }
17604
 
17605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17606
      try {
17607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17608
      } catch (org.apache.thrift.TException te) {
17609
        throw new java.io.IOException(te);
17610
      }
17611
    }
17612
 
17613
  }
17614
 
17615
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
17616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
17617
 
17618
 
17619
 
17620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17622
;
17623
 
17624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17625
 
17626
      static {
17627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17628
          byName.put(field.getFieldName(), field);
17629
        }
17630
      }
17631
 
17632
      /**
17633
       * Find the _Fields constant that matches fieldId, or null if its not found.
17634
       */
17635
      public static _Fields findByThriftId(int fieldId) {
17636
        switch(fieldId) {
17637
          default:
17638
            return null;
17639
        }
17640
      }
17641
 
17642
      /**
17643
       * Find the _Fields constant that matches fieldId, throwing an exception
17644
       * if it is not found.
17645
       */
17646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17647
        _Fields fields = findByThriftId(fieldId);
17648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17649
        return fields;
17650
      }
17651
 
17652
      /**
17653
       * Find the _Fields constant that matches name, or null if its not found.
17654
       */
17655
      public static _Fields findByName(String name) {
17656
        return byName.get(name);
17657
      }
17658
 
17659
      private final short _thriftId;
17660
      private final String _fieldName;
17661
 
17662
      _Fields(short thriftId, String fieldName) {
17663
        _thriftId = thriftId;
17664
        _fieldName = fieldName;
17665
      }
17666
 
17667
      public short getThriftFieldId() {
17668
        return _thriftId;
17669
      }
17670
 
17671
      public String getFieldName() {
17672
        return _fieldName;
17673
      }
17674
    }
17675
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17676
    static {
17677
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
17680
    }
17681
 
17682
    public getAllVendors_args() {
17683
    }
17684
 
17685
    /**
17686
     * Performs a deep copy on <i>other</i>.
17687
     */
17688
    public getAllVendors_args(getAllVendors_args other) {
17689
    }
17690
 
17691
    public getAllVendors_args deepCopy() {
17692
      return new getAllVendors_args(this);
17693
    }
17694
 
17695
    @Override
17696
    public void clear() {
17697
    }
17698
 
17699
    public void setFieldValue(_Fields field, Object value) {
17700
      switch (field) {
17701
      }
17702
    }
17703
 
17704
    public Object getFieldValue(_Fields field) {
17705
      switch (field) {
17706
      }
17707
      throw new IllegalStateException();
17708
    }
17709
 
17710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17711
    public boolean isSet(_Fields field) {
17712
      if (field == null) {
17713
        throw new IllegalArgumentException();
17714
      }
17715
 
17716
      switch (field) {
17717
      }
17718
      throw new IllegalStateException();
17719
    }
17720
 
17721
    @Override
17722
    public boolean equals(Object that) {
17723
      if (that == null)
17724
        return false;
17725
      if (that instanceof getAllVendors_args)
17726
        return this.equals((getAllVendors_args)that);
17727
      return false;
17728
    }
17729
 
17730
    public boolean equals(getAllVendors_args that) {
17731
      if (that == null)
17732
        return false;
17733
 
17734
      return true;
17735
    }
17736
 
17737
    @Override
17738
    public int hashCode() {
17739
      return 0;
17740
    }
17741
 
17742
    public int compareTo(getAllVendors_args other) {
17743
      if (!getClass().equals(other.getClass())) {
17744
        return getClass().getName().compareTo(other.getClass().getName());
17745
      }
17746
 
17747
      int lastComparison = 0;
17748
      getAllVendors_args typedOther = (getAllVendors_args)other;
17749
 
17750
      return 0;
17751
    }
17752
 
17753
    public _Fields fieldForId(int fieldId) {
17754
      return _Fields.findByThriftId(fieldId);
17755
    }
17756
 
17757
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17758
      org.apache.thrift.protocol.TField field;
17759
      iprot.readStructBegin();
17760
      while (true)
17761
      {
17762
        field = iprot.readFieldBegin();
17763
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17764
          break;
17765
        }
17766
        switch (field.id) {
17767
          default:
17768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17769
        }
17770
        iprot.readFieldEnd();
17771
      }
17772
      iprot.readStructEnd();
17773
      validate();
17774
    }
17775
 
17776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17777
      validate();
17778
 
17779
      oprot.writeStructBegin(STRUCT_DESC);
17780
      oprot.writeFieldStop();
17781
      oprot.writeStructEnd();
17782
    }
17783
 
17784
    @Override
17785
    public String toString() {
17786
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
17787
      boolean first = true;
17788
 
17789
      sb.append(")");
17790
      return sb.toString();
17791
    }
17792
 
17793
    public void validate() throws org.apache.thrift.TException {
17794
      // check for required fields
17795
    }
17796
 
17797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17798
      try {
17799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17800
      } catch (org.apache.thrift.TException te) {
17801
        throw new java.io.IOException(te);
17802
      }
17803
    }
17804
 
17805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17806
      try {
17807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17808
      } catch (org.apache.thrift.TException te) {
17809
        throw new java.io.IOException(te);
17810
      }
17811
    }
17812
 
17813
  }
17814
 
17815
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
17816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
17817
 
17818
    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);
17819
 
17820
    private List<Vendor> success; // required
17821
 
17822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17824
      SUCCESS((short)0, "success");
17825
 
17826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17827
 
17828
      static {
17829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17830
          byName.put(field.getFieldName(), field);
17831
        }
17832
      }
17833
 
17834
      /**
17835
       * Find the _Fields constant that matches fieldId, or null if its not found.
17836
       */
17837
      public static _Fields findByThriftId(int fieldId) {
17838
        switch(fieldId) {
17839
          case 0: // SUCCESS
17840
            return SUCCESS;
17841
          default:
17842
            return null;
17843
        }
17844
      }
17845
 
17846
      /**
17847
       * Find the _Fields constant that matches fieldId, throwing an exception
17848
       * if it is not found.
17849
       */
17850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17851
        _Fields fields = findByThriftId(fieldId);
17852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17853
        return fields;
17854
      }
17855
 
17856
      /**
17857
       * Find the _Fields constant that matches name, or null if its not found.
17858
       */
17859
      public static _Fields findByName(String name) {
17860
        return byName.get(name);
17861
      }
17862
 
17863
      private final short _thriftId;
17864
      private final String _fieldName;
17865
 
17866
      _Fields(short thriftId, String fieldName) {
17867
        _thriftId = thriftId;
17868
        _fieldName = fieldName;
17869
      }
17870
 
17871
      public short getThriftFieldId() {
17872
        return _thriftId;
17873
      }
17874
 
17875
      public String getFieldName() {
17876
        return _fieldName;
17877
      }
17878
    }
17879
 
17880
    // isset id assignments
17881
 
17882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17883
    static {
17884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17885
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17886
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17887
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
17888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
17890
    }
17891
 
17892
    public getAllVendors_result() {
17893
    }
17894
 
17895
    public getAllVendors_result(
17896
      List<Vendor> success)
17897
    {
17898
      this();
17899
      this.success = success;
17900
    }
17901
 
17902
    /**
17903
     * Performs a deep copy on <i>other</i>.
17904
     */
17905
    public getAllVendors_result(getAllVendors_result other) {
17906
      if (other.isSetSuccess()) {
17907
        List<Vendor> __this__success = new ArrayList<Vendor>();
17908
        for (Vendor other_element : other.success) {
17909
          __this__success.add(new Vendor(other_element));
17910
        }
17911
        this.success = __this__success;
17912
      }
17913
    }
17914
 
17915
    public getAllVendors_result deepCopy() {
17916
      return new getAllVendors_result(this);
17917
    }
17918
 
17919
    @Override
17920
    public void clear() {
17921
      this.success = null;
17922
    }
17923
 
17924
    public int getSuccessSize() {
17925
      return (this.success == null) ? 0 : this.success.size();
17926
    }
17927
 
17928
    public java.util.Iterator<Vendor> getSuccessIterator() {
17929
      return (this.success == null) ? null : this.success.iterator();
17930
    }
17931
 
17932
    public void addToSuccess(Vendor elem) {
17933
      if (this.success == null) {
17934
        this.success = new ArrayList<Vendor>();
17935
      }
17936
      this.success.add(elem);
17937
    }
17938
 
17939
    public List<Vendor> getSuccess() {
17940
      return this.success;
17941
    }
17942
 
17943
    public void setSuccess(List<Vendor> success) {
17944
      this.success = success;
17945
    }
17946
 
17947
    public void unsetSuccess() {
17948
      this.success = null;
17949
    }
17950
 
17951
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17952
    public boolean isSetSuccess() {
17953
      return this.success != null;
17954
    }
17955
 
17956
    public void setSuccessIsSet(boolean value) {
17957
      if (!value) {
17958
        this.success = null;
17959
      }
17960
    }
17961
 
17962
    public void setFieldValue(_Fields field, Object value) {
17963
      switch (field) {
17964
      case SUCCESS:
17965
        if (value == null) {
17966
          unsetSuccess();
17967
        } else {
17968
          setSuccess((List<Vendor>)value);
17969
        }
17970
        break;
17971
 
17972
      }
17973
    }
17974
 
17975
    public Object getFieldValue(_Fields field) {
17976
      switch (field) {
17977
      case SUCCESS:
17978
        return getSuccess();
17979
 
17980
      }
17981
      throw new IllegalStateException();
17982
    }
17983
 
17984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17985
    public boolean isSet(_Fields field) {
17986
      if (field == null) {
17987
        throw new IllegalArgumentException();
17988
      }
17989
 
17990
      switch (field) {
17991
      case SUCCESS:
17992
        return isSetSuccess();
17993
      }
17994
      throw new IllegalStateException();
17995
    }
17996
 
17997
    @Override
17998
    public boolean equals(Object that) {
17999
      if (that == null)
18000
        return false;
18001
      if (that instanceof getAllVendors_result)
18002
        return this.equals((getAllVendors_result)that);
18003
      return false;
18004
    }
18005
 
18006
    public boolean equals(getAllVendors_result that) {
18007
      if (that == null)
18008
        return false;
18009
 
18010
      boolean this_present_success = true && this.isSetSuccess();
18011
      boolean that_present_success = true && that.isSetSuccess();
18012
      if (this_present_success || that_present_success) {
18013
        if (!(this_present_success && that_present_success))
18014
          return false;
18015
        if (!this.success.equals(that.success))
18016
          return false;
18017
      }
18018
 
18019
      return true;
18020
    }
18021
 
18022
    @Override
18023
    public int hashCode() {
18024
      return 0;
18025
    }
18026
 
18027
    public int compareTo(getAllVendors_result other) {
18028
      if (!getClass().equals(other.getClass())) {
18029
        return getClass().getName().compareTo(other.getClass().getName());
18030
      }
18031
 
18032
      int lastComparison = 0;
18033
      getAllVendors_result typedOther = (getAllVendors_result)other;
18034
 
18035
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18036
      if (lastComparison != 0) {
18037
        return lastComparison;
18038
      }
18039
      if (isSetSuccess()) {
18040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18041
        if (lastComparison != 0) {
18042
          return lastComparison;
18043
        }
18044
      }
18045
      return 0;
18046
    }
18047
 
18048
    public _Fields fieldForId(int fieldId) {
18049
      return _Fields.findByThriftId(fieldId);
18050
    }
18051
 
18052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18053
      org.apache.thrift.protocol.TField field;
18054
      iprot.readStructBegin();
18055
      while (true)
18056
      {
18057
        field = iprot.readFieldBegin();
18058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18059
          break;
18060
        }
18061
        switch (field.id) {
18062
          case 0: // SUCCESS
18063
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18064
              {
18065
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18066
                this.success = new ArrayList<Vendor>(_list36.size);
18067
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18068
                {
18069
                  Vendor _elem38; // required
18070
                  _elem38 = new Vendor();
18071
                  _elem38.read(iprot);
18072
                  this.success.add(_elem38);
18073
                }
18074
                iprot.readListEnd();
18075
              }
18076
            } else { 
18077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18078
            }
18079
            break;
18080
          default:
18081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18082
        }
18083
        iprot.readFieldEnd();
18084
      }
18085
      iprot.readStructEnd();
18086
      validate();
18087
    }
18088
 
18089
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18090
      oprot.writeStructBegin(STRUCT_DESC);
18091
 
18092
      if (this.isSetSuccess()) {
18093
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18094
        {
18095
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18096
          for (Vendor _iter39 : this.success)
18097
          {
18098
            _iter39.write(oprot);
18099
          }
18100
          oprot.writeListEnd();
18101
        }
18102
        oprot.writeFieldEnd();
18103
      }
18104
      oprot.writeFieldStop();
18105
      oprot.writeStructEnd();
18106
    }
18107
 
18108
    @Override
18109
    public String toString() {
18110
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
18111
      boolean first = true;
18112
 
18113
      sb.append("success:");
18114
      if (this.success == null) {
18115
        sb.append("null");
18116
      } else {
18117
        sb.append(this.success);
18118
      }
18119
      first = false;
18120
      sb.append(")");
18121
      return sb.toString();
18122
    }
18123
 
18124
    public void validate() throws org.apache.thrift.TException {
18125
      // check for required fields
18126
    }
18127
 
18128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18129
      try {
18130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18131
      } catch (org.apache.thrift.TException te) {
18132
        throw new java.io.IOException(te);
18133
      }
18134
    }
18135
 
18136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18137
      try {
18138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18139
      } catch (org.apache.thrift.TException te) {
18140
        throw new java.io.IOException(te);
18141
      }
18142
    }
18143
 
18144
  }
18145
 
18146
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
18147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
18148
 
18149
    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);
18150
    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);
18151
 
18152
    private String key; // required
18153
    private VendorItemMapping vendorItemMapping; // required
18154
 
18155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18157
      KEY((short)1, "key"),
18158
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
18159
 
18160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18161
 
18162
      static {
18163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18164
          byName.put(field.getFieldName(), field);
18165
        }
18166
      }
18167
 
18168
      /**
18169
       * Find the _Fields constant that matches fieldId, or null if its not found.
18170
       */
18171
      public static _Fields findByThriftId(int fieldId) {
18172
        switch(fieldId) {
18173
          case 1: // KEY
18174
            return KEY;
18175
          case 2: // VENDOR_ITEM_MAPPING
18176
            return VENDOR_ITEM_MAPPING;
18177
          default:
18178
            return null;
18179
        }
18180
      }
18181
 
18182
      /**
18183
       * Find the _Fields constant that matches fieldId, throwing an exception
18184
       * if it is not found.
18185
       */
18186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18187
        _Fields fields = findByThriftId(fieldId);
18188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18189
        return fields;
18190
      }
18191
 
18192
      /**
18193
       * Find the _Fields constant that matches name, or null if its not found.
18194
       */
18195
      public static _Fields findByName(String name) {
18196
        return byName.get(name);
18197
      }
18198
 
18199
      private final short _thriftId;
18200
      private final String _fieldName;
18201
 
18202
      _Fields(short thriftId, String fieldName) {
18203
        _thriftId = thriftId;
18204
        _fieldName = fieldName;
18205
      }
18206
 
18207
      public short getThriftFieldId() {
18208
        return _thriftId;
18209
      }
18210
 
18211
      public String getFieldName() {
18212
        return _fieldName;
18213
      }
18214
    }
18215
 
18216
    // isset id assignments
18217
 
18218
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18219
    static {
18220
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18221
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18223
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18224
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
18225
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18226
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
18227
    }
18228
 
18229
    public addVendorItemMapping_args() {
18230
    }
18231
 
18232
    public addVendorItemMapping_args(
18233
      String key,
18234
      VendorItemMapping vendorItemMapping)
18235
    {
18236
      this();
18237
      this.key = key;
18238
      this.vendorItemMapping = vendorItemMapping;
18239
    }
18240
 
18241
    /**
18242
     * Performs a deep copy on <i>other</i>.
18243
     */
18244
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
18245
      if (other.isSetKey()) {
18246
        this.key = other.key;
18247
      }
18248
      if (other.isSetVendorItemMapping()) {
18249
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
18250
      }
18251
    }
18252
 
18253
    public addVendorItemMapping_args deepCopy() {
18254
      return new addVendorItemMapping_args(this);
18255
    }
18256
 
18257
    @Override
18258
    public void clear() {
18259
      this.key = null;
18260
      this.vendorItemMapping = null;
18261
    }
18262
 
18263
    public String getKey() {
18264
      return this.key;
18265
    }
18266
 
18267
    public void setKey(String key) {
18268
      this.key = key;
18269
    }
18270
 
18271
    public void unsetKey() {
18272
      this.key = null;
18273
    }
18274
 
18275
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
18276
    public boolean isSetKey() {
18277
      return this.key != null;
18278
    }
18279
 
18280
    public void setKeyIsSet(boolean value) {
18281
      if (!value) {
18282
        this.key = null;
18283
      }
18284
    }
18285
 
18286
    public VendorItemMapping getVendorItemMapping() {
18287
      return this.vendorItemMapping;
18288
    }
18289
 
18290
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
18291
      this.vendorItemMapping = vendorItemMapping;
18292
    }
18293
 
18294
    public void unsetVendorItemMapping() {
18295
      this.vendorItemMapping = null;
18296
    }
18297
 
18298
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
18299
    public boolean isSetVendorItemMapping() {
18300
      return this.vendorItemMapping != null;
18301
    }
18302
 
18303
    public void setVendorItemMappingIsSet(boolean value) {
18304
      if (!value) {
18305
        this.vendorItemMapping = null;
18306
      }
18307
    }
18308
 
18309
    public void setFieldValue(_Fields field, Object value) {
18310
      switch (field) {
18311
      case KEY:
18312
        if (value == null) {
18313
          unsetKey();
18314
        } else {
18315
          setKey((String)value);
18316
        }
18317
        break;
18318
 
18319
      case VENDOR_ITEM_MAPPING:
18320
        if (value == null) {
18321
          unsetVendorItemMapping();
18322
        } else {
18323
          setVendorItemMapping((VendorItemMapping)value);
18324
        }
18325
        break;
18326
 
18327
      }
18328
    }
18329
 
18330
    public Object getFieldValue(_Fields field) {
18331
      switch (field) {
18332
      case KEY:
18333
        return getKey();
18334
 
18335
      case VENDOR_ITEM_MAPPING:
18336
        return getVendorItemMapping();
18337
 
18338
      }
18339
      throw new IllegalStateException();
18340
    }
18341
 
18342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18343
    public boolean isSet(_Fields field) {
18344
      if (field == null) {
18345
        throw new IllegalArgumentException();
18346
      }
18347
 
18348
      switch (field) {
18349
      case KEY:
18350
        return isSetKey();
18351
      case VENDOR_ITEM_MAPPING:
18352
        return isSetVendorItemMapping();
18353
      }
18354
      throw new IllegalStateException();
18355
    }
18356
 
18357
    @Override
18358
    public boolean equals(Object that) {
18359
      if (that == null)
18360
        return false;
18361
      if (that instanceof addVendorItemMapping_args)
18362
        return this.equals((addVendorItemMapping_args)that);
18363
      return false;
18364
    }
18365
 
18366
    public boolean equals(addVendorItemMapping_args that) {
18367
      if (that == null)
18368
        return false;
18369
 
18370
      boolean this_present_key = true && this.isSetKey();
18371
      boolean that_present_key = true && that.isSetKey();
18372
      if (this_present_key || that_present_key) {
18373
        if (!(this_present_key && that_present_key))
18374
          return false;
18375
        if (!this.key.equals(that.key))
18376
          return false;
18377
      }
18378
 
18379
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
18380
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
18381
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
18382
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
18383
          return false;
18384
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
18385
          return false;
18386
      }
18387
 
18388
      return true;
18389
    }
18390
 
18391
    @Override
18392
    public int hashCode() {
18393
      return 0;
18394
    }
18395
 
18396
    public int compareTo(addVendorItemMapping_args other) {
18397
      if (!getClass().equals(other.getClass())) {
18398
        return getClass().getName().compareTo(other.getClass().getName());
18399
      }
18400
 
18401
      int lastComparison = 0;
18402
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
18403
 
18404
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
18405
      if (lastComparison != 0) {
18406
        return lastComparison;
18407
      }
18408
      if (isSetKey()) {
18409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
18410
        if (lastComparison != 0) {
18411
          return lastComparison;
18412
        }
18413
      }
18414
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
18415
      if (lastComparison != 0) {
18416
        return lastComparison;
18417
      }
18418
      if (isSetVendorItemMapping()) {
18419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
18420
        if (lastComparison != 0) {
18421
          return lastComparison;
18422
        }
18423
      }
18424
      return 0;
18425
    }
18426
 
18427
    public _Fields fieldForId(int fieldId) {
18428
      return _Fields.findByThriftId(fieldId);
18429
    }
18430
 
18431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18432
      org.apache.thrift.protocol.TField field;
18433
      iprot.readStructBegin();
18434
      while (true)
18435
      {
18436
        field = iprot.readFieldBegin();
18437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18438
          break;
18439
        }
18440
        switch (field.id) {
18441
          case 1: // KEY
18442
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18443
              this.key = iprot.readString();
18444
            } else { 
18445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18446
            }
18447
            break;
18448
          case 2: // VENDOR_ITEM_MAPPING
18449
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18450
              this.vendorItemMapping = new VendorItemMapping();
18451
              this.vendorItemMapping.read(iprot);
18452
            } else { 
18453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18454
            }
18455
            break;
18456
          default:
18457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18458
        }
18459
        iprot.readFieldEnd();
18460
      }
18461
      iprot.readStructEnd();
18462
      validate();
18463
    }
18464
 
18465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18466
      validate();
18467
 
18468
      oprot.writeStructBegin(STRUCT_DESC);
18469
      if (this.key != null) {
18470
        oprot.writeFieldBegin(KEY_FIELD_DESC);
18471
        oprot.writeString(this.key);
18472
        oprot.writeFieldEnd();
18473
      }
18474
      if (this.vendorItemMapping != null) {
18475
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
18476
        this.vendorItemMapping.write(oprot);
18477
        oprot.writeFieldEnd();
18478
      }
18479
      oprot.writeFieldStop();
18480
      oprot.writeStructEnd();
18481
    }
18482
 
18483
    @Override
18484
    public String toString() {
18485
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
18486
      boolean first = true;
18487
 
18488
      sb.append("key:");
18489
      if (this.key == null) {
18490
        sb.append("null");
18491
      } else {
18492
        sb.append(this.key);
18493
      }
18494
      first = false;
18495
      if (!first) sb.append(", ");
18496
      sb.append("vendorItemMapping:");
18497
      if (this.vendorItemMapping == null) {
18498
        sb.append("null");
18499
      } else {
18500
        sb.append(this.vendorItemMapping);
18501
      }
18502
      first = false;
18503
      sb.append(")");
18504
      return sb.toString();
18505
    }
18506
 
18507
    public void validate() throws org.apache.thrift.TException {
18508
      // check for required fields
18509
    }
18510
 
18511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18512
      try {
18513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18514
      } catch (org.apache.thrift.TException te) {
18515
        throw new java.io.IOException(te);
18516
      }
18517
    }
18518
 
18519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18520
      try {
18521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18522
      } catch (org.apache.thrift.TException te) {
18523
        throw new java.io.IOException(te);
18524
      }
18525
    }
18526
 
18527
  }
18528
 
18529
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
18530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
18531
 
18532
    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);
18533
 
18534
    private InventoryServiceException cex; // required
18535
 
18536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18538
      CEX((short)1, "cex");
18539
 
18540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18541
 
18542
      static {
18543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18544
          byName.put(field.getFieldName(), field);
18545
        }
18546
      }
18547
 
18548
      /**
18549
       * Find the _Fields constant that matches fieldId, or null if its not found.
18550
       */
18551
      public static _Fields findByThriftId(int fieldId) {
18552
        switch(fieldId) {
18553
          case 1: // CEX
18554
            return CEX;
18555
          default:
18556
            return null;
18557
        }
18558
      }
18559
 
18560
      /**
18561
       * Find the _Fields constant that matches fieldId, throwing an exception
18562
       * if it is not found.
18563
       */
18564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18565
        _Fields fields = findByThriftId(fieldId);
18566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18567
        return fields;
18568
      }
18569
 
18570
      /**
18571
       * Find the _Fields constant that matches name, or null if its not found.
18572
       */
18573
      public static _Fields findByName(String name) {
18574
        return byName.get(name);
18575
      }
18576
 
18577
      private final short _thriftId;
18578
      private final String _fieldName;
18579
 
18580
      _Fields(short thriftId, String fieldName) {
18581
        _thriftId = thriftId;
18582
        _fieldName = fieldName;
18583
      }
18584
 
18585
      public short getThriftFieldId() {
18586
        return _thriftId;
18587
      }
18588
 
18589
      public String getFieldName() {
18590
        return _fieldName;
18591
      }
18592
    }
18593
 
18594
    // isset id assignments
18595
 
18596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18597
    static {
18598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18599
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
18603
    }
18604
 
18605
    public addVendorItemMapping_result() {
18606
    }
18607
 
18608
    public addVendorItemMapping_result(
18609
      InventoryServiceException cex)
18610
    {
18611
      this();
18612
      this.cex = cex;
18613
    }
18614
 
18615
    /**
18616
     * Performs a deep copy on <i>other</i>.
18617
     */
18618
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
18619
      if (other.isSetCex()) {
18620
        this.cex = new InventoryServiceException(other.cex);
18621
      }
18622
    }
18623
 
18624
    public addVendorItemMapping_result deepCopy() {
18625
      return new addVendorItemMapping_result(this);
18626
    }
18627
 
18628
    @Override
18629
    public void clear() {
18630
      this.cex = null;
18631
    }
18632
 
18633
    public InventoryServiceException getCex() {
18634
      return this.cex;
18635
    }
18636
 
18637
    public void setCex(InventoryServiceException cex) {
18638
      this.cex = cex;
18639
    }
18640
 
18641
    public void unsetCex() {
18642
      this.cex = null;
18643
    }
18644
 
18645
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18646
    public boolean isSetCex() {
18647
      return this.cex != null;
18648
    }
18649
 
18650
    public void setCexIsSet(boolean value) {
18651
      if (!value) {
18652
        this.cex = null;
18653
      }
18654
    }
18655
 
18656
    public void setFieldValue(_Fields field, Object value) {
18657
      switch (field) {
18658
      case CEX:
18659
        if (value == null) {
18660
          unsetCex();
18661
        } else {
18662
          setCex((InventoryServiceException)value);
18663
        }
18664
        break;
18665
 
18666
      }
18667
    }
18668
 
18669
    public Object getFieldValue(_Fields field) {
18670
      switch (field) {
18671
      case CEX:
18672
        return getCex();
18673
 
18674
      }
18675
      throw new IllegalStateException();
18676
    }
18677
 
18678
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18679
    public boolean isSet(_Fields field) {
18680
      if (field == null) {
18681
        throw new IllegalArgumentException();
18682
      }
18683
 
18684
      switch (field) {
18685
      case CEX:
18686
        return isSetCex();
18687
      }
18688
      throw new IllegalStateException();
18689
    }
18690
 
18691
    @Override
18692
    public boolean equals(Object that) {
18693
      if (that == null)
18694
        return false;
18695
      if (that instanceof addVendorItemMapping_result)
18696
        return this.equals((addVendorItemMapping_result)that);
18697
      return false;
18698
    }
18699
 
18700
    public boolean equals(addVendorItemMapping_result that) {
18701
      if (that == null)
18702
        return false;
18703
 
18704
      boolean this_present_cex = true && this.isSetCex();
18705
      boolean that_present_cex = true && that.isSetCex();
18706
      if (this_present_cex || that_present_cex) {
18707
        if (!(this_present_cex && that_present_cex))
18708
          return false;
18709
        if (!this.cex.equals(that.cex))
18710
          return false;
18711
      }
18712
 
18713
      return true;
18714
    }
18715
 
18716
    @Override
18717
    public int hashCode() {
18718
      return 0;
18719
    }
18720
 
18721
    public int compareTo(addVendorItemMapping_result other) {
18722
      if (!getClass().equals(other.getClass())) {
18723
        return getClass().getName().compareTo(other.getClass().getName());
18724
      }
18725
 
18726
      int lastComparison = 0;
18727
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
18728
 
18729
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18730
      if (lastComparison != 0) {
18731
        return lastComparison;
18732
      }
18733
      if (isSetCex()) {
18734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18735
        if (lastComparison != 0) {
18736
          return lastComparison;
18737
        }
18738
      }
18739
      return 0;
18740
    }
18741
 
18742
    public _Fields fieldForId(int fieldId) {
18743
      return _Fields.findByThriftId(fieldId);
18744
    }
18745
 
18746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18747
      org.apache.thrift.protocol.TField field;
18748
      iprot.readStructBegin();
18749
      while (true)
18750
      {
18751
        field = iprot.readFieldBegin();
18752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18753
          break;
18754
        }
18755
        switch (field.id) {
18756
          case 1: // CEX
18757
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18758
              this.cex = new InventoryServiceException();
18759
              this.cex.read(iprot);
18760
            } else { 
18761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18762
            }
18763
            break;
18764
          default:
18765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18766
        }
18767
        iprot.readFieldEnd();
18768
      }
18769
      iprot.readStructEnd();
18770
      validate();
18771
    }
18772
 
18773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18774
      oprot.writeStructBegin(STRUCT_DESC);
18775
 
18776
      if (this.isSetCex()) {
18777
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18778
        this.cex.write(oprot);
18779
        oprot.writeFieldEnd();
18780
      }
18781
      oprot.writeFieldStop();
18782
      oprot.writeStructEnd();
18783
    }
18784
 
18785
    @Override
18786
    public String toString() {
18787
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
18788
      boolean first = true;
18789
 
18790
      sb.append("cex:");
18791
      if (this.cex == null) {
18792
        sb.append("null");
18793
      } else {
18794
        sb.append(this.cex);
18795
      }
18796
      first = false;
18797
      sb.append(")");
18798
      return sb.toString();
18799
    }
18800
 
18801
    public void validate() throws org.apache.thrift.TException {
18802
      // check for required fields
18803
    }
18804
 
18805
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18806
      try {
18807
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18808
      } catch (org.apache.thrift.TException te) {
18809
        throw new java.io.IOException(te);
18810
      }
18811
    }
18812
 
18813
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18814
      try {
18815
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18816
      } catch (org.apache.thrift.TException te) {
18817
        throw new java.io.IOException(te);
18818
      }
18819
    }
18820
 
18821
  }
18822
 
18823
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
18824
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
18825
 
18826
    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);
18827
 
18828
    private long itemId; // required
18829
 
18830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18832
      ITEM_ID((short)1, "itemId");
18833
 
18834
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18835
 
18836
      static {
18837
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18838
          byName.put(field.getFieldName(), field);
18839
        }
18840
      }
18841
 
18842
      /**
18843
       * Find the _Fields constant that matches fieldId, or null if its not found.
18844
       */
18845
      public static _Fields findByThriftId(int fieldId) {
18846
        switch(fieldId) {
18847
          case 1: // ITEM_ID
18848
            return ITEM_ID;
18849
          default:
18850
            return null;
18851
        }
18852
      }
18853
 
18854
      /**
18855
       * Find the _Fields constant that matches fieldId, throwing an exception
18856
       * if it is not found.
18857
       */
18858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18859
        _Fields fields = findByThriftId(fieldId);
18860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18861
        return fields;
18862
      }
18863
 
18864
      /**
18865
       * Find the _Fields constant that matches name, or null if its not found.
18866
       */
18867
      public static _Fields findByName(String name) {
18868
        return byName.get(name);
18869
      }
18870
 
18871
      private final short _thriftId;
18872
      private final String _fieldName;
18873
 
18874
      _Fields(short thriftId, String fieldName) {
18875
        _thriftId = thriftId;
18876
        _fieldName = fieldName;
18877
      }
18878
 
18879
      public short getThriftFieldId() {
18880
        return _thriftId;
18881
      }
18882
 
18883
      public String getFieldName() {
18884
        return _fieldName;
18885
      }
18886
    }
18887
 
18888
    // isset id assignments
18889
    private static final int __ITEMID_ISSET_ID = 0;
18890
    private BitSet __isset_bit_vector = new BitSet(1);
18891
 
18892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18893
    static {
18894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18895
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
18899
    }
18900
 
18901
    public getVendorItemMappings_args() {
18902
    }
18903
 
18904
    public getVendorItemMappings_args(
18905
      long itemId)
18906
    {
18907
      this();
18908
      this.itemId = itemId;
18909
      setItemIdIsSet(true);
18910
    }
18911
 
18912
    /**
18913
     * Performs a deep copy on <i>other</i>.
18914
     */
18915
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
18916
      __isset_bit_vector.clear();
18917
      __isset_bit_vector.or(other.__isset_bit_vector);
18918
      this.itemId = other.itemId;
18919
    }
18920
 
18921
    public getVendorItemMappings_args deepCopy() {
18922
      return new getVendorItemMappings_args(this);
18923
    }
18924
 
18925
    @Override
18926
    public void clear() {
18927
      setItemIdIsSet(false);
18928
      this.itemId = 0;
18929
    }
18930
 
18931
    public long getItemId() {
18932
      return this.itemId;
18933
    }
18934
 
18935
    public void setItemId(long itemId) {
18936
      this.itemId = itemId;
18937
      setItemIdIsSet(true);
18938
    }
18939
 
18940
    public void unsetItemId() {
18941
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
18942
    }
18943
 
18944
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
18945
    public boolean isSetItemId() {
18946
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
18947
    }
18948
 
18949
    public void setItemIdIsSet(boolean value) {
18950
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
18951
    }
18952
 
18953
    public void setFieldValue(_Fields field, Object value) {
18954
      switch (field) {
18955
      case ITEM_ID:
18956
        if (value == null) {
18957
          unsetItemId();
18958
        } else {
18959
          setItemId((Long)value);
18960
        }
18961
        break;
18962
 
18963
      }
18964
    }
18965
 
18966
    public Object getFieldValue(_Fields field) {
18967
      switch (field) {
18968
      case ITEM_ID:
18969
        return Long.valueOf(getItemId());
18970
 
18971
      }
18972
      throw new IllegalStateException();
18973
    }
18974
 
18975
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18976
    public boolean isSet(_Fields field) {
18977
      if (field == null) {
18978
        throw new IllegalArgumentException();
18979
      }
18980
 
18981
      switch (field) {
18982
      case ITEM_ID:
18983
        return isSetItemId();
18984
      }
18985
      throw new IllegalStateException();
18986
    }
18987
 
18988
    @Override
18989
    public boolean equals(Object that) {
18990
      if (that == null)
18991
        return false;
18992
      if (that instanceof getVendorItemMappings_args)
18993
        return this.equals((getVendorItemMappings_args)that);
18994
      return false;
18995
    }
18996
 
18997
    public boolean equals(getVendorItemMappings_args that) {
18998
      if (that == null)
18999
        return false;
19000
 
19001
      boolean this_present_itemId = true;
19002
      boolean that_present_itemId = true;
19003
      if (this_present_itemId || that_present_itemId) {
19004
        if (!(this_present_itemId && that_present_itemId))
19005
          return false;
19006
        if (this.itemId != that.itemId)
19007
          return false;
19008
      }
19009
 
19010
      return true;
19011
    }
19012
 
19013
    @Override
19014
    public int hashCode() {
19015
      return 0;
19016
    }
19017
 
19018
    public int compareTo(getVendorItemMappings_args other) {
19019
      if (!getClass().equals(other.getClass())) {
19020
        return getClass().getName().compareTo(other.getClass().getName());
19021
      }
19022
 
19023
      int lastComparison = 0;
19024
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
19025
 
19026
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19027
      if (lastComparison != 0) {
19028
        return lastComparison;
19029
      }
19030
      if (isSetItemId()) {
19031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19032
        if (lastComparison != 0) {
19033
          return lastComparison;
19034
        }
19035
      }
19036
      return 0;
19037
    }
19038
 
19039
    public _Fields fieldForId(int fieldId) {
19040
      return _Fields.findByThriftId(fieldId);
19041
    }
19042
 
19043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19044
      org.apache.thrift.protocol.TField field;
19045
      iprot.readStructBegin();
19046
      while (true)
19047
      {
19048
        field = iprot.readFieldBegin();
19049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19050
          break;
19051
        }
19052
        switch (field.id) {
19053
          case 1: // ITEM_ID
19054
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19055
              this.itemId = iprot.readI64();
19056
              setItemIdIsSet(true);
19057
            } else { 
19058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19059
            }
19060
            break;
19061
          default:
19062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19063
        }
19064
        iprot.readFieldEnd();
19065
      }
19066
      iprot.readStructEnd();
19067
      validate();
19068
    }
19069
 
19070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19071
      validate();
19072
 
19073
      oprot.writeStructBegin(STRUCT_DESC);
19074
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19075
      oprot.writeI64(this.itemId);
19076
      oprot.writeFieldEnd();
19077
      oprot.writeFieldStop();
19078
      oprot.writeStructEnd();
19079
    }
19080
 
19081
    @Override
19082
    public String toString() {
19083
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
19084
      boolean first = true;
19085
 
19086
      sb.append("itemId:");
19087
      sb.append(this.itemId);
19088
      first = false;
19089
      sb.append(")");
19090
      return sb.toString();
19091
    }
19092
 
19093
    public void validate() throws org.apache.thrift.TException {
19094
      // check for required fields
19095
    }
19096
 
19097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19098
      try {
19099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19100
      } catch (org.apache.thrift.TException te) {
19101
        throw new java.io.IOException(te);
19102
      }
19103
    }
19104
 
19105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19106
      try {
19107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19108
      } catch (org.apache.thrift.TException te) {
19109
        throw new java.io.IOException(te);
19110
      }
19111
    }
19112
 
19113
  }
19114
 
19115
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
19116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
19117
 
19118
    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);
19119
    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);
19120
 
19121
    private List<VendorItemMapping> success; // required
19122
    private InventoryServiceException cex; // required
19123
 
19124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19125
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19126
      SUCCESS((short)0, "success"),
19127
      CEX((short)1, "cex");
19128
 
19129
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19130
 
19131
      static {
19132
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19133
          byName.put(field.getFieldName(), field);
19134
        }
19135
      }
19136
 
19137
      /**
19138
       * Find the _Fields constant that matches fieldId, or null if its not found.
19139
       */
19140
      public static _Fields findByThriftId(int fieldId) {
19141
        switch(fieldId) {
19142
          case 0: // SUCCESS
19143
            return SUCCESS;
19144
          case 1: // CEX
19145
            return CEX;
19146
          default:
19147
            return null;
19148
        }
19149
      }
19150
 
19151
      /**
19152
       * Find the _Fields constant that matches fieldId, throwing an exception
19153
       * if it is not found.
19154
       */
19155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19156
        _Fields fields = findByThriftId(fieldId);
19157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19158
        return fields;
19159
      }
19160
 
19161
      /**
19162
       * Find the _Fields constant that matches name, or null if its not found.
19163
       */
19164
      public static _Fields findByName(String name) {
19165
        return byName.get(name);
19166
      }
19167
 
19168
      private final short _thriftId;
19169
      private final String _fieldName;
19170
 
19171
      _Fields(short thriftId, String fieldName) {
19172
        _thriftId = thriftId;
19173
        _fieldName = fieldName;
19174
      }
19175
 
19176
      public short getThriftFieldId() {
19177
        return _thriftId;
19178
      }
19179
 
19180
      public String getFieldName() {
19181
        return _fieldName;
19182
      }
19183
    }
19184
 
19185
    // isset id assignments
19186
 
19187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19188
    static {
19189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19190
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19191
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19192
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
19193
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19194
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19195
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19196
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
19197
    }
19198
 
19199
    public getVendorItemMappings_result() {
19200
    }
19201
 
19202
    public getVendorItemMappings_result(
19203
      List<VendorItemMapping> success,
19204
      InventoryServiceException cex)
19205
    {
19206
      this();
19207
      this.success = success;
19208
      this.cex = cex;
19209
    }
19210
 
19211
    /**
19212
     * Performs a deep copy on <i>other</i>.
19213
     */
19214
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
19215
      if (other.isSetSuccess()) {
19216
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
19217
        for (VendorItemMapping other_element : other.success) {
19218
          __this__success.add(new VendorItemMapping(other_element));
19219
        }
19220
        this.success = __this__success;
19221
      }
19222
      if (other.isSetCex()) {
19223
        this.cex = new InventoryServiceException(other.cex);
19224
      }
19225
    }
19226
 
19227
    public getVendorItemMappings_result deepCopy() {
19228
      return new getVendorItemMappings_result(this);
19229
    }
19230
 
19231
    @Override
19232
    public void clear() {
19233
      this.success = null;
19234
      this.cex = null;
19235
    }
19236
 
19237
    public int getSuccessSize() {
19238
      return (this.success == null) ? 0 : this.success.size();
19239
    }
19240
 
19241
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
19242
      return (this.success == null) ? null : this.success.iterator();
19243
    }
19244
 
19245
    public void addToSuccess(VendorItemMapping elem) {
19246
      if (this.success == null) {
19247
        this.success = new ArrayList<VendorItemMapping>();
19248
      }
19249
      this.success.add(elem);
19250
    }
19251
 
19252
    public List<VendorItemMapping> getSuccess() {
19253
      return this.success;
19254
    }
19255
 
19256
    public void setSuccess(List<VendorItemMapping> success) {
19257
      this.success = success;
19258
    }
19259
 
19260
    public void unsetSuccess() {
19261
      this.success = null;
19262
    }
19263
 
19264
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19265
    public boolean isSetSuccess() {
19266
      return this.success != null;
19267
    }
19268
 
19269
    public void setSuccessIsSet(boolean value) {
19270
      if (!value) {
19271
        this.success = null;
19272
      }
19273
    }
19274
 
19275
    public InventoryServiceException getCex() {
19276
      return this.cex;
19277
    }
19278
 
19279
    public void setCex(InventoryServiceException cex) {
19280
      this.cex = cex;
19281
    }
19282
 
19283
    public void unsetCex() {
19284
      this.cex = null;
19285
    }
19286
 
19287
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19288
    public boolean isSetCex() {
19289
      return this.cex != null;
19290
    }
19291
 
19292
    public void setCexIsSet(boolean value) {
19293
      if (!value) {
19294
        this.cex = null;
19295
      }
19296
    }
19297
 
19298
    public void setFieldValue(_Fields field, Object value) {
19299
      switch (field) {
19300
      case SUCCESS:
19301
        if (value == null) {
19302
          unsetSuccess();
19303
        } else {
19304
          setSuccess((List<VendorItemMapping>)value);
19305
        }
19306
        break;
19307
 
19308
      case CEX:
19309
        if (value == null) {
19310
          unsetCex();
19311
        } else {
19312
          setCex((InventoryServiceException)value);
19313
        }
19314
        break;
19315
 
19316
      }
19317
    }
19318
 
19319
    public Object getFieldValue(_Fields field) {
19320
      switch (field) {
19321
      case SUCCESS:
19322
        return getSuccess();
19323
 
19324
      case CEX:
19325
        return getCex();
19326
 
19327
      }
19328
      throw new IllegalStateException();
19329
    }
19330
 
19331
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19332
    public boolean isSet(_Fields field) {
19333
      if (field == null) {
19334
        throw new IllegalArgumentException();
19335
      }
19336
 
19337
      switch (field) {
19338
      case SUCCESS:
19339
        return isSetSuccess();
19340
      case CEX:
19341
        return isSetCex();
19342
      }
19343
      throw new IllegalStateException();
19344
    }
19345
 
19346
    @Override
19347
    public boolean equals(Object that) {
19348
      if (that == null)
19349
        return false;
19350
      if (that instanceof getVendorItemMappings_result)
19351
        return this.equals((getVendorItemMappings_result)that);
19352
      return false;
19353
    }
19354
 
19355
    public boolean equals(getVendorItemMappings_result that) {
19356
      if (that == null)
19357
        return false;
19358
 
19359
      boolean this_present_success = true && this.isSetSuccess();
19360
      boolean that_present_success = true && that.isSetSuccess();
19361
      if (this_present_success || that_present_success) {
19362
        if (!(this_present_success && that_present_success))
19363
          return false;
19364
        if (!this.success.equals(that.success))
19365
          return false;
19366
      }
19367
 
19368
      boolean this_present_cex = true && this.isSetCex();
19369
      boolean that_present_cex = true && that.isSetCex();
19370
      if (this_present_cex || that_present_cex) {
19371
        if (!(this_present_cex && that_present_cex))
19372
          return false;
19373
        if (!this.cex.equals(that.cex))
19374
          return false;
19375
      }
19376
 
19377
      return true;
19378
    }
19379
 
19380
    @Override
19381
    public int hashCode() {
19382
      return 0;
19383
    }
19384
 
19385
    public int compareTo(getVendorItemMappings_result other) {
19386
      if (!getClass().equals(other.getClass())) {
19387
        return getClass().getName().compareTo(other.getClass().getName());
19388
      }
19389
 
19390
      int lastComparison = 0;
19391
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
19392
 
19393
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19394
      if (lastComparison != 0) {
19395
        return lastComparison;
19396
      }
19397
      if (isSetSuccess()) {
19398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19399
        if (lastComparison != 0) {
19400
          return lastComparison;
19401
        }
19402
      }
19403
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19404
      if (lastComparison != 0) {
19405
        return lastComparison;
19406
      }
19407
      if (isSetCex()) {
19408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19409
        if (lastComparison != 0) {
19410
          return lastComparison;
19411
        }
19412
      }
19413
      return 0;
19414
    }
19415
 
19416
    public _Fields fieldForId(int fieldId) {
19417
      return _Fields.findByThriftId(fieldId);
19418
    }
19419
 
19420
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19421
      org.apache.thrift.protocol.TField field;
19422
      iprot.readStructBegin();
19423
      while (true)
19424
      {
19425
        field = iprot.readFieldBegin();
19426
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19427
          break;
19428
        }
19429
        switch (field.id) {
19430
          case 0: // SUCCESS
19431
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19432
              {
19433
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
19434
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
19435
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
19436
                {
19437
                  VendorItemMapping _elem42; // required
19438
                  _elem42 = new VendorItemMapping();
19439
                  _elem42.read(iprot);
19440
                  this.success.add(_elem42);
19441
                }
19442
                iprot.readListEnd();
19443
              }
19444
            } else { 
19445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19446
            }
19447
            break;
19448
          case 1: // CEX
19449
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19450
              this.cex = new InventoryServiceException();
19451
              this.cex.read(iprot);
19452
            } else { 
19453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19454
            }
19455
            break;
19456
          default:
19457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19458
        }
19459
        iprot.readFieldEnd();
19460
      }
19461
      iprot.readStructEnd();
19462
      validate();
19463
    }
19464
 
19465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19466
      oprot.writeStructBegin(STRUCT_DESC);
19467
 
19468
      if (this.isSetSuccess()) {
19469
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19470
        {
19471
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19472
          for (VendorItemMapping _iter43 : this.success)
19473
          {
19474
            _iter43.write(oprot);
19475
          }
19476
          oprot.writeListEnd();
19477
        }
19478
        oprot.writeFieldEnd();
19479
      } else if (this.isSetCex()) {
19480
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19481
        this.cex.write(oprot);
19482
        oprot.writeFieldEnd();
19483
      }
19484
      oprot.writeFieldStop();
19485
      oprot.writeStructEnd();
19486
    }
19487
 
19488
    @Override
19489
    public String toString() {
19490
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
19491
      boolean first = true;
19492
 
19493
      sb.append("success:");
19494
      if (this.success == null) {
19495
        sb.append("null");
19496
      } else {
19497
        sb.append(this.success);
19498
      }
19499
      first = false;
19500
      if (!first) sb.append(", ");
19501
      sb.append("cex:");
19502
      if (this.cex == null) {
19503
        sb.append("null");
19504
      } else {
19505
        sb.append(this.cex);
19506
      }
19507
      first = false;
19508
      sb.append(")");
19509
      return sb.toString();
19510
    }
19511
 
19512
    public void validate() throws org.apache.thrift.TException {
19513
      // check for required fields
19514
    }
19515
 
19516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19517
      try {
19518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19519
      } catch (org.apache.thrift.TException te) {
19520
        throw new java.io.IOException(te);
19521
      }
19522
    }
19523
 
19524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19525
      try {
19526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19527
      } catch (org.apache.thrift.TException te) {
19528
        throw new java.io.IOException(te);
19529
      }
19530
    }
19531
 
19532
  }
19533
 
19534
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
19535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
19536
 
19537
    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);
19538
 
19539
    private long vendorid; // required
19540
 
19541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19543
      VENDORID((short)1, "vendorid");
19544
 
19545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19546
 
19547
      static {
19548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19549
          byName.put(field.getFieldName(), field);
19550
        }
19551
      }
19552
 
19553
      /**
19554
       * Find the _Fields constant that matches fieldId, or null if its not found.
19555
       */
19556
      public static _Fields findByThriftId(int fieldId) {
19557
        switch(fieldId) {
19558
          case 1: // VENDORID
19559
            return VENDORID;
19560
          default:
19561
            return null;
19562
        }
19563
      }
19564
 
19565
      /**
19566
       * Find the _Fields constant that matches fieldId, throwing an exception
19567
       * if it is not found.
19568
       */
19569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19570
        _Fields fields = findByThriftId(fieldId);
19571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19572
        return fields;
19573
      }
19574
 
19575
      /**
19576
       * Find the _Fields constant that matches name, or null if its not found.
19577
       */
19578
      public static _Fields findByName(String name) {
19579
        return byName.get(name);
19580
      }
19581
 
19582
      private final short _thriftId;
19583
      private final String _fieldName;
19584
 
19585
      _Fields(short thriftId, String fieldName) {
19586
        _thriftId = thriftId;
19587
        _fieldName = fieldName;
19588
      }
19589
 
19590
      public short getThriftFieldId() {
19591
        return _thriftId;
19592
      }
19593
 
19594
      public String getFieldName() {
19595
        return _fieldName;
19596
      }
19597
    }
19598
 
19599
    // isset id assignments
19600
    private static final int __VENDORID_ISSET_ID = 0;
19601
    private BitSet __isset_bit_vector = new BitSet(1);
19602
 
19603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19604
    static {
19605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19606
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
19610
    }
19611
 
19612
    public getPendingOrdersInventory_args() {
19613
    }
19614
 
19615
    public getPendingOrdersInventory_args(
19616
      long vendorid)
19617
    {
19618
      this();
19619
      this.vendorid = vendorid;
19620
      setVendoridIsSet(true);
19621
    }
19622
 
19623
    /**
19624
     * Performs a deep copy on <i>other</i>.
19625
     */
19626
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
19627
      __isset_bit_vector.clear();
19628
      __isset_bit_vector.or(other.__isset_bit_vector);
19629
      this.vendorid = other.vendorid;
19630
    }
19631
 
19632
    public getPendingOrdersInventory_args deepCopy() {
19633
      return new getPendingOrdersInventory_args(this);
19634
    }
19635
 
19636
    @Override
19637
    public void clear() {
19638
      setVendoridIsSet(false);
19639
      this.vendorid = 0;
19640
    }
19641
 
19642
    public long getVendorid() {
19643
      return this.vendorid;
19644
    }
19645
 
19646
    public void setVendorid(long vendorid) {
19647
      this.vendorid = vendorid;
19648
      setVendoridIsSet(true);
19649
    }
19650
 
19651
    public void unsetVendorid() {
19652
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
19653
    }
19654
 
19655
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
19656
    public boolean isSetVendorid() {
19657
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
19658
    }
19659
 
19660
    public void setVendoridIsSet(boolean value) {
19661
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
19662
    }
19663
 
19664
    public void setFieldValue(_Fields field, Object value) {
19665
      switch (field) {
19666
      case VENDORID:
19667
        if (value == null) {
19668
          unsetVendorid();
19669
        } else {
19670
          setVendorid((Long)value);
19671
        }
19672
        break;
19673
 
19674
      }
19675
    }
19676
 
19677
    public Object getFieldValue(_Fields field) {
19678
      switch (field) {
19679
      case VENDORID:
19680
        return Long.valueOf(getVendorid());
19681
 
19682
      }
19683
      throw new IllegalStateException();
19684
    }
19685
 
19686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19687
    public boolean isSet(_Fields field) {
19688
      if (field == null) {
19689
        throw new IllegalArgumentException();
19690
      }
19691
 
19692
      switch (field) {
19693
      case VENDORID:
19694
        return isSetVendorid();
19695
      }
19696
      throw new IllegalStateException();
19697
    }
19698
 
19699
    @Override
19700
    public boolean equals(Object that) {
19701
      if (that == null)
19702
        return false;
19703
      if (that instanceof getPendingOrdersInventory_args)
19704
        return this.equals((getPendingOrdersInventory_args)that);
19705
      return false;
19706
    }
19707
 
19708
    public boolean equals(getPendingOrdersInventory_args that) {
19709
      if (that == null)
19710
        return false;
19711
 
19712
      boolean this_present_vendorid = true;
19713
      boolean that_present_vendorid = true;
19714
      if (this_present_vendorid || that_present_vendorid) {
19715
        if (!(this_present_vendorid && that_present_vendorid))
19716
          return false;
19717
        if (this.vendorid != that.vendorid)
19718
          return false;
19719
      }
19720
 
19721
      return true;
19722
    }
19723
 
19724
    @Override
19725
    public int hashCode() {
19726
      return 0;
19727
    }
19728
 
19729
    public int compareTo(getPendingOrdersInventory_args other) {
19730
      if (!getClass().equals(other.getClass())) {
19731
        return getClass().getName().compareTo(other.getClass().getName());
19732
      }
19733
 
19734
      int lastComparison = 0;
19735
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
19736
 
19737
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
19738
      if (lastComparison != 0) {
19739
        return lastComparison;
19740
      }
19741
      if (isSetVendorid()) {
19742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
19743
        if (lastComparison != 0) {
19744
          return lastComparison;
19745
        }
19746
      }
19747
      return 0;
19748
    }
19749
 
19750
    public _Fields fieldForId(int fieldId) {
19751
      return _Fields.findByThriftId(fieldId);
19752
    }
19753
 
19754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19755
      org.apache.thrift.protocol.TField field;
19756
      iprot.readStructBegin();
19757
      while (true)
19758
      {
19759
        field = iprot.readFieldBegin();
19760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19761
          break;
19762
        }
19763
        switch (field.id) {
19764
          case 1: // VENDORID
19765
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19766
              this.vendorid = iprot.readI64();
19767
              setVendoridIsSet(true);
19768
            } else { 
19769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19770
            }
19771
            break;
19772
          default:
19773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19774
        }
19775
        iprot.readFieldEnd();
19776
      }
19777
      iprot.readStructEnd();
19778
      validate();
19779
    }
19780
 
19781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19782
      validate();
19783
 
19784
      oprot.writeStructBegin(STRUCT_DESC);
19785
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
19786
      oprot.writeI64(this.vendorid);
19787
      oprot.writeFieldEnd();
19788
      oprot.writeFieldStop();
19789
      oprot.writeStructEnd();
19790
    }
19791
 
19792
    @Override
19793
    public String toString() {
19794
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
19795
      boolean first = true;
19796
 
19797
      sb.append("vendorid:");
19798
      sb.append(this.vendorid);
19799
      first = false;
19800
      sb.append(")");
19801
      return sb.toString();
19802
    }
19803
 
19804
    public void validate() throws org.apache.thrift.TException {
19805
      // check for required fields
19806
    }
19807
 
19808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19809
      try {
19810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19811
      } catch (org.apache.thrift.TException te) {
19812
        throw new java.io.IOException(te);
19813
      }
19814
    }
19815
 
19816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19817
      try {
19818
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19819
        __isset_bit_vector = new BitSet(1);
19820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19821
      } catch (org.apache.thrift.TException te) {
19822
        throw new java.io.IOException(te);
19823
      }
19824
    }
19825
 
19826
  }
19827
 
19828
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
19829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
19830
 
19831
    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);
19832
 
19833
    private List<AvailableAndReservedStock> success; // required
19834
 
19835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19837
      SUCCESS((short)0, "success");
19838
 
19839
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19840
 
19841
      static {
19842
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19843
          byName.put(field.getFieldName(), field);
19844
        }
19845
      }
19846
 
19847
      /**
19848
       * Find the _Fields constant that matches fieldId, or null if its not found.
19849
       */
19850
      public static _Fields findByThriftId(int fieldId) {
19851
        switch(fieldId) {
19852
          case 0: // SUCCESS
19853
            return SUCCESS;
19854
          default:
19855
            return null;
19856
        }
19857
      }
19858
 
19859
      /**
19860
       * Find the _Fields constant that matches fieldId, throwing an exception
19861
       * if it is not found.
19862
       */
19863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19864
        _Fields fields = findByThriftId(fieldId);
19865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19866
        return fields;
19867
      }
19868
 
19869
      /**
19870
       * Find the _Fields constant that matches name, or null if its not found.
19871
       */
19872
      public static _Fields findByName(String name) {
19873
        return byName.get(name);
19874
      }
19875
 
19876
      private final short _thriftId;
19877
      private final String _fieldName;
19878
 
19879
      _Fields(short thriftId, String fieldName) {
19880
        _thriftId = thriftId;
19881
        _fieldName = fieldName;
19882
      }
19883
 
19884
      public short getThriftFieldId() {
19885
        return _thriftId;
19886
      }
19887
 
19888
      public String getFieldName() {
19889
        return _fieldName;
19890
      }
19891
    }
19892
 
19893
    // isset id assignments
19894
 
19895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19896
    static {
19897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19899
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19900
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
19901
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19902
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
19903
    }
19904
 
19905
    public getPendingOrdersInventory_result() {
19906
    }
19907
 
19908
    public getPendingOrdersInventory_result(
19909
      List<AvailableAndReservedStock> success)
19910
    {
19911
      this();
19912
      this.success = success;
19913
    }
19914
 
19915
    /**
19916
     * Performs a deep copy on <i>other</i>.
19917
     */
19918
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
19919
      if (other.isSetSuccess()) {
19920
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
19921
        for (AvailableAndReservedStock other_element : other.success) {
19922
          __this__success.add(new AvailableAndReservedStock(other_element));
19923
        }
19924
        this.success = __this__success;
19925
      }
19926
    }
19927
 
19928
    public getPendingOrdersInventory_result deepCopy() {
19929
      return new getPendingOrdersInventory_result(this);
19930
    }
19931
 
19932
    @Override
19933
    public void clear() {
19934
      this.success = null;
19935
    }
19936
 
19937
    public int getSuccessSize() {
19938
      return (this.success == null) ? 0 : this.success.size();
19939
    }
19940
 
19941
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
19942
      return (this.success == null) ? null : this.success.iterator();
19943
    }
19944
 
19945
    public void addToSuccess(AvailableAndReservedStock elem) {
19946
      if (this.success == null) {
19947
        this.success = new ArrayList<AvailableAndReservedStock>();
19948
      }
19949
      this.success.add(elem);
19950
    }
19951
 
19952
    public List<AvailableAndReservedStock> getSuccess() {
19953
      return this.success;
19954
    }
19955
 
19956
    public void setSuccess(List<AvailableAndReservedStock> success) {
19957
      this.success = success;
19958
    }
19959
 
19960
    public void unsetSuccess() {
19961
      this.success = null;
19962
    }
19963
 
19964
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19965
    public boolean isSetSuccess() {
19966
      return this.success != null;
19967
    }
19968
 
19969
    public void setSuccessIsSet(boolean value) {
19970
      if (!value) {
19971
        this.success = null;
19972
      }
19973
    }
19974
 
19975
    public void setFieldValue(_Fields field, Object value) {
19976
      switch (field) {
19977
      case SUCCESS:
19978
        if (value == null) {
19979
          unsetSuccess();
19980
        } else {
19981
          setSuccess((List<AvailableAndReservedStock>)value);
19982
        }
19983
        break;
19984
 
19985
      }
19986
    }
19987
 
19988
    public Object getFieldValue(_Fields field) {
19989
      switch (field) {
19990
      case SUCCESS:
19991
        return getSuccess();
19992
 
19993
      }
19994
      throw new IllegalStateException();
19995
    }
19996
 
19997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19998
    public boolean isSet(_Fields field) {
19999
      if (field == null) {
20000
        throw new IllegalArgumentException();
20001
      }
20002
 
20003
      switch (field) {
20004
      case SUCCESS:
20005
        return isSetSuccess();
20006
      }
20007
      throw new IllegalStateException();
20008
    }
20009
 
20010
    @Override
20011
    public boolean equals(Object that) {
20012
      if (that == null)
20013
        return false;
20014
      if (that instanceof getPendingOrdersInventory_result)
20015
        return this.equals((getPendingOrdersInventory_result)that);
20016
      return false;
20017
    }
20018
 
20019
    public boolean equals(getPendingOrdersInventory_result that) {
20020
      if (that == null)
20021
        return false;
20022
 
20023
      boolean this_present_success = true && this.isSetSuccess();
20024
      boolean that_present_success = true && that.isSetSuccess();
20025
      if (this_present_success || that_present_success) {
20026
        if (!(this_present_success && that_present_success))
20027
          return false;
20028
        if (!this.success.equals(that.success))
20029
          return false;
20030
      }
20031
 
20032
      return true;
20033
    }
20034
 
20035
    @Override
20036
    public int hashCode() {
20037
      return 0;
20038
    }
20039
 
20040
    public int compareTo(getPendingOrdersInventory_result other) {
20041
      if (!getClass().equals(other.getClass())) {
20042
        return getClass().getName().compareTo(other.getClass().getName());
20043
      }
20044
 
20045
      int lastComparison = 0;
20046
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
20047
 
20048
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20049
      if (lastComparison != 0) {
20050
        return lastComparison;
20051
      }
20052
      if (isSetSuccess()) {
20053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20054
        if (lastComparison != 0) {
20055
          return lastComparison;
20056
        }
20057
      }
20058
      return 0;
20059
    }
20060
 
20061
    public _Fields fieldForId(int fieldId) {
20062
      return _Fields.findByThriftId(fieldId);
20063
    }
20064
 
20065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20066
      org.apache.thrift.protocol.TField field;
20067
      iprot.readStructBegin();
20068
      while (true)
20069
      {
20070
        field = iprot.readFieldBegin();
20071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20072
          break;
20073
        }
20074
        switch (field.id) {
20075
          case 0: // SUCCESS
20076
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20077
              {
20078
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
20079
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
20080
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20081
                {
20082
                  AvailableAndReservedStock _elem46; // required
20083
                  _elem46 = new AvailableAndReservedStock();
20084
                  _elem46.read(iprot);
20085
                  this.success.add(_elem46);
20086
                }
20087
                iprot.readListEnd();
20088
              }
20089
            } else { 
20090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20091
            }
20092
            break;
20093
          default:
20094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20095
        }
20096
        iprot.readFieldEnd();
20097
      }
20098
      iprot.readStructEnd();
20099
      validate();
20100
    }
20101
 
20102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20103
      oprot.writeStructBegin(STRUCT_DESC);
20104
 
20105
      if (this.isSetSuccess()) {
20106
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20107
        {
20108
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20109
          for (AvailableAndReservedStock _iter47 : this.success)
20110
          {
20111
            _iter47.write(oprot);
20112
          }
20113
          oprot.writeListEnd();
20114
        }
20115
        oprot.writeFieldEnd();
20116
      }
20117
      oprot.writeFieldStop();
20118
      oprot.writeStructEnd();
20119
    }
20120
 
20121
    @Override
20122
    public String toString() {
20123
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
20124
      boolean first = true;
20125
 
20126
      sb.append("success:");
20127
      if (this.success == null) {
20128
        sb.append("null");
20129
      } else {
20130
        sb.append(this.success);
20131
      }
20132
      first = false;
20133
      sb.append(")");
20134
      return sb.toString();
20135
    }
20136
 
20137
    public void validate() throws org.apache.thrift.TException {
20138
      // check for required fields
20139
    }
20140
 
20141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20142
      try {
20143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20144
      } catch (org.apache.thrift.TException te) {
20145
        throw new java.io.IOException(te);
20146
      }
20147
    }
20148
 
20149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20150
      try {
20151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20152
      } catch (org.apache.thrift.TException te) {
20153
        throw new java.io.IOException(te);
20154
      }
20155
    }
20156
 
20157
  }
20158
 
20159
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
20160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
20161
 
20162
    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);
20163
    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);
20164
    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);
20165
    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);
20166
    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);
20167
 
20168
    private WarehouseType warehouseType; // required
20169
    private InventoryType inventoryType; // required
20170
    private long vendorId; // required
20171
    private long billingWarehouseId; // required
20172
    private long shippingWarehouseId; // required
20173
 
20174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20175
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20176
      /**
20177
       * 
20178
       * @see WarehouseType
20179
       */
20180
      WAREHOUSE_TYPE((short)1, "warehouseType"),
20181
      /**
20182
       * 
20183
       * @see InventoryType
20184
       */
20185
      INVENTORY_TYPE((short)2, "inventoryType"),
20186
      VENDOR_ID((short)3, "vendorId"),
20187
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
20188
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
20189
 
20190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20191
 
20192
      static {
20193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20194
          byName.put(field.getFieldName(), field);
20195
        }
20196
      }
20197
 
20198
      /**
20199
       * Find the _Fields constant that matches fieldId, or null if its not found.
20200
       */
20201
      public static _Fields findByThriftId(int fieldId) {
20202
        switch(fieldId) {
20203
          case 1: // WAREHOUSE_TYPE
20204
            return WAREHOUSE_TYPE;
20205
          case 2: // INVENTORY_TYPE
20206
            return INVENTORY_TYPE;
20207
          case 3: // VENDOR_ID
20208
            return VENDOR_ID;
20209
          case 4: // BILLING_WAREHOUSE_ID
20210
            return BILLING_WAREHOUSE_ID;
20211
          case 5: // SHIPPING_WAREHOUSE_ID
20212
            return SHIPPING_WAREHOUSE_ID;
20213
          default:
20214
            return null;
20215
        }
20216
      }
20217
 
20218
      /**
20219
       * Find the _Fields constant that matches fieldId, throwing an exception
20220
       * if it is not found.
20221
       */
20222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20223
        _Fields fields = findByThriftId(fieldId);
20224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20225
        return fields;
20226
      }
20227
 
20228
      /**
20229
       * Find the _Fields constant that matches name, or null if its not found.
20230
       */
20231
      public static _Fields findByName(String name) {
20232
        return byName.get(name);
20233
      }
20234
 
20235
      private final short _thriftId;
20236
      private final String _fieldName;
20237
 
20238
      _Fields(short thriftId, String fieldName) {
20239
        _thriftId = thriftId;
20240
        _fieldName = fieldName;
20241
      }
20242
 
20243
      public short getThriftFieldId() {
20244
        return _thriftId;
20245
      }
20246
 
20247
      public String getFieldName() {
20248
        return _fieldName;
20249
      }
20250
    }
20251
 
20252
    // isset id assignments
20253
    private static final int __VENDORID_ISSET_ID = 0;
20254
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
20255
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
20256
    private BitSet __isset_bit_vector = new BitSet(3);
20257
 
20258
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20259
    static {
20260
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20261
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20262
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
20263
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20264
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
20265
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20267
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20269
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20271
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20272
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
20273
    }
20274
 
20275
    public getWarehouses_args() {
20276
    }
20277
 
20278
    public getWarehouses_args(
20279
      WarehouseType warehouseType,
20280
      InventoryType inventoryType,
20281
      long vendorId,
20282
      long billingWarehouseId,
20283
      long shippingWarehouseId)
20284
    {
20285
      this();
20286
      this.warehouseType = warehouseType;
20287
      this.inventoryType = inventoryType;
20288
      this.vendorId = vendorId;
20289
      setVendorIdIsSet(true);
20290
      this.billingWarehouseId = billingWarehouseId;
20291
      setBillingWarehouseIdIsSet(true);
20292
      this.shippingWarehouseId = shippingWarehouseId;
20293
      setShippingWarehouseIdIsSet(true);
20294
    }
20295
 
20296
    /**
20297
     * Performs a deep copy on <i>other</i>.
20298
     */
20299
    public getWarehouses_args(getWarehouses_args other) {
20300
      __isset_bit_vector.clear();
20301
      __isset_bit_vector.or(other.__isset_bit_vector);
20302
      if (other.isSetWarehouseType()) {
20303
        this.warehouseType = other.warehouseType;
20304
      }
20305
      if (other.isSetInventoryType()) {
20306
        this.inventoryType = other.inventoryType;
20307
      }
20308
      this.vendorId = other.vendorId;
20309
      this.billingWarehouseId = other.billingWarehouseId;
20310
      this.shippingWarehouseId = other.shippingWarehouseId;
20311
    }
20312
 
20313
    public getWarehouses_args deepCopy() {
20314
      return new getWarehouses_args(this);
20315
    }
20316
 
20317
    @Override
20318
    public void clear() {
20319
      this.warehouseType = null;
20320
      this.inventoryType = null;
20321
      setVendorIdIsSet(false);
20322
      this.vendorId = 0;
20323
      setBillingWarehouseIdIsSet(false);
20324
      this.billingWarehouseId = 0;
20325
      setShippingWarehouseIdIsSet(false);
20326
      this.shippingWarehouseId = 0;
20327
    }
20328
 
20329
    /**
20330
     * 
20331
     * @see WarehouseType
20332
     */
20333
    public WarehouseType getWarehouseType() {
20334
      return this.warehouseType;
20335
    }
20336
 
20337
    /**
20338
     * 
20339
     * @see WarehouseType
20340
     */
20341
    public void setWarehouseType(WarehouseType warehouseType) {
20342
      this.warehouseType = warehouseType;
20343
    }
20344
 
20345
    public void unsetWarehouseType() {
20346
      this.warehouseType = null;
20347
    }
20348
 
20349
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
20350
    public boolean isSetWarehouseType() {
20351
      return this.warehouseType != null;
20352
    }
20353
 
20354
    public void setWarehouseTypeIsSet(boolean value) {
20355
      if (!value) {
20356
        this.warehouseType = null;
20357
      }
20358
    }
20359
 
20360
    /**
20361
     * 
20362
     * @see InventoryType
20363
     */
20364
    public InventoryType getInventoryType() {
20365
      return this.inventoryType;
20366
    }
20367
 
20368
    /**
20369
     * 
20370
     * @see InventoryType
20371
     */
20372
    public void setInventoryType(InventoryType inventoryType) {
20373
      this.inventoryType = inventoryType;
20374
    }
20375
 
20376
    public void unsetInventoryType() {
20377
      this.inventoryType = null;
20378
    }
20379
 
20380
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
20381
    public boolean isSetInventoryType() {
20382
      return this.inventoryType != null;
20383
    }
20384
 
20385
    public void setInventoryTypeIsSet(boolean value) {
20386
      if (!value) {
20387
        this.inventoryType = null;
20388
      }
20389
    }
20390
 
20391
    public long getVendorId() {
20392
      return this.vendorId;
20393
    }
20394
 
20395
    public void setVendorId(long vendorId) {
20396
      this.vendorId = vendorId;
20397
      setVendorIdIsSet(true);
20398
    }
20399
 
20400
    public void unsetVendorId() {
20401
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20402
    }
20403
 
20404
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
20405
    public boolean isSetVendorId() {
20406
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20407
    }
20408
 
20409
    public void setVendorIdIsSet(boolean value) {
20410
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20411
    }
20412
 
20413
    public long getBillingWarehouseId() {
20414
      return this.billingWarehouseId;
20415
    }
20416
 
20417
    public void setBillingWarehouseId(long billingWarehouseId) {
20418
      this.billingWarehouseId = billingWarehouseId;
20419
      setBillingWarehouseIdIsSet(true);
20420
    }
20421
 
20422
    public void unsetBillingWarehouseId() {
20423
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
20424
    }
20425
 
20426
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
20427
    public boolean isSetBillingWarehouseId() {
20428
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
20429
    }
20430
 
20431
    public void setBillingWarehouseIdIsSet(boolean value) {
20432
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
20433
    }
20434
 
20435
    public long getShippingWarehouseId() {
20436
      return this.shippingWarehouseId;
20437
    }
20438
 
20439
    public void setShippingWarehouseId(long shippingWarehouseId) {
20440
      this.shippingWarehouseId = shippingWarehouseId;
20441
      setShippingWarehouseIdIsSet(true);
20442
    }
20443
 
20444
    public void unsetShippingWarehouseId() {
20445
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
20446
    }
20447
 
20448
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
20449
    public boolean isSetShippingWarehouseId() {
20450
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
20451
    }
20452
 
20453
    public void setShippingWarehouseIdIsSet(boolean value) {
20454
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
20455
    }
20456
 
20457
    public void setFieldValue(_Fields field, Object value) {
20458
      switch (field) {
20459
      case WAREHOUSE_TYPE:
20460
        if (value == null) {
20461
          unsetWarehouseType();
20462
        } else {
20463
          setWarehouseType((WarehouseType)value);
20464
        }
20465
        break;
20466
 
20467
      case INVENTORY_TYPE:
20468
        if (value == null) {
20469
          unsetInventoryType();
20470
        } else {
20471
          setInventoryType((InventoryType)value);
20472
        }
20473
        break;
20474
 
20475
      case VENDOR_ID:
20476
        if (value == null) {
20477
          unsetVendorId();
20478
        } else {
20479
          setVendorId((Long)value);
20480
        }
20481
        break;
20482
 
20483
      case BILLING_WAREHOUSE_ID:
20484
        if (value == null) {
20485
          unsetBillingWarehouseId();
20486
        } else {
20487
          setBillingWarehouseId((Long)value);
20488
        }
20489
        break;
20490
 
20491
      case SHIPPING_WAREHOUSE_ID:
20492
        if (value == null) {
20493
          unsetShippingWarehouseId();
20494
        } else {
20495
          setShippingWarehouseId((Long)value);
20496
        }
20497
        break;
20498
 
20499
      }
20500
    }
20501
 
20502
    public Object getFieldValue(_Fields field) {
20503
      switch (field) {
20504
      case WAREHOUSE_TYPE:
20505
        return getWarehouseType();
20506
 
20507
      case INVENTORY_TYPE:
20508
        return getInventoryType();
20509
 
20510
      case VENDOR_ID:
20511
        return Long.valueOf(getVendorId());
20512
 
20513
      case BILLING_WAREHOUSE_ID:
20514
        return Long.valueOf(getBillingWarehouseId());
20515
 
20516
      case SHIPPING_WAREHOUSE_ID:
20517
        return Long.valueOf(getShippingWarehouseId());
20518
 
20519
      }
20520
      throw new IllegalStateException();
20521
    }
20522
 
20523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20524
    public boolean isSet(_Fields field) {
20525
      if (field == null) {
20526
        throw new IllegalArgumentException();
20527
      }
20528
 
20529
      switch (field) {
20530
      case WAREHOUSE_TYPE:
20531
        return isSetWarehouseType();
20532
      case INVENTORY_TYPE:
20533
        return isSetInventoryType();
20534
      case VENDOR_ID:
20535
        return isSetVendorId();
20536
      case BILLING_WAREHOUSE_ID:
20537
        return isSetBillingWarehouseId();
20538
      case SHIPPING_WAREHOUSE_ID:
20539
        return isSetShippingWarehouseId();
20540
      }
20541
      throw new IllegalStateException();
20542
    }
20543
 
20544
    @Override
20545
    public boolean equals(Object that) {
20546
      if (that == null)
20547
        return false;
20548
      if (that instanceof getWarehouses_args)
20549
        return this.equals((getWarehouses_args)that);
20550
      return false;
20551
    }
20552
 
20553
    public boolean equals(getWarehouses_args that) {
20554
      if (that == null)
20555
        return false;
20556
 
20557
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
20558
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
20559
      if (this_present_warehouseType || that_present_warehouseType) {
20560
        if (!(this_present_warehouseType && that_present_warehouseType))
20561
          return false;
20562
        if (!this.warehouseType.equals(that.warehouseType))
20563
          return false;
20564
      }
20565
 
20566
      boolean this_present_inventoryType = true && this.isSetInventoryType();
20567
      boolean that_present_inventoryType = true && that.isSetInventoryType();
20568
      if (this_present_inventoryType || that_present_inventoryType) {
20569
        if (!(this_present_inventoryType && that_present_inventoryType))
20570
          return false;
20571
        if (!this.inventoryType.equals(that.inventoryType))
20572
          return false;
20573
      }
20574
 
20575
      boolean this_present_vendorId = true;
20576
      boolean that_present_vendorId = true;
20577
      if (this_present_vendorId || that_present_vendorId) {
20578
        if (!(this_present_vendorId && that_present_vendorId))
20579
          return false;
20580
        if (this.vendorId != that.vendorId)
20581
          return false;
20582
      }
20583
 
20584
      boolean this_present_billingWarehouseId = true;
20585
      boolean that_present_billingWarehouseId = true;
20586
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
20587
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
20588
          return false;
20589
        if (this.billingWarehouseId != that.billingWarehouseId)
20590
          return false;
20591
      }
20592
 
20593
      boolean this_present_shippingWarehouseId = true;
20594
      boolean that_present_shippingWarehouseId = true;
20595
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
20596
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
20597
          return false;
20598
        if (this.shippingWarehouseId != that.shippingWarehouseId)
20599
          return false;
20600
      }
20601
 
20602
      return true;
20603
    }
20604
 
20605
    @Override
20606
    public int hashCode() {
20607
      return 0;
20608
    }
20609
 
20610
    public int compareTo(getWarehouses_args other) {
20611
      if (!getClass().equals(other.getClass())) {
20612
        return getClass().getName().compareTo(other.getClass().getName());
20613
      }
20614
 
20615
      int lastComparison = 0;
20616
      getWarehouses_args typedOther = (getWarehouses_args)other;
20617
 
20618
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
20619
      if (lastComparison != 0) {
20620
        return lastComparison;
20621
      }
20622
      if (isSetWarehouseType()) {
20623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
20624
        if (lastComparison != 0) {
20625
          return lastComparison;
20626
        }
20627
      }
20628
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
20629
      if (lastComparison != 0) {
20630
        return lastComparison;
20631
      }
20632
      if (isSetInventoryType()) {
20633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
20634
        if (lastComparison != 0) {
20635
          return lastComparison;
20636
        }
20637
      }
20638
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
20639
      if (lastComparison != 0) {
20640
        return lastComparison;
20641
      }
20642
      if (isSetVendorId()) {
20643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
20644
        if (lastComparison != 0) {
20645
          return lastComparison;
20646
        }
20647
      }
20648
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
20649
      if (lastComparison != 0) {
20650
        return lastComparison;
20651
      }
20652
      if (isSetBillingWarehouseId()) {
20653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
20654
        if (lastComparison != 0) {
20655
          return lastComparison;
20656
        }
20657
      }
20658
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
20659
      if (lastComparison != 0) {
20660
        return lastComparison;
20661
      }
20662
      if (isSetShippingWarehouseId()) {
20663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
20664
        if (lastComparison != 0) {
20665
          return lastComparison;
20666
        }
20667
      }
20668
      return 0;
20669
    }
20670
 
20671
    public _Fields fieldForId(int fieldId) {
20672
      return _Fields.findByThriftId(fieldId);
20673
    }
20674
 
20675
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20676
      org.apache.thrift.protocol.TField field;
20677
      iprot.readStructBegin();
20678
      while (true)
20679
      {
20680
        field = iprot.readFieldBegin();
20681
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20682
          break;
20683
        }
20684
        switch (field.id) {
20685
          case 1: // WAREHOUSE_TYPE
20686
            if (field.type == org.apache.thrift.protocol.TType.I32) {
20687
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
20688
            } else { 
20689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20690
            }
20691
            break;
20692
          case 2: // INVENTORY_TYPE
20693
            if (field.type == org.apache.thrift.protocol.TType.I32) {
20694
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
20695
            } else { 
20696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20697
            }
20698
            break;
20699
          case 3: // VENDOR_ID
20700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20701
              this.vendorId = iprot.readI64();
20702
              setVendorIdIsSet(true);
20703
            } else { 
20704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20705
            }
20706
            break;
20707
          case 4: // BILLING_WAREHOUSE_ID
20708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20709
              this.billingWarehouseId = iprot.readI64();
20710
              setBillingWarehouseIdIsSet(true);
20711
            } else { 
20712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20713
            }
20714
            break;
20715
          case 5: // SHIPPING_WAREHOUSE_ID
20716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20717
              this.shippingWarehouseId = iprot.readI64();
20718
              setShippingWarehouseIdIsSet(true);
20719
            } else { 
20720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20721
            }
20722
            break;
20723
          default:
20724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20725
        }
20726
        iprot.readFieldEnd();
20727
      }
20728
      iprot.readStructEnd();
20729
      validate();
20730
    }
20731
 
20732
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20733
      validate();
20734
 
20735
      oprot.writeStructBegin(STRUCT_DESC);
20736
      if (this.warehouseType != null) {
20737
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
20738
        oprot.writeI32(this.warehouseType.getValue());
20739
        oprot.writeFieldEnd();
20740
      }
20741
      if (this.inventoryType != null) {
20742
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
20743
        oprot.writeI32(this.inventoryType.getValue());
20744
        oprot.writeFieldEnd();
20745
      }
20746
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
20747
      oprot.writeI64(this.vendorId);
20748
      oprot.writeFieldEnd();
20749
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
20750
      oprot.writeI64(this.billingWarehouseId);
20751
      oprot.writeFieldEnd();
20752
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
20753
      oprot.writeI64(this.shippingWarehouseId);
20754
      oprot.writeFieldEnd();
20755
      oprot.writeFieldStop();
20756
      oprot.writeStructEnd();
20757
    }
20758
 
20759
    @Override
20760
    public String toString() {
20761
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
20762
      boolean first = true;
20763
 
20764
      sb.append("warehouseType:");
20765
      if (this.warehouseType == null) {
20766
        sb.append("null");
20767
      } else {
20768
        sb.append(this.warehouseType);
20769
      }
20770
      first = false;
20771
      if (!first) sb.append(", ");
20772
      sb.append("inventoryType:");
20773
      if (this.inventoryType == null) {
20774
        sb.append("null");
20775
      } else {
20776
        sb.append(this.inventoryType);
20777
      }
20778
      first = false;
20779
      if (!first) sb.append(", ");
20780
      sb.append("vendorId:");
20781
      sb.append(this.vendorId);
20782
      first = false;
20783
      if (!first) sb.append(", ");
20784
      sb.append("billingWarehouseId:");
20785
      sb.append(this.billingWarehouseId);
20786
      first = false;
20787
      if (!first) sb.append(", ");
20788
      sb.append("shippingWarehouseId:");
20789
      sb.append(this.shippingWarehouseId);
20790
      first = false;
20791
      sb.append(")");
20792
      return sb.toString();
20793
    }
20794
 
20795
    public void validate() throws org.apache.thrift.TException {
20796
      // check for required fields
20797
    }
20798
 
20799
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20800
      try {
20801
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20802
      } catch (org.apache.thrift.TException te) {
20803
        throw new java.io.IOException(te);
20804
      }
20805
    }
20806
 
20807
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20808
      try {
20809
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20810
      } catch (org.apache.thrift.TException te) {
20811
        throw new java.io.IOException(te);
20812
      }
20813
    }
20814
 
20815
  }
20816
 
20817
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
20818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
20819
 
20820
    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);
20821
 
20822
    private List<Warehouse> success; // required
20823
 
20824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20826
      SUCCESS((short)0, "success");
20827
 
20828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20829
 
20830
      static {
20831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20832
          byName.put(field.getFieldName(), field);
20833
        }
20834
      }
20835
 
20836
      /**
20837
       * Find the _Fields constant that matches fieldId, or null if its not found.
20838
       */
20839
      public static _Fields findByThriftId(int fieldId) {
20840
        switch(fieldId) {
20841
          case 0: // SUCCESS
20842
            return SUCCESS;
20843
          default:
20844
            return null;
20845
        }
20846
      }
20847
 
20848
      /**
20849
       * Find the _Fields constant that matches fieldId, throwing an exception
20850
       * if it is not found.
20851
       */
20852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20853
        _Fields fields = findByThriftId(fieldId);
20854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20855
        return fields;
20856
      }
20857
 
20858
      /**
20859
       * Find the _Fields constant that matches name, or null if its not found.
20860
       */
20861
      public static _Fields findByName(String name) {
20862
        return byName.get(name);
20863
      }
20864
 
20865
      private final short _thriftId;
20866
      private final String _fieldName;
20867
 
20868
      _Fields(short thriftId, String fieldName) {
20869
        _thriftId = thriftId;
20870
        _fieldName = fieldName;
20871
      }
20872
 
20873
      public short getThriftFieldId() {
20874
        return _thriftId;
20875
      }
20876
 
20877
      public String getFieldName() {
20878
        return _fieldName;
20879
      }
20880
    }
20881
 
20882
    // isset id assignments
20883
 
20884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20885
    static {
20886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20887
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20888
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20889
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
20890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
20892
    }
20893
 
20894
    public getWarehouses_result() {
20895
    }
20896
 
20897
    public getWarehouses_result(
20898
      List<Warehouse> success)
20899
    {
20900
      this();
20901
      this.success = success;
20902
    }
20903
 
20904
    /**
20905
     * Performs a deep copy on <i>other</i>.
20906
     */
20907
    public getWarehouses_result(getWarehouses_result other) {
20908
      if (other.isSetSuccess()) {
20909
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
20910
        for (Warehouse other_element : other.success) {
20911
          __this__success.add(new Warehouse(other_element));
20912
        }
20913
        this.success = __this__success;
20914
      }
20915
    }
20916
 
20917
    public getWarehouses_result deepCopy() {
20918
      return new getWarehouses_result(this);
20919
    }
20920
 
20921
    @Override
20922
    public void clear() {
20923
      this.success = null;
20924
    }
20925
 
20926
    public int getSuccessSize() {
20927
      return (this.success == null) ? 0 : this.success.size();
20928
    }
20929
 
20930
    public java.util.Iterator<Warehouse> getSuccessIterator() {
20931
      return (this.success == null) ? null : this.success.iterator();
20932
    }
20933
 
20934
    public void addToSuccess(Warehouse elem) {
20935
      if (this.success == null) {
20936
        this.success = new ArrayList<Warehouse>();
20937
      }
20938
      this.success.add(elem);
20939
    }
20940
 
20941
    public List<Warehouse> getSuccess() {
20942
      return this.success;
20943
    }
20944
 
20945
    public void setSuccess(List<Warehouse> success) {
20946
      this.success = success;
20947
    }
20948
 
20949
    public void unsetSuccess() {
20950
      this.success = null;
20951
    }
20952
 
20953
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20954
    public boolean isSetSuccess() {
20955
      return this.success != null;
20956
    }
20957
 
20958
    public void setSuccessIsSet(boolean value) {
20959
      if (!value) {
20960
        this.success = null;
20961
      }
20962
    }
20963
 
20964
    public void setFieldValue(_Fields field, Object value) {
20965
      switch (field) {
20966
      case SUCCESS:
20967
        if (value == null) {
20968
          unsetSuccess();
20969
        } else {
20970
          setSuccess((List<Warehouse>)value);
20971
        }
20972
        break;
20973
 
20974
      }
20975
    }
20976
 
20977
    public Object getFieldValue(_Fields field) {
20978
      switch (field) {
20979
      case SUCCESS:
20980
        return getSuccess();
20981
 
20982
      }
20983
      throw new IllegalStateException();
20984
    }
20985
 
20986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20987
    public boolean isSet(_Fields field) {
20988
      if (field == null) {
20989
        throw new IllegalArgumentException();
20990
      }
20991
 
20992
      switch (field) {
20993
      case SUCCESS:
20994
        return isSetSuccess();
20995
      }
20996
      throw new IllegalStateException();
20997
    }
20998
 
20999
    @Override
21000
    public boolean equals(Object that) {
21001
      if (that == null)
21002
        return false;
21003
      if (that instanceof getWarehouses_result)
21004
        return this.equals((getWarehouses_result)that);
21005
      return false;
21006
    }
21007
 
21008
    public boolean equals(getWarehouses_result that) {
21009
      if (that == null)
21010
        return false;
21011
 
21012
      boolean this_present_success = true && this.isSetSuccess();
21013
      boolean that_present_success = true && that.isSetSuccess();
21014
      if (this_present_success || that_present_success) {
21015
        if (!(this_present_success && that_present_success))
21016
          return false;
21017
        if (!this.success.equals(that.success))
21018
          return false;
21019
      }
21020
 
21021
      return true;
21022
    }
21023
 
21024
    @Override
21025
    public int hashCode() {
21026
      return 0;
21027
    }
21028
 
21029
    public int compareTo(getWarehouses_result other) {
21030
      if (!getClass().equals(other.getClass())) {
21031
        return getClass().getName().compareTo(other.getClass().getName());
21032
      }
21033
 
21034
      int lastComparison = 0;
21035
      getWarehouses_result typedOther = (getWarehouses_result)other;
21036
 
21037
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21038
      if (lastComparison != 0) {
21039
        return lastComparison;
21040
      }
21041
      if (isSetSuccess()) {
21042
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21043
        if (lastComparison != 0) {
21044
          return lastComparison;
21045
        }
21046
      }
21047
      return 0;
21048
    }
21049
 
21050
    public _Fields fieldForId(int fieldId) {
21051
      return _Fields.findByThriftId(fieldId);
21052
    }
21053
 
21054
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21055
      org.apache.thrift.protocol.TField field;
21056
      iprot.readStructBegin();
21057
      while (true)
21058
      {
21059
        field = iprot.readFieldBegin();
21060
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21061
          break;
21062
        }
21063
        switch (field.id) {
21064
          case 0: // SUCCESS
21065
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21066
              {
21067
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21068
                this.success = new ArrayList<Warehouse>(_list48.size);
21069
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21070
                {
21071
                  Warehouse _elem50; // required
21072
                  _elem50 = new Warehouse();
21073
                  _elem50.read(iprot);
21074
                  this.success.add(_elem50);
21075
                }
21076
                iprot.readListEnd();
21077
              }
21078
            } else { 
21079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21080
            }
21081
            break;
21082
          default:
21083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21084
        }
21085
        iprot.readFieldEnd();
21086
      }
21087
      iprot.readStructEnd();
21088
      validate();
21089
    }
21090
 
21091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21092
      oprot.writeStructBegin(STRUCT_DESC);
21093
 
21094
      if (this.isSetSuccess()) {
21095
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21096
        {
21097
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21098
          for (Warehouse _iter51 : this.success)
21099
          {
21100
            _iter51.write(oprot);
21101
          }
21102
          oprot.writeListEnd();
21103
        }
21104
        oprot.writeFieldEnd();
21105
      }
21106
      oprot.writeFieldStop();
21107
      oprot.writeStructEnd();
21108
    }
21109
 
21110
    @Override
21111
    public String toString() {
21112
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
21113
      boolean first = true;
21114
 
21115
      sb.append("success:");
21116
      if (this.success == null) {
21117
        sb.append("null");
21118
      } else {
21119
        sb.append(this.success);
21120
      }
21121
      first = false;
21122
      sb.append(")");
21123
      return sb.toString();
21124
    }
21125
 
21126
    public void validate() throws org.apache.thrift.TException {
21127
      // check for required fields
21128
    }
21129
 
21130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21131
      try {
21132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21133
      } catch (org.apache.thrift.TException te) {
21134
        throw new java.io.IOException(te);
21135
      }
21136
    }
21137
 
21138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21139
      try {
21140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21141
      } catch (org.apache.thrift.TException te) {
21142
        throw new java.io.IOException(te);
21143
      }
21144
    }
21145
 
21146
  }
21147
 
21148
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
21149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
21150
 
21151
    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);
21152
    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);
21153
    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);
21154
    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);
21155
 
21156
    private String itemKey; // required
21157
    private long vendorId; // required
21158
    private long quantity; // required
21159
    private long warehouseId; // required
21160
 
21161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21163
      ITEM_KEY((short)1, "itemKey"),
21164
      VENDOR_ID((short)2, "vendorId"),
21165
      QUANTITY((short)3, "quantity"),
21166
      WAREHOUSE_ID((short)4, "warehouseId");
21167
 
21168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21169
 
21170
      static {
21171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21172
          byName.put(field.getFieldName(), field);
21173
        }
21174
      }
21175
 
21176
      /**
21177
       * Find the _Fields constant that matches fieldId, or null if its not found.
21178
       */
21179
      public static _Fields findByThriftId(int fieldId) {
21180
        switch(fieldId) {
21181
          case 1: // ITEM_KEY
21182
            return ITEM_KEY;
21183
          case 2: // VENDOR_ID
21184
            return VENDOR_ID;
21185
          case 3: // QUANTITY
21186
            return QUANTITY;
21187
          case 4: // WAREHOUSE_ID
21188
            return WAREHOUSE_ID;
21189
          default:
21190
            return null;
21191
        }
21192
      }
21193
 
21194
      /**
21195
       * Find the _Fields constant that matches fieldId, throwing an exception
21196
       * if it is not found.
21197
       */
21198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21199
        _Fields fields = findByThriftId(fieldId);
21200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21201
        return fields;
21202
      }
21203
 
21204
      /**
21205
       * Find the _Fields constant that matches name, or null if its not found.
21206
       */
21207
      public static _Fields findByName(String name) {
21208
        return byName.get(name);
21209
      }
21210
 
21211
      private final short _thriftId;
21212
      private final String _fieldName;
21213
 
21214
      _Fields(short thriftId, String fieldName) {
21215
        _thriftId = thriftId;
21216
        _fieldName = fieldName;
21217
      }
21218
 
21219
      public short getThriftFieldId() {
21220
        return _thriftId;
21221
      }
21222
 
21223
      public String getFieldName() {
21224
        return _fieldName;
21225
      }
21226
    }
21227
 
21228
    // isset id assignments
21229
    private static final int __VENDORID_ISSET_ID = 0;
21230
    private static final int __QUANTITY_ISSET_ID = 1;
21231
    private static final int __WAREHOUSEID_ISSET_ID = 2;
21232
    private BitSet __isset_bit_vector = new BitSet(3);
21233
 
21234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21235
    static {
21236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21237
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21239
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21241
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21243
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21244
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
21247
    }
21248
 
21249
    public resetAvailability_args() {
21250
    }
21251
 
21252
    public resetAvailability_args(
21253
      String itemKey,
21254
      long vendorId,
21255
      long quantity,
21256
      long warehouseId)
21257
    {
21258
      this();
21259
      this.itemKey = itemKey;
21260
      this.vendorId = vendorId;
21261
      setVendorIdIsSet(true);
21262
      this.quantity = quantity;
21263
      setQuantityIsSet(true);
21264
      this.warehouseId = warehouseId;
21265
      setWarehouseIdIsSet(true);
21266
    }
21267
 
21268
    /**
21269
     * Performs a deep copy on <i>other</i>.
21270
     */
21271
    public resetAvailability_args(resetAvailability_args other) {
21272
      __isset_bit_vector.clear();
21273
      __isset_bit_vector.or(other.__isset_bit_vector);
21274
      if (other.isSetItemKey()) {
21275
        this.itemKey = other.itemKey;
21276
      }
21277
      this.vendorId = other.vendorId;
21278
      this.quantity = other.quantity;
21279
      this.warehouseId = other.warehouseId;
21280
    }
21281
 
21282
    public resetAvailability_args deepCopy() {
21283
      return new resetAvailability_args(this);
21284
    }
21285
 
21286
    @Override
21287
    public void clear() {
21288
      this.itemKey = null;
21289
      setVendorIdIsSet(false);
21290
      this.vendorId = 0;
21291
      setQuantityIsSet(false);
21292
      this.quantity = 0;
21293
      setWarehouseIdIsSet(false);
21294
      this.warehouseId = 0;
21295
    }
21296
 
21297
    public String getItemKey() {
21298
      return this.itemKey;
21299
    }
21300
 
21301
    public void setItemKey(String itemKey) {
21302
      this.itemKey = itemKey;
21303
    }
21304
 
21305
    public void unsetItemKey() {
21306
      this.itemKey = null;
21307
    }
21308
 
21309
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
21310
    public boolean isSetItemKey() {
21311
      return this.itemKey != null;
21312
    }
21313
 
21314
    public void setItemKeyIsSet(boolean value) {
21315
      if (!value) {
21316
        this.itemKey = null;
21317
      }
21318
    }
21319
 
21320
    public long getVendorId() {
21321
      return this.vendorId;
21322
    }
21323
 
21324
    public void setVendorId(long vendorId) {
21325
      this.vendorId = vendorId;
21326
      setVendorIdIsSet(true);
21327
    }
21328
 
21329
    public void unsetVendorId() {
21330
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21331
    }
21332
 
21333
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21334
    public boolean isSetVendorId() {
21335
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21336
    }
21337
 
21338
    public void setVendorIdIsSet(boolean value) {
21339
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21340
    }
21341
 
21342
    public long getQuantity() {
21343
      return this.quantity;
21344
    }
21345
 
21346
    public void setQuantity(long quantity) {
21347
      this.quantity = quantity;
21348
      setQuantityIsSet(true);
21349
    }
21350
 
21351
    public void unsetQuantity() {
21352
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
21353
    }
21354
 
21355
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
21356
    public boolean isSetQuantity() {
21357
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
21358
    }
21359
 
21360
    public void setQuantityIsSet(boolean value) {
21361
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
21362
    }
21363
 
21364
    public long getWarehouseId() {
21365
      return this.warehouseId;
21366
    }
21367
 
21368
    public void setWarehouseId(long warehouseId) {
21369
      this.warehouseId = warehouseId;
21370
      setWarehouseIdIsSet(true);
21371
    }
21372
 
21373
    public void unsetWarehouseId() {
21374
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
21375
    }
21376
 
21377
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
21378
    public boolean isSetWarehouseId() {
21379
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
21380
    }
21381
 
21382
    public void setWarehouseIdIsSet(boolean value) {
21383
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
21384
    }
21385
 
21386
    public void setFieldValue(_Fields field, Object value) {
21387
      switch (field) {
21388
      case ITEM_KEY:
21389
        if (value == null) {
21390
          unsetItemKey();
21391
        } else {
21392
          setItemKey((String)value);
21393
        }
21394
        break;
21395
 
21396
      case VENDOR_ID:
21397
        if (value == null) {
21398
          unsetVendorId();
21399
        } else {
21400
          setVendorId((Long)value);
21401
        }
21402
        break;
21403
 
21404
      case QUANTITY:
21405
        if (value == null) {
21406
          unsetQuantity();
21407
        } else {
21408
          setQuantity((Long)value);
21409
        }
21410
        break;
21411
 
21412
      case WAREHOUSE_ID:
21413
        if (value == null) {
21414
          unsetWarehouseId();
21415
        } else {
21416
          setWarehouseId((Long)value);
21417
        }
21418
        break;
21419
 
21420
      }
21421
    }
21422
 
21423
    public Object getFieldValue(_Fields field) {
21424
      switch (field) {
21425
      case ITEM_KEY:
21426
        return getItemKey();
21427
 
21428
      case VENDOR_ID:
21429
        return Long.valueOf(getVendorId());
21430
 
21431
      case QUANTITY:
21432
        return Long.valueOf(getQuantity());
21433
 
21434
      case WAREHOUSE_ID:
21435
        return Long.valueOf(getWarehouseId());
21436
 
21437
      }
21438
      throw new IllegalStateException();
21439
    }
21440
 
21441
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21442
    public boolean isSet(_Fields field) {
21443
      if (field == null) {
21444
        throw new IllegalArgumentException();
21445
      }
21446
 
21447
      switch (field) {
21448
      case ITEM_KEY:
21449
        return isSetItemKey();
21450
      case VENDOR_ID:
21451
        return isSetVendorId();
21452
      case QUANTITY:
21453
        return isSetQuantity();
21454
      case WAREHOUSE_ID:
21455
        return isSetWarehouseId();
21456
      }
21457
      throw new IllegalStateException();
21458
    }
21459
 
21460
    @Override
21461
    public boolean equals(Object that) {
21462
      if (that == null)
21463
        return false;
21464
      if (that instanceof resetAvailability_args)
21465
        return this.equals((resetAvailability_args)that);
21466
      return false;
21467
    }
21468
 
21469
    public boolean equals(resetAvailability_args that) {
21470
      if (that == null)
21471
        return false;
21472
 
21473
      boolean this_present_itemKey = true && this.isSetItemKey();
21474
      boolean that_present_itemKey = true && that.isSetItemKey();
21475
      if (this_present_itemKey || that_present_itemKey) {
21476
        if (!(this_present_itemKey && that_present_itemKey))
21477
          return false;
21478
        if (!this.itemKey.equals(that.itemKey))
21479
          return false;
21480
      }
21481
 
21482
      boolean this_present_vendorId = true;
21483
      boolean that_present_vendorId = true;
21484
      if (this_present_vendorId || that_present_vendorId) {
21485
        if (!(this_present_vendorId && that_present_vendorId))
21486
          return false;
21487
        if (this.vendorId != that.vendorId)
21488
          return false;
21489
      }
21490
 
21491
      boolean this_present_quantity = true;
21492
      boolean that_present_quantity = true;
21493
      if (this_present_quantity || that_present_quantity) {
21494
        if (!(this_present_quantity && that_present_quantity))
21495
          return false;
21496
        if (this.quantity != that.quantity)
21497
          return false;
21498
      }
21499
 
21500
      boolean this_present_warehouseId = true;
21501
      boolean that_present_warehouseId = true;
21502
      if (this_present_warehouseId || that_present_warehouseId) {
21503
        if (!(this_present_warehouseId && that_present_warehouseId))
21504
          return false;
21505
        if (this.warehouseId != that.warehouseId)
21506
          return false;
21507
      }
21508
 
21509
      return true;
21510
    }
21511
 
21512
    @Override
21513
    public int hashCode() {
21514
      return 0;
21515
    }
21516
 
21517
    public int compareTo(resetAvailability_args other) {
21518
      if (!getClass().equals(other.getClass())) {
21519
        return getClass().getName().compareTo(other.getClass().getName());
21520
      }
21521
 
21522
      int lastComparison = 0;
21523
      resetAvailability_args typedOther = (resetAvailability_args)other;
21524
 
21525
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
21526
      if (lastComparison != 0) {
21527
        return lastComparison;
21528
      }
21529
      if (isSetItemKey()) {
21530
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
21531
        if (lastComparison != 0) {
21532
          return lastComparison;
21533
        }
21534
      }
21535
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21536
      if (lastComparison != 0) {
21537
        return lastComparison;
21538
      }
21539
      if (isSetVendorId()) {
21540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21541
        if (lastComparison != 0) {
21542
          return lastComparison;
21543
        }
21544
      }
21545
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
21546
      if (lastComparison != 0) {
21547
        return lastComparison;
21548
      }
21549
      if (isSetQuantity()) {
21550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
21551
        if (lastComparison != 0) {
21552
          return lastComparison;
21553
        }
21554
      }
21555
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
21556
      if (lastComparison != 0) {
21557
        return lastComparison;
21558
      }
21559
      if (isSetWarehouseId()) {
21560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
21561
        if (lastComparison != 0) {
21562
          return lastComparison;
21563
        }
21564
      }
21565
      return 0;
21566
    }
21567
 
21568
    public _Fields fieldForId(int fieldId) {
21569
      return _Fields.findByThriftId(fieldId);
21570
    }
21571
 
21572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21573
      org.apache.thrift.protocol.TField field;
21574
      iprot.readStructBegin();
21575
      while (true)
21576
      {
21577
        field = iprot.readFieldBegin();
21578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21579
          break;
21580
        }
21581
        switch (field.id) {
21582
          case 1: // ITEM_KEY
21583
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21584
              this.itemKey = iprot.readString();
21585
            } else { 
21586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21587
            }
21588
            break;
21589
          case 2: // VENDOR_ID
21590
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21591
              this.vendorId = iprot.readI64();
21592
              setVendorIdIsSet(true);
21593
            } else { 
21594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21595
            }
21596
            break;
21597
          case 3: // QUANTITY
21598
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21599
              this.quantity = iprot.readI64();
21600
              setQuantityIsSet(true);
21601
            } else { 
21602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21603
            }
21604
            break;
21605
          case 4: // WAREHOUSE_ID
21606
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21607
              this.warehouseId = iprot.readI64();
21608
              setWarehouseIdIsSet(true);
21609
            } else { 
21610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21611
            }
21612
            break;
21613
          default:
21614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21615
        }
21616
        iprot.readFieldEnd();
21617
      }
21618
      iprot.readStructEnd();
21619
      validate();
21620
    }
21621
 
21622
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21623
      validate();
21624
 
21625
      oprot.writeStructBegin(STRUCT_DESC);
21626
      if (this.itemKey != null) {
21627
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
21628
        oprot.writeString(this.itemKey);
21629
        oprot.writeFieldEnd();
21630
      }
21631
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21632
      oprot.writeI64(this.vendorId);
21633
      oprot.writeFieldEnd();
21634
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
21635
      oprot.writeI64(this.quantity);
21636
      oprot.writeFieldEnd();
21637
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
21638
      oprot.writeI64(this.warehouseId);
21639
      oprot.writeFieldEnd();
21640
      oprot.writeFieldStop();
21641
      oprot.writeStructEnd();
21642
    }
21643
 
21644
    @Override
21645
    public String toString() {
21646
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
21647
      boolean first = true;
21648
 
21649
      sb.append("itemKey:");
21650
      if (this.itemKey == null) {
21651
        sb.append("null");
21652
      } else {
21653
        sb.append(this.itemKey);
21654
      }
21655
      first = false;
21656
      if (!first) sb.append(", ");
21657
      sb.append("vendorId:");
21658
      sb.append(this.vendorId);
21659
      first = false;
21660
      if (!first) sb.append(", ");
21661
      sb.append("quantity:");
21662
      sb.append(this.quantity);
21663
      first = false;
21664
      if (!first) sb.append(", ");
21665
      sb.append("warehouseId:");
21666
      sb.append(this.warehouseId);
21667
      first = false;
21668
      sb.append(")");
21669
      return sb.toString();
21670
    }
21671
 
21672
    public void validate() throws org.apache.thrift.TException {
21673
      // check for required fields
21674
    }
21675
 
21676
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21677
      try {
21678
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21679
      } catch (org.apache.thrift.TException te) {
21680
        throw new java.io.IOException(te);
21681
      }
21682
    }
21683
 
21684
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21685
      try {
21686
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21687
        __isset_bit_vector = new BitSet(1);
21688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21689
      } catch (org.apache.thrift.TException te) {
21690
        throw new java.io.IOException(te);
21691
      }
21692
    }
21693
 
21694
  }
21695
 
21696
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
21697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
21698
 
21699
    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);
21700
 
21701
    private InventoryServiceException cex; // required
21702
 
21703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21705
      CEX((short)1, "cex");
21706
 
21707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21708
 
21709
      static {
21710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21711
          byName.put(field.getFieldName(), field);
21712
        }
21713
      }
21714
 
21715
      /**
21716
       * Find the _Fields constant that matches fieldId, or null if its not found.
21717
       */
21718
      public static _Fields findByThriftId(int fieldId) {
21719
        switch(fieldId) {
21720
          case 1: // CEX
21721
            return CEX;
21722
          default:
21723
            return null;
21724
        }
21725
      }
21726
 
21727
      /**
21728
       * Find the _Fields constant that matches fieldId, throwing an exception
21729
       * if it is not found.
21730
       */
21731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21732
        _Fields fields = findByThriftId(fieldId);
21733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21734
        return fields;
21735
      }
21736
 
21737
      /**
21738
       * Find the _Fields constant that matches name, or null if its not found.
21739
       */
21740
      public static _Fields findByName(String name) {
21741
        return byName.get(name);
21742
      }
21743
 
21744
      private final short _thriftId;
21745
      private final String _fieldName;
21746
 
21747
      _Fields(short thriftId, String fieldName) {
21748
        _thriftId = thriftId;
21749
        _fieldName = fieldName;
21750
      }
21751
 
21752
      public short getThriftFieldId() {
21753
        return _thriftId;
21754
      }
21755
 
21756
      public String getFieldName() {
21757
        return _fieldName;
21758
      }
21759
    }
21760
 
21761
    // isset id assignments
21762
 
21763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21764
    static {
21765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21766
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
21770
    }
21771
 
21772
    public resetAvailability_result() {
21773
    }
21774
 
21775
    public resetAvailability_result(
21776
      InventoryServiceException cex)
21777
    {
21778
      this();
21779
      this.cex = cex;
21780
    }
21781
 
21782
    /**
21783
     * Performs a deep copy on <i>other</i>.
21784
     */
21785
    public resetAvailability_result(resetAvailability_result other) {
21786
      if (other.isSetCex()) {
21787
        this.cex = new InventoryServiceException(other.cex);
21788
      }
21789
    }
21790
 
21791
    public resetAvailability_result deepCopy() {
21792
      return new resetAvailability_result(this);
21793
    }
21794
 
21795
    @Override
21796
    public void clear() {
21797
      this.cex = null;
21798
    }
21799
 
21800
    public InventoryServiceException getCex() {
21801
      return this.cex;
21802
    }
21803
 
21804
    public void setCex(InventoryServiceException cex) {
21805
      this.cex = cex;
21806
    }
21807
 
21808
    public void unsetCex() {
21809
      this.cex = null;
21810
    }
21811
 
21812
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
21813
    public boolean isSetCex() {
21814
      return this.cex != null;
21815
    }
21816
 
21817
    public void setCexIsSet(boolean value) {
21818
      if (!value) {
21819
        this.cex = null;
21820
      }
21821
    }
21822
 
21823
    public void setFieldValue(_Fields field, Object value) {
21824
      switch (field) {
21825
      case CEX:
21826
        if (value == null) {
21827
          unsetCex();
21828
        } else {
21829
          setCex((InventoryServiceException)value);
21830
        }
21831
        break;
21832
 
21833
      }
21834
    }
21835
 
21836
    public Object getFieldValue(_Fields field) {
21837
      switch (field) {
21838
      case CEX:
21839
        return getCex();
21840
 
21841
      }
21842
      throw new IllegalStateException();
21843
    }
21844
 
21845
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21846
    public boolean isSet(_Fields field) {
21847
      if (field == null) {
21848
        throw new IllegalArgumentException();
21849
      }
21850
 
21851
      switch (field) {
21852
      case CEX:
21853
        return isSetCex();
21854
      }
21855
      throw new IllegalStateException();
21856
    }
21857
 
21858
    @Override
21859
    public boolean equals(Object that) {
21860
      if (that == null)
21861
        return false;
21862
      if (that instanceof resetAvailability_result)
21863
        return this.equals((resetAvailability_result)that);
21864
      return false;
21865
    }
21866
 
21867
    public boolean equals(resetAvailability_result that) {
21868
      if (that == null)
21869
        return false;
21870
 
21871
      boolean this_present_cex = true && this.isSetCex();
21872
      boolean that_present_cex = true && that.isSetCex();
21873
      if (this_present_cex || that_present_cex) {
21874
        if (!(this_present_cex && that_present_cex))
21875
          return false;
21876
        if (!this.cex.equals(that.cex))
21877
          return false;
21878
      }
21879
 
21880
      return true;
21881
    }
21882
 
21883
    @Override
21884
    public int hashCode() {
21885
      return 0;
21886
    }
21887
 
21888
    public int compareTo(resetAvailability_result other) {
21889
      if (!getClass().equals(other.getClass())) {
21890
        return getClass().getName().compareTo(other.getClass().getName());
21891
      }
21892
 
21893
      int lastComparison = 0;
21894
      resetAvailability_result typedOther = (resetAvailability_result)other;
21895
 
21896
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21897
      if (lastComparison != 0) {
21898
        return lastComparison;
21899
      }
21900
      if (isSetCex()) {
21901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21902
        if (lastComparison != 0) {
21903
          return lastComparison;
21904
        }
21905
      }
21906
      return 0;
21907
    }
21908
 
21909
    public _Fields fieldForId(int fieldId) {
21910
      return _Fields.findByThriftId(fieldId);
21911
    }
21912
 
21913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21914
      org.apache.thrift.protocol.TField field;
21915
      iprot.readStructBegin();
21916
      while (true)
21917
      {
21918
        field = iprot.readFieldBegin();
21919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21920
          break;
21921
        }
21922
        switch (field.id) {
21923
          case 1: // CEX
21924
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21925
              this.cex = new InventoryServiceException();
21926
              this.cex.read(iprot);
21927
            } else { 
21928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21929
            }
21930
            break;
21931
          default:
21932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21933
        }
21934
        iprot.readFieldEnd();
21935
      }
21936
      iprot.readStructEnd();
21937
      validate();
21938
    }
21939
 
21940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21941
      oprot.writeStructBegin(STRUCT_DESC);
21942
 
21943
      if (this.isSetCex()) {
21944
        oprot.writeFieldBegin(CEX_FIELD_DESC);
21945
        this.cex.write(oprot);
21946
        oprot.writeFieldEnd();
21947
      }
21948
      oprot.writeFieldStop();
21949
      oprot.writeStructEnd();
21950
    }
21951
 
21952
    @Override
21953
    public String toString() {
21954
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
21955
      boolean first = true;
21956
 
21957
      sb.append("cex:");
21958
      if (this.cex == null) {
21959
        sb.append("null");
21960
      } else {
21961
        sb.append(this.cex);
21962
      }
21963
      first = false;
21964
      sb.append(")");
21965
      return sb.toString();
21966
    }
21967
 
21968
    public void validate() throws org.apache.thrift.TException {
21969
      // check for required fields
21970
    }
21971
 
21972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21973
      try {
21974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21975
      } catch (org.apache.thrift.TException te) {
21976
        throw new java.io.IOException(te);
21977
      }
21978
    }
21979
 
21980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21981
      try {
21982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21983
      } catch (org.apache.thrift.TException te) {
21984
        throw new java.io.IOException(te);
21985
      }
21986
    }
21987
 
21988
  }
21989
 
21990
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
21991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
21992
 
21993
    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);
21994
 
21995
    private long warehouseId; // required
21996
 
21997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21999
      WAREHOUSE_ID((short)1, "warehouseId");
22000
 
22001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22002
 
22003
      static {
22004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22005
          byName.put(field.getFieldName(), field);
22006
        }
22007
      }
22008
 
22009
      /**
22010
       * Find the _Fields constant that matches fieldId, or null if its not found.
22011
       */
22012
      public static _Fields findByThriftId(int fieldId) {
22013
        switch(fieldId) {
22014
          case 1: // WAREHOUSE_ID
22015
            return WAREHOUSE_ID;
22016
          default:
22017
            return null;
22018
        }
22019
      }
22020
 
22021
      /**
22022
       * Find the _Fields constant that matches fieldId, throwing an exception
22023
       * if it is not found.
22024
       */
22025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22026
        _Fields fields = findByThriftId(fieldId);
22027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22028
        return fields;
22029
      }
22030
 
22031
      /**
22032
       * Find the _Fields constant that matches name, or null if its not found.
22033
       */
22034
      public static _Fields findByName(String name) {
22035
        return byName.get(name);
22036
      }
22037
 
22038
      private final short _thriftId;
22039
      private final String _fieldName;
22040
 
22041
      _Fields(short thriftId, String fieldName) {
22042
        _thriftId = thriftId;
22043
        _fieldName = fieldName;
22044
      }
22045
 
22046
      public short getThriftFieldId() {
22047
        return _thriftId;
22048
      }
22049
 
22050
      public String getFieldName() {
22051
        return _fieldName;
22052
      }
22053
    }
22054
 
22055
    // isset id assignments
22056
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22057
    private BitSet __isset_bit_vector = new BitSet(1);
22058
 
22059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22060
    static {
22061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22062
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
22066
    }
22067
 
22068
    public resetAvailabilityForWarehouse_args() {
22069
    }
22070
 
22071
    public resetAvailabilityForWarehouse_args(
22072
      long warehouseId)
22073
    {
22074
      this();
22075
      this.warehouseId = warehouseId;
22076
      setWarehouseIdIsSet(true);
22077
    }
22078
 
22079
    /**
22080
     * Performs a deep copy on <i>other</i>.
22081
     */
22082
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
22083
      __isset_bit_vector.clear();
22084
      __isset_bit_vector.or(other.__isset_bit_vector);
22085
      this.warehouseId = other.warehouseId;
22086
    }
22087
 
22088
    public resetAvailabilityForWarehouse_args deepCopy() {
22089
      return new resetAvailabilityForWarehouse_args(this);
22090
    }
22091
 
22092
    @Override
22093
    public void clear() {
22094
      setWarehouseIdIsSet(false);
22095
      this.warehouseId = 0;
22096
    }
22097
 
22098
    public long getWarehouseId() {
22099
      return this.warehouseId;
22100
    }
22101
 
22102
    public void setWarehouseId(long warehouseId) {
22103
      this.warehouseId = warehouseId;
22104
      setWarehouseIdIsSet(true);
22105
    }
22106
 
22107
    public void unsetWarehouseId() {
22108
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22109
    }
22110
 
22111
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22112
    public boolean isSetWarehouseId() {
22113
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22114
    }
22115
 
22116
    public void setWarehouseIdIsSet(boolean value) {
22117
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22118
    }
22119
 
22120
    public void setFieldValue(_Fields field, Object value) {
22121
      switch (field) {
22122
      case WAREHOUSE_ID:
22123
        if (value == null) {
22124
          unsetWarehouseId();
22125
        } else {
22126
          setWarehouseId((Long)value);
22127
        }
22128
        break;
22129
 
22130
      }
22131
    }
22132
 
22133
    public Object getFieldValue(_Fields field) {
22134
      switch (field) {
22135
      case WAREHOUSE_ID:
22136
        return Long.valueOf(getWarehouseId());
22137
 
22138
      }
22139
      throw new IllegalStateException();
22140
    }
22141
 
22142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22143
    public boolean isSet(_Fields field) {
22144
      if (field == null) {
22145
        throw new IllegalArgumentException();
22146
      }
22147
 
22148
      switch (field) {
22149
      case WAREHOUSE_ID:
22150
        return isSetWarehouseId();
22151
      }
22152
      throw new IllegalStateException();
22153
    }
22154
 
22155
    @Override
22156
    public boolean equals(Object that) {
22157
      if (that == null)
22158
        return false;
22159
      if (that instanceof resetAvailabilityForWarehouse_args)
22160
        return this.equals((resetAvailabilityForWarehouse_args)that);
22161
      return false;
22162
    }
22163
 
22164
    public boolean equals(resetAvailabilityForWarehouse_args that) {
22165
      if (that == null)
22166
        return false;
22167
 
22168
      boolean this_present_warehouseId = true;
22169
      boolean that_present_warehouseId = true;
22170
      if (this_present_warehouseId || that_present_warehouseId) {
22171
        if (!(this_present_warehouseId && that_present_warehouseId))
22172
          return false;
22173
        if (this.warehouseId != that.warehouseId)
22174
          return false;
22175
      }
22176
 
22177
      return true;
22178
    }
22179
 
22180
    @Override
22181
    public int hashCode() {
22182
      return 0;
22183
    }
22184
 
22185
    public int compareTo(resetAvailabilityForWarehouse_args other) {
22186
      if (!getClass().equals(other.getClass())) {
22187
        return getClass().getName().compareTo(other.getClass().getName());
22188
      }
22189
 
22190
      int lastComparison = 0;
22191
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
22192
 
22193
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22194
      if (lastComparison != 0) {
22195
        return lastComparison;
22196
      }
22197
      if (isSetWarehouseId()) {
22198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22199
        if (lastComparison != 0) {
22200
          return lastComparison;
22201
        }
22202
      }
22203
      return 0;
22204
    }
22205
 
22206
    public _Fields fieldForId(int fieldId) {
22207
      return _Fields.findByThriftId(fieldId);
22208
    }
22209
 
22210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22211
      org.apache.thrift.protocol.TField field;
22212
      iprot.readStructBegin();
22213
      while (true)
22214
      {
22215
        field = iprot.readFieldBegin();
22216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22217
          break;
22218
        }
22219
        switch (field.id) {
22220
          case 1: // WAREHOUSE_ID
22221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22222
              this.warehouseId = iprot.readI64();
22223
              setWarehouseIdIsSet(true);
22224
            } else { 
22225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22226
            }
22227
            break;
22228
          default:
22229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22230
        }
22231
        iprot.readFieldEnd();
22232
      }
22233
      iprot.readStructEnd();
22234
      validate();
22235
    }
22236
 
22237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22238
      validate();
22239
 
22240
      oprot.writeStructBegin(STRUCT_DESC);
22241
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22242
      oprot.writeI64(this.warehouseId);
22243
      oprot.writeFieldEnd();
22244
      oprot.writeFieldStop();
22245
      oprot.writeStructEnd();
22246
    }
22247
 
22248
    @Override
22249
    public String toString() {
22250
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
22251
      boolean first = true;
22252
 
22253
      sb.append("warehouseId:");
22254
      sb.append(this.warehouseId);
22255
      first = false;
22256
      sb.append(")");
22257
      return sb.toString();
22258
    }
22259
 
22260
    public void validate() throws org.apache.thrift.TException {
22261
      // check for required fields
22262
    }
22263
 
22264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22265
      try {
22266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22267
      } catch (org.apache.thrift.TException te) {
22268
        throw new java.io.IOException(te);
22269
      }
22270
    }
22271
 
22272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22273
      try {
22274
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22275
        __isset_bit_vector = new BitSet(1);
22276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22277
      } catch (org.apache.thrift.TException te) {
22278
        throw new java.io.IOException(te);
22279
      }
22280
    }
22281
 
22282
  }
22283
 
22284
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
22285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
22286
 
22287
    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);
22288
 
22289
    private InventoryServiceException cex; // required
22290
 
22291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22292
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22293
      CEX((short)1, "cex");
22294
 
22295
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22296
 
22297
      static {
22298
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22299
          byName.put(field.getFieldName(), field);
22300
        }
22301
      }
22302
 
22303
      /**
22304
       * Find the _Fields constant that matches fieldId, or null if its not found.
22305
       */
22306
      public static _Fields findByThriftId(int fieldId) {
22307
        switch(fieldId) {
22308
          case 1: // CEX
22309
            return CEX;
22310
          default:
22311
            return null;
22312
        }
22313
      }
22314
 
22315
      /**
22316
       * Find the _Fields constant that matches fieldId, throwing an exception
22317
       * if it is not found.
22318
       */
22319
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22320
        _Fields fields = findByThriftId(fieldId);
22321
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22322
        return fields;
22323
      }
22324
 
22325
      /**
22326
       * Find the _Fields constant that matches name, or null if its not found.
22327
       */
22328
      public static _Fields findByName(String name) {
22329
        return byName.get(name);
22330
      }
22331
 
22332
      private final short _thriftId;
22333
      private final String _fieldName;
22334
 
22335
      _Fields(short thriftId, String fieldName) {
22336
        _thriftId = thriftId;
22337
        _fieldName = fieldName;
22338
      }
22339
 
22340
      public short getThriftFieldId() {
22341
        return _thriftId;
22342
      }
22343
 
22344
      public String getFieldName() {
22345
        return _fieldName;
22346
      }
22347
    }
22348
 
22349
    // isset id assignments
22350
 
22351
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22352
    static {
22353
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22354
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
22358
    }
22359
 
22360
    public resetAvailabilityForWarehouse_result() {
22361
    }
22362
 
22363
    public resetAvailabilityForWarehouse_result(
22364
      InventoryServiceException cex)
22365
    {
22366
      this();
22367
      this.cex = cex;
22368
    }
22369
 
22370
    /**
22371
     * Performs a deep copy on <i>other</i>.
22372
     */
22373
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
22374
      if (other.isSetCex()) {
22375
        this.cex = new InventoryServiceException(other.cex);
22376
      }
22377
    }
22378
 
22379
    public resetAvailabilityForWarehouse_result deepCopy() {
22380
      return new resetAvailabilityForWarehouse_result(this);
22381
    }
22382
 
22383
    @Override
22384
    public void clear() {
22385
      this.cex = null;
22386
    }
22387
 
22388
    public InventoryServiceException getCex() {
22389
      return this.cex;
22390
    }
22391
 
22392
    public void setCex(InventoryServiceException cex) {
22393
      this.cex = cex;
22394
    }
22395
 
22396
    public void unsetCex() {
22397
      this.cex = null;
22398
    }
22399
 
22400
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22401
    public boolean isSetCex() {
22402
      return this.cex != null;
22403
    }
22404
 
22405
    public void setCexIsSet(boolean value) {
22406
      if (!value) {
22407
        this.cex = null;
22408
      }
22409
    }
22410
 
22411
    public void setFieldValue(_Fields field, Object value) {
22412
      switch (field) {
22413
      case CEX:
22414
        if (value == null) {
22415
          unsetCex();
22416
        } else {
22417
          setCex((InventoryServiceException)value);
22418
        }
22419
        break;
22420
 
22421
      }
22422
    }
22423
 
22424
    public Object getFieldValue(_Fields field) {
22425
      switch (field) {
22426
      case CEX:
22427
        return getCex();
22428
 
22429
      }
22430
      throw new IllegalStateException();
22431
    }
22432
 
22433
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22434
    public boolean isSet(_Fields field) {
22435
      if (field == null) {
22436
        throw new IllegalArgumentException();
22437
      }
22438
 
22439
      switch (field) {
22440
      case CEX:
22441
        return isSetCex();
22442
      }
22443
      throw new IllegalStateException();
22444
    }
22445
 
22446
    @Override
22447
    public boolean equals(Object that) {
22448
      if (that == null)
22449
        return false;
22450
      if (that instanceof resetAvailabilityForWarehouse_result)
22451
        return this.equals((resetAvailabilityForWarehouse_result)that);
22452
      return false;
22453
    }
22454
 
22455
    public boolean equals(resetAvailabilityForWarehouse_result that) {
22456
      if (that == null)
22457
        return false;
22458
 
22459
      boolean this_present_cex = true && this.isSetCex();
22460
      boolean that_present_cex = true && that.isSetCex();
22461
      if (this_present_cex || that_present_cex) {
22462
        if (!(this_present_cex && that_present_cex))
22463
          return false;
22464
        if (!this.cex.equals(that.cex))
22465
          return false;
22466
      }
22467
 
22468
      return true;
22469
    }
22470
 
22471
    @Override
22472
    public int hashCode() {
22473
      return 0;
22474
    }
22475
 
22476
    public int compareTo(resetAvailabilityForWarehouse_result other) {
22477
      if (!getClass().equals(other.getClass())) {
22478
        return getClass().getName().compareTo(other.getClass().getName());
22479
      }
22480
 
22481
      int lastComparison = 0;
22482
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
22483
 
22484
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22485
      if (lastComparison != 0) {
22486
        return lastComparison;
22487
      }
22488
      if (isSetCex()) {
22489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22490
        if (lastComparison != 0) {
22491
          return lastComparison;
22492
        }
22493
      }
22494
      return 0;
22495
    }
22496
 
22497
    public _Fields fieldForId(int fieldId) {
22498
      return _Fields.findByThriftId(fieldId);
22499
    }
22500
 
22501
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22502
      org.apache.thrift.protocol.TField field;
22503
      iprot.readStructBegin();
22504
      while (true)
22505
      {
22506
        field = iprot.readFieldBegin();
22507
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22508
          break;
22509
        }
22510
        switch (field.id) {
22511
          case 1: // CEX
22512
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22513
              this.cex = new InventoryServiceException();
22514
              this.cex.read(iprot);
22515
            } else { 
22516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22517
            }
22518
            break;
22519
          default:
22520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22521
        }
22522
        iprot.readFieldEnd();
22523
      }
22524
      iprot.readStructEnd();
22525
      validate();
22526
    }
22527
 
22528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22529
      oprot.writeStructBegin(STRUCT_DESC);
22530
 
22531
      if (this.isSetCex()) {
22532
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22533
        this.cex.write(oprot);
22534
        oprot.writeFieldEnd();
22535
      }
22536
      oprot.writeFieldStop();
22537
      oprot.writeStructEnd();
22538
    }
22539
 
22540
    @Override
22541
    public String toString() {
22542
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
22543
      boolean first = true;
22544
 
22545
      sb.append("cex:");
22546
      if (this.cex == null) {
22547
        sb.append("null");
22548
      } else {
22549
        sb.append(this.cex);
22550
      }
22551
      first = false;
22552
      sb.append(")");
22553
      return sb.toString();
22554
    }
22555
 
22556
    public void validate() throws org.apache.thrift.TException {
22557
      // check for required fields
22558
    }
22559
 
22560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22561
      try {
22562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22563
      } catch (org.apache.thrift.TException te) {
22564
        throw new java.io.IOException(te);
22565
      }
22566
    }
22567
 
22568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22569
      try {
22570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22571
      } catch (org.apache.thrift.TException te) {
22572
        throw new java.io.IOException(te);
22573
      }
22574
    }
22575
 
22576
  }
22577
 
22578
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
22579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
22580
 
22581
    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);
22582
 
22583
    private long warehouseId; // required
22584
 
22585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22587
      WAREHOUSE_ID((short)1, "warehouseId");
22588
 
22589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22590
 
22591
      static {
22592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22593
          byName.put(field.getFieldName(), field);
22594
        }
22595
      }
22596
 
22597
      /**
22598
       * Find the _Fields constant that matches fieldId, or null if its not found.
22599
       */
22600
      public static _Fields findByThriftId(int fieldId) {
22601
        switch(fieldId) {
22602
          case 1: // WAREHOUSE_ID
22603
            return WAREHOUSE_ID;
22604
          default:
22605
            return null;
22606
        }
22607
      }
22608
 
22609
      /**
22610
       * Find the _Fields constant that matches fieldId, throwing an exception
22611
       * if it is not found.
22612
       */
22613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22614
        _Fields fields = findByThriftId(fieldId);
22615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22616
        return fields;
22617
      }
22618
 
22619
      /**
22620
       * Find the _Fields constant that matches name, or null if its not found.
22621
       */
22622
      public static _Fields findByName(String name) {
22623
        return byName.get(name);
22624
      }
22625
 
22626
      private final short _thriftId;
22627
      private final String _fieldName;
22628
 
22629
      _Fields(short thriftId, String fieldName) {
22630
        _thriftId = thriftId;
22631
        _fieldName = fieldName;
22632
      }
22633
 
22634
      public short getThriftFieldId() {
22635
        return _thriftId;
22636
      }
22637
 
22638
      public String getFieldName() {
22639
        return _fieldName;
22640
      }
22641
    }
22642
 
22643
    // isset id assignments
22644
    private static final int __WAREHOUSEID_ISSET_ID = 0;
22645
    private BitSet __isset_bit_vector = new BitSet(1);
22646
 
22647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22648
    static {
22649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22650
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
22654
    }
22655
 
22656
    public getItemKeysToBeProcessed_args() {
22657
    }
22658
 
22659
    public getItemKeysToBeProcessed_args(
22660
      long warehouseId)
22661
    {
22662
      this();
22663
      this.warehouseId = warehouseId;
22664
      setWarehouseIdIsSet(true);
22665
    }
22666
 
22667
    /**
22668
     * Performs a deep copy on <i>other</i>.
22669
     */
22670
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
22671
      __isset_bit_vector.clear();
22672
      __isset_bit_vector.or(other.__isset_bit_vector);
22673
      this.warehouseId = other.warehouseId;
22674
    }
22675
 
22676
    public getItemKeysToBeProcessed_args deepCopy() {
22677
      return new getItemKeysToBeProcessed_args(this);
22678
    }
22679
 
22680
    @Override
22681
    public void clear() {
22682
      setWarehouseIdIsSet(false);
22683
      this.warehouseId = 0;
22684
    }
22685
 
22686
    public long getWarehouseId() {
22687
      return this.warehouseId;
22688
    }
22689
 
22690
    public void setWarehouseId(long warehouseId) {
22691
      this.warehouseId = warehouseId;
22692
      setWarehouseIdIsSet(true);
22693
    }
22694
 
22695
    public void unsetWarehouseId() {
22696
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22697
    }
22698
 
22699
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22700
    public boolean isSetWarehouseId() {
22701
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22702
    }
22703
 
22704
    public void setWarehouseIdIsSet(boolean value) {
22705
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22706
    }
22707
 
22708
    public void setFieldValue(_Fields field, Object value) {
22709
      switch (field) {
22710
      case WAREHOUSE_ID:
22711
        if (value == null) {
22712
          unsetWarehouseId();
22713
        } else {
22714
          setWarehouseId((Long)value);
22715
        }
22716
        break;
22717
 
22718
      }
22719
    }
22720
 
22721
    public Object getFieldValue(_Fields field) {
22722
      switch (field) {
22723
      case WAREHOUSE_ID:
22724
        return Long.valueOf(getWarehouseId());
22725
 
22726
      }
22727
      throw new IllegalStateException();
22728
    }
22729
 
22730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22731
    public boolean isSet(_Fields field) {
22732
      if (field == null) {
22733
        throw new IllegalArgumentException();
22734
      }
22735
 
22736
      switch (field) {
22737
      case WAREHOUSE_ID:
22738
        return isSetWarehouseId();
22739
      }
22740
      throw new IllegalStateException();
22741
    }
22742
 
22743
    @Override
22744
    public boolean equals(Object that) {
22745
      if (that == null)
22746
        return false;
22747
      if (that instanceof getItemKeysToBeProcessed_args)
22748
        return this.equals((getItemKeysToBeProcessed_args)that);
22749
      return false;
22750
    }
22751
 
22752
    public boolean equals(getItemKeysToBeProcessed_args that) {
22753
      if (that == null)
22754
        return false;
22755
 
22756
      boolean this_present_warehouseId = true;
22757
      boolean that_present_warehouseId = true;
22758
      if (this_present_warehouseId || that_present_warehouseId) {
22759
        if (!(this_present_warehouseId && that_present_warehouseId))
22760
          return false;
22761
        if (this.warehouseId != that.warehouseId)
22762
          return false;
22763
      }
22764
 
22765
      return true;
22766
    }
22767
 
22768
    @Override
22769
    public int hashCode() {
22770
      return 0;
22771
    }
22772
 
22773
    public int compareTo(getItemKeysToBeProcessed_args other) {
22774
      if (!getClass().equals(other.getClass())) {
22775
        return getClass().getName().compareTo(other.getClass().getName());
22776
      }
22777
 
22778
      int lastComparison = 0;
22779
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
22780
 
22781
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22782
      if (lastComparison != 0) {
22783
        return lastComparison;
22784
      }
22785
      if (isSetWarehouseId()) {
22786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22787
        if (lastComparison != 0) {
22788
          return lastComparison;
22789
        }
22790
      }
22791
      return 0;
22792
    }
22793
 
22794
    public _Fields fieldForId(int fieldId) {
22795
      return _Fields.findByThriftId(fieldId);
22796
    }
22797
 
22798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22799
      org.apache.thrift.protocol.TField field;
22800
      iprot.readStructBegin();
22801
      while (true)
22802
      {
22803
        field = iprot.readFieldBegin();
22804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22805
          break;
22806
        }
22807
        switch (field.id) {
22808
          case 1: // WAREHOUSE_ID
22809
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22810
              this.warehouseId = iprot.readI64();
22811
              setWarehouseIdIsSet(true);
22812
            } else { 
22813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22814
            }
22815
            break;
22816
          default:
22817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22818
        }
22819
        iprot.readFieldEnd();
22820
      }
22821
      iprot.readStructEnd();
22822
      validate();
22823
    }
22824
 
22825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22826
      validate();
22827
 
22828
      oprot.writeStructBegin(STRUCT_DESC);
22829
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22830
      oprot.writeI64(this.warehouseId);
22831
      oprot.writeFieldEnd();
22832
      oprot.writeFieldStop();
22833
      oprot.writeStructEnd();
22834
    }
22835
 
22836
    @Override
22837
    public String toString() {
22838
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
22839
      boolean first = true;
22840
 
22841
      sb.append("warehouseId:");
22842
      sb.append(this.warehouseId);
22843
      first = false;
22844
      sb.append(")");
22845
      return sb.toString();
22846
    }
22847
 
22848
    public void validate() throws org.apache.thrift.TException {
22849
      // check for required fields
22850
    }
22851
 
22852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22853
      try {
22854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22855
      } catch (org.apache.thrift.TException te) {
22856
        throw new java.io.IOException(te);
22857
      }
22858
    }
22859
 
22860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22861
      try {
22862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22863
      } catch (org.apache.thrift.TException te) {
22864
        throw new java.io.IOException(te);
22865
      }
22866
    }
22867
 
22868
  }
22869
 
22870
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
22871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
22872
 
22873
    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);
22874
 
22875
    private List<String> success; // required
22876
 
22877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22878
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22879
      SUCCESS((short)0, "success");
22880
 
22881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22882
 
22883
      static {
22884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22885
          byName.put(field.getFieldName(), field);
22886
        }
22887
      }
22888
 
22889
      /**
22890
       * Find the _Fields constant that matches fieldId, or null if its not found.
22891
       */
22892
      public static _Fields findByThriftId(int fieldId) {
22893
        switch(fieldId) {
22894
          case 0: // SUCCESS
22895
            return SUCCESS;
22896
          default:
22897
            return null;
22898
        }
22899
      }
22900
 
22901
      /**
22902
       * Find the _Fields constant that matches fieldId, throwing an exception
22903
       * if it is not found.
22904
       */
22905
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22906
        _Fields fields = findByThriftId(fieldId);
22907
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22908
        return fields;
22909
      }
22910
 
22911
      /**
22912
       * Find the _Fields constant that matches name, or null if its not found.
22913
       */
22914
      public static _Fields findByName(String name) {
22915
        return byName.get(name);
22916
      }
22917
 
22918
      private final short _thriftId;
22919
      private final String _fieldName;
22920
 
22921
      _Fields(short thriftId, String fieldName) {
22922
        _thriftId = thriftId;
22923
        _fieldName = fieldName;
22924
      }
22925
 
22926
      public short getThriftFieldId() {
22927
        return _thriftId;
22928
      }
22929
 
22930
      public String getFieldName() {
22931
        return _fieldName;
22932
      }
22933
    }
22934
 
22935
    // isset id assignments
22936
 
22937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22938
    static {
22939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22940
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22941
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22942
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22943
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22944
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
22945
    }
22946
 
22947
    public getItemKeysToBeProcessed_result() {
22948
    }
22949
 
22950
    public getItemKeysToBeProcessed_result(
22951
      List<String> success)
22952
    {
22953
      this();
22954
      this.success = success;
22955
    }
22956
 
22957
    /**
22958
     * Performs a deep copy on <i>other</i>.
22959
     */
22960
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
22961
      if (other.isSetSuccess()) {
22962
        List<String> __this__success = new ArrayList<String>();
22963
        for (String other_element : other.success) {
22964
          __this__success.add(other_element);
22965
        }
22966
        this.success = __this__success;
22967
      }
22968
    }
22969
 
22970
    public getItemKeysToBeProcessed_result deepCopy() {
22971
      return new getItemKeysToBeProcessed_result(this);
22972
    }
22973
 
22974
    @Override
22975
    public void clear() {
22976
      this.success = null;
22977
    }
22978
 
22979
    public int getSuccessSize() {
22980
      return (this.success == null) ? 0 : this.success.size();
22981
    }
22982
 
22983
    public java.util.Iterator<String> getSuccessIterator() {
22984
      return (this.success == null) ? null : this.success.iterator();
22985
    }
22986
 
22987
    public void addToSuccess(String elem) {
22988
      if (this.success == null) {
22989
        this.success = new ArrayList<String>();
22990
      }
22991
      this.success.add(elem);
22992
    }
22993
 
22994
    public List<String> getSuccess() {
22995
      return this.success;
22996
    }
22997
 
22998
    public void setSuccess(List<String> success) {
22999
      this.success = success;
23000
    }
23001
 
23002
    public void unsetSuccess() {
23003
      this.success = null;
23004
    }
23005
 
23006
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23007
    public boolean isSetSuccess() {
23008
      return this.success != null;
23009
    }
23010
 
23011
    public void setSuccessIsSet(boolean value) {
23012
      if (!value) {
23013
        this.success = null;
23014
      }
23015
    }
23016
 
23017
    public void setFieldValue(_Fields field, Object value) {
23018
      switch (field) {
23019
      case SUCCESS:
23020
        if (value == null) {
23021
          unsetSuccess();
23022
        } else {
23023
          setSuccess((List<String>)value);
23024
        }
23025
        break;
23026
 
23027
      }
23028
    }
23029
 
23030
    public Object getFieldValue(_Fields field) {
23031
      switch (field) {
23032
      case SUCCESS:
23033
        return getSuccess();
23034
 
23035
      }
23036
      throw new IllegalStateException();
23037
    }
23038
 
23039
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23040
    public boolean isSet(_Fields field) {
23041
      if (field == null) {
23042
        throw new IllegalArgumentException();
23043
      }
23044
 
23045
      switch (field) {
23046
      case SUCCESS:
23047
        return isSetSuccess();
23048
      }
23049
      throw new IllegalStateException();
23050
    }
23051
 
23052
    @Override
23053
    public boolean equals(Object that) {
23054
      if (that == null)
23055
        return false;
23056
      if (that instanceof getItemKeysToBeProcessed_result)
23057
        return this.equals((getItemKeysToBeProcessed_result)that);
23058
      return false;
23059
    }
23060
 
23061
    public boolean equals(getItemKeysToBeProcessed_result that) {
23062
      if (that == null)
23063
        return false;
23064
 
23065
      boolean this_present_success = true && this.isSetSuccess();
23066
      boolean that_present_success = true && that.isSetSuccess();
23067
      if (this_present_success || that_present_success) {
23068
        if (!(this_present_success && that_present_success))
23069
          return false;
23070
        if (!this.success.equals(that.success))
23071
          return false;
23072
      }
23073
 
23074
      return true;
23075
    }
23076
 
23077
    @Override
23078
    public int hashCode() {
23079
      return 0;
23080
    }
23081
 
23082
    public int compareTo(getItemKeysToBeProcessed_result other) {
23083
      if (!getClass().equals(other.getClass())) {
23084
        return getClass().getName().compareTo(other.getClass().getName());
23085
      }
23086
 
23087
      int lastComparison = 0;
23088
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
23089
 
23090
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23091
      if (lastComparison != 0) {
23092
        return lastComparison;
23093
      }
23094
      if (isSetSuccess()) {
23095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23096
        if (lastComparison != 0) {
23097
          return lastComparison;
23098
        }
23099
      }
23100
      return 0;
23101
    }
23102
 
23103
    public _Fields fieldForId(int fieldId) {
23104
      return _Fields.findByThriftId(fieldId);
23105
    }
23106
 
23107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23108
      org.apache.thrift.protocol.TField field;
23109
      iprot.readStructBegin();
23110
      while (true)
23111
      {
23112
        field = iprot.readFieldBegin();
23113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23114
          break;
23115
        }
23116
        switch (field.id) {
23117
          case 0: // SUCCESS
23118
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23119
              {
23120
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23121
                this.success = new ArrayList<String>(_list52.size);
23122
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23123
                {
23124
                  String _elem54; // required
23125
                  _elem54 = iprot.readString();
23126
                  this.success.add(_elem54);
23127
                }
23128
                iprot.readListEnd();
23129
              }
23130
            } else { 
23131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23132
            }
23133
            break;
23134
          default:
23135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23136
        }
23137
        iprot.readFieldEnd();
23138
      }
23139
      iprot.readStructEnd();
23140
      validate();
23141
    }
23142
 
23143
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23144
      oprot.writeStructBegin(STRUCT_DESC);
23145
 
23146
      if (this.isSetSuccess()) {
23147
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23148
        {
23149
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
23150
          for (String _iter55 : this.success)
23151
          {
23152
            oprot.writeString(_iter55);
23153
          }
23154
          oprot.writeListEnd();
23155
        }
23156
        oprot.writeFieldEnd();
23157
      }
23158
      oprot.writeFieldStop();
23159
      oprot.writeStructEnd();
23160
    }
23161
 
23162
    @Override
23163
    public String toString() {
23164
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
23165
      boolean first = true;
23166
 
23167
      sb.append("success:");
23168
      if (this.success == null) {
23169
        sb.append("null");
23170
      } else {
23171
        sb.append(this.success);
23172
      }
23173
      first = false;
23174
      sb.append(")");
23175
      return sb.toString();
23176
    }
23177
 
23178
    public void validate() throws org.apache.thrift.TException {
23179
      // check for required fields
23180
    }
23181
 
23182
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23183
      try {
23184
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23185
      } catch (org.apache.thrift.TException te) {
23186
        throw new java.io.IOException(te);
23187
      }
23188
    }
23189
 
23190
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23191
      try {
23192
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23193
      } catch (org.apache.thrift.TException te) {
23194
        throw new java.io.IOException(te);
23195
      }
23196
    }
23197
 
23198
  }
23199
 
23200
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23201
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
23202
 
23203
    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);
23204
    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);
23205
 
23206
    private String itemKey; // required
23207
    private long warehouseId; // required
23208
 
23209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23211
      ITEM_KEY((short)1, "itemKey"),
23212
      WAREHOUSE_ID((short)2, "warehouseId");
23213
 
23214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23215
 
23216
      static {
23217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23218
          byName.put(field.getFieldName(), field);
23219
        }
23220
      }
23221
 
23222
      /**
23223
       * Find the _Fields constant that matches fieldId, or null if its not found.
23224
       */
23225
      public static _Fields findByThriftId(int fieldId) {
23226
        switch(fieldId) {
23227
          case 1: // ITEM_KEY
23228
            return ITEM_KEY;
23229
          case 2: // WAREHOUSE_ID
23230
            return WAREHOUSE_ID;
23231
          default:
23232
            return null;
23233
        }
23234
      }
23235
 
23236
      /**
23237
       * Find the _Fields constant that matches fieldId, throwing an exception
23238
       * if it is not found.
23239
       */
23240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23241
        _Fields fields = findByThriftId(fieldId);
23242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23243
        return fields;
23244
      }
23245
 
23246
      /**
23247
       * Find the _Fields constant that matches name, or null if its not found.
23248
       */
23249
      public static _Fields findByName(String name) {
23250
        return byName.get(name);
23251
      }
23252
 
23253
      private final short _thriftId;
23254
      private final String _fieldName;
23255
 
23256
      _Fields(short thriftId, String fieldName) {
23257
        _thriftId = thriftId;
23258
        _fieldName = fieldName;
23259
      }
23260
 
23261
      public short getThriftFieldId() {
23262
        return _thriftId;
23263
      }
23264
 
23265
      public String getFieldName() {
23266
        return _fieldName;
23267
      }
23268
    }
23269
 
23270
    // isset id assignments
23271
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23272
    private BitSet __isset_bit_vector = new BitSet(1);
23273
 
23274
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23275
    static {
23276
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23277
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23279
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
23283
    }
23284
 
23285
    public markMissedInventoryUpdatesAsProcessed_args() {
23286
    }
23287
 
23288
    public markMissedInventoryUpdatesAsProcessed_args(
23289
      String itemKey,
23290
      long warehouseId)
23291
    {
23292
      this();
23293
      this.itemKey = itemKey;
23294
      this.warehouseId = warehouseId;
23295
      setWarehouseIdIsSet(true);
23296
    }
23297
 
23298
    /**
23299
     * Performs a deep copy on <i>other</i>.
23300
     */
23301
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
23302
      __isset_bit_vector.clear();
23303
      __isset_bit_vector.or(other.__isset_bit_vector);
23304
      if (other.isSetItemKey()) {
23305
        this.itemKey = other.itemKey;
23306
      }
23307
      this.warehouseId = other.warehouseId;
23308
    }
23309
 
23310
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
23311
      return new markMissedInventoryUpdatesAsProcessed_args(this);
23312
    }
23313
 
23314
    @Override
23315
    public void clear() {
23316
      this.itemKey = null;
23317
      setWarehouseIdIsSet(false);
23318
      this.warehouseId = 0;
23319
    }
23320
 
23321
    public String getItemKey() {
23322
      return this.itemKey;
23323
    }
23324
 
23325
    public void setItemKey(String itemKey) {
23326
      this.itemKey = itemKey;
23327
    }
23328
 
23329
    public void unsetItemKey() {
23330
      this.itemKey = null;
23331
    }
23332
 
23333
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
23334
    public boolean isSetItemKey() {
23335
      return this.itemKey != null;
23336
    }
23337
 
23338
    public void setItemKeyIsSet(boolean value) {
23339
      if (!value) {
23340
        this.itemKey = null;
23341
      }
23342
    }
23343
 
23344
    public long getWarehouseId() {
23345
      return this.warehouseId;
23346
    }
23347
 
23348
    public void setWarehouseId(long warehouseId) {
23349
      this.warehouseId = warehouseId;
23350
      setWarehouseIdIsSet(true);
23351
    }
23352
 
23353
    public void unsetWarehouseId() {
23354
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23355
    }
23356
 
23357
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23358
    public boolean isSetWarehouseId() {
23359
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23360
    }
23361
 
23362
    public void setWarehouseIdIsSet(boolean value) {
23363
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23364
    }
23365
 
23366
    public void setFieldValue(_Fields field, Object value) {
23367
      switch (field) {
23368
      case ITEM_KEY:
23369
        if (value == null) {
23370
          unsetItemKey();
23371
        } else {
23372
          setItemKey((String)value);
23373
        }
23374
        break;
23375
 
23376
      case WAREHOUSE_ID:
23377
        if (value == null) {
23378
          unsetWarehouseId();
23379
        } else {
23380
          setWarehouseId((Long)value);
23381
        }
23382
        break;
23383
 
23384
      }
23385
    }
23386
 
23387
    public Object getFieldValue(_Fields field) {
23388
      switch (field) {
23389
      case ITEM_KEY:
23390
        return getItemKey();
23391
 
23392
      case WAREHOUSE_ID:
23393
        return Long.valueOf(getWarehouseId());
23394
 
23395
      }
23396
      throw new IllegalStateException();
23397
    }
23398
 
23399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23400
    public boolean isSet(_Fields field) {
23401
      if (field == null) {
23402
        throw new IllegalArgumentException();
23403
      }
23404
 
23405
      switch (field) {
23406
      case ITEM_KEY:
23407
        return isSetItemKey();
23408
      case WAREHOUSE_ID:
23409
        return isSetWarehouseId();
23410
      }
23411
      throw new IllegalStateException();
23412
    }
23413
 
23414
    @Override
23415
    public boolean equals(Object that) {
23416
      if (that == null)
23417
        return false;
23418
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
23419
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
23420
      return false;
23421
    }
23422
 
23423
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
23424
      if (that == null)
23425
        return false;
23426
 
23427
      boolean this_present_itemKey = true && this.isSetItemKey();
23428
      boolean that_present_itemKey = true && that.isSetItemKey();
23429
      if (this_present_itemKey || that_present_itemKey) {
23430
        if (!(this_present_itemKey && that_present_itemKey))
23431
          return false;
23432
        if (!this.itemKey.equals(that.itemKey))
23433
          return false;
23434
      }
23435
 
23436
      boolean this_present_warehouseId = true;
23437
      boolean that_present_warehouseId = true;
23438
      if (this_present_warehouseId || that_present_warehouseId) {
23439
        if (!(this_present_warehouseId && that_present_warehouseId))
23440
          return false;
23441
        if (this.warehouseId != that.warehouseId)
23442
          return false;
23443
      }
23444
 
23445
      return true;
23446
    }
23447
 
23448
    @Override
23449
    public int hashCode() {
23450
      return 0;
23451
    }
23452
 
23453
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
23454
      if (!getClass().equals(other.getClass())) {
23455
        return getClass().getName().compareTo(other.getClass().getName());
23456
      }
23457
 
23458
      int lastComparison = 0;
23459
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
23460
 
23461
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
23462
      if (lastComparison != 0) {
23463
        return lastComparison;
23464
      }
23465
      if (isSetItemKey()) {
23466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
23467
        if (lastComparison != 0) {
23468
          return lastComparison;
23469
        }
23470
      }
23471
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23472
      if (lastComparison != 0) {
23473
        return lastComparison;
23474
      }
23475
      if (isSetWarehouseId()) {
23476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23477
        if (lastComparison != 0) {
23478
          return lastComparison;
23479
        }
23480
      }
23481
      return 0;
23482
    }
23483
 
23484
    public _Fields fieldForId(int fieldId) {
23485
      return _Fields.findByThriftId(fieldId);
23486
    }
23487
 
23488
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23489
      org.apache.thrift.protocol.TField field;
23490
      iprot.readStructBegin();
23491
      while (true)
23492
      {
23493
        field = iprot.readFieldBegin();
23494
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23495
          break;
23496
        }
23497
        switch (field.id) {
23498
          case 1: // ITEM_KEY
23499
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23500
              this.itemKey = iprot.readString();
23501
            } else { 
23502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23503
            }
23504
            break;
23505
          case 2: // WAREHOUSE_ID
23506
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23507
              this.warehouseId = iprot.readI64();
23508
              setWarehouseIdIsSet(true);
23509
            } else { 
23510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23511
            }
23512
            break;
23513
          default:
23514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23515
        }
23516
        iprot.readFieldEnd();
23517
      }
23518
      iprot.readStructEnd();
23519
      validate();
23520
    }
23521
 
23522
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23523
      validate();
23524
 
23525
      oprot.writeStructBegin(STRUCT_DESC);
23526
      if (this.itemKey != null) {
23527
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
23528
        oprot.writeString(this.itemKey);
23529
        oprot.writeFieldEnd();
23530
      }
23531
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23532
      oprot.writeI64(this.warehouseId);
23533
      oprot.writeFieldEnd();
23534
      oprot.writeFieldStop();
23535
      oprot.writeStructEnd();
23536
    }
23537
 
23538
    @Override
23539
    public String toString() {
23540
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
23541
      boolean first = true;
23542
 
23543
      sb.append("itemKey:");
23544
      if (this.itemKey == null) {
23545
        sb.append("null");
23546
      } else {
23547
        sb.append(this.itemKey);
23548
      }
23549
      first = false;
23550
      if (!first) sb.append(", ");
23551
      sb.append("warehouseId:");
23552
      sb.append(this.warehouseId);
23553
      first = false;
23554
      sb.append(")");
23555
      return sb.toString();
23556
    }
23557
 
23558
    public void validate() throws org.apache.thrift.TException {
23559
      // check for required fields
23560
    }
23561
 
23562
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23563
      try {
23564
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23565
      } catch (org.apache.thrift.TException te) {
23566
        throw new java.io.IOException(te);
23567
      }
23568
    }
23569
 
23570
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23571
      try {
23572
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23573
      } catch (org.apache.thrift.TException te) {
23574
        throw new java.io.IOException(te);
23575
      }
23576
    }
23577
 
23578
  }
23579
 
23580
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
23581
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
23582
 
23583
 
23584
 
23585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23587
;
23588
 
23589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23590
 
23591
      static {
23592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23593
          byName.put(field.getFieldName(), field);
23594
        }
23595
      }
23596
 
23597
      /**
23598
       * Find the _Fields constant that matches fieldId, or null if its not found.
23599
       */
23600
      public static _Fields findByThriftId(int fieldId) {
23601
        switch(fieldId) {
23602
          default:
23603
            return null;
23604
        }
23605
      }
23606
 
23607
      /**
23608
       * Find the _Fields constant that matches fieldId, throwing an exception
23609
       * if it is not found.
23610
       */
23611
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23612
        _Fields fields = findByThriftId(fieldId);
23613
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23614
        return fields;
23615
      }
23616
 
23617
      /**
23618
       * Find the _Fields constant that matches name, or null if its not found.
23619
       */
23620
      public static _Fields findByName(String name) {
23621
        return byName.get(name);
23622
      }
23623
 
23624
      private final short _thriftId;
23625
      private final String _fieldName;
23626
 
23627
      _Fields(short thriftId, String fieldName) {
23628
        _thriftId = thriftId;
23629
        _fieldName = fieldName;
23630
      }
23631
 
23632
      public short getThriftFieldId() {
23633
        return _thriftId;
23634
      }
23635
 
23636
      public String getFieldName() {
23637
        return _fieldName;
23638
      }
23639
    }
23640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23641
    static {
23642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
23645
    }
23646
 
23647
    public markMissedInventoryUpdatesAsProcessed_result() {
23648
    }
23649
 
23650
    /**
23651
     * Performs a deep copy on <i>other</i>.
23652
     */
23653
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
23654
    }
23655
 
23656
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
23657
      return new markMissedInventoryUpdatesAsProcessed_result(this);
23658
    }
23659
 
23660
    @Override
23661
    public void clear() {
23662
    }
23663
 
23664
    public void setFieldValue(_Fields field, Object value) {
23665
      switch (field) {
23666
      }
23667
    }
23668
 
23669
    public Object getFieldValue(_Fields field) {
23670
      switch (field) {
23671
      }
23672
      throw new IllegalStateException();
23673
    }
23674
 
23675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23676
    public boolean isSet(_Fields field) {
23677
      if (field == null) {
23678
        throw new IllegalArgumentException();
23679
      }
23680
 
23681
      switch (field) {
23682
      }
23683
      throw new IllegalStateException();
23684
    }
23685
 
23686
    @Override
23687
    public boolean equals(Object that) {
23688
      if (that == null)
23689
        return false;
23690
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
23691
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
23692
      return false;
23693
    }
23694
 
23695
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
23696
      if (that == null)
23697
        return false;
23698
 
23699
      return true;
23700
    }
23701
 
23702
    @Override
23703
    public int hashCode() {
23704
      return 0;
23705
    }
23706
 
23707
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
23708
      if (!getClass().equals(other.getClass())) {
23709
        return getClass().getName().compareTo(other.getClass().getName());
23710
      }
23711
 
23712
      int lastComparison = 0;
23713
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
23714
 
23715
      return 0;
23716
    }
23717
 
23718
    public _Fields fieldForId(int fieldId) {
23719
      return _Fields.findByThriftId(fieldId);
23720
    }
23721
 
23722
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23723
      org.apache.thrift.protocol.TField field;
23724
      iprot.readStructBegin();
23725
      while (true)
23726
      {
23727
        field = iprot.readFieldBegin();
23728
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23729
          break;
23730
        }
23731
        switch (field.id) {
23732
          default:
23733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23734
        }
23735
        iprot.readFieldEnd();
23736
      }
23737
      iprot.readStructEnd();
23738
      validate();
23739
    }
23740
 
23741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23742
      oprot.writeStructBegin(STRUCT_DESC);
23743
 
23744
      oprot.writeFieldStop();
23745
      oprot.writeStructEnd();
23746
    }
23747
 
23748
    @Override
23749
    public String toString() {
23750
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
23751
      boolean first = true;
23752
 
23753
      sb.append(")");
23754
      return sb.toString();
23755
    }
23756
 
23757
    public void validate() throws org.apache.thrift.TException {
23758
      // check for required fields
23759
    }
23760
 
23761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23762
      try {
23763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23764
      } catch (org.apache.thrift.TException te) {
23765
        throw new java.io.IOException(te);
23766
      }
23767
    }
23768
 
23769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23770
      try {
23771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23772
      } catch (org.apache.thrift.TException te) {
23773
        throw new java.io.IOException(te);
23774
      }
23775
    }
23776
 
23777
  }
23778
 
23779
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
23780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
23781
 
23782
 
23783
 
23784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23786
;
23787
 
23788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23789
 
23790
      static {
23791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23792
          byName.put(field.getFieldName(), field);
23793
        }
23794
      }
23795
 
23796
      /**
23797
       * Find the _Fields constant that matches fieldId, or null if its not found.
23798
       */
23799
      public static _Fields findByThriftId(int fieldId) {
23800
        switch(fieldId) {
23801
          default:
23802
            return null;
23803
        }
23804
      }
23805
 
23806
      /**
23807
       * Find the _Fields constant that matches fieldId, throwing an exception
23808
       * if it is not found.
23809
       */
23810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23811
        _Fields fields = findByThriftId(fieldId);
23812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23813
        return fields;
23814
      }
23815
 
23816
      /**
23817
       * Find the _Fields constant that matches name, or null if its not found.
23818
       */
23819
      public static _Fields findByName(String name) {
23820
        return byName.get(name);
23821
      }
23822
 
23823
      private final short _thriftId;
23824
      private final String _fieldName;
23825
 
23826
      _Fields(short thriftId, String fieldName) {
23827
        _thriftId = thriftId;
23828
        _fieldName = fieldName;
23829
      }
23830
 
23831
      public short getThriftFieldId() {
23832
        return _thriftId;
23833
      }
23834
 
23835
      public String getFieldName() {
23836
        return _fieldName;
23837
      }
23838
    }
23839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23840
    static {
23841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
23844
    }
23845
 
23846
    public getIgnoredItemKeys_args() {
23847
    }
23848
 
23849
    /**
23850
     * Performs a deep copy on <i>other</i>.
23851
     */
23852
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
23853
    }
23854
 
23855
    public getIgnoredItemKeys_args deepCopy() {
23856
      return new getIgnoredItemKeys_args(this);
23857
    }
23858
 
23859
    @Override
23860
    public void clear() {
23861
    }
23862
 
23863
    public void setFieldValue(_Fields field, Object value) {
23864
      switch (field) {
23865
      }
23866
    }
23867
 
23868
    public Object getFieldValue(_Fields field) {
23869
      switch (field) {
23870
      }
23871
      throw new IllegalStateException();
23872
    }
23873
 
23874
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23875
    public boolean isSet(_Fields field) {
23876
      if (field == null) {
23877
        throw new IllegalArgumentException();
23878
      }
23879
 
23880
      switch (field) {
23881
      }
23882
      throw new IllegalStateException();
23883
    }
23884
 
23885
    @Override
23886
    public boolean equals(Object that) {
23887
      if (that == null)
23888
        return false;
23889
      if (that instanceof getIgnoredItemKeys_args)
23890
        return this.equals((getIgnoredItemKeys_args)that);
23891
      return false;
23892
    }
23893
 
23894
    public boolean equals(getIgnoredItemKeys_args that) {
23895
      if (that == null)
23896
        return false;
23897
 
23898
      return true;
23899
    }
23900
 
23901
    @Override
23902
    public int hashCode() {
23903
      return 0;
23904
    }
23905
 
23906
    public int compareTo(getIgnoredItemKeys_args other) {
23907
      if (!getClass().equals(other.getClass())) {
23908
        return getClass().getName().compareTo(other.getClass().getName());
23909
      }
23910
 
23911
      int lastComparison = 0;
23912
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
23913
 
23914
      return 0;
23915
    }
23916
 
23917
    public _Fields fieldForId(int fieldId) {
23918
      return _Fields.findByThriftId(fieldId);
23919
    }
23920
 
23921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23922
      org.apache.thrift.protocol.TField field;
23923
      iprot.readStructBegin();
23924
      while (true)
23925
      {
23926
        field = iprot.readFieldBegin();
23927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23928
          break;
23929
        }
23930
        switch (field.id) {
23931
          default:
23932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23933
        }
23934
        iprot.readFieldEnd();
23935
      }
23936
      iprot.readStructEnd();
23937
      validate();
23938
    }
23939
 
23940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23941
      validate();
23942
 
23943
      oprot.writeStructBegin(STRUCT_DESC);
23944
      oprot.writeFieldStop();
23945
      oprot.writeStructEnd();
23946
    }
23947
 
23948
    @Override
23949
    public String toString() {
23950
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
23951
      boolean first = true;
23952
 
23953
      sb.append(")");
23954
      return sb.toString();
23955
    }
23956
 
23957
    public void validate() throws org.apache.thrift.TException {
23958
      // check for required fields
23959
    }
23960
 
23961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23962
      try {
23963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23964
      } catch (org.apache.thrift.TException te) {
23965
        throw new java.io.IOException(te);
23966
      }
23967
    }
23968
 
23969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23970
      try {
23971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23972
      } catch (org.apache.thrift.TException te) {
23973
        throw new java.io.IOException(te);
23974
      }
23975
    }
23976
 
23977
  }
23978
 
23979
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
23980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
23981
 
23982
    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);
23983
 
23984
    private Map<String,Map<Long,Long>> success; // required
23985
 
23986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23988
      SUCCESS((short)0, "success");
23989
 
23990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23991
 
23992
      static {
23993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23994
          byName.put(field.getFieldName(), field);
23995
        }
23996
      }
23997
 
23998
      /**
23999
       * Find the _Fields constant that matches fieldId, or null if its not found.
24000
       */
24001
      public static _Fields findByThriftId(int fieldId) {
24002
        switch(fieldId) {
24003
          case 0: // SUCCESS
24004
            return SUCCESS;
24005
          default:
24006
            return null;
24007
        }
24008
      }
24009
 
24010
      /**
24011
       * Find the _Fields constant that matches fieldId, throwing an exception
24012
       * if it is not found.
24013
       */
24014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24015
        _Fields fields = findByThriftId(fieldId);
24016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24017
        return fields;
24018
      }
24019
 
24020
      /**
24021
       * Find the _Fields constant that matches name, or null if its not found.
24022
       */
24023
      public static _Fields findByName(String name) {
24024
        return byName.get(name);
24025
      }
24026
 
24027
      private final short _thriftId;
24028
      private final String _fieldName;
24029
 
24030
      _Fields(short thriftId, String fieldName) {
24031
        _thriftId = thriftId;
24032
        _fieldName = fieldName;
24033
      }
24034
 
24035
      public short getThriftFieldId() {
24036
        return _thriftId;
24037
      }
24038
 
24039
      public String getFieldName() {
24040
        return _fieldName;
24041
      }
24042
    }
24043
 
24044
    // isset id assignments
24045
 
24046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24047
    static {
24048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24049
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24050
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24051
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
24052
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24053
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
24054
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
24055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
24057
    }
24058
 
24059
    public getIgnoredItemKeys_result() {
24060
    }
24061
 
24062
    public getIgnoredItemKeys_result(
24063
      Map<String,Map<Long,Long>> success)
24064
    {
24065
      this();
24066
      this.success = success;
24067
    }
24068
 
24069
    /**
24070
     * Performs a deep copy on <i>other</i>.
24071
     */
24072
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
24073
      if (other.isSetSuccess()) {
24074
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
24075
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
24076
 
24077
          String other_element_key = other_element.getKey();
24078
          Map<Long,Long> other_element_value = other_element.getValue();
24079
 
24080
          String __this__success_copy_key = other_element_key;
24081
 
24082
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
24083
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
24084
 
24085
            Long other_element_value_element_key = other_element_value_element.getKey();
24086
            Long other_element_value_element_value = other_element_value_element.getValue();
24087
 
24088
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
24089
 
24090
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
24091
 
24092
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
24093
          }
24094
 
24095
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
24096
        }
24097
        this.success = __this__success;
24098
      }
24099
    }
24100
 
24101
    public getIgnoredItemKeys_result deepCopy() {
24102
      return new getIgnoredItemKeys_result(this);
24103
    }
24104
 
24105
    @Override
24106
    public void clear() {
24107
      this.success = null;
24108
    }
24109
 
24110
    public int getSuccessSize() {
24111
      return (this.success == null) ? 0 : this.success.size();
24112
    }
24113
 
24114
    public void putToSuccess(String key, Map<Long,Long> val) {
24115
      if (this.success == null) {
24116
        this.success = new HashMap<String,Map<Long,Long>>();
24117
      }
24118
      this.success.put(key, val);
24119
    }
24120
 
24121
    public Map<String,Map<Long,Long>> getSuccess() {
24122
      return this.success;
24123
    }
24124
 
24125
    public void setSuccess(Map<String,Map<Long,Long>> success) {
24126
      this.success = success;
24127
    }
24128
 
24129
    public void unsetSuccess() {
24130
      this.success = null;
24131
    }
24132
 
24133
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24134
    public boolean isSetSuccess() {
24135
      return this.success != null;
24136
    }
24137
 
24138
    public void setSuccessIsSet(boolean value) {
24139
      if (!value) {
24140
        this.success = null;
24141
      }
24142
    }
24143
 
24144
    public void setFieldValue(_Fields field, Object value) {
24145
      switch (field) {
24146
      case SUCCESS:
24147
        if (value == null) {
24148
          unsetSuccess();
24149
        } else {
24150
          setSuccess((Map<String,Map<Long,Long>>)value);
24151
        }
24152
        break;
24153
 
24154
      }
24155
    }
24156
 
24157
    public Object getFieldValue(_Fields field) {
24158
      switch (field) {
24159
      case SUCCESS:
24160
        return getSuccess();
24161
 
24162
      }
24163
      throw new IllegalStateException();
24164
    }
24165
 
24166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24167
    public boolean isSet(_Fields field) {
24168
      if (field == null) {
24169
        throw new IllegalArgumentException();
24170
      }
24171
 
24172
      switch (field) {
24173
      case SUCCESS:
24174
        return isSetSuccess();
24175
      }
24176
      throw new IllegalStateException();
24177
    }
24178
 
24179
    @Override
24180
    public boolean equals(Object that) {
24181
      if (that == null)
24182
        return false;
24183
      if (that instanceof getIgnoredItemKeys_result)
24184
        return this.equals((getIgnoredItemKeys_result)that);
24185
      return false;
24186
    }
24187
 
24188
    public boolean equals(getIgnoredItemKeys_result that) {
24189
      if (that == null)
24190
        return false;
24191
 
24192
      boolean this_present_success = true && this.isSetSuccess();
24193
      boolean that_present_success = true && that.isSetSuccess();
24194
      if (this_present_success || that_present_success) {
24195
        if (!(this_present_success && that_present_success))
24196
          return false;
24197
        if (!this.success.equals(that.success))
24198
          return false;
24199
      }
24200
 
24201
      return true;
24202
    }
24203
 
24204
    @Override
24205
    public int hashCode() {
24206
      return 0;
24207
    }
24208
 
24209
    public int compareTo(getIgnoredItemKeys_result other) {
24210
      if (!getClass().equals(other.getClass())) {
24211
        return getClass().getName().compareTo(other.getClass().getName());
24212
      }
24213
 
24214
      int lastComparison = 0;
24215
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
24216
 
24217
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24218
      if (lastComparison != 0) {
24219
        return lastComparison;
24220
      }
24221
      if (isSetSuccess()) {
24222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24223
        if (lastComparison != 0) {
24224
          return lastComparison;
24225
        }
24226
      }
24227
      return 0;
24228
    }
24229
 
24230
    public _Fields fieldForId(int fieldId) {
24231
      return _Fields.findByThriftId(fieldId);
24232
    }
24233
 
24234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24235
      org.apache.thrift.protocol.TField field;
24236
      iprot.readStructBegin();
24237
      while (true)
24238
      {
24239
        field = iprot.readFieldBegin();
24240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24241
          break;
24242
        }
24243
        switch (field.id) {
24244
          case 0: // SUCCESS
24245
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
24246
              {
24247
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
24248
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
24249
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
24250
                {
24251
                  String _key58; // required
24252
                  Map<Long,Long> _val59; // required
24253
                  _key58 = iprot.readString();
24254
                  {
24255
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
24256
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
24257
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
24258
                    {
24259
                      long _key62; // required
24260
                      long _val63; // required
24261
                      _key62 = iprot.readI64();
24262
                      _val63 = iprot.readI64();
24263
                      _val59.put(_key62, _val63);
24264
                    }
24265
                    iprot.readMapEnd();
24266
                  }
24267
                  this.success.put(_key58, _val59);
24268
                }
24269
                iprot.readMapEnd();
24270
              }
24271
            } else { 
24272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24273
            }
24274
            break;
24275
          default:
24276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24277
        }
24278
        iprot.readFieldEnd();
24279
      }
24280
      iprot.readStructEnd();
24281
      validate();
24282
    }
24283
 
24284
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24285
      oprot.writeStructBegin(STRUCT_DESC);
24286
 
24287
      if (this.isSetSuccess()) {
24288
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24289
        {
24290
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
24291
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
24292
          {
24293
            oprot.writeString(_iter64.getKey());
24294
            {
24295
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
24296
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
24297
              {
24298
                oprot.writeI64(_iter65.getKey());
24299
                oprot.writeI64(_iter65.getValue());
24300
              }
24301
              oprot.writeMapEnd();
24302
            }
24303
          }
24304
          oprot.writeMapEnd();
24305
        }
24306
        oprot.writeFieldEnd();
24307
      }
24308
      oprot.writeFieldStop();
24309
      oprot.writeStructEnd();
24310
    }
24311
 
24312
    @Override
24313
    public String toString() {
24314
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
24315
      boolean first = true;
24316
 
24317
      sb.append("success:");
24318
      if (this.success == null) {
24319
        sb.append("null");
24320
      } else {
24321
        sb.append(this.success);
24322
      }
24323
      first = false;
24324
      sb.append(")");
24325
      return sb.toString();
24326
    }
24327
 
24328
    public void validate() throws org.apache.thrift.TException {
24329
      // check for required fields
24330
    }
24331
 
24332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24333
      try {
24334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24335
      } catch (org.apache.thrift.TException te) {
24336
        throw new java.io.IOException(te);
24337
      }
24338
    }
24339
 
24340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24341
      try {
24342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24343
      } catch (org.apache.thrift.TException te) {
24344
        throw new java.io.IOException(te);
24345
      }
24346
    }
24347
 
24348
  }
24349
 
24350
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
24351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
24352
 
24353
    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);
24354
    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);
24355
    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);
24356
 
24357
    private long itemId; // required
24358
    private long warehouseId; // required
24359
    private long quantity; // required
24360
 
24361
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24362
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24363
      ITEM_ID((short)1, "itemId"),
24364
      WAREHOUSE_ID((short)2, "warehouseId"),
24365
      QUANTITY((short)3, "quantity");
24366
 
24367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24368
 
24369
      static {
24370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24371
          byName.put(field.getFieldName(), field);
24372
        }
24373
      }
24374
 
24375
      /**
24376
       * Find the _Fields constant that matches fieldId, or null if its not found.
24377
       */
24378
      public static _Fields findByThriftId(int fieldId) {
24379
        switch(fieldId) {
24380
          case 1: // ITEM_ID
24381
            return ITEM_ID;
24382
          case 2: // WAREHOUSE_ID
24383
            return WAREHOUSE_ID;
24384
          case 3: // QUANTITY
24385
            return QUANTITY;
24386
          default:
24387
            return null;
24388
        }
24389
      }
24390
 
24391
      /**
24392
       * Find the _Fields constant that matches fieldId, throwing an exception
24393
       * if it is not found.
24394
       */
24395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24396
        _Fields fields = findByThriftId(fieldId);
24397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24398
        return fields;
24399
      }
24400
 
24401
      /**
24402
       * Find the _Fields constant that matches name, or null if its not found.
24403
       */
24404
      public static _Fields findByName(String name) {
24405
        return byName.get(name);
24406
      }
24407
 
24408
      private final short _thriftId;
24409
      private final String _fieldName;
24410
 
24411
      _Fields(short thriftId, String fieldName) {
24412
        _thriftId = thriftId;
24413
        _fieldName = fieldName;
24414
      }
24415
 
24416
      public short getThriftFieldId() {
24417
        return _thriftId;
24418
      }
24419
 
24420
      public String getFieldName() {
24421
        return _fieldName;
24422
      }
24423
    }
24424
 
24425
    // isset id assignments
24426
    private static final int __ITEMID_ISSET_ID = 0;
24427
    private static final int __WAREHOUSEID_ISSET_ID = 1;
24428
    private static final int __QUANTITY_ISSET_ID = 2;
24429
    private BitSet __isset_bit_vector = new BitSet(3);
24430
 
24431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24432
    static {
24433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24434
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24435
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24436
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24438
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
24442
    }
24443
 
24444
    public addBadInventory_args() {
24445
    }
24446
 
24447
    public addBadInventory_args(
24448
      long itemId,
24449
      long warehouseId,
24450
      long quantity)
24451
    {
24452
      this();
24453
      this.itemId = itemId;
24454
      setItemIdIsSet(true);
24455
      this.warehouseId = warehouseId;
24456
      setWarehouseIdIsSet(true);
24457
      this.quantity = quantity;
24458
      setQuantityIsSet(true);
24459
    }
24460
 
24461
    /**
24462
     * Performs a deep copy on <i>other</i>.
24463
     */
24464
    public addBadInventory_args(addBadInventory_args other) {
24465
      __isset_bit_vector.clear();
24466
      __isset_bit_vector.or(other.__isset_bit_vector);
24467
      this.itemId = other.itemId;
24468
      this.warehouseId = other.warehouseId;
24469
      this.quantity = other.quantity;
24470
    }
24471
 
24472
    public addBadInventory_args deepCopy() {
24473
      return new addBadInventory_args(this);
24474
    }
24475
 
24476
    @Override
24477
    public void clear() {
24478
      setItemIdIsSet(false);
24479
      this.itemId = 0;
24480
      setWarehouseIdIsSet(false);
24481
      this.warehouseId = 0;
24482
      setQuantityIsSet(false);
24483
      this.quantity = 0;
24484
    }
24485
 
24486
    public long getItemId() {
24487
      return this.itemId;
24488
    }
24489
 
24490
    public void setItemId(long itemId) {
24491
      this.itemId = itemId;
24492
      setItemIdIsSet(true);
24493
    }
24494
 
24495
    public void unsetItemId() {
24496
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
24497
    }
24498
 
24499
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
24500
    public boolean isSetItemId() {
24501
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
24502
    }
24503
 
24504
    public void setItemIdIsSet(boolean value) {
24505
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
24506
    }
24507
 
24508
    public long getWarehouseId() {
24509
      return this.warehouseId;
24510
    }
24511
 
24512
    public void setWarehouseId(long warehouseId) {
24513
      this.warehouseId = warehouseId;
24514
      setWarehouseIdIsSet(true);
24515
    }
24516
 
24517
    public void unsetWarehouseId() {
24518
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24519
    }
24520
 
24521
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24522
    public boolean isSetWarehouseId() {
24523
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24524
    }
24525
 
24526
    public void setWarehouseIdIsSet(boolean value) {
24527
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24528
    }
24529
 
24530
    public long getQuantity() {
24531
      return this.quantity;
24532
    }
24533
 
24534
    public void setQuantity(long quantity) {
24535
      this.quantity = quantity;
24536
      setQuantityIsSet(true);
24537
    }
24538
 
24539
    public void unsetQuantity() {
24540
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
24541
    }
24542
 
24543
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
24544
    public boolean isSetQuantity() {
24545
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
24546
    }
24547
 
24548
    public void setQuantityIsSet(boolean value) {
24549
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
24550
    }
24551
 
24552
    public void setFieldValue(_Fields field, Object value) {
24553
      switch (field) {
24554
      case ITEM_ID:
24555
        if (value == null) {
24556
          unsetItemId();
24557
        } else {
24558
          setItemId((Long)value);
24559
        }
24560
        break;
24561
 
24562
      case WAREHOUSE_ID:
24563
        if (value == null) {
24564
          unsetWarehouseId();
24565
        } else {
24566
          setWarehouseId((Long)value);
24567
        }
24568
        break;
24569
 
24570
      case QUANTITY:
24571
        if (value == null) {
24572
          unsetQuantity();
24573
        } else {
24574
          setQuantity((Long)value);
24575
        }
24576
        break;
24577
 
24578
      }
24579
    }
24580
 
24581
    public Object getFieldValue(_Fields field) {
24582
      switch (field) {
24583
      case ITEM_ID:
24584
        return Long.valueOf(getItemId());
24585
 
24586
      case WAREHOUSE_ID:
24587
        return Long.valueOf(getWarehouseId());
24588
 
24589
      case QUANTITY:
24590
        return Long.valueOf(getQuantity());
24591
 
24592
      }
24593
      throw new IllegalStateException();
24594
    }
24595
 
24596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24597
    public boolean isSet(_Fields field) {
24598
      if (field == null) {
24599
        throw new IllegalArgumentException();
24600
      }
24601
 
24602
      switch (field) {
24603
      case ITEM_ID:
24604
        return isSetItemId();
24605
      case WAREHOUSE_ID:
24606
        return isSetWarehouseId();
24607
      case QUANTITY:
24608
        return isSetQuantity();
24609
      }
24610
      throw new IllegalStateException();
24611
    }
24612
 
24613
    @Override
24614
    public boolean equals(Object that) {
24615
      if (that == null)
24616
        return false;
24617
      if (that instanceof addBadInventory_args)
24618
        return this.equals((addBadInventory_args)that);
24619
      return false;
24620
    }
24621
 
24622
    public boolean equals(addBadInventory_args that) {
24623
      if (that == null)
24624
        return false;
24625
 
24626
      boolean this_present_itemId = true;
24627
      boolean that_present_itemId = true;
24628
      if (this_present_itemId || that_present_itemId) {
24629
        if (!(this_present_itemId && that_present_itemId))
24630
          return false;
24631
        if (this.itemId != that.itemId)
24632
          return false;
24633
      }
24634
 
24635
      boolean this_present_warehouseId = true;
24636
      boolean that_present_warehouseId = true;
24637
      if (this_present_warehouseId || that_present_warehouseId) {
24638
        if (!(this_present_warehouseId && that_present_warehouseId))
24639
          return false;
24640
        if (this.warehouseId != that.warehouseId)
24641
          return false;
24642
      }
24643
 
24644
      boolean this_present_quantity = true;
24645
      boolean that_present_quantity = true;
24646
      if (this_present_quantity || that_present_quantity) {
24647
        if (!(this_present_quantity && that_present_quantity))
24648
          return false;
24649
        if (this.quantity != that.quantity)
24650
          return false;
24651
      }
24652
 
24653
      return true;
24654
    }
24655
 
24656
    @Override
24657
    public int hashCode() {
24658
      return 0;
24659
    }
24660
 
24661
    public int compareTo(addBadInventory_args other) {
24662
      if (!getClass().equals(other.getClass())) {
24663
        return getClass().getName().compareTo(other.getClass().getName());
24664
      }
24665
 
24666
      int lastComparison = 0;
24667
      addBadInventory_args typedOther = (addBadInventory_args)other;
24668
 
24669
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
24670
      if (lastComparison != 0) {
24671
        return lastComparison;
24672
      }
24673
      if (isSetItemId()) {
24674
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
24675
        if (lastComparison != 0) {
24676
          return lastComparison;
24677
        }
24678
      }
24679
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24680
      if (lastComparison != 0) {
24681
        return lastComparison;
24682
      }
24683
      if (isSetWarehouseId()) {
24684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24685
        if (lastComparison != 0) {
24686
          return lastComparison;
24687
        }
24688
      }
24689
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
24690
      if (lastComparison != 0) {
24691
        return lastComparison;
24692
      }
24693
      if (isSetQuantity()) {
24694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
24695
        if (lastComparison != 0) {
24696
          return lastComparison;
24697
        }
24698
      }
24699
      return 0;
24700
    }
24701
 
24702
    public _Fields fieldForId(int fieldId) {
24703
      return _Fields.findByThriftId(fieldId);
24704
    }
24705
 
24706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24707
      org.apache.thrift.protocol.TField field;
24708
      iprot.readStructBegin();
24709
      while (true)
24710
      {
24711
        field = iprot.readFieldBegin();
24712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24713
          break;
24714
        }
24715
        switch (field.id) {
24716
          case 1: // ITEM_ID
24717
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24718
              this.itemId = iprot.readI64();
24719
              setItemIdIsSet(true);
24720
            } else { 
24721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24722
            }
24723
            break;
24724
          case 2: // WAREHOUSE_ID
24725
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24726
              this.warehouseId = iprot.readI64();
24727
              setWarehouseIdIsSet(true);
24728
            } else { 
24729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24730
            }
24731
            break;
24732
          case 3: // QUANTITY
24733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24734
              this.quantity = iprot.readI64();
24735
              setQuantityIsSet(true);
24736
            } else { 
24737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24738
            }
24739
            break;
24740
          default:
24741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24742
        }
24743
        iprot.readFieldEnd();
24744
      }
24745
      iprot.readStructEnd();
24746
      validate();
24747
    }
24748
 
24749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24750
      validate();
24751
 
24752
      oprot.writeStructBegin(STRUCT_DESC);
24753
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
24754
      oprot.writeI64(this.itemId);
24755
      oprot.writeFieldEnd();
24756
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24757
      oprot.writeI64(this.warehouseId);
24758
      oprot.writeFieldEnd();
24759
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
24760
      oprot.writeI64(this.quantity);
24761
      oprot.writeFieldEnd();
24762
      oprot.writeFieldStop();
24763
      oprot.writeStructEnd();
24764
    }
24765
 
24766
    @Override
24767
    public String toString() {
24768
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
24769
      boolean first = true;
24770
 
24771
      sb.append("itemId:");
24772
      sb.append(this.itemId);
24773
      first = false;
24774
      if (!first) sb.append(", ");
24775
      sb.append("warehouseId:");
24776
      sb.append(this.warehouseId);
24777
      first = false;
24778
      if (!first) sb.append(", ");
24779
      sb.append("quantity:");
24780
      sb.append(this.quantity);
24781
      first = false;
24782
      sb.append(")");
24783
      return sb.toString();
24784
    }
24785
 
24786
    public void validate() throws org.apache.thrift.TException {
24787
      // check for required fields
24788
    }
24789
 
24790
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24791
      try {
24792
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24793
      } catch (org.apache.thrift.TException te) {
24794
        throw new java.io.IOException(te);
24795
      }
24796
    }
24797
 
24798
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24799
      try {
24800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24801
      } catch (org.apache.thrift.TException te) {
24802
        throw new java.io.IOException(te);
24803
      }
24804
    }
24805
 
24806
  }
24807
 
24808
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
24809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
24810
 
24811
    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);
24812
 
24813
    private InventoryServiceException cex; // required
24814
 
24815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24817
      CEX((short)1, "cex");
24818
 
24819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24820
 
24821
      static {
24822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24823
          byName.put(field.getFieldName(), field);
24824
        }
24825
      }
24826
 
24827
      /**
24828
       * Find the _Fields constant that matches fieldId, or null if its not found.
24829
       */
24830
      public static _Fields findByThriftId(int fieldId) {
24831
        switch(fieldId) {
24832
          case 1: // CEX
24833
            return CEX;
24834
          default:
24835
            return null;
24836
        }
24837
      }
24838
 
24839
      /**
24840
       * Find the _Fields constant that matches fieldId, throwing an exception
24841
       * if it is not found.
24842
       */
24843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24844
        _Fields fields = findByThriftId(fieldId);
24845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24846
        return fields;
24847
      }
24848
 
24849
      /**
24850
       * Find the _Fields constant that matches name, or null if its not found.
24851
       */
24852
      public static _Fields findByName(String name) {
24853
        return byName.get(name);
24854
      }
24855
 
24856
      private final short _thriftId;
24857
      private final String _fieldName;
24858
 
24859
      _Fields(short thriftId, String fieldName) {
24860
        _thriftId = thriftId;
24861
        _fieldName = fieldName;
24862
      }
24863
 
24864
      public short getThriftFieldId() {
24865
        return _thriftId;
24866
      }
24867
 
24868
      public String getFieldName() {
24869
        return _fieldName;
24870
      }
24871
    }
24872
 
24873
    // isset id assignments
24874
 
24875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24876
    static {
24877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24878
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
24882
    }
24883
 
24884
    public addBadInventory_result() {
24885
    }
24886
 
24887
    public addBadInventory_result(
24888
      InventoryServiceException cex)
24889
    {
24890
      this();
24891
      this.cex = cex;
24892
    }
24893
 
24894
    /**
24895
     * Performs a deep copy on <i>other</i>.
24896
     */
24897
    public addBadInventory_result(addBadInventory_result other) {
24898
      if (other.isSetCex()) {
24899
        this.cex = new InventoryServiceException(other.cex);
24900
      }
24901
    }
24902
 
24903
    public addBadInventory_result deepCopy() {
24904
      return new addBadInventory_result(this);
24905
    }
24906
 
24907
    @Override
24908
    public void clear() {
24909
      this.cex = null;
24910
    }
24911
 
24912
    public InventoryServiceException getCex() {
24913
      return this.cex;
24914
    }
24915
 
24916
    public void setCex(InventoryServiceException cex) {
24917
      this.cex = cex;
24918
    }
24919
 
24920
    public void unsetCex() {
24921
      this.cex = null;
24922
    }
24923
 
24924
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
24925
    public boolean isSetCex() {
24926
      return this.cex != null;
24927
    }
24928
 
24929
    public void setCexIsSet(boolean value) {
24930
      if (!value) {
24931
        this.cex = null;
24932
      }
24933
    }
24934
 
24935
    public void setFieldValue(_Fields field, Object value) {
24936
      switch (field) {
24937
      case CEX:
24938
        if (value == null) {
24939
          unsetCex();
24940
        } else {
24941
          setCex((InventoryServiceException)value);
24942
        }
24943
        break;
24944
 
24945
      }
24946
    }
24947
 
24948
    public Object getFieldValue(_Fields field) {
24949
      switch (field) {
24950
      case CEX:
24951
        return getCex();
24952
 
24953
      }
24954
      throw new IllegalStateException();
24955
    }
24956
 
24957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24958
    public boolean isSet(_Fields field) {
24959
      if (field == null) {
24960
        throw new IllegalArgumentException();
24961
      }
24962
 
24963
      switch (field) {
24964
      case CEX:
24965
        return isSetCex();
24966
      }
24967
      throw new IllegalStateException();
24968
    }
24969
 
24970
    @Override
24971
    public boolean equals(Object that) {
24972
      if (that == null)
24973
        return false;
24974
      if (that instanceof addBadInventory_result)
24975
        return this.equals((addBadInventory_result)that);
24976
      return false;
24977
    }
24978
 
24979
    public boolean equals(addBadInventory_result that) {
24980
      if (that == null)
24981
        return false;
24982
 
24983
      boolean this_present_cex = true && this.isSetCex();
24984
      boolean that_present_cex = true && that.isSetCex();
24985
      if (this_present_cex || that_present_cex) {
24986
        if (!(this_present_cex && that_present_cex))
24987
          return false;
24988
        if (!this.cex.equals(that.cex))
24989
          return false;
24990
      }
24991
 
24992
      return true;
24993
    }
24994
 
24995
    @Override
24996
    public int hashCode() {
24997
      return 0;
24998
    }
24999
 
25000
    public int compareTo(addBadInventory_result other) {
25001
      if (!getClass().equals(other.getClass())) {
25002
        return getClass().getName().compareTo(other.getClass().getName());
25003
      }
25004
 
25005
      int lastComparison = 0;
25006
      addBadInventory_result typedOther = (addBadInventory_result)other;
25007
 
25008
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25009
      if (lastComparison != 0) {
25010
        return lastComparison;
25011
      }
25012
      if (isSetCex()) {
25013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25014
        if (lastComparison != 0) {
25015
          return lastComparison;
25016
        }
25017
      }
25018
      return 0;
25019
    }
25020
 
25021
    public _Fields fieldForId(int fieldId) {
25022
      return _Fields.findByThriftId(fieldId);
25023
    }
25024
 
25025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25026
      org.apache.thrift.protocol.TField field;
25027
      iprot.readStructBegin();
25028
      while (true)
25029
      {
25030
        field = iprot.readFieldBegin();
25031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25032
          break;
25033
        }
25034
        switch (field.id) {
25035
          case 1: // CEX
25036
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25037
              this.cex = new InventoryServiceException();
25038
              this.cex.read(iprot);
25039
            } else { 
25040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25041
            }
25042
            break;
25043
          default:
25044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25045
        }
25046
        iprot.readFieldEnd();
25047
      }
25048
      iprot.readStructEnd();
25049
      validate();
25050
    }
25051
 
25052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25053
      oprot.writeStructBegin(STRUCT_DESC);
25054
 
25055
      if (this.isSetCex()) {
25056
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25057
        this.cex.write(oprot);
25058
        oprot.writeFieldEnd();
25059
      }
25060
      oprot.writeFieldStop();
25061
      oprot.writeStructEnd();
25062
    }
25063
 
25064
    @Override
25065
    public String toString() {
25066
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
25067
      boolean first = true;
25068
 
25069
      sb.append("cex:");
25070
      if (this.cex == null) {
25071
        sb.append("null");
25072
      } else {
25073
        sb.append(this.cex);
25074
      }
25075
      first = false;
25076
      sb.append(")");
25077
      return sb.toString();
25078
    }
25079
 
25080
    public void validate() throws org.apache.thrift.TException {
25081
      // check for required fields
25082
    }
25083
 
25084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25085
      try {
25086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25087
      } catch (org.apache.thrift.TException te) {
25088
        throw new java.io.IOException(te);
25089
      }
25090
    }
25091
 
25092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25093
      try {
25094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25095
      } catch (org.apache.thrift.TException te) {
25096
        throw new java.io.IOException(te);
25097
      }
25098
    }
25099
 
25100
  }
25101
 
25102
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
25103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
25104
 
25105
 
25106
 
25107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25108
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25109
;
25110
 
25111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25112
 
25113
      static {
25114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25115
          byName.put(field.getFieldName(), field);
25116
        }
25117
      }
25118
 
25119
      /**
25120
       * Find the _Fields constant that matches fieldId, or null if its not found.
25121
       */
25122
      public static _Fields findByThriftId(int fieldId) {
25123
        switch(fieldId) {
25124
          default:
25125
            return null;
25126
        }
25127
      }
25128
 
25129
      /**
25130
       * Find the _Fields constant that matches fieldId, throwing an exception
25131
       * if it is not found.
25132
       */
25133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25134
        _Fields fields = findByThriftId(fieldId);
25135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25136
        return fields;
25137
      }
25138
 
25139
      /**
25140
       * Find the _Fields constant that matches name, or null if its not found.
25141
       */
25142
      public static _Fields findByName(String name) {
25143
        return byName.get(name);
25144
      }
25145
 
25146
      private final short _thriftId;
25147
      private final String _fieldName;
25148
 
25149
      _Fields(short thriftId, String fieldName) {
25150
        _thriftId = thriftId;
25151
        _fieldName = fieldName;
25152
      }
25153
 
25154
      public short getThriftFieldId() {
25155
        return _thriftId;
25156
      }
25157
 
25158
      public String getFieldName() {
25159
        return _fieldName;
25160
      }
25161
    }
25162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25163
    static {
25164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
25167
    }
25168
 
25169
    public getShippingLocations_args() {
25170
    }
25171
 
25172
    /**
25173
     * Performs a deep copy on <i>other</i>.
25174
     */
25175
    public getShippingLocations_args(getShippingLocations_args other) {
25176
    }
25177
 
25178
    public getShippingLocations_args deepCopy() {
25179
      return new getShippingLocations_args(this);
25180
    }
25181
 
25182
    @Override
25183
    public void clear() {
25184
    }
25185
 
25186
    public void setFieldValue(_Fields field, Object value) {
25187
      switch (field) {
25188
      }
25189
    }
25190
 
25191
    public Object getFieldValue(_Fields field) {
25192
      switch (field) {
25193
      }
25194
      throw new IllegalStateException();
25195
    }
25196
 
25197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25198
    public boolean isSet(_Fields field) {
25199
      if (field == null) {
25200
        throw new IllegalArgumentException();
25201
      }
25202
 
25203
      switch (field) {
25204
      }
25205
      throw new IllegalStateException();
25206
    }
25207
 
25208
    @Override
25209
    public boolean equals(Object that) {
25210
      if (that == null)
25211
        return false;
25212
      if (that instanceof getShippingLocations_args)
25213
        return this.equals((getShippingLocations_args)that);
25214
      return false;
25215
    }
25216
 
25217
    public boolean equals(getShippingLocations_args that) {
25218
      if (that == null)
25219
        return false;
25220
 
25221
      return true;
25222
    }
25223
 
25224
    @Override
25225
    public int hashCode() {
25226
      return 0;
25227
    }
25228
 
25229
    public int compareTo(getShippingLocations_args other) {
25230
      if (!getClass().equals(other.getClass())) {
25231
        return getClass().getName().compareTo(other.getClass().getName());
25232
      }
25233
 
25234
      int lastComparison = 0;
25235
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
25236
 
25237
      return 0;
25238
    }
25239
 
25240
    public _Fields fieldForId(int fieldId) {
25241
      return _Fields.findByThriftId(fieldId);
25242
    }
25243
 
25244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25245
      org.apache.thrift.protocol.TField field;
25246
      iprot.readStructBegin();
25247
      while (true)
25248
      {
25249
        field = iprot.readFieldBegin();
25250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25251
          break;
25252
        }
25253
        switch (field.id) {
25254
          default:
25255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25256
        }
25257
        iprot.readFieldEnd();
25258
      }
25259
      iprot.readStructEnd();
25260
      validate();
25261
    }
25262
 
25263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25264
      validate();
25265
 
25266
      oprot.writeStructBegin(STRUCT_DESC);
25267
      oprot.writeFieldStop();
25268
      oprot.writeStructEnd();
25269
    }
25270
 
25271
    @Override
25272
    public String toString() {
25273
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
25274
      boolean first = true;
25275
 
25276
      sb.append(")");
25277
      return sb.toString();
25278
    }
25279
 
25280
    public void validate() throws org.apache.thrift.TException {
25281
      // check for required fields
25282
    }
25283
 
25284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25285
      try {
25286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25287
      } catch (org.apache.thrift.TException te) {
25288
        throw new java.io.IOException(te);
25289
      }
25290
    }
25291
 
25292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25293
      try {
25294
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25295
      } catch (org.apache.thrift.TException te) {
25296
        throw new java.io.IOException(te);
25297
      }
25298
    }
25299
 
25300
  }
25301
 
25302
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
25303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
25304
 
25305
    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);
25306
 
25307
    private List<Warehouse> success; // required
25308
 
25309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25311
      SUCCESS((short)0, "success");
25312
 
25313
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25314
 
25315
      static {
25316
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25317
          byName.put(field.getFieldName(), field);
25318
        }
25319
      }
25320
 
25321
      /**
25322
       * Find the _Fields constant that matches fieldId, or null if its not found.
25323
       */
25324
      public static _Fields findByThriftId(int fieldId) {
25325
        switch(fieldId) {
25326
          case 0: // SUCCESS
25327
            return SUCCESS;
25328
          default:
25329
            return null;
25330
        }
25331
      }
25332
 
25333
      /**
25334
       * Find the _Fields constant that matches fieldId, throwing an exception
25335
       * if it is not found.
25336
       */
25337
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25338
        _Fields fields = findByThriftId(fieldId);
25339
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25340
        return fields;
25341
      }
25342
 
25343
      /**
25344
       * Find the _Fields constant that matches name, or null if its not found.
25345
       */
25346
      public static _Fields findByName(String name) {
25347
        return byName.get(name);
25348
      }
25349
 
25350
      private final short _thriftId;
25351
      private final String _fieldName;
25352
 
25353
      _Fields(short thriftId, String fieldName) {
25354
        _thriftId = thriftId;
25355
        _fieldName = fieldName;
25356
      }
25357
 
25358
      public short getThriftFieldId() {
25359
        return _thriftId;
25360
      }
25361
 
25362
      public String getFieldName() {
25363
        return _fieldName;
25364
      }
25365
    }
25366
 
25367
    // isset id assignments
25368
 
25369
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25370
    static {
25371
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25372
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25373
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25374
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25375
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25376
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
25377
    }
25378
 
25379
    public getShippingLocations_result() {
25380
    }
25381
 
25382
    public getShippingLocations_result(
25383
      List<Warehouse> success)
25384
    {
25385
      this();
25386
      this.success = success;
25387
    }
25388
 
25389
    /**
25390
     * Performs a deep copy on <i>other</i>.
25391
     */
25392
    public getShippingLocations_result(getShippingLocations_result other) {
25393
      if (other.isSetSuccess()) {
25394
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25395
        for (Warehouse other_element : other.success) {
25396
          __this__success.add(new Warehouse(other_element));
25397
        }
25398
        this.success = __this__success;
25399
      }
25400
    }
25401
 
25402
    public getShippingLocations_result deepCopy() {
25403
      return new getShippingLocations_result(this);
25404
    }
25405
 
25406
    @Override
25407
    public void clear() {
25408
      this.success = null;
25409
    }
25410
 
25411
    public int getSuccessSize() {
25412
      return (this.success == null) ? 0 : this.success.size();
25413
    }
25414
 
25415
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25416
      return (this.success == null) ? null : this.success.iterator();
25417
    }
25418
 
25419
    public void addToSuccess(Warehouse elem) {
25420
      if (this.success == null) {
25421
        this.success = new ArrayList<Warehouse>();
25422
      }
25423
      this.success.add(elem);
25424
    }
25425
 
25426
    public List<Warehouse> getSuccess() {
25427
      return this.success;
25428
    }
25429
 
25430
    public void setSuccess(List<Warehouse> success) {
25431
      this.success = success;
25432
    }
25433
 
25434
    public void unsetSuccess() {
25435
      this.success = null;
25436
    }
25437
 
25438
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25439
    public boolean isSetSuccess() {
25440
      return this.success != null;
25441
    }
25442
 
25443
    public void setSuccessIsSet(boolean value) {
25444
      if (!value) {
25445
        this.success = null;
25446
      }
25447
    }
25448
 
25449
    public void setFieldValue(_Fields field, Object value) {
25450
      switch (field) {
25451
      case SUCCESS:
25452
        if (value == null) {
25453
          unsetSuccess();
25454
        } else {
25455
          setSuccess((List<Warehouse>)value);
25456
        }
25457
        break;
25458
 
25459
      }
25460
    }
25461
 
25462
    public Object getFieldValue(_Fields field) {
25463
      switch (field) {
25464
      case SUCCESS:
25465
        return getSuccess();
25466
 
25467
      }
25468
      throw new IllegalStateException();
25469
    }
25470
 
25471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25472
    public boolean isSet(_Fields field) {
25473
      if (field == null) {
25474
        throw new IllegalArgumentException();
25475
      }
25476
 
25477
      switch (field) {
25478
      case SUCCESS:
25479
        return isSetSuccess();
25480
      }
25481
      throw new IllegalStateException();
25482
    }
25483
 
25484
    @Override
25485
    public boolean equals(Object that) {
25486
      if (that == null)
25487
        return false;
25488
      if (that instanceof getShippingLocations_result)
25489
        return this.equals((getShippingLocations_result)that);
25490
      return false;
25491
    }
25492
 
25493
    public boolean equals(getShippingLocations_result that) {
25494
      if (that == null)
25495
        return false;
25496
 
25497
      boolean this_present_success = true && this.isSetSuccess();
25498
      boolean that_present_success = true && that.isSetSuccess();
25499
      if (this_present_success || that_present_success) {
25500
        if (!(this_present_success && that_present_success))
25501
          return false;
25502
        if (!this.success.equals(that.success))
25503
          return false;
25504
      }
25505
 
25506
      return true;
25507
    }
25508
 
25509
    @Override
25510
    public int hashCode() {
25511
      return 0;
25512
    }
25513
 
25514
    public int compareTo(getShippingLocations_result other) {
25515
      if (!getClass().equals(other.getClass())) {
25516
        return getClass().getName().compareTo(other.getClass().getName());
25517
      }
25518
 
25519
      int lastComparison = 0;
25520
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
25521
 
25522
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25523
      if (lastComparison != 0) {
25524
        return lastComparison;
25525
      }
25526
      if (isSetSuccess()) {
25527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25528
        if (lastComparison != 0) {
25529
          return lastComparison;
25530
        }
25531
      }
25532
      return 0;
25533
    }
25534
 
25535
    public _Fields fieldForId(int fieldId) {
25536
      return _Fields.findByThriftId(fieldId);
25537
    }
25538
 
25539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25540
      org.apache.thrift.protocol.TField field;
25541
      iprot.readStructBegin();
25542
      while (true)
25543
      {
25544
        field = iprot.readFieldBegin();
25545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25546
          break;
25547
        }
25548
        switch (field.id) {
25549
          case 0: // SUCCESS
25550
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25551
              {
25552
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
25553
                this.success = new ArrayList<Warehouse>(_list66.size);
25554
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
25555
                {
25556
                  Warehouse _elem68; // required
25557
                  _elem68 = new Warehouse();
25558
                  _elem68.read(iprot);
25559
                  this.success.add(_elem68);
25560
                }
25561
                iprot.readListEnd();
25562
              }
25563
            } else { 
25564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25565
            }
25566
            break;
25567
          default:
25568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25569
        }
25570
        iprot.readFieldEnd();
25571
      }
25572
      iprot.readStructEnd();
25573
      validate();
25574
    }
25575
 
25576
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25577
      oprot.writeStructBegin(STRUCT_DESC);
25578
 
25579
      if (this.isSetSuccess()) {
25580
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25581
        {
25582
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25583
          for (Warehouse _iter69 : this.success)
25584
          {
25585
            _iter69.write(oprot);
25586
          }
25587
          oprot.writeListEnd();
25588
        }
25589
        oprot.writeFieldEnd();
25590
      }
25591
      oprot.writeFieldStop();
25592
      oprot.writeStructEnd();
25593
    }
25594
 
25595
    @Override
25596
    public String toString() {
25597
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
25598
      boolean first = true;
25599
 
25600
      sb.append("success:");
25601
      if (this.success == null) {
25602
        sb.append("null");
25603
      } else {
25604
        sb.append(this.success);
25605
      }
25606
      first = false;
25607
      sb.append(")");
25608
      return sb.toString();
25609
    }
25610
 
25611
    public void validate() throws org.apache.thrift.TException {
25612
      // check for required fields
25613
    }
25614
 
25615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25616
      try {
25617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25618
      } catch (org.apache.thrift.TException te) {
25619
        throw new java.io.IOException(te);
25620
      }
25621
    }
25622
 
25623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25624
      try {
25625
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25626
      } catch (org.apache.thrift.TException te) {
25627
        throw new java.io.IOException(te);
25628
      }
25629
    }
25630
 
25631
  }
25632
 
25633
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
25634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
25635
 
25636
 
25637
 
25638
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25639
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25640
;
25641
 
25642
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25643
 
25644
      static {
25645
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25646
          byName.put(field.getFieldName(), field);
25647
        }
25648
      }
25649
 
25650
      /**
25651
       * Find the _Fields constant that matches fieldId, or null if its not found.
25652
       */
25653
      public static _Fields findByThriftId(int fieldId) {
25654
        switch(fieldId) {
25655
          default:
25656
            return null;
25657
        }
25658
      }
25659
 
25660
      /**
25661
       * Find the _Fields constant that matches fieldId, throwing an exception
25662
       * if it is not found.
25663
       */
25664
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25665
        _Fields fields = findByThriftId(fieldId);
25666
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25667
        return fields;
25668
      }
25669
 
25670
      /**
25671
       * Find the _Fields constant that matches name, or null if its not found.
25672
       */
25673
      public static _Fields findByName(String name) {
25674
        return byName.get(name);
25675
      }
25676
 
25677
      private final short _thriftId;
25678
      private final String _fieldName;
25679
 
25680
      _Fields(short thriftId, String fieldName) {
25681
        _thriftId = thriftId;
25682
        _fieldName = fieldName;
25683
      }
25684
 
25685
      public short getThriftFieldId() {
25686
        return _thriftId;
25687
      }
25688
 
25689
      public String getFieldName() {
25690
        return _fieldName;
25691
      }
25692
    }
25693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25694
    static {
25695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
25698
    }
25699
 
25700
    public getAllVendorItemMappings_args() {
25701
    }
25702
 
25703
    /**
25704
     * Performs a deep copy on <i>other</i>.
25705
     */
25706
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
25707
    }
25708
 
25709
    public getAllVendorItemMappings_args deepCopy() {
25710
      return new getAllVendorItemMappings_args(this);
25711
    }
25712
 
25713
    @Override
25714
    public void clear() {
25715
    }
25716
 
25717
    public void setFieldValue(_Fields field, Object value) {
25718
      switch (field) {
25719
      }
25720
    }
25721
 
25722
    public Object getFieldValue(_Fields field) {
25723
      switch (field) {
25724
      }
25725
      throw new IllegalStateException();
25726
    }
25727
 
25728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25729
    public boolean isSet(_Fields field) {
25730
      if (field == null) {
25731
        throw new IllegalArgumentException();
25732
      }
25733
 
25734
      switch (field) {
25735
      }
25736
      throw new IllegalStateException();
25737
    }
25738
 
25739
    @Override
25740
    public boolean equals(Object that) {
25741
      if (that == null)
25742
        return false;
25743
      if (that instanceof getAllVendorItemMappings_args)
25744
        return this.equals((getAllVendorItemMappings_args)that);
25745
      return false;
25746
    }
25747
 
25748
    public boolean equals(getAllVendorItemMappings_args that) {
25749
      if (that == null)
25750
        return false;
25751
 
25752
      return true;
25753
    }
25754
 
25755
    @Override
25756
    public int hashCode() {
25757
      return 0;
25758
    }
25759
 
25760
    public int compareTo(getAllVendorItemMappings_args other) {
25761
      if (!getClass().equals(other.getClass())) {
25762
        return getClass().getName().compareTo(other.getClass().getName());
25763
      }
25764
 
25765
      int lastComparison = 0;
25766
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
25767
 
25768
      return 0;
25769
    }
25770
 
25771
    public _Fields fieldForId(int fieldId) {
25772
      return _Fields.findByThriftId(fieldId);
25773
    }
25774
 
25775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25776
      org.apache.thrift.protocol.TField field;
25777
      iprot.readStructBegin();
25778
      while (true)
25779
      {
25780
        field = iprot.readFieldBegin();
25781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25782
          break;
25783
        }
25784
        switch (field.id) {
25785
          default:
25786
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25787
        }
25788
        iprot.readFieldEnd();
25789
      }
25790
      iprot.readStructEnd();
25791
      validate();
25792
    }
25793
 
25794
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25795
      validate();
25796
 
25797
      oprot.writeStructBegin(STRUCT_DESC);
25798
      oprot.writeFieldStop();
25799
      oprot.writeStructEnd();
25800
    }
25801
 
25802
    @Override
25803
    public String toString() {
25804
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
25805
      boolean first = true;
25806
 
25807
      sb.append(")");
25808
      return sb.toString();
25809
    }
25810
 
25811
    public void validate() throws org.apache.thrift.TException {
25812
      // check for required fields
25813
    }
25814
 
25815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25816
      try {
25817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25818
      } catch (org.apache.thrift.TException te) {
25819
        throw new java.io.IOException(te);
25820
      }
25821
    }
25822
 
25823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25824
      try {
25825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25826
      } catch (org.apache.thrift.TException te) {
25827
        throw new java.io.IOException(te);
25828
      }
25829
    }
25830
 
25831
  }
25832
 
25833
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
25834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
25835
 
25836
    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);
25837
 
25838
    private List<VendorItemMapping> success; // required
25839
 
25840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25842
      SUCCESS((short)0, "success");
25843
 
25844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25845
 
25846
      static {
25847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25848
          byName.put(field.getFieldName(), field);
25849
        }
25850
      }
25851
 
25852
      /**
25853
       * Find the _Fields constant that matches fieldId, or null if its not found.
25854
       */
25855
      public static _Fields findByThriftId(int fieldId) {
25856
        switch(fieldId) {
25857
          case 0: // SUCCESS
25858
            return SUCCESS;
25859
          default:
25860
            return null;
25861
        }
25862
      }
25863
 
25864
      /**
25865
       * Find the _Fields constant that matches fieldId, throwing an exception
25866
       * if it is not found.
25867
       */
25868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25869
        _Fields fields = findByThriftId(fieldId);
25870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25871
        return fields;
25872
      }
25873
 
25874
      /**
25875
       * Find the _Fields constant that matches name, or null if its not found.
25876
       */
25877
      public static _Fields findByName(String name) {
25878
        return byName.get(name);
25879
      }
25880
 
25881
      private final short _thriftId;
25882
      private final String _fieldName;
25883
 
25884
      _Fields(short thriftId, String fieldName) {
25885
        _thriftId = thriftId;
25886
        _fieldName = fieldName;
25887
      }
25888
 
25889
      public short getThriftFieldId() {
25890
        return _thriftId;
25891
      }
25892
 
25893
      public String getFieldName() {
25894
        return _fieldName;
25895
      }
25896
    }
25897
 
25898
    // isset id assignments
25899
 
25900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25901
    static {
25902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25903
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25904
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25905
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
25906
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25907
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
25908
    }
25909
 
25910
    public getAllVendorItemMappings_result() {
25911
    }
25912
 
25913
    public getAllVendorItemMappings_result(
25914
      List<VendorItemMapping> success)
25915
    {
25916
      this();
25917
      this.success = success;
25918
    }
25919
 
25920
    /**
25921
     * Performs a deep copy on <i>other</i>.
25922
     */
25923
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
25924
      if (other.isSetSuccess()) {
25925
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
25926
        for (VendorItemMapping other_element : other.success) {
25927
          __this__success.add(new VendorItemMapping(other_element));
25928
        }
25929
        this.success = __this__success;
25930
      }
25931
    }
25932
 
25933
    public getAllVendorItemMappings_result deepCopy() {
25934
      return new getAllVendorItemMappings_result(this);
25935
    }
25936
 
25937
    @Override
25938
    public void clear() {
25939
      this.success = null;
25940
    }
25941
 
25942
    public int getSuccessSize() {
25943
      return (this.success == null) ? 0 : this.success.size();
25944
    }
25945
 
25946
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
25947
      return (this.success == null) ? null : this.success.iterator();
25948
    }
25949
 
25950
    public void addToSuccess(VendorItemMapping elem) {
25951
      if (this.success == null) {
25952
        this.success = new ArrayList<VendorItemMapping>();
25953
      }
25954
      this.success.add(elem);
25955
    }
25956
 
25957
    public List<VendorItemMapping> getSuccess() {
25958
      return this.success;
25959
    }
25960
 
25961
    public void setSuccess(List<VendorItemMapping> success) {
25962
      this.success = success;
25963
    }
25964
 
25965
    public void unsetSuccess() {
25966
      this.success = null;
25967
    }
25968
 
25969
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25970
    public boolean isSetSuccess() {
25971
      return this.success != null;
25972
    }
25973
 
25974
    public void setSuccessIsSet(boolean value) {
25975
      if (!value) {
25976
        this.success = null;
25977
      }
25978
    }
25979
 
25980
    public void setFieldValue(_Fields field, Object value) {
25981
      switch (field) {
25982
      case SUCCESS:
25983
        if (value == null) {
25984
          unsetSuccess();
25985
        } else {
25986
          setSuccess((List<VendorItemMapping>)value);
25987
        }
25988
        break;
25989
 
25990
      }
25991
    }
25992
 
25993
    public Object getFieldValue(_Fields field) {
25994
      switch (field) {
25995
      case SUCCESS:
25996
        return getSuccess();
25997
 
25998
      }
25999
      throw new IllegalStateException();
26000
    }
26001
 
26002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26003
    public boolean isSet(_Fields field) {
26004
      if (field == null) {
26005
        throw new IllegalArgumentException();
26006
      }
26007
 
26008
      switch (field) {
26009
      case SUCCESS:
26010
        return isSetSuccess();
26011
      }
26012
      throw new IllegalStateException();
26013
    }
26014
 
26015
    @Override
26016
    public boolean equals(Object that) {
26017
      if (that == null)
26018
        return false;
26019
      if (that instanceof getAllVendorItemMappings_result)
26020
        return this.equals((getAllVendorItemMappings_result)that);
26021
      return false;
26022
    }
26023
 
26024
    public boolean equals(getAllVendorItemMappings_result that) {
26025
      if (that == null)
26026
        return false;
26027
 
26028
      boolean this_present_success = true && this.isSetSuccess();
26029
      boolean that_present_success = true && that.isSetSuccess();
26030
      if (this_present_success || that_present_success) {
26031
        if (!(this_present_success && that_present_success))
26032
          return false;
26033
        if (!this.success.equals(that.success))
26034
          return false;
26035
      }
26036
 
26037
      return true;
26038
    }
26039
 
26040
    @Override
26041
    public int hashCode() {
26042
      return 0;
26043
    }
26044
 
26045
    public int compareTo(getAllVendorItemMappings_result other) {
26046
      if (!getClass().equals(other.getClass())) {
26047
        return getClass().getName().compareTo(other.getClass().getName());
26048
      }
26049
 
26050
      int lastComparison = 0;
26051
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
26052
 
26053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26054
      if (lastComparison != 0) {
26055
        return lastComparison;
26056
      }
26057
      if (isSetSuccess()) {
26058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26059
        if (lastComparison != 0) {
26060
          return lastComparison;
26061
        }
26062
      }
26063
      return 0;
26064
    }
26065
 
26066
    public _Fields fieldForId(int fieldId) {
26067
      return _Fields.findByThriftId(fieldId);
26068
    }
26069
 
26070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26071
      org.apache.thrift.protocol.TField field;
26072
      iprot.readStructBegin();
26073
      while (true)
26074
      {
26075
        field = iprot.readFieldBegin();
26076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26077
          break;
26078
        }
26079
        switch (field.id) {
26080
          case 0: // SUCCESS
26081
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26082
              {
26083
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
26084
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
26085
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
26086
                {
26087
                  VendorItemMapping _elem72; // required
26088
                  _elem72 = new VendorItemMapping();
26089
                  _elem72.read(iprot);
26090
                  this.success.add(_elem72);
26091
                }
26092
                iprot.readListEnd();
26093
              }
26094
            } else { 
26095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26096
            }
26097
            break;
26098
          default:
26099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26100
        }
26101
        iprot.readFieldEnd();
26102
      }
26103
      iprot.readStructEnd();
26104
      validate();
26105
    }
26106
 
26107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26108
      oprot.writeStructBegin(STRUCT_DESC);
26109
 
26110
      if (this.isSetSuccess()) {
26111
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26112
        {
26113
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26114
          for (VendorItemMapping _iter73 : this.success)
26115
          {
26116
            _iter73.write(oprot);
26117
          }
26118
          oprot.writeListEnd();
26119
        }
26120
        oprot.writeFieldEnd();
26121
      }
26122
      oprot.writeFieldStop();
26123
      oprot.writeStructEnd();
26124
    }
26125
 
26126
    @Override
26127
    public String toString() {
26128
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
26129
      boolean first = true;
26130
 
26131
      sb.append("success:");
26132
      if (this.success == null) {
26133
        sb.append("null");
26134
      } else {
26135
        sb.append(this.success);
26136
      }
26137
      first = false;
26138
      sb.append(")");
26139
      return sb.toString();
26140
    }
26141
 
26142
    public void validate() throws org.apache.thrift.TException {
26143
      // check for required fields
26144
    }
26145
 
26146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26147
      try {
26148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26149
      } catch (org.apache.thrift.TException te) {
26150
        throw new java.io.IOException(te);
26151
      }
26152
    }
26153
 
26154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26155
      try {
26156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26157
      } catch (org.apache.thrift.TException te) {
26158
        throw new java.io.IOException(te);
26159
      }
26160
    }
26161
 
26162
  }
26163
 
26164
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
26165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
26166
 
26167
    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);
26168
 
26169
    private long warehouseId; // required
26170
 
26171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26173
      WAREHOUSE_ID((short)1, "warehouseId");
26174
 
26175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26176
 
26177
      static {
26178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26179
          byName.put(field.getFieldName(), field);
26180
        }
26181
      }
26182
 
26183
      /**
26184
       * Find the _Fields constant that matches fieldId, or null if its not found.
26185
       */
26186
      public static _Fields findByThriftId(int fieldId) {
26187
        switch(fieldId) {
26188
          case 1: // WAREHOUSE_ID
26189
            return WAREHOUSE_ID;
26190
          default:
26191
            return null;
26192
        }
26193
      }
26194
 
26195
      /**
26196
       * Find the _Fields constant that matches fieldId, throwing an exception
26197
       * if it is not found.
26198
       */
26199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26200
        _Fields fields = findByThriftId(fieldId);
26201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26202
        return fields;
26203
      }
26204
 
26205
      /**
26206
       * Find the _Fields constant that matches name, or null if its not found.
26207
       */
26208
      public static _Fields findByName(String name) {
26209
        return byName.get(name);
26210
      }
26211
 
26212
      private final short _thriftId;
26213
      private final String _fieldName;
26214
 
26215
      _Fields(short thriftId, String fieldName) {
26216
        _thriftId = thriftId;
26217
        _fieldName = fieldName;
26218
      }
26219
 
26220
      public short getThriftFieldId() {
26221
        return _thriftId;
26222
      }
26223
 
26224
      public String getFieldName() {
26225
        return _fieldName;
26226
      }
26227
    }
26228
 
26229
    // isset id assignments
26230
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26231
    private BitSet __isset_bit_vector = new BitSet(1);
26232
 
26233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26234
    static {
26235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26236
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
26240
    }
26241
 
26242
    public getInventorySnapshot_args() {
26243
    }
26244
 
26245
    public getInventorySnapshot_args(
26246
      long warehouseId)
26247
    {
26248
      this();
26249
      this.warehouseId = warehouseId;
26250
      setWarehouseIdIsSet(true);
26251
    }
26252
 
26253
    /**
26254
     * Performs a deep copy on <i>other</i>.
26255
     */
26256
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
26257
      __isset_bit_vector.clear();
26258
      __isset_bit_vector.or(other.__isset_bit_vector);
26259
      this.warehouseId = other.warehouseId;
26260
    }
26261
 
26262
    public getInventorySnapshot_args deepCopy() {
26263
      return new getInventorySnapshot_args(this);
26264
    }
26265
 
26266
    @Override
26267
    public void clear() {
26268
      setWarehouseIdIsSet(false);
26269
      this.warehouseId = 0;
26270
    }
26271
 
26272
    public long getWarehouseId() {
26273
      return this.warehouseId;
26274
    }
26275
 
26276
    public void setWarehouseId(long warehouseId) {
26277
      this.warehouseId = warehouseId;
26278
      setWarehouseIdIsSet(true);
26279
    }
26280
 
26281
    public void unsetWarehouseId() {
26282
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26283
    }
26284
 
26285
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26286
    public boolean isSetWarehouseId() {
26287
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26288
    }
26289
 
26290
    public void setWarehouseIdIsSet(boolean value) {
26291
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26292
    }
26293
 
26294
    public void setFieldValue(_Fields field, Object value) {
26295
      switch (field) {
26296
      case WAREHOUSE_ID:
26297
        if (value == null) {
26298
          unsetWarehouseId();
26299
        } else {
26300
          setWarehouseId((Long)value);
26301
        }
26302
        break;
26303
 
26304
      }
26305
    }
26306
 
26307
    public Object getFieldValue(_Fields field) {
26308
      switch (field) {
26309
      case WAREHOUSE_ID:
26310
        return Long.valueOf(getWarehouseId());
26311
 
26312
      }
26313
      throw new IllegalStateException();
26314
    }
26315
 
26316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26317
    public boolean isSet(_Fields field) {
26318
      if (field == null) {
26319
        throw new IllegalArgumentException();
26320
      }
26321
 
26322
      switch (field) {
26323
      case WAREHOUSE_ID:
26324
        return isSetWarehouseId();
26325
      }
26326
      throw new IllegalStateException();
26327
    }
26328
 
26329
    @Override
26330
    public boolean equals(Object that) {
26331
      if (that == null)
26332
        return false;
26333
      if (that instanceof getInventorySnapshot_args)
26334
        return this.equals((getInventorySnapshot_args)that);
26335
      return false;
26336
    }
26337
 
26338
    public boolean equals(getInventorySnapshot_args that) {
26339
      if (that == null)
26340
        return false;
26341
 
26342
      boolean this_present_warehouseId = true;
26343
      boolean that_present_warehouseId = true;
26344
      if (this_present_warehouseId || that_present_warehouseId) {
26345
        if (!(this_present_warehouseId && that_present_warehouseId))
26346
          return false;
26347
        if (this.warehouseId != that.warehouseId)
26348
          return false;
26349
      }
26350
 
26351
      return true;
26352
    }
26353
 
26354
    @Override
26355
    public int hashCode() {
26356
      return 0;
26357
    }
26358
 
26359
    public int compareTo(getInventorySnapshot_args other) {
26360
      if (!getClass().equals(other.getClass())) {
26361
        return getClass().getName().compareTo(other.getClass().getName());
26362
      }
26363
 
26364
      int lastComparison = 0;
26365
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
26366
 
26367
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26368
      if (lastComparison != 0) {
26369
        return lastComparison;
26370
      }
26371
      if (isSetWarehouseId()) {
26372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26373
        if (lastComparison != 0) {
26374
          return lastComparison;
26375
        }
26376
      }
26377
      return 0;
26378
    }
26379
 
26380
    public _Fields fieldForId(int fieldId) {
26381
      return _Fields.findByThriftId(fieldId);
26382
    }
26383
 
26384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26385
      org.apache.thrift.protocol.TField field;
26386
      iprot.readStructBegin();
26387
      while (true)
26388
      {
26389
        field = iprot.readFieldBegin();
26390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26391
          break;
26392
        }
26393
        switch (field.id) {
26394
          case 1: // WAREHOUSE_ID
26395
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26396
              this.warehouseId = iprot.readI64();
26397
              setWarehouseIdIsSet(true);
26398
            } else { 
26399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26400
            }
26401
            break;
26402
          default:
26403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26404
        }
26405
        iprot.readFieldEnd();
26406
      }
26407
      iprot.readStructEnd();
26408
      validate();
26409
    }
26410
 
26411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26412
      validate();
26413
 
26414
      oprot.writeStructBegin(STRUCT_DESC);
26415
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26416
      oprot.writeI64(this.warehouseId);
26417
      oprot.writeFieldEnd();
26418
      oprot.writeFieldStop();
26419
      oprot.writeStructEnd();
26420
    }
26421
 
26422
    @Override
26423
    public String toString() {
26424
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
26425
      boolean first = true;
26426
 
26427
      sb.append("warehouseId:");
26428
      sb.append(this.warehouseId);
26429
      first = false;
26430
      sb.append(")");
26431
      return sb.toString();
26432
    }
26433
 
26434
    public void validate() throws org.apache.thrift.TException {
26435
      // check for required fields
26436
    }
26437
 
26438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26439
      try {
26440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26441
      } catch (org.apache.thrift.TException te) {
26442
        throw new java.io.IOException(te);
26443
      }
26444
    }
26445
 
26446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26447
      try {
26448
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26449
        __isset_bit_vector = new BitSet(1);
26450
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26451
      } catch (org.apache.thrift.TException te) {
26452
        throw new java.io.IOException(te);
26453
      }
26454
    }
26455
 
26456
  }
26457
 
26458
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
26459
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
26460
 
26461
    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);
26462
 
26463
    private Map<Long,ItemInventory> success; // required
26464
 
26465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26466
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26467
      SUCCESS((short)0, "success");
26468
 
26469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26470
 
26471
      static {
26472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26473
          byName.put(field.getFieldName(), field);
26474
        }
26475
      }
26476
 
26477
      /**
26478
       * Find the _Fields constant that matches fieldId, or null if its not found.
26479
       */
26480
      public static _Fields findByThriftId(int fieldId) {
26481
        switch(fieldId) {
26482
          case 0: // SUCCESS
26483
            return SUCCESS;
26484
          default:
26485
            return null;
26486
        }
26487
      }
26488
 
26489
      /**
26490
       * Find the _Fields constant that matches fieldId, throwing an exception
26491
       * if it is not found.
26492
       */
26493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26494
        _Fields fields = findByThriftId(fieldId);
26495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26496
        return fields;
26497
      }
26498
 
26499
      /**
26500
       * Find the _Fields constant that matches name, or null if its not found.
26501
       */
26502
      public static _Fields findByName(String name) {
26503
        return byName.get(name);
26504
      }
26505
 
26506
      private final short _thriftId;
26507
      private final String _fieldName;
26508
 
26509
      _Fields(short thriftId, String fieldName) {
26510
        _thriftId = thriftId;
26511
        _fieldName = fieldName;
26512
      }
26513
 
26514
      public short getThriftFieldId() {
26515
        return _thriftId;
26516
      }
26517
 
26518
      public String getFieldName() {
26519
        return _fieldName;
26520
      }
26521
    }
26522
 
26523
    // isset id assignments
26524
 
26525
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26526
    static {
26527
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26528
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26529
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
26530
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
26531
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
26532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
26534
    }
26535
 
26536
    public getInventorySnapshot_result() {
26537
    }
26538
 
26539
    public getInventorySnapshot_result(
26540
      Map<Long,ItemInventory> success)
26541
    {
26542
      this();
26543
      this.success = success;
26544
    }
26545
 
26546
    /**
26547
     * Performs a deep copy on <i>other</i>.
26548
     */
26549
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
26550
      if (other.isSetSuccess()) {
26551
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
26552
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
26553
 
26554
          Long other_element_key = other_element.getKey();
26555
          ItemInventory other_element_value = other_element.getValue();
26556
 
26557
          Long __this__success_copy_key = other_element_key;
26558
 
26559
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
26560
 
26561
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
26562
        }
26563
        this.success = __this__success;
26564
      }
26565
    }
26566
 
26567
    public getInventorySnapshot_result deepCopy() {
26568
      return new getInventorySnapshot_result(this);
26569
    }
26570
 
26571
    @Override
26572
    public void clear() {
26573
      this.success = null;
26574
    }
26575
 
26576
    public int getSuccessSize() {
26577
      return (this.success == null) ? 0 : this.success.size();
26578
    }
26579
 
26580
    public void putToSuccess(long key, ItemInventory val) {
26581
      if (this.success == null) {
26582
        this.success = new HashMap<Long,ItemInventory>();
26583
      }
26584
      this.success.put(key, val);
26585
    }
26586
 
26587
    public Map<Long,ItemInventory> getSuccess() {
26588
      return this.success;
26589
    }
26590
 
26591
    public void setSuccess(Map<Long,ItemInventory> success) {
26592
      this.success = success;
26593
    }
26594
 
26595
    public void unsetSuccess() {
26596
      this.success = null;
26597
    }
26598
 
26599
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26600
    public boolean isSetSuccess() {
26601
      return this.success != null;
26602
    }
26603
 
26604
    public void setSuccessIsSet(boolean value) {
26605
      if (!value) {
26606
        this.success = null;
26607
      }
26608
    }
26609
 
26610
    public void setFieldValue(_Fields field, Object value) {
26611
      switch (field) {
26612
      case SUCCESS:
26613
        if (value == null) {
26614
          unsetSuccess();
26615
        } else {
26616
          setSuccess((Map<Long,ItemInventory>)value);
26617
        }
26618
        break;
26619
 
26620
      }
26621
    }
26622
 
26623
    public Object getFieldValue(_Fields field) {
26624
      switch (field) {
26625
      case SUCCESS:
26626
        return getSuccess();
26627
 
26628
      }
26629
      throw new IllegalStateException();
26630
    }
26631
 
26632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26633
    public boolean isSet(_Fields field) {
26634
      if (field == null) {
26635
        throw new IllegalArgumentException();
26636
      }
26637
 
26638
      switch (field) {
26639
      case SUCCESS:
26640
        return isSetSuccess();
26641
      }
26642
      throw new IllegalStateException();
26643
    }
26644
 
26645
    @Override
26646
    public boolean equals(Object that) {
26647
      if (that == null)
26648
        return false;
26649
      if (that instanceof getInventorySnapshot_result)
26650
        return this.equals((getInventorySnapshot_result)that);
26651
      return false;
26652
    }
26653
 
26654
    public boolean equals(getInventorySnapshot_result that) {
26655
      if (that == null)
26656
        return false;
26657
 
26658
      boolean this_present_success = true && this.isSetSuccess();
26659
      boolean that_present_success = true && that.isSetSuccess();
26660
      if (this_present_success || that_present_success) {
26661
        if (!(this_present_success && that_present_success))
26662
          return false;
26663
        if (!this.success.equals(that.success))
26664
          return false;
26665
      }
26666
 
26667
      return true;
26668
    }
26669
 
26670
    @Override
26671
    public int hashCode() {
26672
      return 0;
26673
    }
26674
 
26675
    public int compareTo(getInventorySnapshot_result other) {
26676
      if (!getClass().equals(other.getClass())) {
26677
        return getClass().getName().compareTo(other.getClass().getName());
26678
      }
26679
 
26680
      int lastComparison = 0;
26681
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
26682
 
26683
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26684
      if (lastComparison != 0) {
26685
        return lastComparison;
26686
      }
26687
      if (isSetSuccess()) {
26688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26689
        if (lastComparison != 0) {
26690
          return lastComparison;
26691
        }
26692
      }
26693
      return 0;
26694
    }
26695
 
26696
    public _Fields fieldForId(int fieldId) {
26697
      return _Fields.findByThriftId(fieldId);
26698
    }
26699
 
26700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26701
      org.apache.thrift.protocol.TField field;
26702
      iprot.readStructBegin();
26703
      while (true)
26704
      {
26705
        field = iprot.readFieldBegin();
26706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26707
          break;
26708
        }
26709
        switch (field.id) {
26710
          case 0: // SUCCESS
26711
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
26712
              {
26713
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
26714
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
26715
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
26716
                {
26717
                  long _key76; // required
26718
                  ItemInventory _val77; // required
26719
                  _key76 = iprot.readI64();
26720
                  _val77 = new ItemInventory();
26721
                  _val77.read(iprot);
26722
                  this.success.put(_key76, _val77);
26723
                }
26724
                iprot.readMapEnd();
26725
              }
26726
            } else { 
26727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26728
            }
26729
            break;
26730
          default:
26731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26732
        }
26733
        iprot.readFieldEnd();
26734
      }
26735
      iprot.readStructEnd();
26736
      validate();
26737
    }
26738
 
26739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26740
      oprot.writeStructBegin(STRUCT_DESC);
26741
 
26742
      if (this.isSetSuccess()) {
26743
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26744
        {
26745
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26746
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
26747
          {
26748
            oprot.writeI64(_iter78.getKey());
26749
            _iter78.getValue().write(oprot);
26750
          }
26751
          oprot.writeMapEnd();
26752
        }
26753
        oprot.writeFieldEnd();
26754
      }
26755
      oprot.writeFieldStop();
26756
      oprot.writeStructEnd();
26757
    }
26758
 
26759
    @Override
26760
    public String toString() {
26761
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
26762
      boolean first = true;
26763
 
26764
      sb.append("success:");
26765
      if (this.success == null) {
26766
        sb.append("null");
26767
      } else {
26768
        sb.append(this.success);
26769
      }
26770
      first = false;
26771
      sb.append(")");
26772
      return sb.toString();
26773
    }
26774
 
26775
    public void validate() throws org.apache.thrift.TException {
26776
      // check for required fields
26777
    }
26778
 
26779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26780
      try {
26781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26782
      } catch (org.apache.thrift.TException te) {
26783
        throw new java.io.IOException(te);
26784
      }
26785
    }
26786
 
26787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26788
      try {
26789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26790
      } catch (org.apache.thrift.TException te) {
26791
        throw new java.io.IOException(te);
26792
      }
26793
    }
26794
 
26795
  }
26796
 
26797
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
26798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
26799
 
26800
 
26801
 
26802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26804
;
26805
 
26806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26807
 
26808
      static {
26809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26810
          byName.put(field.getFieldName(), field);
26811
        }
26812
      }
26813
 
26814
      /**
26815
       * Find the _Fields constant that matches fieldId, or null if its not found.
26816
       */
26817
      public static _Fields findByThriftId(int fieldId) {
26818
        switch(fieldId) {
26819
          default:
26820
            return null;
26821
        }
26822
      }
26823
 
26824
      /**
26825
       * Find the _Fields constant that matches fieldId, throwing an exception
26826
       * if it is not found.
26827
       */
26828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26829
        _Fields fields = findByThriftId(fieldId);
26830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26831
        return fields;
26832
      }
26833
 
26834
      /**
26835
       * Find the _Fields constant that matches name, or null if its not found.
26836
       */
26837
      public static _Fields findByName(String name) {
26838
        return byName.get(name);
26839
      }
26840
 
26841
      private final short _thriftId;
26842
      private final String _fieldName;
26843
 
26844
      _Fields(short thriftId, String fieldName) {
26845
        _thriftId = thriftId;
26846
        _fieldName = fieldName;
26847
      }
26848
 
26849
      public short getThriftFieldId() {
26850
        return _thriftId;
26851
      }
26852
 
26853
      public String getFieldName() {
26854
        return _fieldName;
26855
      }
26856
    }
26857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26858
    static {
26859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
26862
    }
26863
 
26864
    public clearItemAvailabilityCache_args() {
26865
    }
26866
 
26867
    /**
26868
     * Performs a deep copy on <i>other</i>.
26869
     */
26870
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
26871
    }
26872
 
26873
    public clearItemAvailabilityCache_args deepCopy() {
26874
      return new clearItemAvailabilityCache_args(this);
26875
    }
26876
 
26877
    @Override
26878
    public void clear() {
26879
    }
26880
 
26881
    public void setFieldValue(_Fields field, Object value) {
26882
      switch (field) {
26883
      }
26884
    }
26885
 
26886
    public Object getFieldValue(_Fields field) {
26887
      switch (field) {
26888
      }
26889
      throw new IllegalStateException();
26890
    }
26891
 
26892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26893
    public boolean isSet(_Fields field) {
26894
      if (field == null) {
26895
        throw new IllegalArgumentException();
26896
      }
26897
 
26898
      switch (field) {
26899
      }
26900
      throw new IllegalStateException();
26901
    }
26902
 
26903
    @Override
26904
    public boolean equals(Object that) {
26905
      if (that == null)
26906
        return false;
26907
      if (that instanceof clearItemAvailabilityCache_args)
26908
        return this.equals((clearItemAvailabilityCache_args)that);
26909
      return false;
26910
    }
26911
 
26912
    public boolean equals(clearItemAvailabilityCache_args that) {
26913
      if (that == null)
26914
        return false;
26915
 
26916
      return true;
26917
    }
26918
 
26919
    @Override
26920
    public int hashCode() {
26921
      return 0;
26922
    }
26923
 
26924
    public int compareTo(clearItemAvailabilityCache_args other) {
26925
      if (!getClass().equals(other.getClass())) {
26926
        return getClass().getName().compareTo(other.getClass().getName());
26927
      }
26928
 
26929
      int lastComparison = 0;
26930
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
26931
 
26932
      return 0;
26933
    }
26934
 
26935
    public _Fields fieldForId(int fieldId) {
26936
      return _Fields.findByThriftId(fieldId);
26937
    }
26938
 
26939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26940
      org.apache.thrift.protocol.TField field;
26941
      iprot.readStructBegin();
26942
      while (true)
26943
      {
26944
        field = iprot.readFieldBegin();
26945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26946
          break;
26947
        }
26948
        switch (field.id) {
26949
          default:
26950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26951
        }
26952
        iprot.readFieldEnd();
26953
      }
26954
      iprot.readStructEnd();
26955
      validate();
26956
    }
26957
 
26958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26959
      validate();
26960
 
26961
      oprot.writeStructBegin(STRUCT_DESC);
26962
      oprot.writeFieldStop();
26963
      oprot.writeStructEnd();
26964
    }
26965
 
26966
    @Override
26967
    public String toString() {
26968
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
26969
      boolean first = true;
26970
 
26971
      sb.append(")");
26972
      return sb.toString();
26973
    }
26974
 
26975
    public void validate() throws org.apache.thrift.TException {
26976
      // check for required fields
26977
    }
26978
 
26979
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26980
      try {
26981
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26982
      } catch (org.apache.thrift.TException te) {
26983
        throw new java.io.IOException(te);
26984
      }
26985
    }
26986
 
26987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26988
      try {
26989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26990
      } catch (org.apache.thrift.TException te) {
26991
        throw new java.io.IOException(te);
26992
      }
26993
    }
26994
 
26995
  }
26996
 
26997
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
26998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
26999
 
27000
 
27001
 
27002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27004
;
27005
 
27006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27007
 
27008
      static {
27009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27010
          byName.put(field.getFieldName(), field);
27011
        }
27012
      }
27013
 
27014
      /**
27015
       * Find the _Fields constant that matches fieldId, or null if its not found.
27016
       */
27017
      public static _Fields findByThriftId(int fieldId) {
27018
        switch(fieldId) {
27019
          default:
27020
            return null;
27021
        }
27022
      }
27023
 
27024
      /**
27025
       * Find the _Fields constant that matches fieldId, throwing an exception
27026
       * if it is not found.
27027
       */
27028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27029
        _Fields fields = findByThriftId(fieldId);
27030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27031
        return fields;
27032
      }
27033
 
27034
      /**
27035
       * Find the _Fields constant that matches name, or null if its not found.
27036
       */
27037
      public static _Fields findByName(String name) {
27038
        return byName.get(name);
27039
      }
27040
 
27041
      private final short _thriftId;
27042
      private final String _fieldName;
27043
 
27044
      _Fields(short thriftId, String fieldName) {
27045
        _thriftId = thriftId;
27046
        _fieldName = fieldName;
27047
      }
27048
 
27049
      public short getThriftFieldId() {
27050
        return _thriftId;
27051
      }
27052
 
27053
      public String getFieldName() {
27054
        return _fieldName;
27055
      }
27056
    }
27057
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27058
    static {
27059
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
27062
    }
27063
 
27064
    public clearItemAvailabilityCache_result() {
27065
    }
27066
 
27067
    /**
27068
     * Performs a deep copy on <i>other</i>.
27069
     */
27070
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
27071
    }
27072
 
27073
    public clearItemAvailabilityCache_result deepCopy() {
27074
      return new clearItemAvailabilityCache_result(this);
27075
    }
27076
 
27077
    @Override
27078
    public void clear() {
27079
    }
27080
 
27081
    public void setFieldValue(_Fields field, Object value) {
27082
      switch (field) {
27083
      }
27084
    }
27085
 
27086
    public Object getFieldValue(_Fields field) {
27087
      switch (field) {
27088
      }
27089
      throw new IllegalStateException();
27090
    }
27091
 
27092
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27093
    public boolean isSet(_Fields field) {
27094
      if (field == null) {
27095
        throw new IllegalArgumentException();
27096
      }
27097
 
27098
      switch (field) {
27099
      }
27100
      throw new IllegalStateException();
27101
    }
27102
 
27103
    @Override
27104
    public boolean equals(Object that) {
27105
      if (that == null)
27106
        return false;
27107
      if (that instanceof clearItemAvailabilityCache_result)
27108
        return this.equals((clearItemAvailabilityCache_result)that);
27109
      return false;
27110
    }
27111
 
27112
    public boolean equals(clearItemAvailabilityCache_result that) {
27113
      if (that == null)
27114
        return false;
27115
 
27116
      return true;
27117
    }
27118
 
27119
    @Override
27120
    public int hashCode() {
27121
      return 0;
27122
    }
27123
 
27124
    public int compareTo(clearItemAvailabilityCache_result other) {
27125
      if (!getClass().equals(other.getClass())) {
27126
        return getClass().getName().compareTo(other.getClass().getName());
27127
      }
27128
 
27129
      int lastComparison = 0;
27130
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
27131
 
27132
      return 0;
27133
    }
27134
 
27135
    public _Fields fieldForId(int fieldId) {
27136
      return _Fields.findByThriftId(fieldId);
27137
    }
27138
 
27139
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27140
      org.apache.thrift.protocol.TField field;
27141
      iprot.readStructBegin();
27142
      while (true)
27143
      {
27144
        field = iprot.readFieldBegin();
27145
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27146
          break;
27147
        }
27148
        switch (field.id) {
27149
          default:
27150
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27151
        }
27152
        iprot.readFieldEnd();
27153
      }
27154
      iprot.readStructEnd();
27155
      validate();
27156
    }
27157
 
27158
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27159
      oprot.writeStructBegin(STRUCT_DESC);
27160
 
27161
      oprot.writeFieldStop();
27162
      oprot.writeStructEnd();
27163
    }
27164
 
27165
    @Override
27166
    public String toString() {
27167
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
27168
      boolean first = true;
27169
 
27170
      sb.append(")");
27171
      return sb.toString();
27172
    }
27173
 
27174
    public void validate() throws org.apache.thrift.TException {
27175
      // check for required fields
27176
    }
27177
 
27178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27179
      try {
27180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27181
      } catch (org.apache.thrift.TException te) {
27182
        throw new java.io.IOException(te);
27183
      }
27184
    }
27185
 
27186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27187
      try {
27188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27189
      } catch (org.apache.thrift.TException te) {
27190
        throw new java.io.IOException(te);
27191
      }
27192
    }
27193
 
27194
  }
27195
 
27196
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
27197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
27198
 
27199
    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);
27200
    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);
27201
 
27202
    private long warehouseId; // required
27203
    private String vendorString; // required
27204
 
27205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27207
      WAREHOUSE_ID((short)1, "warehouseId"),
27208
      VENDOR_STRING((short)2, "vendorString");
27209
 
27210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27211
 
27212
      static {
27213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27214
          byName.put(field.getFieldName(), field);
27215
        }
27216
      }
27217
 
27218
      /**
27219
       * Find the _Fields constant that matches fieldId, or null if its not found.
27220
       */
27221
      public static _Fields findByThriftId(int fieldId) {
27222
        switch(fieldId) {
27223
          case 1: // WAREHOUSE_ID
27224
            return WAREHOUSE_ID;
27225
          case 2: // VENDOR_STRING
27226
            return VENDOR_STRING;
27227
          default:
27228
            return null;
27229
        }
27230
      }
27231
 
27232
      /**
27233
       * Find the _Fields constant that matches fieldId, throwing an exception
27234
       * if it is not found.
27235
       */
27236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27237
        _Fields fields = findByThriftId(fieldId);
27238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27239
        return fields;
27240
      }
27241
 
27242
      /**
27243
       * Find the _Fields constant that matches name, or null if its not found.
27244
       */
27245
      public static _Fields findByName(String name) {
27246
        return byName.get(name);
27247
      }
27248
 
27249
      private final short _thriftId;
27250
      private final String _fieldName;
27251
 
27252
      _Fields(short thriftId, String fieldName) {
27253
        _thriftId = thriftId;
27254
        _fieldName = fieldName;
27255
      }
27256
 
27257
      public short getThriftFieldId() {
27258
        return _thriftId;
27259
      }
27260
 
27261
      public String getFieldName() {
27262
        return _fieldName;
27263
      }
27264
    }
27265
 
27266
    // isset id assignments
27267
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27268
    private BitSet __isset_bit_vector = new BitSet(1);
27269
 
27270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27271
    static {
27272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27273
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27275
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
27279
    }
27280
 
27281
    public updateVendorString_args() {
27282
    }
27283
 
27284
    public updateVendorString_args(
27285
      long warehouseId,
27286
      String vendorString)
27287
    {
27288
      this();
27289
      this.warehouseId = warehouseId;
27290
      setWarehouseIdIsSet(true);
27291
      this.vendorString = vendorString;
27292
    }
27293
 
27294
    /**
27295
     * Performs a deep copy on <i>other</i>.
27296
     */
27297
    public updateVendorString_args(updateVendorString_args other) {
27298
      __isset_bit_vector.clear();
27299
      __isset_bit_vector.or(other.__isset_bit_vector);
27300
      this.warehouseId = other.warehouseId;
27301
      if (other.isSetVendorString()) {
27302
        this.vendorString = other.vendorString;
27303
      }
27304
    }
27305
 
27306
    public updateVendorString_args deepCopy() {
27307
      return new updateVendorString_args(this);
27308
    }
27309
 
27310
    @Override
27311
    public void clear() {
27312
      setWarehouseIdIsSet(false);
27313
      this.warehouseId = 0;
27314
      this.vendorString = null;
27315
    }
27316
 
27317
    public long getWarehouseId() {
27318
      return this.warehouseId;
27319
    }
27320
 
27321
    public void setWarehouseId(long warehouseId) {
27322
      this.warehouseId = warehouseId;
27323
      setWarehouseIdIsSet(true);
27324
    }
27325
 
27326
    public void unsetWarehouseId() {
27327
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27328
    }
27329
 
27330
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27331
    public boolean isSetWarehouseId() {
27332
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27333
    }
27334
 
27335
    public void setWarehouseIdIsSet(boolean value) {
27336
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27337
    }
27338
 
27339
    public String getVendorString() {
27340
      return this.vendorString;
27341
    }
27342
 
27343
    public void setVendorString(String vendorString) {
27344
      this.vendorString = vendorString;
27345
    }
27346
 
27347
    public void unsetVendorString() {
27348
      this.vendorString = null;
27349
    }
27350
 
27351
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
27352
    public boolean isSetVendorString() {
27353
      return this.vendorString != null;
27354
    }
27355
 
27356
    public void setVendorStringIsSet(boolean value) {
27357
      if (!value) {
27358
        this.vendorString = null;
27359
      }
27360
    }
27361
 
27362
    public void setFieldValue(_Fields field, Object value) {
27363
      switch (field) {
27364
      case WAREHOUSE_ID:
27365
        if (value == null) {
27366
          unsetWarehouseId();
27367
        } else {
27368
          setWarehouseId((Long)value);
27369
        }
27370
        break;
27371
 
27372
      case VENDOR_STRING:
27373
        if (value == null) {
27374
          unsetVendorString();
27375
        } else {
27376
          setVendorString((String)value);
27377
        }
27378
        break;
27379
 
27380
      }
27381
    }
27382
 
27383
    public Object getFieldValue(_Fields field) {
27384
      switch (field) {
27385
      case WAREHOUSE_ID:
27386
        return Long.valueOf(getWarehouseId());
27387
 
27388
      case VENDOR_STRING:
27389
        return getVendorString();
27390
 
27391
      }
27392
      throw new IllegalStateException();
27393
    }
27394
 
27395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27396
    public boolean isSet(_Fields field) {
27397
      if (field == null) {
27398
        throw new IllegalArgumentException();
27399
      }
27400
 
27401
      switch (field) {
27402
      case WAREHOUSE_ID:
27403
        return isSetWarehouseId();
27404
      case VENDOR_STRING:
27405
        return isSetVendorString();
27406
      }
27407
      throw new IllegalStateException();
27408
    }
27409
 
27410
    @Override
27411
    public boolean equals(Object that) {
27412
      if (that == null)
27413
        return false;
27414
      if (that instanceof updateVendorString_args)
27415
        return this.equals((updateVendorString_args)that);
27416
      return false;
27417
    }
27418
 
27419
    public boolean equals(updateVendorString_args that) {
27420
      if (that == null)
27421
        return false;
27422
 
27423
      boolean this_present_warehouseId = true;
27424
      boolean that_present_warehouseId = true;
27425
      if (this_present_warehouseId || that_present_warehouseId) {
27426
        if (!(this_present_warehouseId && that_present_warehouseId))
27427
          return false;
27428
        if (this.warehouseId != that.warehouseId)
27429
          return false;
27430
      }
27431
 
27432
      boolean this_present_vendorString = true && this.isSetVendorString();
27433
      boolean that_present_vendorString = true && that.isSetVendorString();
27434
      if (this_present_vendorString || that_present_vendorString) {
27435
        if (!(this_present_vendorString && that_present_vendorString))
27436
          return false;
27437
        if (!this.vendorString.equals(that.vendorString))
27438
          return false;
27439
      }
27440
 
27441
      return true;
27442
    }
27443
 
27444
    @Override
27445
    public int hashCode() {
27446
      return 0;
27447
    }
27448
 
27449
    public int compareTo(updateVendorString_args other) {
27450
      if (!getClass().equals(other.getClass())) {
27451
        return getClass().getName().compareTo(other.getClass().getName());
27452
      }
27453
 
27454
      int lastComparison = 0;
27455
      updateVendorString_args typedOther = (updateVendorString_args)other;
27456
 
27457
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27458
      if (lastComparison != 0) {
27459
        return lastComparison;
27460
      }
27461
      if (isSetWarehouseId()) {
27462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27463
        if (lastComparison != 0) {
27464
          return lastComparison;
27465
        }
27466
      }
27467
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
27468
      if (lastComparison != 0) {
27469
        return lastComparison;
27470
      }
27471
      if (isSetVendorString()) {
27472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
27473
        if (lastComparison != 0) {
27474
          return lastComparison;
27475
        }
27476
      }
27477
      return 0;
27478
    }
27479
 
27480
    public _Fields fieldForId(int fieldId) {
27481
      return _Fields.findByThriftId(fieldId);
27482
    }
27483
 
27484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27485
      org.apache.thrift.protocol.TField field;
27486
      iprot.readStructBegin();
27487
      while (true)
27488
      {
27489
        field = iprot.readFieldBegin();
27490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27491
          break;
27492
        }
27493
        switch (field.id) {
27494
          case 1: // WAREHOUSE_ID
27495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27496
              this.warehouseId = iprot.readI64();
27497
              setWarehouseIdIsSet(true);
27498
            } else { 
27499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27500
            }
27501
            break;
27502
          case 2: // VENDOR_STRING
27503
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27504
              this.vendorString = iprot.readString();
27505
            } else { 
27506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27507
            }
27508
            break;
27509
          default:
27510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27511
        }
27512
        iprot.readFieldEnd();
27513
      }
27514
      iprot.readStructEnd();
27515
      validate();
27516
    }
27517
 
27518
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27519
      validate();
27520
 
27521
      oprot.writeStructBegin(STRUCT_DESC);
27522
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27523
      oprot.writeI64(this.warehouseId);
27524
      oprot.writeFieldEnd();
27525
      if (this.vendorString != null) {
27526
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
27527
        oprot.writeString(this.vendorString);
27528
        oprot.writeFieldEnd();
27529
      }
27530
      oprot.writeFieldStop();
27531
      oprot.writeStructEnd();
27532
    }
27533
 
27534
    @Override
27535
    public String toString() {
27536
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
27537
      boolean first = true;
27538
 
27539
      sb.append("warehouseId:");
27540
      sb.append(this.warehouseId);
27541
      first = false;
27542
      if (!first) sb.append(", ");
27543
      sb.append("vendorString:");
27544
      if (this.vendorString == null) {
27545
        sb.append("null");
27546
      } else {
27547
        sb.append(this.vendorString);
27548
      }
27549
      first = false;
27550
      sb.append(")");
27551
      return sb.toString();
27552
    }
27553
 
27554
    public void validate() throws org.apache.thrift.TException {
27555
      // check for required fields
27556
    }
27557
 
27558
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27559
      try {
27560
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27561
      } catch (org.apache.thrift.TException te) {
27562
        throw new java.io.IOException(te);
27563
      }
27564
    }
27565
 
27566
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27567
      try {
5967 rajveer 27568
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27569
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 27570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27571
      } catch (org.apache.thrift.TException te) {
27572
        throw new java.io.IOException(te);
27573
      }
27574
    }
27575
 
27576
  }
27577
 
27578
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
27579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
27580
 
27581
 
27582
 
27583
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27584
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27585
;
27586
 
27587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27588
 
27589
      static {
27590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27591
          byName.put(field.getFieldName(), field);
27592
        }
27593
      }
27594
 
27595
      /**
27596
       * Find the _Fields constant that matches fieldId, or null if its not found.
27597
       */
27598
      public static _Fields findByThriftId(int fieldId) {
27599
        switch(fieldId) {
27600
          default:
27601
            return null;
27602
        }
27603
      }
27604
 
27605
      /**
27606
       * Find the _Fields constant that matches fieldId, throwing an exception
27607
       * if it is not found.
27608
       */
27609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27610
        _Fields fields = findByThriftId(fieldId);
27611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27612
        return fields;
27613
      }
27614
 
27615
      /**
27616
       * Find the _Fields constant that matches name, or null if its not found.
27617
       */
27618
      public static _Fields findByName(String name) {
27619
        return byName.get(name);
27620
      }
27621
 
27622
      private final short _thriftId;
27623
      private final String _fieldName;
27624
 
27625
      _Fields(short thriftId, String fieldName) {
27626
        _thriftId = thriftId;
27627
        _fieldName = fieldName;
27628
      }
27629
 
27630
      public short getThriftFieldId() {
27631
        return _thriftId;
27632
      }
27633
 
27634
      public String getFieldName() {
27635
        return _fieldName;
27636
      }
27637
    }
27638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27639
    static {
27640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27641
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27642
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
27643
    }
27644
 
27645
    public updateVendorString_result() {
27646
    }
27647
 
27648
    /**
27649
     * Performs a deep copy on <i>other</i>.
27650
     */
27651
    public updateVendorString_result(updateVendorString_result other) {
27652
    }
27653
 
27654
    public updateVendorString_result deepCopy() {
27655
      return new updateVendorString_result(this);
27656
    }
27657
 
27658
    @Override
27659
    public void clear() {
27660
    }
27661
 
27662
    public void setFieldValue(_Fields field, Object value) {
27663
      switch (field) {
27664
      }
27665
    }
27666
 
27667
    public Object getFieldValue(_Fields field) {
27668
      switch (field) {
27669
      }
27670
      throw new IllegalStateException();
27671
    }
27672
 
27673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27674
    public boolean isSet(_Fields field) {
27675
      if (field == null) {
27676
        throw new IllegalArgumentException();
27677
      }
27678
 
27679
      switch (field) {
27680
      }
27681
      throw new IllegalStateException();
27682
    }
27683
 
27684
    @Override
27685
    public boolean equals(Object that) {
27686
      if (that == null)
27687
        return false;
27688
      if (that instanceof updateVendorString_result)
27689
        return this.equals((updateVendorString_result)that);
27690
      return false;
27691
    }
27692
 
27693
    public boolean equals(updateVendorString_result that) {
27694
      if (that == null)
27695
        return false;
27696
 
27697
      return true;
27698
    }
27699
 
27700
    @Override
27701
    public int hashCode() {
27702
      return 0;
27703
    }
27704
 
27705
    public int compareTo(updateVendorString_result other) {
27706
      if (!getClass().equals(other.getClass())) {
27707
        return getClass().getName().compareTo(other.getClass().getName());
27708
      }
27709
 
27710
      int lastComparison = 0;
27711
      updateVendorString_result typedOther = (updateVendorString_result)other;
27712
 
27713
      return 0;
27714
    }
27715
 
27716
    public _Fields fieldForId(int fieldId) {
27717
      return _Fields.findByThriftId(fieldId);
27718
    }
27719
 
27720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27721
      org.apache.thrift.protocol.TField field;
27722
      iprot.readStructBegin();
27723
      while (true)
27724
      {
27725
        field = iprot.readFieldBegin();
27726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27727
          break;
27728
        }
27729
        switch (field.id) {
27730
          default:
27731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27732
        }
27733
        iprot.readFieldEnd();
27734
      }
27735
      iprot.readStructEnd();
27736
      validate();
27737
    }
27738
 
27739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27740
      oprot.writeStructBegin(STRUCT_DESC);
27741
 
27742
      oprot.writeFieldStop();
27743
      oprot.writeStructEnd();
27744
    }
27745
 
27746
    @Override
27747
    public String toString() {
27748
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
27749
      boolean first = true;
27750
 
27751
      sb.append(")");
27752
      return sb.toString();
27753
    }
27754
 
27755
    public void validate() throws org.apache.thrift.TException {
27756
      // check for required fields
27757
    }
27758
 
27759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27760
      try {
27761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27762
      } catch (org.apache.thrift.TException te) {
27763
        throw new java.io.IOException(te);
27764
      }
27765
    }
27766
 
27767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27768
      try {
27769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27770
      } catch (org.apache.thrift.TException te) {
27771
        throw new java.io.IOException(te);
27772
      }
27773
    }
27774
 
27775
  }
27776
 
6096 amit.gupta 27777
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
27778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
27779
 
27780
    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);
27781
 
27782
    private long item_id; // required
27783
 
27784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27786
      ITEM_ID((short)1, "item_id");
27787
 
27788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27789
 
27790
      static {
27791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27792
          byName.put(field.getFieldName(), field);
27793
        }
27794
      }
27795
 
27796
      /**
27797
       * Find the _Fields constant that matches fieldId, or null if its not found.
27798
       */
27799
      public static _Fields findByThriftId(int fieldId) {
27800
        switch(fieldId) {
27801
          case 1: // ITEM_ID
27802
            return ITEM_ID;
27803
          default:
27804
            return null;
27805
        }
27806
      }
27807
 
27808
      /**
27809
       * Find the _Fields constant that matches fieldId, throwing an exception
27810
       * if it is not found.
27811
       */
27812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27813
        _Fields fields = findByThriftId(fieldId);
27814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27815
        return fields;
27816
      }
27817
 
27818
      /**
27819
       * Find the _Fields constant that matches name, or null if its not found.
27820
       */
27821
      public static _Fields findByName(String name) {
27822
        return byName.get(name);
27823
      }
27824
 
27825
      private final short _thriftId;
27826
      private final String _fieldName;
27827
 
27828
      _Fields(short thriftId, String fieldName) {
27829
        _thriftId = thriftId;
27830
        _fieldName = fieldName;
27831
      }
27832
 
27833
      public short getThriftFieldId() {
27834
        return _thriftId;
27835
      }
27836
 
27837
      public String getFieldName() {
27838
        return _fieldName;
27839
      }
27840
    }
27841
 
27842
    // isset id assignments
27843
    private static final int __ITEM_ID_ISSET_ID = 0;
27844
    private BitSet __isset_bit_vector = new BitSet(1);
27845
 
27846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27847
    static {
27848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27849
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
27853
    }
27854
 
27855
    public clearItemAvailabilityCacheForItem_args() {
27856
    }
27857
 
27858
    public clearItemAvailabilityCacheForItem_args(
27859
      long item_id)
27860
    {
27861
      this();
27862
      this.item_id = item_id;
27863
      setItem_idIsSet(true);
27864
    }
27865
 
27866
    /**
27867
     * Performs a deep copy on <i>other</i>.
27868
     */
27869
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
27870
      __isset_bit_vector.clear();
27871
      __isset_bit_vector.or(other.__isset_bit_vector);
27872
      this.item_id = other.item_id;
27873
    }
27874
 
27875
    public clearItemAvailabilityCacheForItem_args deepCopy() {
27876
      return new clearItemAvailabilityCacheForItem_args(this);
27877
    }
27878
 
27879
    @Override
27880
    public void clear() {
27881
      setItem_idIsSet(false);
27882
      this.item_id = 0;
27883
    }
27884
 
27885
    public long getItem_id() {
27886
      return this.item_id;
27887
    }
27888
 
27889
    public void setItem_id(long item_id) {
27890
      this.item_id = item_id;
27891
      setItem_idIsSet(true);
27892
    }
27893
 
27894
    public void unsetItem_id() {
27895
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
27896
    }
27897
 
27898
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
27899
    public boolean isSetItem_id() {
27900
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
27901
    }
27902
 
27903
    public void setItem_idIsSet(boolean value) {
27904
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
27905
    }
27906
 
27907
    public void setFieldValue(_Fields field, Object value) {
27908
      switch (field) {
27909
      case ITEM_ID:
27910
        if (value == null) {
27911
          unsetItem_id();
27912
        } else {
27913
          setItem_id((Long)value);
27914
        }
27915
        break;
27916
 
27917
      }
27918
    }
27919
 
27920
    public Object getFieldValue(_Fields field) {
27921
      switch (field) {
27922
      case ITEM_ID:
27923
        return Long.valueOf(getItem_id());
27924
 
27925
      }
27926
      throw new IllegalStateException();
27927
    }
27928
 
27929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27930
    public boolean isSet(_Fields field) {
27931
      if (field == null) {
27932
        throw new IllegalArgumentException();
27933
      }
27934
 
27935
      switch (field) {
27936
      case ITEM_ID:
27937
        return isSetItem_id();
27938
      }
27939
      throw new IllegalStateException();
27940
    }
27941
 
27942
    @Override
27943
    public boolean equals(Object that) {
27944
      if (that == null)
27945
        return false;
27946
      if (that instanceof clearItemAvailabilityCacheForItem_args)
27947
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
27948
      return false;
27949
    }
27950
 
27951
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
27952
      if (that == null)
27953
        return false;
27954
 
27955
      boolean this_present_item_id = true;
27956
      boolean that_present_item_id = true;
27957
      if (this_present_item_id || that_present_item_id) {
27958
        if (!(this_present_item_id && that_present_item_id))
27959
          return false;
27960
        if (this.item_id != that.item_id)
27961
          return false;
27962
      }
27963
 
27964
      return true;
27965
    }
27966
 
27967
    @Override
27968
    public int hashCode() {
27969
      return 0;
27970
    }
27971
 
27972
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
27973
      if (!getClass().equals(other.getClass())) {
27974
        return getClass().getName().compareTo(other.getClass().getName());
27975
      }
27976
 
27977
      int lastComparison = 0;
27978
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
27979
 
27980
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
27981
      if (lastComparison != 0) {
27982
        return lastComparison;
27983
      }
27984
      if (isSetItem_id()) {
27985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
27986
        if (lastComparison != 0) {
27987
          return lastComparison;
27988
        }
27989
      }
27990
      return 0;
27991
    }
27992
 
27993
    public _Fields fieldForId(int fieldId) {
27994
      return _Fields.findByThriftId(fieldId);
27995
    }
27996
 
27997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27998
      org.apache.thrift.protocol.TField field;
27999
      iprot.readStructBegin();
28000
      while (true)
28001
      {
28002
        field = iprot.readFieldBegin();
28003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28004
          break;
28005
        }
28006
        switch (field.id) {
28007
          case 1: // ITEM_ID
28008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28009
              this.item_id = iprot.readI64();
28010
              setItem_idIsSet(true);
28011
            } else { 
28012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28013
            }
28014
            break;
28015
          default:
28016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28017
        }
28018
        iprot.readFieldEnd();
28019
      }
28020
      iprot.readStructEnd();
28021
      validate();
28022
    }
28023
 
28024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28025
      validate();
28026
 
28027
      oprot.writeStructBegin(STRUCT_DESC);
28028
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28029
      oprot.writeI64(this.item_id);
28030
      oprot.writeFieldEnd();
28031
      oprot.writeFieldStop();
28032
      oprot.writeStructEnd();
28033
    }
28034
 
28035
    @Override
28036
    public String toString() {
28037
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
28038
      boolean first = true;
28039
 
28040
      sb.append("item_id:");
28041
      sb.append(this.item_id);
28042
      first = false;
28043
      sb.append(")");
28044
      return sb.toString();
28045
    }
28046
 
28047
    public void validate() throws org.apache.thrift.TException {
28048
      // check for required fields
28049
    }
28050
 
28051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28052
      try {
28053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28054
      } catch (org.apache.thrift.TException te) {
28055
        throw new java.io.IOException(te);
28056
      }
28057
    }
28058
 
28059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28060
      try {
28061
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28062
        __isset_bit_vector = new BitSet(1);
28063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28064
      } catch (org.apache.thrift.TException te) {
28065
        throw new java.io.IOException(te);
28066
      }
28067
    }
28068
 
28069
  }
28070
 
28071
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
28072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
28073
 
28074
 
28075
 
28076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28078
;
28079
 
28080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28081
 
28082
      static {
28083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28084
          byName.put(field.getFieldName(), field);
28085
        }
28086
      }
28087
 
28088
      /**
28089
       * Find the _Fields constant that matches fieldId, or null if its not found.
28090
       */
28091
      public static _Fields findByThriftId(int fieldId) {
28092
        switch(fieldId) {
28093
          default:
28094
            return null;
28095
        }
28096
      }
28097
 
28098
      /**
28099
       * Find the _Fields constant that matches fieldId, throwing an exception
28100
       * if it is not found.
28101
       */
28102
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28103
        _Fields fields = findByThriftId(fieldId);
28104
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28105
        return fields;
28106
      }
28107
 
28108
      /**
28109
       * Find the _Fields constant that matches name, or null if its not found.
28110
       */
28111
      public static _Fields findByName(String name) {
28112
        return byName.get(name);
28113
      }
28114
 
28115
      private final short _thriftId;
28116
      private final String _fieldName;
28117
 
28118
      _Fields(short thriftId, String fieldName) {
28119
        _thriftId = thriftId;
28120
        _fieldName = fieldName;
28121
      }
28122
 
28123
      public short getThriftFieldId() {
28124
        return _thriftId;
28125
      }
28126
 
28127
      public String getFieldName() {
28128
        return _fieldName;
28129
      }
28130
    }
28131
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28132
    static {
28133
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
28136
    }
28137
 
28138
    public clearItemAvailabilityCacheForItem_result() {
28139
    }
28140
 
28141
    /**
28142
     * Performs a deep copy on <i>other</i>.
28143
     */
28144
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
28145
    }
28146
 
28147
    public clearItemAvailabilityCacheForItem_result deepCopy() {
28148
      return new clearItemAvailabilityCacheForItem_result(this);
28149
    }
28150
 
28151
    @Override
28152
    public void clear() {
28153
    }
28154
 
28155
    public void setFieldValue(_Fields field, Object value) {
28156
      switch (field) {
28157
      }
28158
    }
28159
 
28160
    public Object getFieldValue(_Fields field) {
28161
      switch (field) {
28162
      }
28163
      throw new IllegalStateException();
28164
    }
28165
 
28166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28167
    public boolean isSet(_Fields field) {
28168
      if (field == null) {
28169
        throw new IllegalArgumentException();
28170
      }
28171
 
28172
      switch (field) {
28173
      }
28174
      throw new IllegalStateException();
28175
    }
28176
 
28177
    @Override
28178
    public boolean equals(Object that) {
28179
      if (that == null)
28180
        return false;
28181
      if (that instanceof clearItemAvailabilityCacheForItem_result)
28182
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
28183
      return false;
28184
    }
28185
 
28186
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
28187
      if (that == null)
28188
        return false;
28189
 
28190
      return true;
28191
    }
28192
 
28193
    @Override
28194
    public int hashCode() {
28195
      return 0;
28196
    }
28197
 
28198
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
28199
      if (!getClass().equals(other.getClass())) {
28200
        return getClass().getName().compareTo(other.getClass().getName());
28201
      }
28202
 
28203
      int lastComparison = 0;
28204
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
28205
 
28206
      return 0;
28207
    }
28208
 
28209
    public _Fields fieldForId(int fieldId) {
28210
      return _Fields.findByThriftId(fieldId);
28211
    }
28212
 
28213
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28214
      org.apache.thrift.protocol.TField field;
28215
      iprot.readStructBegin();
28216
      while (true)
28217
      {
28218
        field = iprot.readFieldBegin();
28219
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28220
          break;
28221
        }
28222
        switch (field.id) {
28223
          default:
28224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28225
        }
28226
        iprot.readFieldEnd();
28227
      }
28228
      iprot.readStructEnd();
28229
      validate();
28230
    }
28231
 
28232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28233
      oprot.writeStructBegin(STRUCT_DESC);
28234
 
28235
      oprot.writeFieldStop();
28236
      oprot.writeStructEnd();
28237
    }
28238
 
28239
    @Override
28240
    public String toString() {
28241
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
28242
      boolean first = true;
28243
 
28244
      sb.append(")");
28245
      return sb.toString();
28246
    }
28247
 
28248
    public void validate() throws org.apache.thrift.TException {
28249
      // check for required fields
28250
    }
28251
 
28252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28253
      try {
28254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28255
      } catch (org.apache.thrift.TException te) {
28256
        throw new java.io.IOException(te);
28257
      }
28258
    }
28259
 
28260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28261
      try {
28262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28263
      } catch (org.apache.thrift.TException te) {
28264
        throw new java.io.IOException(te);
28265
      }
28266
    }
28267
 
28268
  }
28269
 
6467 amar.kumar 28270
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
28271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
28272
 
28273
    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);
28274
 
28275
    private long vendorId; // required
28276
 
28277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28279
      VENDOR_ID((short)1, "vendorId");
28280
 
28281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28282
 
28283
      static {
28284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28285
          byName.put(field.getFieldName(), field);
28286
        }
28287
      }
28288
 
28289
      /**
28290
       * Find the _Fields constant that matches fieldId, or null if its not found.
28291
       */
28292
      public static _Fields findByThriftId(int fieldId) {
28293
        switch(fieldId) {
28294
          case 1: // VENDOR_ID
28295
            return VENDOR_ID;
28296
          default:
28297
            return null;
28298
        }
28299
      }
28300
 
28301
      /**
28302
       * Find the _Fields constant that matches fieldId, throwing an exception
28303
       * if it is not found.
28304
       */
28305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28306
        _Fields fields = findByThriftId(fieldId);
28307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28308
        return fields;
28309
      }
28310
 
28311
      /**
28312
       * Find the _Fields constant that matches name, or null if its not found.
28313
       */
28314
      public static _Fields findByName(String name) {
28315
        return byName.get(name);
28316
      }
28317
 
28318
      private final short _thriftId;
28319
      private final String _fieldName;
28320
 
28321
      _Fields(short thriftId, String fieldName) {
28322
        _thriftId = thriftId;
28323
        _fieldName = fieldName;
28324
      }
28325
 
28326
      public short getThriftFieldId() {
28327
        return _thriftId;
28328
      }
28329
 
28330
      public String getFieldName() {
28331
        return _fieldName;
28332
      }
28333
    }
28334
 
28335
    // isset id assignments
28336
    private static final int __VENDORID_ISSET_ID = 0;
28337
    private BitSet __isset_bit_vector = new BitSet(1);
28338
 
28339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28340
    static {
28341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28342
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
28346
    }
28347
 
28348
    public getOurWarehouseIdForVendor_args() {
28349
    }
28350
 
28351
    public getOurWarehouseIdForVendor_args(
28352
      long vendorId)
28353
    {
28354
      this();
28355
      this.vendorId = vendorId;
28356
      setVendorIdIsSet(true);
28357
    }
28358
 
28359
    /**
28360
     * Performs a deep copy on <i>other</i>.
28361
     */
28362
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
28363
      __isset_bit_vector.clear();
28364
      __isset_bit_vector.or(other.__isset_bit_vector);
28365
      this.vendorId = other.vendorId;
28366
    }
28367
 
28368
    public getOurWarehouseIdForVendor_args deepCopy() {
28369
      return new getOurWarehouseIdForVendor_args(this);
28370
    }
28371
 
28372
    @Override
28373
    public void clear() {
28374
      setVendorIdIsSet(false);
28375
      this.vendorId = 0;
28376
    }
28377
 
28378
    public long getVendorId() {
28379
      return this.vendorId;
28380
    }
28381
 
28382
    public void setVendorId(long vendorId) {
28383
      this.vendorId = vendorId;
28384
      setVendorIdIsSet(true);
28385
    }
28386
 
28387
    public void unsetVendorId() {
28388
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
28389
    }
28390
 
28391
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
28392
    public boolean isSetVendorId() {
28393
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
28394
    }
28395
 
28396
    public void setVendorIdIsSet(boolean value) {
28397
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
28398
    }
28399
 
28400
    public void setFieldValue(_Fields field, Object value) {
28401
      switch (field) {
28402
      case VENDOR_ID:
28403
        if (value == null) {
28404
          unsetVendorId();
28405
        } else {
28406
          setVendorId((Long)value);
28407
        }
28408
        break;
28409
 
28410
      }
28411
    }
28412
 
28413
    public Object getFieldValue(_Fields field) {
28414
      switch (field) {
28415
      case VENDOR_ID:
28416
        return Long.valueOf(getVendorId());
28417
 
28418
      }
28419
      throw new IllegalStateException();
28420
    }
28421
 
28422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28423
    public boolean isSet(_Fields field) {
28424
      if (field == null) {
28425
        throw new IllegalArgumentException();
28426
      }
28427
 
28428
      switch (field) {
28429
      case VENDOR_ID:
28430
        return isSetVendorId();
28431
      }
28432
      throw new IllegalStateException();
28433
    }
28434
 
28435
    @Override
28436
    public boolean equals(Object that) {
28437
      if (that == null)
28438
        return false;
28439
      if (that instanceof getOurWarehouseIdForVendor_args)
28440
        return this.equals((getOurWarehouseIdForVendor_args)that);
28441
      return false;
28442
    }
28443
 
28444
    public boolean equals(getOurWarehouseIdForVendor_args that) {
28445
      if (that == null)
28446
        return false;
28447
 
28448
      boolean this_present_vendorId = true;
28449
      boolean that_present_vendorId = true;
28450
      if (this_present_vendorId || that_present_vendorId) {
28451
        if (!(this_present_vendorId && that_present_vendorId))
28452
          return false;
28453
        if (this.vendorId != that.vendorId)
28454
          return false;
28455
      }
28456
 
28457
      return true;
28458
    }
28459
 
28460
    @Override
28461
    public int hashCode() {
28462
      return 0;
28463
    }
28464
 
28465
    public int compareTo(getOurWarehouseIdForVendor_args other) {
28466
      if (!getClass().equals(other.getClass())) {
28467
        return getClass().getName().compareTo(other.getClass().getName());
28468
      }
28469
 
28470
      int lastComparison = 0;
28471
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
28472
 
28473
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
28474
      if (lastComparison != 0) {
28475
        return lastComparison;
28476
      }
28477
      if (isSetVendorId()) {
28478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
28479
        if (lastComparison != 0) {
28480
          return lastComparison;
28481
        }
28482
      }
28483
      return 0;
28484
    }
28485
 
28486
    public _Fields fieldForId(int fieldId) {
28487
      return _Fields.findByThriftId(fieldId);
28488
    }
28489
 
28490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28491
      org.apache.thrift.protocol.TField field;
28492
      iprot.readStructBegin();
28493
      while (true)
28494
      {
28495
        field = iprot.readFieldBegin();
28496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28497
          break;
28498
        }
28499
        switch (field.id) {
28500
          case 1: // VENDOR_ID
28501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28502
              this.vendorId = iprot.readI64();
28503
              setVendorIdIsSet(true);
28504
            } else { 
28505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28506
            }
28507
            break;
28508
          default:
28509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28510
        }
28511
        iprot.readFieldEnd();
28512
      }
28513
      iprot.readStructEnd();
28514
      validate();
28515
    }
28516
 
28517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28518
      validate();
28519
 
28520
      oprot.writeStructBegin(STRUCT_DESC);
28521
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
28522
      oprot.writeI64(this.vendorId);
28523
      oprot.writeFieldEnd();
28524
      oprot.writeFieldStop();
28525
      oprot.writeStructEnd();
28526
    }
28527
 
28528
    @Override
28529
    public String toString() {
28530
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
28531
      boolean first = true;
28532
 
28533
      sb.append("vendorId:");
28534
      sb.append(this.vendorId);
28535
      first = false;
28536
      sb.append(")");
28537
      return sb.toString();
28538
    }
28539
 
28540
    public void validate() throws org.apache.thrift.TException {
28541
      // check for required fields
28542
    }
28543
 
28544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28545
      try {
28546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28547
      } catch (org.apache.thrift.TException te) {
28548
        throw new java.io.IOException(te);
28549
      }
28550
    }
28551
 
28552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28553
      try {
28554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28555
        __isset_bit_vector = new BitSet(1);
28556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28557
      } catch (org.apache.thrift.TException te) {
28558
        throw new java.io.IOException(te);
28559
      }
28560
    }
28561
 
28562
  }
28563
 
28564
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
28565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
28566
 
28567
    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);
28568
 
28569
    private long success; // required
28570
 
28571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28573
      SUCCESS((short)0, "success");
28574
 
28575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28576
 
28577
      static {
28578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28579
          byName.put(field.getFieldName(), field);
28580
        }
28581
      }
28582
 
28583
      /**
28584
       * Find the _Fields constant that matches fieldId, or null if its not found.
28585
       */
28586
      public static _Fields findByThriftId(int fieldId) {
28587
        switch(fieldId) {
28588
          case 0: // SUCCESS
28589
            return SUCCESS;
28590
          default:
28591
            return null;
28592
        }
28593
      }
28594
 
28595
      /**
28596
       * Find the _Fields constant that matches fieldId, throwing an exception
28597
       * if it is not found.
28598
       */
28599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28600
        _Fields fields = findByThriftId(fieldId);
28601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28602
        return fields;
28603
      }
28604
 
28605
      /**
28606
       * Find the _Fields constant that matches name, or null if its not found.
28607
       */
28608
      public static _Fields findByName(String name) {
28609
        return byName.get(name);
28610
      }
28611
 
28612
      private final short _thriftId;
28613
      private final String _fieldName;
28614
 
28615
      _Fields(short thriftId, String fieldName) {
28616
        _thriftId = thriftId;
28617
        _fieldName = fieldName;
28618
      }
28619
 
28620
      public short getThriftFieldId() {
28621
        return _thriftId;
28622
      }
28623
 
28624
      public String getFieldName() {
28625
        return _fieldName;
28626
      }
28627
    }
28628
 
28629
    // isset id assignments
28630
    private static final int __SUCCESS_ISSET_ID = 0;
28631
    private BitSet __isset_bit_vector = new BitSet(1);
28632
 
28633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28634
    static {
28635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
28640
    }
28641
 
28642
    public getOurWarehouseIdForVendor_result() {
28643
    }
28644
 
28645
    public getOurWarehouseIdForVendor_result(
28646
      long success)
28647
    {
28648
      this();
28649
      this.success = success;
28650
      setSuccessIsSet(true);
28651
    }
28652
 
28653
    /**
28654
     * Performs a deep copy on <i>other</i>.
28655
     */
28656
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
28657
      __isset_bit_vector.clear();
28658
      __isset_bit_vector.or(other.__isset_bit_vector);
28659
      this.success = other.success;
28660
    }
28661
 
28662
    public getOurWarehouseIdForVendor_result deepCopy() {
28663
      return new getOurWarehouseIdForVendor_result(this);
28664
    }
28665
 
28666
    @Override
28667
    public void clear() {
28668
      setSuccessIsSet(false);
28669
      this.success = 0;
28670
    }
28671
 
28672
    public long getSuccess() {
28673
      return this.success;
28674
    }
28675
 
28676
    public void setSuccess(long success) {
28677
      this.success = success;
28678
      setSuccessIsSet(true);
28679
    }
28680
 
28681
    public void unsetSuccess() {
28682
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28683
    }
28684
 
28685
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28686
    public boolean isSetSuccess() {
28687
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28688
    }
28689
 
28690
    public void setSuccessIsSet(boolean value) {
28691
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28692
    }
28693
 
28694
    public void setFieldValue(_Fields field, Object value) {
28695
      switch (field) {
28696
      case SUCCESS:
28697
        if (value == null) {
28698
          unsetSuccess();
28699
        } else {
28700
          setSuccess((Long)value);
28701
        }
28702
        break;
28703
 
28704
      }
28705
    }
28706
 
28707
    public Object getFieldValue(_Fields field) {
28708
      switch (field) {
28709
      case SUCCESS:
28710
        return Long.valueOf(getSuccess());
28711
 
28712
      }
28713
      throw new IllegalStateException();
28714
    }
28715
 
28716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28717
    public boolean isSet(_Fields field) {
28718
      if (field == null) {
28719
        throw new IllegalArgumentException();
28720
      }
28721
 
28722
      switch (field) {
28723
      case SUCCESS:
28724
        return isSetSuccess();
28725
      }
28726
      throw new IllegalStateException();
28727
    }
28728
 
28729
    @Override
28730
    public boolean equals(Object that) {
28731
      if (that == null)
28732
        return false;
28733
      if (that instanceof getOurWarehouseIdForVendor_result)
28734
        return this.equals((getOurWarehouseIdForVendor_result)that);
28735
      return false;
28736
    }
28737
 
28738
    public boolean equals(getOurWarehouseIdForVendor_result that) {
28739
      if (that == null)
28740
        return false;
28741
 
28742
      boolean this_present_success = true;
28743
      boolean that_present_success = true;
28744
      if (this_present_success || that_present_success) {
28745
        if (!(this_present_success && that_present_success))
28746
          return false;
28747
        if (this.success != that.success)
28748
          return false;
28749
      }
28750
 
28751
      return true;
28752
    }
28753
 
28754
    @Override
28755
    public int hashCode() {
28756
      return 0;
28757
    }
28758
 
28759
    public int compareTo(getOurWarehouseIdForVendor_result other) {
28760
      if (!getClass().equals(other.getClass())) {
28761
        return getClass().getName().compareTo(other.getClass().getName());
28762
      }
28763
 
28764
      int lastComparison = 0;
28765
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
28766
 
28767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28768
      if (lastComparison != 0) {
28769
        return lastComparison;
28770
      }
28771
      if (isSetSuccess()) {
28772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28773
        if (lastComparison != 0) {
28774
          return lastComparison;
28775
        }
28776
      }
28777
      return 0;
28778
    }
28779
 
28780
    public _Fields fieldForId(int fieldId) {
28781
      return _Fields.findByThriftId(fieldId);
28782
    }
28783
 
28784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28785
      org.apache.thrift.protocol.TField field;
28786
      iprot.readStructBegin();
28787
      while (true)
28788
      {
28789
        field = iprot.readFieldBegin();
28790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28791
          break;
28792
        }
28793
        switch (field.id) {
28794
          case 0: // SUCCESS
28795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28796
              this.success = iprot.readI64();
28797
              setSuccessIsSet(true);
28798
            } else { 
28799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28800
            }
28801
            break;
28802
          default:
28803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28804
        }
28805
        iprot.readFieldEnd();
28806
      }
28807
      iprot.readStructEnd();
28808
      validate();
28809
    }
28810
 
28811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28812
      oprot.writeStructBegin(STRUCT_DESC);
28813
 
28814
      if (this.isSetSuccess()) {
28815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28816
        oprot.writeI64(this.success);
28817
        oprot.writeFieldEnd();
28818
      }
28819
      oprot.writeFieldStop();
28820
      oprot.writeStructEnd();
28821
    }
28822
 
28823
    @Override
28824
    public String toString() {
28825
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
28826
      boolean first = true;
28827
 
28828
      sb.append("success:");
28829
      sb.append(this.success);
28830
      first = false;
28831
      sb.append(")");
28832
      return sb.toString();
28833
    }
28834
 
28835
    public void validate() throws org.apache.thrift.TException {
28836
      // check for required fields
28837
    }
28838
 
28839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28840
      try {
28841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28842
      } catch (org.apache.thrift.TException te) {
28843
        throw new java.io.IOException(te);
28844
      }
28845
    }
28846
 
28847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28848
      try {
28849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28850
      } catch (org.apache.thrift.TException te) {
28851
        throw new java.io.IOException(te);
28852
      }
28853
    }
28854
 
28855
  }
28856
 
5945 mandeep.dh 28857
}