Subversion Repositories SmartDukaan

Rev

Rev 7149 | Rev 7322 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7149 Rev 7281
Line 308... Line 308...
308
    /**
308
    /**
309
     * Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
309
     * Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
310
     */
310
     */
311
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
311
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
312
 
312
 
-
 
313
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException;
-
 
314
 
-
 
315
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException;
-
 
316
 
-
 
317
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException;
-
 
318
 
-
 
319
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException;
-
 
320
 
313
  }
321
  }
314
 
322
 
315
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
323
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
316
 
324
 
317
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
325
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 412... Line 420...
412
 
420
 
413
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
421
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
414
 
422
 
415
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
423
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
416
 
424
 
-
 
425
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseName_call> resultHandler) throws org.apache.thrift.TException;
-
 
426
 
-
 
427
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
428
 
-
 
429
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
430
 
-
 
431
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
432
 
417
  }
433
  }
418
 
434
 
419
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
435
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
420
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
436
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
421
      public Factory() {}
437
      public Factory() {}
Line 1637... Line 1653...
1637
        return result.success;
1653
        return result.success;
1638
      }
1654
      }
1639
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1640
    }
1656
    }
1641
 
1657
 
-
 
1658
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
-
 
1659
    {
-
 
1660
      send_getWarehouseName(warehouse_id);
-
 
1661
      return recv_getWarehouseName();
-
 
1662
    }
-
 
1663
 
-
 
1664
    public void send_getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
-
 
1665
    {
-
 
1666
      getWarehouseName_args args = new getWarehouseName_args();
-
 
1667
      args.setWarehouse_id(warehouse_id);
-
 
1668
      sendBase("getWarehouseName", args);
-
 
1669
    }
-
 
1670
 
-
 
1671
    public String recv_getWarehouseName() throws org.apache.thrift.TException
-
 
1672
    {
-
 
1673
      getWarehouseName_result result = new getWarehouseName_result();
-
 
1674
      receiveBase(result, "getWarehouseName");
-
 
1675
      if (result.isSetSuccess()) {
-
 
1676
        return result.success;
-
 
1677
      }
-
 
1678
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
-
 
1679
    }
-
 
1680
 
-
 
1681
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
1682
    {
-
 
1683
      send_getAmazonInventoryForItem(item_id);
-
 
1684
      return recv_getAmazonInventoryForItem();
-
 
1685
    }
-
 
1686
 
-
 
1687
    public void send_getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
1688
    {
-
 
1689
      getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
-
 
1690
      args.setItem_id(item_id);
-
 
1691
      sendBase("getAmazonInventoryForItem", args);
-
 
1692
    }
-
 
1693
 
-
 
1694
    public AmazonInventorySnapshot recv_getAmazonInventoryForItem() throws org.apache.thrift.TException
-
 
1695
    {
-
 
1696
      getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
-
 
1697
      receiveBase(result, "getAmazonInventoryForItem");
-
 
1698
      if (result.isSetSuccess()) {
-
 
1699
        return result.success;
-
 
1700
      }
-
 
1701
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
-
 
1702
    }
-
 
1703
 
-
 
1704
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException
-
 
1705
    {
-
 
1706
      send_getAllAmazonInventory();
-
 
1707
      return recv_getAllAmazonInventory();
-
 
1708
    }
-
 
1709
 
-
 
1710
    public void send_getAllAmazonInventory() throws org.apache.thrift.TException
-
 
1711
    {
-
 
1712
      getAllAmazonInventory_args args = new getAllAmazonInventory_args();
-
 
1713
      sendBase("getAllAmazonInventory", args);
-
 
1714
    }
-
 
1715
 
-
 
1716
    public List<AmazonInventorySnapshot> recv_getAllAmazonInventory() throws org.apache.thrift.TException
-
 
1717
    {
-
 
1718
      getAllAmazonInventory_result result = new getAllAmazonInventory_result();
-
 
1719
      receiveBase(result, "getAllAmazonInventory");
-
 
1720
      if (result.isSetSuccess()) {
-
 
1721
        return result.success;
-
 
1722
      }
-
 
1723
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
-
 
1724
    }
-
 
1725
 
-
 
1726
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
-
 
1727
    {
-
 
1728
      send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot);
-
 
1729
      recv_addOrUpdateAmazonInventoryForItem();
-
 
1730
    }
-
 
1731
 
-
 
1732
    public void send_addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
-
 
1733
    {
-
 
1734
      addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
-
 
1735
      args.setAmazonInventorySnapshot(amazonInventorySnapshot);
-
 
1736
      sendBase("addOrUpdateAmazonInventoryForItem", args);
-
 
1737
    }
-
 
1738
 
-
 
1739
    public void recv_addOrUpdateAmazonInventoryForItem() throws org.apache.thrift.TException
-
 
1740
    {
-
 
1741
      addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
-
 
1742
      receiveBase(result, "addOrUpdateAmazonInventoryForItem");
-
 
1743
      return;
-
 
1744
    }
-
 
1745
 
1642
  }
1746
  }
1643
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1747
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1644
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1748
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1645
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1749
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1646
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1750
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3351... Line 3455...
3351
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3455
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3352
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
3456
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
3353
      }
3457
      }
3354
    }
3458
    }
3355
 
3459
 
-
 
3460
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_call> resultHandler) throws org.apache.thrift.TException {
-
 
3461
      checkReady();
-
 
3462
      getWarehouseName_call method_call = new getWarehouseName_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
3463
      this.___currentMethod = method_call;
-
 
3464
      ___manager.call(method_call);
-
 
3465
    }
-
 
3466
 
-
 
3467
    public static class getWarehouseName_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3468
      private long warehouse_id;
-
 
3469
      public getWarehouseName_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_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 {
-
 
3470
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3471
        this.warehouse_id = warehouse_id;
-
 
3472
      }
-
 
3473
 
-
 
3474
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3475
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseName", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3476
        getWarehouseName_args args = new getWarehouseName_args();
-
 
3477
        args.setWarehouse_id(warehouse_id);
-
 
3478
        args.write(prot);
-
 
3479
        prot.writeMessageEnd();
-
 
3480
      }
-
 
3481
 
-
 
3482
      public String getResult() throws org.apache.thrift.TException {
-
 
3483
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3484
          throw new IllegalStateException("Method call not finished!");
-
 
3485
        }
-
 
3486
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3487
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3488
        return (new Client(prot)).recv_getWarehouseName();
-
 
3489
      }
-
 
3490
    }
-
 
3491
 
-
 
3492
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
3493
      checkReady();
-
 
3494
      getAmazonInventoryForItem_call method_call = new getAmazonInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
3495
      this.___currentMethod = method_call;
-
 
3496
      ___manager.call(method_call);
-
 
3497
    }
-
 
3498
 
-
 
3499
    public static class getAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3500
      private long item_id;
-
 
3501
      public getAmazonInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_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 {
-
 
3502
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3503
        this.item_id = item_id;
-
 
3504
      }
-
 
3505
 
-
 
3506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3508
        getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
-
 
3509
        args.setItem_id(item_id);
-
 
3510
        args.write(prot);
-
 
3511
        prot.writeMessageEnd();
-
 
3512
      }
-
 
3513
 
-
 
3514
      public AmazonInventorySnapshot getResult() throws org.apache.thrift.TException {
-
 
3515
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3516
          throw new IllegalStateException("Method call not finished!");
-
 
3517
        }
-
 
3518
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3519
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3520
        return (new Client(prot)).recv_getAmazonInventoryForItem();
-
 
3521
      }
-
 
3522
    }
-
 
3523
 
-
 
3524
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
3525
      checkReady();
-
 
3526
      getAllAmazonInventory_call method_call = new getAllAmazonInventory_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
3527
      this.___currentMethod = method_call;
-
 
3528
      ___manager.call(method_call);
-
 
3529
    }
-
 
3530
 
-
 
3531
    public static class getAllAmazonInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3532
      public getAllAmazonInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_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 {
-
 
3533
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3534
      }
-
 
3535
 
-
 
3536
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3537
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3538
        getAllAmazonInventory_args args = new getAllAmazonInventory_args();
-
 
3539
        args.write(prot);
-
 
3540
        prot.writeMessageEnd();
-
 
3541
      }
-
 
3542
 
-
 
3543
      public List<AmazonInventorySnapshot> getResult() throws org.apache.thrift.TException {
-
 
3544
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3545
          throw new IllegalStateException("Method call not finished!");
-
 
3546
        }
-
 
3547
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3548
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3549
        return (new Client(prot)).recv_getAllAmazonInventory();
-
 
3550
      }
-
 
3551
    }
-
 
3552
 
-
 
3553
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
3554
      checkReady();
-
 
3555
      addOrUpdateAmazonInventoryForItem_call method_call = new addOrUpdateAmazonInventoryForItem_call(amazonInventorySnapshot, resultHandler, this, ___protocolFactory, ___transport);
-
 
3556
      this.___currentMethod = method_call;
-
 
3557
      ___manager.call(method_call);
-
 
3558
    }
-
 
3559
 
-
 
3560
    public static class addOrUpdateAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3561
      private AmazonInventorySnapshot amazonInventorySnapshot;
-
 
3562
      public addOrUpdateAmazonInventoryForItem_call(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_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 {
-
 
3563
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3564
        this.amazonInventorySnapshot = amazonInventorySnapshot;
-
 
3565
      }
-
 
3566
 
-
 
3567
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3568
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3569
        addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
-
 
3570
        args.setAmazonInventorySnapshot(amazonInventorySnapshot);
-
 
3571
        args.write(prot);
-
 
3572
        prot.writeMessageEnd();
-
 
3573
      }
-
 
3574
 
-
 
3575
      public void getResult() throws org.apache.thrift.TException {
-
 
3576
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3577
          throw new IllegalStateException("Method call not finished!");
-
 
3578
        }
-
 
3579
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3580
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3581
        (new Client(prot)).recv_addOrUpdateAmazonInventoryForItem();
-
 
3582
      }
-
 
3583
    }
-
 
3584
 
3356
  }
3585
  }
3357
 
3586
 
3358
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3587
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3359
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3588
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3360
    public Processor(I iface) {
3589
    public Processor(I iface) {
Line 3414... Line 3643...
3414
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3643
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3415
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3644
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3416
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
3645
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
3417
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
3646
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
3418
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
3647
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
-
 
3648
      processMap.put("getWarehouseName", new getWarehouseName());
-
 
3649
      processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
-
 
3650
      processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
-
 
3651
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
3419
      return processMap;
3652
      return processMap;
3420
    }
3653
    }
3421
 
3654
 
3422
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3655
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3423
      public addWarehouse() {
3656
      public addWarehouse() {
Line 4315... Line 4548...
4315
        result.success = iface.getBillableInventoryAndPendingOrders();
4548
        result.success = iface.getBillableInventoryAndPendingOrders();
4316
        return result;
4549
        return result;
4317
      }
4550
      }
4318
    }
4551
    }
4319
 
4552
 
-
 
4553
    private static class getWarehouseName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseName_args> {
-
 
4554
      public getWarehouseName() {
-
 
4555
        super("getWarehouseName");
-
 
4556
      }
-
 
4557
 
-
 
4558
      protected getWarehouseName_args getEmptyArgsInstance() {
-
 
4559
        return new getWarehouseName_args();
-
 
4560
      }
-
 
4561
 
-
 
4562
      protected getWarehouseName_result getResult(I iface, getWarehouseName_args args) throws org.apache.thrift.TException {
-
 
4563
        getWarehouseName_result result = new getWarehouseName_result();
-
 
4564
        result.success = iface.getWarehouseName(args.warehouse_id);
-
 
4565
        return result;
-
 
4566
      }
-
 
4567
    }
-
 
4568
 
-
 
4569
    private static class getAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonInventoryForItem_args> {
-
 
4570
      public getAmazonInventoryForItem() {
-
 
4571
        super("getAmazonInventoryForItem");
-
 
4572
      }
-
 
4573
 
-
 
4574
      protected getAmazonInventoryForItem_args getEmptyArgsInstance() {
-
 
4575
        return new getAmazonInventoryForItem_args();
-
 
4576
      }
-
 
4577
 
-
 
4578
      protected getAmazonInventoryForItem_result getResult(I iface, getAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
-
 
4579
        getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
-
 
4580
        result.success = iface.getAmazonInventoryForItem(args.item_id);
-
 
4581
        return result;
-
 
4582
      }
-
 
4583
    }
-
 
4584
 
-
 
4585
    private static class getAllAmazonInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonInventory_args> {
-
 
4586
      public getAllAmazonInventory() {
-
 
4587
        super("getAllAmazonInventory");
-
 
4588
      }
-
 
4589
 
-
 
4590
      protected getAllAmazonInventory_args getEmptyArgsInstance() {
-
 
4591
        return new getAllAmazonInventory_args();
-
 
4592
      }
-
 
4593
 
-
 
4594
      protected getAllAmazonInventory_result getResult(I iface, getAllAmazonInventory_args args) throws org.apache.thrift.TException {
-
 
4595
        getAllAmazonInventory_result result = new getAllAmazonInventory_result();
-
 
4596
        result.success = iface.getAllAmazonInventory();
-
 
4597
        return result;
-
 
4598
      }
-
 
4599
    }
-
 
4600
 
-
 
4601
    private static class addOrUpdateAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonInventoryForItem_args> {
-
 
4602
      public addOrUpdateAmazonInventoryForItem() {
-
 
4603
        super("addOrUpdateAmazonInventoryForItem");
-
 
4604
      }
-
 
4605
 
-
 
4606
      protected addOrUpdateAmazonInventoryForItem_args getEmptyArgsInstance() {
-
 
4607
        return new addOrUpdateAmazonInventoryForItem_args();
-
 
4608
      }
-
 
4609
 
-
 
4610
      protected addOrUpdateAmazonInventoryForItem_result getResult(I iface, addOrUpdateAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
-
 
4611
        addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
-
 
4612
        iface.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot);
-
 
4613
        return result;
-
 
4614
      }
-
 
4615
    }
-
 
4616
 
4320
  }
4617
  }
4321
 
4618
 
4322
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4619
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4324
 
4621
 
Line 37875... Line 38172...
37875
      sb.append(")");
38172
      sb.append(")");
37876
      return sb.toString();
38173
      return sb.toString();
37877
    }
38174
    }
37878
 
38175
 
37879
    public void validate() throws org.apache.thrift.TException {
38176
    public void validate() throws org.apache.thrift.TException {
-
 
38177
      // check for required fields
-
 
38178
    }
-
 
38179
 
-
 
38180
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38181
      try {
-
 
38182
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38183
      } catch (org.apache.thrift.TException te) {
-
 
38184
        throw new java.io.IOException(te);
-
 
38185
      }
-
 
38186
    }
-
 
38187
 
-
 
38188
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38189
      try {
-
 
38190
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38191
      } catch (org.apache.thrift.TException te) {
-
 
38192
        throw new java.io.IOException(te);
-
 
38193
      }
-
 
38194
    }
-
 
38195
 
-
 
38196
  }
-
 
38197
 
-
 
38198
  public static class getWarehouseName_args implements org.apache.thrift.TBase<getWarehouseName_args, getWarehouseName_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38199
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_args");
-
 
38200
 
-
 
38201
    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);
-
 
38202
 
-
 
38203
    private long warehouse_id; // required
-
 
38204
 
-
 
38205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38207
      WAREHOUSE_ID((short)1, "warehouse_id");
-
 
38208
 
-
 
38209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38210
 
-
 
38211
      static {
-
 
38212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38213
          byName.put(field.getFieldName(), field);
-
 
38214
        }
-
 
38215
      }
-
 
38216
 
-
 
38217
      /**
-
 
38218
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38219
       */
-
 
38220
      public static _Fields findByThriftId(int fieldId) {
-
 
38221
        switch(fieldId) {
-
 
38222
          case 1: // WAREHOUSE_ID
-
 
38223
            return WAREHOUSE_ID;
-
 
38224
          default:
-
 
38225
            return null;
-
 
38226
        }
-
 
38227
      }
-
 
38228
 
-
 
38229
      /**
-
 
38230
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38231
       * if it is not found.
-
 
38232
       */
-
 
38233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38234
        _Fields fields = findByThriftId(fieldId);
-
 
38235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38236
        return fields;
-
 
38237
      }
-
 
38238
 
-
 
38239
      /**
-
 
38240
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38241
       */
-
 
38242
      public static _Fields findByName(String name) {
-
 
38243
        return byName.get(name);
-
 
38244
      }
-
 
38245
 
-
 
38246
      private final short _thriftId;
-
 
38247
      private final String _fieldName;
-
 
38248
 
-
 
38249
      _Fields(short thriftId, String fieldName) {
-
 
38250
        _thriftId = thriftId;
-
 
38251
        _fieldName = fieldName;
-
 
38252
      }
-
 
38253
 
-
 
38254
      public short getThriftFieldId() {
-
 
38255
        return _thriftId;
-
 
38256
      }
-
 
38257
 
-
 
38258
      public String getFieldName() {
-
 
38259
        return _fieldName;
-
 
38260
      }
-
 
38261
    }
-
 
38262
 
-
 
38263
    // isset id assignments
-
 
38264
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
38265
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38266
 
-
 
38267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38268
    static {
-
 
38269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38270
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
38272
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38273
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_args.class, metaDataMap);
-
 
38274
    }
-
 
38275
 
-
 
38276
    public getWarehouseName_args() {
-
 
38277
    }
-
 
38278
 
-
 
38279
    public getWarehouseName_args(
-
 
38280
      long warehouse_id)
-
 
38281
    {
-
 
38282
      this();
-
 
38283
      this.warehouse_id = warehouse_id;
-
 
38284
      setWarehouse_idIsSet(true);
-
 
38285
    }
-
 
38286
 
-
 
38287
    /**
-
 
38288
     * Performs a deep copy on <i>other</i>.
-
 
38289
     */
-
 
38290
    public getWarehouseName_args(getWarehouseName_args other) {
-
 
38291
      __isset_bit_vector.clear();
-
 
38292
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38293
      this.warehouse_id = other.warehouse_id;
-
 
38294
    }
-
 
38295
 
-
 
38296
    public getWarehouseName_args deepCopy() {
-
 
38297
      return new getWarehouseName_args(this);
-
 
38298
    }
-
 
38299
 
-
 
38300
    @Override
-
 
38301
    public void clear() {
-
 
38302
      setWarehouse_idIsSet(false);
-
 
38303
      this.warehouse_id = 0;
-
 
38304
    }
-
 
38305
 
-
 
38306
    public long getWarehouse_id() {
-
 
38307
      return this.warehouse_id;
-
 
38308
    }
-
 
38309
 
-
 
38310
    public void setWarehouse_id(long warehouse_id) {
-
 
38311
      this.warehouse_id = warehouse_id;
-
 
38312
      setWarehouse_idIsSet(true);
-
 
38313
    }
-
 
38314
 
-
 
38315
    public void unsetWarehouse_id() {
-
 
38316
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
38317
    }
-
 
38318
 
-
 
38319
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
38320
    public boolean isSetWarehouse_id() {
-
 
38321
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
38322
    }
-
 
38323
 
-
 
38324
    public void setWarehouse_idIsSet(boolean value) {
-
 
38325
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
38326
    }
-
 
38327
 
-
 
38328
    public void setFieldValue(_Fields field, Object value) {
-
 
38329
      switch (field) {
-
 
38330
      case WAREHOUSE_ID:
-
 
38331
        if (value == null) {
-
 
38332
          unsetWarehouse_id();
-
 
38333
        } else {
-
 
38334
          setWarehouse_id((Long)value);
-
 
38335
        }
-
 
38336
        break;
-
 
38337
 
-
 
38338
      }
-
 
38339
    }
-
 
38340
 
-
 
38341
    public Object getFieldValue(_Fields field) {
-
 
38342
      switch (field) {
-
 
38343
      case WAREHOUSE_ID:
-
 
38344
        return Long.valueOf(getWarehouse_id());
-
 
38345
 
-
 
38346
      }
-
 
38347
      throw new IllegalStateException();
-
 
38348
    }
-
 
38349
 
-
 
38350
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38351
    public boolean isSet(_Fields field) {
-
 
38352
      if (field == null) {
-
 
38353
        throw new IllegalArgumentException();
-
 
38354
      }
-
 
38355
 
-
 
38356
      switch (field) {
-
 
38357
      case WAREHOUSE_ID:
-
 
38358
        return isSetWarehouse_id();
-
 
38359
      }
-
 
38360
      throw new IllegalStateException();
-
 
38361
    }
-
 
38362
 
-
 
38363
    @Override
-
 
38364
    public boolean equals(Object that) {
-
 
38365
      if (that == null)
-
 
38366
        return false;
-
 
38367
      if (that instanceof getWarehouseName_args)
-
 
38368
        return this.equals((getWarehouseName_args)that);
-
 
38369
      return false;
-
 
38370
    }
-
 
38371
 
-
 
38372
    public boolean equals(getWarehouseName_args that) {
-
 
38373
      if (that == null)
-
 
38374
        return false;
-
 
38375
 
-
 
38376
      boolean this_present_warehouse_id = true;
-
 
38377
      boolean that_present_warehouse_id = true;
-
 
38378
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
38379
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
38380
          return false;
-
 
38381
        if (this.warehouse_id != that.warehouse_id)
-
 
38382
          return false;
-
 
38383
      }
-
 
38384
 
-
 
38385
      return true;
-
 
38386
    }
-
 
38387
 
-
 
38388
    @Override
-
 
38389
    public int hashCode() {
-
 
38390
      return 0;
-
 
38391
    }
-
 
38392
 
-
 
38393
    public int compareTo(getWarehouseName_args other) {
-
 
38394
      if (!getClass().equals(other.getClass())) {
-
 
38395
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38396
      }
-
 
38397
 
-
 
38398
      int lastComparison = 0;
-
 
38399
      getWarehouseName_args typedOther = (getWarehouseName_args)other;
-
 
38400
 
-
 
38401
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
38402
      if (lastComparison != 0) {
-
 
38403
        return lastComparison;
-
 
38404
      }
-
 
38405
      if (isSetWarehouse_id()) {
-
 
38406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
38407
        if (lastComparison != 0) {
-
 
38408
          return lastComparison;
-
 
38409
        }
-
 
38410
      }
-
 
38411
      return 0;
-
 
38412
    }
-
 
38413
 
-
 
38414
    public _Fields fieldForId(int fieldId) {
-
 
38415
      return _Fields.findByThriftId(fieldId);
-
 
38416
    }
-
 
38417
 
-
 
38418
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38419
      org.apache.thrift.protocol.TField field;
-
 
38420
      iprot.readStructBegin();
-
 
38421
      while (true)
-
 
38422
      {
-
 
38423
        field = iprot.readFieldBegin();
-
 
38424
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38425
          break;
-
 
38426
        }
-
 
38427
        switch (field.id) {
-
 
38428
          case 1: // WAREHOUSE_ID
-
 
38429
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
38430
              this.warehouse_id = iprot.readI64();
-
 
38431
              setWarehouse_idIsSet(true);
-
 
38432
            } else { 
-
 
38433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38434
            }
-
 
38435
            break;
-
 
38436
          default:
-
 
38437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38438
        }
-
 
38439
        iprot.readFieldEnd();
-
 
38440
      }
-
 
38441
      iprot.readStructEnd();
-
 
38442
      validate();
-
 
38443
    }
-
 
38444
 
-
 
38445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38446
      validate();
-
 
38447
 
-
 
38448
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38449
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
38450
      oprot.writeI64(this.warehouse_id);
-
 
38451
      oprot.writeFieldEnd();
-
 
38452
      oprot.writeFieldStop();
-
 
38453
      oprot.writeStructEnd();
-
 
38454
    }
-
 
38455
 
-
 
38456
    @Override
-
 
38457
    public String toString() {
-
 
38458
      StringBuilder sb = new StringBuilder("getWarehouseName_args(");
-
 
38459
      boolean first = true;
-
 
38460
 
-
 
38461
      sb.append("warehouse_id:");
-
 
38462
      sb.append(this.warehouse_id);
-
 
38463
      first = false;
-
 
38464
      sb.append(")");
-
 
38465
      return sb.toString();
-
 
38466
    }
-
 
38467
 
-
 
38468
    public void validate() throws org.apache.thrift.TException {
-
 
38469
      // check for required fields
-
 
38470
    }
-
 
38471
 
-
 
38472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38473
      try {
-
 
38474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38475
      } catch (org.apache.thrift.TException te) {
-
 
38476
        throw new java.io.IOException(te);
-
 
38477
      }
-
 
38478
    }
-
 
38479
 
-
 
38480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38481
      try {
-
 
38482
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
38483
        __isset_bit_vector = new BitSet(1);
-
 
38484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38485
      } catch (org.apache.thrift.TException te) {
-
 
38486
        throw new java.io.IOException(te);
-
 
38487
      }
-
 
38488
    }
-
 
38489
 
-
 
38490
  }
-
 
38491
 
-
 
38492
  public static class getWarehouseName_result implements org.apache.thrift.TBase<getWarehouseName_result, getWarehouseName_result._Fields>, java.io.Serializable, Cloneable   {
-
 
38493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_result");
-
 
38494
 
-
 
38495
    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);
-
 
38496
 
-
 
38497
    private String success; // required
-
 
38498
 
-
 
38499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38501
      SUCCESS((short)0, "success");
-
 
38502
 
-
 
38503
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38504
 
-
 
38505
      static {
-
 
38506
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38507
          byName.put(field.getFieldName(), field);
-
 
38508
        }
-
 
38509
      }
-
 
38510
 
-
 
38511
      /**
-
 
38512
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38513
       */
-
 
38514
      public static _Fields findByThriftId(int fieldId) {
-
 
38515
        switch(fieldId) {
-
 
38516
          case 0: // SUCCESS
-
 
38517
            return SUCCESS;
-
 
38518
          default:
-
 
38519
            return null;
-
 
38520
        }
-
 
38521
      }
-
 
38522
 
-
 
38523
      /**
-
 
38524
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38525
       * if it is not found.
-
 
38526
       */
-
 
38527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38528
        _Fields fields = findByThriftId(fieldId);
-
 
38529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38530
        return fields;
-
 
38531
      }
-
 
38532
 
-
 
38533
      /**
-
 
38534
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38535
       */
-
 
38536
      public static _Fields findByName(String name) {
-
 
38537
        return byName.get(name);
-
 
38538
      }
-
 
38539
 
-
 
38540
      private final short _thriftId;
-
 
38541
      private final String _fieldName;
-
 
38542
 
-
 
38543
      _Fields(short thriftId, String fieldName) {
-
 
38544
        _thriftId = thriftId;
-
 
38545
        _fieldName = fieldName;
-
 
38546
      }
-
 
38547
 
-
 
38548
      public short getThriftFieldId() {
-
 
38549
        return _thriftId;
-
 
38550
      }
-
 
38551
 
-
 
38552
      public String getFieldName() {
-
 
38553
        return _fieldName;
-
 
38554
      }
-
 
38555
    }
-
 
38556
 
-
 
38557
    // isset id assignments
-
 
38558
 
-
 
38559
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38560
    static {
-
 
38561
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38562
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
38564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_result.class, metaDataMap);
-
 
38566
    }
-
 
38567
 
-
 
38568
    public getWarehouseName_result() {
-
 
38569
    }
-
 
38570
 
-
 
38571
    public getWarehouseName_result(
-
 
38572
      String success)
-
 
38573
    {
-
 
38574
      this();
-
 
38575
      this.success = success;
-
 
38576
    }
-
 
38577
 
-
 
38578
    /**
-
 
38579
     * Performs a deep copy on <i>other</i>.
-
 
38580
     */
-
 
38581
    public getWarehouseName_result(getWarehouseName_result other) {
-
 
38582
      if (other.isSetSuccess()) {
-
 
38583
        this.success = other.success;
-
 
38584
      }
-
 
38585
    }
-
 
38586
 
-
 
38587
    public getWarehouseName_result deepCopy() {
-
 
38588
      return new getWarehouseName_result(this);
-
 
38589
    }
-
 
38590
 
-
 
38591
    @Override
-
 
38592
    public void clear() {
-
 
38593
      this.success = null;
-
 
38594
    }
-
 
38595
 
-
 
38596
    public String getSuccess() {
-
 
38597
      return this.success;
-
 
38598
    }
-
 
38599
 
-
 
38600
    public void setSuccess(String success) {
-
 
38601
      this.success = success;
-
 
38602
    }
-
 
38603
 
-
 
38604
    public void unsetSuccess() {
-
 
38605
      this.success = null;
-
 
38606
    }
-
 
38607
 
-
 
38608
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
38609
    public boolean isSetSuccess() {
-
 
38610
      return this.success != null;
-
 
38611
    }
-
 
38612
 
-
 
38613
    public void setSuccessIsSet(boolean value) {
-
 
38614
      if (!value) {
-
 
38615
        this.success = null;
-
 
38616
      }
-
 
38617
    }
-
 
38618
 
-
 
38619
    public void setFieldValue(_Fields field, Object value) {
-
 
38620
      switch (field) {
-
 
38621
      case SUCCESS:
-
 
38622
        if (value == null) {
-
 
38623
          unsetSuccess();
-
 
38624
        } else {
-
 
38625
          setSuccess((String)value);
-
 
38626
        }
-
 
38627
        break;
-
 
38628
 
-
 
38629
      }
-
 
38630
    }
-
 
38631
 
-
 
38632
    public Object getFieldValue(_Fields field) {
-
 
38633
      switch (field) {
-
 
38634
      case SUCCESS:
-
 
38635
        return getSuccess();
-
 
38636
 
-
 
38637
      }
-
 
38638
      throw new IllegalStateException();
-
 
38639
    }
-
 
38640
 
-
 
38641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38642
    public boolean isSet(_Fields field) {
-
 
38643
      if (field == null) {
-
 
38644
        throw new IllegalArgumentException();
-
 
38645
      }
-
 
38646
 
-
 
38647
      switch (field) {
-
 
38648
      case SUCCESS:
-
 
38649
        return isSetSuccess();
-
 
38650
      }
-
 
38651
      throw new IllegalStateException();
-
 
38652
    }
-
 
38653
 
-
 
38654
    @Override
-
 
38655
    public boolean equals(Object that) {
-
 
38656
      if (that == null)
-
 
38657
        return false;
-
 
38658
      if (that instanceof getWarehouseName_result)
-
 
38659
        return this.equals((getWarehouseName_result)that);
-
 
38660
      return false;
-
 
38661
    }
-
 
38662
 
-
 
38663
    public boolean equals(getWarehouseName_result that) {
-
 
38664
      if (that == null)
-
 
38665
        return false;
-
 
38666
 
-
 
38667
      boolean this_present_success = true && this.isSetSuccess();
-
 
38668
      boolean that_present_success = true && that.isSetSuccess();
-
 
38669
      if (this_present_success || that_present_success) {
-
 
38670
        if (!(this_present_success && that_present_success))
-
 
38671
          return false;
-
 
38672
        if (!this.success.equals(that.success))
-
 
38673
          return false;
-
 
38674
      }
-
 
38675
 
-
 
38676
      return true;
-
 
38677
    }
-
 
38678
 
-
 
38679
    @Override
-
 
38680
    public int hashCode() {
-
 
38681
      return 0;
-
 
38682
    }
-
 
38683
 
-
 
38684
    public int compareTo(getWarehouseName_result other) {
-
 
38685
      if (!getClass().equals(other.getClass())) {
-
 
38686
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38687
      }
-
 
38688
 
-
 
38689
      int lastComparison = 0;
-
 
38690
      getWarehouseName_result typedOther = (getWarehouseName_result)other;
-
 
38691
 
-
 
38692
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38693
      if (lastComparison != 0) {
-
 
38694
        return lastComparison;
-
 
38695
      }
-
 
38696
      if (isSetSuccess()) {
-
 
38697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38698
        if (lastComparison != 0) {
-
 
38699
          return lastComparison;
-
 
38700
        }
-
 
38701
      }
-
 
38702
      return 0;
-
 
38703
    }
-
 
38704
 
-
 
38705
    public _Fields fieldForId(int fieldId) {
-
 
38706
      return _Fields.findByThriftId(fieldId);
-
 
38707
    }
-
 
38708
 
-
 
38709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38710
      org.apache.thrift.protocol.TField field;
-
 
38711
      iprot.readStructBegin();
-
 
38712
      while (true)
-
 
38713
      {
-
 
38714
        field = iprot.readFieldBegin();
-
 
38715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38716
          break;
-
 
38717
        }
-
 
38718
        switch (field.id) {
-
 
38719
          case 0: // SUCCESS
-
 
38720
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
38721
              this.success = iprot.readString();
-
 
38722
            } else { 
-
 
38723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38724
            }
-
 
38725
            break;
-
 
38726
          default:
-
 
38727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38728
        }
-
 
38729
        iprot.readFieldEnd();
-
 
38730
      }
-
 
38731
      iprot.readStructEnd();
-
 
38732
      validate();
-
 
38733
    }
-
 
38734
 
-
 
38735
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38736
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38737
 
-
 
38738
      if (this.isSetSuccess()) {
-
 
38739
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38740
        oprot.writeString(this.success);
-
 
38741
        oprot.writeFieldEnd();
-
 
38742
      }
-
 
38743
      oprot.writeFieldStop();
-
 
38744
      oprot.writeStructEnd();
-
 
38745
    }
-
 
38746
 
-
 
38747
    @Override
-
 
38748
    public String toString() {
-
 
38749
      StringBuilder sb = new StringBuilder("getWarehouseName_result(");
-
 
38750
      boolean first = true;
-
 
38751
 
-
 
38752
      sb.append("success:");
-
 
38753
      if (this.success == null) {
-
 
38754
        sb.append("null");
-
 
38755
      } else {
-
 
38756
        sb.append(this.success);
-
 
38757
      }
-
 
38758
      first = false;
-
 
38759
      sb.append(")");
-
 
38760
      return sb.toString();
-
 
38761
    }
-
 
38762
 
-
 
38763
    public void validate() throws org.apache.thrift.TException {
-
 
38764
      // check for required fields
-
 
38765
    }
-
 
38766
 
-
 
38767
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38768
      try {
-
 
38769
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38770
      } catch (org.apache.thrift.TException te) {
-
 
38771
        throw new java.io.IOException(te);
-
 
38772
      }
-
 
38773
    }
-
 
38774
 
-
 
38775
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38776
      try {
-
 
38777
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38778
      } catch (org.apache.thrift.TException te) {
-
 
38779
        throw new java.io.IOException(te);
-
 
38780
      }
-
 
38781
    }
-
 
38782
 
-
 
38783
  }
-
 
38784
 
-
 
38785
  public static class getAmazonInventoryForItem_args implements org.apache.thrift.TBase<getAmazonInventoryForItem_args, getAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_args");
-
 
38787
 
-
 
38788
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
38789
 
-
 
38790
    private long item_id; // required
-
 
38791
 
-
 
38792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38794
      ITEM_ID((short)1, "item_id");
-
 
38795
 
-
 
38796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38797
 
-
 
38798
      static {
-
 
38799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38800
          byName.put(field.getFieldName(), field);
-
 
38801
        }
-
 
38802
      }
-
 
38803
 
-
 
38804
      /**
-
 
38805
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38806
       */
-
 
38807
      public static _Fields findByThriftId(int fieldId) {
-
 
38808
        switch(fieldId) {
-
 
38809
          case 1: // ITEM_ID
-
 
38810
            return ITEM_ID;
-
 
38811
          default:
-
 
38812
            return null;
-
 
38813
        }
-
 
38814
      }
-
 
38815
 
-
 
38816
      /**
-
 
38817
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38818
       * if it is not found.
-
 
38819
       */
-
 
38820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38821
        _Fields fields = findByThriftId(fieldId);
-
 
38822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38823
        return fields;
-
 
38824
      }
-
 
38825
 
-
 
38826
      /**
-
 
38827
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38828
       */
-
 
38829
      public static _Fields findByName(String name) {
-
 
38830
        return byName.get(name);
-
 
38831
      }
-
 
38832
 
-
 
38833
      private final short _thriftId;
-
 
38834
      private final String _fieldName;
-
 
38835
 
-
 
38836
      _Fields(short thriftId, String fieldName) {
-
 
38837
        _thriftId = thriftId;
-
 
38838
        _fieldName = fieldName;
-
 
38839
      }
-
 
38840
 
-
 
38841
      public short getThriftFieldId() {
-
 
38842
        return _thriftId;
-
 
38843
      }
-
 
38844
 
-
 
38845
      public String getFieldName() {
-
 
38846
        return _fieldName;
-
 
38847
      }
-
 
38848
    }
-
 
38849
 
-
 
38850
    // isset id assignments
-
 
38851
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
38852
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38853
 
-
 
38854
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38855
    static {
-
 
38856
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38857
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38858
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
38859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_args.class, metaDataMap);
-
 
38861
    }
-
 
38862
 
-
 
38863
    public getAmazonInventoryForItem_args() {
-
 
38864
    }
-
 
38865
 
-
 
38866
    public getAmazonInventoryForItem_args(
-
 
38867
      long item_id)
-
 
38868
    {
-
 
38869
      this();
-
 
38870
      this.item_id = item_id;
-
 
38871
      setItem_idIsSet(true);
-
 
38872
    }
-
 
38873
 
-
 
38874
    /**
-
 
38875
     * Performs a deep copy on <i>other</i>.
-
 
38876
     */
-
 
38877
    public getAmazonInventoryForItem_args(getAmazonInventoryForItem_args other) {
-
 
38878
      __isset_bit_vector.clear();
-
 
38879
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38880
      this.item_id = other.item_id;
-
 
38881
    }
-
 
38882
 
-
 
38883
    public getAmazonInventoryForItem_args deepCopy() {
-
 
38884
      return new getAmazonInventoryForItem_args(this);
-
 
38885
    }
-
 
38886
 
-
 
38887
    @Override
-
 
38888
    public void clear() {
-
 
38889
      setItem_idIsSet(false);
-
 
38890
      this.item_id = 0;
-
 
38891
    }
-
 
38892
 
-
 
38893
    public long getItem_id() {
-
 
38894
      return this.item_id;
-
 
38895
    }
-
 
38896
 
-
 
38897
    public void setItem_id(long item_id) {
-
 
38898
      this.item_id = item_id;
-
 
38899
      setItem_idIsSet(true);
-
 
38900
    }
-
 
38901
 
-
 
38902
    public void unsetItem_id() {
-
 
38903
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
38904
    }
-
 
38905
 
-
 
38906
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
38907
    public boolean isSetItem_id() {
-
 
38908
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
38909
    }
-
 
38910
 
-
 
38911
    public void setItem_idIsSet(boolean value) {
-
 
38912
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
38913
    }
-
 
38914
 
-
 
38915
    public void setFieldValue(_Fields field, Object value) {
-
 
38916
      switch (field) {
-
 
38917
      case ITEM_ID:
-
 
38918
        if (value == null) {
-
 
38919
          unsetItem_id();
-
 
38920
        } else {
-
 
38921
          setItem_id((Long)value);
-
 
38922
        }
-
 
38923
        break;
-
 
38924
 
-
 
38925
      }
-
 
38926
    }
-
 
38927
 
-
 
38928
    public Object getFieldValue(_Fields field) {
-
 
38929
      switch (field) {
-
 
38930
      case ITEM_ID:
-
 
38931
        return Long.valueOf(getItem_id());
-
 
38932
 
-
 
38933
      }
-
 
38934
      throw new IllegalStateException();
-
 
38935
    }
-
 
38936
 
-
 
38937
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38938
    public boolean isSet(_Fields field) {
-
 
38939
      if (field == null) {
-
 
38940
        throw new IllegalArgumentException();
-
 
38941
      }
-
 
38942
 
-
 
38943
      switch (field) {
-
 
38944
      case ITEM_ID:
-
 
38945
        return isSetItem_id();
-
 
38946
      }
-
 
38947
      throw new IllegalStateException();
-
 
38948
    }
-
 
38949
 
-
 
38950
    @Override
-
 
38951
    public boolean equals(Object that) {
-
 
38952
      if (that == null)
-
 
38953
        return false;
-
 
38954
      if (that instanceof getAmazonInventoryForItem_args)
-
 
38955
        return this.equals((getAmazonInventoryForItem_args)that);
-
 
38956
      return false;
-
 
38957
    }
-
 
38958
 
-
 
38959
    public boolean equals(getAmazonInventoryForItem_args that) {
-
 
38960
      if (that == null)
-
 
38961
        return false;
-
 
38962
 
-
 
38963
      boolean this_present_item_id = true;
-
 
38964
      boolean that_present_item_id = true;
-
 
38965
      if (this_present_item_id || that_present_item_id) {
-
 
38966
        if (!(this_present_item_id && that_present_item_id))
-
 
38967
          return false;
-
 
38968
        if (this.item_id != that.item_id)
-
 
38969
          return false;
-
 
38970
      }
-
 
38971
 
-
 
38972
      return true;
-
 
38973
    }
-
 
38974
 
-
 
38975
    @Override
-
 
38976
    public int hashCode() {
-
 
38977
      return 0;
-
 
38978
    }
-
 
38979
 
-
 
38980
    public int compareTo(getAmazonInventoryForItem_args other) {
-
 
38981
      if (!getClass().equals(other.getClass())) {
-
 
38982
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38983
      }
-
 
38984
 
-
 
38985
      int lastComparison = 0;
-
 
38986
      getAmazonInventoryForItem_args typedOther = (getAmazonInventoryForItem_args)other;
-
 
38987
 
-
 
38988
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
38989
      if (lastComparison != 0) {
-
 
38990
        return lastComparison;
-
 
38991
      }
-
 
38992
      if (isSetItem_id()) {
-
 
38993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
38994
        if (lastComparison != 0) {
-
 
38995
          return lastComparison;
-
 
38996
        }
-
 
38997
      }
-
 
38998
      return 0;
-
 
38999
    }
-
 
39000
 
-
 
39001
    public _Fields fieldForId(int fieldId) {
-
 
39002
      return _Fields.findByThriftId(fieldId);
-
 
39003
    }
-
 
39004
 
-
 
39005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39006
      org.apache.thrift.protocol.TField field;
-
 
39007
      iprot.readStructBegin();
-
 
39008
      while (true)
-
 
39009
      {
-
 
39010
        field = iprot.readFieldBegin();
-
 
39011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39012
          break;
-
 
39013
        }
-
 
39014
        switch (field.id) {
-
 
39015
          case 1: // ITEM_ID
-
 
39016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
39017
              this.item_id = iprot.readI64();
-
 
39018
              setItem_idIsSet(true);
-
 
39019
            } else { 
-
 
39020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39021
            }
-
 
39022
            break;
-
 
39023
          default:
-
 
39024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39025
        }
-
 
39026
        iprot.readFieldEnd();
-
 
39027
      }
-
 
39028
      iprot.readStructEnd();
-
 
39029
      validate();
-
 
39030
    }
-
 
39031
 
-
 
39032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39033
      validate();
-
 
39034
 
-
 
39035
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39036
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
39037
      oprot.writeI64(this.item_id);
-
 
39038
      oprot.writeFieldEnd();
-
 
39039
      oprot.writeFieldStop();
-
 
39040
      oprot.writeStructEnd();
-
 
39041
    }
-
 
39042
 
-
 
39043
    @Override
-
 
39044
    public String toString() {
-
 
39045
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_args(");
-
 
39046
      boolean first = true;
-
 
39047
 
-
 
39048
      sb.append("item_id:");
-
 
39049
      sb.append(this.item_id);
-
 
39050
      first = false;
-
 
39051
      sb.append(")");
-
 
39052
      return sb.toString();
-
 
39053
    }
-
 
39054
 
-
 
39055
    public void validate() throws org.apache.thrift.TException {
-
 
39056
      // check for required fields
-
 
39057
    }
-
 
39058
 
-
 
39059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39060
      try {
-
 
39061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39062
      } catch (org.apache.thrift.TException te) {
-
 
39063
        throw new java.io.IOException(te);
-
 
39064
      }
-
 
39065
    }
-
 
39066
 
-
 
39067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39068
      try {
-
 
39069
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
39070
        __isset_bit_vector = new BitSet(1);
-
 
39071
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39072
      } catch (org.apache.thrift.TException te) {
-
 
39073
        throw new java.io.IOException(te);
-
 
39074
      }
-
 
39075
    }
-
 
39076
 
-
 
39077
  }
-
 
39078
 
-
 
39079
  public static class getAmazonInventoryForItem_result implements org.apache.thrift.TBase<getAmazonInventoryForItem_result, getAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
39080
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_result");
-
 
39081
 
-
 
39082
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
39083
 
-
 
39084
    private AmazonInventorySnapshot success; // required
-
 
39085
 
-
 
39086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39088
      SUCCESS((short)0, "success");
-
 
39089
 
-
 
39090
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39091
 
-
 
39092
      static {
-
 
39093
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39094
          byName.put(field.getFieldName(), field);
-
 
39095
        }
-
 
39096
      }
-
 
39097
 
-
 
39098
      /**
-
 
39099
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39100
       */
-
 
39101
      public static _Fields findByThriftId(int fieldId) {
-
 
39102
        switch(fieldId) {
-
 
39103
          case 0: // SUCCESS
-
 
39104
            return SUCCESS;
-
 
39105
          default:
-
 
39106
            return null;
-
 
39107
        }
-
 
39108
      }
-
 
39109
 
-
 
39110
      /**
-
 
39111
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39112
       * if it is not found.
-
 
39113
       */
-
 
39114
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39115
        _Fields fields = findByThriftId(fieldId);
-
 
39116
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39117
        return fields;
-
 
39118
      }
-
 
39119
 
-
 
39120
      /**
-
 
39121
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39122
       */
-
 
39123
      public static _Fields findByName(String name) {
-
 
39124
        return byName.get(name);
-
 
39125
      }
-
 
39126
 
-
 
39127
      private final short _thriftId;
-
 
39128
      private final String _fieldName;
-
 
39129
 
-
 
39130
      _Fields(short thriftId, String fieldName) {
-
 
39131
        _thriftId = thriftId;
-
 
39132
        _fieldName = fieldName;
-
 
39133
      }
-
 
39134
 
-
 
39135
      public short getThriftFieldId() {
-
 
39136
        return _thriftId;
-
 
39137
      }
-
 
39138
 
-
 
39139
      public String getFieldName() {
-
 
39140
        return _fieldName;
-
 
39141
      }
-
 
39142
    }
-
 
39143
 
-
 
39144
    // isset id assignments
-
 
39145
 
-
 
39146
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39147
    static {
-
 
39148
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39149
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39150
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
-
 
39151
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39152
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_result.class, metaDataMap);
-
 
39153
    }
-
 
39154
 
-
 
39155
    public getAmazonInventoryForItem_result() {
-
 
39156
    }
-
 
39157
 
-
 
39158
    public getAmazonInventoryForItem_result(
-
 
39159
      AmazonInventorySnapshot success)
-
 
39160
    {
-
 
39161
      this();
-
 
39162
      this.success = success;
-
 
39163
    }
-
 
39164
 
-
 
39165
    /**
-
 
39166
     * Performs a deep copy on <i>other</i>.
-
 
39167
     */
-
 
39168
    public getAmazonInventoryForItem_result(getAmazonInventoryForItem_result other) {
-
 
39169
      if (other.isSetSuccess()) {
-
 
39170
        this.success = new AmazonInventorySnapshot(other.success);
-
 
39171
      }
-
 
39172
    }
-
 
39173
 
-
 
39174
    public getAmazonInventoryForItem_result deepCopy() {
-
 
39175
      return new getAmazonInventoryForItem_result(this);
-
 
39176
    }
-
 
39177
 
-
 
39178
    @Override
-
 
39179
    public void clear() {
-
 
39180
      this.success = null;
-
 
39181
    }
-
 
39182
 
-
 
39183
    public AmazonInventorySnapshot getSuccess() {
-
 
39184
      return this.success;
-
 
39185
    }
-
 
39186
 
-
 
39187
    public void setSuccess(AmazonInventorySnapshot success) {
-
 
39188
      this.success = success;
-
 
39189
    }
-
 
39190
 
-
 
39191
    public void unsetSuccess() {
-
 
39192
      this.success = null;
-
 
39193
    }
-
 
39194
 
-
 
39195
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
39196
    public boolean isSetSuccess() {
-
 
39197
      return this.success != null;
-
 
39198
    }
-
 
39199
 
-
 
39200
    public void setSuccessIsSet(boolean value) {
-
 
39201
      if (!value) {
-
 
39202
        this.success = null;
-
 
39203
      }
-
 
39204
    }
-
 
39205
 
-
 
39206
    public void setFieldValue(_Fields field, Object value) {
-
 
39207
      switch (field) {
-
 
39208
      case SUCCESS:
-
 
39209
        if (value == null) {
-
 
39210
          unsetSuccess();
-
 
39211
        } else {
-
 
39212
          setSuccess((AmazonInventorySnapshot)value);
-
 
39213
        }
-
 
39214
        break;
-
 
39215
 
-
 
39216
      }
-
 
39217
    }
-
 
39218
 
-
 
39219
    public Object getFieldValue(_Fields field) {
-
 
39220
      switch (field) {
-
 
39221
      case SUCCESS:
-
 
39222
        return getSuccess();
-
 
39223
 
-
 
39224
      }
-
 
39225
      throw new IllegalStateException();
-
 
39226
    }
-
 
39227
 
-
 
39228
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39229
    public boolean isSet(_Fields field) {
-
 
39230
      if (field == null) {
-
 
39231
        throw new IllegalArgumentException();
-
 
39232
      }
-
 
39233
 
-
 
39234
      switch (field) {
-
 
39235
      case SUCCESS:
-
 
39236
        return isSetSuccess();
-
 
39237
      }
-
 
39238
      throw new IllegalStateException();
-
 
39239
    }
-
 
39240
 
-
 
39241
    @Override
-
 
39242
    public boolean equals(Object that) {
-
 
39243
      if (that == null)
-
 
39244
        return false;
-
 
39245
      if (that instanceof getAmazonInventoryForItem_result)
-
 
39246
        return this.equals((getAmazonInventoryForItem_result)that);
-
 
39247
      return false;
-
 
39248
    }
-
 
39249
 
-
 
39250
    public boolean equals(getAmazonInventoryForItem_result that) {
-
 
39251
      if (that == null)
-
 
39252
        return false;
-
 
39253
 
-
 
39254
      boolean this_present_success = true && this.isSetSuccess();
-
 
39255
      boolean that_present_success = true && that.isSetSuccess();
-
 
39256
      if (this_present_success || that_present_success) {
-
 
39257
        if (!(this_present_success && that_present_success))
-
 
39258
          return false;
-
 
39259
        if (!this.success.equals(that.success))
-
 
39260
          return false;
-
 
39261
      }
-
 
39262
 
-
 
39263
      return true;
-
 
39264
    }
-
 
39265
 
-
 
39266
    @Override
-
 
39267
    public int hashCode() {
-
 
39268
      return 0;
-
 
39269
    }
-
 
39270
 
-
 
39271
    public int compareTo(getAmazonInventoryForItem_result other) {
-
 
39272
      if (!getClass().equals(other.getClass())) {
-
 
39273
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39274
      }
-
 
39275
 
-
 
39276
      int lastComparison = 0;
-
 
39277
      getAmazonInventoryForItem_result typedOther = (getAmazonInventoryForItem_result)other;
-
 
39278
 
-
 
39279
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
39280
      if (lastComparison != 0) {
-
 
39281
        return lastComparison;
-
 
39282
      }
-
 
39283
      if (isSetSuccess()) {
-
 
39284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
39285
        if (lastComparison != 0) {
-
 
39286
          return lastComparison;
-
 
39287
        }
-
 
39288
      }
-
 
39289
      return 0;
-
 
39290
    }
-
 
39291
 
-
 
39292
    public _Fields fieldForId(int fieldId) {
-
 
39293
      return _Fields.findByThriftId(fieldId);
-
 
39294
    }
-
 
39295
 
-
 
39296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39297
      org.apache.thrift.protocol.TField field;
-
 
39298
      iprot.readStructBegin();
-
 
39299
      while (true)
-
 
39300
      {
-
 
39301
        field = iprot.readFieldBegin();
-
 
39302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39303
          break;
-
 
39304
        }
-
 
39305
        switch (field.id) {
-
 
39306
          case 0: // SUCCESS
-
 
39307
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
39308
              this.success = new AmazonInventorySnapshot();
-
 
39309
              this.success.read(iprot);
-
 
39310
            } else { 
-
 
39311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39312
            }
-
 
39313
            break;
-
 
39314
          default:
-
 
39315
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39316
        }
-
 
39317
        iprot.readFieldEnd();
-
 
39318
      }
-
 
39319
      iprot.readStructEnd();
-
 
39320
      validate();
-
 
39321
    }
-
 
39322
 
-
 
39323
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39324
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39325
 
-
 
39326
      if (this.isSetSuccess()) {
-
 
39327
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
39328
        this.success.write(oprot);
-
 
39329
        oprot.writeFieldEnd();
-
 
39330
      }
-
 
39331
      oprot.writeFieldStop();
-
 
39332
      oprot.writeStructEnd();
-
 
39333
    }
-
 
39334
 
-
 
39335
    @Override
-
 
39336
    public String toString() {
-
 
39337
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_result(");
-
 
39338
      boolean first = true;
-
 
39339
 
-
 
39340
      sb.append("success:");
-
 
39341
      if (this.success == null) {
-
 
39342
        sb.append("null");
-
 
39343
      } else {
-
 
39344
        sb.append(this.success);
-
 
39345
      }
-
 
39346
      first = false;
-
 
39347
      sb.append(")");
-
 
39348
      return sb.toString();
-
 
39349
    }
-
 
39350
 
-
 
39351
    public void validate() throws org.apache.thrift.TException {
-
 
39352
      // check for required fields
-
 
39353
    }
-
 
39354
 
-
 
39355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39356
      try {
-
 
39357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39358
      } catch (org.apache.thrift.TException te) {
-
 
39359
        throw new java.io.IOException(te);
-
 
39360
      }
-
 
39361
    }
-
 
39362
 
-
 
39363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39364
      try {
-
 
39365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39366
      } catch (org.apache.thrift.TException te) {
-
 
39367
        throw new java.io.IOException(te);
-
 
39368
      }
-
 
39369
    }
-
 
39370
 
-
 
39371
  }
-
 
39372
 
-
 
39373
  public static class getAllAmazonInventory_args implements org.apache.thrift.TBase<getAllAmazonInventory_args, getAllAmazonInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
39374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_args");
-
 
39375
 
-
 
39376
 
-
 
39377
 
-
 
39378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39380
;
-
 
39381
 
-
 
39382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39383
 
-
 
39384
      static {
-
 
39385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39386
          byName.put(field.getFieldName(), field);
-
 
39387
        }
-
 
39388
      }
-
 
39389
 
-
 
39390
      /**
-
 
39391
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39392
       */
-
 
39393
      public static _Fields findByThriftId(int fieldId) {
-
 
39394
        switch(fieldId) {
-
 
39395
          default:
-
 
39396
            return null;
-
 
39397
        }
-
 
39398
      }
-
 
39399
 
-
 
39400
      /**
-
 
39401
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39402
       * if it is not found.
-
 
39403
       */
-
 
39404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39405
        _Fields fields = findByThriftId(fieldId);
-
 
39406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39407
        return fields;
-
 
39408
      }
-
 
39409
 
-
 
39410
      /**
-
 
39411
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39412
       */
-
 
39413
      public static _Fields findByName(String name) {
-
 
39414
        return byName.get(name);
-
 
39415
      }
-
 
39416
 
-
 
39417
      private final short _thriftId;
-
 
39418
      private final String _fieldName;
-
 
39419
 
-
 
39420
      _Fields(short thriftId, String fieldName) {
-
 
39421
        _thriftId = thriftId;
-
 
39422
        _fieldName = fieldName;
-
 
39423
      }
-
 
39424
 
-
 
39425
      public short getThriftFieldId() {
-
 
39426
        return _thriftId;
-
 
39427
      }
-
 
39428
 
-
 
39429
      public String getFieldName() {
-
 
39430
        return _fieldName;
-
 
39431
      }
-
 
39432
    }
-
 
39433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39434
    static {
-
 
39435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_args.class, metaDataMap);
-
 
39438
    }
-
 
39439
 
-
 
39440
    public getAllAmazonInventory_args() {
-
 
39441
    }
-
 
39442
 
-
 
39443
    /**
-
 
39444
     * Performs a deep copy on <i>other</i>.
-
 
39445
     */
-
 
39446
    public getAllAmazonInventory_args(getAllAmazonInventory_args other) {
-
 
39447
    }
-
 
39448
 
-
 
39449
    public getAllAmazonInventory_args deepCopy() {
-
 
39450
      return new getAllAmazonInventory_args(this);
-
 
39451
    }
-
 
39452
 
-
 
39453
    @Override
-
 
39454
    public void clear() {
-
 
39455
    }
-
 
39456
 
-
 
39457
    public void setFieldValue(_Fields field, Object value) {
-
 
39458
      switch (field) {
-
 
39459
      }
-
 
39460
    }
-
 
39461
 
-
 
39462
    public Object getFieldValue(_Fields field) {
-
 
39463
      switch (field) {
-
 
39464
      }
-
 
39465
      throw new IllegalStateException();
-
 
39466
    }
-
 
39467
 
-
 
39468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39469
    public boolean isSet(_Fields field) {
-
 
39470
      if (field == null) {
-
 
39471
        throw new IllegalArgumentException();
-
 
39472
      }
-
 
39473
 
-
 
39474
      switch (field) {
-
 
39475
      }
-
 
39476
      throw new IllegalStateException();
-
 
39477
    }
-
 
39478
 
-
 
39479
    @Override
-
 
39480
    public boolean equals(Object that) {
-
 
39481
      if (that == null)
-
 
39482
        return false;
-
 
39483
      if (that instanceof getAllAmazonInventory_args)
-
 
39484
        return this.equals((getAllAmazonInventory_args)that);
-
 
39485
      return false;
-
 
39486
    }
-
 
39487
 
-
 
39488
    public boolean equals(getAllAmazonInventory_args that) {
-
 
39489
      if (that == null)
-
 
39490
        return false;
-
 
39491
 
-
 
39492
      return true;
-
 
39493
    }
-
 
39494
 
-
 
39495
    @Override
-
 
39496
    public int hashCode() {
-
 
39497
      return 0;
-
 
39498
    }
-
 
39499
 
-
 
39500
    public int compareTo(getAllAmazonInventory_args other) {
-
 
39501
      if (!getClass().equals(other.getClass())) {
-
 
39502
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39503
      }
-
 
39504
 
-
 
39505
      int lastComparison = 0;
-
 
39506
      getAllAmazonInventory_args typedOther = (getAllAmazonInventory_args)other;
-
 
39507
 
-
 
39508
      return 0;
-
 
39509
    }
-
 
39510
 
-
 
39511
    public _Fields fieldForId(int fieldId) {
-
 
39512
      return _Fields.findByThriftId(fieldId);
-
 
39513
    }
-
 
39514
 
-
 
39515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39516
      org.apache.thrift.protocol.TField field;
-
 
39517
      iprot.readStructBegin();
-
 
39518
      while (true)
-
 
39519
      {
-
 
39520
        field = iprot.readFieldBegin();
-
 
39521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39522
          break;
-
 
39523
        }
-
 
39524
        switch (field.id) {
-
 
39525
          default:
-
 
39526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39527
        }
-
 
39528
        iprot.readFieldEnd();
-
 
39529
      }
-
 
39530
      iprot.readStructEnd();
-
 
39531
      validate();
-
 
39532
    }
-
 
39533
 
-
 
39534
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39535
      validate();
-
 
39536
 
-
 
39537
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39538
      oprot.writeFieldStop();
-
 
39539
      oprot.writeStructEnd();
-
 
39540
    }
-
 
39541
 
-
 
39542
    @Override
-
 
39543
    public String toString() {
-
 
39544
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_args(");
-
 
39545
      boolean first = true;
-
 
39546
 
-
 
39547
      sb.append(")");
-
 
39548
      return sb.toString();
-
 
39549
    }
-
 
39550
 
-
 
39551
    public void validate() throws org.apache.thrift.TException {
-
 
39552
      // check for required fields
-
 
39553
    }
-
 
39554
 
-
 
39555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39556
      try {
-
 
39557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39558
      } catch (org.apache.thrift.TException te) {
-
 
39559
        throw new java.io.IOException(te);
-
 
39560
      }
-
 
39561
    }
-
 
39562
 
-
 
39563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39564
      try {
-
 
39565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39566
      } catch (org.apache.thrift.TException te) {
-
 
39567
        throw new java.io.IOException(te);
-
 
39568
      }
-
 
39569
    }
-
 
39570
 
-
 
39571
  }
-
 
39572
 
-
 
39573
  public static class getAllAmazonInventory_result implements org.apache.thrift.TBase<getAllAmazonInventory_result, getAllAmazonInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
39574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_result");
-
 
39575
 
-
 
39576
    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);
-
 
39577
 
-
 
39578
    private List<AmazonInventorySnapshot> success; // required
-
 
39579
 
-
 
39580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39582
      SUCCESS((short)0, "success");
-
 
39583
 
-
 
39584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39585
 
-
 
39586
      static {
-
 
39587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39588
          byName.put(field.getFieldName(), field);
-
 
39589
        }
-
 
39590
      }
-
 
39591
 
-
 
39592
      /**
-
 
39593
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39594
       */
-
 
39595
      public static _Fields findByThriftId(int fieldId) {
-
 
39596
        switch(fieldId) {
-
 
39597
          case 0: // SUCCESS
-
 
39598
            return SUCCESS;
-
 
39599
          default:
-
 
39600
            return null;
-
 
39601
        }
-
 
39602
      }
-
 
39603
 
-
 
39604
      /**
-
 
39605
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39606
       * if it is not found.
-
 
39607
       */
-
 
39608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39609
        _Fields fields = findByThriftId(fieldId);
-
 
39610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39611
        return fields;
-
 
39612
      }
-
 
39613
 
-
 
39614
      /**
-
 
39615
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39616
       */
-
 
39617
      public static _Fields findByName(String name) {
-
 
39618
        return byName.get(name);
-
 
39619
      }
-
 
39620
 
-
 
39621
      private final short _thriftId;
-
 
39622
      private final String _fieldName;
-
 
39623
 
-
 
39624
      _Fields(short thriftId, String fieldName) {
-
 
39625
        _thriftId = thriftId;
-
 
39626
        _fieldName = fieldName;
-
 
39627
      }
-
 
39628
 
-
 
39629
      public short getThriftFieldId() {
-
 
39630
        return _thriftId;
-
 
39631
      }
-
 
39632
 
-
 
39633
      public String getFieldName() {
-
 
39634
        return _fieldName;
-
 
39635
      }
-
 
39636
    }
-
 
39637
 
-
 
39638
    // isset id assignments
-
 
39639
 
-
 
39640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39641
    static {
-
 
39642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39643
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39644
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
39645
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class))));
-
 
39646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_result.class, metaDataMap);
-
 
39648
    }
-
 
39649
 
-
 
39650
    public getAllAmazonInventory_result() {
-
 
39651
    }
-
 
39652
 
-
 
39653
    public getAllAmazonInventory_result(
-
 
39654
      List<AmazonInventorySnapshot> success)
-
 
39655
    {
-
 
39656
      this();
-
 
39657
      this.success = success;
-
 
39658
    }
-
 
39659
 
-
 
39660
    /**
-
 
39661
     * Performs a deep copy on <i>other</i>.
-
 
39662
     */
-
 
39663
    public getAllAmazonInventory_result(getAllAmazonInventory_result other) {
-
 
39664
      if (other.isSetSuccess()) {
-
 
39665
        List<AmazonInventorySnapshot> __this__success = new ArrayList<AmazonInventorySnapshot>();
-
 
39666
        for (AmazonInventorySnapshot other_element : other.success) {
-
 
39667
          __this__success.add(new AmazonInventorySnapshot(other_element));
-
 
39668
        }
-
 
39669
        this.success = __this__success;
-
 
39670
      }
-
 
39671
    }
-
 
39672
 
-
 
39673
    public getAllAmazonInventory_result deepCopy() {
-
 
39674
      return new getAllAmazonInventory_result(this);
-
 
39675
    }
-
 
39676
 
-
 
39677
    @Override
-
 
39678
    public void clear() {
-
 
39679
      this.success = null;
-
 
39680
    }
-
 
39681
 
-
 
39682
    public int getSuccessSize() {
-
 
39683
      return (this.success == null) ? 0 : this.success.size();
-
 
39684
    }
-
 
39685
 
-
 
39686
    public java.util.Iterator<AmazonInventorySnapshot> getSuccessIterator() {
-
 
39687
      return (this.success == null) ? null : this.success.iterator();
-
 
39688
    }
-
 
39689
 
-
 
39690
    public void addToSuccess(AmazonInventorySnapshot elem) {
-
 
39691
      if (this.success == null) {
-
 
39692
        this.success = new ArrayList<AmazonInventorySnapshot>();
-
 
39693
      }
-
 
39694
      this.success.add(elem);
-
 
39695
    }
-
 
39696
 
-
 
39697
    public List<AmazonInventorySnapshot> getSuccess() {
-
 
39698
      return this.success;
-
 
39699
    }
-
 
39700
 
-
 
39701
    public void setSuccess(List<AmazonInventorySnapshot> success) {
-
 
39702
      this.success = success;
-
 
39703
    }
-
 
39704
 
-
 
39705
    public void unsetSuccess() {
-
 
39706
      this.success = null;
-
 
39707
    }
-
 
39708
 
-
 
39709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
39710
    public boolean isSetSuccess() {
-
 
39711
      return this.success != null;
-
 
39712
    }
-
 
39713
 
-
 
39714
    public void setSuccessIsSet(boolean value) {
-
 
39715
      if (!value) {
-
 
39716
        this.success = null;
-
 
39717
      }
-
 
39718
    }
-
 
39719
 
-
 
39720
    public void setFieldValue(_Fields field, Object value) {
-
 
39721
      switch (field) {
-
 
39722
      case SUCCESS:
-
 
39723
        if (value == null) {
-
 
39724
          unsetSuccess();
-
 
39725
        } else {
-
 
39726
          setSuccess((List<AmazonInventorySnapshot>)value);
-
 
39727
        }
-
 
39728
        break;
-
 
39729
 
-
 
39730
      }
-
 
39731
    }
-
 
39732
 
-
 
39733
    public Object getFieldValue(_Fields field) {
-
 
39734
      switch (field) {
-
 
39735
      case SUCCESS:
-
 
39736
        return getSuccess();
-
 
39737
 
-
 
39738
      }
-
 
39739
      throw new IllegalStateException();
-
 
39740
    }
-
 
39741
 
-
 
39742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39743
    public boolean isSet(_Fields field) {
-
 
39744
      if (field == null) {
-
 
39745
        throw new IllegalArgumentException();
-
 
39746
      }
-
 
39747
 
-
 
39748
      switch (field) {
-
 
39749
      case SUCCESS:
-
 
39750
        return isSetSuccess();
-
 
39751
      }
-
 
39752
      throw new IllegalStateException();
-
 
39753
    }
-
 
39754
 
-
 
39755
    @Override
-
 
39756
    public boolean equals(Object that) {
-
 
39757
      if (that == null)
-
 
39758
        return false;
-
 
39759
      if (that instanceof getAllAmazonInventory_result)
-
 
39760
        return this.equals((getAllAmazonInventory_result)that);
-
 
39761
      return false;
-
 
39762
    }
-
 
39763
 
-
 
39764
    public boolean equals(getAllAmazonInventory_result that) {
-
 
39765
      if (that == null)
-
 
39766
        return false;
-
 
39767
 
-
 
39768
      boolean this_present_success = true && this.isSetSuccess();
-
 
39769
      boolean that_present_success = true && that.isSetSuccess();
-
 
39770
      if (this_present_success || that_present_success) {
-
 
39771
        if (!(this_present_success && that_present_success))
-
 
39772
          return false;
-
 
39773
        if (!this.success.equals(that.success))
-
 
39774
          return false;
-
 
39775
      }
-
 
39776
 
-
 
39777
      return true;
-
 
39778
    }
-
 
39779
 
-
 
39780
    @Override
-
 
39781
    public int hashCode() {
-
 
39782
      return 0;
-
 
39783
    }
-
 
39784
 
-
 
39785
    public int compareTo(getAllAmazonInventory_result other) {
-
 
39786
      if (!getClass().equals(other.getClass())) {
-
 
39787
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39788
      }
-
 
39789
 
-
 
39790
      int lastComparison = 0;
-
 
39791
      getAllAmazonInventory_result typedOther = (getAllAmazonInventory_result)other;
-
 
39792
 
-
 
39793
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
39794
      if (lastComparison != 0) {
-
 
39795
        return lastComparison;
-
 
39796
      }
-
 
39797
      if (isSetSuccess()) {
-
 
39798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
39799
        if (lastComparison != 0) {
-
 
39800
          return lastComparison;
-
 
39801
        }
-
 
39802
      }
-
 
39803
      return 0;
-
 
39804
    }
-
 
39805
 
-
 
39806
    public _Fields fieldForId(int fieldId) {
-
 
39807
      return _Fields.findByThriftId(fieldId);
-
 
39808
    }
-
 
39809
 
-
 
39810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39811
      org.apache.thrift.protocol.TField field;
-
 
39812
      iprot.readStructBegin();
-
 
39813
      while (true)
-
 
39814
      {
-
 
39815
        field = iprot.readFieldBegin();
-
 
39816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39817
          break;
-
 
39818
        }
-
 
39819
        switch (field.id) {
-
 
39820
          case 0: // SUCCESS
-
 
39821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
39822
              {
-
 
39823
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
-
 
39824
                this.success = new ArrayList<AmazonInventorySnapshot>(_list121.size);
-
 
39825
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
-
 
39826
                {
-
 
39827
                  AmazonInventorySnapshot _elem123; // required
-
 
39828
                  _elem123 = new AmazonInventorySnapshot();
-
 
39829
                  _elem123.read(iprot);
-
 
39830
                  this.success.add(_elem123);
-
 
39831
                }
-
 
39832
                iprot.readListEnd();
-
 
39833
              }
-
 
39834
            } else { 
-
 
39835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39836
            }
-
 
39837
            break;
-
 
39838
          default:
-
 
39839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39840
        }
-
 
39841
        iprot.readFieldEnd();
-
 
39842
      }
-
 
39843
      iprot.readStructEnd();
-
 
39844
      validate();
-
 
39845
    }
-
 
39846
 
-
 
39847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39848
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39849
 
-
 
39850
      if (this.isSetSuccess()) {
-
 
39851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
39852
        {
-
 
39853
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
39854
          for (AmazonInventorySnapshot _iter124 : this.success)
-
 
39855
          {
-
 
39856
            _iter124.write(oprot);
-
 
39857
          }
-
 
39858
          oprot.writeListEnd();
-
 
39859
        }
-
 
39860
        oprot.writeFieldEnd();
-
 
39861
      }
-
 
39862
      oprot.writeFieldStop();
-
 
39863
      oprot.writeStructEnd();
-
 
39864
    }
-
 
39865
 
-
 
39866
    @Override
-
 
39867
    public String toString() {
-
 
39868
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_result(");
-
 
39869
      boolean first = true;
-
 
39870
 
-
 
39871
      sb.append("success:");
-
 
39872
      if (this.success == null) {
-
 
39873
        sb.append("null");
-
 
39874
      } else {
-
 
39875
        sb.append(this.success);
-
 
39876
      }
-
 
39877
      first = false;
-
 
39878
      sb.append(")");
-
 
39879
      return sb.toString();
-
 
39880
    }
-
 
39881
 
-
 
39882
    public void validate() throws org.apache.thrift.TException {
-
 
39883
      // check for required fields
-
 
39884
    }
-
 
39885
 
-
 
39886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39887
      try {
-
 
39888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39889
      } catch (org.apache.thrift.TException te) {
-
 
39890
        throw new java.io.IOException(te);
-
 
39891
      }
-
 
39892
    }
-
 
39893
 
-
 
39894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39895
      try {
-
 
39896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39897
      } catch (org.apache.thrift.TException te) {
-
 
39898
        throw new java.io.IOException(te);
-
 
39899
      }
-
 
39900
    }
-
 
39901
 
-
 
39902
  }
-
 
39903
 
-
 
39904
  public static class addOrUpdateAmazonInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_args, addOrUpdateAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
39905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_args");
-
 
39906
 
-
 
39907
    private static final org.apache.thrift.protocol.TField AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonInventorySnapshot", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
39908
 
-
 
39909
    private AmazonInventorySnapshot amazonInventorySnapshot; // required
-
 
39910
 
-
 
39911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39913
      AMAZON_INVENTORY_SNAPSHOT((short)1, "amazonInventorySnapshot");
-
 
39914
 
-
 
39915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39916
 
-
 
39917
      static {
-
 
39918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39919
          byName.put(field.getFieldName(), field);
-
 
39920
        }
-
 
39921
      }
-
 
39922
 
-
 
39923
      /**
-
 
39924
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39925
       */
-
 
39926
      public static _Fields findByThriftId(int fieldId) {
-
 
39927
        switch(fieldId) {
-
 
39928
          case 1: // AMAZON_INVENTORY_SNAPSHOT
-
 
39929
            return AMAZON_INVENTORY_SNAPSHOT;
-
 
39930
          default:
-
 
39931
            return null;
-
 
39932
        }
-
 
39933
      }
-
 
39934
 
-
 
39935
      /**
-
 
39936
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39937
       * if it is not found.
-
 
39938
       */
-
 
39939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39940
        _Fields fields = findByThriftId(fieldId);
-
 
39941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39942
        return fields;
-
 
39943
      }
-
 
39944
 
-
 
39945
      /**
-
 
39946
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39947
       */
-
 
39948
      public static _Fields findByName(String name) {
-
 
39949
        return byName.get(name);
-
 
39950
      }
-
 
39951
 
-
 
39952
      private final short _thriftId;
-
 
39953
      private final String _fieldName;
-
 
39954
 
-
 
39955
      _Fields(short thriftId, String fieldName) {
-
 
39956
        _thriftId = thriftId;
-
 
39957
        _fieldName = fieldName;
-
 
39958
      }
-
 
39959
 
-
 
39960
      public short getThriftFieldId() {
-
 
39961
        return _thriftId;
-
 
39962
      }
-
 
39963
 
-
 
39964
      public String getFieldName() {
-
 
39965
        return _fieldName;
-
 
39966
      }
-
 
39967
    }
-
 
39968
 
-
 
39969
    // isset id assignments
-
 
39970
 
-
 
39971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39972
    static {
-
 
39973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39974
      tmpMap.put(_Fields.AMAZON_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39975
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
-
 
39976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_args.class, metaDataMap);
-
 
39978
    }
-
 
39979
 
-
 
39980
    public addOrUpdateAmazonInventoryForItem_args() {
-
 
39981
    }
-
 
39982
 
-
 
39983
    public addOrUpdateAmazonInventoryForItem_args(
-
 
39984
      AmazonInventorySnapshot amazonInventorySnapshot)
-
 
39985
    {
-
 
39986
      this();
-
 
39987
      this.amazonInventorySnapshot = amazonInventorySnapshot;
-
 
39988
    }
-
 
39989
 
-
 
39990
    /**
-
 
39991
     * Performs a deep copy on <i>other</i>.
-
 
39992
     */
-
 
39993
    public addOrUpdateAmazonInventoryForItem_args(addOrUpdateAmazonInventoryForItem_args other) {
-
 
39994
      if (other.isSetAmazonInventorySnapshot()) {
-
 
39995
        this.amazonInventorySnapshot = new AmazonInventorySnapshot(other.amazonInventorySnapshot);
-
 
39996
      }
-
 
39997
    }
-
 
39998
 
-
 
39999
    public addOrUpdateAmazonInventoryForItem_args deepCopy() {
-
 
40000
      return new addOrUpdateAmazonInventoryForItem_args(this);
-
 
40001
    }
-
 
40002
 
-
 
40003
    @Override
-
 
40004
    public void clear() {
-
 
40005
      this.amazonInventorySnapshot = null;
-
 
40006
    }
-
 
40007
 
-
 
40008
    public AmazonInventorySnapshot getAmazonInventorySnapshot() {
-
 
40009
      return this.amazonInventorySnapshot;
-
 
40010
    }
-
 
40011
 
-
 
40012
    public void setAmazonInventorySnapshot(AmazonInventorySnapshot amazonInventorySnapshot) {
-
 
40013
      this.amazonInventorySnapshot = amazonInventorySnapshot;
-
 
40014
    }
-
 
40015
 
-
 
40016
    public void unsetAmazonInventorySnapshot() {
-
 
40017
      this.amazonInventorySnapshot = null;
-
 
40018
    }
-
 
40019
 
-
 
40020
    /** Returns true if field amazonInventorySnapshot is set (has been assigned a value) and false otherwise */
-
 
40021
    public boolean isSetAmazonInventorySnapshot() {
-
 
40022
      return this.amazonInventorySnapshot != null;
-
 
40023
    }
-
 
40024
 
-
 
40025
    public void setAmazonInventorySnapshotIsSet(boolean value) {
-
 
40026
      if (!value) {
-
 
40027
        this.amazonInventorySnapshot = null;
-
 
40028
      }
-
 
40029
    }
-
 
40030
 
-
 
40031
    public void setFieldValue(_Fields field, Object value) {
-
 
40032
      switch (field) {
-
 
40033
      case AMAZON_INVENTORY_SNAPSHOT:
-
 
40034
        if (value == null) {
-
 
40035
          unsetAmazonInventorySnapshot();
-
 
40036
        } else {
-
 
40037
          setAmazonInventorySnapshot((AmazonInventorySnapshot)value);
-
 
40038
        }
-
 
40039
        break;
-
 
40040
 
-
 
40041
      }
-
 
40042
    }
-
 
40043
 
-
 
40044
    public Object getFieldValue(_Fields field) {
-
 
40045
      switch (field) {
-
 
40046
      case AMAZON_INVENTORY_SNAPSHOT:
-
 
40047
        return getAmazonInventorySnapshot();
-
 
40048
 
-
 
40049
      }
-
 
40050
      throw new IllegalStateException();
-
 
40051
    }
-
 
40052
 
-
 
40053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40054
    public boolean isSet(_Fields field) {
-
 
40055
      if (field == null) {
-
 
40056
        throw new IllegalArgumentException();
-
 
40057
      }
-
 
40058
 
-
 
40059
      switch (field) {
-
 
40060
      case AMAZON_INVENTORY_SNAPSHOT:
-
 
40061
        return isSetAmazonInventorySnapshot();
-
 
40062
      }
-
 
40063
      throw new IllegalStateException();
-
 
40064
    }
-
 
40065
 
-
 
40066
    @Override
-
 
40067
    public boolean equals(Object that) {
-
 
40068
      if (that == null)
-
 
40069
        return false;
-
 
40070
      if (that instanceof addOrUpdateAmazonInventoryForItem_args)
-
 
40071
        return this.equals((addOrUpdateAmazonInventoryForItem_args)that);
-
 
40072
      return false;
-
 
40073
    }
-
 
40074
 
-
 
40075
    public boolean equals(addOrUpdateAmazonInventoryForItem_args that) {
-
 
40076
      if (that == null)
-
 
40077
        return false;
-
 
40078
 
-
 
40079
      boolean this_present_amazonInventorySnapshot = true && this.isSetAmazonInventorySnapshot();
-
 
40080
      boolean that_present_amazonInventorySnapshot = true && that.isSetAmazonInventorySnapshot();
-
 
40081
      if (this_present_amazonInventorySnapshot || that_present_amazonInventorySnapshot) {
-
 
40082
        if (!(this_present_amazonInventorySnapshot && that_present_amazonInventorySnapshot))
-
 
40083
          return false;
-
 
40084
        if (!this.amazonInventorySnapshot.equals(that.amazonInventorySnapshot))
-
 
40085
          return false;
-
 
40086
      }
-
 
40087
 
-
 
40088
      return true;
-
 
40089
    }
-
 
40090
 
-
 
40091
    @Override
-
 
40092
    public int hashCode() {
-
 
40093
      return 0;
-
 
40094
    }
-
 
40095
 
-
 
40096
    public int compareTo(addOrUpdateAmazonInventoryForItem_args other) {
-
 
40097
      if (!getClass().equals(other.getClass())) {
-
 
40098
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40099
      }
-
 
40100
 
-
 
40101
      int lastComparison = 0;
-
 
40102
      addOrUpdateAmazonInventoryForItem_args typedOther = (addOrUpdateAmazonInventoryForItem_args)other;
-
 
40103
 
-
 
40104
      lastComparison = Boolean.valueOf(isSetAmazonInventorySnapshot()).compareTo(typedOther.isSetAmazonInventorySnapshot());
-
 
40105
      if (lastComparison != 0) {
-
 
40106
        return lastComparison;
-
 
40107
      }
-
 
40108
      if (isSetAmazonInventorySnapshot()) {
-
 
40109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonInventorySnapshot, typedOther.amazonInventorySnapshot);
-
 
40110
        if (lastComparison != 0) {
-
 
40111
          return lastComparison;
-
 
40112
        }
-
 
40113
      }
-
 
40114
      return 0;
-
 
40115
    }
-
 
40116
 
-
 
40117
    public _Fields fieldForId(int fieldId) {
-
 
40118
      return _Fields.findByThriftId(fieldId);
-
 
40119
    }
-
 
40120
 
-
 
40121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40122
      org.apache.thrift.protocol.TField field;
-
 
40123
      iprot.readStructBegin();
-
 
40124
      while (true)
-
 
40125
      {
-
 
40126
        field = iprot.readFieldBegin();
-
 
40127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40128
          break;
-
 
40129
        }
-
 
40130
        switch (field.id) {
-
 
40131
          case 1: // AMAZON_INVENTORY_SNAPSHOT
-
 
40132
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40133
              this.amazonInventorySnapshot = new AmazonInventorySnapshot();
-
 
40134
              this.amazonInventorySnapshot.read(iprot);
-
 
40135
            } else { 
-
 
40136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40137
            }
-
 
40138
            break;
-
 
40139
          default:
-
 
40140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40141
        }
-
 
40142
        iprot.readFieldEnd();
-
 
40143
      }
-
 
40144
      iprot.readStructEnd();
-
 
40145
      validate();
-
 
40146
    }
-
 
40147
 
-
 
40148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40149
      validate();
-
 
40150
 
-
 
40151
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40152
      if (this.amazonInventorySnapshot != null) {
-
 
40153
        oprot.writeFieldBegin(AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC);
-
 
40154
        this.amazonInventorySnapshot.write(oprot);
-
 
40155
        oprot.writeFieldEnd();
-
 
40156
      }
-
 
40157
      oprot.writeFieldStop();
-
 
40158
      oprot.writeStructEnd();
-
 
40159
    }
-
 
40160
 
-
 
40161
    @Override
-
 
40162
    public String toString() {
-
 
40163
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_args(");
-
 
40164
      boolean first = true;
-
 
40165
 
-
 
40166
      sb.append("amazonInventorySnapshot:");
-
 
40167
      if (this.amazonInventorySnapshot == null) {
-
 
40168
        sb.append("null");
-
 
40169
      } else {
-
 
40170
        sb.append(this.amazonInventorySnapshot);
-
 
40171
      }
-
 
40172
      first = false;
-
 
40173
      sb.append(")");
-
 
40174
      return sb.toString();
-
 
40175
    }
-
 
40176
 
-
 
40177
    public void validate() throws org.apache.thrift.TException {
-
 
40178
      // check for required fields
-
 
40179
    }
-
 
40180
 
-
 
40181
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40182
      try {
-
 
40183
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40184
      } catch (org.apache.thrift.TException te) {
-
 
40185
        throw new java.io.IOException(te);
-
 
40186
      }
-
 
40187
    }
-
 
40188
 
-
 
40189
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40190
      try {
-
 
40191
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40192
      } catch (org.apache.thrift.TException te) {
-
 
40193
        throw new java.io.IOException(te);
-
 
40194
      }
-
 
40195
    }
-
 
40196
 
-
 
40197
  }
-
 
40198
 
-
 
40199
  public static class addOrUpdateAmazonInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_result, addOrUpdateAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40200
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_result");
-
 
40201
 
-
 
40202
 
-
 
40203
 
-
 
40204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40206
;
-
 
40207
 
-
 
40208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40209
 
-
 
40210
      static {
-
 
40211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40212
          byName.put(field.getFieldName(), field);
-
 
40213
        }
-
 
40214
      }
-
 
40215
 
-
 
40216
      /**
-
 
40217
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40218
       */
-
 
40219
      public static _Fields findByThriftId(int fieldId) {
-
 
40220
        switch(fieldId) {
-
 
40221
          default:
-
 
40222
            return null;
-
 
40223
        }
-
 
40224
      }
-
 
40225
 
-
 
40226
      /**
-
 
40227
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40228
       * if it is not found.
-
 
40229
       */
-
 
40230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40231
        _Fields fields = findByThriftId(fieldId);
-
 
40232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40233
        return fields;
-
 
40234
      }
-
 
40235
 
-
 
40236
      /**
-
 
40237
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40238
       */
-
 
40239
      public static _Fields findByName(String name) {
-
 
40240
        return byName.get(name);
-
 
40241
      }
-
 
40242
 
-
 
40243
      private final short _thriftId;
-
 
40244
      private final String _fieldName;
-
 
40245
 
-
 
40246
      _Fields(short thriftId, String fieldName) {
-
 
40247
        _thriftId = thriftId;
-
 
40248
        _fieldName = fieldName;
-
 
40249
      }
-
 
40250
 
-
 
40251
      public short getThriftFieldId() {
-
 
40252
        return _thriftId;
-
 
40253
      }
-
 
40254
 
-
 
40255
      public String getFieldName() {
-
 
40256
        return _fieldName;
-
 
40257
      }
-
 
40258
    }
-
 
40259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40260
    static {
-
 
40261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_result.class, metaDataMap);
-
 
40264
    }
-
 
40265
 
-
 
40266
    public addOrUpdateAmazonInventoryForItem_result() {
-
 
40267
    }
-
 
40268
 
-
 
40269
    /**
-
 
40270
     * Performs a deep copy on <i>other</i>.
-
 
40271
     */
-
 
40272
    public addOrUpdateAmazonInventoryForItem_result(addOrUpdateAmazonInventoryForItem_result other) {
-
 
40273
    }
-
 
40274
 
-
 
40275
    public addOrUpdateAmazonInventoryForItem_result deepCopy() {
-
 
40276
      return new addOrUpdateAmazonInventoryForItem_result(this);
-
 
40277
    }
-
 
40278
 
-
 
40279
    @Override
-
 
40280
    public void clear() {
-
 
40281
    }
-
 
40282
 
-
 
40283
    public void setFieldValue(_Fields field, Object value) {
-
 
40284
      switch (field) {
-
 
40285
      }
-
 
40286
    }
-
 
40287
 
-
 
40288
    public Object getFieldValue(_Fields field) {
-
 
40289
      switch (field) {
-
 
40290
      }
-
 
40291
      throw new IllegalStateException();
-
 
40292
    }
-
 
40293
 
-
 
40294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40295
    public boolean isSet(_Fields field) {
-
 
40296
      if (field == null) {
-
 
40297
        throw new IllegalArgumentException();
-
 
40298
      }
-
 
40299
 
-
 
40300
      switch (field) {
-
 
40301
      }
-
 
40302
      throw new IllegalStateException();
-
 
40303
    }
-
 
40304
 
-
 
40305
    @Override
-
 
40306
    public boolean equals(Object that) {
-
 
40307
      if (that == null)
-
 
40308
        return false;
-
 
40309
      if (that instanceof addOrUpdateAmazonInventoryForItem_result)
-
 
40310
        return this.equals((addOrUpdateAmazonInventoryForItem_result)that);
-
 
40311
      return false;
-
 
40312
    }
-
 
40313
 
-
 
40314
    public boolean equals(addOrUpdateAmazonInventoryForItem_result that) {
-
 
40315
      if (that == null)
-
 
40316
        return false;
-
 
40317
 
-
 
40318
      return true;
-
 
40319
    }
-
 
40320
 
-
 
40321
    @Override
-
 
40322
    public int hashCode() {
-
 
40323
      return 0;
-
 
40324
    }
-
 
40325
 
-
 
40326
    public int compareTo(addOrUpdateAmazonInventoryForItem_result other) {
-
 
40327
      if (!getClass().equals(other.getClass())) {
-
 
40328
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40329
      }
-
 
40330
 
-
 
40331
      int lastComparison = 0;
-
 
40332
      addOrUpdateAmazonInventoryForItem_result typedOther = (addOrUpdateAmazonInventoryForItem_result)other;
-
 
40333
 
-
 
40334
      return 0;
-
 
40335
    }
-
 
40336
 
-
 
40337
    public _Fields fieldForId(int fieldId) {
-
 
40338
      return _Fields.findByThriftId(fieldId);
-
 
40339
    }
-
 
40340
 
-
 
40341
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40342
      org.apache.thrift.protocol.TField field;
-
 
40343
      iprot.readStructBegin();
-
 
40344
      while (true)
-
 
40345
      {
-
 
40346
        field = iprot.readFieldBegin();
-
 
40347
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40348
          break;
-
 
40349
        }
-
 
40350
        switch (field.id) {
-
 
40351
          default:
-
 
40352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40353
        }
-
 
40354
        iprot.readFieldEnd();
-
 
40355
      }
-
 
40356
      iprot.readStructEnd();
-
 
40357
      validate();
-
 
40358
    }
-
 
40359
 
-
 
40360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40361
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40362
 
-
 
40363
      oprot.writeFieldStop();
-
 
40364
      oprot.writeStructEnd();
-
 
40365
    }
-
 
40366
 
-
 
40367
    @Override
-
 
40368
    public String toString() {
-
 
40369
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_result(");
-
 
40370
      boolean first = true;
-
 
40371
 
-
 
40372
      sb.append(")");
-
 
40373
      return sb.toString();
-
 
40374
    }
-
 
40375
 
-
 
40376
    public void validate() throws org.apache.thrift.TException {
37880
      // check for required fields
40377
      // check for required fields
37881
    }
40378
    }
37882
 
40379
 
37883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40380
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37884
      try {
40381
      try {