Subversion Repositories SmartDukaan

Rev

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

Rev 6630 Rev 6762
Line 177... Line 177...
177
    /**
177
    /**
178
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
178
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
179
     */
179
     */
180
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
180
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
181
 
181
 
-
 
182
    /**
-
 
183
     * Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
184
     * 
-
 
185
     * @param date
-
 
186
     */
-
 
187
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
-
 
188
 
-
 
189
    /**
-
 
190
     * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
191
     * 
-
 
192
     * @param date
-
 
193
     */
-
 
194
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
-
 
195
 
-
 
196
    /**
-
 
197
     * Insert Purchase/Scan Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
198
     * 
-
 
199
     * @param itemId
-
 
200
     * @param serialNumber
-
 
201
     * @param itemNumber
-
 
202
     * @param invoiceNumber
-
 
203
     * @param warehouseId
-
 
204
     * @param unitPrice
-
 
205
     * @param orderId
-
 
206
     */
-
 
207
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
208
 
-
 
209
    /**
-
 
210
     * Insert Purchase_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
211
     * 
-
 
212
     * @param orderId
-
 
213
     * @param unitPrice
-
 
214
     */
-
 
215
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
-
 
216
 
-
 
217
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
218
 
-
 
219
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
220
 
182
  }
221
  }
183
 
222
 
184
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
223
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
185
 
224
 
186
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
225
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 221... Line 260...
221
 
260
 
222
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
261
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
223
 
262
 
224
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
263
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
225
 
264
 
-
 
265
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
266
 
-
 
267
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
268
 
-
 
269
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException;
-
 
270
 
-
 
271
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
272
 
-
 
273
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
274
 
-
 
275
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
276
 
226
  }
277
  }
227
 
278
 
228
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
279
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
229
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
280
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
230
      public Factory() {}
281
      public Factory() {}
Line 739... Line 790...
739
        return result.success;
790
        return result.success;
740
      }
791
      }
741
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
792
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
742
    }
793
    }
743
 
794
 
-
 
795
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
-
 
796
    {
-
 
797
      send_getHistoricSerializedInventoryByScans(date);
-
 
798
      return recv_getHistoricSerializedInventoryByScans();
-
 
799
    }
-
 
800
 
-
 
801
    public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
-
 
802
    {
-
 
803
      getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
-
 
804
      args.setDate(date);
-
 
805
      sendBase("getHistoricSerializedInventoryByScans", args);
-
 
806
    }
-
 
807
 
-
 
808
    public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
809
    {
-
 
810
      getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
-
 
811
      receiveBase(result, "getHistoricSerializedInventoryByScans");
-
 
812
      if (result.isSetSuccess()) {
-
 
813
        return result.success;
-
 
814
      }
-
 
815
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
-
 
816
    }
-
 
817
 
-
 
818
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
-
 
819
    {
-
 
820
      send_getHistoricNonSerializedInventoryByScans(date);
-
 
821
      return recv_getHistoricNonSerializedInventoryByScans();
-
 
822
    }
-
 
823
 
-
 
824
    public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
-
 
825
    {
-
 
826
      getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
-
 
827
      args.setDate(date);
-
 
828
      sendBase("getHistoricNonSerializedInventoryByScans", args);
-
 
829
    }
-
 
830
 
-
 
831
    public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
832
    {
-
 
833
      getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
-
 
834
      receiveBase(result, "getHistoricNonSerializedInventoryByScans");
-
 
835
      if (result.isSetSuccess()) {
-
 
836
        return result.success;
-
 
837
      }
-
 
838
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
-
 
839
    }
-
 
840
 
-
 
841
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
842
    {
-
 
843
      send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
-
 
844
      return recv_scanForOursExternalSale();
-
 
845
    }
-
 
846
 
-
 
847
    public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
-
 
848
    {
-
 
849
      scanForOursExternalSale_args args = new scanForOursExternalSale_args();
-
 
850
      args.setItemId(itemId);
-
 
851
      args.setSerialNumber(serialNumber);
-
 
852
      args.setItemNumber(itemNumber);
-
 
853
      args.setInvoiceNumber(invoiceNumber);
-
 
854
      args.setWarehouseId(warehouseId);
-
 
855
      args.setUnitPrice(unitPrice);
-
 
856
      args.setOrderId(orderId);
-
 
857
      sendBase("scanForOursExternalSale", args);
-
 
858
    }
-
 
859
 
-
 
860
    public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
-
 
861
    {
-
 
862
      scanForOursExternalSale_result result = new scanForOursExternalSale_result();
-
 
863
      receiveBase(result, "scanForOursExternalSale");
-
 
864
      if (result.isSetSuccess()) {
-
 
865
        return result.success;
-
 
866
      }
-
 
867
      if (result.ex != null) {
-
 
868
        throw result.ex;
-
 
869
      }
-
 
870
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
-
 
871
    }
-
 
872
 
-
 
873
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
-
 
874
    {
-
 
875
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
-
 
876
      recv_scanForOursExternalSaleReturn();
-
 
877
    }
-
 
878
 
-
 
879
    public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
-
 
880
    {
-
 
881
      scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
-
 
882
      args.setOrderId(orderId);
-
 
883
      args.setUnitPrice(unitPrice);
-
 
884
      sendBase("scanForOursExternalSaleReturn", args);
-
 
885
    }
-
 
886
 
-
 
887
    public void recv_scanForOursExternalSaleReturn() throws org.apache.thrift.TException
-
 
888
    {
-
 
889
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
-
 
890
      receiveBase(result, "scanForOursExternalSaleReturn");
-
 
891
      return;
-
 
892
    }
-
 
893
 
-
 
894
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
895
    {
-
 
896
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
-
 
897
      return recv_getMovementNonSerializedInventoryByScans();
-
 
898
    }
-
 
899
 
-
 
900
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
901
    {
-
 
902
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
-
 
903
      args.setStartDate(startDate);
-
 
904
      args.setEndDate(endDate);
-
 
905
      sendBase("getMovementNonSerializedInventoryByScans", args);
-
 
906
    }
-
 
907
 
-
 
908
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
909
    {
-
 
910
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
-
 
911
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
-
 
912
      if (result.isSetSuccess()) {
-
 
913
        return result.success;
-
 
914
      }
-
 
915
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
-
 
916
    }
-
 
917
 
-
 
918
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
919
    {
-
 
920
      send_getMovementSerializedInventoryByScans(startDate, endDate);
-
 
921
      return recv_getMovementSerializedInventoryByScans();
-
 
922
    }
-
 
923
 
-
 
924
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
925
    {
-
 
926
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
-
 
927
      args.setStartDate(startDate);
-
 
928
      args.setEndDate(endDate);
-
 
929
      sendBase("getMovementSerializedInventoryByScans", args);
-
 
930
    }
-
 
931
 
-
 
932
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
933
    {
-
 
934
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
-
 
935
      receiveBase(result, "getMovementSerializedInventoryByScans");
-
 
936
      if (result.isSetSuccess()) {
-
 
937
        return result.success;
-
 
938
      }
-
 
939
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
-
 
940
    }
-
 
941
 
744
  }
942
  }
745
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
943
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
746
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
944
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
747
      private org.apache.thrift.async.TAsyncClientManager clientManager;
945
      private org.apache.thrift.async.TAsyncClientManager clientManager;
748
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
946
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1451... Line 1649...
1451
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1649
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1452
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
1650
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
1453
      }
1651
      }
1454
    }
1652
    }
1455
 
1653
 
-
 
1654
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1655
      checkReady();
-
 
1656
      getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
-
 
1657
      this.___currentMethod = method_call;
-
 
1658
      ___manager.call(method_call);
-
 
1659
    }
-
 
1660
 
-
 
1661
    public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1662
      private long date;
-
 
1663
      public getHistoricSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_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 {
-
 
1664
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1665
        this.date = date;
-
 
1666
      }
-
 
1667
 
-
 
1668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1670
        getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
-
 
1671
        args.setDate(date);
-
 
1672
        args.write(prot);
-
 
1673
        prot.writeMessageEnd();
-
 
1674
      }
-
 
1675
 
-
 
1676
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
-
 
1677
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1678
          throw new IllegalStateException("Method call not finished!");
-
 
1679
        }
-
 
1680
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1681
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1682
        return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
-
 
1683
      }
-
 
1684
    }
-
 
1685
 
-
 
1686
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1687
      checkReady();
-
 
1688
      getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
-
 
1689
      this.___currentMethod = method_call;
-
 
1690
      ___manager.call(method_call);
-
 
1691
    }
-
 
1692
 
-
 
1693
    public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1694
      private long date;
-
 
1695
      public getHistoricNonSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_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 {
-
 
1696
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1697
        this.date = date;
-
 
1698
      }
-
 
1699
 
-
 
1700
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1701
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1702
        getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
-
 
1703
        args.setDate(date);
-
 
1704
        args.write(prot);
-
 
1705
        prot.writeMessageEnd();
-
 
1706
      }
-
 
1707
 
-
 
1708
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
-
 
1709
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1710
          throw new IllegalStateException("Method call not finished!");
-
 
1711
        }
-
 
1712
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1713
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1714
        return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
-
 
1715
      }
-
 
1716
    }
-
 
1717
 
-
 
1718
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException {
-
 
1719
      checkReady();
-
 
1720
      scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1721
      this.___currentMethod = method_call;
-
 
1722
      ___manager.call(method_call);
-
 
1723
    }
-
 
1724
 
-
 
1725
    public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1726
      private long itemId;
-
 
1727
      private String serialNumber;
-
 
1728
      private String itemNumber;
-
 
1729
      private String invoiceNumber;
-
 
1730
      private long warehouseId;
-
 
1731
      private double unitPrice;
-
 
1732
      private long orderId;
-
 
1733
      public scanForOursExternalSale_call(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_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 {
-
 
1734
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1735
        this.itemId = itemId;
-
 
1736
        this.serialNumber = serialNumber;
-
 
1737
        this.itemNumber = itemNumber;
-
 
1738
        this.invoiceNumber = invoiceNumber;
-
 
1739
        this.warehouseId = warehouseId;
-
 
1740
        this.unitPrice = unitPrice;
-
 
1741
        this.orderId = orderId;
-
 
1742
      }
-
 
1743
 
-
 
1744
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1745
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1746
        scanForOursExternalSale_args args = new scanForOursExternalSale_args();
-
 
1747
        args.setItemId(itemId);
-
 
1748
        args.setSerialNumber(serialNumber);
-
 
1749
        args.setItemNumber(itemNumber);
-
 
1750
        args.setInvoiceNumber(invoiceNumber);
-
 
1751
        args.setWarehouseId(warehouseId);
-
 
1752
        args.setUnitPrice(unitPrice);
-
 
1753
        args.setOrderId(orderId);
-
 
1754
        args.write(prot);
-
 
1755
        prot.writeMessageEnd();
-
 
1756
      }
-
 
1757
 
-
 
1758
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
1759
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1760
          throw new IllegalStateException("Method call not finished!");
-
 
1761
        }
-
 
1762
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1763
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1764
        return (new Client(prot)).recv_scanForOursExternalSale();
-
 
1765
      }
-
 
1766
    }
-
 
1767
 
-
 
1768
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
1769
      checkReady();
-
 
1770
      scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
-
 
1771
      this.___currentMethod = method_call;
-
 
1772
      ___manager.call(method_call);
-
 
1773
    }
-
 
1774
 
-
 
1775
    public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1776
      private long orderId;
-
 
1777
      private double unitPrice;
-
 
1778
      public scanForOursExternalSaleReturn_call(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_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 {
-
 
1779
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1780
        this.orderId = orderId;
-
 
1781
        this.unitPrice = unitPrice;
-
 
1782
      }
-
 
1783
 
-
 
1784
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1785
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1786
        scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
-
 
1787
        args.setOrderId(orderId);
-
 
1788
        args.setUnitPrice(unitPrice);
-
 
1789
        args.write(prot);
-
 
1790
        prot.writeMessageEnd();
-
 
1791
      }
-
 
1792
 
-
 
1793
      public void getResult() throws org.apache.thrift.TException {
-
 
1794
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1795
          throw new IllegalStateException("Method call not finished!");
-
 
1796
        }
-
 
1797
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1798
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1799
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
-
 
1800
      }
-
 
1801
    }
-
 
1802
 
-
 
1803
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1804
      checkReady();
-
 
1805
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1806
      this.___currentMethod = method_call;
-
 
1807
      ___manager.call(method_call);
-
 
1808
    }
-
 
1809
 
-
 
1810
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1811
      private long startDate;
-
 
1812
      private long endDate;
-
 
1813
      public getMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_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 {
-
 
1814
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1815
        this.startDate = startDate;
-
 
1816
        this.endDate = endDate;
-
 
1817
      }
-
 
1818
 
-
 
1819
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1820
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1821
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
-
 
1822
        args.setStartDate(startDate);
-
 
1823
        args.setEndDate(endDate);
-
 
1824
        args.write(prot);
-
 
1825
        prot.writeMessageEnd();
-
 
1826
      }
-
 
1827
 
-
 
1828
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
1829
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1830
          throw new IllegalStateException("Method call not finished!");
-
 
1831
        }
-
 
1832
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1833
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1834
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
-
 
1835
      }
-
 
1836
    }
-
 
1837
 
-
 
1838
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1839
      checkReady();
-
 
1840
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1841
      this.___currentMethod = method_call;
-
 
1842
      ___manager.call(method_call);
-
 
1843
    }
-
 
1844
 
-
 
1845
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1846
      private long startDate;
-
 
1847
      private long endDate;
-
 
1848
      public getMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_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 {
-
 
1849
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1850
        this.startDate = startDate;
-
 
1851
        this.endDate = endDate;
-
 
1852
      }
-
 
1853
 
-
 
1854
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1855
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1856
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
-
 
1857
        args.setStartDate(startDate);
-
 
1858
        args.setEndDate(endDate);
-
 
1859
        args.write(prot);
-
 
1860
        prot.writeMessageEnd();
-
 
1861
      }
-
 
1862
 
-
 
1863
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
1864
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1865
          throw new IllegalStateException("Method call not finished!");
-
 
1866
        }
-
 
1867
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1868
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1869
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
-
 
1870
      }
-
 
1871
    }
-
 
1872
 
1456
  }
1873
  }
1457
 
1874
 
1458
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1875
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1459
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1876
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1460
    public Processor(I iface) {
1877
    public Processor(I iface) {
Line 1484... Line 1901...
1484
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1901
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1485
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
1902
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
1486
      processMap.put("scanForLostItem", new scanForLostItem());
1903
      processMap.put("scanForLostItem", new scanForLostItem());
1487
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
1904
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
1488
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
1905
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
-
 
1906
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
-
 
1907
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
-
 
1908
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
-
 
1909
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
-
 
1910
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
-
 
1911
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
1489
      return processMap;
1912
      return processMap;
1490
    }
1913
    }
1491
 
1914
 
1492
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1915
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1493
      public getInventoryItem() {
1916
      public getInventoryItem() {
Line 1847... Line 2270...
1847
        result.success = iface.getCurrentNonSerializedInventoryByScans();
2270
        result.success = iface.getCurrentNonSerializedInventoryByScans();
1848
        return result;
2271
        return result;
1849
      }
2272
      }
1850
    }
2273
    }
1851
 
2274
 
-
 
2275
    private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
-
 
2276
      public getHistoricSerializedInventoryByScans() {
-
 
2277
        super("getHistoricSerializedInventoryByScans");
-
 
2278
      }
-
 
2279
 
-
 
2280
      protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2281
        return new getHistoricSerializedInventoryByScans_args();
-
 
2282
      }
-
 
2283
 
-
 
2284
      protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2285
        getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
-
 
2286
        result.success = iface.getHistoricSerializedInventoryByScans(args.date);
-
 
2287
        return result;
-
 
2288
      }
-
 
2289
    }
-
 
2290
 
-
 
2291
    private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
-
 
2292
      public getHistoricNonSerializedInventoryByScans() {
-
 
2293
        super("getHistoricNonSerializedInventoryByScans");
-
 
2294
      }
-
 
2295
 
-
 
2296
      protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2297
        return new getHistoricNonSerializedInventoryByScans_args();
-
 
2298
      }
-
 
2299
 
-
 
2300
      protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2301
        getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
-
 
2302
        result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
-
 
2303
        return result;
-
 
2304
      }
-
 
2305
    }
-
 
2306
 
-
 
2307
    private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
-
 
2308
      public scanForOursExternalSale() {
-
 
2309
        super("scanForOursExternalSale");
-
 
2310
      }
-
 
2311
 
-
 
2312
      protected scanForOursExternalSale_args getEmptyArgsInstance() {
-
 
2313
        return new scanForOursExternalSale_args();
-
 
2314
      }
-
 
2315
 
-
 
2316
      protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
-
 
2317
        scanForOursExternalSale_result result = new scanForOursExternalSale_result();
-
 
2318
        try {
-
 
2319
          result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
-
 
2320
        } catch (WarehouseServiceException ex) {
-
 
2321
          result.ex = ex;
-
 
2322
        }
-
 
2323
        return result;
-
 
2324
      }
-
 
2325
    }
-
 
2326
 
-
 
2327
    private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
-
 
2328
      public scanForOursExternalSaleReturn() {
-
 
2329
        super("scanForOursExternalSaleReturn");
-
 
2330
      }
-
 
2331
 
-
 
2332
      protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
-
 
2333
        return new scanForOursExternalSaleReturn_args();
-
 
2334
      }
-
 
2335
 
-
 
2336
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
-
 
2337
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
-
 
2338
        iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
-
 
2339
        return result;
-
 
2340
      }
-
 
2341
    }
-
 
2342
 
-
 
2343
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
-
 
2344
      public getMovementNonSerializedInventoryByScans() {
-
 
2345
        super("getMovementNonSerializedInventoryByScans");
-
 
2346
      }
-
 
2347
 
-
 
2348
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2349
        return new getMovementNonSerializedInventoryByScans_args();
-
 
2350
      }
-
 
2351
 
-
 
2352
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2353
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
-
 
2354
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2355
        return result;
-
 
2356
      }
-
 
2357
    }
-
 
2358
 
-
 
2359
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
-
 
2360
      public getMovementSerializedInventoryByScans() {
-
 
2361
        super("getMovementSerializedInventoryByScans");
-
 
2362
      }
-
 
2363
 
-
 
2364
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2365
        return new getMovementSerializedInventoryByScans_args();
-
 
2366
      }
-
 
2367
 
-
 
2368
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2369
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
-
 
2370
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2371
        return result;
-
 
2372
      }
-
 
2373
    }
-
 
2374
 
1852
  }
2375
  }
1853
 
2376
 
1854
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2377
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1855
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1856
 
2379
 
Line 16097... Line 16620...
16097
      boolean first = true;
16620
      boolean first = true;
16098
 
16621
 
16099
      sb.append("success:");
16622
      sb.append("success:");
16100
      if (this.success == null) {
16623
      if (this.success == null) {
16101
        sb.append("null");
16624
        sb.append("null");
-
 
16625
      } else {
-
 
16626
        sb.append(this.success);
-
 
16627
      }
-
 
16628
      first = false;
-
 
16629
      sb.append(")");
-
 
16630
      return sb.toString();
-
 
16631
    }
-
 
16632
 
-
 
16633
    public void validate() throws org.apache.thrift.TException {
-
 
16634
      // check for required fields
-
 
16635
    }
-
 
16636
 
-
 
16637
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16638
      try {
-
 
16639
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16640
      } catch (org.apache.thrift.TException te) {
-
 
16641
        throw new java.io.IOException(te);
-
 
16642
      }
-
 
16643
    }
-
 
16644
 
-
 
16645
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16646
      try {
-
 
16647
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16648
      } catch (org.apache.thrift.TException te) {
-
 
16649
        throw new java.io.IOException(te);
-
 
16650
      }
-
 
16651
    }
-
 
16652
 
-
 
16653
  }
-
 
16654
 
-
 
16655
  public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16656
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
-
 
16657
 
-
 
16658
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
16659
 
-
 
16660
    private long date; // required
-
 
16661
 
-
 
16662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16664
      DATE((short)1, "date");
-
 
16665
 
-
 
16666
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16667
 
-
 
16668
      static {
-
 
16669
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16670
          byName.put(field.getFieldName(), field);
-
 
16671
        }
-
 
16672
      }
-
 
16673
 
-
 
16674
      /**
-
 
16675
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16676
       */
-
 
16677
      public static _Fields findByThriftId(int fieldId) {
-
 
16678
        switch(fieldId) {
-
 
16679
          case 1: // DATE
-
 
16680
            return DATE;
-
 
16681
          default:
-
 
16682
            return null;
-
 
16683
        }
-
 
16684
      }
-
 
16685
 
-
 
16686
      /**
-
 
16687
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16688
       * if it is not found.
-
 
16689
       */
-
 
16690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16691
        _Fields fields = findByThriftId(fieldId);
-
 
16692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16693
        return fields;
-
 
16694
      }
-
 
16695
 
-
 
16696
      /**
-
 
16697
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16698
       */
-
 
16699
      public static _Fields findByName(String name) {
-
 
16700
        return byName.get(name);
-
 
16701
      }
-
 
16702
 
-
 
16703
      private final short _thriftId;
-
 
16704
      private final String _fieldName;
-
 
16705
 
-
 
16706
      _Fields(short thriftId, String fieldName) {
-
 
16707
        _thriftId = thriftId;
-
 
16708
        _fieldName = fieldName;
-
 
16709
      }
-
 
16710
 
-
 
16711
      public short getThriftFieldId() {
-
 
16712
        return _thriftId;
-
 
16713
      }
-
 
16714
 
-
 
16715
      public String getFieldName() {
-
 
16716
        return _fieldName;
-
 
16717
      }
-
 
16718
    }
-
 
16719
 
-
 
16720
    // isset id assignments
-
 
16721
    private static final int __DATE_ISSET_ID = 0;
-
 
16722
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16723
 
-
 
16724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16725
    static {
-
 
16726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16727
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
16729
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16730
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
-
 
16731
    }
-
 
16732
 
-
 
16733
    public getHistoricSerializedInventoryByScans_args() {
-
 
16734
    }
-
 
16735
 
-
 
16736
    public getHistoricSerializedInventoryByScans_args(
-
 
16737
      long date)
-
 
16738
    {
-
 
16739
      this();
-
 
16740
      this.date = date;
-
 
16741
      setDateIsSet(true);
-
 
16742
    }
-
 
16743
 
-
 
16744
    /**
-
 
16745
     * Performs a deep copy on <i>other</i>.
-
 
16746
     */
-
 
16747
    public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
-
 
16748
      __isset_bit_vector.clear();
-
 
16749
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16750
      this.date = other.date;
-
 
16751
    }
-
 
16752
 
-
 
16753
    public getHistoricSerializedInventoryByScans_args deepCopy() {
-
 
16754
      return new getHistoricSerializedInventoryByScans_args(this);
-
 
16755
    }
-
 
16756
 
-
 
16757
    @Override
-
 
16758
    public void clear() {
-
 
16759
      setDateIsSet(false);
-
 
16760
      this.date = 0;
-
 
16761
    }
-
 
16762
 
-
 
16763
    public long getDate() {
-
 
16764
      return this.date;
-
 
16765
    }
-
 
16766
 
-
 
16767
    public void setDate(long date) {
-
 
16768
      this.date = date;
-
 
16769
      setDateIsSet(true);
-
 
16770
    }
-
 
16771
 
-
 
16772
    public void unsetDate() {
-
 
16773
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
16774
    }
-
 
16775
 
-
 
16776
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
16777
    public boolean isSetDate() {
-
 
16778
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
16779
    }
-
 
16780
 
-
 
16781
    public void setDateIsSet(boolean value) {
-
 
16782
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
16783
    }
-
 
16784
 
-
 
16785
    public void setFieldValue(_Fields field, Object value) {
-
 
16786
      switch (field) {
-
 
16787
      case DATE:
-
 
16788
        if (value == null) {
-
 
16789
          unsetDate();
-
 
16790
        } else {
-
 
16791
          setDate((Long)value);
-
 
16792
        }
-
 
16793
        break;
-
 
16794
 
-
 
16795
      }
-
 
16796
    }
-
 
16797
 
-
 
16798
    public Object getFieldValue(_Fields field) {
-
 
16799
      switch (field) {
-
 
16800
      case DATE:
-
 
16801
        return Long.valueOf(getDate());
-
 
16802
 
-
 
16803
      }
-
 
16804
      throw new IllegalStateException();
-
 
16805
    }
-
 
16806
 
-
 
16807
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16808
    public boolean isSet(_Fields field) {
-
 
16809
      if (field == null) {
-
 
16810
        throw new IllegalArgumentException();
-
 
16811
      }
-
 
16812
 
-
 
16813
      switch (field) {
-
 
16814
      case DATE:
-
 
16815
        return isSetDate();
-
 
16816
      }
-
 
16817
      throw new IllegalStateException();
-
 
16818
    }
-
 
16819
 
-
 
16820
    @Override
-
 
16821
    public boolean equals(Object that) {
-
 
16822
      if (that == null)
-
 
16823
        return false;
-
 
16824
      if (that instanceof getHistoricSerializedInventoryByScans_args)
-
 
16825
        return this.equals((getHistoricSerializedInventoryByScans_args)that);
-
 
16826
      return false;
-
 
16827
    }
-
 
16828
 
-
 
16829
    public boolean equals(getHistoricSerializedInventoryByScans_args that) {
-
 
16830
      if (that == null)
-
 
16831
        return false;
-
 
16832
 
-
 
16833
      boolean this_present_date = true;
-
 
16834
      boolean that_present_date = true;
-
 
16835
      if (this_present_date || that_present_date) {
-
 
16836
        if (!(this_present_date && that_present_date))
-
 
16837
          return false;
-
 
16838
        if (this.date != that.date)
-
 
16839
          return false;
-
 
16840
      }
-
 
16841
 
-
 
16842
      return true;
-
 
16843
    }
-
 
16844
 
-
 
16845
    @Override
-
 
16846
    public int hashCode() {
-
 
16847
      return 0;
-
 
16848
    }
-
 
16849
 
-
 
16850
    public int compareTo(getHistoricSerializedInventoryByScans_args other) {
-
 
16851
      if (!getClass().equals(other.getClass())) {
-
 
16852
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16853
      }
-
 
16854
 
-
 
16855
      int lastComparison = 0;
-
 
16856
      getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
-
 
16857
 
-
 
16858
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
16859
      if (lastComparison != 0) {
-
 
16860
        return lastComparison;
-
 
16861
      }
-
 
16862
      if (isSetDate()) {
-
 
16863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
16864
        if (lastComparison != 0) {
-
 
16865
          return lastComparison;
-
 
16866
        }
-
 
16867
      }
-
 
16868
      return 0;
-
 
16869
    }
-
 
16870
 
-
 
16871
    public _Fields fieldForId(int fieldId) {
-
 
16872
      return _Fields.findByThriftId(fieldId);
-
 
16873
    }
-
 
16874
 
-
 
16875
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16876
      org.apache.thrift.protocol.TField field;
-
 
16877
      iprot.readStructBegin();
-
 
16878
      while (true)
-
 
16879
      {
-
 
16880
        field = iprot.readFieldBegin();
-
 
16881
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16882
          break;
-
 
16883
        }
-
 
16884
        switch (field.id) {
-
 
16885
          case 1: // DATE
-
 
16886
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16887
              this.date = iprot.readI64();
-
 
16888
              setDateIsSet(true);
-
 
16889
            } else { 
-
 
16890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16891
            }
-
 
16892
            break;
-
 
16893
          default:
-
 
16894
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16895
        }
-
 
16896
        iprot.readFieldEnd();
-
 
16897
      }
-
 
16898
      iprot.readStructEnd();
-
 
16899
      validate();
-
 
16900
    }
-
 
16901
 
-
 
16902
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16903
      validate();
-
 
16904
 
-
 
16905
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16906
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
16907
      oprot.writeI64(this.date);
-
 
16908
      oprot.writeFieldEnd();
-
 
16909
      oprot.writeFieldStop();
-
 
16910
      oprot.writeStructEnd();
-
 
16911
    }
-
 
16912
 
-
 
16913
    @Override
-
 
16914
    public String toString() {
-
 
16915
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
-
 
16916
      boolean first = true;
-
 
16917
 
-
 
16918
      sb.append("date:");
-
 
16919
      sb.append(this.date);
-
 
16920
      first = false;
-
 
16921
      sb.append(")");
-
 
16922
      return sb.toString();
-
 
16923
    }
-
 
16924
 
-
 
16925
    public void validate() throws org.apache.thrift.TException {
-
 
16926
      // check for required fields
-
 
16927
    }
-
 
16928
 
-
 
16929
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16930
      try {
-
 
16931
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16932
      } catch (org.apache.thrift.TException te) {
-
 
16933
        throw new java.io.IOException(te);
-
 
16934
      }
-
 
16935
    }
-
 
16936
 
-
 
16937
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16938
      try {
-
 
16939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16940
      } catch (org.apache.thrift.TException te) {
-
 
16941
        throw new java.io.IOException(te);
-
 
16942
      }
-
 
16943
    }
-
 
16944
 
-
 
16945
  }
-
 
16946
 
-
 
16947
  public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
16948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
-
 
16949
 
-
 
16950
    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);
-
 
16951
 
-
 
16952
    private List<InventoryAvailability> success; // required
-
 
16953
 
-
 
16954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16956
      SUCCESS((short)0, "success");
-
 
16957
 
-
 
16958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16959
 
-
 
16960
      static {
-
 
16961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16962
          byName.put(field.getFieldName(), field);
-
 
16963
        }
-
 
16964
      }
-
 
16965
 
-
 
16966
      /**
-
 
16967
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16968
       */
-
 
16969
      public static _Fields findByThriftId(int fieldId) {
-
 
16970
        switch(fieldId) {
-
 
16971
          case 0: // SUCCESS
-
 
16972
            return SUCCESS;
-
 
16973
          default:
-
 
16974
            return null;
-
 
16975
        }
-
 
16976
      }
-
 
16977
 
-
 
16978
      /**
-
 
16979
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16980
       * if it is not found.
-
 
16981
       */
-
 
16982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16983
        _Fields fields = findByThriftId(fieldId);
-
 
16984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16985
        return fields;
-
 
16986
      }
-
 
16987
 
-
 
16988
      /**
-
 
16989
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16990
       */
-
 
16991
      public static _Fields findByName(String name) {
-
 
16992
        return byName.get(name);
-
 
16993
      }
-
 
16994
 
-
 
16995
      private final short _thriftId;
-
 
16996
      private final String _fieldName;
-
 
16997
 
-
 
16998
      _Fields(short thriftId, String fieldName) {
-
 
16999
        _thriftId = thriftId;
-
 
17000
        _fieldName = fieldName;
-
 
17001
      }
-
 
17002
 
-
 
17003
      public short getThriftFieldId() {
-
 
17004
        return _thriftId;
-
 
17005
      }
-
 
17006
 
-
 
17007
      public String getFieldName() {
-
 
17008
        return _fieldName;
-
 
17009
      }
-
 
17010
    }
-
 
17011
 
-
 
17012
    // isset id assignments
-
 
17013
 
-
 
17014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17015
    static {
-
 
17016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17017
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17018
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
17019
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
-
 
17020
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17021
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
-
 
17022
    }
-
 
17023
 
-
 
17024
    public getHistoricSerializedInventoryByScans_result() {
-
 
17025
    }
-
 
17026
 
-
 
17027
    public getHistoricSerializedInventoryByScans_result(
-
 
17028
      List<InventoryAvailability> success)
-
 
17029
    {
-
 
17030
      this();
-
 
17031
      this.success = success;
-
 
17032
    }
-
 
17033
 
-
 
17034
    /**
-
 
17035
     * Performs a deep copy on <i>other</i>.
-
 
17036
     */
-
 
17037
    public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
-
 
17038
      if (other.isSetSuccess()) {
-
 
17039
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
-
 
17040
        for (InventoryAvailability other_element : other.success) {
-
 
17041
          __this__success.add(new InventoryAvailability(other_element));
-
 
17042
        }
-
 
17043
        this.success = __this__success;
-
 
17044
      }
-
 
17045
    }
-
 
17046
 
-
 
17047
    public getHistoricSerializedInventoryByScans_result deepCopy() {
-
 
17048
      return new getHistoricSerializedInventoryByScans_result(this);
-
 
17049
    }
-
 
17050
 
-
 
17051
    @Override
-
 
17052
    public void clear() {
-
 
17053
      this.success = null;
-
 
17054
    }
-
 
17055
 
-
 
17056
    public int getSuccessSize() {
-
 
17057
      return (this.success == null) ? 0 : this.success.size();
-
 
17058
    }
-
 
17059
 
-
 
17060
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
-
 
17061
      return (this.success == null) ? null : this.success.iterator();
-
 
17062
    }
-
 
17063
 
-
 
17064
    public void addToSuccess(InventoryAvailability elem) {
-
 
17065
      if (this.success == null) {
-
 
17066
        this.success = new ArrayList<InventoryAvailability>();
-
 
17067
      }
-
 
17068
      this.success.add(elem);
-
 
17069
    }
-
 
17070
 
-
 
17071
    public List<InventoryAvailability> getSuccess() {
-
 
17072
      return this.success;
-
 
17073
    }
-
 
17074
 
-
 
17075
    public void setSuccess(List<InventoryAvailability> success) {
-
 
17076
      this.success = success;
-
 
17077
    }
-
 
17078
 
-
 
17079
    public void unsetSuccess() {
-
 
17080
      this.success = null;
-
 
17081
    }
-
 
17082
 
-
 
17083
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17084
    public boolean isSetSuccess() {
-
 
17085
      return this.success != null;
-
 
17086
    }
-
 
17087
 
-
 
17088
    public void setSuccessIsSet(boolean value) {
-
 
17089
      if (!value) {
-
 
17090
        this.success = null;
-
 
17091
      }
-
 
17092
    }
-
 
17093
 
-
 
17094
    public void setFieldValue(_Fields field, Object value) {
-
 
17095
      switch (field) {
-
 
17096
      case SUCCESS:
-
 
17097
        if (value == null) {
-
 
17098
          unsetSuccess();
-
 
17099
        } else {
-
 
17100
          setSuccess((List<InventoryAvailability>)value);
-
 
17101
        }
-
 
17102
        break;
-
 
17103
 
-
 
17104
      }
-
 
17105
    }
-
 
17106
 
-
 
17107
    public Object getFieldValue(_Fields field) {
-
 
17108
      switch (field) {
-
 
17109
      case SUCCESS:
-
 
17110
        return getSuccess();
-
 
17111
 
-
 
17112
      }
-
 
17113
      throw new IllegalStateException();
-
 
17114
    }
-
 
17115
 
-
 
17116
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17117
    public boolean isSet(_Fields field) {
-
 
17118
      if (field == null) {
-
 
17119
        throw new IllegalArgumentException();
-
 
17120
      }
-
 
17121
 
-
 
17122
      switch (field) {
-
 
17123
      case SUCCESS:
-
 
17124
        return isSetSuccess();
-
 
17125
      }
-
 
17126
      throw new IllegalStateException();
-
 
17127
    }
-
 
17128
 
-
 
17129
    @Override
-
 
17130
    public boolean equals(Object that) {
-
 
17131
      if (that == null)
-
 
17132
        return false;
-
 
17133
      if (that instanceof getHistoricSerializedInventoryByScans_result)
-
 
17134
        return this.equals((getHistoricSerializedInventoryByScans_result)that);
-
 
17135
      return false;
-
 
17136
    }
-
 
17137
 
-
 
17138
    public boolean equals(getHistoricSerializedInventoryByScans_result that) {
-
 
17139
      if (that == null)
-
 
17140
        return false;
-
 
17141
 
-
 
17142
      boolean this_present_success = true && this.isSetSuccess();
-
 
17143
      boolean that_present_success = true && that.isSetSuccess();
-
 
17144
      if (this_present_success || that_present_success) {
-
 
17145
        if (!(this_present_success && that_present_success))
-
 
17146
          return false;
-
 
17147
        if (!this.success.equals(that.success))
-
 
17148
          return false;
-
 
17149
      }
-
 
17150
 
-
 
17151
      return true;
-
 
17152
    }
-
 
17153
 
-
 
17154
    @Override
-
 
17155
    public int hashCode() {
-
 
17156
      return 0;
-
 
17157
    }
-
 
17158
 
-
 
17159
    public int compareTo(getHistoricSerializedInventoryByScans_result other) {
-
 
17160
      if (!getClass().equals(other.getClass())) {
-
 
17161
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17162
      }
-
 
17163
 
-
 
17164
      int lastComparison = 0;
-
 
17165
      getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
-
 
17166
 
-
 
17167
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17168
      if (lastComparison != 0) {
-
 
17169
        return lastComparison;
-
 
17170
      }
-
 
17171
      if (isSetSuccess()) {
-
 
17172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17173
        if (lastComparison != 0) {
-
 
17174
          return lastComparison;
-
 
17175
        }
-
 
17176
      }
-
 
17177
      return 0;
-
 
17178
    }
-
 
17179
 
-
 
17180
    public _Fields fieldForId(int fieldId) {
-
 
17181
      return _Fields.findByThriftId(fieldId);
-
 
17182
    }
-
 
17183
 
-
 
17184
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17185
      org.apache.thrift.protocol.TField field;
-
 
17186
      iprot.readStructBegin();
-
 
17187
      while (true)
-
 
17188
      {
-
 
17189
        field = iprot.readFieldBegin();
-
 
17190
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17191
          break;
-
 
17192
        }
-
 
17193
        switch (field.id) {
-
 
17194
          case 0: // SUCCESS
-
 
17195
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
17196
              {
-
 
17197
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
-
 
17198
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
-
 
17199
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
-
 
17200
                {
-
 
17201
                  InventoryAvailability _elem50; // required
-
 
17202
                  _elem50 = new InventoryAvailability();
-
 
17203
                  _elem50.read(iprot);
-
 
17204
                  this.success.add(_elem50);
-
 
17205
                }
-
 
17206
                iprot.readListEnd();
-
 
17207
              }
-
 
17208
            } else { 
-
 
17209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17210
            }
-
 
17211
            break;
-
 
17212
          default:
-
 
17213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17214
        }
-
 
17215
        iprot.readFieldEnd();
-
 
17216
      }
-
 
17217
      iprot.readStructEnd();
-
 
17218
      validate();
-
 
17219
    }
-
 
17220
 
-
 
17221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17222
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17223
 
-
 
17224
      if (this.isSetSuccess()) {
-
 
17225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17226
        {
-
 
17227
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
17228
          for (InventoryAvailability _iter51 : this.success)
-
 
17229
          {
-
 
17230
            _iter51.write(oprot);
-
 
17231
          }
-
 
17232
          oprot.writeListEnd();
-
 
17233
        }
-
 
17234
        oprot.writeFieldEnd();
-
 
17235
      }
-
 
17236
      oprot.writeFieldStop();
-
 
17237
      oprot.writeStructEnd();
-
 
17238
    }
-
 
17239
 
-
 
17240
    @Override
-
 
17241
    public String toString() {
-
 
17242
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
-
 
17243
      boolean first = true;
-
 
17244
 
-
 
17245
      sb.append("success:");
-
 
17246
      if (this.success == null) {
-
 
17247
        sb.append("null");
-
 
17248
      } else {
-
 
17249
        sb.append(this.success);
-
 
17250
      }
-
 
17251
      first = false;
-
 
17252
      sb.append(")");
-
 
17253
      return sb.toString();
-
 
17254
    }
-
 
17255
 
-
 
17256
    public void validate() throws org.apache.thrift.TException {
-
 
17257
      // check for required fields
-
 
17258
    }
-
 
17259
 
-
 
17260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17261
      try {
-
 
17262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17263
      } catch (org.apache.thrift.TException te) {
-
 
17264
        throw new java.io.IOException(te);
-
 
17265
      }
-
 
17266
    }
-
 
17267
 
-
 
17268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17269
      try {
-
 
17270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17271
      } catch (org.apache.thrift.TException te) {
-
 
17272
        throw new java.io.IOException(te);
-
 
17273
      }
-
 
17274
    }
-
 
17275
 
-
 
17276
  }
-
 
17277
 
-
 
17278
  public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
-
 
17280
 
-
 
17281
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
17282
 
-
 
17283
    private long date; // required
-
 
17284
 
-
 
17285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17286
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17287
      DATE((short)1, "date");
-
 
17288
 
-
 
17289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17290
 
-
 
17291
      static {
-
 
17292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17293
          byName.put(field.getFieldName(), field);
-
 
17294
        }
-
 
17295
      }
-
 
17296
 
-
 
17297
      /**
-
 
17298
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17299
       */
-
 
17300
      public static _Fields findByThriftId(int fieldId) {
-
 
17301
        switch(fieldId) {
-
 
17302
          case 1: // DATE
-
 
17303
            return DATE;
-
 
17304
          default:
-
 
17305
            return null;
-
 
17306
        }
-
 
17307
      }
-
 
17308
 
-
 
17309
      /**
-
 
17310
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17311
       * if it is not found.
-
 
17312
       */
-
 
17313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17314
        _Fields fields = findByThriftId(fieldId);
-
 
17315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17316
        return fields;
-
 
17317
      }
-
 
17318
 
-
 
17319
      /**
-
 
17320
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17321
       */
-
 
17322
      public static _Fields findByName(String name) {
-
 
17323
        return byName.get(name);
-
 
17324
      }
-
 
17325
 
-
 
17326
      private final short _thriftId;
-
 
17327
      private final String _fieldName;
-
 
17328
 
-
 
17329
      _Fields(short thriftId, String fieldName) {
-
 
17330
        _thriftId = thriftId;
-
 
17331
        _fieldName = fieldName;
-
 
17332
      }
-
 
17333
 
-
 
17334
      public short getThriftFieldId() {
-
 
17335
        return _thriftId;
-
 
17336
      }
-
 
17337
 
-
 
17338
      public String getFieldName() {
-
 
17339
        return _fieldName;
-
 
17340
      }
-
 
17341
    }
-
 
17342
 
-
 
17343
    // isset id assignments
-
 
17344
    private static final int __DATE_ISSET_ID = 0;
-
 
17345
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17346
 
-
 
17347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17348
    static {
-
 
17349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17350
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
-
 
17354
    }
-
 
17355
 
-
 
17356
    public getHistoricNonSerializedInventoryByScans_args() {
-
 
17357
    }
-
 
17358
 
-
 
17359
    public getHistoricNonSerializedInventoryByScans_args(
-
 
17360
      long date)
-
 
17361
    {
-
 
17362
      this();
-
 
17363
      this.date = date;
-
 
17364
      setDateIsSet(true);
-
 
17365
    }
-
 
17366
 
-
 
17367
    /**
-
 
17368
     * Performs a deep copy on <i>other</i>.
-
 
17369
     */
-
 
17370
    public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
-
 
17371
      __isset_bit_vector.clear();
-
 
17372
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17373
      this.date = other.date;
-
 
17374
    }
-
 
17375
 
-
 
17376
    public getHistoricNonSerializedInventoryByScans_args deepCopy() {
-
 
17377
      return new getHistoricNonSerializedInventoryByScans_args(this);
-
 
17378
    }
-
 
17379
 
-
 
17380
    @Override
-
 
17381
    public void clear() {
-
 
17382
      setDateIsSet(false);
-
 
17383
      this.date = 0;
-
 
17384
    }
-
 
17385
 
-
 
17386
    public long getDate() {
-
 
17387
      return this.date;
-
 
17388
    }
-
 
17389
 
-
 
17390
    public void setDate(long date) {
-
 
17391
      this.date = date;
-
 
17392
      setDateIsSet(true);
-
 
17393
    }
-
 
17394
 
-
 
17395
    public void unsetDate() {
-
 
17396
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
17397
    }
-
 
17398
 
-
 
17399
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
17400
    public boolean isSetDate() {
-
 
17401
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
17402
    }
-
 
17403
 
-
 
17404
    public void setDateIsSet(boolean value) {
-
 
17405
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
17406
    }
-
 
17407
 
-
 
17408
    public void setFieldValue(_Fields field, Object value) {
-
 
17409
      switch (field) {
-
 
17410
      case DATE:
-
 
17411
        if (value == null) {
-
 
17412
          unsetDate();
-
 
17413
        } else {
-
 
17414
          setDate((Long)value);
-
 
17415
        }
-
 
17416
        break;
-
 
17417
 
-
 
17418
      }
-
 
17419
    }
-
 
17420
 
-
 
17421
    public Object getFieldValue(_Fields field) {
-
 
17422
      switch (field) {
-
 
17423
      case DATE:
-
 
17424
        return Long.valueOf(getDate());
-
 
17425
 
-
 
17426
      }
-
 
17427
      throw new IllegalStateException();
-
 
17428
    }
-
 
17429
 
-
 
17430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17431
    public boolean isSet(_Fields field) {
-
 
17432
      if (field == null) {
-
 
17433
        throw new IllegalArgumentException();
-
 
17434
      }
-
 
17435
 
-
 
17436
      switch (field) {
-
 
17437
      case DATE:
-
 
17438
        return isSetDate();
-
 
17439
      }
-
 
17440
      throw new IllegalStateException();
-
 
17441
    }
-
 
17442
 
-
 
17443
    @Override
-
 
17444
    public boolean equals(Object that) {
-
 
17445
      if (that == null)
-
 
17446
        return false;
-
 
17447
      if (that instanceof getHistoricNonSerializedInventoryByScans_args)
-
 
17448
        return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
-
 
17449
      return false;
-
 
17450
    }
-
 
17451
 
-
 
17452
    public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
-
 
17453
      if (that == null)
-
 
17454
        return false;
-
 
17455
 
-
 
17456
      boolean this_present_date = true;
-
 
17457
      boolean that_present_date = true;
-
 
17458
      if (this_present_date || that_present_date) {
-
 
17459
        if (!(this_present_date && that_present_date))
-
 
17460
          return false;
-
 
17461
        if (this.date != that.date)
-
 
17462
          return false;
-
 
17463
      }
-
 
17464
 
-
 
17465
      return true;
-
 
17466
    }
-
 
17467
 
-
 
17468
    @Override
-
 
17469
    public int hashCode() {
-
 
17470
      return 0;
-
 
17471
    }
-
 
17472
 
-
 
17473
    public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
-
 
17474
      if (!getClass().equals(other.getClass())) {
-
 
17475
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17476
      }
-
 
17477
 
-
 
17478
      int lastComparison = 0;
-
 
17479
      getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
-
 
17480
 
-
 
17481
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
17482
      if (lastComparison != 0) {
-
 
17483
        return lastComparison;
-
 
17484
      }
-
 
17485
      if (isSetDate()) {
-
 
17486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
17487
        if (lastComparison != 0) {
-
 
17488
          return lastComparison;
-
 
17489
        }
-
 
17490
      }
-
 
17491
      return 0;
-
 
17492
    }
-
 
17493
 
-
 
17494
    public _Fields fieldForId(int fieldId) {
-
 
17495
      return _Fields.findByThriftId(fieldId);
-
 
17496
    }
-
 
17497
 
-
 
17498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17499
      org.apache.thrift.protocol.TField field;
-
 
17500
      iprot.readStructBegin();
-
 
17501
      while (true)
-
 
17502
      {
-
 
17503
        field = iprot.readFieldBegin();
-
 
17504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17505
          break;
-
 
17506
        }
-
 
17507
        switch (field.id) {
-
 
17508
          case 1: // DATE
-
 
17509
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17510
              this.date = iprot.readI64();
-
 
17511
              setDateIsSet(true);
-
 
17512
            } else { 
-
 
17513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17514
            }
-
 
17515
            break;
-
 
17516
          default:
-
 
17517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17518
        }
-
 
17519
        iprot.readFieldEnd();
-
 
17520
      }
-
 
17521
      iprot.readStructEnd();
-
 
17522
      validate();
-
 
17523
    }
-
 
17524
 
-
 
17525
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17526
      validate();
-
 
17527
 
-
 
17528
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17529
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
17530
      oprot.writeI64(this.date);
-
 
17531
      oprot.writeFieldEnd();
-
 
17532
      oprot.writeFieldStop();
-
 
17533
      oprot.writeStructEnd();
-
 
17534
    }
-
 
17535
 
-
 
17536
    @Override
-
 
17537
    public String toString() {
-
 
17538
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
-
 
17539
      boolean first = true;
-
 
17540
 
-
 
17541
      sb.append("date:");
-
 
17542
      sb.append(this.date);
-
 
17543
      first = false;
-
 
17544
      sb.append(")");
-
 
17545
      return sb.toString();
-
 
17546
    }
-
 
17547
 
-
 
17548
    public void validate() throws org.apache.thrift.TException {
-
 
17549
      // check for required fields
-
 
17550
    }
-
 
17551
 
-
 
17552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17553
      try {
-
 
17554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17555
      } catch (org.apache.thrift.TException te) {
-
 
17556
        throw new java.io.IOException(te);
-
 
17557
      }
-
 
17558
    }
-
 
17559
 
-
 
17560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17561
      try {
-
 
17562
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
17563
        __isset_bit_vector = new BitSet(1);
-
 
17564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17565
      } catch (org.apache.thrift.TException te) {
-
 
17566
        throw new java.io.IOException(te);
-
 
17567
      }
-
 
17568
    }
-
 
17569
 
-
 
17570
  }
-
 
17571
 
-
 
17572
  public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
-
 
17574
 
-
 
17575
    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);
-
 
17576
 
-
 
17577
    private List<InventoryAvailability> success; // required
-
 
17578
 
-
 
17579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17581
      SUCCESS((short)0, "success");
-
 
17582
 
-
 
17583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17584
 
-
 
17585
      static {
-
 
17586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17587
          byName.put(field.getFieldName(), field);
-
 
17588
        }
-
 
17589
      }
-
 
17590
 
-
 
17591
      /**
-
 
17592
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17593
       */
-
 
17594
      public static _Fields findByThriftId(int fieldId) {
-
 
17595
        switch(fieldId) {
-
 
17596
          case 0: // SUCCESS
-
 
17597
            return SUCCESS;
-
 
17598
          default:
-
 
17599
            return null;
-
 
17600
        }
-
 
17601
      }
-
 
17602
 
-
 
17603
      /**
-
 
17604
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17605
       * if it is not found.
-
 
17606
       */
-
 
17607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17608
        _Fields fields = findByThriftId(fieldId);
-
 
17609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17610
        return fields;
-
 
17611
      }
-
 
17612
 
-
 
17613
      /**
-
 
17614
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17615
       */
-
 
17616
      public static _Fields findByName(String name) {
-
 
17617
        return byName.get(name);
-
 
17618
      }
-
 
17619
 
-
 
17620
      private final short _thriftId;
-
 
17621
      private final String _fieldName;
-
 
17622
 
-
 
17623
      _Fields(short thriftId, String fieldName) {
-
 
17624
        _thriftId = thriftId;
-
 
17625
        _fieldName = fieldName;
-
 
17626
      }
-
 
17627
 
-
 
17628
      public short getThriftFieldId() {
-
 
17629
        return _thriftId;
-
 
17630
      }
-
 
17631
 
-
 
17632
      public String getFieldName() {
-
 
17633
        return _fieldName;
-
 
17634
      }
-
 
17635
    }
-
 
17636
 
-
 
17637
    // isset id assignments
-
 
17638
 
-
 
17639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17640
    static {
-
 
17641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17642
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
17644
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
-
 
17645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
-
 
17647
    }
-
 
17648
 
-
 
17649
    public getHistoricNonSerializedInventoryByScans_result() {
-
 
17650
    }
-
 
17651
 
-
 
17652
    public getHistoricNonSerializedInventoryByScans_result(
-
 
17653
      List<InventoryAvailability> success)
-
 
17654
    {
-
 
17655
      this();
-
 
17656
      this.success = success;
-
 
17657
    }
-
 
17658
 
-
 
17659
    /**
-
 
17660
     * Performs a deep copy on <i>other</i>.
-
 
17661
     */
-
 
17662
    public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
-
 
17663
      if (other.isSetSuccess()) {
-
 
17664
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
-
 
17665
        for (InventoryAvailability other_element : other.success) {
-
 
17666
          __this__success.add(new InventoryAvailability(other_element));
-
 
17667
        }
-
 
17668
        this.success = __this__success;
-
 
17669
      }
-
 
17670
    }
-
 
17671
 
-
 
17672
    public getHistoricNonSerializedInventoryByScans_result deepCopy() {
-
 
17673
      return new getHistoricNonSerializedInventoryByScans_result(this);
-
 
17674
    }
-
 
17675
 
-
 
17676
    @Override
-
 
17677
    public void clear() {
-
 
17678
      this.success = null;
-
 
17679
    }
-
 
17680
 
-
 
17681
    public int getSuccessSize() {
-
 
17682
      return (this.success == null) ? 0 : this.success.size();
-
 
17683
    }
-
 
17684
 
-
 
17685
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
-
 
17686
      return (this.success == null) ? null : this.success.iterator();
-
 
17687
    }
-
 
17688
 
-
 
17689
    public void addToSuccess(InventoryAvailability elem) {
-
 
17690
      if (this.success == null) {
-
 
17691
        this.success = new ArrayList<InventoryAvailability>();
-
 
17692
      }
-
 
17693
      this.success.add(elem);
-
 
17694
    }
-
 
17695
 
-
 
17696
    public List<InventoryAvailability> getSuccess() {
-
 
17697
      return this.success;
-
 
17698
    }
-
 
17699
 
-
 
17700
    public void setSuccess(List<InventoryAvailability> success) {
-
 
17701
      this.success = success;
-
 
17702
    }
-
 
17703
 
-
 
17704
    public void unsetSuccess() {
-
 
17705
      this.success = null;
-
 
17706
    }
-
 
17707
 
-
 
17708
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17709
    public boolean isSetSuccess() {
-
 
17710
      return this.success != null;
-
 
17711
    }
-
 
17712
 
-
 
17713
    public void setSuccessIsSet(boolean value) {
-
 
17714
      if (!value) {
-
 
17715
        this.success = null;
-
 
17716
      }
-
 
17717
    }
-
 
17718
 
-
 
17719
    public void setFieldValue(_Fields field, Object value) {
-
 
17720
      switch (field) {
-
 
17721
      case SUCCESS:
-
 
17722
        if (value == null) {
-
 
17723
          unsetSuccess();
-
 
17724
        } else {
-
 
17725
          setSuccess((List<InventoryAvailability>)value);
-
 
17726
        }
-
 
17727
        break;
-
 
17728
 
-
 
17729
      }
-
 
17730
    }
-
 
17731
 
-
 
17732
    public Object getFieldValue(_Fields field) {
-
 
17733
      switch (field) {
-
 
17734
      case SUCCESS:
-
 
17735
        return getSuccess();
-
 
17736
 
-
 
17737
      }
-
 
17738
      throw new IllegalStateException();
-
 
17739
    }
-
 
17740
 
-
 
17741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17742
    public boolean isSet(_Fields field) {
-
 
17743
      if (field == null) {
-
 
17744
        throw new IllegalArgumentException();
-
 
17745
      }
-
 
17746
 
-
 
17747
      switch (field) {
-
 
17748
      case SUCCESS:
-
 
17749
        return isSetSuccess();
-
 
17750
      }
-
 
17751
      throw new IllegalStateException();
-
 
17752
    }
-
 
17753
 
-
 
17754
    @Override
-
 
17755
    public boolean equals(Object that) {
-
 
17756
      if (that == null)
-
 
17757
        return false;
-
 
17758
      if (that instanceof getHistoricNonSerializedInventoryByScans_result)
-
 
17759
        return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
-
 
17760
      return false;
-
 
17761
    }
-
 
17762
 
-
 
17763
    public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
-
 
17764
      if (that == null)
-
 
17765
        return false;
-
 
17766
 
-
 
17767
      boolean this_present_success = true && this.isSetSuccess();
-
 
17768
      boolean that_present_success = true && that.isSetSuccess();
-
 
17769
      if (this_present_success || that_present_success) {
-
 
17770
        if (!(this_present_success && that_present_success))
-
 
17771
          return false;
-
 
17772
        if (!this.success.equals(that.success))
-
 
17773
          return false;
-
 
17774
      }
-
 
17775
 
-
 
17776
      return true;
-
 
17777
    }
-
 
17778
 
-
 
17779
    @Override
-
 
17780
    public int hashCode() {
-
 
17781
      return 0;
-
 
17782
    }
-
 
17783
 
-
 
17784
    public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
-
 
17785
      if (!getClass().equals(other.getClass())) {
-
 
17786
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17787
      }
-
 
17788
 
-
 
17789
      int lastComparison = 0;
-
 
17790
      getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
-
 
17791
 
-
 
17792
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17793
      if (lastComparison != 0) {
-
 
17794
        return lastComparison;
-
 
17795
      }
-
 
17796
      if (isSetSuccess()) {
-
 
17797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17798
        if (lastComparison != 0) {
-
 
17799
          return lastComparison;
-
 
17800
        }
-
 
17801
      }
-
 
17802
      return 0;
-
 
17803
    }
-
 
17804
 
-
 
17805
    public _Fields fieldForId(int fieldId) {
-
 
17806
      return _Fields.findByThriftId(fieldId);
-
 
17807
    }
-
 
17808
 
-
 
17809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17810
      org.apache.thrift.protocol.TField field;
-
 
17811
      iprot.readStructBegin();
-
 
17812
      while (true)
-
 
17813
      {
-
 
17814
        field = iprot.readFieldBegin();
-
 
17815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17816
          break;
-
 
17817
        }
-
 
17818
        switch (field.id) {
-
 
17819
          case 0: // SUCCESS
-
 
17820
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
17821
              {
-
 
17822
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
-
 
17823
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
-
 
17824
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
-
 
17825
                {
-
 
17826
                  InventoryAvailability _elem54; // required
-
 
17827
                  _elem54 = new InventoryAvailability();
-
 
17828
                  _elem54.read(iprot);
-
 
17829
                  this.success.add(_elem54);
-
 
17830
                }
-
 
17831
                iprot.readListEnd();
-
 
17832
              }
-
 
17833
            } else { 
-
 
17834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17835
            }
-
 
17836
            break;
-
 
17837
          default:
-
 
17838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17839
        }
-
 
17840
        iprot.readFieldEnd();
-
 
17841
      }
-
 
17842
      iprot.readStructEnd();
-
 
17843
      validate();
-
 
17844
    }
-
 
17845
 
-
 
17846
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17847
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17848
 
-
 
17849
      if (this.isSetSuccess()) {
-
 
17850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17851
        {
-
 
17852
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
17853
          for (InventoryAvailability _iter55 : this.success)
-
 
17854
          {
-
 
17855
            _iter55.write(oprot);
-
 
17856
          }
-
 
17857
          oprot.writeListEnd();
-
 
17858
        }
-
 
17859
        oprot.writeFieldEnd();
-
 
17860
      }
-
 
17861
      oprot.writeFieldStop();
-
 
17862
      oprot.writeStructEnd();
-
 
17863
    }
-
 
17864
 
-
 
17865
    @Override
-
 
17866
    public String toString() {
-
 
17867
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
-
 
17868
      boolean first = true;
-
 
17869
 
-
 
17870
      sb.append("success:");
-
 
17871
      if (this.success == null) {
-
 
17872
        sb.append("null");
-
 
17873
      } else {
-
 
17874
        sb.append(this.success);
-
 
17875
      }
-
 
17876
      first = false;
-
 
17877
      sb.append(")");
-
 
17878
      return sb.toString();
-
 
17879
    }
-
 
17880
 
-
 
17881
    public void validate() throws org.apache.thrift.TException {
-
 
17882
      // check for required fields
-
 
17883
    }
-
 
17884
 
-
 
17885
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17886
      try {
-
 
17887
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17888
      } catch (org.apache.thrift.TException te) {
-
 
17889
        throw new java.io.IOException(te);
-
 
17890
      }
-
 
17891
    }
-
 
17892
 
-
 
17893
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17894
      try {
-
 
17895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17896
      } catch (org.apache.thrift.TException te) {
-
 
17897
        throw new java.io.IOException(te);
-
 
17898
      }
-
 
17899
    }
-
 
17900
 
-
 
17901
  }
-
 
17902
 
-
 
17903
  public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
-
 
17905
 
-
 
17906
    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);
-
 
17907
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
17908
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
17909
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
17910
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
17911
    private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
-
 
17912
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)7);
-
 
17913
 
-
 
17914
    private long itemId; // required
-
 
17915
    private String serialNumber; // required
-
 
17916
    private String itemNumber; // required
-
 
17917
    private String invoiceNumber; // required
-
 
17918
    private long warehouseId; // required
-
 
17919
    private double unitPrice; // required
-
 
17920
    private long orderId; // required
-
 
17921
 
-
 
17922
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17923
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17924
      ITEM_ID((short)1, "itemId"),
-
 
17925
      SERIAL_NUMBER((short)2, "serialNumber"),
-
 
17926
      ITEM_NUMBER((short)3, "itemNumber"),
-
 
17927
      INVOICE_NUMBER((short)4, "invoiceNumber"),
-
 
17928
      WAREHOUSE_ID((short)5, "warehouseId"),
-
 
17929
      UNIT_PRICE((short)6, "unitPrice"),
-
 
17930
      ORDER_ID((short)7, "orderId");
-
 
17931
 
-
 
17932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17933
 
-
 
17934
      static {
-
 
17935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17936
          byName.put(field.getFieldName(), field);
-
 
17937
        }
-
 
17938
      }
-
 
17939
 
-
 
17940
      /**
-
 
17941
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17942
       */
-
 
17943
      public static _Fields findByThriftId(int fieldId) {
-
 
17944
        switch(fieldId) {
-
 
17945
          case 1: // ITEM_ID
-
 
17946
            return ITEM_ID;
-
 
17947
          case 2: // SERIAL_NUMBER
-
 
17948
            return SERIAL_NUMBER;
-
 
17949
          case 3: // ITEM_NUMBER
-
 
17950
            return ITEM_NUMBER;
-
 
17951
          case 4: // INVOICE_NUMBER
-
 
17952
            return INVOICE_NUMBER;
-
 
17953
          case 5: // WAREHOUSE_ID
-
 
17954
            return WAREHOUSE_ID;
-
 
17955
          case 6: // UNIT_PRICE
-
 
17956
            return UNIT_PRICE;
-
 
17957
          case 7: // ORDER_ID
-
 
17958
            return ORDER_ID;
-
 
17959
          default:
-
 
17960
            return null;
-
 
17961
        }
-
 
17962
      }
-
 
17963
 
-
 
17964
      /**
-
 
17965
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17966
       * if it is not found.
-
 
17967
       */
-
 
17968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17969
        _Fields fields = findByThriftId(fieldId);
-
 
17970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17971
        return fields;
-
 
17972
      }
-
 
17973
 
-
 
17974
      /**
-
 
17975
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17976
       */
-
 
17977
      public static _Fields findByName(String name) {
-
 
17978
        return byName.get(name);
-
 
17979
      }
-
 
17980
 
-
 
17981
      private final short _thriftId;
-
 
17982
      private final String _fieldName;
-
 
17983
 
-
 
17984
      _Fields(short thriftId, String fieldName) {
-
 
17985
        _thriftId = thriftId;
-
 
17986
        _fieldName = fieldName;
-
 
17987
      }
-
 
17988
 
-
 
17989
      public short getThriftFieldId() {
-
 
17990
        return _thriftId;
-
 
17991
      }
-
 
17992
 
-
 
17993
      public String getFieldName() {
-
 
17994
        return _fieldName;
-
 
17995
      }
-
 
17996
    }
-
 
17997
 
-
 
17998
    // isset id assignments
-
 
17999
    private static final int __ITEMID_ISSET_ID = 0;
-
 
18000
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
18001
    private static final int __UNITPRICE_ISSET_ID = 2;
-
 
18002
    private static final int __ORDERID_ISSET_ID = 3;
-
 
18003
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
18004
 
-
 
18005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18006
    static {
-
 
18007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18008
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
18010
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
18012
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
18014
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
18016
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
18018
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
18020
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
18022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
-
 
18024
    }
-
 
18025
 
-
 
18026
    public scanForOursExternalSale_args() {
-
 
18027
    }
-
 
18028
 
-
 
18029
    public scanForOursExternalSale_args(
-
 
18030
      long itemId,
-
 
18031
      String serialNumber,
-
 
18032
      String itemNumber,
-
 
18033
      String invoiceNumber,
-
 
18034
      long warehouseId,
-
 
18035
      double unitPrice,
-
 
18036
      long orderId)
-
 
18037
    {
-
 
18038
      this();
-
 
18039
      this.itemId = itemId;
-
 
18040
      setItemIdIsSet(true);
-
 
18041
      this.serialNumber = serialNumber;
-
 
18042
      this.itemNumber = itemNumber;
-
 
18043
      this.invoiceNumber = invoiceNumber;
-
 
18044
      this.warehouseId = warehouseId;
-
 
18045
      setWarehouseIdIsSet(true);
-
 
18046
      this.unitPrice = unitPrice;
-
 
18047
      setUnitPriceIsSet(true);
-
 
18048
      this.orderId = orderId;
-
 
18049
      setOrderIdIsSet(true);
-
 
18050
    }
-
 
18051
 
-
 
18052
    /**
-
 
18053
     * Performs a deep copy on <i>other</i>.
-
 
18054
     */
-
 
18055
    public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
-
 
18056
      __isset_bit_vector.clear();
-
 
18057
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
18058
      this.itemId = other.itemId;
-
 
18059
      if (other.isSetSerialNumber()) {
-
 
18060
        this.serialNumber = other.serialNumber;
-
 
18061
      }
-
 
18062
      if (other.isSetItemNumber()) {
-
 
18063
        this.itemNumber = other.itemNumber;
-
 
18064
      }
-
 
18065
      if (other.isSetInvoiceNumber()) {
-
 
18066
        this.invoiceNumber = other.invoiceNumber;
-
 
18067
      }
-
 
18068
      this.warehouseId = other.warehouseId;
-
 
18069
      this.unitPrice = other.unitPrice;
-
 
18070
      this.orderId = other.orderId;
-
 
18071
    }
-
 
18072
 
-
 
18073
    public scanForOursExternalSale_args deepCopy() {
-
 
18074
      return new scanForOursExternalSale_args(this);
-
 
18075
    }
-
 
18076
 
-
 
18077
    @Override
-
 
18078
    public void clear() {
-
 
18079
      setItemIdIsSet(false);
-
 
18080
      this.itemId = 0;
-
 
18081
      this.serialNumber = null;
-
 
18082
      this.itemNumber = null;
-
 
18083
      this.invoiceNumber = null;
-
 
18084
      setWarehouseIdIsSet(false);
-
 
18085
      this.warehouseId = 0;
-
 
18086
      setUnitPriceIsSet(false);
-
 
18087
      this.unitPrice = 0.0;
-
 
18088
      setOrderIdIsSet(false);
-
 
18089
      this.orderId = 0;
-
 
18090
    }
-
 
18091
 
-
 
18092
    public long getItemId() {
-
 
18093
      return this.itemId;
-
 
18094
    }
-
 
18095
 
-
 
18096
    public void setItemId(long itemId) {
-
 
18097
      this.itemId = itemId;
-
 
18098
      setItemIdIsSet(true);
-
 
18099
    }
-
 
18100
 
-
 
18101
    public void unsetItemId() {
-
 
18102
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
18103
    }
-
 
18104
 
-
 
18105
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
18106
    public boolean isSetItemId() {
-
 
18107
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
18108
    }
-
 
18109
 
-
 
18110
    public void setItemIdIsSet(boolean value) {
-
 
18111
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
18112
    }
-
 
18113
 
-
 
18114
    public String getSerialNumber() {
-
 
18115
      return this.serialNumber;
-
 
18116
    }
-
 
18117
 
-
 
18118
    public void setSerialNumber(String serialNumber) {
-
 
18119
      this.serialNumber = serialNumber;
-
 
18120
    }
-
 
18121
 
-
 
18122
    public void unsetSerialNumber() {
-
 
18123
      this.serialNumber = null;
-
 
18124
    }
-
 
18125
 
-
 
18126
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
-
 
18127
    public boolean isSetSerialNumber() {
-
 
18128
      return this.serialNumber != null;
-
 
18129
    }
-
 
18130
 
-
 
18131
    public void setSerialNumberIsSet(boolean value) {
-
 
18132
      if (!value) {
-
 
18133
        this.serialNumber = null;
-
 
18134
      }
-
 
18135
    }
-
 
18136
 
-
 
18137
    public String getItemNumber() {
-
 
18138
      return this.itemNumber;
-
 
18139
    }
-
 
18140
 
-
 
18141
    public void setItemNumber(String itemNumber) {
-
 
18142
      this.itemNumber = itemNumber;
-
 
18143
    }
-
 
18144
 
-
 
18145
    public void unsetItemNumber() {
-
 
18146
      this.itemNumber = null;
-
 
18147
    }
-
 
18148
 
-
 
18149
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
-
 
18150
    public boolean isSetItemNumber() {
-
 
18151
      return this.itemNumber != null;
-
 
18152
    }
-
 
18153
 
-
 
18154
    public void setItemNumberIsSet(boolean value) {
-
 
18155
      if (!value) {
-
 
18156
        this.itemNumber = null;
-
 
18157
      }
-
 
18158
    }
-
 
18159
 
-
 
18160
    public String getInvoiceNumber() {
-
 
18161
      return this.invoiceNumber;
-
 
18162
    }
-
 
18163
 
-
 
18164
    public void setInvoiceNumber(String invoiceNumber) {
-
 
18165
      this.invoiceNumber = invoiceNumber;
-
 
18166
    }
-
 
18167
 
-
 
18168
    public void unsetInvoiceNumber() {
-
 
18169
      this.invoiceNumber = null;
-
 
18170
    }
-
 
18171
 
-
 
18172
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
-
 
18173
    public boolean isSetInvoiceNumber() {
-
 
18174
      return this.invoiceNumber != null;
-
 
18175
    }
-
 
18176
 
-
 
18177
    public void setInvoiceNumberIsSet(boolean value) {
-
 
18178
      if (!value) {
-
 
18179
        this.invoiceNumber = null;
-
 
18180
      }
-
 
18181
    }
-
 
18182
 
-
 
18183
    public long getWarehouseId() {
-
 
18184
      return this.warehouseId;
-
 
18185
    }
-
 
18186
 
-
 
18187
    public void setWarehouseId(long warehouseId) {
-
 
18188
      this.warehouseId = warehouseId;
-
 
18189
      setWarehouseIdIsSet(true);
-
 
18190
    }
-
 
18191
 
-
 
18192
    public void unsetWarehouseId() {
-
 
18193
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
18194
    }
-
 
18195
 
-
 
18196
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
18197
    public boolean isSetWarehouseId() {
-
 
18198
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
18199
    }
-
 
18200
 
-
 
18201
    public void setWarehouseIdIsSet(boolean value) {
-
 
18202
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
18203
    }
-
 
18204
 
-
 
18205
    public double getUnitPrice() {
-
 
18206
      return this.unitPrice;
-
 
18207
    }
-
 
18208
 
-
 
18209
    public void setUnitPrice(double unitPrice) {
-
 
18210
      this.unitPrice = unitPrice;
-
 
18211
      setUnitPriceIsSet(true);
-
 
18212
    }
-
 
18213
 
-
 
18214
    public void unsetUnitPrice() {
-
 
18215
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
-
 
18216
    }
-
 
18217
 
-
 
18218
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
-
 
18219
    public boolean isSetUnitPrice() {
-
 
18220
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
-
 
18221
    }
-
 
18222
 
-
 
18223
    public void setUnitPriceIsSet(boolean value) {
-
 
18224
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
-
 
18225
    }
-
 
18226
 
-
 
18227
    public long getOrderId() {
-
 
18228
      return this.orderId;
-
 
18229
    }
-
 
18230
 
-
 
18231
    public void setOrderId(long orderId) {
-
 
18232
      this.orderId = orderId;
-
 
18233
      setOrderIdIsSet(true);
-
 
18234
    }
-
 
18235
 
-
 
18236
    public void unsetOrderId() {
-
 
18237
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
18238
    }
-
 
18239
 
-
 
18240
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
18241
    public boolean isSetOrderId() {
-
 
18242
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
18243
    }
-
 
18244
 
-
 
18245
    public void setOrderIdIsSet(boolean value) {
-
 
18246
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
18247
    }
-
 
18248
 
-
 
18249
    public void setFieldValue(_Fields field, Object value) {
-
 
18250
      switch (field) {
-
 
18251
      case ITEM_ID:
-
 
18252
        if (value == null) {
-
 
18253
          unsetItemId();
-
 
18254
        } else {
-
 
18255
          setItemId((Long)value);
-
 
18256
        }
-
 
18257
        break;
-
 
18258
 
-
 
18259
      case SERIAL_NUMBER:
-
 
18260
        if (value == null) {
-
 
18261
          unsetSerialNumber();
-
 
18262
        } else {
-
 
18263
          setSerialNumber((String)value);
-
 
18264
        }
-
 
18265
        break;
-
 
18266
 
-
 
18267
      case ITEM_NUMBER:
-
 
18268
        if (value == null) {
-
 
18269
          unsetItemNumber();
-
 
18270
        } else {
-
 
18271
          setItemNumber((String)value);
-
 
18272
        }
-
 
18273
        break;
-
 
18274
 
-
 
18275
      case INVOICE_NUMBER:
-
 
18276
        if (value == null) {
-
 
18277
          unsetInvoiceNumber();
-
 
18278
        } else {
-
 
18279
          setInvoiceNumber((String)value);
-
 
18280
        }
-
 
18281
        break;
-
 
18282
 
-
 
18283
      case WAREHOUSE_ID:
-
 
18284
        if (value == null) {
-
 
18285
          unsetWarehouseId();
-
 
18286
        } else {
-
 
18287
          setWarehouseId((Long)value);
-
 
18288
        }
-
 
18289
        break;
-
 
18290
 
-
 
18291
      case UNIT_PRICE:
-
 
18292
        if (value == null) {
-
 
18293
          unsetUnitPrice();
-
 
18294
        } else {
-
 
18295
          setUnitPrice((Double)value);
-
 
18296
        }
-
 
18297
        break;
-
 
18298
 
-
 
18299
      case ORDER_ID:
-
 
18300
        if (value == null) {
-
 
18301
          unsetOrderId();
-
 
18302
        } else {
-
 
18303
          setOrderId((Long)value);
-
 
18304
        }
-
 
18305
        break;
-
 
18306
 
-
 
18307
      }
-
 
18308
    }
-
 
18309
 
-
 
18310
    public Object getFieldValue(_Fields field) {
-
 
18311
      switch (field) {
-
 
18312
      case ITEM_ID:
-
 
18313
        return Long.valueOf(getItemId());
-
 
18314
 
-
 
18315
      case SERIAL_NUMBER:
-
 
18316
        return getSerialNumber();
-
 
18317
 
-
 
18318
      case ITEM_NUMBER:
-
 
18319
        return getItemNumber();
-
 
18320
 
-
 
18321
      case INVOICE_NUMBER:
-
 
18322
        return getInvoiceNumber();
-
 
18323
 
-
 
18324
      case WAREHOUSE_ID:
-
 
18325
        return Long.valueOf(getWarehouseId());
-
 
18326
 
-
 
18327
      case UNIT_PRICE:
-
 
18328
        return Double.valueOf(getUnitPrice());
-
 
18329
 
-
 
18330
      case ORDER_ID:
-
 
18331
        return Long.valueOf(getOrderId());
-
 
18332
 
-
 
18333
      }
-
 
18334
      throw new IllegalStateException();
-
 
18335
    }
-
 
18336
 
-
 
18337
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18338
    public boolean isSet(_Fields field) {
-
 
18339
      if (field == null) {
-
 
18340
        throw new IllegalArgumentException();
-
 
18341
      }
-
 
18342
 
-
 
18343
      switch (field) {
-
 
18344
      case ITEM_ID:
-
 
18345
        return isSetItemId();
-
 
18346
      case SERIAL_NUMBER:
-
 
18347
        return isSetSerialNumber();
-
 
18348
      case ITEM_NUMBER:
-
 
18349
        return isSetItemNumber();
-
 
18350
      case INVOICE_NUMBER:
-
 
18351
        return isSetInvoiceNumber();
-
 
18352
      case WAREHOUSE_ID:
-
 
18353
        return isSetWarehouseId();
-
 
18354
      case UNIT_PRICE:
-
 
18355
        return isSetUnitPrice();
-
 
18356
      case ORDER_ID:
-
 
18357
        return isSetOrderId();
-
 
18358
      }
-
 
18359
      throw new IllegalStateException();
-
 
18360
    }
-
 
18361
 
-
 
18362
    @Override
-
 
18363
    public boolean equals(Object that) {
-
 
18364
      if (that == null)
-
 
18365
        return false;
-
 
18366
      if (that instanceof scanForOursExternalSale_args)
-
 
18367
        return this.equals((scanForOursExternalSale_args)that);
-
 
18368
      return false;
-
 
18369
    }
-
 
18370
 
-
 
18371
    public boolean equals(scanForOursExternalSale_args that) {
-
 
18372
      if (that == null)
-
 
18373
        return false;
-
 
18374
 
-
 
18375
      boolean this_present_itemId = true;
-
 
18376
      boolean that_present_itemId = true;
-
 
18377
      if (this_present_itemId || that_present_itemId) {
-
 
18378
        if (!(this_present_itemId && that_present_itemId))
-
 
18379
          return false;
-
 
18380
        if (this.itemId != that.itemId)
-
 
18381
          return false;
-
 
18382
      }
-
 
18383
 
-
 
18384
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
-
 
18385
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
-
 
18386
      if (this_present_serialNumber || that_present_serialNumber) {
-
 
18387
        if (!(this_present_serialNumber && that_present_serialNumber))
-
 
18388
          return false;
-
 
18389
        if (!this.serialNumber.equals(that.serialNumber))
-
 
18390
          return false;
-
 
18391
      }
-
 
18392
 
-
 
18393
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
18394
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
18395
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
18396
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
18397
          return false;
-
 
18398
        if (!this.itemNumber.equals(that.itemNumber))
-
 
18399
          return false;
-
 
18400
      }
-
 
18401
 
-
 
18402
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
-
 
18403
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
-
 
18404
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
-
 
18405
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
-
 
18406
          return false;
-
 
18407
        if (!this.invoiceNumber.equals(that.invoiceNumber))
-
 
18408
          return false;
-
 
18409
      }
-
 
18410
 
-
 
18411
      boolean this_present_warehouseId = true;
-
 
18412
      boolean that_present_warehouseId = true;
-
 
18413
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
18414
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
18415
          return false;
-
 
18416
        if (this.warehouseId != that.warehouseId)
-
 
18417
          return false;
-
 
18418
      }
-
 
18419
 
-
 
18420
      boolean this_present_unitPrice = true;
-
 
18421
      boolean that_present_unitPrice = true;
-
 
18422
      if (this_present_unitPrice || that_present_unitPrice) {
-
 
18423
        if (!(this_present_unitPrice && that_present_unitPrice))
-
 
18424
          return false;
-
 
18425
        if (this.unitPrice != that.unitPrice)
-
 
18426
          return false;
-
 
18427
      }
-
 
18428
 
-
 
18429
      boolean this_present_orderId = true;
-
 
18430
      boolean that_present_orderId = true;
-
 
18431
      if (this_present_orderId || that_present_orderId) {
-
 
18432
        if (!(this_present_orderId && that_present_orderId))
-
 
18433
          return false;
-
 
18434
        if (this.orderId != that.orderId)
-
 
18435
          return false;
-
 
18436
      }
-
 
18437
 
-
 
18438
      return true;
-
 
18439
    }
-
 
18440
 
-
 
18441
    @Override
-
 
18442
    public int hashCode() {
-
 
18443
      return 0;
-
 
18444
    }
-
 
18445
 
-
 
18446
    public int compareTo(scanForOursExternalSale_args other) {
-
 
18447
      if (!getClass().equals(other.getClass())) {
-
 
18448
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18449
      }
-
 
18450
 
-
 
18451
      int lastComparison = 0;
-
 
18452
      scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
-
 
18453
 
-
 
18454
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
18455
      if (lastComparison != 0) {
-
 
18456
        return lastComparison;
-
 
18457
      }
-
 
18458
      if (isSetItemId()) {
-
 
18459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
18460
        if (lastComparison != 0) {
-
 
18461
          return lastComparison;
-
 
18462
        }
-
 
18463
      }
-
 
18464
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
-
 
18465
      if (lastComparison != 0) {
-
 
18466
        return lastComparison;
-
 
18467
      }
-
 
18468
      if (isSetSerialNumber()) {
-
 
18469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
-
 
18470
        if (lastComparison != 0) {
-
 
18471
          return lastComparison;
-
 
18472
        }
-
 
18473
      }
-
 
18474
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
-
 
18475
      if (lastComparison != 0) {
-
 
18476
        return lastComparison;
-
 
18477
      }
-
 
18478
      if (isSetItemNumber()) {
-
 
18479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
-
 
18480
        if (lastComparison != 0) {
-
 
18481
          return lastComparison;
-
 
18482
        }
-
 
18483
      }
-
 
18484
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
-
 
18485
      if (lastComparison != 0) {
-
 
18486
        return lastComparison;
-
 
18487
      }
-
 
18488
      if (isSetInvoiceNumber()) {
-
 
18489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
-
 
18490
        if (lastComparison != 0) {
-
 
18491
          return lastComparison;
-
 
18492
        }
-
 
18493
      }
-
 
18494
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
18495
      if (lastComparison != 0) {
-
 
18496
        return lastComparison;
-
 
18497
      }
-
 
18498
      if (isSetWarehouseId()) {
-
 
18499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
18500
        if (lastComparison != 0) {
-
 
18501
          return lastComparison;
-
 
18502
        }
-
 
18503
      }
-
 
18504
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
-
 
18505
      if (lastComparison != 0) {
-
 
18506
        return lastComparison;
-
 
18507
      }
-
 
18508
      if (isSetUnitPrice()) {
-
 
18509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
-
 
18510
        if (lastComparison != 0) {
-
 
18511
          return lastComparison;
-
 
18512
        }
-
 
18513
      }
-
 
18514
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
18515
      if (lastComparison != 0) {
-
 
18516
        return lastComparison;
-
 
18517
      }
-
 
18518
      if (isSetOrderId()) {
-
 
18519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
18520
        if (lastComparison != 0) {
-
 
18521
          return lastComparison;
-
 
18522
        }
-
 
18523
      }
-
 
18524
      return 0;
-
 
18525
    }
-
 
18526
 
-
 
18527
    public _Fields fieldForId(int fieldId) {
-
 
18528
      return _Fields.findByThriftId(fieldId);
-
 
18529
    }
-
 
18530
 
-
 
18531
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18532
      org.apache.thrift.protocol.TField field;
-
 
18533
      iprot.readStructBegin();
-
 
18534
      while (true)
-
 
18535
      {
-
 
18536
        field = iprot.readFieldBegin();
-
 
18537
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18538
          break;
-
 
18539
        }
-
 
18540
        switch (field.id) {
-
 
18541
          case 1: // ITEM_ID
-
 
18542
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18543
              this.itemId = iprot.readI64();
-
 
18544
              setItemIdIsSet(true);
-
 
18545
            } else { 
-
 
18546
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18547
            }
-
 
18548
            break;
-
 
18549
          case 2: // SERIAL_NUMBER
-
 
18550
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
18551
              this.serialNumber = iprot.readString();
-
 
18552
            } else { 
-
 
18553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18554
            }
-
 
18555
            break;
-
 
18556
          case 3: // ITEM_NUMBER
-
 
18557
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
18558
              this.itemNumber = iprot.readString();
-
 
18559
            } else { 
-
 
18560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18561
            }
-
 
18562
            break;
-
 
18563
          case 4: // INVOICE_NUMBER
-
 
18564
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
18565
              this.invoiceNumber = iprot.readString();
-
 
18566
            } else { 
-
 
18567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18568
            }
-
 
18569
            break;
-
 
18570
          case 5: // WAREHOUSE_ID
-
 
18571
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18572
              this.warehouseId = iprot.readI64();
-
 
18573
              setWarehouseIdIsSet(true);
-
 
18574
            } else { 
-
 
18575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18576
            }
-
 
18577
            break;
-
 
18578
          case 6: // UNIT_PRICE
-
 
18579
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
18580
              this.unitPrice = iprot.readDouble();
-
 
18581
              setUnitPriceIsSet(true);
-
 
18582
            } else { 
-
 
18583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18584
            }
-
 
18585
            break;
-
 
18586
          case 7: // ORDER_ID
-
 
18587
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18588
              this.orderId = iprot.readI64();
-
 
18589
              setOrderIdIsSet(true);
-
 
18590
            } else { 
-
 
18591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18592
            }
-
 
18593
            break;
-
 
18594
          default:
-
 
18595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18596
        }
-
 
18597
        iprot.readFieldEnd();
-
 
18598
      }
-
 
18599
      iprot.readStructEnd();
-
 
18600
      validate();
-
 
18601
    }
-
 
18602
 
-
 
18603
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18604
      validate();
-
 
18605
 
-
 
18606
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18607
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
18608
      oprot.writeI64(this.itemId);
-
 
18609
      oprot.writeFieldEnd();
-
 
18610
      if (this.serialNumber != null) {
-
 
18611
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
-
 
18612
        oprot.writeString(this.serialNumber);
-
 
18613
        oprot.writeFieldEnd();
-
 
18614
      }
-
 
18615
      if (this.itemNumber != null) {
-
 
18616
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
-
 
18617
        oprot.writeString(this.itemNumber);
-
 
18618
        oprot.writeFieldEnd();
-
 
18619
      }
-
 
18620
      if (this.invoiceNumber != null) {
-
 
18621
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
-
 
18622
        oprot.writeString(this.invoiceNumber);
-
 
18623
        oprot.writeFieldEnd();
-
 
18624
      }
-
 
18625
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
18626
      oprot.writeI64(this.warehouseId);
-
 
18627
      oprot.writeFieldEnd();
-
 
18628
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
-
 
18629
      oprot.writeDouble(this.unitPrice);
-
 
18630
      oprot.writeFieldEnd();
-
 
18631
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
18632
      oprot.writeI64(this.orderId);
-
 
18633
      oprot.writeFieldEnd();
-
 
18634
      oprot.writeFieldStop();
-
 
18635
      oprot.writeStructEnd();
-
 
18636
    }
-
 
18637
 
-
 
18638
    @Override
-
 
18639
    public String toString() {
-
 
18640
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
-
 
18641
      boolean first = true;
-
 
18642
 
-
 
18643
      sb.append("itemId:");
-
 
18644
      sb.append(this.itemId);
-
 
18645
      first = false;
-
 
18646
      if (!first) sb.append(", ");
-
 
18647
      sb.append("serialNumber:");
-
 
18648
      if (this.serialNumber == null) {
-
 
18649
        sb.append("null");
-
 
18650
      } else {
-
 
18651
        sb.append(this.serialNumber);
-
 
18652
      }
-
 
18653
      first = false;
-
 
18654
      if (!first) sb.append(", ");
-
 
18655
      sb.append("itemNumber:");
-
 
18656
      if (this.itemNumber == null) {
-
 
18657
        sb.append("null");
-
 
18658
      } else {
-
 
18659
        sb.append(this.itemNumber);
-
 
18660
      }
-
 
18661
      first = false;
-
 
18662
      if (!first) sb.append(", ");
-
 
18663
      sb.append("invoiceNumber:");
-
 
18664
      if (this.invoiceNumber == null) {
-
 
18665
        sb.append("null");
-
 
18666
      } else {
-
 
18667
        sb.append(this.invoiceNumber);
-
 
18668
      }
-
 
18669
      first = false;
-
 
18670
      if (!first) sb.append(", ");
-
 
18671
      sb.append("warehouseId:");
-
 
18672
      sb.append(this.warehouseId);
-
 
18673
      first = false;
-
 
18674
      if (!first) sb.append(", ");
-
 
18675
      sb.append("unitPrice:");
-
 
18676
      sb.append(this.unitPrice);
-
 
18677
      first = false;
-
 
18678
      if (!first) sb.append(", ");
-
 
18679
      sb.append("orderId:");
-
 
18680
      sb.append(this.orderId);
-
 
18681
      first = false;
-
 
18682
      sb.append(")");
-
 
18683
      return sb.toString();
-
 
18684
    }
-
 
18685
 
-
 
18686
    public void validate() throws org.apache.thrift.TException {
-
 
18687
      // check for required fields
-
 
18688
    }
-
 
18689
 
-
 
18690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18691
      try {
-
 
18692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18693
      } catch (org.apache.thrift.TException te) {
-
 
18694
        throw new java.io.IOException(te);
-
 
18695
      }
-
 
18696
    }
-
 
18697
 
-
 
18698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18699
      try {
-
 
18700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
18701
        __isset_bit_vector = new BitSet(1);
-
 
18702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18703
      } catch (org.apache.thrift.TException te) {
-
 
18704
        throw new java.io.IOException(te);
-
 
18705
      }
-
 
18706
    }
-
 
18707
 
-
 
18708
  }
-
 
18709
 
-
 
18710
  public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable   {
-
 
18711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
-
 
18712
 
-
 
18713
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
18714
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
18715
 
-
 
18716
    private InventoryItem success; // required
-
 
18717
    private WarehouseServiceException ex; // required
-
 
18718
 
-
 
18719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18721
      SUCCESS((short)0, "success"),
-
 
18722
      EX((short)1, "ex");
-
 
18723
 
-
 
18724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18725
 
-
 
18726
      static {
-
 
18727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18728
          byName.put(field.getFieldName(), field);
-
 
18729
        }
-
 
18730
      }
-
 
18731
 
-
 
18732
      /**
-
 
18733
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18734
       */
-
 
18735
      public static _Fields findByThriftId(int fieldId) {
-
 
18736
        switch(fieldId) {
-
 
18737
          case 0: // SUCCESS
-
 
18738
            return SUCCESS;
-
 
18739
          case 1: // EX
-
 
18740
            return EX;
-
 
18741
          default:
-
 
18742
            return null;
-
 
18743
        }
-
 
18744
      }
-
 
18745
 
-
 
18746
      /**
-
 
18747
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18748
       * if it is not found.
-
 
18749
       */
-
 
18750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18751
        _Fields fields = findByThriftId(fieldId);
-
 
18752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18753
        return fields;
-
 
18754
      }
-
 
18755
 
-
 
18756
      /**
-
 
18757
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18758
       */
-
 
18759
      public static _Fields findByName(String name) {
-
 
18760
        return byName.get(name);
-
 
18761
      }
-
 
18762
 
-
 
18763
      private final short _thriftId;
-
 
18764
      private final String _fieldName;
-
 
18765
 
-
 
18766
      _Fields(short thriftId, String fieldName) {
-
 
18767
        _thriftId = thriftId;
-
 
18768
        _fieldName = fieldName;
-
 
18769
      }
-
 
18770
 
-
 
18771
      public short getThriftFieldId() {
-
 
18772
        return _thriftId;
-
 
18773
      }
-
 
18774
 
-
 
18775
      public String getFieldName() {
-
 
18776
        return _fieldName;
-
 
18777
      }
-
 
18778
    }
-
 
18779
 
-
 
18780
    // isset id assignments
-
 
18781
 
-
 
18782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18783
    static {
-
 
18784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18785
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18786
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
18787
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
18789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
-
 
18791
    }
-
 
18792
 
-
 
18793
    public scanForOursExternalSale_result() {
-
 
18794
    }
-
 
18795
 
-
 
18796
    public scanForOursExternalSale_result(
-
 
18797
      InventoryItem success,
-
 
18798
      WarehouseServiceException ex)
-
 
18799
    {
-
 
18800
      this();
-
 
18801
      this.success = success;
-
 
18802
      this.ex = ex;
-
 
18803
    }
-
 
18804
 
-
 
18805
    /**
-
 
18806
     * Performs a deep copy on <i>other</i>.
-
 
18807
     */
-
 
18808
    public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
-
 
18809
      if (other.isSetSuccess()) {
-
 
18810
        this.success = new InventoryItem(other.success);
-
 
18811
      }
-
 
18812
      if (other.isSetEx()) {
-
 
18813
        this.ex = new WarehouseServiceException(other.ex);
-
 
18814
      }
-
 
18815
    }
-
 
18816
 
-
 
18817
    public scanForOursExternalSale_result deepCopy() {
-
 
18818
      return new scanForOursExternalSale_result(this);
-
 
18819
    }
-
 
18820
 
-
 
18821
    @Override
-
 
18822
    public void clear() {
-
 
18823
      this.success = null;
-
 
18824
      this.ex = null;
-
 
18825
    }
-
 
18826
 
-
 
18827
    public InventoryItem getSuccess() {
-
 
18828
      return this.success;
-
 
18829
    }
-
 
18830
 
-
 
18831
    public void setSuccess(InventoryItem success) {
-
 
18832
      this.success = success;
-
 
18833
    }
-
 
18834
 
-
 
18835
    public void unsetSuccess() {
-
 
18836
      this.success = null;
-
 
18837
    }
-
 
18838
 
-
 
18839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
18840
    public boolean isSetSuccess() {
-
 
18841
      return this.success != null;
-
 
18842
    }
-
 
18843
 
-
 
18844
    public void setSuccessIsSet(boolean value) {
-
 
18845
      if (!value) {
-
 
18846
        this.success = null;
-
 
18847
      }
-
 
18848
    }
-
 
18849
 
-
 
18850
    public WarehouseServiceException getEx() {
-
 
18851
      return this.ex;
-
 
18852
    }
-
 
18853
 
-
 
18854
    public void setEx(WarehouseServiceException ex) {
-
 
18855
      this.ex = ex;
-
 
18856
    }
-
 
18857
 
-
 
18858
    public void unsetEx() {
-
 
18859
      this.ex = null;
-
 
18860
    }
-
 
18861
 
-
 
18862
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
18863
    public boolean isSetEx() {
-
 
18864
      return this.ex != null;
-
 
18865
    }
-
 
18866
 
-
 
18867
    public void setExIsSet(boolean value) {
-
 
18868
      if (!value) {
-
 
18869
        this.ex = null;
-
 
18870
      }
-
 
18871
    }
-
 
18872
 
-
 
18873
    public void setFieldValue(_Fields field, Object value) {
-
 
18874
      switch (field) {
-
 
18875
      case SUCCESS:
-
 
18876
        if (value == null) {
-
 
18877
          unsetSuccess();
-
 
18878
        } else {
-
 
18879
          setSuccess((InventoryItem)value);
-
 
18880
        }
-
 
18881
        break;
-
 
18882
 
-
 
18883
      case EX:
-
 
18884
        if (value == null) {
-
 
18885
          unsetEx();
-
 
18886
        } else {
-
 
18887
          setEx((WarehouseServiceException)value);
-
 
18888
        }
-
 
18889
        break;
-
 
18890
 
-
 
18891
      }
-
 
18892
    }
-
 
18893
 
-
 
18894
    public Object getFieldValue(_Fields field) {
-
 
18895
      switch (field) {
-
 
18896
      case SUCCESS:
-
 
18897
        return getSuccess();
-
 
18898
 
-
 
18899
      case EX:
-
 
18900
        return getEx();
-
 
18901
 
-
 
18902
      }
-
 
18903
      throw new IllegalStateException();
-
 
18904
    }
-
 
18905
 
-
 
18906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18907
    public boolean isSet(_Fields field) {
-
 
18908
      if (field == null) {
-
 
18909
        throw new IllegalArgumentException();
-
 
18910
      }
-
 
18911
 
-
 
18912
      switch (field) {
-
 
18913
      case SUCCESS:
-
 
18914
        return isSetSuccess();
-
 
18915
      case EX:
-
 
18916
        return isSetEx();
-
 
18917
      }
-
 
18918
      throw new IllegalStateException();
-
 
18919
    }
-
 
18920
 
-
 
18921
    @Override
-
 
18922
    public boolean equals(Object that) {
-
 
18923
      if (that == null)
-
 
18924
        return false;
-
 
18925
      if (that instanceof scanForOursExternalSale_result)
-
 
18926
        return this.equals((scanForOursExternalSale_result)that);
-
 
18927
      return false;
-
 
18928
    }
-
 
18929
 
-
 
18930
    public boolean equals(scanForOursExternalSale_result that) {
-
 
18931
      if (that == null)
-
 
18932
        return false;
-
 
18933
 
-
 
18934
      boolean this_present_success = true && this.isSetSuccess();
-
 
18935
      boolean that_present_success = true && that.isSetSuccess();
-
 
18936
      if (this_present_success || that_present_success) {
-
 
18937
        if (!(this_present_success && that_present_success))
-
 
18938
          return false;
-
 
18939
        if (!this.success.equals(that.success))
-
 
18940
          return false;
-
 
18941
      }
-
 
18942
 
-
 
18943
      boolean this_present_ex = true && this.isSetEx();
-
 
18944
      boolean that_present_ex = true && that.isSetEx();
-
 
18945
      if (this_present_ex || that_present_ex) {
-
 
18946
        if (!(this_present_ex && that_present_ex))
-
 
18947
          return false;
-
 
18948
        if (!this.ex.equals(that.ex))
-
 
18949
          return false;
-
 
18950
      }
-
 
18951
 
-
 
18952
      return true;
-
 
18953
    }
-
 
18954
 
-
 
18955
    @Override
-
 
18956
    public int hashCode() {
-
 
18957
      return 0;
-
 
18958
    }
-
 
18959
 
-
 
18960
    public int compareTo(scanForOursExternalSale_result other) {
-
 
18961
      if (!getClass().equals(other.getClass())) {
-
 
18962
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18963
      }
-
 
18964
 
-
 
18965
      int lastComparison = 0;
-
 
18966
      scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
-
 
18967
 
-
 
18968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
18969
      if (lastComparison != 0) {
-
 
18970
        return lastComparison;
-
 
18971
      }
-
 
18972
      if (isSetSuccess()) {
-
 
18973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
18974
        if (lastComparison != 0) {
-
 
18975
          return lastComparison;
-
 
18976
        }
-
 
18977
      }
-
 
18978
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
18979
      if (lastComparison != 0) {
-
 
18980
        return lastComparison;
-
 
18981
      }
-
 
18982
      if (isSetEx()) {
-
 
18983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
18984
        if (lastComparison != 0) {
-
 
18985
          return lastComparison;
-
 
18986
        }
-
 
18987
      }
-
 
18988
      return 0;
-
 
18989
    }
-
 
18990
 
-
 
18991
    public _Fields fieldForId(int fieldId) {
-
 
18992
      return _Fields.findByThriftId(fieldId);
-
 
18993
    }
-
 
18994
 
-
 
18995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18996
      org.apache.thrift.protocol.TField field;
-
 
18997
      iprot.readStructBegin();
-
 
18998
      while (true)
-
 
18999
      {
-
 
19000
        field = iprot.readFieldBegin();
-
 
19001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19002
          break;
-
 
19003
        }
-
 
19004
        switch (field.id) {
-
 
19005
          case 0: // SUCCESS
-
 
19006
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
19007
              this.success = new InventoryItem();
-
 
19008
              this.success.read(iprot);
-
 
19009
            } else { 
-
 
19010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19011
            }
-
 
19012
            break;
-
 
19013
          case 1: // EX
-
 
19014
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
19015
              this.ex = new WarehouseServiceException();
-
 
19016
              this.ex.read(iprot);
-
 
19017
            } else { 
-
 
19018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19019
            }
-
 
19020
            break;
-
 
19021
          default:
-
 
19022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19023
        }
-
 
19024
        iprot.readFieldEnd();
-
 
19025
      }
-
 
19026
      iprot.readStructEnd();
-
 
19027
      validate();
-
 
19028
    }
-
 
19029
 
-
 
19030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19032
 
-
 
19033
      if (this.isSetSuccess()) {
-
 
19034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19035
        this.success.write(oprot);
-
 
19036
        oprot.writeFieldEnd();
-
 
19037
      } else if (this.isSetEx()) {
-
 
19038
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
19039
        this.ex.write(oprot);
-
 
19040
        oprot.writeFieldEnd();
-
 
19041
      }
-
 
19042
      oprot.writeFieldStop();
-
 
19043
      oprot.writeStructEnd();
-
 
19044
    }
-
 
19045
 
-
 
19046
    @Override
-
 
19047
    public String toString() {
-
 
19048
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
-
 
19049
      boolean first = true;
-
 
19050
 
-
 
19051
      sb.append("success:");
-
 
19052
      if (this.success == null) {
-
 
19053
        sb.append("null");
-
 
19054
      } else {
-
 
19055
        sb.append(this.success);
-
 
19056
      }
-
 
19057
      first = false;
-
 
19058
      if (!first) sb.append(", ");
-
 
19059
      sb.append("ex:");
-
 
19060
      if (this.ex == null) {
-
 
19061
        sb.append("null");
-
 
19062
      } else {
-
 
19063
        sb.append(this.ex);
-
 
19064
      }
-
 
19065
      first = false;
-
 
19066
      sb.append(")");
-
 
19067
      return sb.toString();
-
 
19068
    }
-
 
19069
 
-
 
19070
    public void validate() throws org.apache.thrift.TException {
-
 
19071
      // check for required fields
-
 
19072
    }
-
 
19073
 
-
 
19074
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19075
      try {
-
 
19076
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19077
      } catch (org.apache.thrift.TException te) {
-
 
19078
        throw new java.io.IOException(te);
-
 
19079
      }
-
 
19080
    }
-
 
19081
 
-
 
19082
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19083
      try {
-
 
19084
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19085
      } catch (org.apache.thrift.TException te) {
-
 
19086
        throw new java.io.IOException(te);
-
 
19087
      }
-
 
19088
    }
-
 
19089
 
-
 
19090
  }
-
 
19091
 
-
 
19092
  public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
19093
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
-
 
19094
 
-
 
19095
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
19096
    private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
19097
 
-
 
19098
    private long orderId; // required
-
 
19099
    private double unitPrice; // required
-
 
19100
 
-
 
19101
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19102
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19103
      ORDER_ID((short)1, "orderId"),
-
 
19104
      UNIT_PRICE((short)2, "unitPrice");
-
 
19105
 
-
 
19106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19107
 
-
 
19108
      static {
-
 
19109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19110
          byName.put(field.getFieldName(), field);
-
 
19111
        }
-
 
19112
      }
-
 
19113
 
-
 
19114
      /**
-
 
19115
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19116
       */
-
 
19117
      public static _Fields findByThriftId(int fieldId) {
-
 
19118
        switch(fieldId) {
-
 
19119
          case 1: // ORDER_ID
-
 
19120
            return ORDER_ID;
-
 
19121
          case 2: // UNIT_PRICE
-
 
19122
            return UNIT_PRICE;
-
 
19123
          default:
-
 
19124
            return null;
-
 
19125
        }
-
 
19126
      }
-
 
19127
 
-
 
19128
      /**
-
 
19129
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19130
       * if it is not found.
-
 
19131
       */
-
 
19132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19133
        _Fields fields = findByThriftId(fieldId);
-
 
19134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19135
        return fields;
-
 
19136
      }
-
 
19137
 
-
 
19138
      /**
-
 
19139
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19140
       */
-
 
19141
      public static _Fields findByName(String name) {
-
 
19142
        return byName.get(name);
-
 
19143
      }
-
 
19144
 
-
 
19145
      private final short _thriftId;
-
 
19146
      private final String _fieldName;
-
 
19147
 
-
 
19148
      _Fields(short thriftId, String fieldName) {
-
 
19149
        _thriftId = thriftId;
-
 
19150
        _fieldName = fieldName;
-
 
19151
      }
-
 
19152
 
-
 
19153
      public short getThriftFieldId() {
-
 
19154
        return _thriftId;
-
 
19155
      }
-
 
19156
 
-
 
19157
      public String getFieldName() {
-
 
19158
        return _fieldName;
-
 
19159
      }
-
 
19160
    }
-
 
19161
 
-
 
19162
    // isset id assignments
-
 
19163
    private static final int __ORDERID_ISSET_ID = 0;
-
 
19164
    private static final int __UNITPRICE_ISSET_ID = 1;
-
 
19165
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
19166
 
-
 
19167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19168
    static {
-
 
19169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19170
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19172
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
19174
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19175
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
-
 
19176
    }
-
 
19177
 
-
 
19178
    public scanForOursExternalSaleReturn_args() {
-
 
19179
    }
-
 
19180
 
-
 
19181
    public scanForOursExternalSaleReturn_args(
-
 
19182
      long orderId,
-
 
19183
      double unitPrice)
-
 
19184
    {
-
 
19185
      this();
-
 
19186
      this.orderId = orderId;
-
 
19187
      setOrderIdIsSet(true);
-
 
19188
      this.unitPrice = unitPrice;
-
 
19189
      setUnitPriceIsSet(true);
-
 
19190
    }
-
 
19191
 
-
 
19192
    /**
-
 
19193
     * Performs a deep copy on <i>other</i>.
-
 
19194
     */
-
 
19195
    public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
-
 
19196
      __isset_bit_vector.clear();
-
 
19197
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19198
      this.orderId = other.orderId;
-
 
19199
      this.unitPrice = other.unitPrice;
-
 
19200
    }
-
 
19201
 
-
 
19202
    public scanForOursExternalSaleReturn_args deepCopy() {
-
 
19203
      return new scanForOursExternalSaleReturn_args(this);
-
 
19204
    }
-
 
19205
 
-
 
19206
    @Override
-
 
19207
    public void clear() {
-
 
19208
      setOrderIdIsSet(false);
-
 
19209
      this.orderId = 0;
-
 
19210
      setUnitPriceIsSet(false);
-
 
19211
      this.unitPrice = 0.0;
-
 
19212
    }
-
 
19213
 
-
 
19214
    public long getOrderId() {
-
 
19215
      return this.orderId;
-
 
19216
    }
-
 
19217
 
-
 
19218
    public void setOrderId(long orderId) {
-
 
19219
      this.orderId = orderId;
-
 
19220
      setOrderIdIsSet(true);
-
 
19221
    }
-
 
19222
 
-
 
19223
    public void unsetOrderId() {
-
 
19224
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
19225
    }
-
 
19226
 
-
 
19227
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
19228
    public boolean isSetOrderId() {
-
 
19229
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
19230
    }
-
 
19231
 
-
 
19232
    public void setOrderIdIsSet(boolean value) {
-
 
19233
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
19234
    }
-
 
19235
 
-
 
19236
    public double getUnitPrice() {
-
 
19237
      return this.unitPrice;
-
 
19238
    }
-
 
19239
 
-
 
19240
    public void setUnitPrice(double unitPrice) {
-
 
19241
      this.unitPrice = unitPrice;
-
 
19242
      setUnitPriceIsSet(true);
-
 
19243
    }
-
 
19244
 
-
 
19245
    public void unsetUnitPrice() {
-
 
19246
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
-
 
19247
    }
-
 
19248
 
-
 
19249
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
-
 
19250
    public boolean isSetUnitPrice() {
-
 
19251
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
-
 
19252
    }
-
 
19253
 
-
 
19254
    public void setUnitPriceIsSet(boolean value) {
-
 
19255
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
-
 
19256
    }
-
 
19257
 
-
 
19258
    public void setFieldValue(_Fields field, Object value) {
-
 
19259
      switch (field) {
-
 
19260
      case ORDER_ID:
-
 
19261
        if (value == null) {
-
 
19262
          unsetOrderId();
-
 
19263
        } else {
-
 
19264
          setOrderId((Long)value);
-
 
19265
        }
-
 
19266
        break;
-
 
19267
 
-
 
19268
      case UNIT_PRICE:
-
 
19269
        if (value == null) {
-
 
19270
          unsetUnitPrice();
-
 
19271
        } else {
-
 
19272
          setUnitPrice((Double)value);
-
 
19273
        }
-
 
19274
        break;
-
 
19275
 
-
 
19276
      }
-
 
19277
    }
-
 
19278
 
-
 
19279
    public Object getFieldValue(_Fields field) {
-
 
19280
      switch (field) {
-
 
19281
      case ORDER_ID:
-
 
19282
        return Long.valueOf(getOrderId());
-
 
19283
 
-
 
19284
      case UNIT_PRICE:
-
 
19285
        return Double.valueOf(getUnitPrice());
-
 
19286
 
-
 
19287
      }
-
 
19288
      throw new IllegalStateException();
-
 
19289
    }
-
 
19290
 
-
 
19291
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19292
    public boolean isSet(_Fields field) {
-
 
19293
      if (field == null) {
-
 
19294
        throw new IllegalArgumentException();
-
 
19295
      }
-
 
19296
 
-
 
19297
      switch (field) {
-
 
19298
      case ORDER_ID:
-
 
19299
        return isSetOrderId();
-
 
19300
      case UNIT_PRICE:
-
 
19301
        return isSetUnitPrice();
-
 
19302
      }
-
 
19303
      throw new IllegalStateException();
-
 
19304
    }
-
 
19305
 
-
 
19306
    @Override
-
 
19307
    public boolean equals(Object that) {
-
 
19308
      if (that == null)
-
 
19309
        return false;
-
 
19310
      if (that instanceof scanForOursExternalSaleReturn_args)
-
 
19311
        return this.equals((scanForOursExternalSaleReturn_args)that);
-
 
19312
      return false;
-
 
19313
    }
-
 
19314
 
-
 
19315
    public boolean equals(scanForOursExternalSaleReturn_args that) {
-
 
19316
      if (that == null)
-
 
19317
        return false;
-
 
19318
 
-
 
19319
      boolean this_present_orderId = true;
-
 
19320
      boolean that_present_orderId = true;
-
 
19321
      if (this_present_orderId || that_present_orderId) {
-
 
19322
        if (!(this_present_orderId && that_present_orderId))
-
 
19323
          return false;
-
 
19324
        if (this.orderId != that.orderId)
-
 
19325
          return false;
-
 
19326
      }
-
 
19327
 
-
 
19328
      boolean this_present_unitPrice = true;
-
 
19329
      boolean that_present_unitPrice = true;
-
 
19330
      if (this_present_unitPrice || that_present_unitPrice) {
-
 
19331
        if (!(this_present_unitPrice && that_present_unitPrice))
-
 
19332
          return false;
-
 
19333
        if (this.unitPrice != that.unitPrice)
-
 
19334
          return false;
-
 
19335
      }
-
 
19336
 
-
 
19337
      return true;
-
 
19338
    }
-
 
19339
 
-
 
19340
    @Override
-
 
19341
    public int hashCode() {
-
 
19342
      return 0;
-
 
19343
    }
-
 
19344
 
-
 
19345
    public int compareTo(scanForOursExternalSaleReturn_args other) {
-
 
19346
      if (!getClass().equals(other.getClass())) {
-
 
19347
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19348
      }
-
 
19349
 
-
 
19350
      int lastComparison = 0;
-
 
19351
      scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
-
 
19352
 
-
 
19353
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
19354
      if (lastComparison != 0) {
-
 
19355
        return lastComparison;
-
 
19356
      }
-
 
19357
      if (isSetOrderId()) {
-
 
19358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
19359
        if (lastComparison != 0) {
-
 
19360
          return lastComparison;
-
 
19361
        }
-
 
19362
      }
-
 
19363
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
-
 
19364
      if (lastComparison != 0) {
-
 
19365
        return lastComparison;
-
 
19366
      }
-
 
19367
      if (isSetUnitPrice()) {
-
 
19368
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
-
 
19369
        if (lastComparison != 0) {
-
 
19370
          return lastComparison;
-
 
19371
        }
-
 
19372
      }
-
 
19373
      return 0;
-
 
19374
    }
-
 
19375
 
-
 
19376
    public _Fields fieldForId(int fieldId) {
-
 
19377
      return _Fields.findByThriftId(fieldId);
-
 
19378
    }
-
 
19379
 
-
 
19380
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19381
      org.apache.thrift.protocol.TField field;
-
 
19382
      iprot.readStructBegin();
-
 
19383
      while (true)
-
 
19384
      {
-
 
19385
        field = iprot.readFieldBegin();
-
 
19386
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19387
          break;
-
 
19388
        }
-
 
19389
        switch (field.id) {
-
 
19390
          case 1: // ORDER_ID
-
 
19391
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19392
              this.orderId = iprot.readI64();
-
 
19393
              setOrderIdIsSet(true);
-
 
19394
            } else { 
-
 
19395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19396
            }
-
 
19397
            break;
-
 
19398
          case 2: // UNIT_PRICE
-
 
19399
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
19400
              this.unitPrice = iprot.readDouble();
-
 
19401
              setUnitPriceIsSet(true);
-
 
19402
            } else { 
-
 
19403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19404
            }
-
 
19405
            break;
-
 
19406
          default:
-
 
19407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19408
        }
-
 
19409
        iprot.readFieldEnd();
-
 
19410
      }
-
 
19411
      iprot.readStructEnd();
-
 
19412
      validate();
-
 
19413
    }
-
 
19414
 
-
 
19415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19416
      validate();
-
 
19417
 
-
 
19418
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19419
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
19420
      oprot.writeI64(this.orderId);
-
 
19421
      oprot.writeFieldEnd();
-
 
19422
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
-
 
19423
      oprot.writeDouble(this.unitPrice);
-
 
19424
      oprot.writeFieldEnd();
-
 
19425
      oprot.writeFieldStop();
-
 
19426
      oprot.writeStructEnd();
-
 
19427
    }
-
 
19428
 
-
 
19429
    @Override
-
 
19430
    public String toString() {
-
 
19431
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
-
 
19432
      boolean first = true;
-
 
19433
 
-
 
19434
      sb.append("orderId:");
-
 
19435
      sb.append(this.orderId);
-
 
19436
      first = false;
-
 
19437
      if (!first) sb.append(", ");
-
 
19438
      sb.append("unitPrice:");
-
 
19439
      sb.append(this.unitPrice);
-
 
19440
      first = false;
-
 
19441
      sb.append(")");
-
 
19442
      return sb.toString();
-
 
19443
    }
-
 
19444
 
-
 
19445
    public void validate() throws org.apache.thrift.TException {
-
 
19446
      // check for required fields
-
 
19447
    }
-
 
19448
 
-
 
19449
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19450
      try {
-
 
19451
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19452
      } catch (org.apache.thrift.TException te) {
-
 
19453
        throw new java.io.IOException(te);
-
 
19454
      }
-
 
19455
    }
-
 
19456
 
-
 
19457
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19458
      try {
-
 
19459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19460
      } catch (org.apache.thrift.TException te) {
-
 
19461
        throw new java.io.IOException(te);
-
 
19462
      }
-
 
19463
    }
-
 
19464
 
-
 
19465
  }
-
 
19466
 
-
 
19467
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
19468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
-
 
19469
 
-
 
19470
 
-
 
19471
 
-
 
19472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19474
;
-
 
19475
 
-
 
19476
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19477
 
-
 
19478
      static {
-
 
19479
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19480
          byName.put(field.getFieldName(), field);
-
 
19481
        }
-
 
19482
      }
-
 
19483
 
-
 
19484
      /**
-
 
19485
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19486
       */
-
 
19487
      public static _Fields findByThriftId(int fieldId) {
-
 
19488
        switch(fieldId) {
-
 
19489
          default:
-
 
19490
            return null;
-
 
19491
        }
-
 
19492
      }
-
 
19493
 
-
 
19494
      /**
-
 
19495
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19496
       * if it is not found.
-
 
19497
       */
-
 
19498
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19499
        _Fields fields = findByThriftId(fieldId);
-
 
19500
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19501
        return fields;
-
 
19502
      }
-
 
19503
 
-
 
19504
      /**
-
 
19505
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19506
       */
-
 
19507
      public static _Fields findByName(String name) {
-
 
19508
        return byName.get(name);
-
 
19509
      }
-
 
19510
 
-
 
19511
      private final short _thriftId;
-
 
19512
      private final String _fieldName;
-
 
19513
 
-
 
19514
      _Fields(short thriftId, String fieldName) {
-
 
19515
        _thriftId = thriftId;
-
 
19516
        _fieldName = fieldName;
-
 
19517
      }
-
 
19518
 
-
 
19519
      public short getThriftFieldId() {
-
 
19520
        return _thriftId;
-
 
19521
      }
-
 
19522
 
-
 
19523
      public String getFieldName() {
-
 
19524
        return _fieldName;
-
 
19525
      }
-
 
19526
    }
-
 
19527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19528
    static {
-
 
19529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
-
 
19532
    }
-
 
19533
 
-
 
19534
    public scanForOursExternalSaleReturn_result() {
-
 
19535
    }
-
 
19536
 
-
 
19537
    /**
-
 
19538
     * Performs a deep copy on <i>other</i>.
-
 
19539
     */
-
 
19540
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
-
 
19541
    }
-
 
19542
 
-
 
19543
    public scanForOursExternalSaleReturn_result deepCopy() {
-
 
19544
      return new scanForOursExternalSaleReturn_result(this);
-
 
19545
    }
-
 
19546
 
-
 
19547
    @Override
-
 
19548
    public void clear() {
-
 
19549
    }
-
 
19550
 
-
 
19551
    public void setFieldValue(_Fields field, Object value) {
-
 
19552
      switch (field) {
-
 
19553
      }
-
 
19554
    }
-
 
19555
 
-
 
19556
    public Object getFieldValue(_Fields field) {
-
 
19557
      switch (field) {
-
 
19558
      }
-
 
19559
      throw new IllegalStateException();
-
 
19560
    }
-
 
19561
 
-
 
19562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19563
    public boolean isSet(_Fields field) {
-
 
19564
      if (field == null) {
-
 
19565
        throw new IllegalArgumentException();
-
 
19566
      }
-
 
19567
 
-
 
19568
      switch (field) {
-
 
19569
      }
-
 
19570
      throw new IllegalStateException();
-
 
19571
    }
-
 
19572
 
-
 
19573
    @Override
-
 
19574
    public boolean equals(Object that) {
-
 
19575
      if (that == null)
-
 
19576
        return false;
-
 
19577
      if (that instanceof scanForOursExternalSaleReturn_result)
-
 
19578
        return this.equals((scanForOursExternalSaleReturn_result)that);
-
 
19579
      return false;
-
 
19580
    }
-
 
19581
 
-
 
19582
    public boolean equals(scanForOursExternalSaleReturn_result that) {
-
 
19583
      if (that == null)
-
 
19584
        return false;
-
 
19585
 
-
 
19586
      return true;
-
 
19587
    }
-
 
19588
 
-
 
19589
    @Override
-
 
19590
    public int hashCode() {
-
 
19591
      return 0;
-
 
19592
    }
-
 
19593
 
-
 
19594
    public int compareTo(scanForOursExternalSaleReturn_result other) {
-
 
19595
      if (!getClass().equals(other.getClass())) {
-
 
19596
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19597
      }
-
 
19598
 
-
 
19599
      int lastComparison = 0;
-
 
19600
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
-
 
19601
 
-
 
19602
      return 0;
-
 
19603
    }
-
 
19604
 
-
 
19605
    public _Fields fieldForId(int fieldId) {
-
 
19606
      return _Fields.findByThriftId(fieldId);
-
 
19607
    }
-
 
19608
 
-
 
19609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19610
      org.apache.thrift.protocol.TField field;
-
 
19611
      iprot.readStructBegin();
-
 
19612
      while (true)
-
 
19613
      {
-
 
19614
        field = iprot.readFieldBegin();
-
 
19615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19616
          break;
-
 
19617
        }
-
 
19618
        switch (field.id) {
-
 
19619
          default:
-
 
19620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19621
        }
-
 
19622
        iprot.readFieldEnd();
-
 
19623
      }
-
 
19624
      iprot.readStructEnd();
-
 
19625
      validate();
-
 
19626
    }
-
 
19627
 
-
 
19628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19629
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19630
 
-
 
19631
      oprot.writeFieldStop();
-
 
19632
      oprot.writeStructEnd();
-
 
19633
    }
-
 
19634
 
-
 
19635
    @Override
-
 
19636
    public String toString() {
-
 
19637
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
-
 
19638
      boolean first = true;
-
 
19639
 
-
 
19640
      sb.append(")");
-
 
19641
      return sb.toString();
-
 
19642
    }
-
 
19643
 
-
 
19644
    public void validate() throws org.apache.thrift.TException {
-
 
19645
      // check for required fields
-
 
19646
    }
-
 
19647
 
-
 
19648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19649
      try {
-
 
19650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19651
      } catch (org.apache.thrift.TException te) {
-
 
19652
        throw new java.io.IOException(te);
-
 
19653
      }
-
 
19654
    }
-
 
19655
 
-
 
19656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19657
      try {
-
 
19658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19659
      } catch (org.apache.thrift.TException te) {
-
 
19660
        throw new java.io.IOException(te);
-
 
19661
      }
-
 
19662
    }
-
 
19663
 
-
 
19664
  }
-
 
19665
 
-
 
19666
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
19667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
-
 
19668
 
-
 
19669
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
19670
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
19671
 
-
 
19672
    private long startDate; // required
-
 
19673
    private long endDate; // required
-
 
19674
 
-
 
19675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19677
      START_DATE((short)1, "startDate"),
-
 
19678
      END_DATE((short)2, "endDate");
-
 
19679
 
-
 
19680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19681
 
-
 
19682
      static {
-
 
19683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19684
          byName.put(field.getFieldName(), field);
-
 
19685
        }
-
 
19686
      }
-
 
19687
 
-
 
19688
      /**
-
 
19689
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19690
       */
-
 
19691
      public static _Fields findByThriftId(int fieldId) {
-
 
19692
        switch(fieldId) {
-
 
19693
          case 1: // START_DATE
-
 
19694
            return START_DATE;
-
 
19695
          case 2: // END_DATE
-
 
19696
            return END_DATE;
-
 
19697
          default:
-
 
19698
            return null;
-
 
19699
        }
-
 
19700
      }
-
 
19701
 
-
 
19702
      /**
-
 
19703
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19704
       * if it is not found.
-
 
19705
       */
-
 
19706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19707
        _Fields fields = findByThriftId(fieldId);
-
 
19708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19709
        return fields;
-
 
19710
      }
-
 
19711
 
-
 
19712
      /**
-
 
19713
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19714
       */
-
 
19715
      public static _Fields findByName(String name) {
-
 
19716
        return byName.get(name);
-
 
19717
      }
-
 
19718
 
-
 
19719
      private final short _thriftId;
-
 
19720
      private final String _fieldName;
-
 
19721
 
-
 
19722
      _Fields(short thriftId, String fieldName) {
-
 
19723
        _thriftId = thriftId;
-
 
19724
        _fieldName = fieldName;
-
 
19725
      }
-
 
19726
 
-
 
19727
      public short getThriftFieldId() {
-
 
19728
        return _thriftId;
-
 
19729
      }
-
 
19730
 
-
 
19731
      public String getFieldName() {
-
 
19732
        return _fieldName;
-
 
19733
      }
-
 
19734
    }
-
 
19735
 
-
 
19736
    // isset id assignments
-
 
19737
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
19738
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
19739
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
19740
 
-
 
19741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19742
    static {
-
 
19743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19744
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19746
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
-
 
19750
    }
-
 
19751
 
-
 
19752
    public getMovementNonSerializedInventoryByScans_args() {
-
 
19753
    }
-
 
19754
 
-
 
19755
    public getMovementNonSerializedInventoryByScans_args(
-
 
19756
      long startDate,
-
 
19757
      long endDate)
-
 
19758
    {
-
 
19759
      this();
-
 
19760
      this.startDate = startDate;
-
 
19761
      setStartDateIsSet(true);
-
 
19762
      this.endDate = endDate;
-
 
19763
      setEndDateIsSet(true);
-
 
19764
    }
-
 
19765
 
-
 
19766
    /**
-
 
19767
     * Performs a deep copy on <i>other</i>.
-
 
19768
     */
-
 
19769
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
-
 
19770
      __isset_bit_vector.clear();
-
 
19771
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19772
      this.startDate = other.startDate;
-
 
19773
      this.endDate = other.endDate;
-
 
19774
    }
-
 
19775
 
-
 
19776
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
-
 
19777
      return new getMovementNonSerializedInventoryByScans_args(this);
-
 
19778
    }
-
 
19779
 
-
 
19780
    @Override
-
 
19781
    public void clear() {
-
 
19782
      setStartDateIsSet(false);
-
 
19783
      this.startDate = 0;
-
 
19784
      setEndDateIsSet(false);
-
 
19785
      this.endDate = 0;
-
 
19786
    }
-
 
19787
 
-
 
19788
    public long getStartDate() {
-
 
19789
      return this.startDate;
-
 
19790
    }
-
 
19791
 
-
 
19792
    public void setStartDate(long startDate) {
-
 
19793
      this.startDate = startDate;
-
 
19794
      setStartDateIsSet(true);
-
 
19795
    }
-
 
19796
 
-
 
19797
    public void unsetStartDate() {
-
 
19798
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
19799
    }
-
 
19800
 
-
 
19801
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
19802
    public boolean isSetStartDate() {
-
 
19803
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
19804
    }
-
 
19805
 
-
 
19806
    public void setStartDateIsSet(boolean value) {
-
 
19807
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
19808
    }
-
 
19809
 
-
 
19810
    public long getEndDate() {
-
 
19811
      return this.endDate;
-
 
19812
    }
-
 
19813
 
-
 
19814
    public void setEndDate(long endDate) {
-
 
19815
      this.endDate = endDate;
-
 
19816
      setEndDateIsSet(true);
-
 
19817
    }
-
 
19818
 
-
 
19819
    public void unsetEndDate() {
-
 
19820
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
19821
    }
-
 
19822
 
-
 
19823
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
19824
    public boolean isSetEndDate() {
-
 
19825
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
19826
    }
-
 
19827
 
-
 
19828
    public void setEndDateIsSet(boolean value) {
-
 
19829
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
19830
    }
-
 
19831
 
-
 
19832
    public void setFieldValue(_Fields field, Object value) {
-
 
19833
      switch (field) {
-
 
19834
      case START_DATE:
-
 
19835
        if (value == null) {
-
 
19836
          unsetStartDate();
-
 
19837
        } else {
-
 
19838
          setStartDate((Long)value);
-
 
19839
        }
-
 
19840
        break;
-
 
19841
 
-
 
19842
      case END_DATE:
-
 
19843
        if (value == null) {
-
 
19844
          unsetEndDate();
-
 
19845
        } else {
-
 
19846
          setEndDate((Long)value);
-
 
19847
        }
-
 
19848
        break;
-
 
19849
 
-
 
19850
      }
-
 
19851
    }
-
 
19852
 
-
 
19853
    public Object getFieldValue(_Fields field) {
-
 
19854
      switch (field) {
-
 
19855
      case START_DATE:
-
 
19856
        return Long.valueOf(getStartDate());
-
 
19857
 
-
 
19858
      case END_DATE:
-
 
19859
        return Long.valueOf(getEndDate());
-
 
19860
 
-
 
19861
      }
-
 
19862
      throw new IllegalStateException();
-
 
19863
    }
-
 
19864
 
-
 
19865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19866
    public boolean isSet(_Fields field) {
-
 
19867
      if (field == null) {
-
 
19868
        throw new IllegalArgumentException();
-
 
19869
      }
-
 
19870
 
-
 
19871
      switch (field) {
-
 
19872
      case START_DATE:
-
 
19873
        return isSetStartDate();
-
 
19874
      case END_DATE:
-
 
19875
        return isSetEndDate();
-
 
19876
      }
-
 
19877
      throw new IllegalStateException();
-
 
19878
    }
-
 
19879
 
-
 
19880
    @Override
-
 
19881
    public boolean equals(Object that) {
-
 
19882
      if (that == null)
-
 
19883
        return false;
-
 
19884
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
-
 
19885
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
-
 
19886
      return false;
-
 
19887
    }
-
 
19888
 
-
 
19889
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
-
 
19890
      if (that == null)
-
 
19891
        return false;
-
 
19892
 
-
 
19893
      boolean this_present_startDate = true;
-
 
19894
      boolean that_present_startDate = true;
-
 
19895
      if (this_present_startDate || that_present_startDate) {
-
 
19896
        if (!(this_present_startDate && that_present_startDate))
-
 
19897
          return false;
-
 
19898
        if (this.startDate != that.startDate)
-
 
19899
          return false;
-
 
19900
      }
-
 
19901
 
-
 
19902
      boolean this_present_endDate = true;
-
 
19903
      boolean that_present_endDate = true;
-
 
19904
      if (this_present_endDate || that_present_endDate) {
-
 
19905
        if (!(this_present_endDate && that_present_endDate))
-
 
19906
          return false;
-
 
19907
        if (this.endDate != that.endDate)
-
 
19908
          return false;
-
 
19909
      }
-
 
19910
 
-
 
19911
      return true;
-
 
19912
    }
-
 
19913
 
-
 
19914
    @Override
-
 
19915
    public int hashCode() {
-
 
19916
      return 0;
-
 
19917
    }
-
 
19918
 
-
 
19919
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
-
 
19920
      if (!getClass().equals(other.getClass())) {
-
 
19921
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19922
      }
-
 
19923
 
-
 
19924
      int lastComparison = 0;
-
 
19925
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
-
 
19926
 
-
 
19927
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
19928
      if (lastComparison != 0) {
-
 
19929
        return lastComparison;
-
 
19930
      }
-
 
19931
      if (isSetStartDate()) {
-
 
19932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
19933
        if (lastComparison != 0) {
-
 
19934
          return lastComparison;
-
 
19935
        }
-
 
19936
      }
-
 
19937
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
19938
      if (lastComparison != 0) {
-
 
19939
        return lastComparison;
-
 
19940
      }
-
 
19941
      if (isSetEndDate()) {
-
 
19942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
19943
        if (lastComparison != 0) {
-
 
19944
          return lastComparison;
-
 
19945
        }
-
 
19946
      }
-
 
19947
      return 0;
-
 
19948
    }
-
 
19949
 
-
 
19950
    public _Fields fieldForId(int fieldId) {
-
 
19951
      return _Fields.findByThriftId(fieldId);
-
 
19952
    }
-
 
19953
 
-
 
19954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19955
      org.apache.thrift.protocol.TField field;
-
 
19956
      iprot.readStructBegin();
-
 
19957
      while (true)
-
 
19958
      {
-
 
19959
        field = iprot.readFieldBegin();
-
 
19960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19961
          break;
-
 
19962
        }
-
 
19963
        switch (field.id) {
-
 
19964
          case 1: // START_DATE
-
 
19965
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19966
              this.startDate = iprot.readI64();
-
 
19967
              setStartDateIsSet(true);
-
 
19968
            } else { 
-
 
19969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19970
            }
-
 
19971
            break;
-
 
19972
          case 2: // END_DATE
-
 
19973
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19974
              this.endDate = iprot.readI64();
-
 
19975
              setEndDateIsSet(true);
-
 
19976
            } else { 
-
 
19977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19978
            }
-
 
19979
            break;
-
 
19980
          default:
-
 
19981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19982
        }
-
 
19983
        iprot.readFieldEnd();
-
 
19984
      }
-
 
19985
      iprot.readStructEnd();
-
 
19986
      validate();
-
 
19987
    }
-
 
19988
 
-
 
19989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19990
      validate();
-
 
19991
 
-
 
19992
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19993
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
19994
      oprot.writeI64(this.startDate);
-
 
19995
      oprot.writeFieldEnd();
-
 
19996
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
19997
      oprot.writeI64(this.endDate);
-
 
19998
      oprot.writeFieldEnd();
-
 
19999
      oprot.writeFieldStop();
-
 
20000
      oprot.writeStructEnd();
-
 
20001
    }
-
 
20002
 
-
 
20003
    @Override
-
 
20004
    public String toString() {
-
 
20005
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
-
 
20006
      boolean first = true;
-
 
20007
 
-
 
20008
      sb.append("startDate:");
-
 
20009
      sb.append(this.startDate);
-
 
20010
      first = false;
-
 
20011
      if (!first) sb.append(", ");
-
 
20012
      sb.append("endDate:");
-
 
20013
      sb.append(this.endDate);
-
 
20014
      first = false;
-
 
20015
      sb.append(")");
-
 
20016
      return sb.toString();
-
 
20017
    }
-
 
20018
 
-
 
20019
    public void validate() throws org.apache.thrift.TException {
-
 
20020
      // check for required fields
-
 
20021
    }
-
 
20022
 
-
 
20023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20024
      try {
-
 
20025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20026
      } catch (org.apache.thrift.TException te) {
-
 
20027
        throw new java.io.IOException(te);
-
 
20028
      }
-
 
20029
    }
-
 
20030
 
-
 
20031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20032
      try {
-
 
20033
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
20034
        __isset_bit_vector = new BitSet(1);
-
 
20035
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20036
      } catch (org.apache.thrift.TException te) {
-
 
20037
        throw new java.io.IOException(te);
-
 
20038
      }
-
 
20039
    }
-
 
20040
 
-
 
20041
  }
-
 
20042
 
-
 
20043
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20044
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
-
 
20045
 
-
 
20046
    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);
-
 
20047
 
-
 
20048
    private List<InventoryMovement> success; // required
-
 
20049
 
-
 
20050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20052
      SUCCESS((short)0, "success");
-
 
20053
 
-
 
20054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20055
 
-
 
20056
      static {
-
 
20057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20058
          byName.put(field.getFieldName(), field);
-
 
20059
        }
-
 
20060
      }
-
 
20061
 
-
 
20062
      /**
-
 
20063
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20064
       */
-
 
20065
      public static _Fields findByThriftId(int fieldId) {
-
 
20066
        switch(fieldId) {
-
 
20067
          case 0: // SUCCESS
-
 
20068
            return SUCCESS;
-
 
20069
          default:
-
 
20070
            return null;
-
 
20071
        }
-
 
20072
      }
-
 
20073
 
-
 
20074
      /**
-
 
20075
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20076
       * if it is not found.
-
 
20077
       */
-
 
20078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20079
        _Fields fields = findByThriftId(fieldId);
-
 
20080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20081
        return fields;
-
 
20082
      }
-
 
20083
 
-
 
20084
      /**
-
 
20085
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20086
       */
-
 
20087
      public static _Fields findByName(String name) {
-
 
20088
        return byName.get(name);
-
 
20089
      }
-
 
20090
 
-
 
20091
      private final short _thriftId;
-
 
20092
      private final String _fieldName;
-
 
20093
 
-
 
20094
      _Fields(short thriftId, String fieldName) {
-
 
20095
        _thriftId = thriftId;
-
 
20096
        _fieldName = fieldName;
-
 
20097
      }
-
 
20098
 
-
 
20099
      public short getThriftFieldId() {
-
 
20100
        return _thriftId;
-
 
20101
      }
-
 
20102
 
-
 
20103
      public String getFieldName() {
-
 
20104
        return _fieldName;
-
 
20105
      }
-
 
20106
    }
-
 
20107
 
-
 
20108
    // isset id assignments
-
 
20109
 
-
 
20110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20111
    static {
-
 
20112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20113
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20114
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
20115
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
20116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
-
 
20118
    }
-
 
20119
 
-
 
20120
    public getMovementNonSerializedInventoryByScans_result() {
-
 
20121
    }
-
 
20122
 
-
 
20123
    public getMovementNonSerializedInventoryByScans_result(
-
 
20124
      List<InventoryMovement> success)
-
 
20125
    {
-
 
20126
      this();
-
 
20127
      this.success = success;
-
 
20128
    }
-
 
20129
 
-
 
20130
    /**
-
 
20131
     * Performs a deep copy on <i>other</i>.
-
 
20132
     */
-
 
20133
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
-
 
20134
      if (other.isSetSuccess()) {
-
 
20135
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
20136
        for (InventoryMovement other_element : other.success) {
-
 
20137
          __this__success.add(new InventoryMovement(other_element));
-
 
20138
        }
-
 
20139
        this.success = __this__success;
-
 
20140
      }
-
 
20141
    }
-
 
20142
 
-
 
20143
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
-
 
20144
      return new getMovementNonSerializedInventoryByScans_result(this);
-
 
20145
    }
-
 
20146
 
-
 
20147
    @Override
-
 
20148
    public void clear() {
-
 
20149
      this.success = null;
-
 
20150
    }
-
 
20151
 
-
 
20152
    public int getSuccessSize() {
-
 
20153
      return (this.success == null) ? 0 : this.success.size();
-
 
20154
    }
-
 
20155
 
-
 
20156
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
20157
      return (this.success == null) ? null : this.success.iterator();
-
 
20158
    }
-
 
20159
 
-
 
20160
    public void addToSuccess(InventoryMovement elem) {
-
 
20161
      if (this.success == null) {
-
 
20162
        this.success = new ArrayList<InventoryMovement>();
-
 
20163
      }
-
 
20164
      this.success.add(elem);
-
 
20165
    }
-
 
20166
 
-
 
20167
    public List<InventoryMovement> getSuccess() {
-
 
20168
      return this.success;
-
 
20169
    }
-
 
20170
 
-
 
20171
    public void setSuccess(List<InventoryMovement> success) {
-
 
20172
      this.success = success;
-
 
20173
    }
-
 
20174
 
-
 
20175
    public void unsetSuccess() {
-
 
20176
      this.success = null;
-
 
20177
    }
-
 
20178
 
-
 
20179
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20180
    public boolean isSetSuccess() {
-
 
20181
      return this.success != null;
-
 
20182
    }
-
 
20183
 
-
 
20184
    public void setSuccessIsSet(boolean value) {
-
 
20185
      if (!value) {
-
 
20186
        this.success = null;
-
 
20187
      }
-
 
20188
    }
-
 
20189
 
-
 
20190
    public void setFieldValue(_Fields field, Object value) {
-
 
20191
      switch (field) {
-
 
20192
      case SUCCESS:
-
 
20193
        if (value == null) {
-
 
20194
          unsetSuccess();
-
 
20195
        } else {
-
 
20196
          setSuccess((List<InventoryMovement>)value);
-
 
20197
        }
-
 
20198
        break;
-
 
20199
 
-
 
20200
      }
-
 
20201
    }
-
 
20202
 
-
 
20203
    public Object getFieldValue(_Fields field) {
-
 
20204
      switch (field) {
-
 
20205
      case SUCCESS:
-
 
20206
        return getSuccess();
-
 
20207
 
-
 
20208
      }
-
 
20209
      throw new IllegalStateException();
-
 
20210
    }
-
 
20211
 
-
 
20212
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20213
    public boolean isSet(_Fields field) {
-
 
20214
      if (field == null) {
-
 
20215
        throw new IllegalArgumentException();
-
 
20216
      }
-
 
20217
 
-
 
20218
      switch (field) {
-
 
20219
      case SUCCESS:
-
 
20220
        return isSetSuccess();
-
 
20221
      }
-
 
20222
      throw new IllegalStateException();
-
 
20223
    }
-
 
20224
 
-
 
20225
    @Override
-
 
20226
    public boolean equals(Object that) {
-
 
20227
      if (that == null)
-
 
20228
        return false;
-
 
20229
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
-
 
20230
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
-
 
20231
      return false;
-
 
20232
    }
-
 
20233
 
-
 
20234
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
-
 
20235
      if (that == null)
-
 
20236
        return false;
-
 
20237
 
-
 
20238
      boolean this_present_success = true && this.isSetSuccess();
-
 
20239
      boolean that_present_success = true && that.isSetSuccess();
-
 
20240
      if (this_present_success || that_present_success) {
-
 
20241
        if (!(this_present_success && that_present_success))
-
 
20242
          return false;
-
 
20243
        if (!this.success.equals(that.success))
-
 
20244
          return false;
-
 
20245
      }
-
 
20246
 
-
 
20247
      return true;
-
 
20248
    }
-
 
20249
 
-
 
20250
    @Override
-
 
20251
    public int hashCode() {
-
 
20252
      return 0;
-
 
20253
    }
-
 
20254
 
-
 
20255
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
-
 
20256
      if (!getClass().equals(other.getClass())) {
-
 
20257
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20258
      }
-
 
20259
 
-
 
20260
      int lastComparison = 0;
-
 
20261
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
-
 
20262
 
-
 
20263
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20264
      if (lastComparison != 0) {
-
 
20265
        return lastComparison;
-
 
20266
      }
-
 
20267
      if (isSetSuccess()) {
-
 
20268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20269
        if (lastComparison != 0) {
-
 
20270
          return lastComparison;
-
 
20271
        }
-
 
20272
      }
-
 
20273
      return 0;
-
 
20274
    }
-
 
20275
 
-
 
20276
    public _Fields fieldForId(int fieldId) {
-
 
20277
      return _Fields.findByThriftId(fieldId);
-
 
20278
    }
-
 
20279
 
-
 
20280
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20281
      org.apache.thrift.protocol.TField field;
-
 
20282
      iprot.readStructBegin();
-
 
20283
      while (true)
-
 
20284
      {
-
 
20285
        field = iprot.readFieldBegin();
-
 
20286
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20287
          break;
-
 
20288
        }
-
 
20289
        switch (field.id) {
-
 
20290
          case 0: // SUCCESS
-
 
20291
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
20292
              {
-
 
20293
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
-
 
20294
                this.success = new ArrayList<InventoryMovement>(_list56.size);
-
 
20295
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
-
 
20296
                {
-
 
20297
                  InventoryMovement _elem58; // required
-
 
20298
                  _elem58 = new InventoryMovement();
-
 
20299
                  _elem58.read(iprot);
-
 
20300
                  this.success.add(_elem58);
-
 
20301
                }
-
 
20302
                iprot.readListEnd();
-
 
20303
              }
-
 
20304
            } else { 
-
 
20305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20306
            }
-
 
20307
            break;
-
 
20308
          default:
-
 
20309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20310
        }
-
 
20311
        iprot.readFieldEnd();
-
 
20312
      }
-
 
20313
      iprot.readStructEnd();
-
 
20314
      validate();
-
 
20315
    }
-
 
20316
 
-
 
20317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20318
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20319
 
-
 
20320
      if (this.isSetSuccess()) {
-
 
20321
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20322
        {
-
 
20323
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
20324
          for (InventoryMovement _iter59 : this.success)
-
 
20325
          {
-
 
20326
            _iter59.write(oprot);
-
 
20327
          }
-
 
20328
          oprot.writeListEnd();
-
 
20329
        }
-
 
20330
        oprot.writeFieldEnd();
-
 
20331
      }
-
 
20332
      oprot.writeFieldStop();
-
 
20333
      oprot.writeStructEnd();
-
 
20334
    }
-
 
20335
 
-
 
20336
    @Override
-
 
20337
    public String toString() {
-
 
20338
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
-
 
20339
      boolean first = true;
-
 
20340
 
-
 
20341
      sb.append("success:");
-
 
20342
      if (this.success == null) {
-
 
20343
        sb.append("null");
-
 
20344
      } else {
-
 
20345
        sb.append(this.success);
-
 
20346
      }
-
 
20347
      first = false;
-
 
20348
      sb.append(")");
-
 
20349
      return sb.toString();
-
 
20350
    }
-
 
20351
 
-
 
20352
    public void validate() throws org.apache.thrift.TException {
-
 
20353
      // check for required fields
-
 
20354
    }
-
 
20355
 
-
 
20356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20357
      try {
-
 
20358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20359
      } catch (org.apache.thrift.TException te) {
-
 
20360
        throw new java.io.IOException(te);
-
 
20361
      }
-
 
20362
    }
-
 
20363
 
-
 
20364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20365
      try {
-
 
20366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20367
      } catch (org.apache.thrift.TException te) {
-
 
20368
        throw new java.io.IOException(te);
-
 
20369
      }
-
 
20370
    }
-
 
20371
 
-
 
20372
  }
-
 
20373
 
-
 
20374
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
-
 
20376
 
-
 
20377
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
20378
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
20379
 
-
 
20380
    private long startDate; // required
-
 
20381
    private long endDate; // required
-
 
20382
 
-
 
20383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20385
      START_DATE((short)1, "startDate"),
-
 
20386
      END_DATE((short)2, "endDate");
-
 
20387
 
-
 
20388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20389
 
-
 
20390
      static {
-
 
20391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20392
          byName.put(field.getFieldName(), field);
-
 
20393
        }
-
 
20394
      }
-
 
20395
 
-
 
20396
      /**
-
 
20397
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20398
       */
-
 
20399
      public static _Fields findByThriftId(int fieldId) {
-
 
20400
        switch(fieldId) {
-
 
20401
          case 1: // START_DATE
-
 
20402
            return START_DATE;
-
 
20403
          case 2: // END_DATE
-
 
20404
            return END_DATE;
-
 
20405
          default:
-
 
20406
            return null;
-
 
20407
        }
-
 
20408
      }
-
 
20409
 
-
 
20410
      /**
-
 
20411
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20412
       * if it is not found.
-
 
20413
       */
-
 
20414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20415
        _Fields fields = findByThriftId(fieldId);
-
 
20416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20417
        return fields;
-
 
20418
      }
-
 
20419
 
-
 
20420
      /**
-
 
20421
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20422
       */
-
 
20423
      public static _Fields findByName(String name) {
-
 
20424
        return byName.get(name);
-
 
20425
      }
-
 
20426
 
-
 
20427
      private final short _thriftId;
-
 
20428
      private final String _fieldName;
-
 
20429
 
-
 
20430
      _Fields(short thriftId, String fieldName) {
-
 
20431
        _thriftId = thriftId;
-
 
20432
        _fieldName = fieldName;
-
 
20433
      }
-
 
20434
 
-
 
20435
      public short getThriftFieldId() {
-
 
20436
        return _thriftId;
-
 
20437
      }
-
 
20438
 
-
 
20439
      public String getFieldName() {
-
 
20440
        return _fieldName;
-
 
20441
      }
-
 
20442
    }
-
 
20443
 
-
 
20444
    // isset id assignments
-
 
20445
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
20446
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
20447
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
20448
 
-
 
20449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20450
    static {
-
 
20451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20452
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20454
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
-
 
20458
    }
-
 
20459
 
-
 
20460
    public getMovementSerializedInventoryByScans_args() {
-
 
20461
    }
-
 
20462
 
-
 
20463
    public getMovementSerializedInventoryByScans_args(
-
 
20464
      long startDate,
-
 
20465
      long endDate)
-
 
20466
    {
-
 
20467
      this();
-
 
20468
      this.startDate = startDate;
-
 
20469
      setStartDateIsSet(true);
-
 
20470
      this.endDate = endDate;
-
 
20471
      setEndDateIsSet(true);
-
 
20472
    }
-
 
20473
 
-
 
20474
    /**
-
 
20475
     * Performs a deep copy on <i>other</i>.
-
 
20476
     */
-
 
20477
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
-
 
20478
      __isset_bit_vector.clear();
-
 
20479
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20480
      this.startDate = other.startDate;
-
 
20481
      this.endDate = other.endDate;
-
 
20482
    }
-
 
20483
 
-
 
20484
    public getMovementSerializedInventoryByScans_args deepCopy() {
-
 
20485
      return new getMovementSerializedInventoryByScans_args(this);
-
 
20486
    }
-
 
20487
 
-
 
20488
    @Override
-
 
20489
    public void clear() {
-
 
20490
      setStartDateIsSet(false);
-
 
20491
      this.startDate = 0;
-
 
20492
      setEndDateIsSet(false);
-
 
20493
      this.endDate = 0;
-
 
20494
    }
-
 
20495
 
-
 
20496
    public long getStartDate() {
-
 
20497
      return this.startDate;
-
 
20498
    }
-
 
20499
 
-
 
20500
    public void setStartDate(long startDate) {
-
 
20501
      this.startDate = startDate;
-
 
20502
      setStartDateIsSet(true);
-
 
20503
    }
-
 
20504
 
-
 
20505
    public void unsetStartDate() {
-
 
20506
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
20507
    }
-
 
20508
 
-
 
20509
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
20510
    public boolean isSetStartDate() {
-
 
20511
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
20512
    }
-
 
20513
 
-
 
20514
    public void setStartDateIsSet(boolean value) {
-
 
20515
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
20516
    }
-
 
20517
 
-
 
20518
    public long getEndDate() {
-
 
20519
      return this.endDate;
-
 
20520
    }
-
 
20521
 
-
 
20522
    public void setEndDate(long endDate) {
-
 
20523
      this.endDate = endDate;
-
 
20524
      setEndDateIsSet(true);
-
 
20525
    }
-
 
20526
 
-
 
20527
    public void unsetEndDate() {
-
 
20528
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
20529
    }
-
 
20530
 
-
 
20531
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
20532
    public boolean isSetEndDate() {
-
 
20533
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
20534
    }
-
 
20535
 
-
 
20536
    public void setEndDateIsSet(boolean value) {
-
 
20537
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
20538
    }
-
 
20539
 
-
 
20540
    public void setFieldValue(_Fields field, Object value) {
-
 
20541
      switch (field) {
-
 
20542
      case START_DATE:
-
 
20543
        if (value == null) {
-
 
20544
          unsetStartDate();
-
 
20545
        } else {
-
 
20546
          setStartDate((Long)value);
-
 
20547
        }
-
 
20548
        break;
-
 
20549
 
-
 
20550
      case END_DATE:
-
 
20551
        if (value == null) {
-
 
20552
          unsetEndDate();
-
 
20553
        } else {
-
 
20554
          setEndDate((Long)value);
-
 
20555
        }
-
 
20556
        break;
-
 
20557
 
-
 
20558
      }
-
 
20559
    }
-
 
20560
 
-
 
20561
    public Object getFieldValue(_Fields field) {
-
 
20562
      switch (field) {
-
 
20563
      case START_DATE:
-
 
20564
        return Long.valueOf(getStartDate());
-
 
20565
 
-
 
20566
      case END_DATE:
-
 
20567
        return Long.valueOf(getEndDate());
-
 
20568
 
-
 
20569
      }
-
 
20570
      throw new IllegalStateException();
-
 
20571
    }
-
 
20572
 
-
 
20573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20574
    public boolean isSet(_Fields field) {
-
 
20575
      if (field == null) {
-
 
20576
        throw new IllegalArgumentException();
-
 
20577
      }
-
 
20578
 
-
 
20579
      switch (field) {
-
 
20580
      case START_DATE:
-
 
20581
        return isSetStartDate();
-
 
20582
      case END_DATE:
-
 
20583
        return isSetEndDate();
-
 
20584
      }
-
 
20585
      throw new IllegalStateException();
-
 
20586
    }
-
 
20587
 
-
 
20588
    @Override
-
 
20589
    public boolean equals(Object that) {
-
 
20590
      if (that == null)
-
 
20591
        return false;
-
 
20592
      if (that instanceof getMovementSerializedInventoryByScans_args)
-
 
20593
        return this.equals((getMovementSerializedInventoryByScans_args)that);
-
 
20594
      return false;
-
 
20595
    }
-
 
20596
 
-
 
20597
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
-
 
20598
      if (that == null)
-
 
20599
        return false;
-
 
20600
 
-
 
20601
      boolean this_present_startDate = true;
-
 
20602
      boolean that_present_startDate = true;
-
 
20603
      if (this_present_startDate || that_present_startDate) {
-
 
20604
        if (!(this_present_startDate && that_present_startDate))
-
 
20605
          return false;
-
 
20606
        if (this.startDate != that.startDate)
-
 
20607
          return false;
-
 
20608
      }
-
 
20609
 
-
 
20610
      boolean this_present_endDate = true;
-
 
20611
      boolean that_present_endDate = true;
-
 
20612
      if (this_present_endDate || that_present_endDate) {
-
 
20613
        if (!(this_present_endDate && that_present_endDate))
-
 
20614
          return false;
-
 
20615
        if (this.endDate != that.endDate)
-
 
20616
          return false;
-
 
20617
      }
-
 
20618
 
-
 
20619
      return true;
-
 
20620
    }
-
 
20621
 
-
 
20622
    @Override
-
 
20623
    public int hashCode() {
-
 
20624
      return 0;
-
 
20625
    }
-
 
20626
 
-
 
20627
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
-
 
20628
      if (!getClass().equals(other.getClass())) {
-
 
20629
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20630
      }
-
 
20631
 
-
 
20632
      int lastComparison = 0;
-
 
20633
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
-
 
20634
 
-
 
20635
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
20636
      if (lastComparison != 0) {
-
 
20637
        return lastComparison;
-
 
20638
      }
-
 
20639
      if (isSetStartDate()) {
-
 
20640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
20641
        if (lastComparison != 0) {
-
 
20642
          return lastComparison;
-
 
20643
        }
-
 
20644
      }
-
 
20645
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
20646
      if (lastComparison != 0) {
-
 
20647
        return lastComparison;
-
 
20648
      }
-
 
20649
      if (isSetEndDate()) {
-
 
20650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
20651
        if (lastComparison != 0) {
-
 
20652
          return lastComparison;
-
 
20653
        }
-
 
20654
      }
-
 
20655
      return 0;
-
 
20656
    }
-
 
20657
 
-
 
20658
    public _Fields fieldForId(int fieldId) {
-
 
20659
      return _Fields.findByThriftId(fieldId);
-
 
20660
    }
-
 
20661
 
-
 
20662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20663
      org.apache.thrift.protocol.TField field;
-
 
20664
      iprot.readStructBegin();
-
 
20665
      while (true)
-
 
20666
      {
-
 
20667
        field = iprot.readFieldBegin();
-
 
20668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20669
          break;
-
 
20670
        }
-
 
20671
        switch (field.id) {
-
 
20672
          case 1: // START_DATE
-
 
20673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20674
              this.startDate = iprot.readI64();
-
 
20675
              setStartDateIsSet(true);
-
 
20676
            } else { 
-
 
20677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20678
            }
-
 
20679
            break;
-
 
20680
          case 2: // END_DATE
-
 
20681
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20682
              this.endDate = iprot.readI64();
-
 
20683
              setEndDateIsSet(true);
-
 
20684
            } else { 
-
 
20685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20686
            }
-
 
20687
            break;
-
 
20688
          default:
-
 
20689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20690
        }
-
 
20691
        iprot.readFieldEnd();
-
 
20692
      }
-
 
20693
      iprot.readStructEnd();
-
 
20694
      validate();
-
 
20695
    }
-
 
20696
 
-
 
20697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20698
      validate();
-
 
20699
 
-
 
20700
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20701
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
20702
      oprot.writeI64(this.startDate);
-
 
20703
      oprot.writeFieldEnd();
-
 
20704
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
20705
      oprot.writeI64(this.endDate);
-
 
20706
      oprot.writeFieldEnd();
-
 
20707
      oprot.writeFieldStop();
-
 
20708
      oprot.writeStructEnd();
-
 
20709
    }
-
 
20710
 
-
 
20711
    @Override
-
 
20712
    public String toString() {
-
 
20713
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
-
 
20714
      boolean first = true;
-
 
20715
 
-
 
20716
      sb.append("startDate:");
-
 
20717
      sb.append(this.startDate);
-
 
20718
      first = false;
-
 
20719
      if (!first) sb.append(", ");
-
 
20720
      sb.append("endDate:");
-
 
20721
      sb.append(this.endDate);
-
 
20722
      first = false;
-
 
20723
      sb.append(")");
-
 
20724
      return sb.toString();
-
 
20725
    }
-
 
20726
 
-
 
20727
    public void validate() throws org.apache.thrift.TException {
-
 
20728
      // check for required fields
-
 
20729
    }
-
 
20730
 
-
 
20731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20732
      try {
-
 
20733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20734
      } catch (org.apache.thrift.TException te) {
-
 
20735
        throw new java.io.IOException(te);
-
 
20736
      }
-
 
20737
    }
-
 
20738
 
-
 
20739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20740
      try {
-
 
20741
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
20742
        __isset_bit_vector = new BitSet(1);
-
 
20743
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20744
      } catch (org.apache.thrift.TException te) {
-
 
20745
        throw new java.io.IOException(te);
-
 
20746
      }
-
 
20747
    }
-
 
20748
 
-
 
20749
  }
-
 
20750
 
-
 
20751
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20752
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
-
 
20753
 
-
 
20754
    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);
-
 
20755
 
-
 
20756
    private List<InventoryMovement> success; // required
-
 
20757
 
-
 
20758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20760
      SUCCESS((short)0, "success");
-
 
20761
 
-
 
20762
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20763
 
-
 
20764
      static {
-
 
20765
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20766
          byName.put(field.getFieldName(), field);
-
 
20767
        }
-
 
20768
      }
-
 
20769
 
-
 
20770
      /**
-
 
20771
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20772
       */
-
 
20773
      public static _Fields findByThriftId(int fieldId) {
-
 
20774
        switch(fieldId) {
-
 
20775
          case 0: // SUCCESS
-
 
20776
            return SUCCESS;
-
 
20777
          default:
-
 
20778
            return null;
-
 
20779
        }
-
 
20780
      }
-
 
20781
 
-
 
20782
      /**
-
 
20783
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20784
       * if it is not found.
-
 
20785
       */
-
 
20786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20787
        _Fields fields = findByThriftId(fieldId);
-
 
20788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20789
        return fields;
-
 
20790
      }
-
 
20791
 
-
 
20792
      /**
-
 
20793
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20794
       */
-
 
20795
      public static _Fields findByName(String name) {
-
 
20796
        return byName.get(name);
-
 
20797
      }
-
 
20798
 
-
 
20799
      private final short _thriftId;
-
 
20800
      private final String _fieldName;
-
 
20801
 
-
 
20802
      _Fields(short thriftId, String fieldName) {
-
 
20803
        _thriftId = thriftId;
-
 
20804
        _fieldName = fieldName;
-
 
20805
      }
-
 
20806
 
-
 
20807
      public short getThriftFieldId() {
-
 
20808
        return _thriftId;
-
 
20809
      }
-
 
20810
 
-
 
20811
      public String getFieldName() {
-
 
20812
        return _fieldName;
-
 
20813
      }
-
 
20814
    }
-
 
20815
 
-
 
20816
    // isset id assignments
-
 
20817
 
-
 
20818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20819
    static {
-
 
20820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20821
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20822
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
20823
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
20824
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20825
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
-
 
20826
    }
-
 
20827
 
-
 
20828
    public getMovementSerializedInventoryByScans_result() {
-
 
20829
    }
-
 
20830
 
-
 
20831
    public getMovementSerializedInventoryByScans_result(
-
 
20832
      List<InventoryMovement> success)
-
 
20833
    {
-
 
20834
      this();
-
 
20835
      this.success = success;
-
 
20836
    }
-
 
20837
 
-
 
20838
    /**
-
 
20839
     * Performs a deep copy on <i>other</i>.
-
 
20840
     */
-
 
20841
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
-
 
20842
      if (other.isSetSuccess()) {
-
 
20843
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
20844
        for (InventoryMovement other_element : other.success) {
-
 
20845
          __this__success.add(new InventoryMovement(other_element));
-
 
20846
        }
-
 
20847
        this.success = __this__success;
-
 
20848
      }
-
 
20849
    }
-
 
20850
 
-
 
20851
    public getMovementSerializedInventoryByScans_result deepCopy() {
-
 
20852
      return new getMovementSerializedInventoryByScans_result(this);
-
 
20853
    }
-
 
20854
 
-
 
20855
    @Override
-
 
20856
    public void clear() {
-
 
20857
      this.success = null;
-
 
20858
    }
-
 
20859
 
-
 
20860
    public int getSuccessSize() {
-
 
20861
      return (this.success == null) ? 0 : this.success.size();
-
 
20862
    }
-
 
20863
 
-
 
20864
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
20865
      return (this.success == null) ? null : this.success.iterator();
-
 
20866
    }
-
 
20867
 
-
 
20868
    public void addToSuccess(InventoryMovement elem) {
-
 
20869
      if (this.success == null) {
-
 
20870
        this.success = new ArrayList<InventoryMovement>();
-
 
20871
      }
-
 
20872
      this.success.add(elem);
-
 
20873
    }
-
 
20874
 
-
 
20875
    public List<InventoryMovement> getSuccess() {
-
 
20876
      return this.success;
-
 
20877
    }
-
 
20878
 
-
 
20879
    public void setSuccess(List<InventoryMovement> success) {
-
 
20880
      this.success = success;
-
 
20881
    }
-
 
20882
 
-
 
20883
    public void unsetSuccess() {
-
 
20884
      this.success = null;
-
 
20885
    }
-
 
20886
 
-
 
20887
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20888
    public boolean isSetSuccess() {
-
 
20889
      return this.success != null;
-
 
20890
    }
-
 
20891
 
-
 
20892
    public void setSuccessIsSet(boolean value) {
-
 
20893
      if (!value) {
-
 
20894
        this.success = null;
-
 
20895
      }
-
 
20896
    }
-
 
20897
 
-
 
20898
    public void setFieldValue(_Fields field, Object value) {
-
 
20899
      switch (field) {
-
 
20900
      case SUCCESS:
-
 
20901
        if (value == null) {
-
 
20902
          unsetSuccess();
-
 
20903
        } else {
-
 
20904
          setSuccess((List<InventoryMovement>)value);
-
 
20905
        }
-
 
20906
        break;
-
 
20907
 
-
 
20908
      }
-
 
20909
    }
-
 
20910
 
-
 
20911
    public Object getFieldValue(_Fields field) {
-
 
20912
      switch (field) {
-
 
20913
      case SUCCESS:
-
 
20914
        return getSuccess();
-
 
20915
 
-
 
20916
      }
-
 
20917
      throw new IllegalStateException();
-
 
20918
    }
-
 
20919
 
-
 
20920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20921
    public boolean isSet(_Fields field) {
-
 
20922
      if (field == null) {
-
 
20923
        throw new IllegalArgumentException();
-
 
20924
      }
-
 
20925
 
-
 
20926
      switch (field) {
-
 
20927
      case SUCCESS:
-
 
20928
        return isSetSuccess();
-
 
20929
      }
-
 
20930
      throw new IllegalStateException();
-
 
20931
    }
-
 
20932
 
-
 
20933
    @Override
-
 
20934
    public boolean equals(Object that) {
-
 
20935
      if (that == null)
-
 
20936
        return false;
-
 
20937
      if (that instanceof getMovementSerializedInventoryByScans_result)
-
 
20938
        return this.equals((getMovementSerializedInventoryByScans_result)that);
-
 
20939
      return false;
-
 
20940
    }
-
 
20941
 
-
 
20942
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
-
 
20943
      if (that == null)
-
 
20944
        return false;
-
 
20945
 
-
 
20946
      boolean this_present_success = true && this.isSetSuccess();
-
 
20947
      boolean that_present_success = true && that.isSetSuccess();
-
 
20948
      if (this_present_success || that_present_success) {
-
 
20949
        if (!(this_present_success && that_present_success))
-
 
20950
          return false;
-
 
20951
        if (!this.success.equals(that.success))
-
 
20952
          return false;
-
 
20953
      }
-
 
20954
 
-
 
20955
      return true;
-
 
20956
    }
-
 
20957
 
-
 
20958
    @Override
-
 
20959
    public int hashCode() {
-
 
20960
      return 0;
-
 
20961
    }
-
 
20962
 
-
 
20963
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
-
 
20964
      if (!getClass().equals(other.getClass())) {
-
 
20965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20966
      }
-
 
20967
 
-
 
20968
      int lastComparison = 0;
-
 
20969
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
-
 
20970
 
-
 
20971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20972
      if (lastComparison != 0) {
-
 
20973
        return lastComparison;
-
 
20974
      }
-
 
20975
      if (isSetSuccess()) {
-
 
20976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20977
        if (lastComparison != 0) {
-
 
20978
          return lastComparison;
-
 
20979
        }
-
 
20980
      }
-
 
20981
      return 0;
-
 
20982
    }
-
 
20983
 
-
 
20984
    public _Fields fieldForId(int fieldId) {
-
 
20985
      return _Fields.findByThriftId(fieldId);
-
 
20986
    }
-
 
20987
 
-
 
20988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20989
      org.apache.thrift.protocol.TField field;
-
 
20990
      iprot.readStructBegin();
-
 
20991
      while (true)
-
 
20992
      {
-
 
20993
        field = iprot.readFieldBegin();
-
 
20994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20995
          break;
-
 
20996
        }
-
 
20997
        switch (field.id) {
-
 
20998
          case 0: // SUCCESS
-
 
20999
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
21000
              {
-
 
21001
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
-
 
21002
                this.success = new ArrayList<InventoryMovement>(_list60.size);
-
 
21003
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
-
 
21004
                {
-
 
21005
                  InventoryMovement _elem62; // required
-
 
21006
                  _elem62 = new InventoryMovement();
-
 
21007
                  _elem62.read(iprot);
-
 
21008
                  this.success.add(_elem62);
-
 
21009
                }
-
 
21010
                iprot.readListEnd();
-
 
21011
              }
-
 
21012
            } else { 
-
 
21013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21014
            }
-
 
21015
            break;
-
 
21016
          default:
-
 
21017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21018
        }
-
 
21019
        iprot.readFieldEnd();
-
 
21020
      }
-
 
21021
      iprot.readStructEnd();
-
 
21022
      validate();
-
 
21023
    }
-
 
21024
 
-
 
21025
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21026
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21027
 
-
 
21028
      if (this.isSetSuccess()) {
-
 
21029
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
21030
        {
-
 
21031
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
21032
          for (InventoryMovement _iter63 : this.success)
-
 
21033
          {
-
 
21034
            _iter63.write(oprot);
-
 
21035
          }
-
 
21036
          oprot.writeListEnd();
-
 
21037
        }
-
 
21038
        oprot.writeFieldEnd();
-
 
21039
      }
-
 
21040
      oprot.writeFieldStop();
-
 
21041
      oprot.writeStructEnd();
-
 
21042
    }
-
 
21043
 
-
 
21044
    @Override
-
 
21045
    public String toString() {
-
 
21046
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
-
 
21047
      boolean first = true;
-
 
21048
 
-
 
21049
      sb.append("success:");
-
 
21050
      if (this.success == null) {
-
 
21051
        sb.append("null");
16102
      } else {
21052
      } else {
16103
        sb.append(this.success);
21053
        sb.append(this.success);
16104
      }
21054
      }
16105
      first = false;
21055
      first = false;
16106
      sb.append(")");
21056
      sb.append(")");