Subversion Repositories SmartDukaan

Rev

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

Rev 10489 Rev 10689
Line 340... Line 340...
340
 
340
 
341
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
341
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
342
 
342
 
343
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException;
343
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException;
344
 
344
 
-
 
345
    public List<InventoryItem> getInventoryItemScannedInForPO(long itemId, List<Long> purchaseIds) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
346
 
-
 
347
    public List<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(List<Long> itemIds) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
348
 
-
 
349
    public List<Scan> getScansforPurchase(long purchaseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
350
 
345
  }
351
  }
346
 
352
 
347
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
353
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
348
 
354
 
349
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
355
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 454... Line 460...
454
 
460
 
455
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLotPartial_call> resultHandler) throws org.apache.thrift.TException;
461
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLotPartial_call> resultHandler) throws org.apache.thrift.TException;
456
 
462
 
457
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceivedPartial_call> resultHandler) throws org.apache.thrift.TException;
463
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceivedPartial_call> resultHandler) throws org.apache.thrift.TException;
458
 
464
 
-
 
465
    public void getInventoryItemScannedInForPO(long itemId, List<Long> purchaseIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemScannedInForPO_call> resultHandler) throws org.apache.thrift.TException;
-
 
466
 
-
 
467
    public void getAmazonTransferredSkuDetails(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonTransferredSkuDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
468
 
-
 
469
    public void getScansforPurchase(long purchaseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansforPurchase_call> resultHandler) throws org.apache.thrift.TException;
-
 
470
 
459
  }
471
  }
460
 
472
 
461
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
473
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
462
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
474
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
463
      public Factory() {}
475
      public Factory() {}
Line 1858... Line 1870...
1858
        throw result.wex;
1870
        throw result.wex;
1859
      }
1871
      }
1860
      return;
1872
      return;
1861
    }
1873
    }
1862
 
1874
 
-
 
1875
    public List<InventoryItem> getInventoryItemScannedInForPO(long itemId, List<Long> purchaseIds) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1876
    {
-
 
1877
      send_getInventoryItemScannedInForPO(itemId, purchaseIds);
-
 
1878
      return recv_getInventoryItemScannedInForPO();
-
 
1879
    }
-
 
1880
 
-
 
1881
    public void send_getInventoryItemScannedInForPO(long itemId, List<Long> purchaseIds) throws org.apache.thrift.TException
-
 
1882
    {
-
 
1883
      getInventoryItemScannedInForPO_args args = new getInventoryItemScannedInForPO_args();
-
 
1884
      args.setItemId(itemId);
-
 
1885
      args.setPurchaseIds(purchaseIds);
-
 
1886
      sendBase("getInventoryItemScannedInForPO", args);
-
 
1887
    }
-
 
1888
 
-
 
1889
    public List<InventoryItem> recv_getInventoryItemScannedInForPO() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1890
    {
-
 
1891
      getInventoryItemScannedInForPO_result result = new getInventoryItemScannedInForPO_result();
-
 
1892
      receiveBase(result, "getInventoryItemScannedInForPO");
-
 
1893
      if (result.isSetSuccess()) {
-
 
1894
        return result.success;
-
 
1895
      }
-
 
1896
      if (result.wex != null) {
-
 
1897
        throw result.wex;
-
 
1898
      }
-
 
1899
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
-
 
1900
    }
-
 
1901
 
-
 
1902
    public List<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(List<Long> itemIds) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1903
    {
-
 
1904
      send_getAmazonTransferredSkuDetails(itemIds);
-
 
1905
      return recv_getAmazonTransferredSkuDetails();
-
 
1906
    }
-
 
1907
 
-
 
1908
    public void send_getAmazonTransferredSkuDetails(List<Long> itemIds) throws org.apache.thrift.TException
-
 
1909
    {
-
 
1910
      getAmazonTransferredSkuDetails_args args = new getAmazonTransferredSkuDetails_args();
-
 
1911
      args.setItemIds(itemIds);
-
 
1912
      sendBase("getAmazonTransferredSkuDetails", args);
-
 
1913
    }
-
 
1914
 
-
 
1915
    public List<AmazonTransferredSkuDetail> recv_getAmazonTransferredSkuDetails() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1916
    {
-
 
1917
      getAmazonTransferredSkuDetails_result result = new getAmazonTransferredSkuDetails_result();
-
 
1918
      receiveBase(result, "getAmazonTransferredSkuDetails");
-
 
1919
      if (result.isSetSuccess()) {
-
 
1920
        return result.success;
-
 
1921
      }
-
 
1922
      if (result.wex != null) {
-
 
1923
        throw result.wex;
-
 
1924
      }
-
 
1925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
-
 
1926
    }
-
 
1927
 
-
 
1928
    public List<Scan> getScansforPurchase(long purchaseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1929
    {
-
 
1930
      send_getScansforPurchase(purchaseId, scanType);
-
 
1931
      return recv_getScansforPurchase();
-
 
1932
    }
-
 
1933
 
-
 
1934
    public void send_getScansforPurchase(long purchaseId, ScanType scanType) throws org.apache.thrift.TException
-
 
1935
    {
-
 
1936
      getScansforPurchase_args args = new getScansforPurchase_args();
-
 
1937
      args.setPurchaseId(purchaseId);
-
 
1938
      args.setScanType(scanType);
-
 
1939
      sendBase("getScansforPurchase", args);
-
 
1940
    }
-
 
1941
 
-
 
1942
    public List<Scan> recv_getScansforPurchase() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1943
    {
-
 
1944
      getScansforPurchase_result result = new getScansforPurchase_result();
-
 
1945
      receiveBase(result, "getScansforPurchase");
-
 
1946
      if (result.isSetSuccess()) {
-
 
1947
        return result.success;
-
 
1948
      }
-
 
1949
      if (result.wex != null) {
-
 
1950
        throw result.wex;
-
 
1951
      }
-
 
1952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
-
 
1953
    }
-
 
1954
 
1863
  }
1955
  }
1864
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1956
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1865
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1957
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1866
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1958
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1867
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1959
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3834... Line 3926...
3834
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3835
        (new Client(prot)).recv_markTransferLotAsReceivedPartial();
3927
        (new Client(prot)).recv_markTransferLotAsReceivedPartial();
3836
      }
3928
      }
3837
    }
3929
    }
3838
 
3930
 
-
 
3931
    public void getInventoryItemScannedInForPO(long itemId, List<Long> purchaseIds, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemScannedInForPO_call> resultHandler) throws org.apache.thrift.TException {
-
 
3932
      checkReady();
-
 
3933
      getInventoryItemScannedInForPO_call method_call = new getInventoryItemScannedInForPO_call(itemId, purchaseIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
3934
      this.___currentMethod = method_call;
-
 
3935
      ___manager.call(method_call);
-
 
3936
    }
-
 
3937
 
-
 
3938
    public static class getInventoryItemScannedInForPO_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3939
      private long itemId;
-
 
3940
      private List<Long> purchaseIds;
-
 
3941
      public getInventoryItemScannedInForPO_call(long itemId, List<Long> purchaseIds, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemScannedInForPO_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 {
-
 
3942
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3943
        this.itemId = itemId;
-
 
3944
        this.purchaseIds = purchaseIds;
-
 
3945
      }
-
 
3946
 
-
 
3947
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3948
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemScannedInForPO", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3949
        getInventoryItemScannedInForPO_args args = new getInventoryItemScannedInForPO_args();
-
 
3950
        args.setItemId(itemId);
-
 
3951
        args.setPurchaseIds(purchaseIds);
-
 
3952
        args.write(prot);
-
 
3953
        prot.writeMessageEnd();
-
 
3954
      }
-
 
3955
 
-
 
3956
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3957
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3958
          throw new IllegalStateException("Method call not finished!");
-
 
3959
        }
-
 
3960
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3961
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3962
        return (new Client(prot)).recv_getInventoryItemScannedInForPO();
-
 
3963
      }
-
 
3964
    }
-
 
3965
 
-
 
3966
    public void getAmazonTransferredSkuDetails(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getAmazonTransferredSkuDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
3967
      checkReady();
-
 
3968
      getAmazonTransferredSkuDetails_call method_call = new getAmazonTransferredSkuDetails_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
3969
      this.___currentMethod = method_call;
-
 
3970
      ___manager.call(method_call);
-
 
3971
    }
-
 
3972
 
-
 
3973
    public static class getAmazonTransferredSkuDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3974
      private List<Long> itemIds;
-
 
3975
      public getAmazonTransferredSkuDetails_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getAmazonTransferredSkuDetails_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 {
-
 
3976
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3977
        this.itemIds = itemIds;
-
 
3978
      }
-
 
3979
 
-
 
3980
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3981
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonTransferredSkuDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3982
        getAmazonTransferredSkuDetails_args args = new getAmazonTransferredSkuDetails_args();
-
 
3983
        args.setItemIds(itemIds);
-
 
3984
        args.write(prot);
-
 
3985
        prot.writeMessageEnd();
-
 
3986
      }
-
 
3987
 
-
 
3988
      public List<AmazonTransferredSkuDetail> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3989
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3990
          throw new IllegalStateException("Method call not finished!");
-
 
3991
        }
-
 
3992
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3994
        return (new Client(prot)).recv_getAmazonTransferredSkuDetails();
-
 
3995
      }
-
 
3996
    }
-
 
3997
 
-
 
3998
    public void getScansforPurchase(long purchaseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<getScansforPurchase_call> resultHandler) throws org.apache.thrift.TException {
-
 
3999
      checkReady();
-
 
4000
      getScansforPurchase_call method_call = new getScansforPurchase_call(purchaseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
-
 
4001
      this.___currentMethod = method_call;
-
 
4002
      ___manager.call(method_call);
-
 
4003
    }
-
 
4004
 
-
 
4005
    public static class getScansforPurchase_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4006
      private long purchaseId;
-
 
4007
      private ScanType scanType;
-
 
4008
      public getScansforPurchase_call(long purchaseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<getScansforPurchase_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 {
-
 
4009
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4010
        this.purchaseId = purchaseId;
-
 
4011
        this.scanType = scanType;
-
 
4012
      }
-
 
4013
 
-
 
4014
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4015
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScansforPurchase", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4016
        getScansforPurchase_args args = new getScansforPurchase_args();
-
 
4017
        args.setPurchaseId(purchaseId);
-
 
4018
        args.setScanType(scanType);
-
 
4019
        args.write(prot);
-
 
4020
        prot.writeMessageEnd();
-
 
4021
      }
-
 
4022
 
-
 
4023
      public List<Scan> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4024
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4025
          throw new IllegalStateException("Method call not finished!");
-
 
4026
        }
-
 
4027
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4028
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4029
        return (new Client(prot)).recv_getScansforPurchase();
-
 
4030
      }
-
 
4031
    }
-
 
4032
 
3839
  }
4033
  }
3840
 
4034
 
3841
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4035
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3842
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4036
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3843
    public Processor(I iface) {
4037
    public Processor(I iface) {
Line 3902... Line 4096...
3902
      processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
4096
      processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
3903
      processMap.put("scanForBadSale", new scanForBadSale());
4097
      processMap.put("scanForBadSale", new scanForBadSale());
3904
      processMap.put("getTransferLotItemsForMarkReceive", new getTransferLotItemsForMarkReceive());
4098
      processMap.put("getTransferLotItemsForMarkReceive", new getTransferLotItemsForMarkReceive());
3905
      processMap.put("markItemsAsReceivedForTransferLotPartial", new markItemsAsReceivedForTransferLotPartial());
4099
      processMap.put("markItemsAsReceivedForTransferLotPartial", new markItemsAsReceivedForTransferLotPartial());
3906
      processMap.put("markTransferLotAsReceivedPartial", new markTransferLotAsReceivedPartial());
4100
      processMap.put("markTransferLotAsReceivedPartial", new markTransferLotAsReceivedPartial());
-
 
4101
      processMap.put("getInventoryItemScannedInForPO", new getInventoryItemScannedInForPO());
-
 
4102
      processMap.put("getAmazonTransferredSkuDetails", new getAmazonTransferredSkuDetails());
-
 
4103
      processMap.put("getScansforPurchase", new getScansforPurchase());
3907
      return processMap;
4104
      return processMap;
3908
    }
4105
    }
3909
 
4106
 
3910
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4107
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3911
      public getInventoryItem() {
4108
      public getInventoryItem() {
Line 4913... Line 5110...
4913
        }
5110
        }
4914
        return result;
5111
        return result;
4915
      }
5112
      }
4916
    }
5113
    }
4917
 
5114
 
-
 
5115
    private static class getInventoryItemScannedInForPO<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemScannedInForPO_args> {
-
 
5116
      public getInventoryItemScannedInForPO() {
-
 
5117
        super("getInventoryItemScannedInForPO");
-
 
5118
      }
-
 
5119
 
-
 
5120
      protected getInventoryItemScannedInForPO_args getEmptyArgsInstance() {
-
 
5121
        return new getInventoryItemScannedInForPO_args();
-
 
5122
      }
-
 
5123
 
-
 
5124
      protected getInventoryItemScannedInForPO_result getResult(I iface, getInventoryItemScannedInForPO_args args) throws org.apache.thrift.TException {
-
 
5125
        getInventoryItemScannedInForPO_result result = new getInventoryItemScannedInForPO_result();
-
 
5126
        try {
-
 
5127
          result.success = iface.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds);
-
 
5128
        } catch (WarehouseServiceException wex) {
-
 
5129
          result.wex = wex;
-
 
5130
        }
-
 
5131
        return result;
-
 
5132
      }
-
 
5133
    }
-
 
5134
 
-
 
5135
    private static class getAmazonTransferredSkuDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonTransferredSkuDetails_args> {
-
 
5136
      public getAmazonTransferredSkuDetails() {
-
 
5137
        super("getAmazonTransferredSkuDetails");
-
 
5138
      }
-
 
5139
 
-
 
5140
      protected getAmazonTransferredSkuDetails_args getEmptyArgsInstance() {
-
 
5141
        return new getAmazonTransferredSkuDetails_args();
-
 
5142
      }
-
 
5143
 
-
 
5144
      protected getAmazonTransferredSkuDetails_result getResult(I iface, getAmazonTransferredSkuDetails_args args) throws org.apache.thrift.TException {
-
 
5145
        getAmazonTransferredSkuDetails_result result = new getAmazonTransferredSkuDetails_result();
-
 
5146
        try {
-
 
5147
          result.success = iface.getAmazonTransferredSkuDetails(args.itemIds);
-
 
5148
        } catch (WarehouseServiceException wex) {
-
 
5149
          result.wex = wex;
-
 
5150
        }
-
 
5151
        return result;
-
 
5152
      }
-
 
5153
    }
-
 
5154
 
-
 
5155
    private static class getScansforPurchase<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScansforPurchase_args> {
-
 
5156
      public getScansforPurchase() {
-
 
5157
        super("getScansforPurchase");
-
 
5158
      }
-
 
5159
 
-
 
5160
      protected getScansforPurchase_args getEmptyArgsInstance() {
-
 
5161
        return new getScansforPurchase_args();
-
 
5162
      }
-
 
5163
 
-
 
5164
      protected getScansforPurchase_result getResult(I iface, getScansforPurchase_args args) throws org.apache.thrift.TException {
-
 
5165
        getScansforPurchase_result result = new getScansforPurchase_result();
-
 
5166
        try {
-
 
5167
          result.success = iface.getScansforPurchase(args.purchaseId, args.scanType);
-
 
5168
        } catch (WarehouseServiceException wex) {
-
 
5169
          result.wex = wex;
-
 
5170
        }
-
 
5171
        return result;
-
 
5172
      }
-
 
5173
    }
-
 
5174
 
4918
  }
5175
  }
4919
 
5176
 
4920
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5177
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4921
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5178
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
4922
 
5179
 
Line 45613... Line 45870...
45613
      sb.append("wex:");
45870
      sb.append("wex:");
45614
      if (this.wex == null) {
45871
      if (this.wex == null) {
45615
        sb.append("null");
45872
        sb.append("null");
45616
      } else {
45873
      } else {
45617
        sb.append(this.wex);
45874
        sb.append(this.wex);
-
 
45875
      }
-
 
45876
      first = false;
-
 
45877
      sb.append(")");
-
 
45878
      return sb.toString();
-
 
45879
    }
-
 
45880
 
-
 
45881
    public void validate() throws org.apache.thrift.TException {
-
 
45882
      // check for required fields
-
 
45883
    }
-
 
45884
 
-
 
45885
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45886
      try {
-
 
45887
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45888
      } catch (org.apache.thrift.TException te) {
-
 
45889
        throw new java.io.IOException(te);
-
 
45890
      }
-
 
45891
    }
-
 
45892
 
-
 
45893
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45894
      try {
-
 
45895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45896
      } catch (org.apache.thrift.TException te) {
-
 
45897
        throw new java.io.IOException(te);
-
 
45898
      }
-
 
45899
    }
-
 
45900
 
-
 
45901
  }
-
 
45902
 
-
 
45903
  public static class getInventoryItemScannedInForPO_args implements org.apache.thrift.TBase<getInventoryItemScannedInForPO_args, getInventoryItemScannedInForPO_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemScannedInForPO_args");
-
 
45905
 
-
 
45906
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45907
    private static final org.apache.thrift.protocol.TField PURCHASE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseIds", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
45908
 
-
 
45909
    private long itemId; // required
-
 
45910
    private List<Long> purchaseIds; // required
-
 
45911
 
-
 
45912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45914
      ITEM_ID((short)1, "itemId"),
-
 
45915
      PURCHASE_IDS((short)2, "purchaseIds");
-
 
45916
 
-
 
45917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45918
 
-
 
45919
      static {
-
 
45920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45921
          byName.put(field.getFieldName(), field);
-
 
45922
        }
-
 
45923
      }
-
 
45924
 
-
 
45925
      /**
-
 
45926
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45927
       */
-
 
45928
      public static _Fields findByThriftId(int fieldId) {
-
 
45929
        switch(fieldId) {
-
 
45930
          case 1: // ITEM_ID
-
 
45931
            return ITEM_ID;
-
 
45932
          case 2: // PURCHASE_IDS
-
 
45933
            return PURCHASE_IDS;
-
 
45934
          default:
-
 
45935
            return null;
-
 
45936
        }
-
 
45937
      }
-
 
45938
 
-
 
45939
      /**
-
 
45940
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45941
       * if it is not found.
-
 
45942
       */
-
 
45943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45944
        _Fields fields = findByThriftId(fieldId);
-
 
45945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45946
        return fields;
-
 
45947
      }
-
 
45948
 
-
 
45949
      /**
-
 
45950
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45951
       */
-
 
45952
      public static _Fields findByName(String name) {
-
 
45953
        return byName.get(name);
-
 
45954
      }
-
 
45955
 
-
 
45956
      private final short _thriftId;
-
 
45957
      private final String _fieldName;
-
 
45958
 
-
 
45959
      _Fields(short thriftId, String fieldName) {
-
 
45960
        _thriftId = thriftId;
-
 
45961
        _fieldName = fieldName;
-
 
45962
      }
-
 
45963
 
-
 
45964
      public short getThriftFieldId() {
-
 
45965
        return _thriftId;
-
 
45966
      }
-
 
45967
 
-
 
45968
      public String getFieldName() {
-
 
45969
        return _fieldName;
-
 
45970
      }
-
 
45971
    }
-
 
45972
 
-
 
45973
    // isset id assignments
-
 
45974
    private static final int __ITEMID_ISSET_ID = 0;
-
 
45975
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45976
 
-
 
45977
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45978
    static {
-
 
45979
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45980
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45981
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45982
      tmpMap.put(_Fields.PURCHASE_IDS, new org.apache.thrift.meta_data.FieldMetaData("purchaseIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45983
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
45984
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
45985
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45986
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemScannedInForPO_args.class, metaDataMap);
-
 
45987
    }
-
 
45988
 
-
 
45989
    public getInventoryItemScannedInForPO_args() {
-
 
45990
    }
-
 
45991
 
-
 
45992
    public getInventoryItemScannedInForPO_args(
-
 
45993
      long itemId,
-
 
45994
      List<Long> purchaseIds)
-
 
45995
    {
-
 
45996
      this();
-
 
45997
      this.itemId = itemId;
-
 
45998
      setItemIdIsSet(true);
-
 
45999
      this.purchaseIds = purchaseIds;
-
 
46000
    }
-
 
46001
 
-
 
46002
    /**
-
 
46003
     * Performs a deep copy on <i>other</i>.
-
 
46004
     */
-
 
46005
    public getInventoryItemScannedInForPO_args(getInventoryItemScannedInForPO_args other) {
-
 
46006
      __isset_bit_vector.clear();
-
 
46007
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
46008
      this.itemId = other.itemId;
-
 
46009
      if (other.isSetPurchaseIds()) {
-
 
46010
        List<Long> __this__purchaseIds = new ArrayList<Long>();
-
 
46011
        for (Long other_element : other.purchaseIds) {
-
 
46012
          __this__purchaseIds.add(other_element);
-
 
46013
        }
-
 
46014
        this.purchaseIds = __this__purchaseIds;
-
 
46015
      }
-
 
46016
    }
-
 
46017
 
-
 
46018
    public getInventoryItemScannedInForPO_args deepCopy() {
-
 
46019
      return new getInventoryItemScannedInForPO_args(this);
-
 
46020
    }
-
 
46021
 
-
 
46022
    @Override
-
 
46023
    public void clear() {
-
 
46024
      setItemIdIsSet(false);
-
 
46025
      this.itemId = 0;
-
 
46026
      this.purchaseIds = null;
-
 
46027
    }
-
 
46028
 
-
 
46029
    public long getItemId() {
-
 
46030
      return this.itemId;
-
 
46031
    }
-
 
46032
 
-
 
46033
    public void setItemId(long itemId) {
-
 
46034
      this.itemId = itemId;
-
 
46035
      setItemIdIsSet(true);
-
 
46036
    }
-
 
46037
 
-
 
46038
    public void unsetItemId() {
-
 
46039
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
46040
    }
-
 
46041
 
-
 
46042
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
46043
    public boolean isSetItemId() {
-
 
46044
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
46045
    }
-
 
46046
 
-
 
46047
    public void setItemIdIsSet(boolean value) {
-
 
46048
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
46049
    }
-
 
46050
 
-
 
46051
    public int getPurchaseIdsSize() {
-
 
46052
      return (this.purchaseIds == null) ? 0 : this.purchaseIds.size();
-
 
46053
    }
-
 
46054
 
-
 
46055
    public java.util.Iterator<Long> getPurchaseIdsIterator() {
-
 
46056
      return (this.purchaseIds == null) ? null : this.purchaseIds.iterator();
-
 
46057
    }
-
 
46058
 
-
 
46059
    public void addToPurchaseIds(long elem) {
-
 
46060
      if (this.purchaseIds == null) {
-
 
46061
        this.purchaseIds = new ArrayList<Long>();
-
 
46062
      }
-
 
46063
      this.purchaseIds.add(elem);
-
 
46064
    }
-
 
46065
 
-
 
46066
    public List<Long> getPurchaseIds() {
-
 
46067
      return this.purchaseIds;
-
 
46068
    }
-
 
46069
 
-
 
46070
    public void setPurchaseIds(List<Long> purchaseIds) {
-
 
46071
      this.purchaseIds = purchaseIds;
-
 
46072
    }
-
 
46073
 
-
 
46074
    public void unsetPurchaseIds() {
-
 
46075
      this.purchaseIds = null;
-
 
46076
    }
-
 
46077
 
-
 
46078
    /** Returns true if field purchaseIds is set (has been assigned a value) and false otherwise */
-
 
46079
    public boolean isSetPurchaseIds() {
-
 
46080
      return this.purchaseIds != null;
-
 
46081
    }
-
 
46082
 
-
 
46083
    public void setPurchaseIdsIsSet(boolean value) {
-
 
46084
      if (!value) {
-
 
46085
        this.purchaseIds = null;
-
 
46086
      }
-
 
46087
    }
-
 
46088
 
-
 
46089
    public void setFieldValue(_Fields field, Object value) {
-
 
46090
      switch (field) {
-
 
46091
      case ITEM_ID:
-
 
46092
        if (value == null) {
-
 
46093
          unsetItemId();
-
 
46094
        } else {
-
 
46095
          setItemId((Long)value);
-
 
46096
        }
-
 
46097
        break;
-
 
46098
 
-
 
46099
      case PURCHASE_IDS:
-
 
46100
        if (value == null) {
-
 
46101
          unsetPurchaseIds();
-
 
46102
        } else {
-
 
46103
          setPurchaseIds((List<Long>)value);
-
 
46104
        }
-
 
46105
        break;
-
 
46106
 
-
 
46107
      }
-
 
46108
    }
-
 
46109
 
-
 
46110
    public Object getFieldValue(_Fields field) {
-
 
46111
      switch (field) {
-
 
46112
      case ITEM_ID:
-
 
46113
        return Long.valueOf(getItemId());
-
 
46114
 
-
 
46115
      case PURCHASE_IDS:
-
 
46116
        return getPurchaseIds();
-
 
46117
 
-
 
46118
      }
-
 
46119
      throw new IllegalStateException();
-
 
46120
    }
-
 
46121
 
-
 
46122
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46123
    public boolean isSet(_Fields field) {
-
 
46124
      if (field == null) {
-
 
46125
        throw new IllegalArgumentException();
-
 
46126
      }
-
 
46127
 
-
 
46128
      switch (field) {
-
 
46129
      case ITEM_ID:
-
 
46130
        return isSetItemId();
-
 
46131
      case PURCHASE_IDS:
-
 
46132
        return isSetPurchaseIds();
-
 
46133
      }
-
 
46134
      throw new IllegalStateException();
-
 
46135
    }
-
 
46136
 
-
 
46137
    @Override
-
 
46138
    public boolean equals(Object that) {
-
 
46139
      if (that == null)
-
 
46140
        return false;
-
 
46141
      if (that instanceof getInventoryItemScannedInForPO_args)
-
 
46142
        return this.equals((getInventoryItemScannedInForPO_args)that);
-
 
46143
      return false;
-
 
46144
    }
-
 
46145
 
-
 
46146
    public boolean equals(getInventoryItemScannedInForPO_args that) {
-
 
46147
      if (that == null)
-
 
46148
        return false;
-
 
46149
 
-
 
46150
      boolean this_present_itemId = true;
-
 
46151
      boolean that_present_itemId = true;
-
 
46152
      if (this_present_itemId || that_present_itemId) {
-
 
46153
        if (!(this_present_itemId && that_present_itemId))
-
 
46154
          return false;
-
 
46155
        if (this.itemId != that.itemId)
-
 
46156
          return false;
-
 
46157
      }
-
 
46158
 
-
 
46159
      boolean this_present_purchaseIds = true && this.isSetPurchaseIds();
-
 
46160
      boolean that_present_purchaseIds = true && that.isSetPurchaseIds();
-
 
46161
      if (this_present_purchaseIds || that_present_purchaseIds) {
-
 
46162
        if (!(this_present_purchaseIds && that_present_purchaseIds))
-
 
46163
          return false;
-
 
46164
        if (!this.purchaseIds.equals(that.purchaseIds))
-
 
46165
          return false;
-
 
46166
      }
-
 
46167
 
-
 
46168
      return true;
-
 
46169
    }
-
 
46170
 
-
 
46171
    @Override
-
 
46172
    public int hashCode() {
-
 
46173
      return 0;
-
 
46174
    }
-
 
46175
 
-
 
46176
    public int compareTo(getInventoryItemScannedInForPO_args other) {
-
 
46177
      if (!getClass().equals(other.getClass())) {
-
 
46178
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46179
      }
-
 
46180
 
-
 
46181
      int lastComparison = 0;
-
 
46182
      getInventoryItemScannedInForPO_args typedOther = (getInventoryItemScannedInForPO_args)other;
-
 
46183
 
-
 
46184
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
46185
      if (lastComparison != 0) {
-
 
46186
        return lastComparison;
-
 
46187
      }
-
 
46188
      if (isSetItemId()) {
-
 
46189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
46190
        if (lastComparison != 0) {
-
 
46191
          return lastComparison;
-
 
46192
        }
-
 
46193
      }
-
 
46194
      lastComparison = Boolean.valueOf(isSetPurchaseIds()).compareTo(typedOther.isSetPurchaseIds());
-
 
46195
      if (lastComparison != 0) {
-
 
46196
        return lastComparison;
-
 
46197
      }
-
 
46198
      if (isSetPurchaseIds()) {
-
 
46199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseIds, typedOther.purchaseIds);
-
 
46200
        if (lastComparison != 0) {
-
 
46201
          return lastComparison;
-
 
46202
        }
-
 
46203
      }
-
 
46204
      return 0;
-
 
46205
    }
-
 
46206
 
-
 
46207
    public _Fields fieldForId(int fieldId) {
-
 
46208
      return _Fields.findByThriftId(fieldId);
-
 
46209
    }
-
 
46210
 
-
 
46211
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46212
      org.apache.thrift.protocol.TField field;
-
 
46213
      iprot.readStructBegin();
-
 
46214
      while (true)
-
 
46215
      {
-
 
46216
        field = iprot.readFieldBegin();
-
 
46217
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46218
          break;
-
 
46219
        }
-
 
46220
        switch (field.id) {
-
 
46221
          case 1: // ITEM_ID
-
 
46222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46223
              this.itemId = iprot.readI64();
-
 
46224
              setItemIdIsSet(true);
-
 
46225
            } else { 
-
 
46226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46227
            }
-
 
46228
            break;
-
 
46229
          case 2: // PURCHASE_IDS
-
 
46230
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
46231
              {
-
 
46232
                org.apache.thrift.protocol.TList _list129 = iprot.readListBegin();
-
 
46233
                this.purchaseIds = new ArrayList<Long>(_list129.size);
-
 
46234
                for (int _i130 = 0; _i130 < _list129.size; ++_i130)
-
 
46235
                {
-
 
46236
                  long _elem131; // required
-
 
46237
                  _elem131 = iprot.readI64();
-
 
46238
                  this.purchaseIds.add(_elem131);
-
 
46239
                }
-
 
46240
                iprot.readListEnd();
-
 
46241
              }
-
 
46242
            } else { 
-
 
46243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46244
            }
-
 
46245
            break;
-
 
46246
          default:
-
 
46247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46248
        }
-
 
46249
        iprot.readFieldEnd();
-
 
46250
      }
-
 
46251
      iprot.readStructEnd();
-
 
46252
      validate();
-
 
46253
    }
-
 
46254
 
-
 
46255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46256
      validate();
-
 
46257
 
-
 
46258
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46259
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
46260
      oprot.writeI64(this.itemId);
-
 
46261
      oprot.writeFieldEnd();
-
 
46262
      if (this.purchaseIds != null) {
-
 
46263
        oprot.writeFieldBegin(PURCHASE_IDS_FIELD_DESC);
-
 
46264
        {
-
 
46265
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.purchaseIds.size()));
-
 
46266
          for (long _iter132 : this.purchaseIds)
-
 
46267
          {
-
 
46268
            oprot.writeI64(_iter132);
-
 
46269
          }
-
 
46270
          oprot.writeListEnd();
-
 
46271
        }
-
 
46272
        oprot.writeFieldEnd();
-
 
46273
      }
-
 
46274
      oprot.writeFieldStop();
-
 
46275
      oprot.writeStructEnd();
-
 
46276
    }
-
 
46277
 
-
 
46278
    @Override
-
 
46279
    public String toString() {
-
 
46280
      StringBuilder sb = new StringBuilder("getInventoryItemScannedInForPO_args(");
-
 
46281
      boolean first = true;
-
 
46282
 
-
 
46283
      sb.append("itemId:");
-
 
46284
      sb.append(this.itemId);
-
 
46285
      first = false;
-
 
46286
      if (!first) sb.append(", ");
-
 
46287
      sb.append("purchaseIds:");
-
 
46288
      if (this.purchaseIds == null) {
-
 
46289
        sb.append("null");
-
 
46290
      } else {
-
 
46291
        sb.append(this.purchaseIds);
-
 
46292
      }
-
 
46293
      first = false;
-
 
46294
      sb.append(")");
-
 
46295
      return sb.toString();
-
 
46296
    }
-
 
46297
 
-
 
46298
    public void validate() throws org.apache.thrift.TException {
-
 
46299
      // check for required fields
-
 
46300
    }
-
 
46301
 
-
 
46302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46303
      try {
-
 
46304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46305
      } catch (org.apache.thrift.TException te) {
-
 
46306
        throw new java.io.IOException(te);
-
 
46307
      }
-
 
46308
    }
-
 
46309
 
-
 
46310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46311
      try {
-
 
46312
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
46313
        __isset_bit_vector = new BitSet(1);
-
 
46314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46315
      } catch (org.apache.thrift.TException te) {
-
 
46316
        throw new java.io.IOException(te);
-
 
46317
      }
-
 
46318
    }
-
 
46319
 
-
 
46320
  }
-
 
46321
 
-
 
46322
  public static class getInventoryItemScannedInForPO_result implements org.apache.thrift.TBase<getInventoryItemScannedInForPO_result, getInventoryItemScannedInForPO_result._Fields>, java.io.Serializable, Cloneable   {
-
 
46323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemScannedInForPO_result");
-
 
46324
 
-
 
46325
    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);
-
 
46326
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
46327
 
-
 
46328
    private List<InventoryItem> success; // required
-
 
46329
    private WarehouseServiceException wex; // required
-
 
46330
 
-
 
46331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46333
      SUCCESS((short)0, "success"),
-
 
46334
      WEX((short)1, "wex");
-
 
46335
 
-
 
46336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46337
 
-
 
46338
      static {
-
 
46339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46340
          byName.put(field.getFieldName(), field);
-
 
46341
        }
-
 
46342
      }
-
 
46343
 
-
 
46344
      /**
-
 
46345
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46346
       */
-
 
46347
      public static _Fields findByThriftId(int fieldId) {
-
 
46348
        switch(fieldId) {
-
 
46349
          case 0: // SUCCESS
-
 
46350
            return SUCCESS;
-
 
46351
          case 1: // WEX
-
 
46352
            return WEX;
-
 
46353
          default:
-
 
46354
            return null;
-
 
46355
        }
-
 
46356
      }
-
 
46357
 
-
 
46358
      /**
-
 
46359
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46360
       * if it is not found.
-
 
46361
       */
-
 
46362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46363
        _Fields fields = findByThriftId(fieldId);
-
 
46364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46365
        return fields;
-
 
46366
      }
-
 
46367
 
-
 
46368
      /**
-
 
46369
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46370
       */
-
 
46371
      public static _Fields findByName(String name) {
-
 
46372
        return byName.get(name);
-
 
46373
      }
-
 
46374
 
-
 
46375
      private final short _thriftId;
-
 
46376
      private final String _fieldName;
-
 
46377
 
-
 
46378
      _Fields(short thriftId, String fieldName) {
-
 
46379
        _thriftId = thriftId;
-
 
46380
        _fieldName = fieldName;
-
 
46381
      }
-
 
46382
 
-
 
46383
      public short getThriftFieldId() {
-
 
46384
        return _thriftId;
-
 
46385
      }
-
 
46386
 
-
 
46387
      public String getFieldName() {
-
 
46388
        return _fieldName;
-
 
46389
      }
-
 
46390
    }
-
 
46391
 
-
 
46392
    // isset id assignments
-
 
46393
 
-
 
46394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46395
    static {
-
 
46396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46397
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46398
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
46399
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
46400
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46401
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
46402
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46403
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemScannedInForPO_result.class, metaDataMap);
-
 
46404
    }
-
 
46405
 
-
 
46406
    public getInventoryItemScannedInForPO_result() {
-
 
46407
    }
-
 
46408
 
-
 
46409
    public getInventoryItemScannedInForPO_result(
-
 
46410
      List<InventoryItem> success,
-
 
46411
      WarehouseServiceException wex)
-
 
46412
    {
-
 
46413
      this();
-
 
46414
      this.success = success;
-
 
46415
      this.wex = wex;
-
 
46416
    }
-
 
46417
 
-
 
46418
    /**
-
 
46419
     * Performs a deep copy on <i>other</i>.
-
 
46420
     */
-
 
46421
    public getInventoryItemScannedInForPO_result(getInventoryItemScannedInForPO_result other) {
-
 
46422
      if (other.isSetSuccess()) {
-
 
46423
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
46424
        for (InventoryItem other_element : other.success) {
-
 
46425
          __this__success.add(new InventoryItem(other_element));
-
 
46426
        }
-
 
46427
        this.success = __this__success;
-
 
46428
      }
-
 
46429
      if (other.isSetWex()) {
-
 
46430
        this.wex = new WarehouseServiceException(other.wex);
-
 
46431
      }
-
 
46432
    }
-
 
46433
 
-
 
46434
    public getInventoryItemScannedInForPO_result deepCopy() {
-
 
46435
      return new getInventoryItemScannedInForPO_result(this);
-
 
46436
    }
-
 
46437
 
-
 
46438
    @Override
-
 
46439
    public void clear() {
-
 
46440
      this.success = null;
-
 
46441
      this.wex = null;
-
 
46442
    }
-
 
46443
 
-
 
46444
    public int getSuccessSize() {
-
 
46445
      return (this.success == null) ? 0 : this.success.size();
-
 
46446
    }
-
 
46447
 
-
 
46448
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
46449
      return (this.success == null) ? null : this.success.iterator();
-
 
46450
    }
-
 
46451
 
-
 
46452
    public void addToSuccess(InventoryItem elem) {
-
 
46453
      if (this.success == null) {
-
 
46454
        this.success = new ArrayList<InventoryItem>();
-
 
46455
      }
-
 
46456
      this.success.add(elem);
-
 
46457
    }
-
 
46458
 
-
 
46459
    public List<InventoryItem> getSuccess() {
-
 
46460
      return this.success;
-
 
46461
    }
-
 
46462
 
-
 
46463
    public void setSuccess(List<InventoryItem> success) {
-
 
46464
      this.success = success;
-
 
46465
    }
-
 
46466
 
-
 
46467
    public void unsetSuccess() {
-
 
46468
      this.success = null;
-
 
46469
    }
-
 
46470
 
-
 
46471
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
46472
    public boolean isSetSuccess() {
-
 
46473
      return this.success != null;
-
 
46474
    }
-
 
46475
 
-
 
46476
    public void setSuccessIsSet(boolean value) {
-
 
46477
      if (!value) {
-
 
46478
        this.success = null;
-
 
46479
      }
-
 
46480
    }
-
 
46481
 
-
 
46482
    public WarehouseServiceException getWex() {
-
 
46483
      return this.wex;
-
 
46484
    }
-
 
46485
 
-
 
46486
    public void setWex(WarehouseServiceException wex) {
-
 
46487
      this.wex = wex;
-
 
46488
    }
-
 
46489
 
-
 
46490
    public void unsetWex() {
-
 
46491
      this.wex = null;
-
 
46492
    }
-
 
46493
 
-
 
46494
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
46495
    public boolean isSetWex() {
-
 
46496
      return this.wex != null;
-
 
46497
    }
-
 
46498
 
-
 
46499
    public void setWexIsSet(boolean value) {
-
 
46500
      if (!value) {
-
 
46501
        this.wex = null;
-
 
46502
      }
-
 
46503
    }
-
 
46504
 
-
 
46505
    public void setFieldValue(_Fields field, Object value) {
-
 
46506
      switch (field) {
-
 
46507
      case SUCCESS:
-
 
46508
        if (value == null) {
-
 
46509
          unsetSuccess();
-
 
46510
        } else {
-
 
46511
          setSuccess((List<InventoryItem>)value);
-
 
46512
        }
-
 
46513
        break;
-
 
46514
 
-
 
46515
      case WEX:
-
 
46516
        if (value == null) {
-
 
46517
          unsetWex();
-
 
46518
        } else {
-
 
46519
          setWex((WarehouseServiceException)value);
-
 
46520
        }
-
 
46521
        break;
-
 
46522
 
-
 
46523
      }
-
 
46524
    }
-
 
46525
 
-
 
46526
    public Object getFieldValue(_Fields field) {
-
 
46527
      switch (field) {
-
 
46528
      case SUCCESS:
-
 
46529
        return getSuccess();
-
 
46530
 
-
 
46531
      case WEX:
-
 
46532
        return getWex();
-
 
46533
 
-
 
46534
      }
-
 
46535
      throw new IllegalStateException();
-
 
46536
    }
-
 
46537
 
-
 
46538
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46539
    public boolean isSet(_Fields field) {
-
 
46540
      if (field == null) {
-
 
46541
        throw new IllegalArgumentException();
-
 
46542
      }
-
 
46543
 
-
 
46544
      switch (field) {
-
 
46545
      case SUCCESS:
-
 
46546
        return isSetSuccess();
-
 
46547
      case WEX:
-
 
46548
        return isSetWex();
-
 
46549
      }
-
 
46550
      throw new IllegalStateException();
-
 
46551
    }
-
 
46552
 
-
 
46553
    @Override
-
 
46554
    public boolean equals(Object that) {
-
 
46555
      if (that == null)
-
 
46556
        return false;
-
 
46557
      if (that instanceof getInventoryItemScannedInForPO_result)
-
 
46558
        return this.equals((getInventoryItemScannedInForPO_result)that);
-
 
46559
      return false;
-
 
46560
    }
-
 
46561
 
-
 
46562
    public boolean equals(getInventoryItemScannedInForPO_result that) {
-
 
46563
      if (that == null)
-
 
46564
        return false;
-
 
46565
 
-
 
46566
      boolean this_present_success = true && this.isSetSuccess();
-
 
46567
      boolean that_present_success = true && that.isSetSuccess();
-
 
46568
      if (this_present_success || that_present_success) {
-
 
46569
        if (!(this_present_success && that_present_success))
-
 
46570
          return false;
-
 
46571
        if (!this.success.equals(that.success))
-
 
46572
          return false;
-
 
46573
      }
-
 
46574
 
-
 
46575
      boolean this_present_wex = true && this.isSetWex();
-
 
46576
      boolean that_present_wex = true && that.isSetWex();
-
 
46577
      if (this_present_wex || that_present_wex) {
-
 
46578
        if (!(this_present_wex && that_present_wex))
-
 
46579
          return false;
-
 
46580
        if (!this.wex.equals(that.wex))
-
 
46581
          return false;
-
 
46582
      }
-
 
46583
 
-
 
46584
      return true;
-
 
46585
    }
-
 
46586
 
-
 
46587
    @Override
-
 
46588
    public int hashCode() {
-
 
46589
      return 0;
-
 
46590
    }
-
 
46591
 
-
 
46592
    public int compareTo(getInventoryItemScannedInForPO_result other) {
-
 
46593
      if (!getClass().equals(other.getClass())) {
-
 
46594
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46595
      }
-
 
46596
 
-
 
46597
      int lastComparison = 0;
-
 
46598
      getInventoryItemScannedInForPO_result typedOther = (getInventoryItemScannedInForPO_result)other;
-
 
46599
 
-
 
46600
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
46601
      if (lastComparison != 0) {
-
 
46602
        return lastComparison;
-
 
46603
      }
-
 
46604
      if (isSetSuccess()) {
-
 
46605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
46606
        if (lastComparison != 0) {
-
 
46607
          return lastComparison;
-
 
46608
        }
-
 
46609
      }
-
 
46610
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
46611
      if (lastComparison != 0) {
-
 
46612
        return lastComparison;
-
 
46613
      }
-
 
46614
      if (isSetWex()) {
-
 
46615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
46616
        if (lastComparison != 0) {
-
 
46617
          return lastComparison;
-
 
46618
        }
-
 
46619
      }
-
 
46620
      return 0;
-
 
46621
    }
-
 
46622
 
-
 
46623
    public _Fields fieldForId(int fieldId) {
-
 
46624
      return _Fields.findByThriftId(fieldId);
-
 
46625
    }
-
 
46626
 
-
 
46627
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46628
      org.apache.thrift.protocol.TField field;
-
 
46629
      iprot.readStructBegin();
-
 
46630
      while (true)
-
 
46631
      {
-
 
46632
        field = iprot.readFieldBegin();
-
 
46633
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46634
          break;
-
 
46635
        }
-
 
46636
        switch (field.id) {
-
 
46637
          case 0: // SUCCESS
-
 
46638
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
46639
              {
-
 
46640
                org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
-
 
46641
                this.success = new ArrayList<InventoryItem>(_list133.size);
-
 
46642
                for (int _i134 = 0; _i134 < _list133.size; ++_i134)
-
 
46643
                {
-
 
46644
                  InventoryItem _elem135; // required
-
 
46645
                  _elem135 = new InventoryItem();
-
 
46646
                  _elem135.read(iprot);
-
 
46647
                  this.success.add(_elem135);
-
 
46648
                }
-
 
46649
                iprot.readListEnd();
-
 
46650
              }
-
 
46651
            } else { 
-
 
46652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46653
            }
-
 
46654
            break;
-
 
46655
          case 1: // WEX
-
 
46656
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46657
              this.wex = new WarehouseServiceException();
-
 
46658
              this.wex.read(iprot);
-
 
46659
            } else { 
-
 
46660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46661
            }
-
 
46662
            break;
-
 
46663
          default:
-
 
46664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46665
        }
-
 
46666
        iprot.readFieldEnd();
-
 
46667
      }
-
 
46668
      iprot.readStructEnd();
-
 
46669
      validate();
-
 
46670
    }
-
 
46671
 
-
 
46672
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46673
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46674
 
-
 
46675
      if (this.isSetSuccess()) {
-
 
46676
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46677
        {
-
 
46678
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
46679
          for (InventoryItem _iter136 : this.success)
-
 
46680
          {
-
 
46681
            _iter136.write(oprot);
-
 
46682
          }
-
 
46683
          oprot.writeListEnd();
-
 
46684
        }
-
 
46685
        oprot.writeFieldEnd();
-
 
46686
      } else if (this.isSetWex()) {
-
 
46687
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
46688
        this.wex.write(oprot);
-
 
46689
        oprot.writeFieldEnd();
-
 
46690
      }
-
 
46691
      oprot.writeFieldStop();
-
 
46692
      oprot.writeStructEnd();
-
 
46693
    }
-
 
46694
 
-
 
46695
    @Override
-
 
46696
    public String toString() {
-
 
46697
      StringBuilder sb = new StringBuilder("getInventoryItemScannedInForPO_result(");
-
 
46698
      boolean first = true;
-
 
46699
 
-
 
46700
      sb.append("success:");
-
 
46701
      if (this.success == null) {
-
 
46702
        sb.append("null");
-
 
46703
      } else {
-
 
46704
        sb.append(this.success);
-
 
46705
      }
-
 
46706
      first = false;
-
 
46707
      if (!first) sb.append(", ");
-
 
46708
      sb.append("wex:");
-
 
46709
      if (this.wex == null) {
-
 
46710
        sb.append("null");
-
 
46711
      } else {
-
 
46712
        sb.append(this.wex);
-
 
46713
      }
-
 
46714
      first = false;
-
 
46715
      sb.append(")");
-
 
46716
      return sb.toString();
-
 
46717
    }
-
 
46718
 
-
 
46719
    public void validate() throws org.apache.thrift.TException {
-
 
46720
      // check for required fields
-
 
46721
    }
-
 
46722
 
-
 
46723
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46724
      try {
-
 
46725
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46726
      } catch (org.apache.thrift.TException te) {
-
 
46727
        throw new java.io.IOException(te);
-
 
46728
      }
-
 
46729
    }
-
 
46730
 
-
 
46731
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46732
      try {
-
 
46733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46734
      } catch (org.apache.thrift.TException te) {
-
 
46735
        throw new java.io.IOException(te);
-
 
46736
      }
-
 
46737
    }
-
 
46738
 
-
 
46739
  }
-
 
46740
 
-
 
46741
  public static class getAmazonTransferredSkuDetails_args implements org.apache.thrift.TBase<getAmazonTransferredSkuDetails_args, getAmazonTransferredSkuDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
46742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonTransferredSkuDetails_args");
-
 
46743
 
-
 
46744
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
46745
 
-
 
46746
    private List<Long> itemIds; // required
-
 
46747
 
-
 
46748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46750
      ITEM_IDS((short)1, "itemIds");
-
 
46751
 
-
 
46752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46753
 
-
 
46754
      static {
-
 
46755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46756
          byName.put(field.getFieldName(), field);
-
 
46757
        }
-
 
46758
      }
-
 
46759
 
-
 
46760
      /**
-
 
46761
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46762
       */
-
 
46763
      public static _Fields findByThriftId(int fieldId) {
-
 
46764
        switch(fieldId) {
-
 
46765
          case 1: // ITEM_IDS
-
 
46766
            return ITEM_IDS;
-
 
46767
          default:
-
 
46768
            return null;
-
 
46769
        }
-
 
46770
      }
-
 
46771
 
-
 
46772
      /**
-
 
46773
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46774
       * if it is not found.
-
 
46775
       */
-
 
46776
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46777
        _Fields fields = findByThriftId(fieldId);
-
 
46778
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46779
        return fields;
-
 
46780
      }
-
 
46781
 
-
 
46782
      /**
-
 
46783
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46784
       */
-
 
46785
      public static _Fields findByName(String name) {
-
 
46786
        return byName.get(name);
-
 
46787
      }
-
 
46788
 
-
 
46789
      private final short _thriftId;
-
 
46790
      private final String _fieldName;
-
 
46791
 
-
 
46792
      _Fields(short thriftId, String fieldName) {
-
 
46793
        _thriftId = thriftId;
-
 
46794
        _fieldName = fieldName;
-
 
46795
      }
-
 
46796
 
-
 
46797
      public short getThriftFieldId() {
-
 
46798
        return _thriftId;
-
 
46799
      }
-
 
46800
 
-
 
46801
      public String getFieldName() {
-
 
46802
        return _fieldName;
-
 
46803
      }
-
 
46804
    }
-
 
46805
 
-
 
46806
    // isset id assignments
-
 
46807
 
-
 
46808
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46809
    static {
-
 
46810
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46811
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46812
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
46813
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
46814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonTransferredSkuDetails_args.class, metaDataMap);
-
 
46816
    }
-
 
46817
 
-
 
46818
    public getAmazonTransferredSkuDetails_args() {
-
 
46819
    }
-
 
46820
 
-
 
46821
    public getAmazonTransferredSkuDetails_args(
-
 
46822
      List<Long> itemIds)
-
 
46823
    {
-
 
46824
      this();
-
 
46825
      this.itemIds = itemIds;
-
 
46826
    }
-
 
46827
 
-
 
46828
    /**
-
 
46829
     * Performs a deep copy on <i>other</i>.
-
 
46830
     */
-
 
46831
    public getAmazonTransferredSkuDetails_args(getAmazonTransferredSkuDetails_args other) {
-
 
46832
      if (other.isSetItemIds()) {
-
 
46833
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
46834
        for (Long other_element : other.itemIds) {
-
 
46835
          __this__itemIds.add(other_element);
-
 
46836
        }
-
 
46837
        this.itemIds = __this__itemIds;
-
 
46838
      }
-
 
46839
    }
-
 
46840
 
-
 
46841
    public getAmazonTransferredSkuDetails_args deepCopy() {
-
 
46842
      return new getAmazonTransferredSkuDetails_args(this);
-
 
46843
    }
-
 
46844
 
-
 
46845
    @Override
-
 
46846
    public void clear() {
-
 
46847
      this.itemIds = null;
-
 
46848
    }
-
 
46849
 
-
 
46850
    public int getItemIdsSize() {
-
 
46851
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
46852
    }
-
 
46853
 
-
 
46854
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
46855
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
46856
    }
-
 
46857
 
-
 
46858
    public void addToItemIds(long elem) {
-
 
46859
      if (this.itemIds == null) {
-
 
46860
        this.itemIds = new ArrayList<Long>();
-
 
46861
      }
-
 
46862
      this.itemIds.add(elem);
-
 
46863
    }
-
 
46864
 
-
 
46865
    public List<Long> getItemIds() {
-
 
46866
      return this.itemIds;
-
 
46867
    }
-
 
46868
 
-
 
46869
    public void setItemIds(List<Long> itemIds) {
-
 
46870
      this.itemIds = itemIds;
-
 
46871
    }
-
 
46872
 
-
 
46873
    public void unsetItemIds() {
-
 
46874
      this.itemIds = null;
-
 
46875
    }
-
 
46876
 
-
 
46877
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
46878
    public boolean isSetItemIds() {
-
 
46879
      return this.itemIds != null;
-
 
46880
    }
-
 
46881
 
-
 
46882
    public void setItemIdsIsSet(boolean value) {
-
 
46883
      if (!value) {
-
 
46884
        this.itemIds = null;
-
 
46885
      }
-
 
46886
    }
-
 
46887
 
-
 
46888
    public void setFieldValue(_Fields field, Object value) {
-
 
46889
      switch (field) {
-
 
46890
      case ITEM_IDS:
-
 
46891
        if (value == null) {
-
 
46892
          unsetItemIds();
-
 
46893
        } else {
-
 
46894
          setItemIds((List<Long>)value);
-
 
46895
        }
-
 
46896
        break;
-
 
46897
 
-
 
46898
      }
-
 
46899
    }
-
 
46900
 
-
 
46901
    public Object getFieldValue(_Fields field) {
-
 
46902
      switch (field) {
-
 
46903
      case ITEM_IDS:
-
 
46904
        return getItemIds();
-
 
46905
 
-
 
46906
      }
-
 
46907
      throw new IllegalStateException();
-
 
46908
    }
-
 
46909
 
-
 
46910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46911
    public boolean isSet(_Fields field) {
-
 
46912
      if (field == null) {
-
 
46913
        throw new IllegalArgumentException();
-
 
46914
      }
-
 
46915
 
-
 
46916
      switch (field) {
-
 
46917
      case ITEM_IDS:
-
 
46918
        return isSetItemIds();
-
 
46919
      }
-
 
46920
      throw new IllegalStateException();
-
 
46921
    }
-
 
46922
 
-
 
46923
    @Override
-
 
46924
    public boolean equals(Object that) {
-
 
46925
      if (that == null)
-
 
46926
        return false;
-
 
46927
      if (that instanceof getAmazonTransferredSkuDetails_args)
-
 
46928
        return this.equals((getAmazonTransferredSkuDetails_args)that);
-
 
46929
      return false;
-
 
46930
    }
-
 
46931
 
-
 
46932
    public boolean equals(getAmazonTransferredSkuDetails_args that) {
-
 
46933
      if (that == null)
-
 
46934
        return false;
-
 
46935
 
-
 
46936
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
46937
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
46938
      if (this_present_itemIds || that_present_itemIds) {
-
 
46939
        if (!(this_present_itemIds && that_present_itemIds))
-
 
46940
          return false;
-
 
46941
        if (!this.itemIds.equals(that.itemIds))
-
 
46942
          return false;
-
 
46943
      }
-
 
46944
 
-
 
46945
      return true;
-
 
46946
    }
-
 
46947
 
-
 
46948
    @Override
-
 
46949
    public int hashCode() {
-
 
46950
      return 0;
-
 
46951
    }
-
 
46952
 
-
 
46953
    public int compareTo(getAmazonTransferredSkuDetails_args other) {
-
 
46954
      if (!getClass().equals(other.getClass())) {
-
 
46955
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46956
      }
-
 
46957
 
-
 
46958
      int lastComparison = 0;
-
 
46959
      getAmazonTransferredSkuDetails_args typedOther = (getAmazonTransferredSkuDetails_args)other;
-
 
46960
 
-
 
46961
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
46962
      if (lastComparison != 0) {
-
 
46963
        return lastComparison;
-
 
46964
      }
-
 
46965
      if (isSetItemIds()) {
-
 
46966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
46967
        if (lastComparison != 0) {
-
 
46968
          return lastComparison;
-
 
46969
        }
-
 
46970
      }
-
 
46971
      return 0;
-
 
46972
    }
-
 
46973
 
-
 
46974
    public _Fields fieldForId(int fieldId) {
-
 
46975
      return _Fields.findByThriftId(fieldId);
-
 
46976
    }
-
 
46977
 
-
 
46978
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46979
      org.apache.thrift.protocol.TField field;
-
 
46980
      iprot.readStructBegin();
-
 
46981
      while (true)
-
 
46982
      {
-
 
46983
        field = iprot.readFieldBegin();
-
 
46984
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46985
          break;
-
 
46986
        }
-
 
46987
        switch (field.id) {
-
 
46988
          case 1: // ITEM_IDS
-
 
46989
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
46990
              {
-
 
46991
                org.apache.thrift.protocol.TList _list137 = iprot.readListBegin();
-
 
46992
                this.itemIds = new ArrayList<Long>(_list137.size);
-
 
46993
                for (int _i138 = 0; _i138 < _list137.size; ++_i138)
-
 
46994
                {
-
 
46995
                  long _elem139; // required
-
 
46996
                  _elem139 = iprot.readI64();
-
 
46997
                  this.itemIds.add(_elem139);
-
 
46998
                }
-
 
46999
                iprot.readListEnd();
-
 
47000
              }
-
 
47001
            } else { 
-
 
47002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47003
            }
-
 
47004
            break;
-
 
47005
          default:
-
 
47006
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47007
        }
-
 
47008
        iprot.readFieldEnd();
-
 
47009
      }
-
 
47010
      iprot.readStructEnd();
-
 
47011
      validate();
-
 
47012
    }
-
 
47013
 
-
 
47014
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47015
      validate();
-
 
47016
 
-
 
47017
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47018
      if (this.itemIds != null) {
-
 
47019
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
47020
        {
-
 
47021
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
47022
          for (long _iter140 : this.itemIds)
-
 
47023
          {
-
 
47024
            oprot.writeI64(_iter140);
-
 
47025
          }
-
 
47026
          oprot.writeListEnd();
-
 
47027
        }
-
 
47028
        oprot.writeFieldEnd();
-
 
47029
      }
-
 
47030
      oprot.writeFieldStop();
-
 
47031
      oprot.writeStructEnd();
-
 
47032
    }
-
 
47033
 
-
 
47034
    @Override
-
 
47035
    public String toString() {
-
 
47036
      StringBuilder sb = new StringBuilder("getAmazonTransferredSkuDetails_args(");
-
 
47037
      boolean first = true;
-
 
47038
 
-
 
47039
      sb.append("itemIds:");
-
 
47040
      if (this.itemIds == null) {
-
 
47041
        sb.append("null");
-
 
47042
      } else {
-
 
47043
        sb.append(this.itemIds);
-
 
47044
      }
-
 
47045
      first = false;
-
 
47046
      sb.append(")");
-
 
47047
      return sb.toString();
-
 
47048
    }
-
 
47049
 
-
 
47050
    public void validate() throws org.apache.thrift.TException {
-
 
47051
      // check for required fields
-
 
47052
    }
-
 
47053
 
-
 
47054
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47055
      try {
-
 
47056
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47057
      } catch (org.apache.thrift.TException te) {
-
 
47058
        throw new java.io.IOException(te);
-
 
47059
      }
-
 
47060
    }
-
 
47061
 
-
 
47062
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47063
      try {
-
 
47064
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47065
      } catch (org.apache.thrift.TException te) {
-
 
47066
        throw new java.io.IOException(te);
-
 
47067
      }
-
 
47068
    }
-
 
47069
 
-
 
47070
  }
-
 
47071
 
-
 
47072
  public static class getAmazonTransferredSkuDetails_result implements org.apache.thrift.TBase<getAmazonTransferredSkuDetails_result, getAmazonTransferredSkuDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
47073
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonTransferredSkuDetails_result");
-
 
47074
 
-
 
47075
    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);
-
 
47076
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
47077
 
-
 
47078
    private List<AmazonTransferredSkuDetail> success; // required
-
 
47079
    private WarehouseServiceException wex; // required
-
 
47080
 
-
 
47081
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47082
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47083
      SUCCESS((short)0, "success"),
-
 
47084
      WEX((short)1, "wex");
-
 
47085
 
-
 
47086
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47087
 
-
 
47088
      static {
-
 
47089
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47090
          byName.put(field.getFieldName(), field);
-
 
47091
        }
-
 
47092
      }
-
 
47093
 
-
 
47094
      /**
-
 
47095
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47096
       */
-
 
47097
      public static _Fields findByThriftId(int fieldId) {
-
 
47098
        switch(fieldId) {
-
 
47099
          case 0: // SUCCESS
-
 
47100
            return SUCCESS;
-
 
47101
          case 1: // WEX
-
 
47102
            return WEX;
-
 
47103
          default:
-
 
47104
            return null;
-
 
47105
        }
-
 
47106
      }
-
 
47107
 
-
 
47108
      /**
-
 
47109
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47110
       * if it is not found.
-
 
47111
       */
-
 
47112
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47113
        _Fields fields = findByThriftId(fieldId);
-
 
47114
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47115
        return fields;
-
 
47116
      }
-
 
47117
 
-
 
47118
      /**
-
 
47119
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47120
       */
-
 
47121
      public static _Fields findByName(String name) {
-
 
47122
        return byName.get(name);
-
 
47123
      }
-
 
47124
 
-
 
47125
      private final short _thriftId;
-
 
47126
      private final String _fieldName;
-
 
47127
 
-
 
47128
      _Fields(short thriftId, String fieldName) {
-
 
47129
        _thriftId = thriftId;
-
 
47130
        _fieldName = fieldName;
-
 
47131
      }
-
 
47132
 
-
 
47133
      public short getThriftFieldId() {
-
 
47134
        return _thriftId;
-
 
47135
      }
-
 
47136
 
-
 
47137
      public String getFieldName() {
-
 
47138
        return _fieldName;
-
 
47139
      }
-
 
47140
    }
-
 
47141
 
-
 
47142
    // isset id assignments
-
 
47143
 
-
 
47144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47145
    static {
-
 
47146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47147
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47148
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
47149
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonTransferredSkuDetail.class))));
-
 
47150
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
47152
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47153
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonTransferredSkuDetails_result.class, metaDataMap);
-
 
47154
    }
-
 
47155
 
-
 
47156
    public getAmazonTransferredSkuDetails_result() {
-
 
47157
    }
-
 
47158
 
-
 
47159
    public getAmazonTransferredSkuDetails_result(
-
 
47160
      List<AmazonTransferredSkuDetail> success,
-
 
47161
      WarehouseServiceException wex)
-
 
47162
    {
-
 
47163
      this();
-
 
47164
      this.success = success;
-
 
47165
      this.wex = wex;
-
 
47166
    }
-
 
47167
 
-
 
47168
    /**
-
 
47169
     * Performs a deep copy on <i>other</i>.
-
 
47170
     */
-
 
47171
    public getAmazonTransferredSkuDetails_result(getAmazonTransferredSkuDetails_result other) {
-
 
47172
      if (other.isSetSuccess()) {
-
 
47173
        List<AmazonTransferredSkuDetail> __this__success = new ArrayList<AmazonTransferredSkuDetail>();
-
 
47174
        for (AmazonTransferredSkuDetail other_element : other.success) {
-
 
47175
          __this__success.add(new AmazonTransferredSkuDetail(other_element));
-
 
47176
        }
-
 
47177
        this.success = __this__success;
-
 
47178
      }
-
 
47179
      if (other.isSetWex()) {
-
 
47180
        this.wex = new WarehouseServiceException(other.wex);
-
 
47181
      }
-
 
47182
    }
-
 
47183
 
-
 
47184
    public getAmazonTransferredSkuDetails_result deepCopy() {
-
 
47185
      return new getAmazonTransferredSkuDetails_result(this);
-
 
47186
    }
-
 
47187
 
-
 
47188
    @Override
-
 
47189
    public void clear() {
-
 
47190
      this.success = null;
-
 
47191
      this.wex = null;
-
 
47192
    }
-
 
47193
 
-
 
47194
    public int getSuccessSize() {
-
 
47195
      return (this.success == null) ? 0 : this.success.size();
-
 
47196
    }
-
 
47197
 
-
 
47198
    public java.util.Iterator<AmazonTransferredSkuDetail> getSuccessIterator() {
-
 
47199
      return (this.success == null) ? null : this.success.iterator();
-
 
47200
    }
-
 
47201
 
-
 
47202
    public void addToSuccess(AmazonTransferredSkuDetail elem) {
-
 
47203
      if (this.success == null) {
-
 
47204
        this.success = new ArrayList<AmazonTransferredSkuDetail>();
-
 
47205
      }
-
 
47206
      this.success.add(elem);
-
 
47207
    }
-
 
47208
 
-
 
47209
    public List<AmazonTransferredSkuDetail> getSuccess() {
-
 
47210
      return this.success;
-
 
47211
    }
-
 
47212
 
-
 
47213
    public void setSuccess(List<AmazonTransferredSkuDetail> success) {
-
 
47214
      this.success = success;
-
 
47215
    }
-
 
47216
 
-
 
47217
    public void unsetSuccess() {
-
 
47218
      this.success = null;
-
 
47219
    }
-
 
47220
 
-
 
47221
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
47222
    public boolean isSetSuccess() {
-
 
47223
      return this.success != null;
-
 
47224
    }
-
 
47225
 
-
 
47226
    public void setSuccessIsSet(boolean value) {
-
 
47227
      if (!value) {
-
 
47228
        this.success = null;
-
 
47229
      }
-
 
47230
    }
-
 
47231
 
-
 
47232
    public WarehouseServiceException getWex() {
-
 
47233
      return this.wex;
-
 
47234
    }
-
 
47235
 
-
 
47236
    public void setWex(WarehouseServiceException wex) {
-
 
47237
      this.wex = wex;
-
 
47238
    }
-
 
47239
 
-
 
47240
    public void unsetWex() {
-
 
47241
      this.wex = null;
-
 
47242
    }
-
 
47243
 
-
 
47244
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
47245
    public boolean isSetWex() {
-
 
47246
      return this.wex != null;
-
 
47247
    }
-
 
47248
 
-
 
47249
    public void setWexIsSet(boolean value) {
-
 
47250
      if (!value) {
-
 
47251
        this.wex = null;
-
 
47252
      }
-
 
47253
    }
-
 
47254
 
-
 
47255
    public void setFieldValue(_Fields field, Object value) {
-
 
47256
      switch (field) {
-
 
47257
      case SUCCESS:
-
 
47258
        if (value == null) {
-
 
47259
          unsetSuccess();
-
 
47260
        } else {
-
 
47261
          setSuccess((List<AmazonTransferredSkuDetail>)value);
-
 
47262
        }
-
 
47263
        break;
-
 
47264
 
-
 
47265
      case WEX:
-
 
47266
        if (value == null) {
-
 
47267
          unsetWex();
-
 
47268
        } else {
-
 
47269
          setWex((WarehouseServiceException)value);
-
 
47270
        }
-
 
47271
        break;
-
 
47272
 
-
 
47273
      }
-
 
47274
    }
-
 
47275
 
-
 
47276
    public Object getFieldValue(_Fields field) {
-
 
47277
      switch (field) {
-
 
47278
      case SUCCESS:
-
 
47279
        return getSuccess();
-
 
47280
 
-
 
47281
      case WEX:
-
 
47282
        return getWex();
-
 
47283
 
-
 
47284
      }
-
 
47285
      throw new IllegalStateException();
-
 
47286
    }
-
 
47287
 
-
 
47288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47289
    public boolean isSet(_Fields field) {
-
 
47290
      if (field == null) {
-
 
47291
        throw new IllegalArgumentException();
-
 
47292
      }
-
 
47293
 
-
 
47294
      switch (field) {
-
 
47295
      case SUCCESS:
-
 
47296
        return isSetSuccess();
-
 
47297
      case WEX:
-
 
47298
        return isSetWex();
-
 
47299
      }
-
 
47300
      throw new IllegalStateException();
-
 
47301
    }
-
 
47302
 
-
 
47303
    @Override
-
 
47304
    public boolean equals(Object that) {
-
 
47305
      if (that == null)
-
 
47306
        return false;
-
 
47307
      if (that instanceof getAmazonTransferredSkuDetails_result)
-
 
47308
        return this.equals((getAmazonTransferredSkuDetails_result)that);
-
 
47309
      return false;
-
 
47310
    }
-
 
47311
 
-
 
47312
    public boolean equals(getAmazonTransferredSkuDetails_result that) {
-
 
47313
      if (that == null)
-
 
47314
        return false;
-
 
47315
 
-
 
47316
      boolean this_present_success = true && this.isSetSuccess();
-
 
47317
      boolean that_present_success = true && that.isSetSuccess();
-
 
47318
      if (this_present_success || that_present_success) {
-
 
47319
        if (!(this_present_success && that_present_success))
-
 
47320
          return false;
-
 
47321
        if (!this.success.equals(that.success))
-
 
47322
          return false;
-
 
47323
      }
-
 
47324
 
-
 
47325
      boolean this_present_wex = true && this.isSetWex();
-
 
47326
      boolean that_present_wex = true && that.isSetWex();
-
 
47327
      if (this_present_wex || that_present_wex) {
-
 
47328
        if (!(this_present_wex && that_present_wex))
-
 
47329
          return false;
-
 
47330
        if (!this.wex.equals(that.wex))
-
 
47331
          return false;
-
 
47332
      }
-
 
47333
 
-
 
47334
      return true;
-
 
47335
    }
-
 
47336
 
-
 
47337
    @Override
-
 
47338
    public int hashCode() {
-
 
47339
      return 0;
-
 
47340
    }
-
 
47341
 
-
 
47342
    public int compareTo(getAmazonTransferredSkuDetails_result other) {
-
 
47343
      if (!getClass().equals(other.getClass())) {
-
 
47344
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47345
      }
-
 
47346
 
-
 
47347
      int lastComparison = 0;
-
 
47348
      getAmazonTransferredSkuDetails_result typedOther = (getAmazonTransferredSkuDetails_result)other;
-
 
47349
 
-
 
47350
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
47351
      if (lastComparison != 0) {
-
 
47352
        return lastComparison;
-
 
47353
      }
-
 
47354
      if (isSetSuccess()) {
-
 
47355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
47356
        if (lastComparison != 0) {
-
 
47357
          return lastComparison;
-
 
47358
        }
-
 
47359
      }
-
 
47360
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
47361
      if (lastComparison != 0) {
-
 
47362
        return lastComparison;
-
 
47363
      }
-
 
47364
      if (isSetWex()) {
-
 
47365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
47366
        if (lastComparison != 0) {
-
 
47367
          return lastComparison;
-
 
47368
        }
-
 
47369
      }
-
 
47370
      return 0;
-
 
47371
    }
-
 
47372
 
-
 
47373
    public _Fields fieldForId(int fieldId) {
-
 
47374
      return _Fields.findByThriftId(fieldId);
-
 
47375
    }
-
 
47376
 
-
 
47377
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47378
      org.apache.thrift.protocol.TField field;
-
 
47379
      iprot.readStructBegin();
-
 
47380
      while (true)
-
 
47381
      {
-
 
47382
        field = iprot.readFieldBegin();
-
 
47383
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47384
          break;
-
 
47385
        }
-
 
47386
        switch (field.id) {
-
 
47387
          case 0: // SUCCESS
-
 
47388
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
47389
              {
-
 
47390
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
-
 
47391
                this.success = new ArrayList<AmazonTransferredSkuDetail>(_list141.size);
-
 
47392
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
-
 
47393
                {
-
 
47394
                  AmazonTransferredSkuDetail _elem143; // required
-
 
47395
                  _elem143 = new AmazonTransferredSkuDetail();
-
 
47396
                  _elem143.read(iprot);
-
 
47397
                  this.success.add(_elem143);
-
 
47398
                }
-
 
47399
                iprot.readListEnd();
-
 
47400
              }
-
 
47401
            } else { 
-
 
47402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47403
            }
-
 
47404
            break;
-
 
47405
          case 1: // WEX
-
 
47406
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
47407
              this.wex = new WarehouseServiceException();
-
 
47408
              this.wex.read(iprot);
-
 
47409
            } else { 
-
 
47410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47411
            }
-
 
47412
            break;
-
 
47413
          default:
-
 
47414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47415
        }
-
 
47416
        iprot.readFieldEnd();
-
 
47417
      }
-
 
47418
      iprot.readStructEnd();
-
 
47419
      validate();
-
 
47420
    }
-
 
47421
 
-
 
47422
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47423
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47424
 
-
 
47425
      if (this.isSetSuccess()) {
-
 
47426
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
47427
        {
-
 
47428
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
47429
          for (AmazonTransferredSkuDetail _iter144 : this.success)
-
 
47430
          {
-
 
47431
            _iter144.write(oprot);
-
 
47432
          }
-
 
47433
          oprot.writeListEnd();
-
 
47434
        }
-
 
47435
        oprot.writeFieldEnd();
-
 
47436
      } else if (this.isSetWex()) {
-
 
47437
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
47438
        this.wex.write(oprot);
-
 
47439
        oprot.writeFieldEnd();
-
 
47440
      }
-
 
47441
      oprot.writeFieldStop();
-
 
47442
      oprot.writeStructEnd();
-
 
47443
    }
-
 
47444
 
-
 
47445
    @Override
-
 
47446
    public String toString() {
-
 
47447
      StringBuilder sb = new StringBuilder("getAmazonTransferredSkuDetails_result(");
-
 
47448
      boolean first = true;
-
 
47449
 
-
 
47450
      sb.append("success:");
-
 
47451
      if (this.success == null) {
-
 
47452
        sb.append("null");
-
 
47453
      } else {
-
 
47454
        sb.append(this.success);
-
 
47455
      }
-
 
47456
      first = false;
-
 
47457
      if (!first) sb.append(", ");
-
 
47458
      sb.append("wex:");
-
 
47459
      if (this.wex == null) {
-
 
47460
        sb.append("null");
-
 
47461
      } else {
-
 
47462
        sb.append(this.wex);
-
 
47463
      }
-
 
47464
      first = false;
-
 
47465
      sb.append(")");
-
 
47466
      return sb.toString();
-
 
47467
    }
-
 
47468
 
-
 
47469
    public void validate() throws org.apache.thrift.TException {
-
 
47470
      // check for required fields
-
 
47471
    }
-
 
47472
 
-
 
47473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47474
      try {
-
 
47475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47476
      } catch (org.apache.thrift.TException te) {
-
 
47477
        throw new java.io.IOException(te);
-
 
47478
      }
-
 
47479
    }
-
 
47480
 
-
 
47481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47482
      try {
-
 
47483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47484
      } catch (org.apache.thrift.TException te) {
-
 
47485
        throw new java.io.IOException(te);
-
 
47486
      }
-
 
47487
    }
-
 
47488
 
-
 
47489
  }
-
 
47490
 
-
 
47491
  public static class getScansforPurchase_args implements org.apache.thrift.TBase<getScansforPurchase_args, getScansforPurchase_args._Fields>, java.io.Serializable, Cloneable   {
-
 
47492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScansforPurchase_args");
-
 
47493
 
-
 
47494
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
47495
    private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
47496
 
-
 
47497
    private long purchaseId; // required
-
 
47498
    private ScanType scanType; // required
-
 
47499
 
-
 
47500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47502
      PURCHASE_ID((short)1, "purchaseId"),
-
 
47503
      /**
-
 
47504
       * 
-
 
47505
       * @see ScanType
-
 
47506
       */
-
 
47507
      SCAN_TYPE((short)2, "scanType");
-
 
47508
 
-
 
47509
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47510
 
-
 
47511
      static {
-
 
47512
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47513
          byName.put(field.getFieldName(), field);
-
 
47514
        }
-
 
47515
      }
-
 
47516
 
-
 
47517
      /**
-
 
47518
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47519
       */
-
 
47520
      public static _Fields findByThriftId(int fieldId) {
-
 
47521
        switch(fieldId) {
-
 
47522
          case 1: // PURCHASE_ID
-
 
47523
            return PURCHASE_ID;
-
 
47524
          case 2: // SCAN_TYPE
-
 
47525
            return SCAN_TYPE;
-
 
47526
          default:
-
 
47527
            return null;
-
 
47528
        }
-
 
47529
      }
-
 
47530
 
-
 
47531
      /**
-
 
47532
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47533
       * if it is not found.
-
 
47534
       */
-
 
47535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47536
        _Fields fields = findByThriftId(fieldId);
-
 
47537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47538
        return fields;
-
 
47539
      }
-
 
47540
 
-
 
47541
      /**
-
 
47542
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47543
       */
-
 
47544
      public static _Fields findByName(String name) {
-
 
47545
        return byName.get(name);
-
 
47546
      }
-
 
47547
 
-
 
47548
      private final short _thriftId;
-
 
47549
      private final String _fieldName;
-
 
47550
 
-
 
47551
      _Fields(short thriftId, String fieldName) {
-
 
47552
        _thriftId = thriftId;
-
 
47553
        _fieldName = fieldName;
-
 
47554
      }
-
 
47555
 
-
 
47556
      public short getThriftFieldId() {
-
 
47557
        return _thriftId;
-
 
47558
      }
-
 
47559
 
-
 
47560
      public String getFieldName() {
-
 
47561
        return _fieldName;
-
 
47562
      }
-
 
47563
    }
-
 
47564
 
-
 
47565
    // isset id assignments
-
 
47566
    private static final int __PURCHASEID_ISSET_ID = 0;
-
 
47567
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
47568
 
-
 
47569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47570
    static {
-
 
47571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47572
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
47574
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47575
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
47576
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47577
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScansforPurchase_args.class, metaDataMap);
-
 
47578
    }
-
 
47579
 
-
 
47580
    public getScansforPurchase_args() {
-
 
47581
    }
-
 
47582
 
-
 
47583
    public getScansforPurchase_args(
-
 
47584
      long purchaseId,
-
 
47585
      ScanType scanType)
-
 
47586
    {
-
 
47587
      this();
-
 
47588
      this.purchaseId = purchaseId;
-
 
47589
      setPurchaseIdIsSet(true);
-
 
47590
      this.scanType = scanType;
-
 
47591
    }
-
 
47592
 
-
 
47593
    /**
-
 
47594
     * Performs a deep copy on <i>other</i>.
-
 
47595
     */
-
 
47596
    public getScansforPurchase_args(getScansforPurchase_args other) {
-
 
47597
      __isset_bit_vector.clear();
-
 
47598
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
47599
      this.purchaseId = other.purchaseId;
-
 
47600
      if (other.isSetScanType()) {
-
 
47601
        this.scanType = other.scanType;
-
 
47602
      }
-
 
47603
    }
-
 
47604
 
-
 
47605
    public getScansforPurchase_args deepCopy() {
-
 
47606
      return new getScansforPurchase_args(this);
-
 
47607
    }
-
 
47608
 
-
 
47609
    @Override
-
 
47610
    public void clear() {
-
 
47611
      setPurchaseIdIsSet(false);
-
 
47612
      this.purchaseId = 0;
-
 
47613
      this.scanType = null;
-
 
47614
    }
-
 
47615
 
-
 
47616
    public long getPurchaseId() {
-
 
47617
      return this.purchaseId;
-
 
47618
    }
-
 
47619
 
-
 
47620
    public void setPurchaseId(long purchaseId) {
-
 
47621
      this.purchaseId = purchaseId;
-
 
47622
      setPurchaseIdIsSet(true);
-
 
47623
    }
-
 
47624
 
-
 
47625
    public void unsetPurchaseId() {
-
 
47626
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
-
 
47627
    }
-
 
47628
 
-
 
47629
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
-
 
47630
    public boolean isSetPurchaseId() {
-
 
47631
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
-
 
47632
    }
-
 
47633
 
-
 
47634
    public void setPurchaseIdIsSet(boolean value) {
-
 
47635
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
-
 
47636
    }
-
 
47637
 
-
 
47638
    /**
-
 
47639
     * 
-
 
47640
     * @see ScanType
-
 
47641
     */
-
 
47642
    public ScanType getScanType() {
-
 
47643
      return this.scanType;
-
 
47644
    }
-
 
47645
 
-
 
47646
    /**
-
 
47647
     * 
-
 
47648
     * @see ScanType
-
 
47649
     */
-
 
47650
    public void setScanType(ScanType scanType) {
-
 
47651
      this.scanType = scanType;
-
 
47652
    }
-
 
47653
 
-
 
47654
    public void unsetScanType() {
-
 
47655
      this.scanType = null;
-
 
47656
    }
-
 
47657
 
-
 
47658
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
-
 
47659
    public boolean isSetScanType() {
-
 
47660
      return this.scanType != null;
-
 
47661
    }
-
 
47662
 
-
 
47663
    public void setScanTypeIsSet(boolean value) {
-
 
47664
      if (!value) {
-
 
47665
        this.scanType = null;
-
 
47666
      }
-
 
47667
    }
-
 
47668
 
-
 
47669
    public void setFieldValue(_Fields field, Object value) {
-
 
47670
      switch (field) {
-
 
47671
      case PURCHASE_ID:
-
 
47672
        if (value == null) {
-
 
47673
          unsetPurchaseId();
-
 
47674
        } else {
-
 
47675
          setPurchaseId((Long)value);
-
 
47676
        }
-
 
47677
        break;
-
 
47678
 
-
 
47679
      case SCAN_TYPE:
-
 
47680
        if (value == null) {
-
 
47681
          unsetScanType();
-
 
47682
        } else {
-
 
47683
          setScanType((ScanType)value);
-
 
47684
        }
-
 
47685
        break;
-
 
47686
 
-
 
47687
      }
-
 
47688
    }
-
 
47689
 
-
 
47690
    public Object getFieldValue(_Fields field) {
-
 
47691
      switch (field) {
-
 
47692
      case PURCHASE_ID:
-
 
47693
        return Long.valueOf(getPurchaseId());
-
 
47694
 
-
 
47695
      case SCAN_TYPE:
-
 
47696
        return getScanType();
-
 
47697
 
-
 
47698
      }
-
 
47699
      throw new IllegalStateException();
-
 
47700
    }
-
 
47701
 
-
 
47702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47703
    public boolean isSet(_Fields field) {
-
 
47704
      if (field == null) {
-
 
47705
        throw new IllegalArgumentException();
-
 
47706
      }
-
 
47707
 
-
 
47708
      switch (field) {
-
 
47709
      case PURCHASE_ID:
-
 
47710
        return isSetPurchaseId();
-
 
47711
      case SCAN_TYPE:
-
 
47712
        return isSetScanType();
-
 
47713
      }
-
 
47714
      throw new IllegalStateException();
-
 
47715
    }
-
 
47716
 
-
 
47717
    @Override
-
 
47718
    public boolean equals(Object that) {
-
 
47719
      if (that == null)
-
 
47720
        return false;
-
 
47721
      if (that instanceof getScansforPurchase_args)
-
 
47722
        return this.equals((getScansforPurchase_args)that);
-
 
47723
      return false;
-
 
47724
    }
-
 
47725
 
-
 
47726
    public boolean equals(getScansforPurchase_args that) {
-
 
47727
      if (that == null)
-
 
47728
        return false;
-
 
47729
 
-
 
47730
      boolean this_present_purchaseId = true;
-
 
47731
      boolean that_present_purchaseId = true;
-
 
47732
      if (this_present_purchaseId || that_present_purchaseId) {
-
 
47733
        if (!(this_present_purchaseId && that_present_purchaseId))
-
 
47734
          return false;
-
 
47735
        if (this.purchaseId != that.purchaseId)
-
 
47736
          return false;
-
 
47737
      }
-
 
47738
 
-
 
47739
      boolean this_present_scanType = true && this.isSetScanType();
-
 
47740
      boolean that_present_scanType = true && that.isSetScanType();
-
 
47741
      if (this_present_scanType || that_present_scanType) {
-
 
47742
        if (!(this_present_scanType && that_present_scanType))
-
 
47743
          return false;
-
 
47744
        if (!this.scanType.equals(that.scanType))
-
 
47745
          return false;
-
 
47746
      }
-
 
47747
 
-
 
47748
      return true;
-
 
47749
    }
-
 
47750
 
-
 
47751
    @Override
-
 
47752
    public int hashCode() {
-
 
47753
      return 0;
-
 
47754
    }
-
 
47755
 
-
 
47756
    public int compareTo(getScansforPurchase_args other) {
-
 
47757
      if (!getClass().equals(other.getClass())) {
-
 
47758
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47759
      }
-
 
47760
 
-
 
47761
      int lastComparison = 0;
-
 
47762
      getScansforPurchase_args typedOther = (getScansforPurchase_args)other;
-
 
47763
 
-
 
47764
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
-
 
47765
      if (lastComparison != 0) {
-
 
47766
        return lastComparison;
-
 
47767
      }
-
 
47768
      if (isSetPurchaseId()) {
-
 
47769
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
-
 
47770
        if (lastComparison != 0) {
-
 
47771
          return lastComparison;
-
 
47772
        }
-
 
47773
      }
-
 
47774
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
-
 
47775
      if (lastComparison != 0) {
-
 
47776
        return lastComparison;
-
 
47777
      }
-
 
47778
      if (isSetScanType()) {
-
 
47779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
-
 
47780
        if (lastComparison != 0) {
-
 
47781
          return lastComparison;
-
 
47782
        }
-
 
47783
      }
-
 
47784
      return 0;
-
 
47785
    }
-
 
47786
 
-
 
47787
    public _Fields fieldForId(int fieldId) {
-
 
47788
      return _Fields.findByThriftId(fieldId);
-
 
47789
    }
-
 
47790
 
-
 
47791
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47792
      org.apache.thrift.protocol.TField field;
-
 
47793
      iprot.readStructBegin();
-
 
47794
      while (true)
-
 
47795
      {
-
 
47796
        field = iprot.readFieldBegin();
-
 
47797
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47798
          break;
-
 
47799
        }
-
 
47800
        switch (field.id) {
-
 
47801
          case 1: // PURCHASE_ID
-
 
47802
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
47803
              this.purchaseId = iprot.readI64();
-
 
47804
              setPurchaseIdIsSet(true);
-
 
47805
            } else { 
-
 
47806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47807
            }
-
 
47808
            break;
-
 
47809
          case 2: // SCAN_TYPE
-
 
47810
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
47811
              this.scanType = ScanType.findByValue(iprot.readI32());
-
 
47812
            } else { 
-
 
47813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47814
            }
-
 
47815
            break;
-
 
47816
          default:
-
 
47817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47818
        }
-
 
47819
        iprot.readFieldEnd();
-
 
47820
      }
-
 
47821
      iprot.readStructEnd();
-
 
47822
      validate();
-
 
47823
    }
-
 
47824
 
-
 
47825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47826
      validate();
-
 
47827
 
-
 
47828
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47829
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
-
 
47830
      oprot.writeI64(this.purchaseId);
-
 
47831
      oprot.writeFieldEnd();
-
 
47832
      if (this.scanType != null) {
-
 
47833
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
-
 
47834
        oprot.writeI32(this.scanType.getValue());
-
 
47835
        oprot.writeFieldEnd();
-
 
47836
      }
-
 
47837
      oprot.writeFieldStop();
-
 
47838
      oprot.writeStructEnd();
-
 
47839
    }
-
 
47840
 
-
 
47841
    @Override
-
 
47842
    public String toString() {
-
 
47843
      StringBuilder sb = new StringBuilder("getScansforPurchase_args(");
-
 
47844
      boolean first = true;
-
 
47845
 
-
 
47846
      sb.append("purchaseId:");
-
 
47847
      sb.append(this.purchaseId);
-
 
47848
      first = false;
-
 
47849
      if (!first) sb.append(", ");
-
 
47850
      sb.append("scanType:");
-
 
47851
      if (this.scanType == null) {
-
 
47852
        sb.append("null");
-
 
47853
      } else {
-
 
47854
        sb.append(this.scanType);
-
 
47855
      }
-
 
47856
      first = false;
-
 
47857
      sb.append(")");
-
 
47858
      return sb.toString();
-
 
47859
    }
-
 
47860
 
-
 
47861
    public void validate() throws org.apache.thrift.TException {
-
 
47862
      // check for required fields
-
 
47863
    }
-
 
47864
 
-
 
47865
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47866
      try {
-
 
47867
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47868
      } catch (org.apache.thrift.TException te) {
-
 
47869
        throw new java.io.IOException(te);
-
 
47870
      }
-
 
47871
    }
-
 
47872
 
-
 
47873
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47874
      try {
-
 
47875
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
47876
        __isset_bit_vector = new BitSet(1);
-
 
47877
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47878
      } catch (org.apache.thrift.TException te) {
-
 
47879
        throw new java.io.IOException(te);
-
 
47880
      }
-
 
47881
    }
-
 
47882
 
-
 
47883
  }
-
 
47884
 
-
 
47885
  public static class getScansforPurchase_result implements org.apache.thrift.TBase<getScansforPurchase_result, getScansforPurchase_result._Fields>, java.io.Serializable, Cloneable   {
-
 
47886
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScansforPurchase_result");
-
 
47887
 
-
 
47888
    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);
-
 
47889
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
47890
 
-
 
47891
    private List<Scan> success; // required
-
 
47892
    private WarehouseServiceException wex; // required
-
 
47893
 
-
 
47894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47896
      SUCCESS((short)0, "success"),
-
 
47897
      WEX((short)1, "wex");
-
 
47898
 
-
 
47899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47900
 
-
 
47901
      static {
-
 
47902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47903
          byName.put(field.getFieldName(), field);
-
 
47904
        }
-
 
47905
      }
-
 
47906
 
-
 
47907
      /**
-
 
47908
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47909
       */
-
 
47910
      public static _Fields findByThriftId(int fieldId) {
-
 
47911
        switch(fieldId) {
-
 
47912
          case 0: // SUCCESS
-
 
47913
            return SUCCESS;
-
 
47914
          case 1: // WEX
-
 
47915
            return WEX;
-
 
47916
          default:
-
 
47917
            return null;
-
 
47918
        }
-
 
47919
      }
-
 
47920
 
-
 
47921
      /**
-
 
47922
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47923
       * if it is not found.
-
 
47924
       */
-
 
47925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47926
        _Fields fields = findByThriftId(fieldId);
-
 
47927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47928
        return fields;
-
 
47929
      }
-
 
47930
 
-
 
47931
      /**
-
 
47932
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47933
       */
-
 
47934
      public static _Fields findByName(String name) {
-
 
47935
        return byName.get(name);
-
 
47936
      }
-
 
47937
 
-
 
47938
      private final short _thriftId;
-
 
47939
      private final String _fieldName;
-
 
47940
 
-
 
47941
      _Fields(short thriftId, String fieldName) {
-
 
47942
        _thriftId = thriftId;
-
 
47943
        _fieldName = fieldName;
-
 
47944
      }
-
 
47945
 
-
 
47946
      public short getThriftFieldId() {
-
 
47947
        return _thriftId;
-
 
47948
      }
-
 
47949
 
-
 
47950
      public String getFieldName() {
-
 
47951
        return _fieldName;
-
 
47952
      }
-
 
47953
    }
-
 
47954
 
-
 
47955
    // isset id assignments
-
 
47956
 
-
 
47957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47958
    static {
-
 
47959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47960
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47961
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
47962
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
47963
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
47965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScansforPurchase_result.class, metaDataMap);
-
 
47967
    }
-
 
47968
 
-
 
47969
    public getScansforPurchase_result() {
-
 
47970
    }
-
 
47971
 
-
 
47972
    public getScansforPurchase_result(
-
 
47973
      List<Scan> success,
-
 
47974
      WarehouseServiceException wex)
-
 
47975
    {
-
 
47976
      this();
-
 
47977
      this.success = success;
-
 
47978
      this.wex = wex;
-
 
47979
    }
-
 
47980
 
-
 
47981
    /**
-
 
47982
     * Performs a deep copy on <i>other</i>.
-
 
47983
     */
-
 
47984
    public getScansforPurchase_result(getScansforPurchase_result other) {
-
 
47985
      if (other.isSetSuccess()) {
-
 
47986
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
47987
        for (Scan other_element : other.success) {
-
 
47988
          __this__success.add(new Scan(other_element));
-
 
47989
        }
-
 
47990
        this.success = __this__success;
-
 
47991
      }
-
 
47992
      if (other.isSetWex()) {
-
 
47993
        this.wex = new WarehouseServiceException(other.wex);
-
 
47994
      }
-
 
47995
    }
-
 
47996
 
-
 
47997
    public getScansforPurchase_result deepCopy() {
-
 
47998
      return new getScansforPurchase_result(this);
-
 
47999
    }
-
 
48000
 
-
 
48001
    @Override
-
 
48002
    public void clear() {
-
 
48003
      this.success = null;
-
 
48004
      this.wex = null;
-
 
48005
    }
-
 
48006
 
-
 
48007
    public int getSuccessSize() {
-
 
48008
      return (this.success == null) ? 0 : this.success.size();
-
 
48009
    }
-
 
48010
 
-
 
48011
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
48012
      return (this.success == null) ? null : this.success.iterator();
-
 
48013
    }
-
 
48014
 
-
 
48015
    public void addToSuccess(Scan elem) {
-
 
48016
      if (this.success == null) {
-
 
48017
        this.success = new ArrayList<Scan>();
-
 
48018
      }
-
 
48019
      this.success.add(elem);
-
 
48020
    }
-
 
48021
 
-
 
48022
    public List<Scan> getSuccess() {
-
 
48023
      return this.success;
-
 
48024
    }
-
 
48025
 
-
 
48026
    public void setSuccess(List<Scan> success) {
-
 
48027
      this.success = success;
-
 
48028
    }
-
 
48029
 
-
 
48030
    public void unsetSuccess() {
-
 
48031
      this.success = null;
-
 
48032
    }
-
 
48033
 
-
 
48034
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
48035
    public boolean isSetSuccess() {
-
 
48036
      return this.success != null;
-
 
48037
    }
-
 
48038
 
-
 
48039
    public void setSuccessIsSet(boolean value) {
-
 
48040
      if (!value) {
-
 
48041
        this.success = null;
-
 
48042
      }
-
 
48043
    }
-
 
48044
 
-
 
48045
    public WarehouseServiceException getWex() {
-
 
48046
      return this.wex;
-
 
48047
    }
-
 
48048
 
-
 
48049
    public void setWex(WarehouseServiceException wex) {
-
 
48050
      this.wex = wex;
-
 
48051
    }
-
 
48052
 
-
 
48053
    public void unsetWex() {
-
 
48054
      this.wex = null;
-
 
48055
    }
-
 
48056
 
-
 
48057
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
48058
    public boolean isSetWex() {
-
 
48059
      return this.wex != null;
-
 
48060
    }
-
 
48061
 
-
 
48062
    public void setWexIsSet(boolean value) {
-
 
48063
      if (!value) {
-
 
48064
        this.wex = null;
-
 
48065
      }
-
 
48066
    }
-
 
48067
 
-
 
48068
    public void setFieldValue(_Fields field, Object value) {
-
 
48069
      switch (field) {
-
 
48070
      case SUCCESS:
-
 
48071
        if (value == null) {
-
 
48072
          unsetSuccess();
-
 
48073
        } else {
-
 
48074
          setSuccess((List<Scan>)value);
-
 
48075
        }
-
 
48076
        break;
-
 
48077
 
-
 
48078
      case WEX:
-
 
48079
        if (value == null) {
-
 
48080
          unsetWex();
-
 
48081
        } else {
-
 
48082
          setWex((WarehouseServiceException)value);
-
 
48083
        }
-
 
48084
        break;
-
 
48085
 
-
 
48086
      }
-
 
48087
    }
-
 
48088
 
-
 
48089
    public Object getFieldValue(_Fields field) {
-
 
48090
      switch (field) {
-
 
48091
      case SUCCESS:
-
 
48092
        return getSuccess();
-
 
48093
 
-
 
48094
      case WEX:
-
 
48095
        return getWex();
-
 
48096
 
-
 
48097
      }
-
 
48098
      throw new IllegalStateException();
-
 
48099
    }
-
 
48100
 
-
 
48101
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48102
    public boolean isSet(_Fields field) {
-
 
48103
      if (field == null) {
-
 
48104
        throw new IllegalArgumentException();
-
 
48105
      }
-
 
48106
 
-
 
48107
      switch (field) {
-
 
48108
      case SUCCESS:
-
 
48109
        return isSetSuccess();
-
 
48110
      case WEX:
-
 
48111
        return isSetWex();
-
 
48112
      }
-
 
48113
      throw new IllegalStateException();
-
 
48114
    }
-
 
48115
 
-
 
48116
    @Override
-
 
48117
    public boolean equals(Object that) {
-
 
48118
      if (that == null)
-
 
48119
        return false;
-
 
48120
      if (that instanceof getScansforPurchase_result)
-
 
48121
        return this.equals((getScansforPurchase_result)that);
-
 
48122
      return false;
-
 
48123
    }
-
 
48124
 
-
 
48125
    public boolean equals(getScansforPurchase_result that) {
-
 
48126
      if (that == null)
-
 
48127
        return false;
-
 
48128
 
-
 
48129
      boolean this_present_success = true && this.isSetSuccess();
-
 
48130
      boolean that_present_success = true && that.isSetSuccess();
-
 
48131
      if (this_present_success || that_present_success) {
-
 
48132
        if (!(this_present_success && that_present_success))
-
 
48133
          return false;
-
 
48134
        if (!this.success.equals(that.success))
-
 
48135
          return false;
-
 
48136
      }
-
 
48137
 
-
 
48138
      boolean this_present_wex = true && this.isSetWex();
-
 
48139
      boolean that_present_wex = true && that.isSetWex();
-
 
48140
      if (this_present_wex || that_present_wex) {
-
 
48141
        if (!(this_present_wex && that_present_wex))
-
 
48142
          return false;
-
 
48143
        if (!this.wex.equals(that.wex))
-
 
48144
          return false;
-
 
48145
      }
-
 
48146
 
-
 
48147
      return true;
-
 
48148
    }
-
 
48149
 
-
 
48150
    @Override
-
 
48151
    public int hashCode() {
-
 
48152
      return 0;
-
 
48153
    }
-
 
48154
 
-
 
48155
    public int compareTo(getScansforPurchase_result other) {
-
 
48156
      if (!getClass().equals(other.getClass())) {
-
 
48157
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48158
      }
-
 
48159
 
-
 
48160
      int lastComparison = 0;
-
 
48161
      getScansforPurchase_result typedOther = (getScansforPurchase_result)other;
-
 
48162
 
-
 
48163
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
48164
      if (lastComparison != 0) {
-
 
48165
        return lastComparison;
-
 
48166
      }
-
 
48167
      if (isSetSuccess()) {
-
 
48168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
48169
        if (lastComparison != 0) {
-
 
48170
          return lastComparison;
-
 
48171
        }
-
 
48172
      }
-
 
48173
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
48174
      if (lastComparison != 0) {
-
 
48175
        return lastComparison;
-
 
48176
      }
-
 
48177
      if (isSetWex()) {
-
 
48178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
48179
        if (lastComparison != 0) {
-
 
48180
          return lastComparison;
-
 
48181
        }
-
 
48182
      }
-
 
48183
      return 0;
-
 
48184
    }
-
 
48185
 
-
 
48186
    public _Fields fieldForId(int fieldId) {
-
 
48187
      return _Fields.findByThriftId(fieldId);
-
 
48188
    }
-
 
48189
 
-
 
48190
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48191
      org.apache.thrift.protocol.TField field;
-
 
48192
      iprot.readStructBegin();
-
 
48193
      while (true)
-
 
48194
      {
-
 
48195
        field = iprot.readFieldBegin();
-
 
48196
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48197
          break;
-
 
48198
        }
-
 
48199
        switch (field.id) {
-
 
48200
          case 0: // SUCCESS
-
 
48201
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
48202
              {
-
 
48203
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
-
 
48204
                this.success = new ArrayList<Scan>(_list145.size);
-
 
48205
                for (int _i146 = 0; _i146 < _list145.size; ++_i146)
-
 
48206
                {
-
 
48207
                  Scan _elem147; // required
-
 
48208
                  _elem147 = new Scan();
-
 
48209
                  _elem147.read(iprot);
-
 
48210
                  this.success.add(_elem147);
-
 
48211
                }
-
 
48212
                iprot.readListEnd();
-
 
48213
              }
-
 
48214
            } else { 
-
 
48215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48216
            }
-
 
48217
            break;
-
 
48218
          case 1: // WEX
-
 
48219
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
48220
              this.wex = new WarehouseServiceException();
-
 
48221
              this.wex.read(iprot);
-
 
48222
            } else { 
-
 
48223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48224
            }
-
 
48225
            break;
-
 
48226
          default:
-
 
48227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48228
        }
-
 
48229
        iprot.readFieldEnd();
-
 
48230
      }
-
 
48231
      iprot.readStructEnd();
-
 
48232
      validate();
-
 
48233
    }
-
 
48234
 
-
 
48235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48236
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48237
 
-
 
48238
      if (this.isSetSuccess()) {
-
 
48239
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48240
        {
-
 
48241
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
48242
          for (Scan _iter148 : this.success)
-
 
48243
          {
-
 
48244
            _iter148.write(oprot);
-
 
48245
          }
-
 
48246
          oprot.writeListEnd();
-
 
48247
        }
-
 
48248
        oprot.writeFieldEnd();
-
 
48249
      } else if (this.isSetWex()) {
-
 
48250
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
48251
        this.wex.write(oprot);
-
 
48252
        oprot.writeFieldEnd();
-
 
48253
      }
-
 
48254
      oprot.writeFieldStop();
-
 
48255
      oprot.writeStructEnd();
-
 
48256
    }
-
 
48257
 
-
 
48258
    @Override
-
 
48259
    public String toString() {
-
 
48260
      StringBuilder sb = new StringBuilder("getScansforPurchase_result(");
-
 
48261
      boolean first = true;
-
 
48262
 
-
 
48263
      sb.append("success:");
-
 
48264
      if (this.success == null) {
-
 
48265
        sb.append("null");
-
 
48266
      } else {
-
 
48267
        sb.append(this.success);
-
 
48268
      }
-
 
48269
      first = false;
-
 
48270
      if (!first) sb.append(", ");
-
 
48271
      sb.append("wex:");
-
 
48272
      if (this.wex == null) {
-
 
48273
        sb.append("null");
-
 
48274
      } else {
-
 
48275
        sb.append(this.wex);
45618
      }
48276
      }
45619
      first = false;
48277
      first = false;
45620
      sb.append(")");
48278
      sb.append(")");
45621
      return sb.toString();
48279
      return sb.toString();
45622
    }
48280
    }