Subversion Repositories SmartDukaan

Rev

Rev 4985 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4985 Rev 5110
Line 40... Line 40...
40
     * 
40
     * 
41
     * @param vendor
41
     * @param vendor
42
     */
42
     */
43
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException;
43
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException;
44
 
44
 
45
    public boolean addWarehouseVendorMapping(long warehouse_id, long vendorId) throws org.apache.thrift.TException;
-
 
46
 
-
 
47
    public List<Vendor> getVendorsForWarehouse(long warehouse_id) throws org.apache.thrift.TException;
-
 
48
 
-
 
49
    public List<Warehouse> getWarehousesForVendor(long vendorId) throws org.apache.thrift.TException;
-
 
50
 
-
 
51
    /**
45
    /**
52
     * Checks if the item given to the corresponding itemId is active. If it's active,
46
     * Checks if the item given to the corresponding itemId is active. If it's active,
53
     * whether it's risky and if it's risky, its inventory position.
47
     * whether it's risky and if it's risky, its inventory position.
54
     * 
48
     * 
55
     * @param itemId
49
     * @param itemId
Line 438... Line 432...
438
     * @param startDateTime
432
     * @param startDateTime
439
     */
433
     */
440
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;
434
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;
441
 
435
 
442
    /**
436
    /**
443
     * This method creates a purchase order from an excel sheet containing Item Id and Quantity column and returns the PO Id.
-
 
444
     * 
-
 
445
     * @param filename
-
 
446
     * @param vendorId
-
 
447
     */
-
 
448
    public String processPurchaseOrder(String filename, int vendorId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
449
 
-
 
450
    /**
-
 
451
     * This method adds a log to authorize table with Item Id, username who authorized the change, reason.
437
     * This method adds a log to authorize table with Item Id, username who authorized the change, reason.
452
     * 
438
     * 
453
     * @param itemId
439
     * @param itemId
454
     * @param username
440
     * @param username
455
     * @param reason
441
     * @param reason
456
     */
442
     */
457
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws InventoryServiceException, org.apache.thrift.TException;
443
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws InventoryServiceException, org.apache.thrift.TException;
458
 
444
 
459
    /**
445
    /**
-
 
446
     * This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
-
 
447
     * 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
-
 
448
     * 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
-
 
449
     *    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
-
 
450
     *    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
-
 
451
     * 
-
 
452
     * @param warehouseType
-
 
453
     * @param inventoryType
-
 
454
     * @param vendorId
-
 
455
     * @param billingWarehouseId
-
 
456
     * @param shippingWarehouseId
-
 
457
     */
-
 
458
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException;
-
 
459
 
-
 
460
    /**
460
     * Resets availability of an item to the quantity mentioned in a warehouse.
461
     * Resets availability of an item to the quantity mentioned in a warehouse.
461
     * 
462
     * 
462
     * @param itemKey
463
     * @param itemKey
463
     * @param vendorId
464
     * @param vendorId
464
     * @param quantity
465
     * @param quantity
Line 482... Line 483...
482
     * @param itemKey
483
     * @param itemKey
483
     * @param warehouseId
484
     * @param warehouseId
484
     */
485
     */
485
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
486
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
486
 
487
 
-
 
488
    /**
-
 
489
     * Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
-
 
490
     * and the timestamp from where alert was raised.
-
 
491
     */
-
 
492
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException;
-
 
493
 
-
 
494
    /**
-
 
495
     * Add the BAD type inventory to existing stock.
-
 
496
     * 
-
 
497
     * @param itemId
-
 
498
     * @param warehouseId
-
 
499
     * @param quantity
-
 
500
     */
-
 
501
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
-
 
502
 
487
  }
503
  }
488
 
504
 
489
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
505
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
490
 
506
 
491
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
507
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 494... Line 510...
494
 
510
 
495
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
511
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
496
 
512
 
497
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
513
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
498
 
514
 
499
    public void addWarehouseVendorMapping(long warehouse_id, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouseVendorMapping_call> resultHandler) throws org.apache.thrift.TException;
-
 
500
 
-
 
501
    public void getVendorsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
502
 
-
 
503
    public void getWarehousesForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehousesForVendor_call> resultHandler) throws org.apache.thrift.TException;
-
 
504
 
-
 
505
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isActive_call> resultHandler) throws org.apache.thrift.TException;
515
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isActive_call> resultHandler) throws org.apache.thrift.TException;
506
 
516
 
507
    public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException;
517
    public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException;
508
 
518
 
509
    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;
519
    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;
Line 636... Line 646...
636
 
646
 
637
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
647
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
638
 
648
 
639
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
649
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
640
 
650
 
641
    public void processPurchaseOrder(String filename, int vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
642
 
-
 
643
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
651
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
644
 
652
 
-
 
653
    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;
-
 
654
 
645
    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;
655
    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;
646
 
656
 
647
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
657
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
648
 
658
 
649
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
659
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
650
 
660
 
-
 
661
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
-
 
662
 
-
 
663
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
664
 
651
  }
665
  }
652
 
666
 
653
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
667
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
654
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
668
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
655
      public Factory() {}
669
      public Factory() {}
Line 772... Line 786...
772
        throw result.cex;
786
        throw result.cex;
773
      }
787
      }
774
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
788
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
775
    }
789
    }
776
 
790
 
777
    public boolean addWarehouseVendorMapping(long warehouse_id, long vendorId) throws org.apache.thrift.TException
-
 
778
    {
-
 
779
      send_addWarehouseVendorMapping(warehouse_id, vendorId);
-
 
780
      return recv_addWarehouseVendorMapping();
-
 
781
    }
-
 
782
 
-
 
783
    public void send_addWarehouseVendorMapping(long warehouse_id, long vendorId) throws org.apache.thrift.TException
-
 
784
    {
-
 
785
      addWarehouseVendorMapping_args args = new addWarehouseVendorMapping_args();
-
 
786
      args.setWarehouse_id(warehouse_id);
-
 
787
      args.setVendorId(vendorId);
-
 
788
      sendBase("addWarehouseVendorMapping", args);
-
 
789
    }
-
 
790
 
-
 
791
    public boolean recv_addWarehouseVendorMapping() throws org.apache.thrift.TException
-
 
792
    {
-
 
793
      addWarehouseVendorMapping_result result = new addWarehouseVendorMapping_result();
-
 
794
      receiveBase(result, "addWarehouseVendorMapping");
-
 
795
      if (result.isSetSuccess()) {
-
 
796
        return result.success;
-
 
797
      }
-
 
798
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouseVendorMapping failed: unknown result");
-
 
799
    }
-
 
800
 
-
 
801
    public List<Vendor> getVendorsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
802
    {
-
 
803
      send_getVendorsForWarehouse(warehouse_id);
-
 
804
      return recv_getVendorsForWarehouse();
-
 
805
    }
-
 
806
 
-
 
807
    public void send_getVendorsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
808
    {
-
 
809
      getVendorsForWarehouse_args args = new getVendorsForWarehouse_args();
-
 
810
      args.setWarehouse_id(warehouse_id);
-
 
811
      sendBase("getVendorsForWarehouse", args);
-
 
812
    }
-
 
813
 
-
 
814
    public List<Vendor> recv_getVendorsForWarehouse() throws org.apache.thrift.TException
-
 
815
    {
-
 
816
      getVendorsForWarehouse_result result = new getVendorsForWarehouse_result();
-
 
817
      receiveBase(result, "getVendorsForWarehouse");
-
 
818
      if (result.isSetSuccess()) {
-
 
819
        return result.success;
-
 
820
      }
-
 
821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorsForWarehouse failed: unknown result");
-
 
822
    }
-
 
823
 
-
 
824
    public List<Warehouse> getWarehousesForVendor(long vendorId) throws org.apache.thrift.TException
-
 
825
    {
-
 
826
      send_getWarehousesForVendor(vendorId);
-
 
827
      return recv_getWarehousesForVendor();
-
 
828
    }
-
 
829
 
-
 
830
    public void send_getWarehousesForVendor(long vendorId) throws org.apache.thrift.TException
-
 
831
    {
-
 
832
      getWarehousesForVendor_args args = new getWarehousesForVendor_args();
-
 
833
      args.setVendorId(vendorId);
-
 
834
      sendBase("getWarehousesForVendor", args);
-
 
835
    }
-
 
836
 
-
 
837
    public List<Warehouse> recv_getWarehousesForVendor() throws org.apache.thrift.TException
-
 
838
    {
-
 
839
      getWarehousesForVendor_result result = new getWarehousesForVendor_result();
-
 
840
      receiveBase(result, "getWarehousesForVendor");
-
 
841
      if (result.isSetSuccess()) {
-
 
842
        return result.success;
-
 
843
      }
-
 
844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehousesForVendor failed: unknown result");
-
 
845
    }
-
 
846
 
-
 
847
    public ItemShippingInfo isActive(long itemId) throws InventoryServiceException, org.apache.thrift.TException
791
    public ItemShippingInfo isActive(long itemId) throws InventoryServiceException, org.apache.thrift.TException
848
    {
792
    {
849
      send_isActive(itemId);
793
      send_isActive(itemId);
850
      return recv_isActive();
794
      return recv_isActive();
851
    }
795
    }
Line 2547... Line 2491...
2547
        return result.success;
2491
        return result.success;
2548
      }
2492
      }
2549
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2550
    }
2494
    }
2551
 
2495
 
2552
    public String processPurchaseOrder(String filename, int vendorId) throws InventoryServiceException, org.apache.thrift.TException
-
 
2553
    {
-
 
2554
      send_processPurchaseOrder(filename, vendorId);
-
 
2555
      return recv_processPurchaseOrder();
-
 
2556
    }
-
 
2557
 
-
 
2558
    public void send_processPurchaseOrder(String filename, int vendorId) throws org.apache.thrift.TException
-
 
2559
    {
-
 
2560
      processPurchaseOrder_args args = new processPurchaseOrder_args();
-
 
2561
      args.setFilename(filename);
-
 
2562
      args.setVendorId(vendorId);
-
 
2563
      sendBase("processPurchaseOrder", args);
-
 
2564
    }
-
 
2565
 
-
 
2566
    public String recv_processPurchaseOrder() throws InventoryServiceException, org.apache.thrift.TException
-
 
2567
    {
-
 
2568
      processPurchaseOrder_result result = new processPurchaseOrder_result();
-
 
2569
      receiveBase(result, "processPurchaseOrder");
-
 
2570
      if (result.isSetSuccess()) {
-
 
2571
        return result.success;
-
 
2572
      }
-
 
2573
      if (result.cex != null) {
-
 
2574
        throw result.cex;
-
 
2575
      }
-
 
2576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processPurchaseOrder failed: unknown result");
-
 
2577
    }
-
 
2578
 
-
 
2579
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws InventoryServiceException, org.apache.thrift.TException
2496
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws InventoryServiceException, org.apache.thrift.TException
2580
    {
2497
    {
2581
      send_addAuthorizationLog(itemId, username, reason);
2498
      send_addAuthorizationLog(itemId, username, reason);
2582
      return recv_addAuthorizationLog();
2499
      return recv_addAuthorizationLog();
2583
    }
2500
    }
Line 2602... Line 2519...
2602
        throw result.cex;
2519
        throw result.cex;
2603
      }
2520
      }
2604
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2605
    }
2522
    }
2606
 
2523
 
-
 
2524
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
-
 
2525
    {
-
 
2526
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
-
 
2527
      return recv_getWarehouses();
-
 
2528
    }
-
 
2529
 
-
 
2530
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
-
 
2531
    {
-
 
2532
      getWarehouses_args args = new getWarehouses_args();
-
 
2533
      args.setWarehouseType(warehouseType);
-
 
2534
      args.setInventoryType(inventoryType);
-
 
2535
      args.setVendorId(vendorId);
-
 
2536
      args.setBillingWarehouseId(billingWarehouseId);
-
 
2537
      args.setShippingWarehouseId(shippingWarehouseId);
-
 
2538
      sendBase("getWarehouses", args);
-
 
2539
    }
-
 
2540
 
-
 
2541
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
-
 
2542
    {
-
 
2543
      getWarehouses_result result = new getWarehouses_result();
-
 
2544
      receiveBase(result, "getWarehouses");
-
 
2545
      if (result.isSetSuccess()) {
-
 
2546
        return result.success;
-
 
2547
      }
-
 
2548
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
-
 
2549
    }
-
 
2550
 
2607
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
2551
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
2608
    {
2552
    {
2609
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
2553
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
2610
      recv_resetAvailability();
2554
      recv_resetAvailability();
2611
    }
2555
    }
Line 2672... Line 2616...
2672
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
2616
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
2673
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
2617
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
2674
      return;
2618
      return;
2675
    }
2619
    }
2676
 
2620
 
-
 
2621
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
-
 
2622
    {
-
 
2623
      send_getIgnoredItemKeys();
-
 
2624
      return recv_getIgnoredItemKeys();
-
 
2625
    }
-
 
2626
 
-
 
2627
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
-
 
2628
    {
-
 
2629
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
-
 
2630
      sendBase("getIgnoredItemKeys", args);
-
 
2631
    }
-
 
2632
 
-
 
2633
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
-
 
2634
    {
-
 
2635
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
-
 
2636
      receiveBase(result, "getIgnoredItemKeys");
-
 
2637
      if (result.isSetSuccess()) {
-
 
2638
        return result.success;
-
 
2639
      }
-
 
2640
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
-
 
2641
    }
-
 
2642
 
-
 
2643
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
-
 
2644
    {
-
 
2645
      send_addBadInventory(itemId, warehouseId, quantity);
-
 
2646
      recv_addBadInventory();
-
 
2647
    }
-
 
2648
 
-
 
2649
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
-
 
2650
    {
-
 
2651
      addBadInventory_args args = new addBadInventory_args();
-
 
2652
      args.setItemId(itemId);
-
 
2653
      args.setWarehouseId(warehouseId);
-
 
2654
      args.setQuantity(quantity);
-
 
2655
      sendBase("addBadInventory", args);
-
 
2656
    }
-
 
2657
 
-
 
2658
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
-
 
2659
    {
-
 
2660
      addBadInventory_result result = new addBadInventory_result();
-
 
2661
      receiveBase(result, "addBadInventory");
-
 
2662
      if (result.cex != null) {
-
 
2663
        throw result.cex;
-
 
2664
      }
-
 
2665
      return;
-
 
2666
    }
-
 
2667
 
2677
  }
2668
  }
2678
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2669
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2679
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2670
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2680
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2671
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2681
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2672
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2818... Line 2809...
2818
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2819
        return (new Client(prot)).recv_addVendor();
2810
        return (new Client(prot)).recv_addVendor();
2820
      }
2811
      }
2821
    }
2812
    }
2822
 
2813
 
2823
    public void addWarehouseVendorMapping(long warehouse_id, long vendorId, org.apache.thrift.async.AsyncMethodCallback<addWarehouseVendorMapping_call> resultHandler) throws org.apache.thrift.TException {
-
 
2824
      checkReady();
-
 
2825
      addWarehouseVendorMapping_call method_call = new addWarehouseVendorMapping_call(warehouse_id, vendorId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2826
      this.___currentMethod = method_call;
-
 
2827
      ___manager.call(method_call);
-
 
2828
    }
-
 
2829
 
-
 
2830
    public static class addWarehouseVendorMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2831
      private long warehouse_id;
-
 
2832
      private long vendorId;
-
 
2833
      public addWarehouseVendorMapping_call(long warehouse_id, long vendorId, org.apache.thrift.async.AsyncMethodCallback<addWarehouseVendorMapping_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 {
-
 
2834
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2835
        this.warehouse_id = warehouse_id;
-
 
2836
        this.vendorId = vendorId;
-
 
2837
      }
-
 
2838
 
-
 
2839
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2840
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouseVendorMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2841
        addWarehouseVendorMapping_args args = new addWarehouseVendorMapping_args();
-
 
2842
        args.setWarehouse_id(warehouse_id);
-
 
2843
        args.setVendorId(vendorId);
-
 
2844
        args.write(prot);
-
 
2845
        prot.writeMessageEnd();
-
 
2846
      }
-
 
2847
 
-
 
2848
      public boolean getResult() throws org.apache.thrift.TException {
-
 
2849
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2850
          throw new IllegalStateException("Method call not finished!");
-
 
2851
        }
-
 
2852
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2853
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2854
        return (new Client(prot)).recv_addWarehouseVendorMapping();
-
 
2855
      }
-
 
2856
    }
-
 
2857
 
-
 
2858
    public void getVendorsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getVendorsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
2859
      checkReady();
-
 
2860
      getVendorsForWarehouse_call method_call = new getVendorsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2861
      this.___currentMethod = method_call;
-
 
2862
      ___manager.call(method_call);
-
 
2863
    }
-
 
2864
 
-
 
2865
    public static class getVendorsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2866
      private long warehouse_id;
-
 
2867
      public getVendorsForWarehouse_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getVendorsForWarehouse_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 {
-
 
2868
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2869
        this.warehouse_id = warehouse_id;
-
 
2870
      }
-
 
2871
 
-
 
2872
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2873
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2874
        getVendorsForWarehouse_args args = new getVendorsForWarehouse_args();
-
 
2875
        args.setWarehouse_id(warehouse_id);
-
 
2876
        args.write(prot);
-
 
2877
        prot.writeMessageEnd();
-
 
2878
      }
-
 
2879
 
-
 
2880
      public List<Vendor> getResult() throws org.apache.thrift.TException {
-
 
2881
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2882
          throw new IllegalStateException("Method call not finished!");
-
 
2883
        }
-
 
2884
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2885
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2886
        return (new Client(prot)).recv_getVendorsForWarehouse();
-
 
2887
      }
-
 
2888
    }
-
 
2889
 
-
 
2890
    public void getWarehousesForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getWarehousesForVendor_call> resultHandler) throws org.apache.thrift.TException {
-
 
2891
      checkReady();
-
 
2892
      getWarehousesForVendor_call method_call = new getWarehousesForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2893
      this.___currentMethod = method_call;
-
 
2894
      ___manager.call(method_call);
-
 
2895
    }
-
 
2896
 
-
 
2897
    public static class getWarehousesForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2898
      private long vendorId;
-
 
2899
      public getWarehousesForVendor_call(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getWarehousesForVendor_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 {
-
 
2900
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2901
        this.vendorId = vendorId;
-
 
2902
      }
-
 
2903
 
-
 
2904
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2905
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehousesForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2906
        getWarehousesForVendor_args args = new getWarehousesForVendor_args();
-
 
2907
        args.setVendorId(vendorId);
-
 
2908
        args.write(prot);
-
 
2909
        prot.writeMessageEnd();
-
 
2910
      }
-
 
2911
 
-
 
2912
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
-
 
2913
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2914
          throw new IllegalStateException("Method call not finished!");
-
 
2915
        }
-
 
2916
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2917
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2918
        return (new Client(prot)).recv_getWarehousesForVendor();
-
 
2919
      }
-
 
2920
    }
-
 
2921
 
-
 
2922
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler) throws org.apache.thrift.TException {
2814
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler) throws org.apache.thrift.TException {
2923
      checkReady();
2815
      checkReady();
2924
      isActive_call method_call = new isActive_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2816
      isActive_call method_call = new isActive_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2925
      this.___currentMethod = method_call;
2817
      this.___currentMethod = method_call;
2926
      ___manager.call(method_call);
2818
      ___manager.call(method_call);
Line 5201... Line 5093...
5201
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5093
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5202
        return (new Client(prot)).recv_getProductNotificationRequestCount();
5094
        return (new Client(prot)).recv_getProductNotificationRequestCount();
5203
      }
5095
      }
5204
    }
5096
    }
5205
 
5097
 
5206
    public void processPurchaseOrder(String filename, int vendorId, org.apache.thrift.async.AsyncMethodCallback<processPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
5098
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException {
5207
      checkReady();
5099
      checkReady();
5208
      processPurchaseOrder_call method_call = new processPurchaseOrder_call(filename, vendorId, resultHandler, this, ___protocolFactory, ___transport);
5100
      addAuthorizationLog_call method_call = new addAuthorizationLog_call(itemId, username, reason, resultHandler, this, ___protocolFactory, ___transport);
5209
      this.___currentMethod = method_call;
5101
      this.___currentMethod = method_call;
5210
      ___manager.call(method_call);
5102
      ___manager.call(method_call);
5211
    }
5103
    }
5212
 
5104
 
5213
    public static class processPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
5105
    public static class addAuthorizationLog_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5106
      private long itemId;
5214
      private String filename;
5107
      private String username;
5215
      private int vendorId;
5108
      private String reason;
5216
      public processPurchaseOrder_call(String filename, int vendorId, org.apache.thrift.async.AsyncMethodCallback<processPurchaseOrder_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 {
5109
      public addAuthorizationLog_call(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_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 {
5217
        super(client, protocolFactory, transport, resultHandler, false);
5110
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5111
        this.itemId = itemId;
5218
        this.filename = filename;
5112
        this.username = username;
5219
        this.vendorId = vendorId;
5113
        this.reason = reason;
5220
      }
5114
      }
5221
 
5115
 
5222
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5116
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5223
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
5117
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAuthorizationLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
5224
        processPurchaseOrder_args args = new processPurchaseOrder_args();
5118
        addAuthorizationLog_args args = new addAuthorizationLog_args();
-
 
5119
        args.setItemId(itemId);
5225
        args.setFilename(filename);
5120
        args.setUsername(username);
5226
        args.setVendorId(vendorId);
5121
        args.setReason(reason);
5227
        args.write(prot);
5122
        args.write(prot);
5228
        prot.writeMessageEnd();
5123
        prot.writeMessageEnd();
5229
      }
5124
      }
5230
 
5125
 
5231
      public String getResult() throws InventoryServiceException, org.apache.thrift.TException {
5126
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
5232
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5127
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5233
          throw new IllegalStateException("Method call not finished!");
5128
          throw new IllegalStateException("Method call not finished!");
5234
        }
5129
        }
5235
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5130
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5236
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5131
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5237
        return (new Client(prot)).recv_processPurchaseOrder();
5132
        return (new Client(prot)).recv_addAuthorizationLog();
5238
      }
5133
      }
5239
    }
5134
    }
5240
 
5135
 
5241
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException {
5136
    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 {
5242
      checkReady();
5137
      checkReady();
5243
      addAuthorizationLog_call method_call = new addAuthorizationLog_call(itemId, username, reason, resultHandler, this, ___protocolFactory, ___transport);
5138
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
5244
      this.___currentMethod = method_call;
5139
      this.___currentMethod = method_call;
5245
      ___manager.call(method_call);
5140
      ___manager.call(method_call);
5246
    }
5141
    }
5247
 
5142
 
5248
    public static class addAuthorizationLog_call extends org.apache.thrift.async.TAsyncMethodCall {
5143
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5144
      private WarehouseType warehouseType;
-
 
5145
      private InventoryType inventoryType;
5249
      private long itemId;
5146
      private long vendorId;
5250
      private String username;
5147
      private long billingWarehouseId;
5251
      private String reason;
5148
      private long shippingWarehouseId;
5252
      public addAuthorizationLog_call(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_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 {
5149
      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 {
5253
        super(client, protocolFactory, transport, resultHandler, false);
5150
        super(client, protocolFactory, transport, resultHandler, false);
5254
        this.itemId = itemId;
5151
        this.warehouseType = warehouseType;
5255
        this.username = username;
5152
        this.inventoryType = inventoryType;
5256
        this.reason = reason;
5153
        this.vendorId = vendorId;
-
 
5154
        this.billingWarehouseId = billingWarehouseId;
-
 
5155
        this.shippingWarehouseId = shippingWarehouseId;
5257
      }
5156
      }
5258
 
5157
 
5259
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5158
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5260
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAuthorizationLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
5159
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
5261
        addAuthorizationLog_args args = new addAuthorizationLog_args();
5160
        getWarehouses_args args = new getWarehouses_args();
5262
        args.setItemId(itemId);
5161
        args.setWarehouseType(warehouseType);
5263
        args.setUsername(username);
5162
        args.setInventoryType(inventoryType);
5264
        args.setReason(reason);
5163
        args.setVendorId(vendorId);
-
 
5164
        args.setBillingWarehouseId(billingWarehouseId);
-
 
5165
        args.setShippingWarehouseId(shippingWarehouseId);
5265
        args.write(prot);
5166
        args.write(prot);
5266
        prot.writeMessageEnd();
5167
        prot.writeMessageEnd();
5267
      }
5168
      }
5268
 
5169
 
5269
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
5170
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
5270
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5171
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5271
          throw new IllegalStateException("Method call not finished!");
5172
          throw new IllegalStateException("Method call not finished!");
5272
        }
5173
        }
5273
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5174
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5274
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5275
        return (new Client(prot)).recv_addAuthorizationLog();
5176
        return (new Client(prot)).recv_getWarehouses();
5276
      }
5177
      }
5277
    }
5178
    }
5278
 
5179
 
5279
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
5180
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
5280
      checkReady();
5181
      checkReady();
Line 5382... Line 5283...
5382
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5283
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5383
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
5284
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
5384
      }
5285
      }
5385
    }
5286
    }
5386
 
5287
 
-
 
5288
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
-
 
5289
      checkReady();
-
 
5290
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5291
      this.___currentMethod = method_call;
-
 
5292
      ___manager.call(method_call);
-
 
5293
    }
-
 
5294
 
-
 
5295
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5296
      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 {
-
 
5297
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5298
      }
-
 
5299
 
-
 
5300
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5301
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5302
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
-
 
5303
        args.write(prot);
-
 
5304
        prot.writeMessageEnd();
-
 
5305
      }
-
 
5306
 
-
 
5307
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
-
 
5308
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5309
          throw new IllegalStateException("Method call not finished!");
-
 
5310
        }
-
 
5311
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5312
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5313
        return (new Client(prot)).recv_getIgnoredItemKeys();
-
 
5314
      }
-
 
5315
    }
-
 
5316
 
-
 
5317
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
5318
      checkReady();
-
 
5319
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
5320
      this.___currentMethod = method_call;
-
 
5321
      ___manager.call(method_call);
-
 
5322
    }
-
 
5323
 
-
 
5324
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5325
      private long itemId;
-
 
5326
      private long warehouseId;
-
 
5327
      private long quantity;
-
 
5328
      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 {
-
 
5329
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5330
        this.itemId = itemId;
-
 
5331
        this.warehouseId = warehouseId;
-
 
5332
        this.quantity = quantity;
-
 
5333
      }
-
 
5334
 
-
 
5335
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5336
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5337
        addBadInventory_args args = new addBadInventory_args();
-
 
5338
        args.setItemId(itemId);
-
 
5339
        args.setWarehouseId(warehouseId);
-
 
5340
        args.setQuantity(quantity);
-
 
5341
        args.write(prot);
-
 
5342
        prot.writeMessageEnd();
-
 
5343
      }
-
 
5344
 
-
 
5345
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
5346
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5347
          throw new IllegalStateException("Method call not finished!");
-
 
5348
        }
-
 
5349
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5350
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5351
        (new Client(prot)).recv_addBadInventory();
-
 
5352
      }
-
 
5353
    }
-
 
5354
 
5387
  }
5355
  }
5388
 
5356
 
5389
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5357
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5390
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5358
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5391
    public Processor(I iface) {
5359
    public Processor(I iface) {
Line 5399... Line 5367...
5399
    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) {
5367
    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) {
5400
      processMap.put("addItem", new addItem());
5368
      processMap.put("addItem", new addItem());
5401
      processMap.put("updateItem", new updateItem());
5369
      processMap.put("updateItem", new updateItem());
5402
      processMap.put("addWarehouse", new addWarehouse());
5370
      processMap.put("addWarehouse", new addWarehouse());
5403
      processMap.put("addVendor", new addVendor());
5371
      processMap.put("addVendor", new addVendor());
5404
      processMap.put("addWarehouseVendorMapping", new addWarehouseVendorMapping());
-
 
5405
      processMap.put("getVendorsForWarehouse", new getVendorsForWarehouse());
-
 
5406
      processMap.put("getWarehousesForVendor", new getWarehousesForVendor());
-
 
5407
      processMap.put("isActive", new isActive());
5372
      processMap.put("isActive", new isActive());
5408
      processMap.put("getItemStatusDescription", new getItemStatusDescription());
5373
      processMap.put("getItemStatusDescription", new getItemStatusDescription());
5409
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
5374
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
5410
      processMap.put("updateInventory", new updateInventory());
5375
      processMap.put("updateInventory", new updateInventory());
5411
      processMap.put("addInventory", new addInventory());
5376
      processMap.put("addInventory", new addInventory());
Line 5470... Line 5435...
5470
      processMap.put("searchItemsInRange", new searchItemsInRange());
5435
      processMap.put("searchItemsInRange", new searchItemsInRange());
5471
      processMap.put("getSearchResultCount", new getSearchResultCount());
5436
      processMap.put("getSearchResultCount", new getSearchResultCount());
5472
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
5437
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
5473
      processMap.put("getProductNotifications", new getProductNotifications());
5438
      processMap.put("getProductNotifications", new getProductNotifications());
5474
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5439
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5475
      processMap.put("processPurchaseOrder", new processPurchaseOrder());
-
 
5476
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5440
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
-
 
5441
      processMap.put("getWarehouses", new getWarehouses());
5477
      processMap.put("resetAvailability", new resetAvailability());
5442
      processMap.put("resetAvailability", new resetAvailability());
5478
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5443
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5479
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
5444
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
-
 
5445
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
-
 
5446
      processMap.put("addBadInventory", new addBadInventory());
5480
      return processMap;
5447
      return processMap;
5481
    }
5448
    }
5482
 
5449
 
5483
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5450
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5484
      public addItem() {
5451
      public addItem() {
Line 5562... Line 5529...
5562
        }
5529
        }
5563
        return result;
5530
        return result;
5564
      }
5531
      }
5565
    }
5532
    }
5566
 
5533
 
5567
    private static class addWarehouseVendorMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouseVendorMapping_args> {
-
 
5568
      public addWarehouseVendorMapping() {
-
 
5569
        super("addWarehouseVendorMapping");
-
 
5570
      }
-
 
5571
 
-
 
5572
      protected addWarehouseVendorMapping_args getEmptyArgsInstance() {
-
 
5573
        return new addWarehouseVendorMapping_args();
-
 
5574
      }
-
 
5575
 
-
 
5576
      protected addWarehouseVendorMapping_result getResult(I iface, addWarehouseVendorMapping_args args) throws org.apache.thrift.TException {
-
 
5577
        addWarehouseVendorMapping_result result = new addWarehouseVendorMapping_result();
-
 
5578
        result.success = iface.addWarehouseVendorMapping(args.warehouse_id, args.vendorId);
-
 
5579
        result.setSuccessIsSet(true);
-
 
5580
        return result;
-
 
5581
      }
-
 
5582
    }
-
 
5583
 
-
 
5584
    private static class getVendorsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorsForWarehouse_args> {
-
 
5585
      public getVendorsForWarehouse() {
-
 
5586
        super("getVendorsForWarehouse");
-
 
5587
      }
-
 
5588
 
-
 
5589
      protected getVendorsForWarehouse_args getEmptyArgsInstance() {
-
 
5590
        return new getVendorsForWarehouse_args();
-
 
5591
      }
-
 
5592
 
-
 
5593
      protected getVendorsForWarehouse_result getResult(I iface, getVendorsForWarehouse_args args) throws org.apache.thrift.TException {
-
 
5594
        getVendorsForWarehouse_result result = new getVendorsForWarehouse_result();
-
 
5595
        result.success = iface.getVendorsForWarehouse(args.warehouse_id);
-
 
5596
        return result;
-
 
5597
      }
-
 
5598
    }
-
 
5599
 
-
 
5600
    private static class getWarehousesForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehousesForVendor_args> {
-
 
5601
      public getWarehousesForVendor() {
-
 
5602
        super("getWarehousesForVendor");
-
 
5603
      }
-
 
5604
 
-
 
5605
      protected getWarehousesForVendor_args getEmptyArgsInstance() {
-
 
5606
        return new getWarehousesForVendor_args();
-
 
5607
      }
-
 
5608
 
-
 
5609
      protected getWarehousesForVendor_result getResult(I iface, getWarehousesForVendor_args args) throws org.apache.thrift.TException {
-
 
5610
        getWarehousesForVendor_result result = new getWarehousesForVendor_result();
-
 
5611
        result.success = iface.getWarehousesForVendor(args.vendorId);
-
 
5612
        return result;
-
 
5613
      }
-
 
5614
    }
-
 
5615
 
-
 
5616
    private static class isActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isActive_args> {
5534
    private static class isActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isActive_args> {
5617
      public isActive() {
5535
      public isActive() {
5618
        super("isActive");
5536
        super("isActive");
5619
      }
5537
      }
5620
 
5538
 
Line 6898... Line 6816...
6898
        result.success = iface.getProductNotificationRequestCount(args.startDateTime);
6816
        result.success = iface.getProductNotificationRequestCount(args.startDateTime);
6899
        return result;
6817
        return result;
6900
      }
6818
      }
6901
    }
6819
    }
6902
 
6820
 
6903
    private static class processPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processPurchaseOrder_args> {
-
 
6904
      public processPurchaseOrder() {
-
 
6905
        super("processPurchaseOrder");
-
 
6906
      }
-
 
6907
 
-
 
6908
      protected processPurchaseOrder_args getEmptyArgsInstance() {
-
 
6909
        return new processPurchaseOrder_args();
-
 
6910
      }
-
 
6911
 
-
 
6912
      protected processPurchaseOrder_result getResult(I iface, processPurchaseOrder_args args) throws org.apache.thrift.TException {
-
 
6913
        processPurchaseOrder_result result = new processPurchaseOrder_result();
-
 
6914
        try {
-
 
6915
          result.success = iface.processPurchaseOrder(args.filename, args.vendorId);
-
 
6916
        } catch (InventoryServiceException cex) {
-
 
6917
          result.cex = cex;
-
 
6918
        }
-
 
6919
        return result;
-
 
6920
      }
-
 
6921
    }
-
 
6922
 
-
 
6923
    private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {
6821
    private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {
6924
      public addAuthorizationLog() {
6822
      public addAuthorizationLog() {
6925
        super("addAuthorizationLog");
6823
        super("addAuthorizationLog");
6926
      }
6824
      }
6927
 
6825
 
Line 6939... Line 6837...
6939
        }
6837
        }
6940
        return result;
6838
        return result;
6941
      }
6839
      }
6942
    }
6840
    }
6943
 
6841
 
-
 
6842
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
-
 
6843
      public getWarehouses() {
-
 
6844
        super("getWarehouses");
-
 
6845
      }
-
 
6846
 
-
 
6847
      protected getWarehouses_args getEmptyArgsInstance() {
-
 
6848
        return new getWarehouses_args();
-
 
6849
      }
-
 
6850
 
-
 
6851
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
-
 
6852
        getWarehouses_result result = new getWarehouses_result();
-
 
6853
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
-
 
6854
        return result;
-
 
6855
      }
-
 
6856
    }
-
 
6857
 
6944
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
6858
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
6945
      public resetAvailability() {
6859
      public resetAvailability() {
6946
        super("resetAvailability");
6860
        super("resetAvailability");
6947
      }
6861
      }
6948
 
6862
 
Line 6991... Line 6905...
6991
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
6905
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
6992
        return result;
6906
        return result;
6993
      }
6907
      }
6994
    }
6908
    }
6995
 
6909
 
-
 
6910
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
-
 
6911
      public getIgnoredItemKeys() {
-
 
6912
        super("getIgnoredItemKeys");
-
 
6913
      }
-
 
6914
 
-
 
6915
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
-
 
6916
        return new getIgnoredItemKeys_args();
-
 
6917
      }
-
 
6918
 
-
 
6919
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
-
 
6920
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
-
 
6921
        result.success = iface.getIgnoredItemKeys();
-
 
6922
        return result;
-
 
6923
      }
-
 
6924
    }
-
 
6925
 
-
 
6926
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
-
 
6927
      public addBadInventory() {
-
 
6928
        super("addBadInventory");
-
 
6929
      }
-
 
6930
 
-
 
6931
      protected addBadInventory_args getEmptyArgsInstance() {
-
 
6932
        return new addBadInventory_args();
-
 
6933
      }
-
 
6934
 
-
 
6935
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
-
 
6936
        addBadInventory_result result = new addBadInventory_result();
-
 
6937
        try {
-
 
6938
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
-
 
6939
        } catch (InventoryServiceException cex) {
-
 
6940
          result.cex = cex;
-
 
6941
        }
-
 
6942
        return result;
-
 
6943
      }
-
 
6944
    }
-
 
6945
 
6996
  }
6946
  }
6997
 
6947
 
6998
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
6948
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
6999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
6949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7000
 
6950
 
Line 9697... Line 9647...
9697
      }
9647
      }
9698
    }
9648
    }
9699
 
9649
 
9700
  }
9650
  }
9701
 
9651
 
9702
  public static class addWarehouseVendorMapping_args implements org.apache.thrift.TBase<addWarehouseVendorMapping_args, addWarehouseVendorMapping_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouseVendorMapping_args");
-
 
9704
 
-
 
9705
    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);
-
 
9706
    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);
-
 
9707
 
-
 
9708
    private long warehouse_id; // required
-
 
9709
    private long vendorId; // required
-
 
9710
 
-
 
9711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9713
      WAREHOUSE_ID((short)1, "warehouse_id"),
-
 
9714
      VENDOR_ID((short)2, "vendorId");
-
 
9715
 
-
 
9716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9717
 
-
 
9718
      static {
-
 
9719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9720
          byName.put(field.getFieldName(), field);
-
 
9721
        }
-
 
9722
      }
-
 
9723
 
-
 
9724
      /**
-
 
9725
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9726
       */
-
 
9727
      public static _Fields findByThriftId(int fieldId) {
-
 
9728
        switch(fieldId) {
-
 
9729
          case 1: // WAREHOUSE_ID
-
 
9730
            return WAREHOUSE_ID;
-
 
9731
          case 2: // VENDOR_ID
-
 
9732
            return VENDOR_ID;
-
 
9733
          default:
-
 
9734
            return null;
-
 
9735
        }
-
 
9736
      }
-
 
9737
 
-
 
9738
      /**
-
 
9739
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9740
       * if it is not found.
-
 
9741
       */
-
 
9742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9743
        _Fields fields = findByThriftId(fieldId);
-
 
9744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9745
        return fields;
-
 
9746
      }
-
 
9747
 
-
 
9748
      /**
-
 
9749
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9750
       */
-
 
9751
      public static _Fields findByName(String name) {
-
 
9752
        return byName.get(name);
-
 
9753
      }
-
 
9754
 
-
 
9755
      private final short _thriftId;
-
 
9756
      private final String _fieldName;
-
 
9757
 
-
 
9758
      _Fields(short thriftId, String fieldName) {
-
 
9759
        _thriftId = thriftId;
-
 
9760
        _fieldName = fieldName;
-
 
9761
      }
-
 
9762
 
-
 
9763
      public short getThriftFieldId() {
-
 
9764
        return _thriftId;
-
 
9765
      }
-
 
9766
 
-
 
9767
      public String getFieldName() {
-
 
9768
        return _fieldName;
-
 
9769
      }
-
 
9770
    }
-
 
9771
 
-
 
9772
    // isset id assignments
-
 
9773
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
9774
    private static final int __VENDORID_ISSET_ID = 1;
-
 
9775
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
9776
 
-
 
9777
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9778
    static {
-
 
9779
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9780
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9782
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9784
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9785
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouseVendorMapping_args.class, metaDataMap);
-
 
9786
    }
-
 
9787
 
-
 
9788
    public addWarehouseVendorMapping_args() {
-
 
9789
    }
-
 
9790
 
-
 
9791
    public addWarehouseVendorMapping_args(
-
 
9792
      long warehouse_id,
-
 
9793
      long vendorId)
-
 
9794
    {
-
 
9795
      this();
-
 
9796
      this.warehouse_id = warehouse_id;
-
 
9797
      setWarehouse_idIsSet(true);
-
 
9798
      this.vendorId = vendorId;
-
 
9799
      setVendorIdIsSet(true);
-
 
9800
    }
-
 
9801
 
-
 
9802
    /**
-
 
9803
     * Performs a deep copy on <i>other</i>.
-
 
9804
     */
-
 
9805
    public addWarehouseVendorMapping_args(addWarehouseVendorMapping_args other) {
-
 
9806
      __isset_bit_vector.clear();
-
 
9807
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9808
      this.warehouse_id = other.warehouse_id;
-
 
9809
      this.vendorId = other.vendorId;
-
 
9810
    }
-
 
9811
 
-
 
9812
    public addWarehouseVendorMapping_args deepCopy() {
-
 
9813
      return new addWarehouseVendorMapping_args(this);
-
 
9814
    }
-
 
9815
 
-
 
9816
    @Override
-
 
9817
    public void clear() {
-
 
9818
      setWarehouse_idIsSet(false);
-
 
9819
      this.warehouse_id = 0;
-
 
9820
      setVendorIdIsSet(false);
-
 
9821
      this.vendorId = 0;
-
 
9822
    }
-
 
9823
 
-
 
9824
    public long getWarehouse_id() {
-
 
9825
      return this.warehouse_id;
-
 
9826
    }
-
 
9827
 
-
 
9828
    public void setWarehouse_id(long warehouse_id) {
-
 
9829
      this.warehouse_id = warehouse_id;
-
 
9830
      setWarehouse_idIsSet(true);
-
 
9831
    }
-
 
9832
 
-
 
9833
    public void unsetWarehouse_id() {
-
 
9834
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
9835
    }
-
 
9836
 
-
 
9837
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
9838
    public boolean isSetWarehouse_id() {
-
 
9839
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
9840
    }
-
 
9841
 
-
 
9842
    public void setWarehouse_idIsSet(boolean value) {
-
 
9843
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
9844
    }
-
 
9845
 
-
 
9846
    public long getVendorId() {
-
 
9847
      return this.vendorId;
-
 
9848
    }
-
 
9849
 
-
 
9850
    public void setVendorId(long vendorId) {
-
 
9851
      this.vendorId = vendorId;
-
 
9852
      setVendorIdIsSet(true);
-
 
9853
    }
-
 
9854
 
-
 
9855
    public void unsetVendorId() {
-
 
9856
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
9857
    }
-
 
9858
 
-
 
9859
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
9860
    public boolean isSetVendorId() {
-
 
9861
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
9862
    }
-
 
9863
 
-
 
9864
    public void setVendorIdIsSet(boolean value) {
-
 
9865
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
9866
    }
-
 
9867
 
-
 
9868
    public void setFieldValue(_Fields field, Object value) {
-
 
9869
      switch (field) {
-
 
9870
      case WAREHOUSE_ID:
-
 
9871
        if (value == null) {
-
 
9872
          unsetWarehouse_id();
-
 
9873
        } else {
-
 
9874
          setWarehouse_id((Long)value);
-
 
9875
        }
-
 
9876
        break;
-
 
9877
 
-
 
9878
      case VENDOR_ID:
-
 
9879
        if (value == null) {
-
 
9880
          unsetVendorId();
-
 
9881
        } else {
-
 
9882
          setVendorId((Long)value);
-
 
9883
        }
-
 
9884
        break;
-
 
9885
 
-
 
9886
      }
-
 
9887
    }
-
 
9888
 
-
 
9889
    public Object getFieldValue(_Fields field) {
-
 
9890
      switch (field) {
-
 
9891
      case WAREHOUSE_ID:
-
 
9892
        return Long.valueOf(getWarehouse_id());
-
 
9893
 
-
 
9894
      case VENDOR_ID:
-
 
9895
        return Long.valueOf(getVendorId());
-
 
9896
 
-
 
9897
      }
-
 
9898
      throw new IllegalStateException();
-
 
9899
    }
-
 
9900
 
-
 
9901
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9902
    public boolean isSet(_Fields field) {
-
 
9903
      if (field == null) {
-
 
9904
        throw new IllegalArgumentException();
-
 
9905
      }
-
 
9906
 
-
 
9907
      switch (field) {
-
 
9908
      case WAREHOUSE_ID:
-
 
9909
        return isSetWarehouse_id();
-
 
9910
      case VENDOR_ID:
-
 
9911
        return isSetVendorId();
-
 
9912
      }
-
 
9913
      throw new IllegalStateException();
-
 
9914
    }
-
 
9915
 
-
 
9916
    @Override
-
 
9917
    public boolean equals(Object that) {
-
 
9918
      if (that == null)
-
 
9919
        return false;
-
 
9920
      if (that instanceof addWarehouseVendorMapping_args)
-
 
9921
        return this.equals((addWarehouseVendorMapping_args)that);
-
 
9922
      return false;
-
 
9923
    }
-
 
9924
 
-
 
9925
    public boolean equals(addWarehouseVendorMapping_args that) {
-
 
9926
      if (that == null)
-
 
9927
        return false;
-
 
9928
 
-
 
9929
      boolean this_present_warehouse_id = true;
-
 
9930
      boolean that_present_warehouse_id = true;
-
 
9931
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
9932
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
9933
          return false;
-
 
9934
        if (this.warehouse_id != that.warehouse_id)
-
 
9935
          return false;
-
 
9936
      }
-
 
9937
 
-
 
9938
      boolean this_present_vendorId = true;
-
 
9939
      boolean that_present_vendorId = true;
-
 
9940
      if (this_present_vendorId || that_present_vendorId) {
-
 
9941
        if (!(this_present_vendorId && that_present_vendorId))
-
 
9942
          return false;
-
 
9943
        if (this.vendorId != that.vendorId)
-
 
9944
          return false;
-
 
9945
      }
-
 
9946
 
-
 
9947
      return true;
-
 
9948
    }
-
 
9949
 
-
 
9950
    @Override
-
 
9951
    public int hashCode() {
-
 
9952
      return 0;
-
 
9953
    }
-
 
9954
 
-
 
9955
    public int compareTo(addWarehouseVendorMapping_args other) {
-
 
9956
      if (!getClass().equals(other.getClass())) {
-
 
9957
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9958
      }
-
 
9959
 
-
 
9960
      int lastComparison = 0;
-
 
9961
      addWarehouseVendorMapping_args typedOther = (addWarehouseVendorMapping_args)other;
-
 
9962
 
-
 
9963
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
9964
      if (lastComparison != 0) {
-
 
9965
        return lastComparison;
-
 
9966
      }
-
 
9967
      if (isSetWarehouse_id()) {
-
 
9968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
9969
        if (lastComparison != 0) {
-
 
9970
          return lastComparison;
-
 
9971
        }
-
 
9972
      }
-
 
9973
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
9974
      if (lastComparison != 0) {
-
 
9975
        return lastComparison;
-
 
9976
      }
-
 
9977
      if (isSetVendorId()) {
-
 
9978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
9979
        if (lastComparison != 0) {
-
 
9980
          return lastComparison;
-
 
9981
        }
-
 
9982
      }
-
 
9983
      return 0;
-
 
9984
    }
-
 
9985
 
-
 
9986
    public _Fields fieldForId(int fieldId) {
-
 
9987
      return _Fields.findByThriftId(fieldId);
-
 
9988
    }
-
 
9989
 
-
 
9990
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9991
      org.apache.thrift.protocol.TField field;
-
 
9992
      iprot.readStructBegin();
-
 
9993
      while (true)
-
 
9994
      {
-
 
9995
        field = iprot.readFieldBegin();
-
 
9996
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9997
          break;
-
 
9998
        }
-
 
9999
        switch (field.id) {
-
 
10000
          case 1: // WAREHOUSE_ID
-
 
10001
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10002
              this.warehouse_id = iprot.readI64();
-
 
10003
              setWarehouse_idIsSet(true);
-
 
10004
            } else { 
-
 
10005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10006
            }
-
 
10007
            break;
-
 
10008
          case 2: // VENDOR_ID
-
 
10009
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10010
              this.vendorId = iprot.readI64();
-
 
10011
              setVendorIdIsSet(true);
-
 
10012
            } else { 
-
 
10013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10014
            }
-
 
10015
            break;
-
 
10016
          default:
-
 
10017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10018
        }
-
 
10019
        iprot.readFieldEnd();
-
 
10020
      }
-
 
10021
      iprot.readStructEnd();
-
 
10022
      validate();
-
 
10023
    }
-
 
10024
 
-
 
10025
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10026
      validate();
-
 
10027
 
-
 
10028
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10029
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
10030
      oprot.writeI64(this.warehouse_id);
-
 
10031
      oprot.writeFieldEnd();
-
 
10032
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
10033
      oprot.writeI64(this.vendorId);
-
 
10034
      oprot.writeFieldEnd();
-
 
10035
      oprot.writeFieldStop();
-
 
10036
      oprot.writeStructEnd();
-
 
10037
    }
-
 
10038
 
-
 
10039
    @Override
-
 
10040
    public String toString() {
-
 
10041
      StringBuilder sb = new StringBuilder("addWarehouseVendorMapping_args(");
-
 
10042
      boolean first = true;
-
 
10043
 
-
 
10044
      sb.append("warehouse_id:");
-
 
10045
      sb.append(this.warehouse_id);
-
 
10046
      first = false;
-
 
10047
      if (!first) sb.append(", ");
-
 
10048
      sb.append("vendorId:");
-
 
10049
      sb.append(this.vendorId);
-
 
10050
      first = false;
-
 
10051
      sb.append(")");
-
 
10052
      return sb.toString();
-
 
10053
    }
-
 
10054
 
-
 
10055
    public void validate() throws org.apache.thrift.TException {
-
 
10056
      // check for required fields
-
 
10057
    }
-
 
10058
 
-
 
10059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10060
      try {
-
 
10061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10062
      } catch (org.apache.thrift.TException te) {
-
 
10063
        throw new java.io.IOException(te);
-
 
10064
      }
-
 
10065
    }
-
 
10066
 
-
 
10067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10068
      try {
-
 
10069
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10070
        __isset_bit_vector = new BitSet(1);
-
 
10071
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10072
      } catch (org.apache.thrift.TException te) {
-
 
10073
        throw new java.io.IOException(te);
-
 
10074
      }
-
 
10075
    }
-
 
10076
 
-
 
10077
  }
-
 
10078
 
-
 
10079
  public static class addWarehouseVendorMapping_result implements org.apache.thrift.TBase<addWarehouseVendorMapping_result, addWarehouseVendorMapping_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10080
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouseVendorMapping_result");
-
 
10081
 
-
 
10082
    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);
-
 
10083
 
-
 
10084
    private boolean success; // required
-
 
10085
 
-
 
10086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10088
      SUCCESS((short)0, "success");
-
 
10089
 
-
 
10090
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10091
 
-
 
10092
      static {
-
 
10093
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10094
          byName.put(field.getFieldName(), field);
-
 
10095
        }
-
 
10096
      }
-
 
10097
 
-
 
10098
      /**
-
 
10099
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10100
       */
-
 
10101
      public static _Fields findByThriftId(int fieldId) {
-
 
10102
        switch(fieldId) {
-
 
10103
          case 0: // SUCCESS
-
 
10104
            return SUCCESS;
-
 
10105
          default:
-
 
10106
            return null;
-
 
10107
        }
-
 
10108
      }
-
 
10109
 
-
 
10110
      /**
-
 
10111
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10112
       * if it is not found.
-
 
10113
       */
-
 
10114
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10115
        _Fields fields = findByThriftId(fieldId);
-
 
10116
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10117
        return fields;
-
 
10118
      }
-
 
10119
 
-
 
10120
      /**
-
 
10121
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10122
       */
-
 
10123
      public static _Fields findByName(String name) {
-
 
10124
        return byName.get(name);
-
 
10125
      }
-
 
10126
 
-
 
10127
      private final short _thriftId;
-
 
10128
      private final String _fieldName;
-
 
10129
 
-
 
10130
      _Fields(short thriftId, String fieldName) {
-
 
10131
        _thriftId = thriftId;
-
 
10132
        _fieldName = fieldName;
-
 
10133
      }
-
 
10134
 
-
 
10135
      public short getThriftFieldId() {
-
 
10136
        return _thriftId;
-
 
10137
      }
-
 
10138
 
-
 
10139
      public String getFieldName() {
-
 
10140
        return _fieldName;
-
 
10141
      }
-
 
10142
    }
-
 
10143
 
-
 
10144
    // isset id assignments
-
 
10145
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
10146
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10147
 
-
 
10148
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10149
    static {
-
 
10150
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10151
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10152
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
10153
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10154
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouseVendorMapping_result.class, metaDataMap);
-
 
10155
    }
-
 
10156
 
-
 
10157
    public addWarehouseVendorMapping_result() {
-
 
10158
    }
-
 
10159
 
-
 
10160
    public addWarehouseVendorMapping_result(
-
 
10161
      boolean success)
-
 
10162
    {
-
 
10163
      this();
-
 
10164
      this.success = success;
-
 
10165
      setSuccessIsSet(true);
-
 
10166
    }
-
 
10167
 
-
 
10168
    /**
-
 
10169
     * Performs a deep copy on <i>other</i>.
-
 
10170
     */
-
 
10171
    public addWarehouseVendorMapping_result(addWarehouseVendorMapping_result other) {
-
 
10172
      __isset_bit_vector.clear();
-
 
10173
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10174
      this.success = other.success;
-
 
10175
    }
-
 
10176
 
-
 
10177
    public addWarehouseVendorMapping_result deepCopy() {
-
 
10178
      return new addWarehouseVendorMapping_result(this);
-
 
10179
    }
-
 
10180
 
-
 
10181
    @Override
-
 
10182
    public void clear() {
-
 
10183
      setSuccessIsSet(false);
-
 
10184
      this.success = false;
-
 
10185
    }
-
 
10186
 
-
 
10187
    public boolean isSuccess() {
-
 
10188
      return this.success;
-
 
10189
    }
-
 
10190
 
-
 
10191
    public void setSuccess(boolean success) {
-
 
10192
      this.success = success;
-
 
10193
      setSuccessIsSet(true);
-
 
10194
    }
-
 
10195
 
-
 
10196
    public void unsetSuccess() {
-
 
10197
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
10198
    }
-
 
10199
 
-
 
10200
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
10201
    public boolean isSetSuccess() {
-
 
10202
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
10203
    }
-
 
10204
 
-
 
10205
    public void setSuccessIsSet(boolean value) {
-
 
10206
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
10207
    }
-
 
10208
 
-
 
10209
    public void setFieldValue(_Fields field, Object value) {
-
 
10210
      switch (field) {
-
 
10211
      case SUCCESS:
-
 
10212
        if (value == null) {
-
 
10213
          unsetSuccess();
-
 
10214
        } else {
-
 
10215
          setSuccess((Boolean)value);
-
 
10216
        }
-
 
10217
        break;
-
 
10218
 
-
 
10219
      }
-
 
10220
    }
-
 
10221
 
-
 
10222
    public Object getFieldValue(_Fields field) {
-
 
10223
      switch (field) {
-
 
10224
      case SUCCESS:
-
 
10225
        return Boolean.valueOf(isSuccess());
-
 
10226
 
-
 
10227
      }
-
 
10228
      throw new IllegalStateException();
-
 
10229
    }
-
 
10230
 
-
 
10231
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10232
    public boolean isSet(_Fields field) {
-
 
10233
      if (field == null) {
-
 
10234
        throw new IllegalArgumentException();
-
 
10235
      }
-
 
10236
 
-
 
10237
      switch (field) {
-
 
10238
      case SUCCESS:
-
 
10239
        return isSetSuccess();
-
 
10240
      }
-
 
10241
      throw new IllegalStateException();
-
 
10242
    }
-
 
10243
 
-
 
10244
    @Override
-
 
10245
    public boolean equals(Object that) {
-
 
10246
      if (that == null)
-
 
10247
        return false;
-
 
10248
      if (that instanceof addWarehouseVendorMapping_result)
-
 
10249
        return this.equals((addWarehouseVendorMapping_result)that);
-
 
10250
      return false;
-
 
10251
    }
-
 
10252
 
-
 
10253
    public boolean equals(addWarehouseVendorMapping_result that) {
-
 
10254
      if (that == null)
-
 
10255
        return false;
-
 
10256
 
-
 
10257
      boolean this_present_success = true;
-
 
10258
      boolean that_present_success = true;
-
 
10259
      if (this_present_success || that_present_success) {
-
 
10260
        if (!(this_present_success && that_present_success))
-
 
10261
          return false;
-
 
10262
        if (this.success != that.success)
-
 
10263
          return false;
-
 
10264
      }
-
 
10265
 
-
 
10266
      return true;
-
 
10267
    }
-
 
10268
 
-
 
10269
    @Override
-
 
10270
    public int hashCode() {
-
 
10271
      return 0;
-
 
10272
    }
-
 
10273
 
-
 
10274
    public int compareTo(addWarehouseVendorMapping_result other) {
-
 
10275
      if (!getClass().equals(other.getClass())) {
-
 
10276
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10277
      }
-
 
10278
 
-
 
10279
      int lastComparison = 0;
-
 
10280
      addWarehouseVendorMapping_result typedOther = (addWarehouseVendorMapping_result)other;
-
 
10281
 
-
 
10282
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
10283
      if (lastComparison != 0) {
-
 
10284
        return lastComparison;
-
 
10285
      }
-
 
10286
      if (isSetSuccess()) {
-
 
10287
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
10288
        if (lastComparison != 0) {
-
 
10289
          return lastComparison;
-
 
10290
        }
-
 
10291
      }
-
 
10292
      return 0;
-
 
10293
    }
-
 
10294
 
-
 
10295
    public _Fields fieldForId(int fieldId) {
-
 
10296
      return _Fields.findByThriftId(fieldId);
-
 
10297
    }
-
 
10298
 
-
 
10299
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10300
      org.apache.thrift.protocol.TField field;
-
 
10301
      iprot.readStructBegin();
-
 
10302
      while (true)
-
 
10303
      {
-
 
10304
        field = iprot.readFieldBegin();
-
 
10305
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10306
          break;
-
 
10307
        }
-
 
10308
        switch (field.id) {
-
 
10309
          case 0: // SUCCESS
-
 
10310
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
10311
              this.success = iprot.readBool();
-
 
10312
              setSuccessIsSet(true);
-
 
10313
            } else { 
-
 
10314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10315
            }
-
 
10316
            break;
-
 
10317
          default:
-
 
10318
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10319
        }
-
 
10320
        iprot.readFieldEnd();
-
 
10321
      }
-
 
10322
      iprot.readStructEnd();
-
 
10323
      validate();
-
 
10324
    }
-
 
10325
 
-
 
10326
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10327
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10328
 
-
 
10329
      if (this.isSetSuccess()) {
-
 
10330
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10331
        oprot.writeBool(this.success);
-
 
10332
        oprot.writeFieldEnd();
-
 
10333
      }
-
 
10334
      oprot.writeFieldStop();
-
 
10335
      oprot.writeStructEnd();
-
 
10336
    }
-
 
10337
 
-
 
10338
    @Override
-
 
10339
    public String toString() {
-
 
10340
      StringBuilder sb = new StringBuilder("addWarehouseVendorMapping_result(");
-
 
10341
      boolean first = true;
-
 
10342
 
-
 
10343
      sb.append("success:");
-
 
10344
      sb.append(this.success);
-
 
10345
      first = false;
-
 
10346
      sb.append(")");
-
 
10347
      return sb.toString();
-
 
10348
    }
-
 
10349
 
-
 
10350
    public void validate() throws org.apache.thrift.TException {
-
 
10351
      // check for required fields
-
 
10352
    }
-
 
10353
 
-
 
10354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10355
      try {
-
 
10356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10357
      } catch (org.apache.thrift.TException te) {
-
 
10358
        throw new java.io.IOException(te);
-
 
10359
      }
-
 
10360
    }
-
 
10361
 
-
 
10362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10363
      try {
-
 
10364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10365
      } catch (org.apache.thrift.TException te) {
-
 
10366
        throw new java.io.IOException(te);
-
 
10367
      }
-
 
10368
    }
-
 
10369
 
-
 
10370
  }
-
 
10371
 
-
 
10372
  public static class getVendorsForWarehouse_args implements org.apache.thrift.TBase<getVendorsForWarehouse_args, getVendorsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorsForWarehouse_args");
-
 
10374
 
-
 
10375
    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);
-
 
10376
 
-
 
10377
    private long warehouse_id; // required
-
 
10378
 
-
 
10379
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10380
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10381
      WAREHOUSE_ID((short)1, "warehouse_id");
-
 
10382
 
-
 
10383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10384
 
-
 
10385
      static {
-
 
10386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10387
          byName.put(field.getFieldName(), field);
-
 
10388
        }
-
 
10389
      }
-
 
10390
 
-
 
10391
      /**
-
 
10392
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10393
       */
-
 
10394
      public static _Fields findByThriftId(int fieldId) {
-
 
10395
        switch(fieldId) {
-
 
10396
          case 1: // WAREHOUSE_ID
-
 
10397
            return WAREHOUSE_ID;
-
 
10398
          default:
-
 
10399
            return null;
-
 
10400
        }
-
 
10401
      }
-
 
10402
 
-
 
10403
      /**
-
 
10404
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10405
       * if it is not found.
-
 
10406
       */
-
 
10407
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10408
        _Fields fields = findByThriftId(fieldId);
-
 
10409
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10410
        return fields;
-
 
10411
      }
-
 
10412
 
-
 
10413
      /**
-
 
10414
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10415
       */
-
 
10416
      public static _Fields findByName(String name) {
-
 
10417
        return byName.get(name);
-
 
10418
      }
-
 
10419
 
-
 
10420
      private final short _thriftId;
-
 
10421
      private final String _fieldName;
-
 
10422
 
-
 
10423
      _Fields(short thriftId, String fieldName) {
-
 
10424
        _thriftId = thriftId;
-
 
10425
        _fieldName = fieldName;
-
 
10426
      }
-
 
10427
 
-
 
10428
      public short getThriftFieldId() {
-
 
10429
        return _thriftId;
-
 
10430
      }
-
 
10431
 
-
 
10432
      public String getFieldName() {
-
 
10433
        return _fieldName;
-
 
10434
      }
-
 
10435
    }
-
 
10436
 
-
 
10437
    // isset id assignments
-
 
10438
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
10439
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10440
 
-
 
10441
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10442
    static {
-
 
10443
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10444
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10445
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10446
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10447
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorsForWarehouse_args.class, metaDataMap);
-
 
10448
    }
-
 
10449
 
-
 
10450
    public getVendorsForWarehouse_args() {
-
 
10451
    }
-
 
10452
 
-
 
10453
    public getVendorsForWarehouse_args(
-
 
10454
      long warehouse_id)
-
 
10455
    {
-
 
10456
      this();
-
 
10457
      this.warehouse_id = warehouse_id;
-
 
10458
      setWarehouse_idIsSet(true);
-
 
10459
    }
-
 
10460
 
-
 
10461
    /**
-
 
10462
     * Performs a deep copy on <i>other</i>.
-
 
10463
     */
-
 
10464
    public getVendorsForWarehouse_args(getVendorsForWarehouse_args other) {
-
 
10465
      __isset_bit_vector.clear();
-
 
10466
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10467
      this.warehouse_id = other.warehouse_id;
-
 
10468
    }
-
 
10469
 
-
 
10470
    public getVendorsForWarehouse_args deepCopy() {
-
 
10471
      return new getVendorsForWarehouse_args(this);
-
 
10472
    }
-
 
10473
 
-
 
10474
    @Override
-
 
10475
    public void clear() {
-
 
10476
      setWarehouse_idIsSet(false);
-
 
10477
      this.warehouse_id = 0;
-
 
10478
    }
-
 
10479
 
-
 
10480
    public long getWarehouse_id() {
-
 
10481
      return this.warehouse_id;
-
 
10482
    }
-
 
10483
 
-
 
10484
    public void setWarehouse_id(long warehouse_id) {
-
 
10485
      this.warehouse_id = warehouse_id;
-
 
10486
      setWarehouse_idIsSet(true);
-
 
10487
    }
-
 
10488
 
-
 
10489
    public void unsetWarehouse_id() {
-
 
10490
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
10491
    }
-
 
10492
 
-
 
10493
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
10494
    public boolean isSetWarehouse_id() {
-
 
10495
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
10496
    }
-
 
10497
 
-
 
10498
    public void setWarehouse_idIsSet(boolean value) {
-
 
10499
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
10500
    }
-
 
10501
 
-
 
10502
    public void setFieldValue(_Fields field, Object value) {
-
 
10503
      switch (field) {
-
 
10504
      case WAREHOUSE_ID:
-
 
10505
        if (value == null) {
-
 
10506
          unsetWarehouse_id();
-
 
10507
        } else {
-
 
10508
          setWarehouse_id((Long)value);
-
 
10509
        }
-
 
10510
        break;
-
 
10511
 
-
 
10512
      }
-
 
10513
    }
-
 
10514
 
-
 
10515
    public Object getFieldValue(_Fields field) {
-
 
10516
      switch (field) {
-
 
10517
      case WAREHOUSE_ID:
-
 
10518
        return Long.valueOf(getWarehouse_id());
-
 
10519
 
-
 
10520
      }
-
 
10521
      throw new IllegalStateException();
-
 
10522
    }
-
 
10523
 
-
 
10524
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10525
    public boolean isSet(_Fields field) {
-
 
10526
      if (field == null) {
-
 
10527
        throw new IllegalArgumentException();
-
 
10528
      }
-
 
10529
 
-
 
10530
      switch (field) {
-
 
10531
      case WAREHOUSE_ID:
-
 
10532
        return isSetWarehouse_id();
-
 
10533
      }
-
 
10534
      throw new IllegalStateException();
-
 
10535
    }
-
 
10536
 
-
 
10537
    @Override
-
 
10538
    public boolean equals(Object that) {
-
 
10539
      if (that == null)
-
 
10540
        return false;
-
 
10541
      if (that instanceof getVendorsForWarehouse_args)
-
 
10542
        return this.equals((getVendorsForWarehouse_args)that);
-
 
10543
      return false;
-
 
10544
    }
-
 
10545
 
-
 
10546
    public boolean equals(getVendorsForWarehouse_args that) {
-
 
10547
      if (that == null)
-
 
10548
        return false;
-
 
10549
 
-
 
10550
      boolean this_present_warehouse_id = true;
-
 
10551
      boolean that_present_warehouse_id = true;
-
 
10552
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
10553
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
10554
          return false;
-
 
10555
        if (this.warehouse_id != that.warehouse_id)
-
 
10556
          return false;
-
 
10557
      }
-
 
10558
 
-
 
10559
      return true;
-
 
10560
    }
-
 
10561
 
-
 
10562
    @Override
-
 
10563
    public int hashCode() {
-
 
10564
      return 0;
-
 
10565
    }
-
 
10566
 
-
 
10567
    public int compareTo(getVendorsForWarehouse_args other) {
-
 
10568
      if (!getClass().equals(other.getClass())) {
-
 
10569
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10570
      }
-
 
10571
 
-
 
10572
      int lastComparison = 0;
-
 
10573
      getVendorsForWarehouse_args typedOther = (getVendorsForWarehouse_args)other;
-
 
10574
 
-
 
10575
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
10576
      if (lastComparison != 0) {
-
 
10577
        return lastComparison;
-
 
10578
      }
-
 
10579
      if (isSetWarehouse_id()) {
-
 
10580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
10581
        if (lastComparison != 0) {
-
 
10582
          return lastComparison;
-
 
10583
        }
-
 
10584
      }
-
 
10585
      return 0;
-
 
10586
    }
-
 
10587
 
-
 
10588
    public _Fields fieldForId(int fieldId) {
-
 
10589
      return _Fields.findByThriftId(fieldId);
-
 
10590
    }
-
 
10591
 
-
 
10592
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10593
      org.apache.thrift.protocol.TField field;
-
 
10594
      iprot.readStructBegin();
-
 
10595
      while (true)
-
 
10596
      {
-
 
10597
        field = iprot.readFieldBegin();
-
 
10598
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10599
          break;
-
 
10600
        }
-
 
10601
        switch (field.id) {
-
 
10602
          case 1: // WAREHOUSE_ID
-
 
10603
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10604
              this.warehouse_id = iprot.readI64();
-
 
10605
              setWarehouse_idIsSet(true);
-
 
10606
            } else { 
-
 
10607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10608
            }
-
 
10609
            break;
-
 
10610
          default:
-
 
10611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10612
        }
-
 
10613
        iprot.readFieldEnd();
-
 
10614
      }
-
 
10615
      iprot.readStructEnd();
-
 
10616
      validate();
-
 
10617
    }
-
 
10618
 
-
 
10619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10620
      validate();
-
 
10621
 
-
 
10622
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10623
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
10624
      oprot.writeI64(this.warehouse_id);
-
 
10625
      oprot.writeFieldEnd();
-
 
10626
      oprot.writeFieldStop();
-
 
10627
      oprot.writeStructEnd();
-
 
10628
    }
-
 
10629
 
-
 
10630
    @Override
-
 
10631
    public String toString() {
-
 
10632
      StringBuilder sb = new StringBuilder("getVendorsForWarehouse_args(");
-
 
10633
      boolean first = true;
-
 
10634
 
-
 
10635
      sb.append("warehouse_id:");
-
 
10636
      sb.append(this.warehouse_id);
-
 
10637
      first = false;
-
 
10638
      sb.append(")");
-
 
10639
      return sb.toString();
-
 
10640
    }
-
 
10641
 
-
 
10642
    public void validate() throws org.apache.thrift.TException {
-
 
10643
      // check for required fields
-
 
10644
    }
-
 
10645
 
-
 
10646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10647
      try {
-
 
10648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10649
      } catch (org.apache.thrift.TException te) {
-
 
10650
        throw new java.io.IOException(te);
-
 
10651
      }
-
 
10652
    }
-
 
10653
 
-
 
10654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10655
      try {
-
 
10656
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10657
        __isset_bit_vector = new BitSet(1);
-
 
10658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10659
      } catch (org.apache.thrift.TException te) {
-
 
10660
        throw new java.io.IOException(te);
-
 
10661
      }
-
 
10662
    }
-
 
10663
 
-
 
10664
  }
-
 
10665
 
-
 
10666
  public static class getVendorsForWarehouse_result implements org.apache.thrift.TBase<getVendorsForWarehouse_result, getVendorsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorsForWarehouse_result");
-
 
10668
 
-
 
10669
    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);
-
 
10670
 
-
 
10671
    private List<Vendor> success; // required
-
 
10672
 
-
 
10673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10675
      SUCCESS((short)0, "success");
-
 
10676
 
-
 
10677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10678
 
-
 
10679
      static {
-
 
10680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10681
          byName.put(field.getFieldName(), field);
-
 
10682
        }
-
 
10683
      }
-
 
10684
 
-
 
10685
      /**
-
 
10686
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10687
       */
-
 
10688
      public static _Fields findByThriftId(int fieldId) {
-
 
10689
        switch(fieldId) {
-
 
10690
          case 0: // SUCCESS
-
 
10691
            return SUCCESS;
-
 
10692
          default:
-
 
10693
            return null;
-
 
10694
        }
-
 
10695
      }
-
 
10696
 
-
 
10697
      /**
-
 
10698
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10699
       * if it is not found.
-
 
10700
       */
-
 
10701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10702
        _Fields fields = findByThriftId(fieldId);
-
 
10703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10704
        return fields;
-
 
10705
      }
-
 
10706
 
-
 
10707
      /**
-
 
10708
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10709
       */
-
 
10710
      public static _Fields findByName(String name) {
-
 
10711
        return byName.get(name);
-
 
10712
      }
-
 
10713
 
-
 
10714
      private final short _thriftId;
-
 
10715
      private final String _fieldName;
-
 
10716
 
-
 
10717
      _Fields(short thriftId, String fieldName) {
-
 
10718
        _thriftId = thriftId;
-
 
10719
        _fieldName = fieldName;
-
 
10720
      }
-
 
10721
 
-
 
10722
      public short getThriftFieldId() {
-
 
10723
        return _thriftId;
-
 
10724
      }
-
 
10725
 
-
 
10726
      public String getFieldName() {
-
 
10727
        return _fieldName;
-
 
10728
      }
-
 
10729
    }
-
 
10730
 
-
 
10731
    // isset id assignments
-
 
10732
 
-
 
10733
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10734
    static {
-
 
10735
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10736
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10737
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
10738
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
-
 
10739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorsForWarehouse_result.class, metaDataMap);
-
 
10741
    }
-
 
10742
 
-
 
10743
    public getVendorsForWarehouse_result() {
-
 
10744
    }
-
 
10745
 
-
 
10746
    public getVendorsForWarehouse_result(
-
 
10747
      List<Vendor> success)
-
 
10748
    {
-
 
10749
      this();
-
 
10750
      this.success = success;
-
 
10751
    }
-
 
10752
 
-
 
10753
    /**
-
 
10754
     * Performs a deep copy on <i>other</i>.
-
 
10755
     */
-
 
10756
    public getVendorsForWarehouse_result(getVendorsForWarehouse_result other) {
-
 
10757
      if (other.isSetSuccess()) {
-
 
10758
        List<Vendor> __this__success = new ArrayList<Vendor>();
-
 
10759
        for (Vendor other_element : other.success) {
-
 
10760
          __this__success.add(new Vendor(other_element));
-
 
10761
        }
-
 
10762
        this.success = __this__success;
-
 
10763
      }
-
 
10764
    }
-
 
10765
 
-
 
10766
    public getVendorsForWarehouse_result deepCopy() {
-
 
10767
      return new getVendorsForWarehouse_result(this);
-
 
10768
    }
-
 
10769
 
-
 
10770
    @Override
-
 
10771
    public void clear() {
-
 
10772
      this.success = null;
-
 
10773
    }
-
 
10774
 
-
 
10775
    public int getSuccessSize() {
-
 
10776
      return (this.success == null) ? 0 : this.success.size();
-
 
10777
    }
-
 
10778
 
-
 
10779
    public java.util.Iterator<Vendor> getSuccessIterator() {
-
 
10780
      return (this.success == null) ? null : this.success.iterator();
-
 
10781
    }
-
 
10782
 
-
 
10783
    public void addToSuccess(Vendor elem) {
-
 
10784
      if (this.success == null) {
-
 
10785
        this.success = new ArrayList<Vendor>();
-
 
10786
      }
-
 
10787
      this.success.add(elem);
-
 
10788
    }
-
 
10789
 
-
 
10790
    public List<Vendor> getSuccess() {
-
 
10791
      return this.success;
-
 
10792
    }
-
 
10793
 
-
 
10794
    public void setSuccess(List<Vendor> success) {
-
 
10795
      this.success = success;
-
 
10796
    }
-
 
10797
 
-
 
10798
    public void unsetSuccess() {
-
 
10799
      this.success = null;
-
 
10800
    }
-
 
10801
 
-
 
10802
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
10803
    public boolean isSetSuccess() {
-
 
10804
      return this.success != null;
-
 
10805
    }
-
 
10806
 
-
 
10807
    public void setSuccessIsSet(boolean value) {
-
 
10808
      if (!value) {
-
 
10809
        this.success = null;
-
 
10810
      }
-
 
10811
    }
-
 
10812
 
-
 
10813
    public void setFieldValue(_Fields field, Object value) {
-
 
10814
      switch (field) {
-
 
10815
      case SUCCESS:
-
 
10816
        if (value == null) {
-
 
10817
          unsetSuccess();
-
 
10818
        } else {
-
 
10819
          setSuccess((List<Vendor>)value);
-
 
10820
        }
-
 
10821
        break;
-
 
10822
 
-
 
10823
      }
-
 
10824
    }
-
 
10825
 
-
 
10826
    public Object getFieldValue(_Fields field) {
-
 
10827
      switch (field) {
-
 
10828
      case SUCCESS:
-
 
10829
        return getSuccess();
-
 
10830
 
-
 
10831
      }
-
 
10832
      throw new IllegalStateException();
-
 
10833
    }
-
 
10834
 
-
 
10835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10836
    public boolean isSet(_Fields field) {
-
 
10837
      if (field == null) {
-
 
10838
        throw new IllegalArgumentException();
-
 
10839
      }
-
 
10840
 
-
 
10841
      switch (field) {
-
 
10842
      case SUCCESS:
-
 
10843
        return isSetSuccess();
-
 
10844
      }
-
 
10845
      throw new IllegalStateException();
-
 
10846
    }
-
 
10847
 
-
 
10848
    @Override
-
 
10849
    public boolean equals(Object that) {
-
 
10850
      if (that == null)
-
 
10851
        return false;
-
 
10852
      if (that instanceof getVendorsForWarehouse_result)
-
 
10853
        return this.equals((getVendorsForWarehouse_result)that);
-
 
10854
      return false;
-
 
10855
    }
-
 
10856
 
-
 
10857
    public boolean equals(getVendorsForWarehouse_result that) {
-
 
10858
      if (that == null)
-
 
10859
        return false;
-
 
10860
 
-
 
10861
      boolean this_present_success = true && this.isSetSuccess();
-
 
10862
      boolean that_present_success = true && that.isSetSuccess();
-
 
10863
      if (this_present_success || that_present_success) {
-
 
10864
        if (!(this_present_success && that_present_success))
-
 
10865
          return false;
-
 
10866
        if (!this.success.equals(that.success))
-
 
10867
          return false;
-
 
10868
      }
-
 
10869
 
-
 
10870
      return true;
-
 
10871
    }
-
 
10872
 
-
 
10873
    @Override
-
 
10874
    public int hashCode() {
-
 
10875
      return 0;
-
 
10876
    }
-
 
10877
 
-
 
10878
    public int compareTo(getVendorsForWarehouse_result other) {
-
 
10879
      if (!getClass().equals(other.getClass())) {
-
 
10880
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10881
      }
-
 
10882
 
-
 
10883
      int lastComparison = 0;
-
 
10884
      getVendorsForWarehouse_result typedOther = (getVendorsForWarehouse_result)other;
-
 
10885
 
-
 
10886
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
10887
      if (lastComparison != 0) {
-
 
10888
        return lastComparison;
-
 
10889
      }
-
 
10890
      if (isSetSuccess()) {
-
 
10891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
10892
        if (lastComparison != 0) {
-
 
10893
          return lastComparison;
-
 
10894
        }
-
 
10895
      }
-
 
10896
      return 0;
-
 
10897
    }
-
 
10898
 
-
 
10899
    public _Fields fieldForId(int fieldId) {
-
 
10900
      return _Fields.findByThriftId(fieldId);
-
 
10901
    }
-
 
10902
 
-
 
10903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10904
      org.apache.thrift.protocol.TField field;
-
 
10905
      iprot.readStructBegin();
-
 
10906
      while (true)
-
 
10907
      {
-
 
10908
        field = iprot.readFieldBegin();
-
 
10909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10910
          break;
-
 
10911
        }
-
 
10912
        switch (field.id) {
-
 
10913
          case 0: // SUCCESS
-
 
10914
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
10915
              {
-
 
10916
                org.apache.thrift.protocol.TList _list19 = iprot.readListBegin();
-
 
10917
                this.success = new ArrayList<Vendor>(_list19.size);
-
 
10918
                for (int _i20 = 0; _i20 < _list19.size; ++_i20)
-
 
10919
                {
-
 
10920
                  Vendor _elem21; // required
-
 
10921
                  _elem21 = new Vendor();
-
 
10922
                  _elem21.read(iprot);
-
 
10923
                  this.success.add(_elem21);
-
 
10924
                }
-
 
10925
                iprot.readListEnd();
-
 
10926
              }
-
 
10927
            } else { 
-
 
10928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10929
            }
-
 
10930
            break;
-
 
10931
          default:
-
 
10932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10933
        }
-
 
10934
        iprot.readFieldEnd();
-
 
10935
      }
-
 
10936
      iprot.readStructEnd();
-
 
10937
      validate();
-
 
10938
    }
-
 
10939
 
-
 
10940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10941
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10942
 
-
 
10943
      if (this.isSetSuccess()) {
-
 
10944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10945
        {
-
 
10946
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
10947
          for (Vendor _iter22 : this.success)
-
 
10948
          {
-
 
10949
            _iter22.write(oprot);
-
 
10950
          }
-
 
10951
          oprot.writeListEnd();
-
 
10952
        }
-
 
10953
        oprot.writeFieldEnd();
-
 
10954
      }
-
 
10955
      oprot.writeFieldStop();
-
 
10956
      oprot.writeStructEnd();
-
 
10957
    }
-
 
10958
 
-
 
10959
    @Override
-
 
10960
    public String toString() {
-
 
10961
      StringBuilder sb = new StringBuilder("getVendorsForWarehouse_result(");
-
 
10962
      boolean first = true;
-
 
10963
 
-
 
10964
      sb.append("success:");
-
 
10965
      if (this.success == null) {
-
 
10966
        sb.append("null");
-
 
10967
      } else {
-
 
10968
        sb.append(this.success);
-
 
10969
      }
-
 
10970
      first = false;
-
 
10971
      sb.append(")");
-
 
10972
      return sb.toString();
-
 
10973
    }
-
 
10974
 
-
 
10975
    public void validate() throws org.apache.thrift.TException {
-
 
10976
      // check for required fields
-
 
10977
    }
-
 
10978
 
-
 
10979
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10980
      try {
-
 
10981
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10982
      } catch (org.apache.thrift.TException te) {
-
 
10983
        throw new java.io.IOException(te);
-
 
10984
      }
-
 
10985
    }
-
 
10986
 
-
 
10987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10988
      try {
-
 
10989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10990
      } catch (org.apache.thrift.TException te) {
-
 
10991
        throw new java.io.IOException(te);
-
 
10992
      }
-
 
10993
    }
-
 
10994
 
-
 
10995
  }
-
 
10996
 
-
 
10997
  public static class getWarehousesForVendor_args implements org.apache.thrift.TBase<getWarehousesForVendor_args, getWarehousesForVendor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehousesForVendor_args");
-
 
10999
 
-
 
11000
    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);
-
 
11001
 
-
 
11002
    private long vendorId; // required
-
 
11003
 
-
 
11004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11006
      VENDOR_ID((short)1, "vendorId");
-
 
11007
 
-
 
11008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11009
 
-
 
11010
      static {
-
 
11011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11012
          byName.put(field.getFieldName(), field);
-
 
11013
        }
-
 
11014
      }
-
 
11015
 
-
 
11016
      /**
-
 
11017
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11018
       */
-
 
11019
      public static _Fields findByThriftId(int fieldId) {
-
 
11020
        switch(fieldId) {
-
 
11021
          case 1: // VENDOR_ID
-
 
11022
            return VENDOR_ID;
-
 
11023
          default:
-
 
11024
            return null;
-
 
11025
        }
-
 
11026
      }
-
 
11027
 
-
 
11028
      /**
-
 
11029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11030
       * if it is not found.
-
 
11031
       */
-
 
11032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11033
        _Fields fields = findByThriftId(fieldId);
-
 
11034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11035
        return fields;
-
 
11036
      }
-
 
11037
 
-
 
11038
      /**
-
 
11039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11040
       */
-
 
11041
      public static _Fields findByName(String name) {
-
 
11042
        return byName.get(name);
-
 
11043
      }
-
 
11044
 
-
 
11045
      private final short _thriftId;
-
 
11046
      private final String _fieldName;
-
 
11047
 
-
 
11048
      _Fields(short thriftId, String fieldName) {
-
 
11049
        _thriftId = thriftId;
-
 
11050
        _fieldName = fieldName;
-
 
11051
      }
-
 
11052
 
-
 
11053
      public short getThriftFieldId() {
-
 
11054
        return _thriftId;
-
 
11055
      }
-
 
11056
 
-
 
11057
      public String getFieldName() {
-
 
11058
        return _fieldName;
-
 
11059
      }
-
 
11060
    }
-
 
11061
 
-
 
11062
    // isset id assignments
-
 
11063
    private static final int __VENDORID_ISSET_ID = 0;
-
 
11064
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
11065
 
-
 
11066
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11067
    static {
-
 
11068
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11069
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehousesForVendor_args.class, metaDataMap);
-
 
11073
    }
-
 
11074
 
-
 
11075
    public getWarehousesForVendor_args() {
-
 
11076
    }
-
 
11077
 
-
 
11078
    public getWarehousesForVendor_args(
-
 
11079
      long vendorId)
-
 
11080
    {
-
 
11081
      this();
-
 
11082
      this.vendorId = vendorId;
-
 
11083
      setVendorIdIsSet(true);
-
 
11084
    }
-
 
11085
 
-
 
11086
    /**
-
 
11087
     * Performs a deep copy on <i>other</i>.
-
 
11088
     */
-
 
11089
    public getWarehousesForVendor_args(getWarehousesForVendor_args other) {
-
 
11090
      __isset_bit_vector.clear();
-
 
11091
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11092
      this.vendorId = other.vendorId;
-
 
11093
    }
-
 
11094
 
-
 
11095
    public getWarehousesForVendor_args deepCopy() {
-
 
11096
      return new getWarehousesForVendor_args(this);
-
 
11097
    }
-
 
11098
 
-
 
11099
    @Override
-
 
11100
    public void clear() {
-
 
11101
      setVendorIdIsSet(false);
-
 
11102
      this.vendorId = 0;
-
 
11103
    }
-
 
11104
 
-
 
11105
    public long getVendorId() {
-
 
11106
      return this.vendorId;
-
 
11107
    }
-
 
11108
 
-
 
11109
    public void setVendorId(long vendorId) {
-
 
11110
      this.vendorId = vendorId;
-
 
11111
      setVendorIdIsSet(true);
-
 
11112
    }
-
 
11113
 
-
 
11114
    public void unsetVendorId() {
-
 
11115
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
11116
    }
-
 
11117
 
-
 
11118
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
11119
    public boolean isSetVendorId() {
-
 
11120
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
11121
    }
-
 
11122
 
-
 
11123
    public void setVendorIdIsSet(boolean value) {
-
 
11124
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
11125
    }
-
 
11126
 
-
 
11127
    public void setFieldValue(_Fields field, Object value) {
-
 
11128
      switch (field) {
-
 
11129
      case VENDOR_ID:
-
 
11130
        if (value == null) {
-
 
11131
          unsetVendorId();
-
 
11132
        } else {
-
 
11133
          setVendorId((Long)value);
-
 
11134
        }
-
 
11135
        break;
-
 
11136
 
-
 
11137
      }
-
 
11138
    }
-
 
11139
 
-
 
11140
    public Object getFieldValue(_Fields field) {
-
 
11141
      switch (field) {
-
 
11142
      case VENDOR_ID:
-
 
11143
        return Long.valueOf(getVendorId());
-
 
11144
 
-
 
11145
      }
-
 
11146
      throw new IllegalStateException();
-
 
11147
    }
-
 
11148
 
-
 
11149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11150
    public boolean isSet(_Fields field) {
-
 
11151
      if (field == null) {
-
 
11152
        throw new IllegalArgumentException();
-
 
11153
      }
-
 
11154
 
-
 
11155
      switch (field) {
-
 
11156
      case VENDOR_ID:
-
 
11157
        return isSetVendorId();
-
 
11158
      }
-
 
11159
      throw new IllegalStateException();
-
 
11160
    }
-
 
11161
 
-
 
11162
    @Override
-
 
11163
    public boolean equals(Object that) {
-
 
11164
      if (that == null)
-
 
11165
        return false;
-
 
11166
      if (that instanceof getWarehousesForVendor_args)
-
 
11167
        return this.equals((getWarehousesForVendor_args)that);
-
 
11168
      return false;
-
 
11169
    }
-
 
11170
 
-
 
11171
    public boolean equals(getWarehousesForVendor_args that) {
-
 
11172
      if (that == null)
-
 
11173
        return false;
-
 
11174
 
-
 
11175
      boolean this_present_vendorId = true;
-
 
11176
      boolean that_present_vendorId = true;
-
 
11177
      if (this_present_vendorId || that_present_vendorId) {
-
 
11178
        if (!(this_present_vendorId && that_present_vendorId))
-
 
11179
          return false;
-
 
11180
        if (this.vendorId != that.vendorId)
-
 
11181
          return false;
-
 
11182
      }
-
 
11183
 
-
 
11184
      return true;
-
 
11185
    }
-
 
11186
 
-
 
11187
    @Override
-
 
11188
    public int hashCode() {
-
 
11189
      return 0;
-
 
11190
    }
-
 
11191
 
-
 
11192
    public int compareTo(getWarehousesForVendor_args other) {
-
 
11193
      if (!getClass().equals(other.getClass())) {
-
 
11194
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11195
      }
-
 
11196
 
-
 
11197
      int lastComparison = 0;
-
 
11198
      getWarehousesForVendor_args typedOther = (getWarehousesForVendor_args)other;
-
 
11199
 
-
 
11200
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
11201
      if (lastComparison != 0) {
-
 
11202
        return lastComparison;
-
 
11203
      }
-
 
11204
      if (isSetVendorId()) {
-
 
11205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
11206
        if (lastComparison != 0) {
-
 
11207
          return lastComparison;
-
 
11208
        }
-
 
11209
      }
-
 
11210
      return 0;
-
 
11211
    }
-
 
11212
 
-
 
11213
    public _Fields fieldForId(int fieldId) {
-
 
11214
      return _Fields.findByThriftId(fieldId);
-
 
11215
    }
-
 
11216
 
-
 
11217
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11218
      org.apache.thrift.protocol.TField field;
-
 
11219
      iprot.readStructBegin();
-
 
11220
      while (true)
-
 
11221
      {
-
 
11222
        field = iprot.readFieldBegin();
-
 
11223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11224
          break;
-
 
11225
        }
-
 
11226
        switch (field.id) {
-
 
11227
          case 1: // VENDOR_ID
-
 
11228
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
11229
              this.vendorId = iprot.readI64();
-
 
11230
              setVendorIdIsSet(true);
-
 
11231
            } else { 
-
 
11232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11233
            }
-
 
11234
            break;
-
 
11235
          default:
-
 
11236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11237
        }
-
 
11238
        iprot.readFieldEnd();
-
 
11239
      }
-
 
11240
      iprot.readStructEnd();
-
 
11241
      validate();
-
 
11242
    }
-
 
11243
 
-
 
11244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11245
      validate();
-
 
11246
 
-
 
11247
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11248
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
11249
      oprot.writeI64(this.vendorId);
-
 
11250
      oprot.writeFieldEnd();
-
 
11251
      oprot.writeFieldStop();
-
 
11252
      oprot.writeStructEnd();
-
 
11253
    }
-
 
11254
 
-
 
11255
    @Override
-
 
11256
    public String toString() {
-
 
11257
      StringBuilder sb = new StringBuilder("getWarehousesForVendor_args(");
-
 
11258
      boolean first = true;
-
 
11259
 
-
 
11260
      sb.append("vendorId:");
-
 
11261
      sb.append(this.vendorId);
-
 
11262
      first = false;
-
 
11263
      sb.append(")");
-
 
11264
      return sb.toString();
-
 
11265
    }
-
 
11266
 
-
 
11267
    public void validate() throws org.apache.thrift.TException {
-
 
11268
      // check for required fields
-
 
11269
    }
-
 
11270
 
-
 
11271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11272
      try {
-
 
11273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11274
      } catch (org.apache.thrift.TException te) {
-
 
11275
        throw new java.io.IOException(te);
-
 
11276
      }
-
 
11277
    }
-
 
11278
 
-
 
11279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11280
      try {
-
 
11281
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11282
        __isset_bit_vector = new BitSet(1);
-
 
11283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11284
      } catch (org.apache.thrift.TException te) {
-
 
11285
        throw new java.io.IOException(te);
-
 
11286
      }
-
 
11287
    }
-
 
11288
 
-
 
11289
  }
-
 
11290
 
-
 
11291
  public static class getWarehousesForVendor_result implements org.apache.thrift.TBase<getWarehousesForVendor_result, getWarehousesForVendor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehousesForVendor_result");
-
 
11293
 
-
 
11294
    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);
-
 
11295
 
-
 
11296
    private List<Warehouse> success; // required
-
 
11297
 
-
 
11298
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11299
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11300
      SUCCESS((short)0, "success");
-
 
11301
 
-
 
11302
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11303
 
-
 
11304
      static {
-
 
11305
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11306
          byName.put(field.getFieldName(), field);
-
 
11307
        }
-
 
11308
      }
-
 
11309
 
-
 
11310
      /**
-
 
11311
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11312
       */
-
 
11313
      public static _Fields findByThriftId(int fieldId) {
-
 
11314
        switch(fieldId) {
-
 
11315
          case 0: // SUCCESS
-
 
11316
            return SUCCESS;
-
 
11317
          default:
-
 
11318
            return null;
-
 
11319
        }
-
 
11320
      }
-
 
11321
 
-
 
11322
      /**
-
 
11323
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11324
       * if it is not found.
-
 
11325
       */
-
 
11326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11327
        _Fields fields = findByThriftId(fieldId);
-
 
11328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11329
        return fields;
-
 
11330
      }
-
 
11331
 
-
 
11332
      /**
-
 
11333
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11334
       */
-
 
11335
      public static _Fields findByName(String name) {
-
 
11336
        return byName.get(name);
-
 
11337
      }
-
 
11338
 
-
 
11339
      private final short _thriftId;
-
 
11340
      private final String _fieldName;
-
 
11341
 
-
 
11342
      _Fields(short thriftId, String fieldName) {
-
 
11343
        _thriftId = thriftId;
-
 
11344
        _fieldName = fieldName;
-
 
11345
      }
-
 
11346
 
-
 
11347
      public short getThriftFieldId() {
-
 
11348
        return _thriftId;
-
 
11349
      }
-
 
11350
 
-
 
11351
      public String getFieldName() {
-
 
11352
        return _fieldName;
-
 
11353
      }
-
 
11354
    }
-
 
11355
 
-
 
11356
    // isset id assignments
-
 
11357
 
-
 
11358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11359
    static {
-
 
11360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11361
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11362
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
11363
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
-
 
11364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehousesForVendor_result.class, metaDataMap);
-
 
11366
    }
-
 
11367
 
-
 
11368
    public getWarehousesForVendor_result() {
-
 
11369
    }
-
 
11370
 
-
 
11371
    public getWarehousesForVendor_result(
-
 
11372
      List<Warehouse> success)
-
 
11373
    {
-
 
11374
      this();
-
 
11375
      this.success = success;
-
 
11376
    }
-
 
11377
 
-
 
11378
    /**
-
 
11379
     * Performs a deep copy on <i>other</i>.
-
 
11380
     */
-
 
11381
    public getWarehousesForVendor_result(getWarehousesForVendor_result other) {
-
 
11382
      if (other.isSetSuccess()) {
-
 
11383
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
-
 
11384
        for (Warehouse other_element : other.success) {
-
 
11385
          __this__success.add(new Warehouse(other_element));
-
 
11386
        }
-
 
11387
        this.success = __this__success;
-
 
11388
      }
-
 
11389
    }
-
 
11390
 
-
 
11391
    public getWarehousesForVendor_result deepCopy() {
-
 
11392
      return new getWarehousesForVendor_result(this);
-
 
11393
    }
-
 
11394
 
-
 
11395
    @Override
-
 
11396
    public void clear() {
-
 
11397
      this.success = null;
-
 
11398
    }
-
 
11399
 
-
 
11400
    public int getSuccessSize() {
-
 
11401
      return (this.success == null) ? 0 : this.success.size();
-
 
11402
    }
-
 
11403
 
-
 
11404
    public java.util.Iterator<Warehouse> getSuccessIterator() {
-
 
11405
      return (this.success == null) ? null : this.success.iterator();
-
 
11406
    }
-
 
11407
 
-
 
11408
    public void addToSuccess(Warehouse elem) {
-
 
11409
      if (this.success == null) {
-
 
11410
        this.success = new ArrayList<Warehouse>();
-
 
11411
      }
-
 
11412
      this.success.add(elem);
-
 
11413
    }
-
 
11414
 
-
 
11415
    public List<Warehouse> getSuccess() {
-
 
11416
      return this.success;
-
 
11417
    }
-
 
11418
 
-
 
11419
    public void setSuccess(List<Warehouse> success) {
-
 
11420
      this.success = success;
-
 
11421
    }
-
 
11422
 
-
 
11423
    public void unsetSuccess() {
-
 
11424
      this.success = null;
-
 
11425
    }
-
 
11426
 
-
 
11427
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11428
    public boolean isSetSuccess() {
-
 
11429
      return this.success != null;
-
 
11430
    }
-
 
11431
 
-
 
11432
    public void setSuccessIsSet(boolean value) {
-
 
11433
      if (!value) {
-
 
11434
        this.success = null;
-
 
11435
      }
-
 
11436
    }
-
 
11437
 
-
 
11438
    public void setFieldValue(_Fields field, Object value) {
-
 
11439
      switch (field) {
-
 
11440
      case SUCCESS:
-
 
11441
        if (value == null) {
-
 
11442
          unsetSuccess();
-
 
11443
        } else {
-
 
11444
          setSuccess((List<Warehouse>)value);
-
 
11445
        }
-
 
11446
        break;
-
 
11447
 
-
 
11448
      }
-
 
11449
    }
-
 
11450
 
-
 
11451
    public Object getFieldValue(_Fields field) {
-
 
11452
      switch (field) {
-
 
11453
      case SUCCESS:
-
 
11454
        return getSuccess();
-
 
11455
 
-
 
11456
      }
-
 
11457
      throw new IllegalStateException();
-
 
11458
    }
-
 
11459
 
-
 
11460
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11461
    public boolean isSet(_Fields field) {
-
 
11462
      if (field == null) {
-
 
11463
        throw new IllegalArgumentException();
-
 
11464
      }
-
 
11465
 
-
 
11466
      switch (field) {
-
 
11467
      case SUCCESS:
-
 
11468
        return isSetSuccess();
-
 
11469
      }
-
 
11470
      throw new IllegalStateException();
-
 
11471
    }
-
 
11472
 
-
 
11473
    @Override
-
 
11474
    public boolean equals(Object that) {
-
 
11475
      if (that == null)
-
 
11476
        return false;
-
 
11477
      if (that instanceof getWarehousesForVendor_result)
-
 
11478
        return this.equals((getWarehousesForVendor_result)that);
-
 
11479
      return false;
-
 
11480
    }
-
 
11481
 
-
 
11482
    public boolean equals(getWarehousesForVendor_result that) {
-
 
11483
      if (that == null)
-
 
11484
        return false;
-
 
11485
 
-
 
11486
      boolean this_present_success = true && this.isSetSuccess();
-
 
11487
      boolean that_present_success = true && that.isSetSuccess();
-
 
11488
      if (this_present_success || that_present_success) {
-
 
11489
        if (!(this_present_success && that_present_success))
-
 
11490
          return false;
-
 
11491
        if (!this.success.equals(that.success))
-
 
11492
          return false;
-
 
11493
      }
-
 
11494
 
-
 
11495
      return true;
-
 
11496
    }
-
 
11497
 
-
 
11498
    @Override
-
 
11499
    public int hashCode() {
-
 
11500
      return 0;
-
 
11501
    }
-
 
11502
 
-
 
11503
    public int compareTo(getWarehousesForVendor_result other) {
-
 
11504
      if (!getClass().equals(other.getClass())) {
-
 
11505
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11506
      }
-
 
11507
 
-
 
11508
      int lastComparison = 0;
-
 
11509
      getWarehousesForVendor_result typedOther = (getWarehousesForVendor_result)other;
-
 
11510
 
-
 
11511
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11512
      if (lastComparison != 0) {
-
 
11513
        return lastComparison;
-
 
11514
      }
-
 
11515
      if (isSetSuccess()) {
-
 
11516
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11517
        if (lastComparison != 0) {
-
 
11518
          return lastComparison;
-
 
11519
        }
-
 
11520
      }
-
 
11521
      return 0;
-
 
11522
    }
-
 
11523
 
-
 
11524
    public _Fields fieldForId(int fieldId) {
-
 
11525
      return _Fields.findByThriftId(fieldId);
-
 
11526
    }
-
 
11527
 
-
 
11528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11529
      org.apache.thrift.protocol.TField field;
-
 
11530
      iprot.readStructBegin();
-
 
11531
      while (true)
-
 
11532
      {
-
 
11533
        field = iprot.readFieldBegin();
-
 
11534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11535
          break;
-
 
11536
        }
-
 
11537
        switch (field.id) {
-
 
11538
          case 0: // SUCCESS
-
 
11539
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
11540
              {
-
 
11541
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
-
 
11542
                this.success = new ArrayList<Warehouse>(_list23.size);
-
 
11543
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
-
 
11544
                {
-
 
11545
                  Warehouse _elem25; // required
-
 
11546
                  _elem25 = new Warehouse();
-
 
11547
                  _elem25.read(iprot);
-
 
11548
                  this.success.add(_elem25);
-
 
11549
                }
-
 
11550
                iprot.readListEnd();
-
 
11551
              }
-
 
11552
            } else { 
-
 
11553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11554
            }
-
 
11555
            break;
-
 
11556
          default:
-
 
11557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11558
        }
-
 
11559
        iprot.readFieldEnd();
-
 
11560
      }
-
 
11561
      iprot.readStructEnd();
-
 
11562
      validate();
-
 
11563
    }
-
 
11564
 
-
 
11565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11566
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11567
 
-
 
11568
      if (this.isSetSuccess()) {
-
 
11569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11570
        {
-
 
11571
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
11572
          for (Warehouse _iter26 : this.success)
-
 
11573
          {
-
 
11574
            _iter26.write(oprot);
-
 
11575
          }
-
 
11576
          oprot.writeListEnd();
-
 
11577
        }
-
 
11578
        oprot.writeFieldEnd();
-
 
11579
      }
-
 
11580
      oprot.writeFieldStop();
-
 
11581
      oprot.writeStructEnd();
-
 
11582
    }
-
 
11583
 
-
 
11584
    @Override
-
 
11585
    public String toString() {
-
 
11586
      StringBuilder sb = new StringBuilder("getWarehousesForVendor_result(");
-
 
11587
      boolean first = true;
-
 
11588
 
-
 
11589
      sb.append("success:");
-
 
11590
      if (this.success == null) {
-
 
11591
        sb.append("null");
-
 
11592
      } else {
-
 
11593
        sb.append(this.success);
-
 
11594
      }
-
 
11595
      first = false;
-
 
11596
      sb.append(")");
-
 
11597
      return sb.toString();
-
 
11598
    }
-
 
11599
 
-
 
11600
    public void validate() throws org.apache.thrift.TException {
-
 
11601
      // check for required fields
-
 
11602
    }
-
 
11603
 
-
 
11604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11605
      try {
-
 
11606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11607
      } catch (org.apache.thrift.TException te) {
-
 
11608
        throw new java.io.IOException(te);
-
 
11609
      }
-
 
11610
    }
-
 
11611
 
-
 
11612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11613
      try {
-
 
11614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11615
      } catch (org.apache.thrift.TException te) {
-
 
11616
        throw new java.io.IOException(te);
-
 
11617
      }
-
 
11618
    }
-
 
11619
 
-
 
11620
  }
-
 
11621
 
-
 
11622
  public static class isActive_args implements org.apache.thrift.TBase<isActive_args, isActive_args._Fields>, java.io.Serializable, Cloneable   {
9652
  public static class isActive_args implements org.apache.thrift.TBase<isActive_args, isActive_args._Fields>, java.io.Serializable, Cloneable   {
11623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_args");
9653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_args");
11624
 
9654
 
11625
    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);
9655
    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);
11626
 
9656
 
Line 13375... Line 11405...
13375
            }
11405
            }
13376
            break;
11406
            break;
13377
          case 3: // AVAILABILITY
11407
          case 3: // AVAILABILITY
13378
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
11408
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13379
              {
11409
              {
13380
                org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
11410
                org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin();
13381
                this.availability = new HashMap<String,Long>(2*_map27.size);
11411
                this.availability = new HashMap<String,Long>(2*_map19.size);
13382
                for (int _i28 = 0; _i28 < _map27.size; ++_i28)
11412
                for (int _i20 = 0; _i20 < _map19.size; ++_i20)
13383
                {
11413
                {
13384
                  String _key29; // required
11414
                  String _key21; // required
13385
                  long _val30; // required
11415
                  long _val22; // required
13386
                  _key29 = iprot.readString();
11416
                  _key21 = iprot.readString();
13387
                  _val30 = iprot.readI64();
11417
                  _val22 = iprot.readI64();
13388
                  this.availability.put(_key29, _val30);
11418
                  this.availability.put(_key21, _val22);
13389
                }
11419
                }
13390
                iprot.readMapEnd();
11420
                iprot.readMapEnd();
13391
              }
11421
              }
13392
            } else { 
11422
            } else { 
13393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13416... Line 11446...
13416
      }
11446
      }
13417
      if (this.availability != null) {
11447
      if (this.availability != null) {
13418
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
11448
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
13419
        {
11449
        {
13420
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
11450
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
13421
          for (Map.Entry<String, Long> _iter31 : this.availability.entrySet())
11451
          for (Map.Entry<String, Long> _iter23 : this.availability.entrySet())
13422
          {
11452
          {
13423
            oprot.writeString(_iter31.getKey());
11453
            oprot.writeString(_iter23.getKey());
13424
            oprot.writeI64(_iter31.getValue());
11454
            oprot.writeI64(_iter23.getValue());
13425
          }
11455
          }
13426
          oprot.writeMapEnd();
11456
          oprot.writeMapEnd();
13427
        }
11457
        }
13428
        oprot.writeFieldEnd();
11458
        oprot.writeFieldEnd();
13429
      }
11459
      }
Line 14184... Line 12214...
14184
            }
12214
            }
14185
            break;
12215
            break;
14186
          case 3: // AVAILABILITY
12216
          case 3: // AVAILABILITY
14187
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
12217
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
14188
              {
12218
              {
14189
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
12219
                org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin();
14190
                this.availability = new HashMap<String,Long>(2*_map32.size);
12220
                this.availability = new HashMap<String,Long>(2*_map24.size);
14191
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
12221
                for (int _i25 = 0; _i25 < _map24.size; ++_i25)
14192
                {
12222
                {
14193
                  String _key34; // required
12223
                  String _key26; // required
14194
                  long _val35; // required
12224
                  long _val27; // required
14195
                  _key34 = iprot.readString();
12225
                  _key26 = iprot.readString();
14196
                  _val35 = iprot.readI64();
12226
                  _val27 = iprot.readI64();
14197
                  this.availability.put(_key34, _val35);
12227
                  this.availability.put(_key26, _val27);
14198
                }
12228
                }
14199
                iprot.readMapEnd();
12229
                iprot.readMapEnd();
14200
              }
12230
              }
14201
            } else { 
12231
            } else { 
14202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14225... Line 12255...
14225
      }
12255
      }
14226
      if (this.availability != null) {
12256
      if (this.availability != null) {
14227
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
12257
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
14228
        {
12258
        {
14229
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
12259
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
14230
          for (Map.Entry<String, Long> _iter36 : this.availability.entrySet())
12260
          for (Map.Entry<String, Long> _iter28 : this.availability.entrySet())
14231
          {
12261
          {
14232
            oprot.writeString(_iter36.getKey());
12262
            oprot.writeString(_iter28.getKey());
14233
            oprot.writeI64(_iter36.getValue());
12263
            oprot.writeI64(_iter28.getValue());
14234
          }
12264
          }
14235
          oprot.writeMapEnd();
12265
          oprot.writeMapEnd();
14236
        }
12266
        }
14237
        oprot.writeFieldEnd();
12267
        oprot.writeFieldEnd();
14238
      }
12268
      }
Line 19327... Line 17357...
19327
        }
17357
        }
19328
        switch (field.id) {
17358
        switch (field.id) {
19329
          case 0: // SUCCESS
17359
          case 0: // SUCCESS
19330
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17360
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19331
              {
17361
              {
19332
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
17362
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
19333
                this.success = new ArrayList<Item>(_list37.size);
17363
                this.success = new ArrayList<Item>(_list29.size);
19334
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
17364
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
19335
                {
17365
                {
19336
                  Item _elem39; // required
17366
                  Item _elem31; // required
19337
                  _elem39 = new Item();
17367
                  _elem31 = new Item();
19338
                  _elem39.read(iprot);
17368
                  _elem31.read(iprot);
19339
                  this.success.add(_elem39);
17369
                  this.success.add(_elem31);
19340
                }
17370
                }
19341
                iprot.readListEnd();
17371
                iprot.readListEnd();
19342
              }
17372
              }
19343
            } else { 
17373
            } else { 
19344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19366... Line 17396...
19366
 
17396
 
19367
      if (this.isSetSuccess()) {
17397
      if (this.isSetSuccess()) {
19368
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17398
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19369
        {
17399
        {
19370
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17400
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19371
          for (Item _iter40 : this.success)
17401
          for (Item _iter32 : this.success)
19372
          {
17402
          {
19373
            _iter40.write(oprot);
17403
            _iter32.write(oprot);
19374
          }
17404
          }
19375
          oprot.writeListEnd();
17405
          oprot.writeListEnd();
19376
        }
17406
        }
19377
        oprot.writeFieldEnd();
17407
        oprot.writeFieldEnd();
19378
      } else if (this.isSetCex()) {
17408
      } else if (this.isSetCex()) {
Line 20040... Line 18070...
20040
        }
18070
        }
20041
        switch (field.id) {
18071
        switch (field.id) {
20042
          case 0: // SUCCESS
18072
          case 0: // SUCCESS
20043
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18073
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20044
              {
18074
              {
20045
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
18075
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
20046
                this.success = new ArrayList<Item>(_list41.size);
18076
                this.success = new ArrayList<Item>(_list33.size);
20047
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
18077
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
20048
                {
18078
                {
20049
                  Item _elem43; // required
18079
                  Item _elem35; // required
20050
                  _elem43 = new Item();
18080
                  _elem35 = new Item();
20051
                  _elem43.read(iprot);
18081
                  _elem35.read(iprot);
20052
                  this.success.add(_elem43);
18082
                  this.success.add(_elem35);
20053
                }
18083
                }
20054
                iprot.readListEnd();
18084
                iprot.readListEnd();
20055
              }
18085
              }
20056
            } else { 
18086
            } else { 
20057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 20079... Line 18109...
20079
 
18109
 
20080
      if (this.isSetSuccess()) {
18110
      if (this.isSetSuccess()) {
20081
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18111
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20082
        {
18112
        {
20083
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18113
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20084
          for (Item _iter44 : this.success)
18114
          for (Item _iter36 : this.success)
20085
          {
18115
          {
20086
            _iter44.write(oprot);
18116
            _iter36.write(oprot);
20087
          }
18117
          }
20088
          oprot.writeListEnd();
18118
          oprot.writeListEnd();
20089
        }
18119
        }
20090
        oprot.writeFieldEnd();
18120
        oprot.writeFieldEnd();
20091
      } else if (this.isSetCex()) {
18121
      } else if (this.isSetCex()) {
Line 20753... Line 18783...
20753
        }
18783
        }
20754
        switch (field.id) {
18784
        switch (field.id) {
20755
          case 0: // SUCCESS
18785
          case 0: // SUCCESS
20756
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18786
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20757
              {
18787
              {
20758
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
18788
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20759
                this.success = new ArrayList<Item>(_list45.size);
18789
                this.success = new ArrayList<Item>(_list37.size);
20760
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
18790
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20761
                {
18791
                {
20762
                  Item _elem47; // required
18792
                  Item _elem39; // required
20763
                  _elem47 = new Item();
18793
                  _elem39 = new Item();
20764
                  _elem47.read(iprot);
18794
                  _elem39.read(iprot);
20765
                  this.success.add(_elem47);
18795
                  this.success.add(_elem39);
20766
                }
18796
                }
20767
                iprot.readListEnd();
18797
                iprot.readListEnd();
20768
              }
18798
              }
20769
            } else { 
18799
            } else { 
20770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 20792... Line 18822...
20792
 
18822
 
20793
      if (this.isSetSuccess()) {
18823
      if (this.isSetSuccess()) {
20794
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18824
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20795
        {
18825
        {
20796
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18826
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20797
          for (Item _iter48 : this.success)
18827
          for (Item _iter40 : this.success)
20798
          {
18828
          {
20799
            _iter48.write(oprot);
18829
            _iter40.write(oprot);
20800
          }
18830
          }
20801
          oprot.writeListEnd();
18831
          oprot.writeListEnd();
20802
        }
18832
        }
20803
        oprot.writeFieldEnd();
18833
        oprot.writeFieldEnd();
20804
      } else if (this.isSetCex()) {
18834
      } else if (this.isSetCex()) {
Line 21478... Line 19508...
21478
        }
19508
        }
21479
        switch (field.id) {
19509
        switch (field.id) {
21480
          case 0: // SUCCESS
19510
          case 0: // SUCCESS
21481
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19511
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21482
              {
19512
              {
21483
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
19513
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
21484
                this.success = new ArrayList<Item>(_list49.size);
19514
                this.success = new ArrayList<Item>(_list41.size);
21485
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
19515
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
21486
                {
19516
                {
21487
                  Item _elem51; // required
19517
                  Item _elem43; // required
21488
                  _elem51 = new Item();
19518
                  _elem43 = new Item();
21489
                  _elem51.read(iprot);
19519
                  _elem43.read(iprot);
21490
                  this.success.add(_elem51);
19520
                  this.success.add(_elem43);
21491
                }
19521
                }
21492
                iprot.readListEnd();
19522
                iprot.readListEnd();
21493
              }
19523
              }
21494
            } else { 
19524
            } else { 
21495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 21517... Line 19547...
21517
 
19547
 
21518
      if (this.isSetSuccess()) {
19548
      if (this.isSetSuccess()) {
21519
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19549
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21520
        {
19550
        {
21521
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19551
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21522
          for (Item _iter52 : this.success)
19552
          for (Item _iter44 : this.success)
21523
          {
19553
          {
21524
            _iter52.write(oprot);
19554
            _iter44.write(oprot);
21525
          }
19555
          }
21526
          oprot.writeListEnd();
19556
          oprot.writeListEnd();
21527
        }
19557
        }
21528
        oprot.writeFieldEnd();
19558
        oprot.writeFieldEnd();
21529
      } else if (this.isSetCex()) {
19559
      } else if (this.isSetCex()) {
Line 24728... Line 22758...
24728
        }
22758
        }
24729
        switch (field.id) {
22759
        switch (field.id) {
24730
          case 0: // SUCCESS
22760
          case 0: // SUCCESS
24731
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22761
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24732
              {
22762
              {
24733
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
22763
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
24734
                this.success = new ArrayList<Item>(_list53.size);
22764
                this.success = new ArrayList<Item>(_list45.size);
24735
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
22765
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
24736
                {
22766
                {
24737
                  Item _elem55; // required
22767
                  Item _elem47; // required
24738
                  _elem55 = new Item();
22768
                  _elem47 = new Item();
24739
                  _elem55.read(iprot);
22769
                  _elem47.read(iprot);
24740
                  this.success.add(_elem55);
22770
                  this.success.add(_elem47);
24741
                }
22771
                }
24742
                iprot.readListEnd();
22772
                iprot.readListEnd();
24743
              }
22773
              }
24744
            } else { 
22774
            } else { 
24745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24767... Line 22797...
24767
 
22797
 
24768
      if (this.isSetSuccess()) {
22798
      if (this.isSetSuccess()) {
24769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22799
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24770
        {
22800
        {
24771
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
22801
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24772
          for (Item _iter56 : this.success)
22802
          for (Item _iter48 : this.success)
24773
          {
22803
          {
24774
            _iter56.write(oprot);
22804
            _iter48.write(oprot);
24775
          }
22805
          }
24776
          oprot.writeListEnd();
22806
          oprot.writeListEnd();
24777
        }
22807
        }
24778
        oprot.writeFieldEnd();
22808
        oprot.writeFieldEnd();
24779
      } else if (this.isSetCex()) {
22809
      } else if (this.isSetCex()) {
Line 25622... Line 23652...
25622
        }
23652
        }
25623
        switch (field.id) {
23653
        switch (field.id) {
25624
          case 0: // SUCCESS
23654
          case 0: // SUCCESS
25625
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23655
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25626
              {
23656
              {
25627
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
23657
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
25628
                this.success = new ArrayList<Item>(_list57.size);
23658
                this.success = new ArrayList<Item>(_list49.size);
25629
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
23659
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
25630
                {
23660
                {
25631
                  Item _elem59; // required
23661
                  Item _elem51; // required
25632
                  _elem59 = new Item();
23662
                  _elem51 = new Item();
25633
                  _elem59.read(iprot);
23663
                  _elem51.read(iprot);
25634
                  this.success.add(_elem59);
23664
                  this.success.add(_elem51);
25635
                }
23665
                }
25636
                iprot.readListEnd();
23666
                iprot.readListEnd();
25637
              }
23667
              }
25638
            } else { 
23668
            } else { 
25639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 25661... Line 23691...
25661
 
23691
 
25662
      if (this.isSetSuccess()) {
23692
      if (this.isSetSuccess()) {
25663
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23693
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25664
        {
23694
        {
25665
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23695
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25666
          for (Item _iter60 : this.success)
23696
          for (Item _iter52 : this.success)
25667
          {
23697
          {
25668
            _iter60.write(oprot);
23698
            _iter52.write(oprot);
25669
          }
23699
          }
25670
          oprot.writeListEnd();
23700
          oprot.writeListEnd();
25671
        }
23701
        }
25672
        oprot.writeFieldEnd();
23702
        oprot.writeFieldEnd();
25673
      } else if (this.isSetCex()) {
23703
      } else if (this.isSetCex()) {
Line 27103... Line 25133...
27103
        }
25133
        }
27104
        switch (field.id) {
25134
        switch (field.id) {
27105
          case 0: // SUCCESS
25135
          case 0: // SUCCESS
27106
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25136
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27107
              {
25137
              {
27108
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
25138
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
27109
                this.success = new ArrayList<Long>(_list61.size);
25139
                this.success = new ArrayList<Long>(_list53.size);
27110
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
25140
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
27111
                {
25141
                {
27112
                  long _elem63; // required
25142
                  long _elem55; // required
27113
                  _elem63 = iprot.readI64();
25143
                  _elem55 = iprot.readI64();
27114
                  this.success.add(_elem63);
25144
                  this.success.add(_elem55);
27115
                }
25145
                }
27116
                iprot.readListEnd();
25146
                iprot.readListEnd();
27117
              }
25147
              }
27118
            } else { 
25148
            } else { 
27119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 27141... Line 25171...
27141
 
25171
 
27142
      if (this.isSetSuccess()) {
25172
      if (this.isSetSuccess()) {
27143
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25173
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27144
        {
25174
        {
27145
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
25175
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
27146
          for (long _iter64 : this.success)
25176
          for (long _iter56 : this.success)
27147
          {
25177
          {
27148
            oprot.writeI64(_iter64);
25178
            oprot.writeI64(_iter56);
27149
          }
25179
          }
27150
          oprot.writeListEnd();
25180
          oprot.writeListEnd();
27151
        }
25181
        }
27152
        oprot.writeFieldEnd();
25182
        oprot.writeFieldEnd();
27153
      } else if (this.isSetIsex()) {
25183
      } else if (this.isSetIsex()) {
Line 27813... Line 25843...
27813
        }
25843
        }
27814
        switch (field.id) {
25844
        switch (field.id) {
27815
          case 0: // SUCCESS
25845
          case 0: // SUCCESS
27816
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25846
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27817
              {
25847
              {
27818
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
25848
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
27819
                this.success = new ArrayList<Warehouse>(_list65.size);
25849
                this.success = new ArrayList<Warehouse>(_list57.size);
27820
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
25850
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
27821
                {
25851
                {
27822
                  Warehouse _elem67; // required
25852
                  Warehouse _elem59; // required
27823
                  _elem67 = new Warehouse();
25853
                  _elem59 = new Warehouse();
27824
                  _elem67.read(iprot);
25854
                  _elem59.read(iprot);
27825
                  this.success.add(_elem67);
25855
                  this.success.add(_elem59);
27826
                }
25856
                }
27827
                iprot.readListEnd();
25857
                iprot.readListEnd();
27828
              }
25858
              }
27829
            } else { 
25859
            } else { 
27830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 27852... Line 25882...
27852
 
25882
 
27853
      if (this.isSetSuccess()) {
25883
      if (this.isSetSuccess()) {
27854
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27855
        {
25885
        {
27856
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25886
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27857
          for (Warehouse _iter68 : this.success)
25887
          for (Warehouse _iter60 : this.success)
27858
          {
25888
          {
27859
            _iter68.write(oprot);
25889
            _iter60.write(oprot);
27860
          }
25890
          }
27861
          oprot.writeListEnd();
25891
          oprot.writeListEnd();
27862
        }
25892
        }
27863
        oprot.writeFieldEnd();
25893
        oprot.writeFieldEnd();
27864
      } else if (this.isSetCex()) {
25894
      } else if (this.isSetCex()) {
Line 29202... Line 27232...
29202
        }
27232
        }
29203
        switch (field.id) {
27233
        switch (field.id) {
29204
          case 0: // SUCCESS
27234
          case 0: // SUCCESS
29205
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27235
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29206
              {
27236
              {
29207
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
27237
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
29208
                this.success = new ArrayList<Warehouse>(_list69.size);
27238
                this.success = new ArrayList<Warehouse>(_list61.size);
29209
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
27239
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
29210
                {
27240
                {
29211
                  Warehouse _elem71; // required
27241
                  Warehouse _elem63; // required
29212
                  _elem71 = new Warehouse();
27242
                  _elem63 = new Warehouse();
29213
                  _elem71.read(iprot);
27243
                  _elem63.read(iprot);
29214
                  this.success.add(_elem71);
27244
                  this.success.add(_elem63);
29215
                }
27245
                }
29216
                iprot.readListEnd();
27246
                iprot.readListEnd();
29217
              }
27247
              }
29218
            } else { 
27248
            } else { 
29219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 29241... Line 27271...
29241
 
27271
 
29242
      if (this.isSetSuccess()) {
27272
      if (this.isSetSuccess()) {
29243
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27273
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29244
        {
27274
        {
29245
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27275
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29246
          for (Warehouse _iter72 : this.success)
27276
          for (Warehouse _iter64 : this.success)
29247
          {
27277
          {
29248
            _iter72.write(oprot);
27278
            _iter64.write(oprot);
29249
          }
27279
          }
29250
          oprot.writeListEnd();
27280
          oprot.writeListEnd();
29251
        }
27281
        }
29252
        oprot.writeFieldEnd();
27282
        oprot.writeFieldEnd();
29253
      } else if (this.isSetCex()) {
27283
      } else if (this.isSetCex()) {
Line 29915... Line 27945...
29915
        }
27945
        }
29916
        switch (field.id) {
27946
        switch (field.id) {
29917
          case 0: // SUCCESS
27947
          case 0: // SUCCESS
29918
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27948
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29919
              {
27949
              {
29920
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
27950
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
29921
                this.success = new ArrayList<Item>(_list73.size);
27951
                this.success = new ArrayList<Item>(_list65.size);
29922
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
27952
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
29923
                {
27953
                {
29924
                  Item _elem75; // required
27954
                  Item _elem67; // required
29925
                  _elem75 = new Item();
27955
                  _elem67 = new Item();
29926
                  _elem75.read(iprot);
27956
                  _elem67.read(iprot);
29927
                  this.success.add(_elem75);
27957
                  this.success.add(_elem67);
29928
                }
27958
                }
29929
                iprot.readListEnd();
27959
                iprot.readListEnd();
29930
              }
27960
              }
29931
            } else { 
27961
            } else { 
29932
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 29954... Line 27984...
29954
 
27984
 
29955
      if (this.isSetSuccess()) {
27985
      if (this.isSetSuccess()) {
29956
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27986
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29957
        {
27987
        {
29958
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27988
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29959
          for (Item _iter76 : this.success)
27989
          for (Item _iter68 : this.success)
29960
          {
27990
          {
29961
            _iter76.write(oprot);
27991
            _iter68.write(oprot);
29962
          }
27992
          }
29963
          oprot.writeListEnd();
27993
          oprot.writeListEnd();
29964
        }
27994
        }
29965
        oprot.writeFieldEnd();
27995
        oprot.writeFieldEnd();
29966
      } else if (this.isSetCex()) {
27996
      } else if (this.isSetCex()) {
Line 32212... Line 30242...
32212
        }
30242
        }
32213
        switch (field.id) {
30243
        switch (field.id) {
32214
          case 0: // SUCCESS
30244
          case 0: // SUCCESS
32215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30245
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32216
              {
30246
              {
32217
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
30247
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
32218
                this.success = new ArrayList<Item>(_list77.size);
30248
                this.success = new ArrayList<Item>(_list69.size);
32219
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
30249
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
32220
                {
30250
                {
32221
                  Item _elem79; // required
30251
                  Item _elem71; // required
32222
                  _elem79 = new Item();
30252
                  _elem71 = new Item();
32223
                  _elem79.read(iprot);
30253
                  _elem71.read(iprot);
32224
                  this.success.add(_elem79);
30254
                  this.success.add(_elem71);
32225
                }
30255
                }
32226
                iprot.readListEnd();
30256
                iprot.readListEnd();
32227
              }
30257
              }
32228
            } else { 
30258
            } else { 
32229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 32251... Line 30281...
32251
 
30281
 
32252
      if (this.isSetSuccess()) {
30282
      if (this.isSetSuccess()) {
32253
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30283
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32254
        {
30284
        {
32255
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30285
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
32256
          for (Item _iter80 : this.success)
30286
          for (Item _iter72 : this.success)
32257
          {
30287
          {
32258
            _iter80.write(oprot);
30288
            _iter72.write(oprot);
32259
          }
30289
          }
32260
          oprot.writeListEnd();
30290
          oprot.writeListEnd();
32261
        }
30291
        }
32262
        oprot.writeFieldEnd();
30292
        oprot.writeFieldEnd();
32263
      } else if (this.isSetIsex()) {
30293
      } else if (this.isSetIsex()) {
Line 33179... Line 31209...
33179
        }
31209
        }
33180
        switch (field.id) {
31210
        switch (field.id) {
33181
          case 0: // SUCCESS
31211
          case 0: // SUCCESS
33182
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31212
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33183
              {
31213
              {
33184
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
31214
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
33185
                this.success = new ArrayList<Long>(_list81.size);
31215
                this.success = new ArrayList<Long>(_list73.size);
33186
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
31216
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
33187
                {
31217
                {
33188
                  long _elem83; // required
31218
                  long _elem75; // required
33189
                  _elem83 = iprot.readI64();
31219
                  _elem75 = iprot.readI64();
33190
                  this.success.add(_elem83);
31220
                  this.success.add(_elem75);
33191
                }
31221
                }
33192
                iprot.readListEnd();
31222
                iprot.readListEnd();
33193
              }
31223
              }
33194
            } else { 
31224
            } else { 
33195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33217... Line 31247...
33217
 
31247
 
33218
      if (this.isSetSuccess()) {
31248
      if (this.isSetSuccess()) {
33219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31249
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33220
        {
31250
        {
33221
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
31251
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
33222
          for (long _iter84 : this.success)
31252
          for (long _iter76 : this.success)
33223
          {
31253
          {
33224
            oprot.writeI64(_iter84);
31254
            oprot.writeI64(_iter76);
33225
          }
31255
          }
33226
          oprot.writeListEnd();
31256
          oprot.writeListEnd();
33227
        }
31257
        }
33228
        oprot.writeFieldEnd();
31258
        oprot.writeFieldEnd();
33229
      } else if (this.isSetCex()) {
31259
      } else if (this.isSetCex()) {
Line 34378... Line 32408...
34378
        }
32408
        }
34379
        switch (field.id) {
32409
        switch (field.id) {
34380
          case 0: // SUCCESS
32410
          case 0: // SUCCESS
34381
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32411
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34382
              {
32412
              {
34383
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
32413
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
34384
                this.success = new ArrayList<Item>(_list85.size);
32414
                this.success = new ArrayList<Item>(_list77.size);
34385
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
32415
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
34386
                {
32416
                {
34387
                  Item _elem87; // required
32417
                  Item _elem79; // required
34388
                  _elem87 = new Item();
32418
                  _elem79 = new Item();
34389
                  _elem87.read(iprot);
32419
                  _elem79.read(iprot);
34390
                  this.success.add(_elem87);
32420
                  this.success.add(_elem79);
34391
                }
32421
                }
34392
                iprot.readListEnd();
32422
                iprot.readListEnd();
34393
              }
32423
              }
34394
            } else { 
32424
            } else { 
34395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34417... Line 32447...
34417
 
32447
 
34418
      if (this.isSetSuccess()) {
32448
      if (this.isSetSuccess()) {
34419
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34420
        {
32450
        {
34421
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
32451
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34422
          for (Item _iter88 : this.success)
32452
          for (Item _iter80 : this.success)
34423
          {
32453
          {
34424
            _iter88.write(oprot);
32454
            _iter80.write(oprot);
34425
          }
32455
          }
34426
          oprot.writeListEnd();
32456
          oprot.writeListEnd();
34427
        }
32457
        }
34428
        oprot.writeFieldEnd();
32458
        oprot.writeFieldEnd();
34429
      } else if (this.isSetIsex()) {
32459
      } else if (this.isSetIsex()) {
Line 35345... Line 33375...
35345
        }
33375
        }
35346
        switch (field.id) {
33376
        switch (field.id) {
35347
          case 0: // SUCCESS
33377
          case 0: // SUCCESS
35348
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33378
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35349
              {
33379
              {
35350
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
33380
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
35351
                this.success = new ArrayList<Long>(_list89.size);
33381
                this.success = new ArrayList<Long>(_list81.size);
35352
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
33382
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
35353
                {
33383
                {
35354
                  long _elem91; // required
33384
                  long _elem83; // required
35355
                  _elem91 = iprot.readI64();
33385
                  _elem83 = iprot.readI64();
35356
                  this.success.add(_elem91);
33386
                  this.success.add(_elem83);
35357
                }
33387
                }
35358
                iprot.readListEnd();
33388
                iprot.readListEnd();
35359
              }
33389
              }
35360
            } else { 
33390
            } else { 
35361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35383... Line 33413...
35383
 
33413
 
35384
      if (this.isSetSuccess()) {
33414
      if (this.isSetSuccess()) {
35385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35386
        {
33416
        {
35387
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
33417
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
35388
          for (long _iter92 : this.success)
33418
          for (long _iter84 : this.success)
35389
          {
33419
          {
35390
            oprot.writeI64(_iter92);
33420
            oprot.writeI64(_iter84);
35391
          }
33421
          }
35392
          oprot.writeListEnd();
33422
          oprot.writeListEnd();
35393
        }
33423
        }
35394
        oprot.writeFieldEnd();
33424
        oprot.writeFieldEnd();
35395
      } else if (this.isSetCex()) {
33425
      } else if (this.isSetCex()) {
Line 36544... Line 34574...
36544
        }
34574
        }
36545
        switch (field.id) {
34575
        switch (field.id) {
36546
          case 0: // SUCCESS
34576
          case 0: // SUCCESS
36547
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34577
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36548
              {
34578
              {
36549
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
34579
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
36550
                this.success = new ArrayList<Item>(_list93.size);
34580
                this.success = new ArrayList<Item>(_list85.size);
36551
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
34581
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
36552
                {
34582
                {
36553
                  Item _elem95; // required
34583
                  Item _elem87; // required
36554
                  _elem95 = new Item();
34584
                  _elem87 = new Item();
36555
                  _elem95.read(iprot);
34585
                  _elem87.read(iprot);
36556
                  this.success.add(_elem95);
34586
                  this.success.add(_elem87);
36557
                }
34587
                }
36558
                iprot.readListEnd();
34588
                iprot.readListEnd();
36559
              }
34589
              }
36560
            } else { 
34590
            } else { 
36561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 36583... Line 34613...
36583
 
34613
 
36584
      if (this.isSetSuccess()) {
34614
      if (this.isSetSuccess()) {
36585
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34615
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36586
        {
34616
        {
36587
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34617
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
36588
          for (Item _iter96 : this.success)
34618
          for (Item _iter88 : this.success)
36589
          {
34619
          {
36590
            _iter96.write(oprot);
34620
            _iter88.write(oprot);
36591
          }
34621
          }
36592
          oprot.writeListEnd();
34622
          oprot.writeListEnd();
36593
        }
34623
        }
36594
        oprot.writeFieldEnd();
34624
        oprot.writeFieldEnd();
36595
      } else if (this.isSetIsex()) {
34625
      } else if (this.isSetIsex()) {
Line 37125... Line 35155...
37125
            }
35155
            }
37126
            break;
35156
            break;
37127
          case 4: // CATEGORIES
35157
          case 4: // CATEGORIES
37128
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35158
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37129
              {
35159
              {
37130
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
35160
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
37131
                this.categories = new ArrayList<Long>(_list97.size);
35161
                this.categories = new ArrayList<Long>(_list89.size);
37132
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
35162
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
37133
                {
35163
                {
37134
                  long _elem99; // required
35164
                  long _elem91; // required
37135
                  _elem99 = iprot.readI64();
35165
                  _elem91 = iprot.readI64();
37136
                  this.categories.add(_elem99);
35166
                  this.categories.add(_elem91);
37137
                }
35167
                }
37138
                iprot.readListEnd();
35168
                iprot.readListEnd();
37139
              }
35169
              }
37140
            } else { 
35170
            } else { 
37141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37167... Line 35197...
37167
      }
35197
      }
37168
      if (this.categories != null) {
35198
      if (this.categories != null) {
37169
        oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);
35199
        oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);
37170
        {
35200
        {
37171
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));
35201
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));
37172
          for (long _iter100 : this.categories)
35202
          for (long _iter92 : this.categories)
37173
          {
35203
          {
37174
            oprot.writeI64(_iter100);
35204
            oprot.writeI64(_iter92);
37175
          }
35205
          }
37176
          oprot.writeListEnd();
35206
          oprot.writeListEnd();
37177
        }
35207
        }
37178
        oprot.writeFieldEnd();
35208
        oprot.writeFieldEnd();
37179
      }
35209
      }
Line 37551... Line 35581...
37551
        }
35581
        }
37552
        switch (field.id) {
35582
        switch (field.id) {
37553
          case 0: // SUCCESS
35583
          case 0: // SUCCESS
37554
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35584
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37555
              {
35585
              {
37556
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
35586
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
37557
                this.success = new ArrayList<Long>(_list101.size);
35587
                this.success = new ArrayList<Long>(_list93.size);
37558
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
35588
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
37559
                {
35589
                {
37560
                  long _elem103; // required
35590
                  long _elem95; // required
37561
                  _elem103 = iprot.readI64();
35591
                  _elem95 = iprot.readI64();
37562
                  this.success.add(_elem103);
35592
                  this.success.add(_elem95);
37563
                }
35593
                }
37564
                iprot.readListEnd();
35594
                iprot.readListEnd();
37565
              }
35595
              }
37566
            } else { 
35596
            } else { 
37567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37589... Line 35619...
37589
 
35619
 
37590
      if (this.isSetSuccess()) {
35620
      if (this.isSetSuccess()) {
37591
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35621
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37592
        {
35622
        {
37593
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
35623
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
37594
          for (long _iter104 : this.success)
35624
          for (long _iter96 : this.success)
37595
          {
35625
          {
37596
            oprot.writeI64(_iter104);
35626
            oprot.writeI64(_iter96);
37597
          }
35627
          }
37598
          oprot.writeListEnd();
35628
          oprot.writeListEnd();
37599
        }
35629
        }
37600
        oprot.writeFieldEnd();
35630
        oprot.writeFieldEnd();
37601
      } else if (this.isSetCex()) {
35631
      } else if (this.isSetCex()) {
Line 41108... Line 39138...
41108
        }
39138
        }
41109
        switch (field.id) {
39139
        switch (field.id) {
41110
          case 0: // SUCCESS
39140
          case 0: // SUCCESS
41111
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39141
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41112
              {
39142
              {
41113
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
39143
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
41114
                this.success = new ArrayList<Category>(_list105.size);
39144
                this.success = new ArrayList<Category>(_list97.size);
41115
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
39145
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
41116
                {
39146
                {
41117
                  Category _elem107; // required
39147
                  Category _elem99; // required
41118
                  _elem107 = new Category();
39148
                  _elem99 = new Category();
41119
                  _elem107.read(iprot);
39149
                  _elem99.read(iprot);
41120
                  this.success.add(_elem107);
39150
                  this.success.add(_elem99);
41121
                }
39151
                }
41122
                iprot.readListEnd();
39152
                iprot.readListEnd();
41123
              }
39153
              }
41124
            } else { 
39154
            } else { 
41125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 41139... Line 39169...
41139
 
39169
 
41140
      if (this.isSetSuccess()) {
39170
      if (this.isSetSuccess()) {
41141
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39171
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41142
        {
39172
        {
41143
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39173
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41144
          for (Category _iter108 : this.success)
39174
          for (Category _iter100 : this.success)
41145
          {
39175
          {
41146
            _iter108.write(oprot);
39176
            _iter100.write(oprot);
41147
          }
39177
          }
41148
          oprot.writeListEnd();
39178
          oprot.writeListEnd();
41149
        }
39179
        }
41150
        oprot.writeFieldEnd();
39180
        oprot.writeFieldEnd();
41151
      }
39181
      }
Line 41799... Line 39829...
41799
        }
39829
        }
41800
        switch (field.id) {
39830
        switch (field.id) {
41801
          case 0: // SUCCESS
39831
          case 0: // SUCCESS
41802
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39832
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41803
              {
39833
              {
41804
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
39834
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
41805
                this.success = new ArrayList<VendorItemPricing>(_list109.size);
39835
                this.success = new ArrayList<VendorItemPricing>(_list101.size);
41806
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
39836
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
41807
                {
39837
                {
41808
                  VendorItemPricing _elem111; // required
39838
                  VendorItemPricing _elem103; // required
41809
                  _elem111 = new VendorItemPricing();
39839
                  _elem103 = new VendorItemPricing();
41810
                  _elem111.read(iprot);
39840
                  _elem103.read(iprot);
41811
                  this.success.add(_elem111);
39841
                  this.success.add(_elem103);
41812
                }
39842
                }
41813
                iprot.readListEnd();
39843
                iprot.readListEnd();
41814
              }
39844
              }
41815
            } else { 
39845
            } else { 
41816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 41838... Line 39868...
41838
 
39868
 
41839
      if (this.isSetSuccess()) {
39869
      if (this.isSetSuccess()) {
41840
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39870
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41841
        {
39871
        {
41842
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39872
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41843
          for (VendorItemPricing _iter112 : this.success)
39873
          for (VendorItemPricing _iter104 : this.success)
41844
          {
39874
          {
41845
            _iter112.write(oprot);
39875
            _iter104.write(oprot);
41846
          }
39876
          }
41847
          oprot.writeListEnd();
39877
          oprot.writeListEnd();
41848
        }
39878
        }
41849
        oprot.writeFieldEnd();
39879
        oprot.writeFieldEnd();
41850
      } else if (this.isSetCex()) {
39880
      } else if (this.isSetCex()) {
Line 42939... Line 40969...
42939
        }
40969
        }
42940
        switch (field.id) {
40970
        switch (field.id) {
42941
          case 0: // SUCCESS
40971
          case 0: // SUCCESS
42942
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40972
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42943
              {
40973
              {
42944
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
40974
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
42945
                this.success = new ArrayList<Vendor>(_list113.size);
40975
                this.success = new ArrayList<Vendor>(_list105.size);
42946
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
40976
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
42947
                {
40977
                {
42948
                  Vendor _elem115; // required
40978
                  Vendor _elem107; // required
42949
                  _elem115 = new Vendor();
40979
                  _elem107 = new Vendor();
42950
                  _elem115.read(iprot);
40980
                  _elem107.read(iprot);
42951
                  this.success.add(_elem115);
40981
                  this.success.add(_elem107);
42952
                }
40982
                }
42953
                iprot.readListEnd();
40983
                iprot.readListEnd();
42954
              }
40984
              }
42955
            } else { 
40985
            } else { 
42956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 42970... Line 41000...
42970
 
41000
 
42971
      if (this.isSetSuccess()) {
41001
      if (this.isSetSuccess()) {
42972
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41002
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42973
        {
41003
        {
42974
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41004
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
42975
          for (Vendor _iter116 : this.success)
41005
          for (Vendor _iter108 : this.success)
42976
          {
41006
          {
42977
            _iter116.write(oprot);
41007
            _iter108.write(oprot);
42978
          }
41008
          }
42979
          oprot.writeListEnd();
41009
          oprot.writeListEnd();
42980
        }
41010
        }
42981
        oprot.writeFieldEnd();
41011
        oprot.writeFieldEnd();
42982
      }
41012
      }
Line 43564... Line 41594...
43564
        }
41594
        }
43565
        switch (field.id) {
41595
        switch (field.id) {
43566
          case 0: // SUCCESS
41596
          case 0: // SUCCESS
43567
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41597
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
43568
              {
41598
              {
43569
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
41599
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
43570
                this.success = new ArrayList<Item>(_list117.size);
41600
                this.success = new ArrayList<Item>(_list109.size);
43571
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
41601
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
43572
                {
41602
                {
43573
                  Item _elem119; // required
41603
                  Item _elem111; // required
43574
                  _elem119 = new Item();
41604
                  _elem111 = new Item();
43575
                  _elem119.read(iprot);
41605
                  _elem111.read(iprot);
43576
                  this.success.add(_elem119);
41606
                  this.success.add(_elem111);
43577
                }
41607
                }
43578
                iprot.readListEnd();
41608
                iprot.readListEnd();
43579
              }
41609
              }
43580
            } else { 
41610
            } else { 
43581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 43595... Line 41625...
43595
 
41625
 
43596
      if (this.isSetSuccess()) {
41626
      if (this.isSetSuccess()) {
43597
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41627
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43598
        {
41628
        {
43599
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41629
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
43600
          for (Item _iter120 : this.success)
41630
          for (Item _iter112 : this.success)
43601
          {
41631
          {
43602
            _iter120.write(oprot);
41632
            _iter112.write(oprot);
43603
          }
41633
          }
43604
          oprot.writeListEnd();
41634
          oprot.writeListEnd();
43605
        }
41635
        }
43606
        oprot.writeFieldEnd();
41636
        oprot.writeFieldEnd();
43607
      }
41637
      }
Line 46449... Line 44479...
46449
        }
44479
        }
46450
        switch (field.id) {
44480
        switch (field.id) {
46451
          case 0: // SUCCESS
44481
          case 0: // SUCCESS
46452
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44482
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46453
              {
44483
              {
46454
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
44484
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
46455
                this.success = new ArrayList<VendorItemMapping>(_list121.size);
44485
                this.success = new ArrayList<VendorItemMapping>(_list113.size);
46456
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
44486
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
46457
                {
44487
                {
46458
                  VendorItemMapping _elem123; // required
44488
                  VendorItemMapping _elem115; // required
46459
                  _elem123 = new VendorItemMapping();
44489
                  _elem115 = new VendorItemMapping();
46460
                  _elem123.read(iprot);
44490
                  _elem115.read(iprot);
46461
                  this.success.add(_elem123);
44491
                  this.success.add(_elem115);
46462
                }
44492
                }
46463
                iprot.readListEnd();
44493
                iprot.readListEnd();
46464
              }
44494
              }
46465
            } else { 
44495
            } else { 
46466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 46488... Line 44518...
46488
 
44518
 
46489
      if (this.isSetSuccess()) {
44519
      if (this.isSetSuccess()) {
46490
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44520
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46491
        {
44521
        {
46492
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
44522
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
46493
          for (VendorItemMapping _iter124 : this.success)
44523
          for (VendorItemMapping _iter116 : this.success)
46494
          {
44524
          {
46495
            _iter124.write(oprot);
44525
            _iter116.write(oprot);
46496
          }
44526
          }
46497
          oprot.writeListEnd();
44527
          oprot.writeListEnd();
46498
        }
44528
        }
46499
        oprot.writeFieldEnd();
44529
        oprot.writeFieldEnd();
46500
      } else if (this.isSetCex()) {
44530
      } else if (this.isSetCex()) {
Line 48425... Line 46455...
48425
        }
46455
        }
48426
        switch (field.id) {
46456
        switch (field.id) {
48427
          case 0: // SUCCESS
46457
          case 0: // SUCCESS
48428
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46458
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48429
              {
46459
              {
48430
                org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
46460
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
48431
                this.success = new ArrayList<Item>(_list125.size);
46461
                this.success = new ArrayList<Item>(_list117.size);
48432
                for (int _i126 = 0; _i126 < _list125.size; ++_i126)
46462
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
48433
                {
46463
                {
48434
                  Item _elem127; // required
46464
                  Item _elem119; // required
48435
                  _elem127 = new Item();
46465
                  _elem119 = new Item();
48436
                  _elem127.read(iprot);
46466
                  _elem119.read(iprot);
48437
                  this.success.add(_elem127);
46467
                  this.success.add(_elem119);
48438
                }
46468
                }
48439
                iprot.readListEnd();
46469
                iprot.readListEnd();
48440
              }
46470
              }
48441
            } else { 
46471
            } else { 
48442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48456... Line 46486...
48456
 
46486
 
48457
      if (this.isSetSuccess()) {
46487
      if (this.isSetSuccess()) {
48458
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46488
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48459
        {
46489
        {
48460
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
46490
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48461
          for (Item _iter128 : this.success)
46491
          for (Item _iter120 : this.success)
48462
          {
46492
          {
48463
            _iter128.write(oprot);
46493
            _iter120.write(oprot);
48464
          }
46494
          }
48465
          oprot.writeListEnd();
46495
          oprot.writeListEnd();
48466
        }
46496
        }
48467
        oprot.writeFieldEnd();
46497
        oprot.writeFieldEnd();
48468
      }
46498
      }
Line 49138... Line 47168...
49138
        }
47168
        }
49139
        switch (field.id) {
47169
        switch (field.id) {
49140
          case 0: // SUCCESS
47170
          case 0: // SUCCESS
49141
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47171
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49142
              {
47172
              {
49143
                org.apache.thrift.protocol.TList _list129 = iprot.readListBegin();
47173
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
49144
                this.success = new ArrayList<Item>(_list129.size);
47174
                this.success = new ArrayList<Item>(_list121.size);
49145
                for (int _i130 = 0; _i130 < _list129.size; ++_i130)
47175
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
49146
                {
47176
                {
49147
                  Item _elem131; // required
47177
                  Item _elem123; // required
49148
                  _elem131 = new Item();
47178
                  _elem123 = new Item();
49149
                  _elem131.read(iprot);
47179
                  _elem123.read(iprot);
49150
                  this.success.add(_elem131);
47180
                  this.success.add(_elem123);
49151
                }
47181
                }
49152
                iprot.readListEnd();
47182
                iprot.readListEnd();
49153
              }
47183
              }
49154
            } else { 
47184
            } else { 
49155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49169... Line 47199...
49169
 
47199
 
49170
      if (this.isSetSuccess()) {
47200
      if (this.isSetSuccess()) {
49171
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49172
        {
47202
        {
49173
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
47203
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
49174
          for (Item _iter132 : this.success)
47204
          for (Item _iter124 : this.success)
49175
          {
47205
          {
49176
            _iter132.write(oprot);
47206
            _iter124.write(oprot);
49177
          }
47207
          }
49178
          oprot.writeListEnd();
47208
          oprot.writeListEnd();
49179
        }
47209
        }
49180
        oprot.writeFieldEnd();
47210
        oprot.writeFieldEnd();
49181
      }
47211
      }
Line 49927... Line 47957...
49927
        }
47957
        }
49928
        switch (field.id) {
47958
        switch (field.id) {
49929
          case 0: // SUCCESS
47959
          case 0: // SUCCESS
49930
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47960
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49931
              {
47961
              {
49932
                org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
47962
                org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
49933
                this.success = new ArrayList<Long>(_list133.size);
47963
                this.success = new ArrayList<Long>(_list125.size);
49934
                for (int _i134 = 0; _i134 < _list133.size; ++_i134)
47964
                for (int _i126 = 0; _i126 < _list125.size; ++_i126)
49935
                {
47965
                {
49936
                  long _elem135; // required
47966
                  long _elem127; // required
49937
                  _elem135 = iprot.readI64();
47967
                  _elem127 = iprot.readI64();
49938
                  this.success.add(_elem135);
47968
                  this.success.add(_elem127);
49939
                }
47969
                }
49940
                iprot.readListEnd();
47970
                iprot.readListEnd();
49941
              }
47971
              }
49942
            } else { 
47972
            } else { 
49943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49957... Line 47987...
49957
 
47987
 
49958
      if (this.isSetSuccess()) {
47988
      if (this.isSetSuccess()) {
49959
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47989
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49960
        {
47990
        {
49961
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
47991
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49962
          for (long _iter136 : this.success)
47992
          for (long _iter128 : this.success)
49963
          {
47993
          {
49964
            oprot.writeI64(_iter136);
47994
            oprot.writeI64(_iter128);
49965
          }
47995
          }
49966
          oprot.writeListEnd();
47996
          oprot.writeListEnd();
49967
        }
47997
        }
49968
        oprot.writeFieldEnd();
47998
        oprot.writeFieldEnd();
49969
      }
47999
      }
Line 51719... Line 49749...
51719
        }
49749
        }
51720
        switch (field.id) {
49750
        switch (field.id) {
51721
          case 0: // SUCCESS
49751
          case 0: // SUCCESS
51722
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49752
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51723
              {
49753
              {
51724
                org.apache.thrift.protocol.TList _list137 = iprot.readListBegin();
49754
                org.apache.thrift.protocol.TList _list129 = iprot.readListBegin();
51725
                this.success = new ArrayList<String>(_list137.size);
49755
                this.success = new ArrayList<String>(_list129.size);
51726
                for (int _i138 = 0; _i138 < _list137.size; ++_i138)
49756
                for (int _i130 = 0; _i130 < _list129.size; ++_i130)
51727
                {
49757
                {
51728
                  String _elem139; // required
49758
                  String _elem131; // required
51729
                  _elem139 = iprot.readString();
49759
                  _elem131 = iprot.readString();
51730
                  this.success.add(_elem139);
49760
                  this.success.add(_elem131);
51731
                }
49761
                }
51732
                iprot.readListEnd();
49762
                iprot.readListEnd();
51733
              }
49763
              }
51734
            } else { 
49764
            } else { 
51735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51749... Line 49779...
51749
 
49779
 
51750
      if (this.isSetSuccess()) {
49780
      if (this.isSetSuccess()) {
51751
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49781
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51752
        {
49782
        {
51753
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
49783
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
51754
          for (String _iter140 : this.success)
49784
          for (String _iter132 : this.success)
51755
          {
49785
          {
51756
            oprot.writeString(_iter140);
49786
            oprot.writeString(_iter132);
51757
          }
49787
          }
51758
          oprot.writeListEnd();
49788
          oprot.writeListEnd();
51759
        }
49789
        }
51760
        oprot.writeFieldEnd();
49790
        oprot.writeFieldEnd();
51761
      }
49791
      }
Line 52249... Line 50279...
52249
        }
50279
        }
52250
        switch (field.id) {
50280
        switch (field.id) {
52251
          case 0: // SUCCESS
50281
          case 0: // SUCCESS
52252
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52253
              {
50283
              {
52254
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
50284
                org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
52255
                this.success = new ArrayList<String>(_list141.size);
50285
                this.success = new ArrayList<String>(_list133.size);
52256
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
50286
                for (int _i134 = 0; _i134 < _list133.size; ++_i134)
52257
                {
50287
                {
52258
                  String _elem143; // required
50288
                  String _elem135; // required
52259
                  _elem143 = iprot.readString();
50289
                  _elem135 = iprot.readString();
52260
                  this.success.add(_elem143);
50290
                  this.success.add(_elem135);
52261
                }
50291
                }
52262
                iprot.readListEnd();
50292
                iprot.readListEnd();
52263
              }
50293
              }
52264
            } else { 
50294
            } else { 
52265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52279... Line 50309...
52279
 
50309
 
52280
      if (this.isSetSuccess()) {
50310
      if (this.isSetSuccess()) {
52281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52282
        {
50312
        {
52283
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
50313
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
52284
          for (String _iter144 : this.success)
50314
          for (String _iter136 : this.success)
52285
          {
50315
          {
52286
            oprot.writeString(_iter144);
50316
            oprot.writeString(_iter136);
52287
          }
50317
          }
52288
          oprot.writeListEnd();
50318
          oprot.writeListEnd();
52289
        }
50319
        }
52290
        oprot.writeFieldEnd();
50320
        oprot.writeFieldEnd();
52291
      }
50321
      }
Line 52779... Line 50809...
52779
        }
50809
        }
52780
        switch (field.id) {
50810
        switch (field.id) {
52781
          case 0: // SUCCESS
50811
          case 0: // SUCCESS
52782
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50812
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52783
              {
50813
              {
52784
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
50814
                org.apache.thrift.protocol.TList _list137 = iprot.readListBegin();
52785
                this.success = new ArrayList<Source>(_list145.size);
50815
                this.success = new ArrayList<Source>(_list137.size);
52786
                for (int _i146 = 0; _i146 < _list145.size; ++_i146)
50816
                for (int _i138 = 0; _i138 < _list137.size; ++_i138)
52787
                {
50817
                {
52788
                  Source _elem147; // required
50818
                  Source _elem139; // required
52789
                  _elem147 = new Source();
50819
                  _elem139 = new Source();
52790
                  _elem147.read(iprot);
50820
                  _elem139.read(iprot);
52791
                  this.success.add(_elem147);
50821
                  this.success.add(_elem139);
52792
                }
50822
                }
52793
                iprot.readListEnd();
50823
                iprot.readListEnd();
52794
              }
50824
              }
52795
            } else { 
50825
            } else { 
52796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52810... Line 50840...
52810
 
50840
 
52811
      if (this.isSetSuccess()) {
50841
      if (this.isSetSuccess()) {
52812
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50842
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52813
        {
50843
        {
52814
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
50844
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52815
          for (Source _iter148 : this.success)
50845
          for (Source _iter140 : this.success)
52816
          {
50846
          {
52817
            _iter148.write(oprot);
50847
            _iter140.write(oprot);
52818
          }
50848
          }
52819
          oprot.writeListEnd();
50849
          oprot.writeListEnd();
52820
        }
50850
        }
52821
        oprot.writeFieldEnd();
50851
        oprot.writeFieldEnd();
52822
      }
50852
      }
Line 54816... Line 52846...
54816
        }
52846
        }
54817
        switch (field.id) {
52847
        switch (field.id) {
54818
          case 0: // SUCCESS
52848
          case 0: // SUCCESS
54819
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52849
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54820
              {
52850
              {
54821
                org.apache.thrift.protocol.TList _list149 = iprot.readListBegin();
52851
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
54822
                this.success = new ArrayList<SourceItemPricing>(_list149.size);
52852
                this.success = new ArrayList<SourceItemPricing>(_list141.size);
54823
                for (int _i150 = 0; _i150 < _list149.size; ++_i150)
52853
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
54824
                {
52854
                {
54825
                  SourceItemPricing _elem151; // required
52855
                  SourceItemPricing _elem143; // required
54826
                  _elem151 = new SourceItemPricing();
52856
                  _elem143 = new SourceItemPricing();
54827
                  _elem151.read(iprot);
52857
                  _elem143.read(iprot);
54828
                  this.success.add(_elem151);
52858
                  this.success.add(_elem143);
54829
                }
52859
                }
54830
                iprot.readListEnd();
52860
                iprot.readListEnd();
54831
              }
52861
              }
54832
            } else { 
52862
            } else { 
54833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54855... Line 52885...
54855
 
52885
 
54856
      if (this.isSetSuccess()) {
52886
      if (this.isSetSuccess()) {
54857
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54858
        {
52888
        {
54859
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52889
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
54860
          for (SourceItemPricing _iter152 : this.success)
52890
          for (SourceItemPricing _iter144 : this.success)
54861
          {
52891
          {
54862
            _iter152.write(oprot);
52892
            _iter144.write(oprot);
54863
          }
52893
          }
54864
          oprot.writeListEnd();
52894
          oprot.writeListEnd();
54865
        }
52895
        }
54866
        oprot.writeFieldEnd();
52896
        oprot.writeFieldEnd();
54867
      } else if (this.isSetCex()) {
52897
      } else if (this.isSetCex()) {
Line 56063... Line 54093...
56063
        }
54093
        }
56064
        switch (field.id) {
54094
        switch (field.id) {
56065
          case 1: // SEARCH_TERMS
54095
          case 1: // SEARCH_TERMS
56066
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54096
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56067
              {
54097
              {
56068
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
54098
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
56069
                this.searchTerms = new ArrayList<String>(_list153.size);
54099
                this.searchTerms = new ArrayList<String>(_list145.size);
56070
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
54100
                for (int _i146 = 0; _i146 < _list145.size; ++_i146)
56071
                {
54101
                {
56072
                  String _elem155; // required
54102
                  String _elem147; // required
56073
                  _elem155 = iprot.readString();
54103
                  _elem147 = iprot.readString();
56074
                  this.searchTerms.add(_elem155);
54104
                  this.searchTerms.add(_elem147);
56075
                }
54105
                }
56076
                iprot.readListEnd();
54106
                iprot.readListEnd();
56077
              }
54107
              }
56078
            } else { 
54108
            } else { 
56079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56110... Line 54140...
56110
      oprot.writeStructBegin(STRUCT_DESC);
54140
      oprot.writeStructBegin(STRUCT_DESC);
56111
      if (this.searchTerms != null) {
54141
      if (this.searchTerms != null) {
56112
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
54142
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
56113
        {
54143
        {
56114
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
54144
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
56115
          for (String _iter156 : this.searchTerms)
54145
          for (String _iter148 : this.searchTerms)
56116
          {
54146
          {
56117
            oprot.writeString(_iter156);
54147
            oprot.writeString(_iter148);
56118
          }
54148
          }
56119
          oprot.writeListEnd();
54149
          oprot.writeListEnd();
56120
        }
54150
        }
56121
        oprot.writeFieldEnd();
54151
        oprot.writeFieldEnd();
56122
      }
54152
      }
Line 56424... Line 54454...
56424
        }
54454
        }
56425
        switch (field.id) {
54455
        switch (field.id) {
56426
          case 0: // SUCCESS
54456
          case 0: // SUCCESS
56427
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54457
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56428
              {
54458
              {
56429
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
54459
                org.apache.thrift.protocol.TList _list149 = iprot.readListBegin();
56430
                this.success = new ArrayList<Item>(_list157.size);
54460
                this.success = new ArrayList<Item>(_list149.size);
56431
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
54461
                for (int _i150 = 0; _i150 < _list149.size; ++_i150)
56432
                {
54462
                {
56433
                  Item _elem159; // required
54463
                  Item _elem151; // required
56434
                  _elem159 = new Item();
54464
                  _elem151 = new Item();
56435
                  _elem159.read(iprot);
54465
                  _elem151.read(iprot);
56436
                  this.success.add(_elem159);
54466
                  this.success.add(_elem151);
56437
                }
54467
                }
56438
                iprot.readListEnd();
54468
                iprot.readListEnd();
56439
              }
54469
              }
56440
            } else { 
54470
            } else { 
56441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56455... Line 54485...
56455
 
54485
 
56456
      if (this.isSetSuccess()) {
54486
      if (this.isSetSuccess()) {
56457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54487
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56458
        {
54488
        {
56459
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
54489
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56460
          for (Item _iter160 : this.success)
54490
          for (Item _iter152 : this.success)
56461
          {
54491
          {
56462
            _iter160.write(oprot);
54492
            _iter152.write(oprot);
56463
          }
54493
          }
56464
          oprot.writeListEnd();
54494
          oprot.writeListEnd();
56465
        }
54495
        }
56466
        oprot.writeFieldEnd();
54496
        oprot.writeFieldEnd();
56467
      }
54497
      }
Line 56755... Line 54785...
56755
        }
54785
        }
56756
        switch (field.id) {
54786
        switch (field.id) {
56757
          case 1: // SEARCH_TERMS
54787
          case 1: // SEARCH_TERMS
56758
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54788
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56759
              {
54789
              {
56760
                org.apache.thrift.protocol.TList _list161 = iprot.readListBegin();
54790
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
56761
                this.searchTerms = new ArrayList<String>(_list161.size);
54791
                this.searchTerms = new ArrayList<String>(_list153.size);
56762
                for (int _i162 = 0; _i162 < _list161.size; ++_i162)
54792
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
56763
                {
54793
                {
56764
                  String _elem163; // required
54794
                  String _elem155; // required
56765
                  _elem163 = iprot.readString();
54795
                  _elem155 = iprot.readString();
56766
                  this.searchTerms.add(_elem163);
54796
                  this.searchTerms.add(_elem155);
56767
                }
54797
                }
56768
                iprot.readListEnd();
54798
                iprot.readListEnd();
56769
              }
54799
              }
56770
            } else { 
54800
            } else { 
56771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56786... Line 54816...
56786
      oprot.writeStructBegin(STRUCT_DESC);
54816
      oprot.writeStructBegin(STRUCT_DESC);
56787
      if (this.searchTerms != null) {
54817
      if (this.searchTerms != null) {
56788
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
54818
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
56789
        {
54819
        {
56790
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
54820
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
56791
          for (String _iter164 : this.searchTerms)
54821
          for (String _iter156 : this.searchTerms)
56792
          {
54822
          {
56793
            oprot.writeString(_iter164);
54823
            oprot.writeString(_iter156);
56794
          }
54824
          }
56795
          oprot.writeListEnd();
54825
          oprot.writeListEnd();
56796
        }
54826
        }
56797
        oprot.writeFieldEnd();
54827
        oprot.writeFieldEnd();
56798
      }
54828
      }
Line 57673... Line 55703...
57673
        }
55703
        }
57674
        switch (field.id) {
55704
        switch (field.id) {
57675
          case 0: // SUCCESS
55705
          case 0: // SUCCESS
57676
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55706
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57677
              {
55707
              {
57678
                org.apache.thrift.protocol.TList _list165 = iprot.readListBegin();
55708
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
57679
                this.success = new ArrayList<AvailableAndReservedStock>(_list165.size);
55709
                this.success = new ArrayList<AvailableAndReservedStock>(_list157.size);
57680
                for (int _i166 = 0; _i166 < _list165.size; ++_i166)
55710
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
57681
                {
55711
                {
57682
                  AvailableAndReservedStock _elem167; // required
55712
                  AvailableAndReservedStock _elem159; // required
57683
                  _elem167 = new AvailableAndReservedStock();
55713
                  _elem159 = new AvailableAndReservedStock();
57684
                  _elem167.read(iprot);
55714
                  _elem159.read(iprot);
57685
                  this.success.add(_elem167);
55715
                  this.success.add(_elem159);
57686
                }
55716
                }
57687
                iprot.readListEnd();
55717
                iprot.readListEnd();
57688
              }
55718
              }
57689
            } else { 
55719
            } else { 
57690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57704... Line 55734...
57704
 
55734
 
57705
      if (this.isSetSuccess()) {
55735
      if (this.isSetSuccess()) {
57706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55736
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57707
        {
55737
        {
57708
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
55738
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57709
          for (AvailableAndReservedStock _iter168 : this.success)
55739
          for (AvailableAndReservedStock _iter160 : this.success)
57710
          {
55740
          {
57711
            _iter168.write(oprot);
55741
            _iter160.write(oprot);
57712
          }
55742
          }
57713
          oprot.writeListEnd();
55743
          oprot.writeListEnd();
57714
        }
55744
        }
57715
        oprot.writeFieldEnd();
55745
        oprot.writeFieldEnd();
57716
      }
55746
      }
Line 58298... Line 56328...
58298
        }
56328
        }
58299
        switch (field.id) {
56329
        switch (field.id) {
58300
          case 0: // SUCCESS
56330
          case 0: // SUCCESS
58301
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56331
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58302
              {
56332
              {
58303
                org.apache.thrift.protocol.TList _list169 = iprot.readListBegin();
56333
                org.apache.thrift.protocol.TList _list161 = iprot.readListBegin();
58304
                this.success = new ArrayList<ProductNotificationRequest>(_list169.size);
56334
                this.success = new ArrayList<ProductNotificationRequest>(_list161.size);
58305
                for (int _i170 = 0; _i170 < _list169.size; ++_i170)
56335
                for (int _i162 = 0; _i162 < _list161.size; ++_i162)
58306
                {
56336
                {
58307
                  ProductNotificationRequest _elem171; // required
56337
                  ProductNotificationRequest _elem163; // required
58308
                  _elem171 = new ProductNotificationRequest();
56338
                  _elem163 = new ProductNotificationRequest();
58309
                  _elem171.read(iprot);
56339
                  _elem163.read(iprot);
58310
                  this.success.add(_elem171);
56340
                  this.success.add(_elem163);
58311
                }
56341
                }
58312
                iprot.readListEnd();
56342
                iprot.readListEnd();
58313
              }
56343
              }
58314
            } else { 
56344
            } else { 
58315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58329... Line 56359...
58329
 
56359
 
58330
      if (this.isSetSuccess()) {
56360
      if (this.isSetSuccess()) {
58331
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58332
        {
56362
        {
58333
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56363
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
58334
          for (ProductNotificationRequest _iter172 : this.success)
56364
          for (ProductNotificationRequest _iter164 : this.success)
58335
          {
56365
          {
58336
            _iter172.write(oprot);
56366
            _iter164.write(oprot);
58337
          }
56367
          }
58338
          oprot.writeListEnd();
56368
          oprot.writeListEnd();
58339
        }
56369
        }
58340
        oprot.writeFieldEnd();
56370
        oprot.writeFieldEnd();
58341
      }
56371
      }
Line 58923... Line 56953...
58923
        }
56953
        }
58924
        switch (field.id) {
56954
        switch (field.id) {
58925
          case 0: // SUCCESS
56955
          case 0: // SUCCESS
58926
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56956
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58927
              {
56957
              {
58928
                org.apache.thrift.protocol.TList _list173 = iprot.readListBegin();
56958
                org.apache.thrift.protocol.TList _list165 = iprot.readListBegin();
58929
                this.success = new ArrayList<ProductNotificationRequestCount>(_list173.size);
56959
                this.success = new ArrayList<ProductNotificationRequestCount>(_list165.size);
58930
                for (int _i174 = 0; _i174 < _list173.size; ++_i174)
56960
                for (int _i166 = 0; _i166 < _list165.size; ++_i166)
58931
                {
56961
                {
58932
                  ProductNotificationRequestCount _elem175; // required
56962
                  ProductNotificationRequestCount _elem167; // required
58933
                  _elem175 = new ProductNotificationRequestCount();
56963
                  _elem167 = new ProductNotificationRequestCount();
58934
                  _elem175.read(iprot);
56964
                  _elem167.read(iprot);
58935
                  this.success.add(_elem175);
56965
                  this.success.add(_elem167);
58936
                }
56966
                }
58937
                iprot.readListEnd();
56967
                iprot.readListEnd();
58938
              }
56968
              }
58939
            } else { 
56969
            } else { 
58940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58954... Line 56984...
58954
 
56984
 
58955
      if (this.isSetSuccess()) {
56985
      if (this.isSetSuccess()) {
58956
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56986
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58957
        {
56987
        {
58958
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56988
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
58959
          for (ProductNotificationRequestCount _iter176 : this.success)
56989
          for (ProductNotificationRequestCount _iter168 : this.success)
58960
          {
56990
          {
58961
            _iter176.write(oprot);
56991
            _iter168.write(oprot);
58962
          }
56992
          }
58963
          oprot.writeListEnd();
56993
          oprot.writeListEnd();
58964
        }
56994
        }
58965
        oprot.writeFieldEnd();
56995
        oprot.writeFieldEnd();
58966
      }
56996
      }
Line 59004... Line 57034...
59004
      }
57034
      }
59005
    }
57035
    }
59006
 
57036
 
59007
  }
57037
  }
59008
 
57038
 
59009
  public static class processPurchaseOrder_args implements org.apache.thrift.TBase<processPurchaseOrder_args, processPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
57039
  public static class addAuthorizationLog_args implements org.apache.thrift.TBase<addAuthorizationLog_args, addAuthorizationLog_args._Fields>, java.io.Serializable, Cloneable   {
59010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processPurchaseOrder_args");
57040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_args");
59011
 
57041
 
-
 
57042
    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);
59012
    private static final org.apache.thrift.protocol.TField FILENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("filename", org.apache.thrift.protocol.TType.STRING, (short)1);
57043
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);
59013
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I32, (short)2);
57044
    private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);
59014
 
57045
 
-
 
57046
    private long itemId; // required
59015
    private String filename; // required
57047
    private String username; // required
59016
    private int vendorId; // required
57048
    private String reason; // required
59017
 
57049
 
59018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57052
      ITEM_ID((short)1, "itemId"),
59020
      FILENAME((short)1, "filename"),
57053
      USERNAME((short)2, "username"),
59021
      VENDOR_ID((short)2, "vendorId");
57054
      REASON((short)3, "reason");
59022
 
57055
 
59023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59024
 
57057
 
59025
      static {
57058
      static {
59026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 59031... Line 57064...
59031
      /**
57064
      /**
59032
       * Find the _Fields constant that matches fieldId, or null if its not found.
57065
       * Find the _Fields constant that matches fieldId, or null if its not found.
59033
       */
57066
       */
59034
      public static _Fields findByThriftId(int fieldId) {
57067
      public static _Fields findByThriftId(int fieldId) {
59035
        switch(fieldId) {
57068
        switch(fieldId) {
-
 
57069
          case 1: // ITEM_ID
-
 
57070
            return ITEM_ID;
59036
          case 1: // FILENAME
57071
          case 2: // USERNAME
59037
            return FILENAME;
57072
            return USERNAME;
59038
          case 2: // VENDOR_ID
57073
          case 3: // REASON
59039
            return VENDOR_ID;
57074
            return REASON;
59040
          default:
57075
          default:
59041
            return null;
57076
            return null;
59042
        }
57077
        }
59043
      }
57078
      }
59044
 
57079
 
Line 59075... Line 57110...
59075
        return _fieldName;
57110
        return _fieldName;
59076
      }
57111
      }
59077
    }
57112
    }
59078
 
57113
 
59079
    // isset id assignments
57114
    // isset id assignments
59080
    private static final int __VENDORID_ISSET_ID = 0;
57115
    private static final int __ITEMID_ISSET_ID = 0;
59081
    private BitSet __isset_bit_vector = new BitSet(1);
57116
    private BitSet __isset_bit_vector = new BitSet(1);
59082
 
57117
 
59083
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59084
    static {
57119
    static {
59085
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57121
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
59086
      tmpMap.put(_Fields.FILENAME, new org.apache.thrift.meta_data.FieldMetaData("filename", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57123
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
57125
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
57126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
59088
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
59090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processPurchaseOrder_args.class, metaDataMap);
57128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_args.class, metaDataMap);
59092
    }
57129
    }
59093
 
57130
 
59094
    public processPurchaseOrder_args() {
57131
    public addAuthorizationLog_args() {
59095
    }
57132
    }
59096
 
57133
 
59097
    public processPurchaseOrder_args(
57134
    public addAuthorizationLog_args(
-
 
57135
      long itemId,
59098
      String filename,
57136
      String username,
59099
      int vendorId)
57137
      String reason)
59100
    {
57138
    {
59101
      this();
57139
      this();
59102
      this.filename = filename;
57140
      this.itemId = itemId;
-
 
57141
      setItemIdIsSet(true);
59103
      this.vendorId = vendorId;
57142
      this.username = username;
59104
      setVendorIdIsSet(true);
57143
      this.reason = reason;
59105
    }
57144
    }
59106
 
57145
 
59107
    /**
57146
    /**
59108
     * Performs a deep copy on <i>other</i>.
57147
     * Performs a deep copy on <i>other</i>.
59109
     */
57148
     */
59110
    public processPurchaseOrder_args(processPurchaseOrder_args other) {
57149
    public addAuthorizationLog_args(addAuthorizationLog_args other) {
59111
      __isset_bit_vector.clear();
57150
      __isset_bit_vector.clear();
59112
      __isset_bit_vector.or(other.__isset_bit_vector);
57151
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57152
      this.itemId = other.itemId;
59113
      if (other.isSetFilename()) {
57153
      if (other.isSetUsername()) {
59114
        this.filename = other.filename;
57154
        this.username = other.username;
-
 
57155
      }
-
 
57156
      if (other.isSetReason()) {
-
 
57157
        this.reason = other.reason;
59115
      }
57158
      }
59116
      this.vendorId = other.vendorId;
-
 
59117
    }
57159
    }
59118
 
57160
 
59119
    public processPurchaseOrder_args deepCopy() {
57161
    public addAuthorizationLog_args deepCopy() {
59120
      return new processPurchaseOrder_args(this);
57162
      return new addAuthorizationLog_args(this);
59121
    }
57163
    }
59122
 
57164
 
59123
    @Override
57165
    @Override
59124
    public void clear() {
57166
    public void clear() {
-
 
57167
      setItemIdIsSet(false);
59125
      this.filename = null;
57168
      this.itemId = 0;
59126
      setVendorIdIsSet(false);
57169
      this.username = null;
59127
      this.vendorId = 0;
57170
      this.reason = null;
59128
    }
57171
    }
59129
 
57172
 
59130
    public String getFilename() {
57173
    public long getItemId() {
59131
      return this.filename;
57174
      return this.itemId;
59132
    }
57175
    }
59133
 
57176
 
59134
    public void setFilename(String filename) {
57177
    public void setItemId(long itemId) {
59135
      this.filename = filename;
57178
      this.itemId = itemId;
-
 
57179
      setItemIdIsSet(true);
59136
    }
57180
    }
59137
 
57181
 
59138
    public void unsetFilename() {
57182
    public void unsetItemId() {
59139
      this.filename = null;
57183
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
59140
    }
57184
    }
59141
 
57185
 
59142
    /** Returns true if field filename is set (has been assigned a value) and false otherwise */
57186
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
59143
    public boolean isSetFilename() {
57187
    public boolean isSetItemId() {
-
 
57188
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
57189
    }
-
 
57190
 
-
 
57191
    public void setItemIdIsSet(boolean value) {
-
 
57192
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
57193
    }
-
 
57194
 
-
 
57195
    public String getUsername() {
59144
      return this.filename != null;
57196
      return this.username;
59145
    }
57197
    }
59146
 
57198
 
-
 
57199
    public void setUsername(String username) {
-
 
57200
      this.username = username;
-
 
57201
    }
-
 
57202
 
-
 
57203
    public void unsetUsername() {
-
 
57204
      this.username = null;
-
 
57205
    }
-
 
57206
 
-
 
57207
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
-
 
57208
    public boolean isSetUsername() {
-
 
57209
      return this.username != null;
-
 
57210
    }
-
 
57211
 
59147
    public void setFilenameIsSet(boolean value) {
57212
    public void setUsernameIsSet(boolean value) {
59148
      if (!value) {
57213
      if (!value) {
59149
        this.filename = null;
57214
        this.username = null;
59150
      }
57215
      }
59151
    }
57216
    }
59152
 
57217
 
59153
    public int getVendorId() {
57218
    public String getReason() {
59154
      return this.vendorId;
57219
      return this.reason;
59155
    }
57220
    }
59156
 
57221
 
59157
    public void setVendorId(int vendorId) {
57222
    public void setReason(String reason) {
59158
      this.vendorId = vendorId;
57223
      this.reason = reason;
59159
      setVendorIdIsSet(true);
-
 
59160
    }
57224
    }
59161
 
57225
 
59162
    public void unsetVendorId() {
57226
    public void unsetReason() {
59163
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
57227
      this.reason = null;
59164
    }
57228
    }
59165
 
57229
 
59166
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
57230
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
59167
    public boolean isSetVendorId() {
57231
    public boolean isSetReason() {
59168
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
57232
      return this.reason != null;
59169
    }
57233
    }
59170
 
57234
 
59171
    public void setVendorIdIsSet(boolean value) {
57235
    public void setReasonIsSet(boolean value) {
-
 
57236
      if (!value) {
59172
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
57237
        this.reason = null;
-
 
57238
      }
59173
    }
57239
    }
59174
 
57240
 
59175
    public void setFieldValue(_Fields field, Object value) {
57241
    public void setFieldValue(_Fields field, Object value) {
59176
      switch (field) {
57242
      switch (field) {
59177
      case FILENAME:
57243
      case ITEM_ID:
59178
        if (value == null) {
57244
        if (value == null) {
59179
          unsetFilename();
57245
          unsetItemId();
59180
        } else {
57246
        } else {
59181
          setFilename((String)value);
57247
          setItemId((Long)value);
59182
        }
57248
        }
59183
        break;
57249
        break;
59184
 
57250
 
59185
      case VENDOR_ID:
57251
      case USERNAME:
59186
        if (value == null) {
57252
        if (value == null) {
-
 
57253
          unsetUsername();
-
 
57254
        } else {
-
 
57255
          setUsername((String)value);
-
 
57256
        }
-
 
57257
        break;
-
 
57258
 
-
 
57259
      case REASON:
-
 
57260
        if (value == null) {
59187
          unsetVendorId();
57261
          unsetReason();
59188
        } else {
57262
        } else {
59189
          setVendorId((Integer)value);
57263
          setReason((String)value);
59190
        }
57264
        }
59191
        break;
57265
        break;
59192
 
57266
 
59193
      }
57267
      }
59194
    }
57268
    }
59195
 
57269
 
59196
    public Object getFieldValue(_Fields field) {
57270
    public Object getFieldValue(_Fields field) {
59197
      switch (field) {
57271
      switch (field) {
59198
      case FILENAME:
57272
      case ITEM_ID:
59199
        return getFilename();
57273
        return Long.valueOf(getItemId());
59200
 
57274
 
-
 
57275
      case USERNAME:
-
 
57276
        return getUsername();
-
 
57277
 
59201
      case VENDOR_ID:
57278
      case REASON:
59202
        return Integer.valueOf(getVendorId());
57279
        return getReason();
59203
 
57280
 
59204
      }
57281
      }
59205
      throw new IllegalStateException();
57282
      throw new IllegalStateException();
59206
    }
57283
    }
59207
 
57284
 
Line 59210... Line 57287...
59210
      if (field == null) {
57287
      if (field == null) {
59211
        throw new IllegalArgumentException();
57288
        throw new IllegalArgumentException();
59212
      }
57289
      }
59213
 
57290
 
59214
      switch (field) {
57291
      switch (field) {
-
 
57292
      case ITEM_ID:
-
 
57293
        return isSetItemId();
59215
      case FILENAME:
57294
      case USERNAME:
59216
        return isSetFilename();
57295
        return isSetUsername();
59217
      case VENDOR_ID:
57296
      case REASON:
59218
        return isSetVendorId();
57297
        return isSetReason();
59219
      }
57298
      }
59220
      throw new IllegalStateException();
57299
      throw new IllegalStateException();
59221
    }
57300
    }
59222
 
57301
 
59223
    @Override
57302
    @Override
59224
    public boolean equals(Object that) {
57303
    public boolean equals(Object that) {
59225
      if (that == null)
57304
      if (that == null)
59226
        return false;
57305
        return false;
59227
      if (that instanceof processPurchaseOrder_args)
57306
      if (that instanceof addAuthorizationLog_args)
59228
        return this.equals((processPurchaseOrder_args)that);
57307
        return this.equals((addAuthorizationLog_args)that);
59229
      return false;
57308
      return false;
59230
    }
57309
    }
59231
 
57310
 
59232
    public boolean equals(processPurchaseOrder_args that) {
57311
    public boolean equals(addAuthorizationLog_args that) {
59233
      if (that == null)
57312
      if (that == null)
59234
        return false;
57313
        return false;
59235
 
57314
 
59236
      boolean this_present_filename = true && this.isSetFilename();
57315
      boolean this_present_itemId = true;
59237
      boolean that_present_filename = true && that.isSetFilename();
57316
      boolean that_present_itemId = true;
59238
      if (this_present_filename || that_present_filename) {
57317
      if (this_present_itemId || that_present_itemId) {
59239
        if (!(this_present_filename && that_present_filename))
57318
        if (!(this_present_itemId && that_present_itemId))
59240
          return false;
57319
          return false;
59241
        if (!this.filename.equals(that.filename))
57320
        if (this.itemId != that.itemId)
59242
          return false;
57321
          return false;
59243
      }
57322
      }
59244
 
57323
 
59245
      boolean this_present_vendorId = true;
57324
      boolean this_present_username = true && this.isSetUsername();
59246
      boolean that_present_vendorId = true;
57325
      boolean that_present_username = true && that.isSetUsername();
59247
      if (this_present_vendorId || that_present_vendorId) {
57326
      if (this_present_username || that_present_username) {
59248
        if (!(this_present_vendorId && that_present_vendorId))
57327
        if (!(this_present_username && that_present_username))
59249
          return false;
57328
          return false;
-
 
57329
        if (!this.username.equals(that.username))
-
 
57330
          return false;
-
 
57331
      }
-
 
57332
 
-
 
57333
      boolean this_present_reason = true && this.isSetReason();
-
 
57334
      boolean that_present_reason = true && that.isSetReason();
-
 
57335
      if (this_present_reason || that_present_reason) {
-
 
57336
        if (!(this_present_reason && that_present_reason))
-
 
57337
          return false;
59250
        if (this.vendorId != that.vendorId)
57338
        if (!this.reason.equals(that.reason))
59251
          return false;
57339
          return false;
59252
      }
57340
      }
59253
 
57341
 
59254
      return true;
57342
      return true;
59255
    }
57343
    }
Line 59257... Line 57345...
59257
    @Override
57345
    @Override
59258
    public int hashCode() {
57346
    public int hashCode() {
59259
      return 0;
57347
      return 0;
59260
    }
57348
    }
59261
 
57349
 
59262
    public int compareTo(processPurchaseOrder_args other) {
57350
    public int compareTo(addAuthorizationLog_args other) {
59263
      if (!getClass().equals(other.getClass())) {
57351
      if (!getClass().equals(other.getClass())) {
59264
        return getClass().getName().compareTo(other.getClass().getName());
57352
        return getClass().getName().compareTo(other.getClass().getName());
59265
      }
57353
      }
59266
 
57354
 
59267
      int lastComparison = 0;
57355
      int lastComparison = 0;
59268
      processPurchaseOrder_args typedOther = (processPurchaseOrder_args)other;
57356
      addAuthorizationLog_args typedOther = (addAuthorizationLog_args)other;
59269
 
57357
 
59270
      lastComparison = Boolean.valueOf(isSetFilename()).compareTo(typedOther.isSetFilename());
57358
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
59271
      if (lastComparison != 0) {
57359
      if (lastComparison != 0) {
59272
        return lastComparison;
57360
        return lastComparison;
59273
      }
57361
      }
59274
      if (isSetFilename()) {
57362
      if (isSetItemId()) {
59275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filename, typedOther.filename);
57363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
59276
        if (lastComparison != 0) {
57364
        if (lastComparison != 0) {
59277
          return lastComparison;
57365
          return lastComparison;
59278
        }
57366
        }
59279
      }
57367
      }
59280
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
57368
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
59281
      if (lastComparison != 0) {
57369
      if (lastComparison != 0) {
59282
        return lastComparison;
57370
        return lastComparison;
59283
      }
57371
      }
-
 
57372
      if (isSetUsername()) {
-
 
57373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
-
 
57374
        if (lastComparison != 0) {
-
 
57375
          return lastComparison;
-
 
57376
        }
-
 
57377
      }
-
 
57378
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
-
 
57379
      if (lastComparison != 0) {
-
 
57380
        return lastComparison;
-
 
57381
      }
59284
      if (isSetVendorId()) {
57382
      if (isSetReason()) {
59285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
57383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
59286
        if (lastComparison != 0) {
57384
        if (lastComparison != 0) {
59287
          return lastComparison;
57385
          return lastComparison;
59288
        }
57386
        }
59289
      }
57387
      }
59290
      return 0;
57388
      return 0;
Line 59302... Line 57400...
59302
        field = iprot.readFieldBegin();
57400
        field = iprot.readFieldBegin();
59303
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59304
          break;
57402
          break;
59305
        }
57403
        }
59306
        switch (field.id) {
57404
        switch (field.id) {
-
 
57405
          case 1: // ITEM_ID
-
 
57406
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57407
              this.itemId = iprot.readI64();
-
 
57408
              setItemIdIsSet(true);
-
 
57409
            } else { 
-
 
57410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57411
            }
-
 
57412
            break;
59307
          case 1: // FILENAME
57413
          case 2: // USERNAME
59308
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
57414
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
59309
              this.filename = iprot.readString();
57415
              this.username = iprot.readString();
59310
            } else { 
57416
            } else { 
59311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59312
            }
57418
            }
59313
            break;
57419
            break;
59314
          case 2: // VENDOR_ID
57420
          case 3: // REASON
59315
            if (field.type == org.apache.thrift.protocol.TType.I32) {
57421
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
59316
              this.vendorId = iprot.readI32();
57422
              this.reason = iprot.readString();
59317
              setVendorIdIsSet(true);
-
 
59318
            } else { 
57423
            } else { 
59319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59320
            }
57425
            }
59321
            break;
57426
            break;
59322
          default:
57427
          default:
Line 59330... Line 57435...
59330
 
57435
 
59331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57436
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59332
      validate();
57437
      validate();
59333
 
57438
 
59334
      oprot.writeStructBegin(STRUCT_DESC);
57439
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57440
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
57441
      oprot.writeI64(this.itemId);
-
 
57442
      oprot.writeFieldEnd();
59335
      if (this.filename != null) {
57443
      if (this.username != null) {
59336
        oprot.writeFieldBegin(FILENAME_FIELD_DESC);
57444
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
59337
        oprot.writeString(this.filename);
57445
        oprot.writeString(this.username);
-
 
57446
        oprot.writeFieldEnd();
-
 
57447
      }
-
 
57448
      if (this.reason != null) {
-
 
57449
        oprot.writeFieldBegin(REASON_FIELD_DESC);
-
 
57450
        oprot.writeString(this.reason);
59338
        oprot.writeFieldEnd();
57451
        oprot.writeFieldEnd();
59339
      }
57452
      }
59340
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
59341
      oprot.writeI32(this.vendorId);
-
 
59342
      oprot.writeFieldEnd();
-
 
59343
      oprot.writeFieldStop();
57453
      oprot.writeFieldStop();
59344
      oprot.writeStructEnd();
57454
      oprot.writeStructEnd();
59345
    }
57455
    }
59346
 
57456
 
59347
    @Override
57457
    @Override
59348
    public String toString() {
57458
    public String toString() {
59349
      StringBuilder sb = new StringBuilder("processPurchaseOrder_args(");
57459
      StringBuilder sb = new StringBuilder("addAuthorizationLog_args(");
59350
      boolean first = true;
57460
      boolean first = true;
59351
 
57461
 
-
 
57462
      sb.append("itemId:");
-
 
57463
      sb.append(this.itemId);
-
 
57464
      first = false;
-
 
57465
      if (!first) sb.append(", ");
59352
      sb.append("filename:");
57466
      sb.append("username:");
59353
      if (this.filename == null) {
57467
      if (this.username == null) {
59354
        sb.append("null");
57468
        sb.append("null");
59355
      } else {
57469
      } else {
59356
        sb.append(this.filename);
57470
        sb.append(this.username);
59357
      }
57471
      }
59358
      first = false;
57472
      first = false;
59359
      if (!first) sb.append(", ");
57473
      if (!first) sb.append(", ");
59360
      sb.append("vendorId:");
57474
      sb.append("reason:");
-
 
57475
      if (this.reason == null) {
-
 
57476
        sb.append("null");
-
 
57477
      } else {
59361
      sb.append(this.vendorId);
57478
        sb.append(this.reason);
-
 
57479
      }
59362
      first = false;
57480
      first = false;
59363
      sb.append(")");
57481
      sb.append(")");
59364
      return sb.toString();
57482
      return sb.toString();
59365
    }
57483
    }
59366
 
57484
 
Line 59386... Line 57504...
59386
      }
57504
      }
59387
    }
57505
    }
59388
 
57506
 
59389
  }
57507
  }
59390
 
57508
 
59391
  public static class processPurchaseOrder_result implements org.apache.thrift.TBase<processPurchaseOrder_result, processPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
57509
  public static class addAuthorizationLog_result implements org.apache.thrift.TBase<addAuthorizationLog_result, addAuthorizationLog_result._Fields>, java.io.Serializable, Cloneable   {
59392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processPurchaseOrder_result");
57510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_result");
59393
 
57511
 
59394
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
57512
    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);
59395
    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);
57513
    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);
59396
 
57514
 
59397
    private String success; // required
57515
    private boolean success; // required
59398
    private InventoryServiceException cex; // required
57516
    private InventoryServiceException cex; // required
59399
 
57517
 
59400
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59401
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59402
      SUCCESS((short)0, "success"),
57520
      SUCCESS((short)0, "success"),
Line 59457... Line 57575...
59457
        return _fieldName;
57575
        return _fieldName;
59458
      }
57576
      }
59459
    }
57577
    }
59460
 
57578
 
59461
    // isset id assignments
57579
    // isset id assignments
-
 
57580
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
57581
    private BitSet __isset_bit_vector = new BitSet(1);
59462
 
57582
 
59463
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59464
    static {
57584
    static {
59465
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59466
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57586
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59467
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
57587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
59468
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57588
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
57589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
59470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processPurchaseOrder_result.class, metaDataMap);
57591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_result.class, metaDataMap);
59472
    }
57592
    }
59473
 
57593
 
59474
    public processPurchaseOrder_result() {
57594
    public addAuthorizationLog_result() {
59475
    }
57595
    }
59476
 
57596
 
59477
    public processPurchaseOrder_result(
57597
    public addAuthorizationLog_result(
59478
      String success,
57598
      boolean success,
59479
      InventoryServiceException cex)
57599
      InventoryServiceException cex)
59480
    {
57600
    {
59481
      this();
57601
      this();
59482
      this.success = success;
57602
      this.success = success;
-
 
57603
      setSuccessIsSet(true);
59483
      this.cex = cex;
57604
      this.cex = cex;
59484
    }
57605
    }
59485
 
57606
 
59486
    /**
57607
    /**
59487
     * Performs a deep copy on <i>other</i>.
57608
     * Performs a deep copy on <i>other</i>.
59488
     */
57609
     */
59489
    public processPurchaseOrder_result(processPurchaseOrder_result other) {
57610
    public addAuthorizationLog_result(addAuthorizationLog_result other) {
59490
      if (other.isSetSuccess()) {
57611
      __isset_bit_vector.clear();
-
 
57612
      __isset_bit_vector.or(other.__isset_bit_vector);
59491
        this.success = other.success;
57613
      this.success = other.success;
59492
      }
-
 
59493
      if (other.isSetCex()) {
57614
      if (other.isSetCex()) {
59494
        this.cex = new InventoryServiceException(other.cex);
57615
        this.cex = new InventoryServiceException(other.cex);
59495
      }
57616
      }
59496
    }
57617
    }
59497
 
57618
 
59498
    public processPurchaseOrder_result deepCopy() {
57619
    public addAuthorizationLog_result deepCopy() {
59499
      return new processPurchaseOrder_result(this);
57620
      return new addAuthorizationLog_result(this);
59500
    }
57621
    }
59501
 
57622
 
59502
    @Override
57623
    @Override
59503
    public void clear() {
57624
    public void clear() {
-
 
57625
      setSuccessIsSet(false);
59504
      this.success = null;
57626
      this.success = false;
59505
      this.cex = null;
57627
      this.cex = null;
59506
    }
57628
    }
59507
 
57629
 
59508
    public String getSuccess() {
57630
    public boolean isSuccess() {
59509
      return this.success;
57631
      return this.success;
59510
    }
57632
    }
59511
 
57633
 
59512
    public void setSuccess(String success) {
57634
    public void setSuccess(boolean success) {
59513
      this.success = success;
57635
      this.success = success;
-
 
57636
      setSuccessIsSet(true);
59514
    }
57637
    }
59515
 
57638
 
59516
    public void unsetSuccess() {
57639
    public void unsetSuccess() {
59517
      this.success = null;
57640
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
59518
    }
57641
    }
59519
 
57642
 
59520
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
57643
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
59521
    public boolean isSetSuccess() {
57644
    public boolean isSetSuccess() {
59522
      return this.success != null;
57645
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
59523
    }
57646
    }
59524
 
57647
 
59525
    public void setSuccessIsSet(boolean value) {
57648
    public void setSuccessIsSet(boolean value) {
59526
      if (!value) {
-
 
59527
        this.success = null;
57649
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
59528
      }
-
 
59529
    }
57650
    }
59530
 
57651
 
59531
    public InventoryServiceException getCex() {
57652
    public InventoryServiceException getCex() {
59532
      return this.cex;
57653
      return this.cex;
59533
    }
57654
    }
Line 59555... Line 57676...
59555
      switch (field) {
57676
      switch (field) {
59556
      case SUCCESS:
57677
      case SUCCESS:
59557
        if (value == null) {
57678
        if (value == null) {
59558
          unsetSuccess();
57679
          unsetSuccess();
59559
        } else {
57680
        } else {
59560
          setSuccess((String)value);
57681
          setSuccess((Boolean)value);
59561
        }
57682
        }
59562
        break;
57683
        break;
59563
 
57684
 
59564
      case CEX:
57685
      case CEX:
59565
        if (value == null) {
57686
        if (value == null) {
Line 59573... Line 57694...
59573
    }
57694
    }
59574
 
57695
 
59575
    public Object getFieldValue(_Fields field) {
57696
    public Object getFieldValue(_Fields field) {
59576
      switch (field) {
57697
      switch (field) {
59577
      case SUCCESS:
57698
      case SUCCESS:
59578
        return getSuccess();
57699
        return Boolean.valueOf(isSuccess());
59579
 
57700
 
59580
      case CEX:
57701
      case CEX:
59581
        return getCex();
57702
        return getCex();
59582
 
57703
 
59583
      }
57704
      }
Line 59601... Line 57722...
59601
 
57722
 
59602
    @Override
57723
    @Override
59603
    public boolean equals(Object that) {
57724
    public boolean equals(Object that) {
59604
      if (that == null)
57725
      if (that == null)
59605
        return false;
57726
        return false;
59606
      if (that instanceof processPurchaseOrder_result)
57727
      if (that instanceof addAuthorizationLog_result)
59607
        return this.equals((processPurchaseOrder_result)that);
57728
        return this.equals((addAuthorizationLog_result)that);
59608
      return false;
57729
      return false;
59609
    }
57730
    }
59610
 
57731
 
59611
    public boolean equals(processPurchaseOrder_result that) {
57732
    public boolean equals(addAuthorizationLog_result that) {
59612
      if (that == null)
57733
      if (that == null)
59613
        return false;
57734
        return false;
59614
 
57735
 
59615
      boolean this_present_success = true && this.isSetSuccess();
57736
      boolean this_present_success = true;
59616
      boolean that_present_success = true && that.isSetSuccess();
57737
      boolean that_present_success = true;
59617
      if (this_present_success || that_present_success) {
57738
      if (this_present_success || that_present_success) {
59618
        if (!(this_present_success && that_present_success))
57739
        if (!(this_present_success && that_present_success))
59619
          return false;
57740
          return false;
59620
        if (!this.success.equals(that.success))
57741
        if (this.success != that.success)
59621
          return false;
57742
          return false;
59622
      }
57743
      }
59623
 
57744
 
59624
      boolean this_present_cex = true && this.isSetCex();
57745
      boolean this_present_cex = true && this.isSetCex();
59625
      boolean that_present_cex = true && that.isSetCex();
57746
      boolean that_present_cex = true && that.isSetCex();
Line 59636... Line 57757...
59636
    @Override
57757
    @Override
59637
    public int hashCode() {
57758
    public int hashCode() {
59638
      return 0;
57759
      return 0;
59639
    }
57760
    }
59640
 
57761
 
59641
    public int compareTo(processPurchaseOrder_result other) {
57762
    public int compareTo(addAuthorizationLog_result other) {
59642
      if (!getClass().equals(other.getClass())) {
57763
      if (!getClass().equals(other.getClass())) {
59643
        return getClass().getName().compareTo(other.getClass().getName());
57764
        return getClass().getName().compareTo(other.getClass().getName());
59644
      }
57765
      }
59645
 
57766
 
59646
      int lastComparison = 0;
57767
      int lastComparison = 0;
59647
      processPurchaseOrder_result typedOther = (processPurchaseOrder_result)other;
57768
      addAuthorizationLog_result typedOther = (addAuthorizationLog_result)other;
59648
 
57769
 
59649
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
57770
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
59650
      if (lastComparison != 0) {
57771
      if (lastComparison != 0) {
59651
        return lastComparison;
57772
        return lastComparison;
59652
      }
57773
      }
Line 59682... Line 57803...
59682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59683
          break;
57804
          break;
59684
        }
57805
        }
59685
        switch (field.id) {
57806
        switch (field.id) {
59686
          case 0: // SUCCESS
57807
          case 0: // SUCCESS
59687
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
57808
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
59688
              this.success = iprot.readString();
57809
              this.success = iprot.readBool();
-
 
57810
              setSuccessIsSet(true);
59689
            } else { 
57811
            } else { 
59690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59691
            }
57813
            }
59692
            break;
57814
            break;
59693
          case 1: // CEX
57815
          case 1: // CEX
Line 59710... Line 57832...
59710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59711
      oprot.writeStructBegin(STRUCT_DESC);
57833
      oprot.writeStructBegin(STRUCT_DESC);
59712
 
57834
 
59713
      if (this.isSetSuccess()) {
57835
      if (this.isSetSuccess()) {
59714
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57836
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59715
        oprot.writeString(this.success);
57837
        oprot.writeBool(this.success);
59716
        oprot.writeFieldEnd();
57838
        oprot.writeFieldEnd();
59717
      } else if (this.isSetCex()) {
57839
      } else if (this.isSetCex()) {
59718
        oprot.writeFieldBegin(CEX_FIELD_DESC);
57840
        oprot.writeFieldBegin(CEX_FIELD_DESC);
59719
        this.cex.write(oprot);
57841
        this.cex.write(oprot);
59720
        oprot.writeFieldEnd();
57842
        oprot.writeFieldEnd();
Line 59723... Line 57845...
59723
      oprot.writeStructEnd();
57845
      oprot.writeStructEnd();
59724
    }
57846
    }
59725
 
57847
 
59726
    @Override
57848
    @Override
59727
    public String toString() {
57849
    public String toString() {
59728
      StringBuilder sb = new StringBuilder("processPurchaseOrder_result(");
57850
      StringBuilder sb = new StringBuilder("addAuthorizationLog_result(");
59729
      boolean first = true;
57851
      boolean first = true;
59730
 
57852
 
59731
      sb.append("success:");
57853
      sb.append("success:");
59732
      if (this.success == null) {
-
 
59733
        sb.append("null");
-
 
59734
      } else {
-
 
59735
        sb.append(this.success);
57854
      sb.append(this.success);
59736
      }
-
 
59737
      first = false;
57855
      first = false;
59738
      if (!first) sb.append(", ");
57856
      if (!first) sb.append(", ");
59739
      sb.append("cex:");
57857
      sb.append("cex:");
59740
      if (this.cex == null) {
57858
      if (this.cex == null) {
59741
        sb.append("null");
57859
        sb.append("null");
Line 59767... Line 57885...
59767
      }
57885
      }
59768
    }
57886
    }
59769
 
57887
 
59770
  }
57888
  }
59771
 
57889
 
59772
  public static class addAuthorizationLog_args implements org.apache.thrift.TBase<addAuthorizationLog_args, addAuthorizationLog_args._Fields>, java.io.Serializable, Cloneable   {
57890
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
59773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_args");
57891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
59774
 
57892
 
59775
    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);
57893
    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);
59776
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);
57894
    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);
59777
    private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);
57895
    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);
-
 
57896
    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);
-
 
57897
    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);
59778
 
57898
 
-
 
57899
    private WarehouseType warehouseType; // required
-
 
57900
    private InventoryType inventoryType; // required
59779
    private long itemId; // required
57901
    private long vendorId; // required
59780
    private String username; // required
57902
    private long billingWarehouseId; // required
59781
    private String reason; // required
57903
    private long shippingWarehouseId; // required
59782
 
57904
 
59783
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59784
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57907
      /**
-
 
57908
       * 
-
 
57909
       * @see WarehouseType
-
 
57910
       */
59785
      ITEM_ID((short)1, "itemId"),
57911
      WAREHOUSE_TYPE((short)1, "warehouseType"),
-
 
57912
      /**
-
 
57913
       * 
-
 
57914
       * @see InventoryType
-
 
57915
       */
59786
      USERNAME((short)2, "username"),
57916
      INVENTORY_TYPE((short)2, "inventoryType"),
59787
      REASON((short)3, "reason");
57917
      VENDOR_ID((short)3, "vendorId"),
-
 
57918
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
-
 
57919
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
59788
 
57920
 
59789
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59790
 
57922
 
59791
      static {
57923
      static {
59792
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 59797... Line 57929...
59797
      /**
57929
      /**
59798
       * Find the _Fields constant that matches fieldId, or null if its not found.
57930
       * Find the _Fields constant that matches fieldId, or null if its not found.
59799
       */
57931
       */
59800
      public static _Fields findByThriftId(int fieldId) {
57932
      public static _Fields findByThriftId(int fieldId) {
59801
        switch(fieldId) {
57933
        switch(fieldId) {
59802
          case 1: // ITEM_ID
57934
          case 1: // WAREHOUSE_TYPE
59803
            return ITEM_ID;
57935
            return WAREHOUSE_TYPE;
59804
          case 2: // USERNAME
57936
          case 2: // INVENTORY_TYPE
59805
            return USERNAME;
57937
            return INVENTORY_TYPE;
59806
          case 3: // REASON
57938
          case 3: // VENDOR_ID
59807
            return REASON;
57939
            return VENDOR_ID;
-
 
57940
          case 4: // BILLING_WAREHOUSE_ID
-
 
57941
            return BILLING_WAREHOUSE_ID;
-
 
57942
          case 5: // SHIPPING_WAREHOUSE_ID
-
 
57943
            return SHIPPING_WAREHOUSE_ID;
59808
          default:
57944
          default:
59809
            return null;
57945
            return null;
59810
        }
57946
        }
59811
      }
57947
      }
59812
 
57948
 
Line 59843... Line 57979...
59843
        return _fieldName;
57979
        return _fieldName;
59844
      }
57980
      }
59845
    }
57981
    }
59846
 
57982
 
59847
    // isset id assignments
57983
    // isset id assignments
59848
    private static final int __ITEMID_ISSET_ID = 0;
57984
    private static final int __VENDORID_ISSET_ID = 0;
-
 
57985
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
-
 
57986
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
59849
    private BitSet __isset_bit_vector = new BitSet(1);
57987
    private BitSet __isset_bit_vector = new BitSet(3);
59850
 
57988
 
59851
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59852
    static {
57990
    static {
59853
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57992
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57993
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
-
 
57994
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57995
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
59854
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57996
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57997
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57998
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57999
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58000
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58001
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
59856
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
59858
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
59860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58002
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_args.class, metaDataMap);
58003
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
59862
    }
58004
    }
59863
 
58005
 
59864
    public addAuthorizationLog_args() {
58006
    public getWarehouses_args() {
59865
    }
58007
    }
59866
 
58008
 
59867
    public addAuthorizationLog_args(
58009
    public getWarehouses_args(
-
 
58010
      WarehouseType warehouseType,
-
 
58011
      InventoryType inventoryType,
59868
      long itemId,
58012
      long vendorId,
59869
      String username,
58013
      long billingWarehouseId,
59870
      String reason)
58014
      long shippingWarehouseId)
59871
    {
58015
    {
59872
      this();
58016
      this();
-
 
58017
      this.warehouseType = warehouseType;
-
 
58018
      this.inventoryType = inventoryType;
59873
      this.itemId = itemId;
58019
      this.vendorId = vendorId;
59874
      setItemIdIsSet(true);
58020
      setVendorIdIsSet(true);
59875
      this.username = username;
58021
      this.billingWarehouseId = billingWarehouseId;
-
 
58022
      setBillingWarehouseIdIsSet(true);
-
 
58023
      this.shippingWarehouseId = shippingWarehouseId;
59876
      this.reason = reason;
58024
      setShippingWarehouseIdIsSet(true);
59877
    }
58025
    }
59878
 
58026
 
59879
    /**
58027
    /**
59880
     * Performs a deep copy on <i>other</i>.
58028
     * Performs a deep copy on <i>other</i>.
59881
     */
58029
     */
59882
    public addAuthorizationLog_args(addAuthorizationLog_args other) {
58030
    public getWarehouses_args(getWarehouses_args other) {
59883
      __isset_bit_vector.clear();
58031
      __isset_bit_vector.clear();
59884
      __isset_bit_vector.or(other.__isset_bit_vector);
58032
      __isset_bit_vector.or(other.__isset_bit_vector);
59885
      this.itemId = other.itemId;
-
 
59886
      if (other.isSetUsername()) {
58033
      if (other.isSetWarehouseType()) {
59887
        this.username = other.username;
58034
        this.warehouseType = other.warehouseType;
59888
      }
58035
      }
59889
      if (other.isSetReason()) {
58036
      if (other.isSetInventoryType()) {
59890
        this.reason = other.reason;
58037
        this.inventoryType = other.inventoryType;
59891
      }
58038
      }
-
 
58039
      this.vendorId = other.vendorId;
-
 
58040
      this.billingWarehouseId = other.billingWarehouseId;
-
 
58041
      this.shippingWarehouseId = other.shippingWarehouseId;
59892
    }
58042
    }
59893
 
58043
 
59894
    public addAuthorizationLog_args deepCopy() {
58044
    public getWarehouses_args deepCopy() {
59895
      return new addAuthorizationLog_args(this);
58045
      return new getWarehouses_args(this);
59896
    }
58046
    }
59897
 
58047
 
59898
    @Override
58048
    @Override
59899
    public void clear() {
58049
    public void clear() {
-
 
58050
      this.warehouseType = null;
-
 
58051
      this.inventoryType = null;
59900
      setItemIdIsSet(false);
58052
      setVendorIdIsSet(false);
59901
      this.itemId = 0;
58053
      this.vendorId = 0;
-
 
58054
      setBillingWarehouseIdIsSet(false);
59902
      this.username = null;
58055
      this.billingWarehouseId = 0;
-
 
58056
      setShippingWarehouseIdIsSet(false);
59903
      this.reason = null;
58057
      this.shippingWarehouseId = 0;
59904
    }
58058
    }
59905
 
58059
 
-
 
58060
    /**
-
 
58061
     * 
-
 
58062
     * @see WarehouseType
-
 
58063
     */
59906
    public long getItemId() {
58064
    public WarehouseType getWarehouseType() {
59907
      return this.itemId;
58065
      return this.warehouseType;
59908
    }
58066
    }
59909
 
58067
 
-
 
58068
    /**
-
 
58069
     * 
59910
    public void setItemId(long itemId) {
58070
     * @see WarehouseType
-
 
58071
     */
59911
      this.itemId = itemId;
58072
    public void setWarehouseType(WarehouseType warehouseType) {
59912
      setItemIdIsSet(true);
58073
      this.warehouseType = warehouseType;
59913
    }
58074
    }
59914
 
58075
 
59915
    public void unsetItemId() {
58076
    public void unsetWarehouseType() {
59916
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
58077
      this.warehouseType = null;
59917
    }
58078
    }
59918
 
58079
 
59919
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
58080
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
59920
    public boolean isSetItemId() {
58081
    public boolean isSetWarehouseType() {
59921
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
58082
      return this.warehouseType != null;
59922
    }
58083
    }
59923
 
58084
 
59924
    public void setItemIdIsSet(boolean value) {
58085
    public void setWarehouseTypeIsSet(boolean value) {
-
 
58086
      if (!value) {
59925
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
58087
        this.warehouseType = null;
-
 
58088
      }
59926
    }
58089
    }
59927
 
58090
 
-
 
58091
    /**
-
 
58092
     * 
-
 
58093
     * @see InventoryType
-
 
58094
     */
59928
    public String getUsername() {
58095
    public InventoryType getInventoryType() {
59929
      return this.username;
58096
      return this.inventoryType;
59930
    }
58097
    }
59931
 
58098
 
-
 
58099
    /**
-
 
58100
     * 
-
 
58101
     * @see InventoryType
-
 
58102
     */
59932
    public void setUsername(String username) {
58103
    public void setInventoryType(InventoryType inventoryType) {
59933
      this.username = username;
58104
      this.inventoryType = inventoryType;
59934
    }
58105
    }
59935
 
58106
 
59936
    public void unsetUsername() {
58107
    public void unsetInventoryType() {
59937
      this.username = null;
58108
      this.inventoryType = null;
59938
    }
58109
    }
59939
 
58110
 
59940
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
58111
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
59941
    public boolean isSetUsername() {
58112
    public boolean isSetInventoryType() {
59942
      return this.username != null;
58113
      return this.inventoryType != null;
59943
    }
58114
    }
59944
 
58115
 
59945
    public void setUsernameIsSet(boolean value) {
58116
    public void setInventoryTypeIsSet(boolean value) {
59946
      if (!value) {
58117
      if (!value) {
59947
        this.username = null;
58118
        this.inventoryType = null;
59948
      }
58119
      }
59949
    }
58120
    }
59950
 
58121
 
59951
    public String getReason() {
58122
    public long getVendorId() {
59952
      return this.reason;
58123
      return this.vendorId;
59953
    }
58124
    }
59954
 
58125
 
59955
    public void setReason(String reason) {
58126
    public void setVendorId(long vendorId) {
59956
      this.reason = reason;
58127
      this.vendorId = vendorId;
-
 
58128
      setVendorIdIsSet(true);
59957
    }
58129
    }
59958
 
58130
 
59959
    public void unsetReason() {
58131
    public void unsetVendorId() {
59960
      this.reason = null;
58132
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
59961
    }
58133
    }
59962
 
58134
 
59963
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
58135
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
59964
    public boolean isSetReason() {
58136
    public boolean isSetVendorId() {
59965
      return this.reason != null;
58137
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
59966
    }
58138
    }
59967
 
58139
 
59968
    public void setReasonIsSet(boolean value) {
58140
    public void setVendorIdIsSet(boolean value) {
-
 
58141
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
58142
    }
-
 
58143
 
59969
      if (!value) {
58144
    public long getBillingWarehouseId() {
59970
        this.reason = null;
58145
      return this.billingWarehouseId;
-
 
58146
    }
-
 
58147
 
-
 
58148
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
58149
      this.billingWarehouseId = billingWarehouseId;
-
 
58150
      setBillingWarehouseIdIsSet(true);
-
 
58151
    }
-
 
58152
 
-
 
58153
    public void unsetBillingWarehouseId() {
-
 
58154
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
58155
    }
-
 
58156
 
-
 
58157
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
58158
    public boolean isSetBillingWarehouseId() {
-
 
58159
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
58160
    }
-
 
58161
 
-
 
58162
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
58163
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
58164
    }
-
 
58165
 
-
 
58166
    public long getShippingWarehouseId() {
-
 
58167
      return this.shippingWarehouseId;
-
 
58168
    }
-
 
58169
 
-
 
58170
    public void setShippingWarehouseId(long shippingWarehouseId) {
-
 
58171
      this.shippingWarehouseId = shippingWarehouseId;
-
 
58172
      setShippingWarehouseIdIsSet(true);
-
 
58173
    }
-
 
58174
 
-
 
58175
    public void unsetShippingWarehouseId() {
-
 
58176
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
-
 
58177
    }
-
 
58178
 
-
 
58179
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
58180
    public boolean isSetShippingWarehouseId() {
-
 
58181
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
59971
      }
58182
    }
-
 
58183
 
-
 
58184
    public void setShippingWarehouseIdIsSet(boolean value) {
-
 
58185
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
59972
    }
58186
    }
59973
 
58187
 
59974
    public void setFieldValue(_Fields field, Object value) {
58188
    public void setFieldValue(_Fields field, Object value) {
59975
      switch (field) {
58189
      switch (field) {
59976
      case ITEM_ID:
58190
      case WAREHOUSE_TYPE:
59977
        if (value == null) {
58191
        if (value == null) {
59978
          unsetItemId();
58192
          unsetWarehouseType();
59979
        } else {
58193
        } else {
59980
          setItemId((Long)value);
58194
          setWarehouseType((WarehouseType)value);
59981
        }
58195
        }
59982
        break;
58196
        break;
59983
 
58197
 
59984
      case USERNAME:
58198
      case INVENTORY_TYPE:
59985
        if (value == null) {
58199
        if (value == null) {
59986
          unsetUsername();
58200
          unsetInventoryType();
59987
        } else {
58201
        } else {
59988
          setUsername((String)value);
58202
          setInventoryType((InventoryType)value);
59989
        }
58203
        }
59990
        break;
58204
        break;
59991
 
58205
 
59992
      case REASON:
58206
      case VENDOR_ID:
59993
        if (value == null) {
58207
        if (value == null) {
59994
          unsetReason();
58208
          unsetVendorId();
59995
        } else {
58209
        } else {
59996
          setReason((String)value);
58210
          setVendorId((Long)value);
-
 
58211
        }
-
 
58212
        break;
-
 
58213
 
-
 
58214
      case BILLING_WAREHOUSE_ID:
-
 
58215
        if (value == null) {
-
 
58216
          unsetBillingWarehouseId();
-
 
58217
        } else {
-
 
58218
          setBillingWarehouseId((Long)value);
-
 
58219
        }
-
 
58220
        break;
-
 
58221
 
-
 
58222
      case SHIPPING_WAREHOUSE_ID:
-
 
58223
        if (value == null) {
-
 
58224
          unsetShippingWarehouseId();
-
 
58225
        } else {
-
 
58226
          setShippingWarehouseId((Long)value);
59997
        }
58227
        }
59998
        break;
58228
        break;
59999
 
58229
 
60000
      }
58230
      }
60001
    }
58231
    }
60002
 
58232
 
60003
    public Object getFieldValue(_Fields field) {
58233
    public Object getFieldValue(_Fields field) {
60004
      switch (field) {
58234
      switch (field) {
60005
      case ITEM_ID:
58235
      case WAREHOUSE_TYPE:
60006
        return Long.valueOf(getItemId());
58236
        return getWarehouseType();
60007
 
58237
 
60008
      case USERNAME:
58238
      case INVENTORY_TYPE:
60009
        return getUsername();
58239
        return getInventoryType();
60010
 
58240
 
60011
      case REASON:
58241
      case VENDOR_ID:
60012
        return getReason();
58242
        return Long.valueOf(getVendorId());
-
 
58243
 
-
 
58244
      case BILLING_WAREHOUSE_ID:
-
 
58245
        return Long.valueOf(getBillingWarehouseId());
-
 
58246
 
-
 
58247
      case SHIPPING_WAREHOUSE_ID:
-
 
58248
        return Long.valueOf(getShippingWarehouseId());
60013
 
58249
 
60014
      }
58250
      }
60015
      throw new IllegalStateException();
58251
      throw new IllegalStateException();
60016
    }
58252
    }
60017
 
58253
 
Line 60020... Line 58256...
60020
      if (field == null) {
58256
      if (field == null) {
60021
        throw new IllegalArgumentException();
58257
        throw new IllegalArgumentException();
60022
      }
58258
      }
60023
 
58259
 
60024
      switch (field) {
58260
      switch (field) {
60025
      case ITEM_ID:
58261
      case WAREHOUSE_TYPE:
60026
        return isSetItemId();
58262
        return isSetWarehouseType();
60027
      case USERNAME:
58263
      case INVENTORY_TYPE:
60028
        return isSetUsername();
58264
        return isSetInventoryType();
60029
      case REASON:
58265
      case VENDOR_ID:
60030
        return isSetReason();
58266
        return isSetVendorId();
-
 
58267
      case BILLING_WAREHOUSE_ID:
-
 
58268
        return isSetBillingWarehouseId();
-
 
58269
      case SHIPPING_WAREHOUSE_ID:
-
 
58270
        return isSetShippingWarehouseId();
60031
      }
58271
      }
60032
      throw new IllegalStateException();
58272
      throw new IllegalStateException();
60033
    }
58273
    }
60034
 
58274
 
60035
    @Override
58275
    @Override
60036
    public boolean equals(Object that) {
58276
    public boolean equals(Object that) {
60037
      if (that == null)
58277
      if (that == null)
60038
        return false;
58278
        return false;
60039
      if (that instanceof addAuthorizationLog_args)
58279
      if (that instanceof getWarehouses_args)
60040
        return this.equals((addAuthorizationLog_args)that);
58280
        return this.equals((getWarehouses_args)that);
60041
      return false;
58281
      return false;
60042
    }
58282
    }
60043
 
58283
 
60044
    public boolean equals(addAuthorizationLog_args that) {
58284
    public boolean equals(getWarehouses_args that) {
60045
      if (that == null)
58285
      if (that == null)
60046
        return false;
58286
        return false;
60047
 
58287
 
60048
      boolean this_present_itemId = true;
58288
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
60049
      boolean that_present_itemId = true;
58289
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
60050
      if (this_present_itemId || that_present_itemId) {
58290
      if (this_present_warehouseType || that_present_warehouseType) {
60051
        if (!(this_present_itemId && that_present_itemId))
58291
        if (!(this_present_warehouseType && that_present_warehouseType))
60052
          return false;
58292
          return false;
60053
        if (this.itemId != that.itemId)
58293
        if (!this.warehouseType.equals(that.warehouseType))
60054
          return false;
58294
          return false;
60055
      }
58295
      }
60056
 
58296
 
60057
      boolean this_present_username = true && this.isSetUsername();
58297
      boolean this_present_inventoryType = true && this.isSetInventoryType();
60058
      boolean that_present_username = true && that.isSetUsername();
58298
      boolean that_present_inventoryType = true && that.isSetInventoryType();
60059
      if (this_present_username || that_present_username) {
58299
      if (this_present_inventoryType || that_present_inventoryType) {
60060
        if (!(this_present_username && that_present_username))
58300
        if (!(this_present_inventoryType && that_present_inventoryType))
60061
          return false;
58301
          return false;
60062
        if (!this.username.equals(that.username))
58302
        if (!this.inventoryType.equals(that.inventoryType))
60063
          return false;
58303
          return false;
60064
      }
58304
      }
60065
 
58305
 
60066
      boolean this_present_reason = true && this.isSetReason();
58306
      boolean this_present_vendorId = true;
60067
      boolean that_present_reason = true && that.isSetReason();
58307
      boolean that_present_vendorId = true;
60068
      if (this_present_reason || that_present_reason) {
58308
      if (this_present_vendorId || that_present_vendorId) {
60069
        if (!(this_present_reason && that_present_reason))
58309
        if (!(this_present_vendorId && that_present_vendorId))
60070
          return false;
58310
          return false;
60071
        if (!this.reason.equals(that.reason))
58311
        if (this.vendorId != that.vendorId)
-
 
58312
          return false;
-
 
58313
      }
-
 
58314
 
-
 
58315
      boolean this_present_billingWarehouseId = true;
-
 
58316
      boolean that_present_billingWarehouseId = true;
-
 
58317
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
58318
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
58319
          return false;
-
 
58320
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
58321
          return false;
-
 
58322
      }
-
 
58323
 
-
 
58324
      boolean this_present_shippingWarehouseId = true;
-
 
58325
      boolean that_present_shippingWarehouseId = true;
-
 
58326
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
-
 
58327
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
-
 
58328
          return false;
-
 
58329
        if (this.shippingWarehouseId != that.shippingWarehouseId)
60072
          return false;
58330
          return false;
60073
      }
58331
      }
60074
 
58332
 
60075
      return true;
58333
      return true;
60076
    }
58334
    }
Line 60078... Line 58336...
60078
    @Override
58336
    @Override
60079
    public int hashCode() {
58337
    public int hashCode() {
60080
      return 0;
58338
      return 0;
60081
    }
58339
    }
60082
 
58340
 
60083
    public int compareTo(addAuthorizationLog_args other) {
58341
    public int compareTo(getWarehouses_args other) {
60084
      if (!getClass().equals(other.getClass())) {
58342
      if (!getClass().equals(other.getClass())) {
60085
        return getClass().getName().compareTo(other.getClass().getName());
58343
        return getClass().getName().compareTo(other.getClass().getName());
60086
      }
58344
      }
60087
 
58345
 
60088
      int lastComparison = 0;
58346
      int lastComparison = 0;
60089
      addAuthorizationLog_args typedOther = (addAuthorizationLog_args)other;
58347
      getWarehouses_args typedOther = (getWarehouses_args)other;
60090
 
58348
 
60091
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
58349
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
60092
      if (lastComparison != 0) {
58350
      if (lastComparison != 0) {
60093
        return lastComparison;
58351
        return lastComparison;
60094
      }
58352
      }
60095
      if (isSetItemId()) {
58353
      if (isSetWarehouseType()) {
60096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
58354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
60097
        if (lastComparison != 0) {
58355
        if (lastComparison != 0) {
60098
          return lastComparison;
58356
          return lastComparison;
60099
        }
58357
        }
60100
      }
58358
      }
60101
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
58359
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
60102
      if (lastComparison != 0) {
58360
      if (lastComparison != 0) {
60103
        return lastComparison;
58361
        return lastComparison;
60104
      }
58362
      }
60105
      if (isSetUsername()) {
58363
      if (isSetInventoryType()) {
60106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
58364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
60107
        if (lastComparison != 0) {
58365
        if (lastComparison != 0) {
60108
          return lastComparison;
58366
          return lastComparison;
60109
        }
58367
        }
60110
      }
58368
      }
60111
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
58369
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
60112
      if (lastComparison != 0) {
58370
      if (lastComparison != 0) {
60113
        return lastComparison;
58371
        return lastComparison;
60114
      }
58372
      }
60115
      if (isSetReason()) {
58373
      if (isSetVendorId()) {
60116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
58374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
58375
        if (lastComparison != 0) {
-
 
58376
          return lastComparison;
-
 
58377
        }
-
 
58378
      }
-
 
58379
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
58380
      if (lastComparison != 0) {
-
 
58381
        return lastComparison;
-
 
58382
      }
-
 
58383
      if (isSetBillingWarehouseId()) {
-
 
58384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
58385
        if (lastComparison != 0) {
-
 
58386
          return lastComparison;
-
 
58387
        }
-
 
58388
      }
-
 
58389
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
-
 
58390
      if (lastComparison != 0) {
-
 
58391
        return lastComparison;
-
 
58392
      }
-
 
58393
      if (isSetShippingWarehouseId()) {
-
 
58394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
60117
        if (lastComparison != 0) {
58395
        if (lastComparison != 0) {
60118
          return lastComparison;
58396
          return lastComparison;
60119
        }
58397
        }
60120
      }
58398
      }
60121
      return 0;
58399
      return 0;
Line 60133... Line 58411...
60133
        field = iprot.readFieldBegin();
58411
        field = iprot.readFieldBegin();
60134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60135
          break;
58413
          break;
60136
        }
58414
        }
60137
        switch (field.id) {
58415
        switch (field.id) {
-
 
58416
          case 1: // WAREHOUSE_TYPE
-
 
58417
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
58418
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
-
 
58419
            } else { 
-
 
58420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58421
            }
-
 
58422
            break;
-
 
58423
          case 2: // INVENTORY_TYPE
-
 
58424
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
58425
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
-
 
58426
            } else { 
-
 
58427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58428
            }
-
 
58429
            break;
60138
          case 1: // ITEM_ID
58430
          case 3: // VENDOR_ID
60139
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58431
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60140
              this.itemId = iprot.readI64();
58432
              this.vendorId = iprot.readI64();
60141
              setItemIdIsSet(true);
58433
              setVendorIdIsSet(true);
60142
            } else { 
58434
            } else { 
60143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60144
            }
58436
            }
60145
            break;
58437
            break;
60146
          case 2: // USERNAME
58438
          case 4: // BILLING_WAREHOUSE_ID
60147
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
58439
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60148
              this.username = iprot.readString();
58440
              this.billingWarehouseId = iprot.readI64();
-
 
58441
              setBillingWarehouseIdIsSet(true);
60149
            } else { 
58442
            } else { 
60150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60151
            }
58444
            }
60152
            break;
58445
            break;
60153
          case 3: // REASON
58446
          case 5: // SHIPPING_WAREHOUSE_ID
60154
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
58447
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60155
              this.reason = iprot.readString();
58448
              this.shippingWarehouseId = iprot.readI64();
-
 
58449
              setShippingWarehouseIdIsSet(true);
60156
            } else { 
58450
            } else { 
60157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60158
            }
58452
            }
60159
            break;
58453
            break;
60160
          default:
58454
          default:
Line 60168... Line 58462...
60168
 
58462
 
60169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60170
      validate();
58464
      validate();
60171
 
58465
 
60172
      oprot.writeStructBegin(STRUCT_DESC);
58466
      oprot.writeStructBegin(STRUCT_DESC);
60173
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
60174
      oprot.writeI64(this.itemId);
-
 
60175
      oprot.writeFieldEnd();
-
 
60176
      if (this.username != null) {
58467
      if (this.warehouseType != null) {
60177
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
58468
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
60178
        oprot.writeString(this.username);
58469
        oprot.writeI32(this.warehouseType.getValue());
60179
        oprot.writeFieldEnd();
58470
        oprot.writeFieldEnd();
60180
      }
58471
      }
60181
      if (this.reason != null) {
58472
      if (this.inventoryType != null) {
60182
        oprot.writeFieldBegin(REASON_FIELD_DESC);
58473
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
60183
        oprot.writeString(this.reason);
58474
        oprot.writeI32(this.inventoryType.getValue());
60184
        oprot.writeFieldEnd();
58475
        oprot.writeFieldEnd();
60185
      }
58476
      }
-
 
58477
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
58478
      oprot.writeI64(this.vendorId);
-
 
58479
      oprot.writeFieldEnd();
-
 
58480
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
58481
      oprot.writeI64(this.billingWarehouseId);
-
 
58482
      oprot.writeFieldEnd();
-
 
58483
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
-
 
58484
      oprot.writeI64(this.shippingWarehouseId);
-
 
58485
      oprot.writeFieldEnd();
60186
      oprot.writeFieldStop();
58486
      oprot.writeFieldStop();
60187
      oprot.writeStructEnd();
58487
      oprot.writeStructEnd();
60188
    }
58488
    }
60189
 
58489
 
60190
    @Override
58490
    @Override
60191
    public String toString() {
58491
    public String toString() {
60192
      StringBuilder sb = new StringBuilder("addAuthorizationLog_args(");
58492
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
60193
      boolean first = true;
58493
      boolean first = true;
60194
 
58494
 
60195
      sb.append("itemId:");
-
 
60196
      sb.append(this.itemId);
-
 
60197
      first = false;
-
 
60198
      if (!first) sb.append(", ");
-
 
60199
      sb.append("username:");
58495
      sb.append("warehouseType:");
60200
      if (this.username == null) {
58496
      if (this.warehouseType == null) {
60201
        sb.append("null");
58497
        sb.append("null");
60202
      } else {
58498
      } else {
60203
        sb.append(this.username);
58499
        sb.append(this.warehouseType);
60204
      }
58500
      }
60205
      first = false;
58501
      first = false;
60206
      if (!first) sb.append(", ");
58502
      if (!first) sb.append(", ");
60207
      sb.append("reason:");
58503
      sb.append("inventoryType:");
60208
      if (this.reason == null) {
58504
      if (this.inventoryType == null) {
60209
        sb.append("null");
58505
        sb.append("null");
60210
      } else {
58506
      } else {
60211
        sb.append(this.reason);
58507
        sb.append(this.inventoryType);
60212
      }
58508
      }
60213
      first = false;
58509
      first = false;
-
 
58510
      if (!first) sb.append(", ");
-
 
58511
      sb.append("vendorId:");
-
 
58512
      sb.append(this.vendorId);
-
 
58513
      first = false;
-
 
58514
      if (!first) sb.append(", ");
-
 
58515
      sb.append("billingWarehouseId:");
-
 
58516
      sb.append(this.billingWarehouseId);
-
 
58517
      first = false;
-
 
58518
      if (!first) sb.append(", ");
-
 
58519
      sb.append("shippingWarehouseId:");
-
 
58520
      sb.append(this.shippingWarehouseId);
-
 
58521
      first = false;
60214
      sb.append(")");
58522
      sb.append(")");
60215
      return sb.toString();
58523
      return sb.toString();
60216
    }
58524
    }
60217
 
58525
 
60218
    public void validate() throws org.apache.thrift.TException {
58526
    public void validate() throws org.apache.thrift.TException {
Line 60237... Line 58545...
60237
      }
58545
      }
60238
    }
58546
    }
60239
 
58547
 
60240
  }
58548
  }
60241
 
58549
 
60242
  public static class addAuthorizationLog_result implements org.apache.thrift.TBase<addAuthorizationLog_result, addAuthorizationLog_result._Fields>, java.io.Serializable, Cloneable   {
58550
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
60243
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_result");
58551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
60244
 
58552
 
60245
    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);
58553
    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);
60246
    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);
-
 
60247
 
58554
 
60248
    private boolean success; // required
58555
    private List<Warehouse> success; // required
60249
    private InventoryServiceException cex; // required
-
 
60250
 
58556
 
60251
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60252
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60253
      SUCCESS((short)0, "success"),
58559
      SUCCESS((short)0, "success");
60254
      CEX((short)1, "cex");
-
 
60255
 
58560
 
60256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60257
 
58562
 
60258
      static {
58563
      static {
60259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 60266... Line 58571...
60266
       */
58571
       */
60267
      public static _Fields findByThriftId(int fieldId) {
58572
      public static _Fields findByThriftId(int fieldId) {
60268
        switch(fieldId) {
58573
        switch(fieldId) {
60269
          case 0: // SUCCESS
58574
          case 0: // SUCCESS
60270
            return SUCCESS;
58575
            return SUCCESS;
60271
          case 1: // CEX
-
 
60272
            return CEX;
-
 
60273
          default:
58576
          default:
60274
            return null;
58577
            return null;
60275
        }
58578
        }
60276
      }
58579
      }
60277
 
58580
 
Line 60308... Line 58611...
60308
        return _fieldName;
58611
        return _fieldName;
60309
      }
58612
      }
60310
    }
58613
    }
60311
 
58614
 
60312
    // isset id assignments
58615
    // isset id assignments
60313
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
60314
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
60315
 
58616
 
60316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58617
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60317
    static {
58618
    static {
60318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58619
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60319
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58620
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
58621
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
60321
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
58622
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
60323
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60324
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_result.class, metaDataMap);
58624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
60325
    }
58625
    }
60326
 
58626
 
60327
    public addAuthorizationLog_result() {
58627
    public getWarehouses_result() {
60328
    }
58628
    }
60329
 
58629
 
60330
    public addAuthorizationLog_result(
58630
    public getWarehouses_result(
60331
      boolean success,
58631
      List<Warehouse> success)
60332
      InventoryServiceException cex)
-
 
60333
    {
58632
    {
60334
      this();
58633
      this();
60335
      this.success = success;
58634
      this.success = success;
60336
      setSuccessIsSet(true);
-
 
60337
      this.cex = cex;
-
 
60338
    }
58635
    }
60339
 
58636
 
60340
    /**
58637
    /**
60341
     * Performs a deep copy on <i>other</i>.
58638
     * Performs a deep copy on <i>other</i>.
60342
     */
58639
     */
60343
    public addAuthorizationLog_result(addAuthorizationLog_result other) {
58640
    public getWarehouses_result(getWarehouses_result other) {
60344
      __isset_bit_vector.clear();
58641
      if (other.isSetSuccess()) {
60345
      __isset_bit_vector.or(other.__isset_bit_vector);
58642
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
60346
      this.success = other.success;
58643
        for (Warehouse other_element : other.success) {
60347
      if (other.isSetCex()) {
58644
          __this__success.add(new Warehouse(other_element));
-
 
58645
        }
60348
        this.cex = new InventoryServiceException(other.cex);
58646
        this.success = __this__success;
60349
      }
58647
      }
60350
    }
58648
    }
60351
 
58649
 
60352
    public addAuthorizationLog_result deepCopy() {
58650
    public getWarehouses_result deepCopy() {
60353
      return new addAuthorizationLog_result(this);
58651
      return new getWarehouses_result(this);
60354
    }
58652
    }
60355
 
58653
 
60356
    @Override
58654
    @Override
60357
    public void clear() {
58655
    public void clear() {
60358
      setSuccessIsSet(false);
-
 
60359
      this.success = false;
58656
      this.success = null;
60360
      this.cex = null;
-
 
60361
    }
-
 
60362
 
-
 
60363
    public boolean isSuccess() {
-
 
60364
      return this.success;
-
 
60365
    }
-
 
60366
 
-
 
60367
    public void setSuccess(boolean success) {
-
 
60368
      this.success = success;
-
 
60369
      setSuccessIsSet(true);
-
 
60370
    }
58657
    }
60371
 
58658
 
60372
    public void unsetSuccess() {
58659
    public int getSuccessSize() {
60373
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
58660
      return (this.success == null) ? 0 : this.success.size();
60374
    }
58661
    }
60375
 
58662
 
60376
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
60377
    public boolean isSetSuccess() {
58663
    public java.util.Iterator<Warehouse> getSuccessIterator() {
60378
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
58664
      return (this.success == null) ? null : this.success.iterator();
60379
    }
58665
    }
60380
 
58666
 
60381
    public void setSuccessIsSet(boolean value) {
58667
    public void addToSuccess(Warehouse elem) {
-
 
58668
      if (this.success == null) {
60382
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
58669
        this.success = new ArrayList<Warehouse>();
-
 
58670
      }
-
 
58671
      this.success.add(elem);
60383
    }
58672
    }
60384
 
58673
 
60385
    public InventoryServiceException getCex() {
58674
    public List<Warehouse> getSuccess() {
60386
      return this.cex;
58675
      return this.success;
60387
    }
58676
    }
60388
 
58677
 
60389
    public void setCex(InventoryServiceException cex) {
58678
    public void setSuccess(List<Warehouse> success) {
60390
      this.cex = cex;
58679
      this.success = success;
60391
    }
58680
    }
60392
 
58681
 
60393
    public void unsetCex() {
58682
    public void unsetSuccess() {
60394
      this.cex = null;
58683
      this.success = null;
60395
    }
58684
    }
60396
 
58685
 
60397
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
58686
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
60398
    public boolean isSetCex() {
58687
    public boolean isSetSuccess() {
60399
      return this.cex != null;
58688
      return this.success != null;
60400
    }
58689
    }
60401
 
58690
 
60402
    public void setCexIsSet(boolean value) {
58691
    public void setSuccessIsSet(boolean value) {
60403
      if (!value) {
58692
      if (!value) {
60404
        this.cex = null;
58693
        this.success = null;
60405
      }
58694
      }
60406
    }
58695
    }
60407
 
58696
 
60408
    public void setFieldValue(_Fields field, Object value) {
58697
    public void setFieldValue(_Fields field, Object value) {
60409
      switch (field) {
58698
      switch (field) {
60410
      case SUCCESS:
58699
      case SUCCESS:
60411
        if (value == null) {
58700
        if (value == null) {
60412
          unsetSuccess();
58701
          unsetSuccess();
60413
        } else {
58702
        } else {
60414
          setSuccess((Boolean)value);
58703
          setSuccess((List<Warehouse>)value);
60415
        }
-
 
60416
        break;
-
 
60417
 
-
 
60418
      case CEX:
-
 
60419
        if (value == null) {
-
 
60420
          unsetCex();
-
 
60421
        } else {
-
 
60422
          setCex((InventoryServiceException)value);
-
 
60423
        }
58704
        }
60424
        break;
58705
        break;
60425
 
58706
 
60426
      }
58707
      }
60427
    }
58708
    }
60428
 
58709
 
60429
    public Object getFieldValue(_Fields field) {
58710
    public Object getFieldValue(_Fields field) {
60430
      switch (field) {
58711
      switch (field) {
60431
      case SUCCESS:
58712
      case SUCCESS:
60432
        return Boolean.valueOf(isSuccess());
-
 
60433
 
-
 
60434
      case CEX:
-
 
60435
        return getCex();
58713
        return getSuccess();
60436
 
58714
 
60437
      }
58715
      }
60438
      throw new IllegalStateException();
58716
      throw new IllegalStateException();
60439
    }
58717
    }
60440
 
58718
 
Line 60445... Line 58723...
60445
      }
58723
      }
60446
 
58724
 
60447
      switch (field) {
58725
      switch (field) {
60448
      case SUCCESS:
58726
      case SUCCESS:
60449
        return isSetSuccess();
58727
        return isSetSuccess();
60450
      case CEX:
-
 
60451
        return isSetCex();
-
 
60452
      }
58728
      }
60453
      throw new IllegalStateException();
58729
      throw new IllegalStateException();
60454
    }
58730
    }
60455
 
58731
 
60456
    @Override
58732
    @Override
60457
    public boolean equals(Object that) {
58733
    public boolean equals(Object that) {
60458
      if (that == null)
58734
      if (that == null)
60459
        return false;
58735
        return false;
60460
      if (that instanceof addAuthorizationLog_result)
58736
      if (that instanceof getWarehouses_result)
60461
        return this.equals((addAuthorizationLog_result)that);
58737
        return this.equals((getWarehouses_result)that);
60462
      return false;
58738
      return false;
60463
    }
58739
    }
60464
 
58740
 
60465
    public boolean equals(addAuthorizationLog_result that) {
58741
    public boolean equals(getWarehouses_result that) {
60466
      if (that == null)
58742
      if (that == null)
60467
        return false;
58743
        return false;
60468
 
58744
 
60469
      boolean this_present_success = true;
58745
      boolean this_present_success = true && this.isSetSuccess();
60470
      boolean that_present_success = true;
58746
      boolean that_present_success = true && that.isSetSuccess();
60471
      if (this_present_success || that_present_success) {
58747
      if (this_present_success || that_present_success) {
60472
        if (!(this_present_success && that_present_success))
58748
        if (!(this_present_success && that_present_success))
60473
          return false;
58749
          return false;
60474
        if (this.success != that.success)
58750
        if (!this.success.equals(that.success))
60475
          return false;
-
 
60476
      }
-
 
60477
 
-
 
60478
      boolean this_present_cex = true && this.isSetCex();
-
 
60479
      boolean that_present_cex = true && that.isSetCex();
-
 
60480
      if (this_present_cex || that_present_cex) {
-
 
60481
        if (!(this_present_cex && that_present_cex))
-
 
60482
          return false;
-
 
60483
        if (!this.cex.equals(that.cex))
-
 
60484
          return false;
58751
          return false;
60485
      }
58752
      }
60486
 
58753
 
60487
      return true;
58754
      return true;
60488
    }
58755
    }
Line 60490... Line 58757...
60490
    @Override
58757
    @Override
60491
    public int hashCode() {
58758
    public int hashCode() {
60492
      return 0;
58759
      return 0;
60493
    }
58760
    }
60494
 
58761
 
60495
    public int compareTo(addAuthorizationLog_result other) {
58762
    public int compareTo(getWarehouses_result other) {
60496
      if (!getClass().equals(other.getClass())) {
58763
      if (!getClass().equals(other.getClass())) {
60497
        return getClass().getName().compareTo(other.getClass().getName());
58764
        return getClass().getName().compareTo(other.getClass().getName());
60498
      }
58765
      }
60499
 
58766
 
60500
      int lastComparison = 0;
58767
      int lastComparison = 0;
60501
      addAuthorizationLog_result typedOther = (addAuthorizationLog_result)other;
58768
      getWarehouses_result typedOther = (getWarehouses_result)other;
60502
 
58769
 
60503
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
58770
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
60504
      if (lastComparison != 0) {
58771
      if (lastComparison != 0) {
60505
        return lastComparison;
58772
        return lastComparison;
60506
      }
58773
      }
Line 60508... Line 58775...
60508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
58775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
60509
        if (lastComparison != 0) {
58776
        if (lastComparison != 0) {
60510
          return lastComparison;
58777
          return lastComparison;
60511
        }
58778
        }
60512
      }
58779
      }
60513
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
60514
      if (lastComparison != 0) {
-
 
60515
        return lastComparison;
-
 
60516
      }
-
 
60517
      if (isSetCex()) {
-
 
60518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
60519
        if (lastComparison != 0) {
-
 
60520
          return lastComparison;
-
 
60521
        }
-
 
60522
      }
-
 
60523
      return 0;
58780
      return 0;
60524
    }
58781
    }
60525
 
58782
 
60526
    public _Fields fieldForId(int fieldId) {
58783
    public _Fields fieldForId(int fieldId) {
60527
      return _Fields.findByThriftId(fieldId);
58784
      return _Fields.findByThriftId(fieldId);
Line 60536... Line 58793...
60536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60537
          break;
58794
          break;
60538
        }
58795
        }
60539
        switch (field.id) {
58796
        switch (field.id) {
60540
          case 0: // SUCCESS
58797
          case 0: // SUCCESS
60541
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
58798
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
58799
              {
60542
              this.success = iprot.readBool();
58800
                org.apache.thrift.protocol.TList _list169 = iprot.readListBegin();
60543
              setSuccessIsSet(true);
58801
                this.success = new ArrayList<Warehouse>(_list169.size);
60544
            } else { 
-
 
60545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58802
                for (int _i170 = 0; _i170 < _list169.size; ++_i170)
60546
            }
58803
                {
60547
            break;
58804
                  Warehouse _elem171; // required
60548
          case 1: // CEX
58805
                  _elem171 = new Warehouse();
60549
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
58806
                  _elem171.read(iprot);
60550
              this.cex = new InventoryServiceException();
58807
                  this.success.add(_elem171);
-
 
58808
                }
60551
              this.cex.read(iprot);
58809
                iprot.readListEnd();
-
 
58810
              }
60552
            } else { 
58811
            } else { 
60553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60554
            }
58813
            }
60555
            break;
58814
            break;
60556
          default:
58815
          default:
Line 60565... Line 58824...
60565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60566
      oprot.writeStructBegin(STRUCT_DESC);
58825
      oprot.writeStructBegin(STRUCT_DESC);
60567
 
58826
 
60568
      if (this.isSetSuccess()) {
58827
      if (this.isSetSuccess()) {
60569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58828
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
58829
        {
-
 
58830
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60570
        oprot.writeBool(this.success);
58831
          for (Warehouse _iter172 : this.success)
-
 
58832
          {
60571
        oprot.writeFieldEnd();
58833
            _iter172.write(oprot);
60572
      } else if (this.isSetCex()) {
58834
          }
60573
        oprot.writeFieldBegin(CEX_FIELD_DESC);
58835
          oprot.writeListEnd();
60574
        this.cex.write(oprot);
58836
        }
60575
        oprot.writeFieldEnd();
58837
        oprot.writeFieldEnd();
60576
      }
58838
      }
60577
      oprot.writeFieldStop();
58839
      oprot.writeFieldStop();
60578
      oprot.writeStructEnd();
58840
      oprot.writeStructEnd();
60579
    }
58841
    }
60580
 
58842
 
60581
    @Override
58843
    @Override
60582
    public String toString() {
58844
    public String toString() {
60583
      StringBuilder sb = new StringBuilder("addAuthorizationLog_result(");
58845
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
60584
      boolean first = true;
58846
      boolean first = true;
60585
 
58847
 
60586
      sb.append("success:");
58848
      sb.append("success:");
60587
      sb.append(this.success);
-
 
60588
      first = false;
-
 
60589
      if (!first) sb.append(", ");
-
 
60590
      sb.append("cex:");
-
 
60591
      if (this.cex == null) {
58849
      if (this.success == null) {
60592
        sb.append("null");
58850
        sb.append("null");
60593
      } else {
58851
      } else {
60594
        sb.append(this.cex);
58852
        sb.append(this.success);
60595
      }
58853
      }
60596
      first = false;
58854
      first = false;
60597
      sb.append(")");
58855
      sb.append(")");
60598
      return sb.toString();
58856
      return sb.toString();
60599
    }
58857
    }
Line 62002... Line 60260...
62002
        }
60260
        }
62003
        switch (field.id) {
60261
        switch (field.id) {
62004
          case 0: // SUCCESS
60262
          case 0: // SUCCESS
62005
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60263
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62006
              {
60264
              {
62007
                org.apache.thrift.protocol.TList _list177 = iprot.readListBegin();
60265
                org.apache.thrift.protocol.TList _list173 = iprot.readListBegin();
62008
                this.success = new ArrayList<String>(_list177.size);
60266
                this.success = new ArrayList<String>(_list173.size);
62009
                for (int _i178 = 0; _i178 < _list177.size; ++_i178)
60267
                for (int _i174 = 0; _i174 < _list173.size; ++_i174)
62010
                {
60268
                {
62011
                  String _elem179; // required
60269
                  String _elem175; // required
62012
                  _elem179 = iprot.readString();
60270
                  _elem175 = iprot.readString();
62013
                  this.success.add(_elem179);
60271
                  this.success.add(_elem175);
62014
                }
60272
                }
62015
                iprot.readListEnd();
60273
                iprot.readListEnd();
62016
              }
60274
              }
62017
            } else { 
60275
            } else { 
62018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 62032... Line 60290...
62032
 
60290
 
62033
      if (this.isSetSuccess()) {
60291
      if (this.isSetSuccess()) {
62034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60292
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62035
        {
60293
        {
62036
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
60294
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
62037
          for (String _iter180 : this.success)
60295
          for (String _iter176 : this.success)
62038
          {
60296
          {
62039
            oprot.writeString(_iter180);
60297
            oprot.writeString(_iter176);
62040
          }
60298
          }
62041
          oprot.writeListEnd();
60299
          oprot.writeListEnd();
62042
        }
60300
        }
62043
        oprot.writeFieldEnd();
60301
        oprot.writeFieldEnd();
62044
      }
60302
      }
Line 62640... Line 60898...
62640
      sb.append(")");
60898
      sb.append(")");
62641
      return sb.toString();
60899
      return sb.toString();
62642
    }
60900
    }
62643
 
60901
 
62644
    public void validate() throws org.apache.thrift.TException {
60902
    public void validate() throws org.apache.thrift.TException {
-
 
60903
      // check for required fields
-
 
60904
    }
-
 
60905
 
-
 
60906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60907
      try {
-
 
60908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60909
      } catch (org.apache.thrift.TException te) {
-
 
60910
        throw new java.io.IOException(te);
-
 
60911
      }
-
 
60912
    }
-
 
60913
 
-
 
60914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60915
      try {
-
 
60916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60917
      } catch (org.apache.thrift.TException te) {
-
 
60918
        throw new java.io.IOException(te);
-
 
60919
      }
-
 
60920
    }
-
 
60921
 
-
 
60922
  }
-
 
60923
 
-
 
60924
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
-
 
60926
 
-
 
60927
 
-
 
60928
 
-
 
60929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60931
;
-
 
60932
 
-
 
60933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60934
 
-
 
60935
      static {
-
 
60936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60937
          byName.put(field.getFieldName(), field);
-
 
60938
        }
-
 
60939
      }
-
 
60940
 
-
 
60941
      /**
-
 
60942
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60943
       */
-
 
60944
      public static _Fields findByThriftId(int fieldId) {
-
 
60945
        switch(fieldId) {
-
 
60946
          default:
-
 
60947
            return null;
-
 
60948
        }
-
 
60949
      }
-
 
60950
 
-
 
60951
      /**
-
 
60952
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60953
       * if it is not found.
-
 
60954
       */
-
 
60955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60956
        _Fields fields = findByThriftId(fieldId);
-
 
60957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60958
        return fields;
-
 
60959
      }
-
 
60960
 
-
 
60961
      /**
-
 
60962
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60963
       */
-
 
60964
      public static _Fields findByName(String name) {
-
 
60965
        return byName.get(name);
-
 
60966
      }
-
 
60967
 
-
 
60968
      private final short _thriftId;
-
 
60969
      private final String _fieldName;
-
 
60970
 
-
 
60971
      _Fields(short thriftId, String fieldName) {
-
 
60972
        _thriftId = thriftId;
-
 
60973
        _fieldName = fieldName;
-
 
60974
      }
-
 
60975
 
-
 
60976
      public short getThriftFieldId() {
-
 
60977
        return _thriftId;
-
 
60978
      }
-
 
60979
 
-
 
60980
      public String getFieldName() {
-
 
60981
        return _fieldName;
-
 
60982
      }
-
 
60983
    }
-
 
60984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60985
    static {
-
 
60986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
-
 
60989
    }
-
 
60990
 
-
 
60991
    public getIgnoredItemKeys_args() {
-
 
60992
    }
-
 
60993
 
-
 
60994
    /**
-
 
60995
     * Performs a deep copy on <i>other</i>.
-
 
60996
     */
-
 
60997
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
-
 
60998
    }
-
 
60999
 
-
 
61000
    public getIgnoredItemKeys_args deepCopy() {
-
 
61001
      return new getIgnoredItemKeys_args(this);
-
 
61002
    }
-
 
61003
 
-
 
61004
    @Override
-
 
61005
    public void clear() {
-
 
61006
    }
-
 
61007
 
-
 
61008
    public void setFieldValue(_Fields field, Object value) {
-
 
61009
      switch (field) {
-
 
61010
      }
-
 
61011
    }
-
 
61012
 
-
 
61013
    public Object getFieldValue(_Fields field) {
-
 
61014
      switch (field) {
-
 
61015
      }
-
 
61016
      throw new IllegalStateException();
-
 
61017
    }
-
 
61018
 
-
 
61019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61020
    public boolean isSet(_Fields field) {
-
 
61021
      if (field == null) {
-
 
61022
        throw new IllegalArgumentException();
-
 
61023
      }
-
 
61024
 
-
 
61025
      switch (field) {
-
 
61026
      }
-
 
61027
      throw new IllegalStateException();
-
 
61028
    }
-
 
61029
 
-
 
61030
    @Override
-
 
61031
    public boolean equals(Object that) {
-
 
61032
      if (that == null)
-
 
61033
        return false;
-
 
61034
      if (that instanceof getIgnoredItemKeys_args)
-
 
61035
        return this.equals((getIgnoredItemKeys_args)that);
-
 
61036
      return false;
-
 
61037
    }
-
 
61038
 
-
 
61039
    public boolean equals(getIgnoredItemKeys_args that) {
-
 
61040
      if (that == null)
-
 
61041
        return false;
-
 
61042
 
-
 
61043
      return true;
-
 
61044
    }
-
 
61045
 
-
 
61046
    @Override
-
 
61047
    public int hashCode() {
-
 
61048
      return 0;
-
 
61049
    }
-
 
61050
 
-
 
61051
    public int compareTo(getIgnoredItemKeys_args other) {
-
 
61052
      if (!getClass().equals(other.getClass())) {
-
 
61053
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61054
      }
-
 
61055
 
-
 
61056
      int lastComparison = 0;
-
 
61057
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
-
 
61058
 
-
 
61059
      return 0;
-
 
61060
    }
-
 
61061
 
-
 
61062
    public _Fields fieldForId(int fieldId) {
-
 
61063
      return _Fields.findByThriftId(fieldId);
-
 
61064
    }
-
 
61065
 
-
 
61066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61067
      org.apache.thrift.protocol.TField field;
-
 
61068
      iprot.readStructBegin();
-
 
61069
      while (true)
-
 
61070
      {
-
 
61071
        field = iprot.readFieldBegin();
-
 
61072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61073
          break;
-
 
61074
        }
-
 
61075
        switch (field.id) {
-
 
61076
          default:
-
 
61077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61078
        }
-
 
61079
        iprot.readFieldEnd();
-
 
61080
      }
-
 
61081
      iprot.readStructEnd();
-
 
61082
      validate();
-
 
61083
    }
-
 
61084
 
-
 
61085
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61086
      validate();
-
 
61087
 
-
 
61088
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61089
      oprot.writeFieldStop();
-
 
61090
      oprot.writeStructEnd();
-
 
61091
    }
-
 
61092
 
-
 
61093
    @Override
-
 
61094
    public String toString() {
-
 
61095
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
-
 
61096
      boolean first = true;
-
 
61097
 
-
 
61098
      sb.append(")");
-
 
61099
      return sb.toString();
-
 
61100
    }
-
 
61101
 
-
 
61102
    public void validate() throws org.apache.thrift.TException {
-
 
61103
      // check for required fields
-
 
61104
    }
-
 
61105
 
-
 
61106
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61107
      try {
-
 
61108
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61109
      } catch (org.apache.thrift.TException te) {
-
 
61110
        throw new java.io.IOException(te);
-
 
61111
      }
-
 
61112
    }
-
 
61113
 
-
 
61114
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61115
      try {
-
 
61116
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61117
      } catch (org.apache.thrift.TException te) {
-
 
61118
        throw new java.io.IOException(te);
-
 
61119
      }
-
 
61120
    }
-
 
61121
 
-
 
61122
  }
-
 
61123
 
-
 
61124
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61125
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
-
 
61126
 
-
 
61127
    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);
-
 
61128
 
-
 
61129
    private Map<String,Map<Long,Long>> success; // required
-
 
61130
 
-
 
61131
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61132
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61133
      SUCCESS((short)0, "success");
-
 
61134
 
-
 
61135
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61136
 
-
 
61137
      static {
-
 
61138
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61139
          byName.put(field.getFieldName(), field);
-
 
61140
        }
-
 
61141
      }
-
 
61142
 
-
 
61143
      /**
-
 
61144
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61145
       */
-
 
61146
      public static _Fields findByThriftId(int fieldId) {
-
 
61147
        switch(fieldId) {
-
 
61148
          case 0: // SUCCESS
-
 
61149
            return SUCCESS;
-
 
61150
          default:
-
 
61151
            return null;
-
 
61152
        }
-
 
61153
      }
-
 
61154
 
-
 
61155
      /**
-
 
61156
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61157
       * if it is not found.
-
 
61158
       */
-
 
61159
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61160
        _Fields fields = findByThriftId(fieldId);
-
 
61161
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61162
        return fields;
-
 
61163
      }
-
 
61164
 
-
 
61165
      /**
-
 
61166
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61167
       */
-
 
61168
      public static _Fields findByName(String name) {
-
 
61169
        return byName.get(name);
-
 
61170
      }
-
 
61171
 
-
 
61172
      private final short _thriftId;
-
 
61173
      private final String _fieldName;
-
 
61174
 
-
 
61175
      _Fields(short thriftId, String fieldName) {
-
 
61176
        _thriftId = thriftId;
-
 
61177
        _fieldName = fieldName;
-
 
61178
      }
-
 
61179
 
-
 
61180
      public short getThriftFieldId() {
-
 
61181
        return _thriftId;
-
 
61182
      }
-
 
61183
 
-
 
61184
      public String getFieldName() {
-
 
61185
        return _fieldName;
-
 
61186
      }
-
 
61187
    }
-
 
61188
 
-
 
61189
    // isset id assignments
-
 
61190
 
-
 
61191
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61192
    static {
-
 
61193
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61194
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61195
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
61196
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
61197
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
61198
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
61199
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
-
 
61200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
-
 
61202
    }
-
 
61203
 
-
 
61204
    public getIgnoredItemKeys_result() {
-
 
61205
    }
-
 
61206
 
-
 
61207
    public getIgnoredItemKeys_result(
-
 
61208
      Map<String,Map<Long,Long>> success)
-
 
61209
    {
-
 
61210
      this();
-
 
61211
      this.success = success;
-
 
61212
    }
-
 
61213
 
-
 
61214
    /**
-
 
61215
     * Performs a deep copy on <i>other</i>.
-
 
61216
     */
-
 
61217
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
-
 
61218
      if (other.isSetSuccess()) {
-
 
61219
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
-
 
61220
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
-
 
61221
 
-
 
61222
          String other_element_key = other_element.getKey();
-
 
61223
          Map<Long,Long> other_element_value = other_element.getValue();
-
 
61224
 
-
 
61225
          String __this__success_copy_key = other_element_key;
-
 
61226
 
-
 
61227
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
-
 
61228
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
-
 
61229
 
-
 
61230
            Long other_element_value_element_key = other_element_value_element.getKey();
-
 
61231
            Long other_element_value_element_value = other_element_value_element.getValue();
-
 
61232
 
-
 
61233
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
-
 
61234
 
-
 
61235
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
-
 
61236
 
-
 
61237
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
-
 
61238
          }
-
 
61239
 
-
 
61240
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
61241
        }
-
 
61242
        this.success = __this__success;
-
 
61243
      }
-
 
61244
    }
-
 
61245
 
-
 
61246
    public getIgnoredItemKeys_result deepCopy() {
-
 
61247
      return new getIgnoredItemKeys_result(this);
-
 
61248
    }
-
 
61249
 
-
 
61250
    @Override
-
 
61251
    public void clear() {
-
 
61252
      this.success = null;
-
 
61253
    }
-
 
61254
 
-
 
61255
    public int getSuccessSize() {
-
 
61256
      return (this.success == null) ? 0 : this.success.size();
-
 
61257
    }
-
 
61258
 
-
 
61259
    public void putToSuccess(String key, Map<Long,Long> val) {
-
 
61260
      if (this.success == null) {
-
 
61261
        this.success = new HashMap<String,Map<Long,Long>>();
-
 
61262
      }
-
 
61263
      this.success.put(key, val);
-
 
61264
    }
-
 
61265
 
-
 
61266
    public Map<String,Map<Long,Long>> getSuccess() {
-
 
61267
      return this.success;
-
 
61268
    }
-
 
61269
 
-
 
61270
    public void setSuccess(Map<String,Map<Long,Long>> success) {
-
 
61271
      this.success = success;
-
 
61272
    }
-
 
61273
 
-
 
61274
    public void unsetSuccess() {
-
 
61275
      this.success = null;
-
 
61276
    }
-
 
61277
 
-
 
61278
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
61279
    public boolean isSetSuccess() {
-
 
61280
      return this.success != null;
-
 
61281
    }
-
 
61282
 
-
 
61283
    public void setSuccessIsSet(boolean value) {
-
 
61284
      if (!value) {
-
 
61285
        this.success = null;
-
 
61286
      }
-
 
61287
    }
-
 
61288
 
-
 
61289
    public void setFieldValue(_Fields field, Object value) {
-
 
61290
      switch (field) {
-
 
61291
      case SUCCESS:
-
 
61292
        if (value == null) {
-
 
61293
          unsetSuccess();
-
 
61294
        } else {
-
 
61295
          setSuccess((Map<String,Map<Long,Long>>)value);
-
 
61296
        }
-
 
61297
        break;
-
 
61298
 
-
 
61299
      }
-
 
61300
    }
-
 
61301
 
-
 
61302
    public Object getFieldValue(_Fields field) {
-
 
61303
      switch (field) {
-
 
61304
      case SUCCESS:
-
 
61305
        return getSuccess();
-
 
61306
 
-
 
61307
      }
-
 
61308
      throw new IllegalStateException();
-
 
61309
    }
-
 
61310
 
-
 
61311
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61312
    public boolean isSet(_Fields field) {
-
 
61313
      if (field == null) {
-
 
61314
        throw new IllegalArgumentException();
-
 
61315
      }
-
 
61316
 
-
 
61317
      switch (field) {
-
 
61318
      case SUCCESS:
-
 
61319
        return isSetSuccess();
-
 
61320
      }
-
 
61321
      throw new IllegalStateException();
-
 
61322
    }
-
 
61323
 
-
 
61324
    @Override
-
 
61325
    public boolean equals(Object that) {
-
 
61326
      if (that == null)
-
 
61327
        return false;
-
 
61328
      if (that instanceof getIgnoredItemKeys_result)
-
 
61329
        return this.equals((getIgnoredItemKeys_result)that);
-
 
61330
      return false;
-
 
61331
    }
-
 
61332
 
-
 
61333
    public boolean equals(getIgnoredItemKeys_result that) {
-
 
61334
      if (that == null)
-
 
61335
        return false;
-
 
61336
 
-
 
61337
      boolean this_present_success = true && this.isSetSuccess();
-
 
61338
      boolean that_present_success = true && that.isSetSuccess();
-
 
61339
      if (this_present_success || that_present_success) {
-
 
61340
        if (!(this_present_success && that_present_success))
-
 
61341
          return false;
-
 
61342
        if (!this.success.equals(that.success))
-
 
61343
          return false;
-
 
61344
      }
-
 
61345
 
-
 
61346
      return true;
-
 
61347
    }
-
 
61348
 
-
 
61349
    @Override
-
 
61350
    public int hashCode() {
-
 
61351
      return 0;
-
 
61352
    }
-
 
61353
 
-
 
61354
    public int compareTo(getIgnoredItemKeys_result other) {
-
 
61355
      if (!getClass().equals(other.getClass())) {
-
 
61356
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61357
      }
-
 
61358
 
-
 
61359
      int lastComparison = 0;
-
 
61360
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
-
 
61361
 
-
 
61362
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
61363
      if (lastComparison != 0) {
-
 
61364
        return lastComparison;
-
 
61365
      }
-
 
61366
      if (isSetSuccess()) {
-
 
61367
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
61368
        if (lastComparison != 0) {
-
 
61369
          return lastComparison;
-
 
61370
        }
-
 
61371
      }
-
 
61372
      return 0;
-
 
61373
    }
-
 
61374
 
-
 
61375
    public _Fields fieldForId(int fieldId) {
-
 
61376
      return _Fields.findByThriftId(fieldId);
-
 
61377
    }
-
 
61378
 
-
 
61379
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61380
      org.apache.thrift.protocol.TField field;
-
 
61381
      iprot.readStructBegin();
-
 
61382
      while (true)
-
 
61383
      {
-
 
61384
        field = iprot.readFieldBegin();
-
 
61385
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61386
          break;
-
 
61387
        }
-
 
61388
        switch (field.id) {
-
 
61389
          case 0: // SUCCESS
-
 
61390
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
61391
              {
-
 
61392
                org.apache.thrift.protocol.TMap _map177 = iprot.readMapBegin();
-
 
61393
                this.success = new HashMap<String,Map<Long,Long>>(2*_map177.size);
-
 
61394
                for (int _i178 = 0; _i178 < _map177.size; ++_i178)
-
 
61395
                {
-
 
61396
                  String _key179; // required
-
 
61397
                  Map<Long,Long> _val180; // required
-
 
61398
                  _key179 = iprot.readString();
-
 
61399
                  {
-
 
61400
                    org.apache.thrift.protocol.TMap _map181 = iprot.readMapBegin();
-
 
61401
                    _val180 = new HashMap<Long,Long>(2*_map181.size);
-
 
61402
                    for (int _i182 = 0; _i182 < _map181.size; ++_i182)
-
 
61403
                    {
-
 
61404
                      long _key183; // required
-
 
61405
                      long _val184; // required
-
 
61406
                      _key183 = iprot.readI64();
-
 
61407
                      _val184 = iprot.readI64();
-
 
61408
                      _val180.put(_key183, _val184);
-
 
61409
                    }
-
 
61410
                    iprot.readMapEnd();
-
 
61411
                  }
-
 
61412
                  this.success.put(_key179, _val180);
-
 
61413
                }
-
 
61414
                iprot.readMapEnd();
-
 
61415
              }
-
 
61416
            } else { 
-
 
61417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61418
            }
-
 
61419
            break;
-
 
61420
          default:
-
 
61421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61422
        }
-
 
61423
        iprot.readFieldEnd();
-
 
61424
      }
-
 
61425
      iprot.readStructEnd();
-
 
61426
      validate();
-
 
61427
    }
-
 
61428
 
-
 
61429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61430
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61431
 
-
 
61432
      if (this.isSetSuccess()) {
-
 
61433
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
61434
        {
-
 
61435
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
-
 
61436
          for (Map.Entry<String, Map<Long,Long>> _iter185 : this.success.entrySet())
-
 
61437
          {
-
 
61438
            oprot.writeString(_iter185.getKey());
-
 
61439
            {
-
 
61440
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter185.getValue().size()));
-
 
61441
              for (Map.Entry<Long, Long> _iter186 : _iter185.getValue().entrySet())
-
 
61442
              {
-
 
61443
                oprot.writeI64(_iter186.getKey());
-
 
61444
                oprot.writeI64(_iter186.getValue());
-
 
61445
              }
-
 
61446
              oprot.writeMapEnd();
-
 
61447
            }
-
 
61448
          }
-
 
61449
          oprot.writeMapEnd();
-
 
61450
        }
-
 
61451
        oprot.writeFieldEnd();
-
 
61452
      }
-
 
61453
      oprot.writeFieldStop();
-
 
61454
      oprot.writeStructEnd();
-
 
61455
    }
-
 
61456
 
-
 
61457
    @Override
-
 
61458
    public String toString() {
-
 
61459
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
-
 
61460
      boolean first = true;
-
 
61461
 
-
 
61462
      sb.append("success:");
-
 
61463
      if (this.success == null) {
-
 
61464
        sb.append("null");
-
 
61465
      } else {
-
 
61466
        sb.append(this.success);
-
 
61467
      }
-
 
61468
      first = false;
-
 
61469
      sb.append(")");
-
 
61470
      return sb.toString();
-
 
61471
    }
-
 
61472
 
-
 
61473
    public void validate() throws org.apache.thrift.TException {
-
 
61474
      // check for required fields
-
 
61475
    }
-
 
61476
 
-
 
61477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61478
      try {
-
 
61479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61480
      } catch (org.apache.thrift.TException te) {
-
 
61481
        throw new java.io.IOException(te);
-
 
61482
      }
-
 
61483
    }
-
 
61484
 
-
 
61485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61486
      try {
-
 
61487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61488
      } catch (org.apache.thrift.TException te) {
-
 
61489
        throw new java.io.IOException(te);
-
 
61490
      }
-
 
61491
    }
-
 
61492
 
-
 
61493
  }
-
 
61494
 
-
 
61495
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
61496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
-
 
61497
 
-
 
61498
    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);
-
 
61499
    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);
-
 
61500
    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);
-
 
61501
 
-
 
61502
    private long itemId; // required
-
 
61503
    private long warehouseId; // required
-
 
61504
    private long quantity; // required
-
 
61505
 
-
 
61506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61508
      ITEM_ID((short)1, "itemId"),
-
 
61509
      WAREHOUSE_ID((short)2, "warehouseId"),
-
 
61510
      QUANTITY((short)3, "quantity");
-
 
61511
 
-
 
61512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61513
 
-
 
61514
      static {
-
 
61515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61516
          byName.put(field.getFieldName(), field);
-
 
61517
        }
-
 
61518
      }
-
 
61519
 
-
 
61520
      /**
-
 
61521
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61522
       */
-
 
61523
      public static _Fields findByThriftId(int fieldId) {
-
 
61524
        switch(fieldId) {
-
 
61525
          case 1: // ITEM_ID
-
 
61526
            return ITEM_ID;
-
 
61527
          case 2: // WAREHOUSE_ID
-
 
61528
            return WAREHOUSE_ID;
-
 
61529
          case 3: // QUANTITY
-
 
61530
            return QUANTITY;
-
 
61531
          default:
-
 
61532
            return null;
-
 
61533
        }
-
 
61534
      }
-
 
61535
 
-
 
61536
      /**
-
 
61537
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61538
       * if it is not found.
-
 
61539
       */
-
 
61540
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61541
        _Fields fields = findByThriftId(fieldId);
-
 
61542
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61543
        return fields;
-
 
61544
      }
-
 
61545
 
-
 
61546
      /**
-
 
61547
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61548
       */
-
 
61549
      public static _Fields findByName(String name) {
-
 
61550
        return byName.get(name);
-
 
61551
      }
-
 
61552
 
-
 
61553
      private final short _thriftId;
-
 
61554
      private final String _fieldName;
-
 
61555
 
-
 
61556
      _Fields(short thriftId, String fieldName) {
-
 
61557
        _thriftId = thriftId;
-
 
61558
        _fieldName = fieldName;
-
 
61559
      }
-
 
61560
 
-
 
61561
      public short getThriftFieldId() {
-
 
61562
        return _thriftId;
-
 
61563
      }
-
 
61564
 
-
 
61565
      public String getFieldName() {
-
 
61566
        return _fieldName;
-
 
61567
      }
-
 
61568
    }
-
 
61569
 
-
 
61570
    // isset id assignments
-
 
61571
    private static final int __ITEMID_ISSET_ID = 0;
-
 
61572
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
61573
    private static final int __QUANTITY_ISSET_ID = 2;
-
 
61574
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
61575
 
-
 
61576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61577
    static {
-
 
61578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61579
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
61581
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61582
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
61583
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
61585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
-
 
61587
    }
-
 
61588
 
-
 
61589
    public addBadInventory_args() {
-
 
61590
    }
-
 
61591
 
-
 
61592
    public addBadInventory_args(
-
 
61593
      long itemId,
-
 
61594
      long warehouseId,
-
 
61595
      long quantity)
-
 
61596
    {
-
 
61597
      this();
-
 
61598
      this.itemId = itemId;
-
 
61599
      setItemIdIsSet(true);
-
 
61600
      this.warehouseId = warehouseId;
-
 
61601
      setWarehouseIdIsSet(true);
-
 
61602
      this.quantity = quantity;
-
 
61603
      setQuantityIsSet(true);
-
 
61604
    }
-
 
61605
 
-
 
61606
    /**
-
 
61607
     * Performs a deep copy on <i>other</i>.
-
 
61608
     */
-
 
61609
    public addBadInventory_args(addBadInventory_args other) {
-
 
61610
      __isset_bit_vector.clear();
-
 
61611
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
61612
      this.itemId = other.itemId;
-
 
61613
      this.warehouseId = other.warehouseId;
-
 
61614
      this.quantity = other.quantity;
-
 
61615
    }
-
 
61616
 
-
 
61617
    public addBadInventory_args deepCopy() {
-
 
61618
      return new addBadInventory_args(this);
-
 
61619
    }
-
 
61620
 
-
 
61621
    @Override
-
 
61622
    public void clear() {
-
 
61623
      setItemIdIsSet(false);
-
 
61624
      this.itemId = 0;
-
 
61625
      setWarehouseIdIsSet(false);
-
 
61626
      this.warehouseId = 0;
-
 
61627
      setQuantityIsSet(false);
-
 
61628
      this.quantity = 0;
-
 
61629
    }
-
 
61630
 
-
 
61631
    public long getItemId() {
-
 
61632
      return this.itemId;
-
 
61633
    }
-
 
61634
 
-
 
61635
    public void setItemId(long itemId) {
-
 
61636
      this.itemId = itemId;
-
 
61637
      setItemIdIsSet(true);
-
 
61638
    }
-
 
61639
 
-
 
61640
    public void unsetItemId() {
-
 
61641
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
61642
    }
-
 
61643
 
-
 
61644
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
61645
    public boolean isSetItemId() {
-
 
61646
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
61647
    }
-
 
61648
 
-
 
61649
    public void setItemIdIsSet(boolean value) {
-
 
61650
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
61651
    }
-
 
61652
 
-
 
61653
    public long getWarehouseId() {
-
 
61654
      return this.warehouseId;
-
 
61655
    }
-
 
61656
 
-
 
61657
    public void setWarehouseId(long warehouseId) {
-
 
61658
      this.warehouseId = warehouseId;
-
 
61659
      setWarehouseIdIsSet(true);
-
 
61660
    }
-
 
61661
 
-
 
61662
    public void unsetWarehouseId() {
-
 
61663
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
61664
    }
-
 
61665
 
-
 
61666
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
61667
    public boolean isSetWarehouseId() {
-
 
61668
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
61669
    }
-
 
61670
 
-
 
61671
    public void setWarehouseIdIsSet(boolean value) {
-
 
61672
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
61673
    }
-
 
61674
 
-
 
61675
    public long getQuantity() {
-
 
61676
      return this.quantity;
-
 
61677
    }
-
 
61678
 
-
 
61679
    public void setQuantity(long quantity) {
-
 
61680
      this.quantity = quantity;
-
 
61681
      setQuantityIsSet(true);
-
 
61682
    }
-
 
61683
 
-
 
61684
    public void unsetQuantity() {
-
 
61685
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
61686
    }
-
 
61687
 
-
 
61688
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
61689
    public boolean isSetQuantity() {
-
 
61690
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
61691
    }
-
 
61692
 
-
 
61693
    public void setQuantityIsSet(boolean value) {
-
 
61694
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
61695
    }
-
 
61696
 
-
 
61697
    public void setFieldValue(_Fields field, Object value) {
-
 
61698
      switch (field) {
-
 
61699
      case ITEM_ID:
-
 
61700
        if (value == null) {
-
 
61701
          unsetItemId();
-
 
61702
        } else {
-
 
61703
          setItemId((Long)value);
-
 
61704
        }
-
 
61705
        break;
-
 
61706
 
-
 
61707
      case WAREHOUSE_ID:
-
 
61708
        if (value == null) {
-
 
61709
          unsetWarehouseId();
-
 
61710
        } else {
-
 
61711
          setWarehouseId((Long)value);
-
 
61712
        }
-
 
61713
        break;
-
 
61714
 
-
 
61715
      case QUANTITY:
-
 
61716
        if (value == null) {
-
 
61717
          unsetQuantity();
-
 
61718
        } else {
-
 
61719
          setQuantity((Long)value);
-
 
61720
        }
-
 
61721
        break;
-
 
61722
 
-
 
61723
      }
-
 
61724
    }
-
 
61725
 
-
 
61726
    public Object getFieldValue(_Fields field) {
-
 
61727
      switch (field) {
-
 
61728
      case ITEM_ID:
-
 
61729
        return Long.valueOf(getItemId());
-
 
61730
 
-
 
61731
      case WAREHOUSE_ID:
-
 
61732
        return Long.valueOf(getWarehouseId());
-
 
61733
 
-
 
61734
      case QUANTITY:
-
 
61735
        return Long.valueOf(getQuantity());
-
 
61736
 
-
 
61737
      }
-
 
61738
      throw new IllegalStateException();
-
 
61739
    }
-
 
61740
 
-
 
61741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61742
    public boolean isSet(_Fields field) {
-
 
61743
      if (field == null) {
-
 
61744
        throw new IllegalArgumentException();
-
 
61745
      }
-
 
61746
 
-
 
61747
      switch (field) {
-
 
61748
      case ITEM_ID:
-
 
61749
        return isSetItemId();
-
 
61750
      case WAREHOUSE_ID:
-
 
61751
        return isSetWarehouseId();
-
 
61752
      case QUANTITY:
-
 
61753
        return isSetQuantity();
-
 
61754
      }
-
 
61755
      throw new IllegalStateException();
-
 
61756
    }
-
 
61757
 
-
 
61758
    @Override
-
 
61759
    public boolean equals(Object that) {
-
 
61760
      if (that == null)
-
 
61761
        return false;
-
 
61762
      if (that instanceof addBadInventory_args)
-
 
61763
        return this.equals((addBadInventory_args)that);
-
 
61764
      return false;
-
 
61765
    }
-
 
61766
 
-
 
61767
    public boolean equals(addBadInventory_args that) {
-
 
61768
      if (that == null)
-
 
61769
        return false;
-
 
61770
 
-
 
61771
      boolean this_present_itemId = true;
-
 
61772
      boolean that_present_itemId = true;
-
 
61773
      if (this_present_itemId || that_present_itemId) {
-
 
61774
        if (!(this_present_itemId && that_present_itemId))
-
 
61775
          return false;
-
 
61776
        if (this.itemId != that.itemId)
-
 
61777
          return false;
-
 
61778
      }
-
 
61779
 
-
 
61780
      boolean this_present_warehouseId = true;
-
 
61781
      boolean that_present_warehouseId = true;
-
 
61782
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
61783
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
61784
          return false;
-
 
61785
        if (this.warehouseId != that.warehouseId)
-
 
61786
          return false;
-
 
61787
      }
-
 
61788
 
-
 
61789
      boolean this_present_quantity = true;
-
 
61790
      boolean that_present_quantity = true;
-
 
61791
      if (this_present_quantity || that_present_quantity) {
-
 
61792
        if (!(this_present_quantity && that_present_quantity))
-
 
61793
          return false;
-
 
61794
        if (this.quantity != that.quantity)
-
 
61795
          return false;
-
 
61796
      }
-
 
61797
 
-
 
61798
      return true;
-
 
61799
    }
-
 
61800
 
-
 
61801
    @Override
-
 
61802
    public int hashCode() {
-
 
61803
      return 0;
-
 
61804
    }
-
 
61805
 
-
 
61806
    public int compareTo(addBadInventory_args other) {
-
 
61807
      if (!getClass().equals(other.getClass())) {
-
 
61808
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61809
      }
-
 
61810
 
-
 
61811
      int lastComparison = 0;
-
 
61812
      addBadInventory_args typedOther = (addBadInventory_args)other;
-
 
61813
 
-
 
61814
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
61815
      if (lastComparison != 0) {
-
 
61816
        return lastComparison;
-
 
61817
      }
-
 
61818
      if (isSetItemId()) {
-
 
61819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
61820
        if (lastComparison != 0) {
-
 
61821
          return lastComparison;
-
 
61822
        }
-
 
61823
      }
-
 
61824
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
61825
      if (lastComparison != 0) {
-
 
61826
        return lastComparison;
-
 
61827
      }
-
 
61828
      if (isSetWarehouseId()) {
-
 
61829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
61830
        if (lastComparison != 0) {
-
 
61831
          return lastComparison;
-
 
61832
        }
-
 
61833
      }
-
 
61834
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
61835
      if (lastComparison != 0) {
-
 
61836
        return lastComparison;
-
 
61837
      }
-
 
61838
      if (isSetQuantity()) {
-
 
61839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
61840
        if (lastComparison != 0) {
-
 
61841
          return lastComparison;
-
 
61842
        }
-
 
61843
      }
-
 
61844
      return 0;
-
 
61845
    }
-
 
61846
 
-
 
61847
    public _Fields fieldForId(int fieldId) {
-
 
61848
      return _Fields.findByThriftId(fieldId);
-
 
61849
    }
-
 
61850
 
-
 
61851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61852
      org.apache.thrift.protocol.TField field;
-
 
61853
      iprot.readStructBegin();
-
 
61854
      while (true)
-
 
61855
      {
-
 
61856
        field = iprot.readFieldBegin();
-
 
61857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61858
          break;
-
 
61859
        }
-
 
61860
        switch (field.id) {
-
 
61861
          case 1: // ITEM_ID
-
 
61862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
61863
              this.itemId = iprot.readI64();
-
 
61864
              setItemIdIsSet(true);
-
 
61865
            } else { 
-
 
61866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61867
            }
-
 
61868
            break;
-
 
61869
          case 2: // WAREHOUSE_ID
-
 
61870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
61871
              this.warehouseId = iprot.readI64();
-
 
61872
              setWarehouseIdIsSet(true);
-
 
61873
            } else { 
-
 
61874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61875
            }
-
 
61876
            break;
-
 
61877
          case 3: // QUANTITY
-
 
61878
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
61879
              this.quantity = iprot.readI64();
-
 
61880
              setQuantityIsSet(true);
-
 
61881
            } else { 
-
 
61882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61883
            }
-
 
61884
            break;
-
 
61885
          default:
-
 
61886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61887
        }
-
 
61888
        iprot.readFieldEnd();
-
 
61889
      }
-
 
61890
      iprot.readStructEnd();
-
 
61891
      validate();
-
 
61892
    }
-
 
61893
 
-
 
61894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61895
      validate();
-
 
61896
 
-
 
61897
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61898
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
61899
      oprot.writeI64(this.itemId);
-
 
61900
      oprot.writeFieldEnd();
-
 
61901
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
61902
      oprot.writeI64(this.warehouseId);
-
 
61903
      oprot.writeFieldEnd();
-
 
61904
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
61905
      oprot.writeI64(this.quantity);
-
 
61906
      oprot.writeFieldEnd();
-
 
61907
      oprot.writeFieldStop();
-
 
61908
      oprot.writeStructEnd();
-
 
61909
    }
-
 
61910
 
-
 
61911
    @Override
-
 
61912
    public String toString() {
-
 
61913
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
-
 
61914
      boolean first = true;
-
 
61915
 
-
 
61916
      sb.append("itemId:");
-
 
61917
      sb.append(this.itemId);
-
 
61918
      first = false;
-
 
61919
      if (!first) sb.append(", ");
-
 
61920
      sb.append("warehouseId:");
-
 
61921
      sb.append(this.warehouseId);
-
 
61922
      first = false;
-
 
61923
      if (!first) sb.append(", ");
-
 
61924
      sb.append("quantity:");
-
 
61925
      sb.append(this.quantity);
-
 
61926
      first = false;
-
 
61927
      sb.append(")");
-
 
61928
      return sb.toString();
-
 
61929
    }
-
 
61930
 
-
 
61931
    public void validate() throws org.apache.thrift.TException {
-
 
61932
      // check for required fields
-
 
61933
    }
-
 
61934
 
-
 
61935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61936
      try {
-
 
61937
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61938
      } catch (org.apache.thrift.TException te) {
-
 
61939
        throw new java.io.IOException(te);
-
 
61940
      }
-
 
61941
    }
-
 
61942
 
-
 
61943
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61944
      try {
-
 
61945
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
61946
        __isset_bit_vector = new BitSet(1);
-
 
61947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61948
      } catch (org.apache.thrift.TException te) {
-
 
61949
        throw new java.io.IOException(te);
-
 
61950
      }
-
 
61951
    }
-
 
61952
 
-
 
61953
  }
-
 
61954
 
-
 
61955
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
-
 
61957
 
-
 
61958
    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);
-
 
61959
 
-
 
61960
    private InventoryServiceException cex; // required
-
 
61961
 
-
 
61962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61964
      CEX((short)1, "cex");
-
 
61965
 
-
 
61966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61967
 
-
 
61968
      static {
-
 
61969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61970
          byName.put(field.getFieldName(), field);
-
 
61971
        }
-
 
61972
      }
-
 
61973
 
-
 
61974
      /**
-
 
61975
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61976
       */
-
 
61977
      public static _Fields findByThriftId(int fieldId) {
-
 
61978
        switch(fieldId) {
-
 
61979
          case 1: // CEX
-
 
61980
            return CEX;
-
 
61981
          default:
-
 
61982
            return null;
-
 
61983
        }
-
 
61984
      }
-
 
61985
 
-
 
61986
      /**
-
 
61987
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61988
       * if it is not found.
-
 
61989
       */
-
 
61990
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61991
        _Fields fields = findByThriftId(fieldId);
-
 
61992
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61993
        return fields;
-
 
61994
      }
-
 
61995
 
-
 
61996
      /**
-
 
61997
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61998
       */
-
 
61999
      public static _Fields findByName(String name) {
-
 
62000
        return byName.get(name);
-
 
62001
      }
-
 
62002
 
-
 
62003
      private final short _thriftId;
-
 
62004
      private final String _fieldName;
-
 
62005
 
-
 
62006
      _Fields(short thriftId, String fieldName) {
-
 
62007
        _thriftId = thriftId;
-
 
62008
        _fieldName = fieldName;
-
 
62009
      }
-
 
62010
 
-
 
62011
      public short getThriftFieldId() {
-
 
62012
        return _thriftId;
-
 
62013
      }
-
 
62014
 
-
 
62015
      public String getFieldName() {
-
 
62016
        return _fieldName;
-
 
62017
      }
-
 
62018
    }
-
 
62019
 
-
 
62020
    // isset id assignments
-
 
62021
 
-
 
62022
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62023
    static {
-
 
62024
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62025
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
62027
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62028
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
-
 
62029
    }
-
 
62030
 
-
 
62031
    public addBadInventory_result() {
-
 
62032
    }
-
 
62033
 
-
 
62034
    public addBadInventory_result(
-
 
62035
      InventoryServiceException cex)
-
 
62036
    {
-
 
62037
      this();
-
 
62038
      this.cex = cex;
-
 
62039
    }
-
 
62040
 
-
 
62041
    /**
-
 
62042
     * Performs a deep copy on <i>other</i>.
-
 
62043
     */
-
 
62044
    public addBadInventory_result(addBadInventory_result other) {
-
 
62045
      if (other.isSetCex()) {
-
 
62046
        this.cex = new InventoryServiceException(other.cex);
-
 
62047
      }
-
 
62048
    }
-
 
62049
 
-
 
62050
    public addBadInventory_result deepCopy() {
-
 
62051
      return new addBadInventory_result(this);
-
 
62052
    }
-
 
62053
 
-
 
62054
    @Override
-
 
62055
    public void clear() {
-
 
62056
      this.cex = null;
-
 
62057
    }
-
 
62058
 
-
 
62059
    public InventoryServiceException getCex() {
-
 
62060
      return this.cex;
-
 
62061
    }
-
 
62062
 
-
 
62063
    public void setCex(InventoryServiceException cex) {
-
 
62064
      this.cex = cex;
-
 
62065
    }
-
 
62066
 
-
 
62067
    public void unsetCex() {
-
 
62068
      this.cex = null;
-
 
62069
    }
-
 
62070
 
-
 
62071
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
62072
    public boolean isSetCex() {
-
 
62073
      return this.cex != null;
-
 
62074
    }
-
 
62075
 
-
 
62076
    public void setCexIsSet(boolean value) {
-
 
62077
      if (!value) {
-
 
62078
        this.cex = null;
-
 
62079
      }
-
 
62080
    }
-
 
62081
 
-
 
62082
    public void setFieldValue(_Fields field, Object value) {
-
 
62083
      switch (field) {
-
 
62084
      case CEX:
-
 
62085
        if (value == null) {
-
 
62086
          unsetCex();
-
 
62087
        } else {
-
 
62088
          setCex((InventoryServiceException)value);
-
 
62089
        }
-
 
62090
        break;
-
 
62091
 
-
 
62092
      }
-
 
62093
    }
-
 
62094
 
-
 
62095
    public Object getFieldValue(_Fields field) {
-
 
62096
      switch (field) {
-
 
62097
      case CEX:
-
 
62098
        return getCex();
-
 
62099
 
-
 
62100
      }
-
 
62101
      throw new IllegalStateException();
-
 
62102
    }
-
 
62103
 
-
 
62104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62105
    public boolean isSet(_Fields field) {
-
 
62106
      if (field == null) {
-
 
62107
        throw new IllegalArgumentException();
-
 
62108
      }
-
 
62109
 
-
 
62110
      switch (field) {
-
 
62111
      case CEX:
-
 
62112
        return isSetCex();
-
 
62113
      }
-
 
62114
      throw new IllegalStateException();
-
 
62115
    }
-
 
62116
 
-
 
62117
    @Override
-
 
62118
    public boolean equals(Object that) {
-
 
62119
      if (that == null)
-
 
62120
        return false;
-
 
62121
      if (that instanceof addBadInventory_result)
-
 
62122
        return this.equals((addBadInventory_result)that);
-
 
62123
      return false;
-
 
62124
    }
-
 
62125
 
-
 
62126
    public boolean equals(addBadInventory_result that) {
-
 
62127
      if (that == null)
-
 
62128
        return false;
-
 
62129
 
-
 
62130
      boolean this_present_cex = true && this.isSetCex();
-
 
62131
      boolean that_present_cex = true && that.isSetCex();
-
 
62132
      if (this_present_cex || that_present_cex) {
-
 
62133
        if (!(this_present_cex && that_present_cex))
-
 
62134
          return false;
-
 
62135
        if (!this.cex.equals(that.cex))
-
 
62136
          return false;
-
 
62137
      }
-
 
62138
 
-
 
62139
      return true;
-
 
62140
    }
-
 
62141
 
-
 
62142
    @Override
-
 
62143
    public int hashCode() {
-
 
62144
      return 0;
-
 
62145
    }
-
 
62146
 
-
 
62147
    public int compareTo(addBadInventory_result other) {
-
 
62148
      if (!getClass().equals(other.getClass())) {
-
 
62149
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62150
      }
-
 
62151
 
-
 
62152
      int lastComparison = 0;
-
 
62153
      addBadInventory_result typedOther = (addBadInventory_result)other;
-
 
62154
 
-
 
62155
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
62156
      if (lastComparison != 0) {
-
 
62157
        return lastComparison;
-
 
62158
      }
-
 
62159
      if (isSetCex()) {
-
 
62160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
62161
        if (lastComparison != 0) {
-
 
62162
          return lastComparison;
-
 
62163
        }
-
 
62164
      }
-
 
62165
      return 0;
-
 
62166
    }
-
 
62167
 
-
 
62168
    public _Fields fieldForId(int fieldId) {
-
 
62169
      return _Fields.findByThriftId(fieldId);
-
 
62170
    }
-
 
62171
 
-
 
62172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62173
      org.apache.thrift.protocol.TField field;
-
 
62174
      iprot.readStructBegin();
-
 
62175
      while (true)
-
 
62176
      {
-
 
62177
        field = iprot.readFieldBegin();
-
 
62178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62179
          break;
-
 
62180
        }
-
 
62181
        switch (field.id) {
-
 
62182
          case 1: // CEX
-
 
62183
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
62184
              this.cex = new InventoryServiceException();
-
 
62185
              this.cex.read(iprot);
-
 
62186
            } else { 
-
 
62187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62188
            }
-
 
62189
            break;
-
 
62190
          default:
-
 
62191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62192
        }
-
 
62193
        iprot.readFieldEnd();
-
 
62194
      }
-
 
62195
      iprot.readStructEnd();
-
 
62196
      validate();
-
 
62197
    }
-
 
62198
 
-
 
62199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62200
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62201
 
-
 
62202
      if (this.isSetCex()) {
-
 
62203
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
62204
        this.cex.write(oprot);
-
 
62205
        oprot.writeFieldEnd();
-
 
62206
      }
-
 
62207
      oprot.writeFieldStop();
-
 
62208
      oprot.writeStructEnd();
-
 
62209
    }
-
 
62210
 
-
 
62211
    @Override
-
 
62212
    public String toString() {
-
 
62213
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
-
 
62214
      boolean first = true;
-
 
62215
 
-
 
62216
      sb.append("cex:");
-
 
62217
      if (this.cex == null) {
-
 
62218
        sb.append("null");
-
 
62219
      } else {
-
 
62220
        sb.append(this.cex);
-
 
62221
      }
-
 
62222
      first = false;
-
 
62223
      sb.append(")");
-
 
62224
      return sb.toString();
-
 
62225
    }
-
 
62226
 
-
 
62227
    public void validate() throws org.apache.thrift.TException {
62645
      // check for required fields
62228
      // check for required fields
62646
    }
62229
    }
62647
 
62230
 
62648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
62231
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
62649
      try {
62232
      try {