Subversion Repositories SmartDukaan

Rev

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

Rev 7210 Rev 7216
Line 224... Line 224...
224
 
224
 
225
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
225
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
226
 
226
 
227
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
227
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
228
 
228
 
-
 
229
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
230
 
-
 
231
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
232
 
229
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
233
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
230
 
234
 
231
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
235
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
232
 
236
 
233
  }
237
  }
Line 286... Line 290...
286
 
290
 
287
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
291
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
288
 
292
 
289
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
293
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
290
 
294
 
-
 
295
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
296
 
-
 
297
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
298
 
291
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
299
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
292
 
300
 
293
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
301
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
294
 
302
 
295
  }
303
  }
Line 979... Line 987...
979
        return result.success;
987
        return result.success;
980
      }
988
      }
981
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
989
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
982
    }
990
    }
983
 
991
 
-
 
992
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
993
    {
-
 
994
      send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
-
 
995
      return recv_getCompleteMovementSerializedInventoryByScans();
-
 
996
    }
-
 
997
 
-
 
998
    public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
999
    {
-
 
1000
      getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
-
 
1001
      args.setStartDate(startDate);
-
 
1002
      args.setEndDate(endDate);
-
 
1003
      sendBase("getCompleteMovementSerializedInventoryByScans", args);
-
 
1004
    }
-
 
1005
 
-
 
1006
    public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
1007
    {
-
 
1008
      getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
-
 
1009
      receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
-
 
1010
      if (result.isSetSuccess()) {
-
 
1011
        return result.success;
-
 
1012
      }
-
 
1013
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
-
 
1014
    }
-
 
1015
 
-
 
1016
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
1017
    {
-
 
1018
      send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
-
 
1019
      return recv_getCompleteMovementNonSerializedInventoryByScans();
-
 
1020
    }
-
 
1021
 
-
 
1022
    public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
1023
    {
-
 
1024
      getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
-
 
1025
      args.setStartDate(startDate);
-
 
1026
      args.setEndDate(endDate);
-
 
1027
      sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
-
 
1028
    }
-
 
1029
 
-
 
1030
    public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
1031
    {
-
 
1032
      getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
-
 
1033
      receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
-
 
1034
      if (result.isSetSuccess()) {
-
 
1035
        return result.success;
-
 
1036
      }
-
 
1037
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
-
 
1038
    }
-
 
1039
 
984
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1040
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
985
    {
1041
    {
986
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
1042
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
987
      return recv_scanfreebie();
1043
      return recv_scanfreebie();
988
    }
1044
    }
Line 2000... Line 2056...
2000
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2056
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2001
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2057
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2002
      }
2058
      }
2003
    }
2059
    }
2004
 
2060
 
-
 
2061
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
2062
      checkReady();
-
 
2063
      getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
2064
      this.___currentMethod = method_call;
-
 
2065
      ___manager.call(method_call);
-
 
2066
    }
-
 
2067
 
-
 
2068
    public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2069
      private long startDate;
-
 
2070
      private long endDate;
-
 
2071
      public getCompleteMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_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 {
-
 
2072
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2073
        this.startDate = startDate;
-
 
2074
        this.endDate = endDate;
-
 
2075
      }
-
 
2076
 
-
 
2077
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2078
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2079
        getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
-
 
2080
        args.setStartDate(startDate);
-
 
2081
        args.setEndDate(endDate);
-
 
2082
        args.write(prot);
-
 
2083
        prot.writeMessageEnd();
-
 
2084
      }
-
 
2085
 
-
 
2086
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
2087
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2088
          throw new IllegalStateException("Method call not finished!");
-
 
2089
        }
-
 
2090
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2091
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2092
        return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
-
 
2093
      }
-
 
2094
    }
-
 
2095
 
-
 
2096
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
2097
      checkReady();
-
 
2098
      getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
2099
      this.___currentMethod = method_call;
-
 
2100
      ___manager.call(method_call);
-
 
2101
    }
-
 
2102
 
-
 
2103
    public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2104
      private long startDate;
-
 
2105
      private long endDate;
-
 
2106
      public getCompleteMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_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 {
-
 
2107
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2108
        this.startDate = startDate;
-
 
2109
        this.endDate = endDate;
-
 
2110
      }
-
 
2111
 
-
 
2112
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2113
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2114
        getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
-
 
2115
        args.setStartDate(startDate);
-
 
2116
        args.setEndDate(endDate);
-
 
2117
        args.write(prot);
-
 
2118
        prot.writeMessageEnd();
-
 
2119
      }
-
 
2120
 
-
 
2121
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
2122
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2123
          throw new IllegalStateException("Method call not finished!");
-
 
2124
        }
-
 
2125
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2126
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2127
        return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
-
 
2128
      }
-
 
2129
    }
-
 
2130
 
2005
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2131
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2006
      checkReady();
2132
      checkReady();
2007
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2133
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2008
      this.___currentMethod = method_call;
2134
      this.___currentMethod = method_call;
2009
      ___manager.call(method_call);
2135
      ___manager.call(method_call);
Line 2122... Line 2248...
2122
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
2248
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
2123
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
2249
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
2124
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
2250
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
2125
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
2251
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
2126
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
2252
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
-
 
2253
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
-
 
2254
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
2127
      processMap.put("scanfreebie", new scanfreebie());
2255
      processMap.put("scanfreebie", new scanfreebie());
2128
      processMap.put("reshipfreebie", new reshipfreebie());
2256
      processMap.put("reshipfreebie", new reshipfreebie());
2129
      return processMap;
2257
      return processMap;
2130
    }
2258
    }
2131
 
2259
 
Line 2603... Line 2731...
2603
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
2731
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
2604
        return result;
2732
        return result;
2605
      }
2733
      }
2606
    }
2734
    }
2607
 
2735
 
-
 
2736
    private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
-
 
2737
      public getCompleteMovementSerializedInventoryByScans() {
-
 
2738
        super("getCompleteMovementSerializedInventoryByScans");
-
 
2739
      }
-
 
2740
 
-
 
2741
      protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2742
        return new getCompleteMovementSerializedInventoryByScans_args();
-
 
2743
      }
-
 
2744
 
-
 
2745
      protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2746
        getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
-
 
2747
        result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2748
        return result;
-
 
2749
      }
-
 
2750
    }
-
 
2751
 
-
 
2752
    private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
-
 
2753
      public getCompleteMovementNonSerializedInventoryByScans() {
-
 
2754
        super("getCompleteMovementNonSerializedInventoryByScans");
-
 
2755
      }
-
 
2756
 
-
 
2757
      protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2758
        return new getCompleteMovementNonSerializedInventoryByScans_args();
-
 
2759
      }
-
 
2760
 
-
 
2761
      protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2762
        getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
-
 
2763
        result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2764
        return result;
-
 
2765
      }
-
 
2766
    }
-
 
2767
 
2608
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
2768
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
2609
      public scanfreebie() {
2769
      public scanfreebie() {
2610
        super("scanfreebie");
2770
        super("scanfreebie");
2611
      }
2771
      }
2612
 
2772
 
Line 22028... Line 22188...
22028
      boolean first = true;
22188
      boolean first = true;
22029
 
22189
 
22030
      sb.append("success:");
22190
      sb.append("success:");
22031
      if (this.success == null) {
22191
      if (this.success == null) {
22032
        sb.append("null");
22192
        sb.append("null");
-
 
22193
      } else {
-
 
22194
        sb.append(this.success);
-
 
22195
      }
-
 
22196
      first = false;
-
 
22197
      sb.append(")");
-
 
22198
      return sb.toString();
-
 
22199
    }
-
 
22200
 
-
 
22201
    public void validate() throws org.apache.thrift.TException {
-
 
22202
      // check for required fields
-
 
22203
    }
-
 
22204
 
-
 
22205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22206
      try {
-
 
22207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22208
      } catch (org.apache.thrift.TException te) {
-
 
22209
        throw new java.io.IOException(te);
-
 
22210
      }
-
 
22211
    }
-
 
22212
 
-
 
22213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22214
      try {
-
 
22215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22216
      } catch (org.apache.thrift.TException te) {
-
 
22217
        throw new java.io.IOException(te);
-
 
22218
      }
-
 
22219
    }
-
 
22220
 
-
 
22221
  }
-
 
22222
 
-
 
22223
  public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
-
 
22225
 
-
 
22226
    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);
-
 
22227
    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);
-
 
22228
 
-
 
22229
    private long startDate; // required
-
 
22230
    private long endDate; // required
-
 
22231
 
-
 
22232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22234
      START_DATE((short)1, "startDate"),
-
 
22235
      END_DATE((short)2, "endDate");
-
 
22236
 
-
 
22237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22238
 
-
 
22239
      static {
-
 
22240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22241
          byName.put(field.getFieldName(), field);
-
 
22242
        }
-
 
22243
      }
-
 
22244
 
-
 
22245
      /**
-
 
22246
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22247
       */
-
 
22248
      public static _Fields findByThriftId(int fieldId) {
-
 
22249
        switch(fieldId) {
-
 
22250
          case 1: // START_DATE
-
 
22251
            return START_DATE;
-
 
22252
          case 2: // END_DATE
-
 
22253
            return END_DATE;
-
 
22254
          default:
-
 
22255
            return null;
-
 
22256
        }
-
 
22257
      }
-
 
22258
 
-
 
22259
      /**
-
 
22260
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22261
       * if it is not found.
-
 
22262
       */
-
 
22263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22264
        _Fields fields = findByThriftId(fieldId);
-
 
22265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22266
        return fields;
-
 
22267
      }
-
 
22268
 
-
 
22269
      /**
-
 
22270
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22271
       */
-
 
22272
      public static _Fields findByName(String name) {
-
 
22273
        return byName.get(name);
-
 
22274
      }
-
 
22275
 
-
 
22276
      private final short _thriftId;
-
 
22277
      private final String _fieldName;
-
 
22278
 
-
 
22279
      _Fields(short thriftId, String fieldName) {
-
 
22280
        _thriftId = thriftId;
-
 
22281
        _fieldName = fieldName;
-
 
22282
      }
-
 
22283
 
-
 
22284
      public short getThriftFieldId() {
-
 
22285
        return _thriftId;
-
 
22286
      }
-
 
22287
 
-
 
22288
      public String getFieldName() {
-
 
22289
        return _fieldName;
-
 
22290
      }
-
 
22291
    }
-
 
22292
 
-
 
22293
    // isset id assignments
-
 
22294
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
22295
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
22296
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
22297
 
-
 
22298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22299
    static {
-
 
22300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22301
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22303
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
-
 
22307
    }
-
 
22308
 
-
 
22309
    public getCompleteMovementSerializedInventoryByScans_args() {
-
 
22310
    }
-
 
22311
 
-
 
22312
    public getCompleteMovementSerializedInventoryByScans_args(
-
 
22313
      long startDate,
-
 
22314
      long endDate)
-
 
22315
    {
-
 
22316
      this();
-
 
22317
      this.startDate = startDate;
-
 
22318
      setStartDateIsSet(true);
-
 
22319
      this.endDate = endDate;
-
 
22320
      setEndDateIsSet(true);
-
 
22321
    }
-
 
22322
 
-
 
22323
    /**
-
 
22324
     * Performs a deep copy on <i>other</i>.
-
 
22325
     */
-
 
22326
    public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
-
 
22327
      __isset_bit_vector.clear();
-
 
22328
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22329
      this.startDate = other.startDate;
-
 
22330
      this.endDate = other.endDate;
-
 
22331
    }
-
 
22332
 
-
 
22333
    public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
-
 
22334
      return new getCompleteMovementSerializedInventoryByScans_args(this);
-
 
22335
    }
-
 
22336
 
-
 
22337
    @Override
-
 
22338
    public void clear() {
-
 
22339
      setStartDateIsSet(false);
-
 
22340
      this.startDate = 0;
-
 
22341
      setEndDateIsSet(false);
-
 
22342
      this.endDate = 0;
-
 
22343
    }
-
 
22344
 
-
 
22345
    public long getStartDate() {
-
 
22346
      return this.startDate;
-
 
22347
    }
-
 
22348
 
-
 
22349
    public void setStartDate(long startDate) {
-
 
22350
      this.startDate = startDate;
-
 
22351
      setStartDateIsSet(true);
-
 
22352
    }
-
 
22353
 
-
 
22354
    public void unsetStartDate() {
-
 
22355
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
22356
    }
-
 
22357
 
-
 
22358
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
22359
    public boolean isSetStartDate() {
-
 
22360
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
22361
    }
-
 
22362
 
-
 
22363
    public void setStartDateIsSet(boolean value) {
-
 
22364
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
22365
    }
-
 
22366
 
-
 
22367
    public long getEndDate() {
-
 
22368
      return this.endDate;
-
 
22369
    }
-
 
22370
 
-
 
22371
    public void setEndDate(long endDate) {
-
 
22372
      this.endDate = endDate;
-
 
22373
      setEndDateIsSet(true);
-
 
22374
    }
-
 
22375
 
-
 
22376
    public void unsetEndDate() {
-
 
22377
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
22378
    }
-
 
22379
 
-
 
22380
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
22381
    public boolean isSetEndDate() {
-
 
22382
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
22383
    }
-
 
22384
 
-
 
22385
    public void setEndDateIsSet(boolean value) {
-
 
22386
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
22387
    }
-
 
22388
 
-
 
22389
    public void setFieldValue(_Fields field, Object value) {
-
 
22390
      switch (field) {
-
 
22391
      case START_DATE:
-
 
22392
        if (value == null) {
-
 
22393
          unsetStartDate();
-
 
22394
        } else {
-
 
22395
          setStartDate((Long)value);
-
 
22396
        }
-
 
22397
        break;
-
 
22398
 
-
 
22399
      case END_DATE:
-
 
22400
        if (value == null) {
-
 
22401
          unsetEndDate();
-
 
22402
        } else {
-
 
22403
          setEndDate((Long)value);
-
 
22404
        }
-
 
22405
        break;
-
 
22406
 
-
 
22407
      }
-
 
22408
    }
-
 
22409
 
-
 
22410
    public Object getFieldValue(_Fields field) {
-
 
22411
      switch (field) {
-
 
22412
      case START_DATE:
-
 
22413
        return Long.valueOf(getStartDate());
-
 
22414
 
-
 
22415
      case END_DATE:
-
 
22416
        return Long.valueOf(getEndDate());
-
 
22417
 
-
 
22418
      }
-
 
22419
      throw new IllegalStateException();
-
 
22420
    }
-
 
22421
 
-
 
22422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22423
    public boolean isSet(_Fields field) {
-
 
22424
      if (field == null) {
-
 
22425
        throw new IllegalArgumentException();
-
 
22426
      }
-
 
22427
 
-
 
22428
      switch (field) {
-
 
22429
      case START_DATE:
-
 
22430
        return isSetStartDate();
-
 
22431
      case END_DATE:
-
 
22432
        return isSetEndDate();
-
 
22433
      }
-
 
22434
      throw new IllegalStateException();
-
 
22435
    }
-
 
22436
 
-
 
22437
    @Override
-
 
22438
    public boolean equals(Object that) {
-
 
22439
      if (that == null)
-
 
22440
        return false;
-
 
22441
      if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
-
 
22442
        return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
-
 
22443
      return false;
-
 
22444
    }
-
 
22445
 
-
 
22446
    public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
-
 
22447
      if (that == null)
-
 
22448
        return false;
-
 
22449
 
-
 
22450
      boolean this_present_startDate = true;
-
 
22451
      boolean that_present_startDate = true;
-
 
22452
      if (this_present_startDate || that_present_startDate) {
-
 
22453
        if (!(this_present_startDate && that_present_startDate))
-
 
22454
          return false;
-
 
22455
        if (this.startDate != that.startDate)
-
 
22456
          return false;
-
 
22457
      }
-
 
22458
 
-
 
22459
      boolean this_present_endDate = true;
-
 
22460
      boolean that_present_endDate = true;
-
 
22461
      if (this_present_endDate || that_present_endDate) {
-
 
22462
        if (!(this_present_endDate && that_present_endDate))
-
 
22463
          return false;
-
 
22464
        if (this.endDate != that.endDate)
-
 
22465
          return false;
-
 
22466
      }
-
 
22467
 
-
 
22468
      return true;
-
 
22469
    }
-
 
22470
 
-
 
22471
    @Override
-
 
22472
    public int hashCode() {
-
 
22473
      return 0;
-
 
22474
    }
-
 
22475
 
-
 
22476
    public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
-
 
22477
      if (!getClass().equals(other.getClass())) {
-
 
22478
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22479
      }
-
 
22480
 
-
 
22481
      int lastComparison = 0;
-
 
22482
      getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
-
 
22483
 
-
 
22484
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
22485
      if (lastComparison != 0) {
-
 
22486
        return lastComparison;
-
 
22487
      }
-
 
22488
      if (isSetStartDate()) {
-
 
22489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
22490
        if (lastComparison != 0) {
-
 
22491
          return lastComparison;
-
 
22492
        }
-
 
22493
      }
-
 
22494
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
22495
      if (lastComparison != 0) {
-
 
22496
        return lastComparison;
-
 
22497
      }
-
 
22498
      if (isSetEndDate()) {
-
 
22499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
22500
        if (lastComparison != 0) {
-
 
22501
          return lastComparison;
-
 
22502
        }
-
 
22503
      }
-
 
22504
      return 0;
-
 
22505
    }
-
 
22506
 
-
 
22507
    public _Fields fieldForId(int fieldId) {
-
 
22508
      return _Fields.findByThriftId(fieldId);
-
 
22509
    }
-
 
22510
 
-
 
22511
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22512
      org.apache.thrift.protocol.TField field;
-
 
22513
      iprot.readStructBegin();
-
 
22514
      while (true)
-
 
22515
      {
-
 
22516
        field = iprot.readFieldBegin();
-
 
22517
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22518
          break;
-
 
22519
        }
-
 
22520
        switch (field.id) {
-
 
22521
          case 1: // START_DATE
-
 
22522
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22523
              this.startDate = iprot.readI64();
-
 
22524
              setStartDateIsSet(true);
-
 
22525
            } else { 
-
 
22526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22527
            }
-
 
22528
            break;
-
 
22529
          case 2: // END_DATE
-
 
22530
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22531
              this.endDate = iprot.readI64();
-
 
22532
              setEndDateIsSet(true);
-
 
22533
            } else { 
-
 
22534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22535
            }
-
 
22536
            break;
-
 
22537
          default:
-
 
22538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22539
        }
-
 
22540
        iprot.readFieldEnd();
-
 
22541
      }
-
 
22542
      iprot.readStructEnd();
-
 
22543
      validate();
-
 
22544
    }
-
 
22545
 
-
 
22546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22547
      validate();
-
 
22548
 
-
 
22549
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22550
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
22551
      oprot.writeI64(this.startDate);
-
 
22552
      oprot.writeFieldEnd();
-
 
22553
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
22554
      oprot.writeI64(this.endDate);
-
 
22555
      oprot.writeFieldEnd();
-
 
22556
      oprot.writeFieldStop();
-
 
22557
      oprot.writeStructEnd();
-
 
22558
    }
-
 
22559
 
-
 
22560
    @Override
-
 
22561
    public String toString() {
-
 
22562
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
-
 
22563
      boolean first = true;
-
 
22564
 
-
 
22565
      sb.append("startDate:");
-
 
22566
      sb.append(this.startDate);
-
 
22567
      first = false;
-
 
22568
      if (!first) sb.append(", ");
-
 
22569
      sb.append("endDate:");
-
 
22570
      sb.append(this.endDate);
-
 
22571
      first = false;
-
 
22572
      sb.append(")");
-
 
22573
      return sb.toString();
-
 
22574
    }
-
 
22575
 
-
 
22576
    public void validate() throws org.apache.thrift.TException {
-
 
22577
      // check for required fields
-
 
22578
    }
-
 
22579
 
-
 
22580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22581
      try {
-
 
22582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22583
      } catch (org.apache.thrift.TException te) {
-
 
22584
        throw new java.io.IOException(te);
-
 
22585
      }
-
 
22586
    }
-
 
22587
 
-
 
22588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22589
      try {
-
 
22590
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22591
        __isset_bit_vector = new BitSet(1);
-
 
22592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22593
      } catch (org.apache.thrift.TException te) {
-
 
22594
        throw new java.io.IOException(te);
-
 
22595
      }
-
 
22596
    }
-
 
22597
 
-
 
22598
  }
-
 
22599
 
-
 
22600
  public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
-
 
22602
 
-
 
22603
    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);
-
 
22604
 
-
 
22605
    private List<InventoryMovement> success; // required
-
 
22606
 
-
 
22607
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22608
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22609
      SUCCESS((short)0, "success");
-
 
22610
 
-
 
22611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22612
 
-
 
22613
      static {
-
 
22614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22615
          byName.put(field.getFieldName(), field);
-
 
22616
        }
-
 
22617
      }
-
 
22618
 
-
 
22619
      /**
-
 
22620
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22621
       */
-
 
22622
      public static _Fields findByThriftId(int fieldId) {
-
 
22623
        switch(fieldId) {
-
 
22624
          case 0: // SUCCESS
-
 
22625
            return SUCCESS;
-
 
22626
          default:
-
 
22627
            return null;
-
 
22628
        }
-
 
22629
      }
-
 
22630
 
-
 
22631
      /**
-
 
22632
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22633
       * if it is not found.
-
 
22634
       */
-
 
22635
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22636
        _Fields fields = findByThriftId(fieldId);
-
 
22637
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22638
        return fields;
-
 
22639
      }
-
 
22640
 
-
 
22641
      /**
-
 
22642
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22643
       */
-
 
22644
      public static _Fields findByName(String name) {
-
 
22645
        return byName.get(name);
-
 
22646
      }
-
 
22647
 
-
 
22648
      private final short _thriftId;
-
 
22649
      private final String _fieldName;
-
 
22650
 
-
 
22651
      _Fields(short thriftId, String fieldName) {
-
 
22652
        _thriftId = thriftId;
-
 
22653
        _fieldName = fieldName;
-
 
22654
      }
-
 
22655
 
-
 
22656
      public short getThriftFieldId() {
-
 
22657
        return _thriftId;
-
 
22658
      }
-
 
22659
 
-
 
22660
      public String getFieldName() {
-
 
22661
        return _fieldName;
-
 
22662
      }
-
 
22663
    }
-
 
22664
 
-
 
22665
    // isset id assignments
-
 
22666
 
-
 
22667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22668
    static {
-
 
22669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22670
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22671
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
22672
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
22673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
-
 
22675
    }
-
 
22676
 
-
 
22677
    public getCompleteMovementSerializedInventoryByScans_result() {
-
 
22678
    }
-
 
22679
 
-
 
22680
    public getCompleteMovementSerializedInventoryByScans_result(
-
 
22681
      List<InventoryMovement> success)
-
 
22682
    {
-
 
22683
      this();
-
 
22684
      this.success = success;
-
 
22685
    }
-
 
22686
 
-
 
22687
    /**
-
 
22688
     * Performs a deep copy on <i>other</i>.
-
 
22689
     */
-
 
22690
    public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
-
 
22691
      if (other.isSetSuccess()) {
-
 
22692
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
22693
        for (InventoryMovement other_element : other.success) {
-
 
22694
          __this__success.add(new InventoryMovement(other_element));
-
 
22695
        }
-
 
22696
        this.success = __this__success;
-
 
22697
      }
-
 
22698
    }
-
 
22699
 
-
 
22700
    public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
-
 
22701
      return new getCompleteMovementSerializedInventoryByScans_result(this);
-
 
22702
    }
-
 
22703
 
-
 
22704
    @Override
-
 
22705
    public void clear() {
-
 
22706
      this.success = null;
-
 
22707
    }
-
 
22708
 
-
 
22709
    public int getSuccessSize() {
-
 
22710
      return (this.success == null) ? 0 : this.success.size();
-
 
22711
    }
-
 
22712
 
-
 
22713
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
22714
      return (this.success == null) ? null : this.success.iterator();
-
 
22715
    }
-
 
22716
 
-
 
22717
    public void addToSuccess(InventoryMovement elem) {
-
 
22718
      if (this.success == null) {
-
 
22719
        this.success = new ArrayList<InventoryMovement>();
-
 
22720
      }
-
 
22721
      this.success.add(elem);
-
 
22722
    }
-
 
22723
 
-
 
22724
    public List<InventoryMovement> getSuccess() {
-
 
22725
      return this.success;
-
 
22726
    }
-
 
22727
 
-
 
22728
    public void setSuccess(List<InventoryMovement> success) {
-
 
22729
      this.success = success;
-
 
22730
    }
-
 
22731
 
-
 
22732
    public void unsetSuccess() {
-
 
22733
      this.success = null;
-
 
22734
    }
-
 
22735
 
-
 
22736
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
22737
    public boolean isSetSuccess() {
-
 
22738
      return this.success != null;
-
 
22739
    }
-
 
22740
 
-
 
22741
    public void setSuccessIsSet(boolean value) {
-
 
22742
      if (!value) {
-
 
22743
        this.success = null;
-
 
22744
      }
-
 
22745
    }
-
 
22746
 
-
 
22747
    public void setFieldValue(_Fields field, Object value) {
-
 
22748
      switch (field) {
-
 
22749
      case SUCCESS:
-
 
22750
        if (value == null) {
-
 
22751
          unsetSuccess();
-
 
22752
        } else {
-
 
22753
          setSuccess((List<InventoryMovement>)value);
-
 
22754
        }
-
 
22755
        break;
-
 
22756
 
-
 
22757
      }
-
 
22758
    }
-
 
22759
 
-
 
22760
    public Object getFieldValue(_Fields field) {
-
 
22761
      switch (field) {
-
 
22762
      case SUCCESS:
-
 
22763
        return getSuccess();
-
 
22764
 
-
 
22765
      }
-
 
22766
      throw new IllegalStateException();
-
 
22767
    }
-
 
22768
 
-
 
22769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22770
    public boolean isSet(_Fields field) {
-
 
22771
      if (field == null) {
-
 
22772
        throw new IllegalArgumentException();
-
 
22773
      }
-
 
22774
 
-
 
22775
      switch (field) {
-
 
22776
      case SUCCESS:
-
 
22777
        return isSetSuccess();
-
 
22778
      }
-
 
22779
      throw new IllegalStateException();
-
 
22780
    }
-
 
22781
 
-
 
22782
    @Override
-
 
22783
    public boolean equals(Object that) {
-
 
22784
      if (that == null)
-
 
22785
        return false;
-
 
22786
      if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
-
 
22787
        return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
-
 
22788
      return false;
-
 
22789
    }
-
 
22790
 
-
 
22791
    public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
-
 
22792
      if (that == null)
-
 
22793
        return false;
-
 
22794
 
-
 
22795
      boolean this_present_success = true && this.isSetSuccess();
-
 
22796
      boolean that_present_success = true && that.isSetSuccess();
-
 
22797
      if (this_present_success || that_present_success) {
-
 
22798
        if (!(this_present_success && that_present_success))
-
 
22799
          return false;
-
 
22800
        if (!this.success.equals(that.success))
-
 
22801
          return false;
-
 
22802
      }
-
 
22803
 
-
 
22804
      return true;
-
 
22805
    }
-
 
22806
 
-
 
22807
    @Override
-
 
22808
    public int hashCode() {
-
 
22809
      return 0;
-
 
22810
    }
-
 
22811
 
-
 
22812
    public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
-
 
22813
      if (!getClass().equals(other.getClass())) {
-
 
22814
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22815
      }
-
 
22816
 
-
 
22817
      int lastComparison = 0;
-
 
22818
      getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
-
 
22819
 
-
 
22820
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
22821
      if (lastComparison != 0) {
-
 
22822
        return lastComparison;
-
 
22823
      }
-
 
22824
      if (isSetSuccess()) {
-
 
22825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
22826
        if (lastComparison != 0) {
-
 
22827
          return lastComparison;
-
 
22828
        }
-
 
22829
      }
-
 
22830
      return 0;
-
 
22831
    }
-
 
22832
 
-
 
22833
    public _Fields fieldForId(int fieldId) {
-
 
22834
      return _Fields.findByThriftId(fieldId);
-
 
22835
    }
-
 
22836
 
-
 
22837
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22838
      org.apache.thrift.protocol.TField field;
-
 
22839
      iprot.readStructBegin();
-
 
22840
      while (true)
-
 
22841
      {
-
 
22842
        field = iprot.readFieldBegin();
-
 
22843
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22844
          break;
-
 
22845
        }
-
 
22846
        switch (field.id) {
-
 
22847
          case 0: // SUCCESS
-
 
22848
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
22849
              {
-
 
22850
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
-
 
22851
                this.success = new ArrayList<InventoryMovement>(_list68.size);
-
 
22852
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
-
 
22853
                {
-
 
22854
                  InventoryMovement _elem70; // required
-
 
22855
                  _elem70 = new InventoryMovement();
-
 
22856
                  _elem70.read(iprot);
-
 
22857
                  this.success.add(_elem70);
-
 
22858
                }
-
 
22859
                iprot.readListEnd();
-
 
22860
              }
-
 
22861
            } else { 
-
 
22862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22863
            }
-
 
22864
            break;
-
 
22865
          default:
-
 
22866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22867
        }
-
 
22868
        iprot.readFieldEnd();
-
 
22869
      }
-
 
22870
      iprot.readStructEnd();
-
 
22871
      validate();
-
 
22872
    }
-
 
22873
 
-
 
22874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22875
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22876
 
-
 
22877
      if (this.isSetSuccess()) {
-
 
22878
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22879
        {
-
 
22880
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
22881
          for (InventoryMovement _iter71 : this.success)
-
 
22882
          {
-
 
22883
            _iter71.write(oprot);
-
 
22884
          }
-
 
22885
          oprot.writeListEnd();
-
 
22886
        }
-
 
22887
        oprot.writeFieldEnd();
-
 
22888
      }
-
 
22889
      oprot.writeFieldStop();
-
 
22890
      oprot.writeStructEnd();
-
 
22891
    }
-
 
22892
 
-
 
22893
    @Override
-
 
22894
    public String toString() {
-
 
22895
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
-
 
22896
      boolean first = true;
-
 
22897
 
-
 
22898
      sb.append("success:");
-
 
22899
      if (this.success == null) {
-
 
22900
        sb.append("null");
-
 
22901
      } else {
-
 
22902
        sb.append(this.success);
-
 
22903
      }
-
 
22904
      first = false;
-
 
22905
      sb.append(")");
-
 
22906
      return sb.toString();
-
 
22907
    }
-
 
22908
 
-
 
22909
    public void validate() throws org.apache.thrift.TException {
-
 
22910
      // check for required fields
-
 
22911
    }
-
 
22912
 
-
 
22913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22914
      try {
-
 
22915
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22916
      } catch (org.apache.thrift.TException te) {
-
 
22917
        throw new java.io.IOException(te);
-
 
22918
      }
-
 
22919
    }
-
 
22920
 
-
 
22921
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22922
      try {
-
 
22923
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22924
      } catch (org.apache.thrift.TException te) {
-
 
22925
        throw new java.io.IOException(te);
-
 
22926
      }
-
 
22927
    }
-
 
22928
 
-
 
22929
  }
-
 
22930
 
-
 
22931
  public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
-
 
22933
 
-
 
22934
    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);
-
 
22935
    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);
-
 
22936
 
-
 
22937
    private long startDate; // required
-
 
22938
    private long endDate; // required
-
 
22939
 
-
 
22940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22942
      START_DATE((short)1, "startDate"),
-
 
22943
      END_DATE((short)2, "endDate");
-
 
22944
 
-
 
22945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22946
 
-
 
22947
      static {
-
 
22948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22949
          byName.put(field.getFieldName(), field);
-
 
22950
        }
-
 
22951
      }
-
 
22952
 
-
 
22953
      /**
-
 
22954
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22955
       */
-
 
22956
      public static _Fields findByThriftId(int fieldId) {
-
 
22957
        switch(fieldId) {
-
 
22958
          case 1: // START_DATE
-
 
22959
            return START_DATE;
-
 
22960
          case 2: // END_DATE
-
 
22961
            return END_DATE;
-
 
22962
          default:
-
 
22963
            return null;
-
 
22964
        }
-
 
22965
      }
-
 
22966
 
-
 
22967
      /**
-
 
22968
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22969
       * if it is not found.
-
 
22970
       */
-
 
22971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22972
        _Fields fields = findByThriftId(fieldId);
-
 
22973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22974
        return fields;
-
 
22975
      }
-
 
22976
 
-
 
22977
      /**
-
 
22978
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22979
       */
-
 
22980
      public static _Fields findByName(String name) {
-
 
22981
        return byName.get(name);
-
 
22982
      }
-
 
22983
 
-
 
22984
      private final short _thriftId;
-
 
22985
      private final String _fieldName;
-
 
22986
 
-
 
22987
      _Fields(short thriftId, String fieldName) {
-
 
22988
        _thriftId = thriftId;
-
 
22989
        _fieldName = fieldName;
-
 
22990
      }
-
 
22991
 
-
 
22992
      public short getThriftFieldId() {
-
 
22993
        return _thriftId;
-
 
22994
      }
-
 
22995
 
-
 
22996
      public String getFieldName() {
-
 
22997
        return _fieldName;
-
 
22998
      }
-
 
22999
    }
-
 
23000
 
-
 
23001
    // isset id assignments
-
 
23002
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
23003
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
23004
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
23005
 
-
 
23006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23007
    static {
-
 
23008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23009
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23010
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23011
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23012
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23013
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23014
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
-
 
23015
    }
-
 
23016
 
-
 
23017
    public getCompleteMovementNonSerializedInventoryByScans_args() {
-
 
23018
    }
-
 
23019
 
-
 
23020
    public getCompleteMovementNonSerializedInventoryByScans_args(
-
 
23021
      long startDate,
-
 
23022
      long endDate)
-
 
23023
    {
-
 
23024
      this();
-
 
23025
      this.startDate = startDate;
-
 
23026
      setStartDateIsSet(true);
-
 
23027
      this.endDate = endDate;
-
 
23028
      setEndDateIsSet(true);
-
 
23029
    }
-
 
23030
 
-
 
23031
    /**
-
 
23032
     * Performs a deep copy on <i>other</i>.
-
 
23033
     */
-
 
23034
    public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
-
 
23035
      __isset_bit_vector.clear();
-
 
23036
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23037
      this.startDate = other.startDate;
-
 
23038
      this.endDate = other.endDate;
-
 
23039
    }
-
 
23040
 
-
 
23041
    public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
-
 
23042
      return new getCompleteMovementNonSerializedInventoryByScans_args(this);
-
 
23043
    }
-
 
23044
 
-
 
23045
    @Override
-
 
23046
    public void clear() {
-
 
23047
      setStartDateIsSet(false);
-
 
23048
      this.startDate = 0;
-
 
23049
      setEndDateIsSet(false);
-
 
23050
      this.endDate = 0;
-
 
23051
    }
-
 
23052
 
-
 
23053
    public long getStartDate() {
-
 
23054
      return this.startDate;
-
 
23055
    }
-
 
23056
 
-
 
23057
    public void setStartDate(long startDate) {
-
 
23058
      this.startDate = startDate;
-
 
23059
      setStartDateIsSet(true);
-
 
23060
    }
-
 
23061
 
-
 
23062
    public void unsetStartDate() {
-
 
23063
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
23064
    }
-
 
23065
 
-
 
23066
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
23067
    public boolean isSetStartDate() {
-
 
23068
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
23069
    }
-
 
23070
 
-
 
23071
    public void setStartDateIsSet(boolean value) {
-
 
23072
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
23073
    }
-
 
23074
 
-
 
23075
    public long getEndDate() {
-
 
23076
      return this.endDate;
-
 
23077
    }
-
 
23078
 
-
 
23079
    public void setEndDate(long endDate) {
-
 
23080
      this.endDate = endDate;
-
 
23081
      setEndDateIsSet(true);
-
 
23082
    }
-
 
23083
 
-
 
23084
    public void unsetEndDate() {
-
 
23085
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
23086
    }
-
 
23087
 
-
 
23088
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
23089
    public boolean isSetEndDate() {
-
 
23090
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
23091
    }
-
 
23092
 
-
 
23093
    public void setEndDateIsSet(boolean value) {
-
 
23094
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
23095
    }
-
 
23096
 
-
 
23097
    public void setFieldValue(_Fields field, Object value) {
-
 
23098
      switch (field) {
-
 
23099
      case START_DATE:
-
 
23100
        if (value == null) {
-
 
23101
          unsetStartDate();
-
 
23102
        } else {
-
 
23103
          setStartDate((Long)value);
-
 
23104
        }
-
 
23105
        break;
-
 
23106
 
-
 
23107
      case END_DATE:
-
 
23108
        if (value == null) {
-
 
23109
          unsetEndDate();
-
 
23110
        } else {
-
 
23111
          setEndDate((Long)value);
-
 
23112
        }
-
 
23113
        break;
-
 
23114
 
-
 
23115
      }
-
 
23116
    }
-
 
23117
 
-
 
23118
    public Object getFieldValue(_Fields field) {
-
 
23119
      switch (field) {
-
 
23120
      case START_DATE:
-
 
23121
        return Long.valueOf(getStartDate());
-
 
23122
 
-
 
23123
      case END_DATE:
-
 
23124
        return Long.valueOf(getEndDate());
-
 
23125
 
-
 
23126
      }
-
 
23127
      throw new IllegalStateException();
-
 
23128
    }
-
 
23129
 
-
 
23130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23131
    public boolean isSet(_Fields field) {
-
 
23132
      if (field == null) {
-
 
23133
        throw new IllegalArgumentException();
-
 
23134
      }
-
 
23135
 
-
 
23136
      switch (field) {
-
 
23137
      case START_DATE:
-
 
23138
        return isSetStartDate();
-
 
23139
      case END_DATE:
-
 
23140
        return isSetEndDate();
-
 
23141
      }
-
 
23142
      throw new IllegalStateException();
-
 
23143
    }
-
 
23144
 
-
 
23145
    @Override
-
 
23146
    public boolean equals(Object that) {
-
 
23147
      if (that == null)
-
 
23148
        return false;
-
 
23149
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
-
 
23150
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
-
 
23151
      return false;
-
 
23152
    }
-
 
23153
 
-
 
23154
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
-
 
23155
      if (that == null)
-
 
23156
        return false;
-
 
23157
 
-
 
23158
      boolean this_present_startDate = true;
-
 
23159
      boolean that_present_startDate = true;
-
 
23160
      if (this_present_startDate || that_present_startDate) {
-
 
23161
        if (!(this_present_startDate && that_present_startDate))
-
 
23162
          return false;
-
 
23163
        if (this.startDate != that.startDate)
-
 
23164
          return false;
-
 
23165
      }
-
 
23166
 
-
 
23167
      boolean this_present_endDate = true;
-
 
23168
      boolean that_present_endDate = true;
-
 
23169
      if (this_present_endDate || that_present_endDate) {
-
 
23170
        if (!(this_present_endDate && that_present_endDate))
-
 
23171
          return false;
-
 
23172
        if (this.endDate != that.endDate)
-
 
23173
          return false;
-
 
23174
      }
-
 
23175
 
-
 
23176
      return true;
-
 
23177
    }
-
 
23178
 
-
 
23179
    @Override
-
 
23180
    public int hashCode() {
-
 
23181
      return 0;
-
 
23182
    }
-
 
23183
 
-
 
23184
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
-
 
23185
      if (!getClass().equals(other.getClass())) {
-
 
23186
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23187
      }
-
 
23188
 
-
 
23189
      int lastComparison = 0;
-
 
23190
      getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
-
 
23191
 
-
 
23192
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
23193
      if (lastComparison != 0) {
-
 
23194
        return lastComparison;
-
 
23195
      }
-
 
23196
      if (isSetStartDate()) {
-
 
23197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
23198
        if (lastComparison != 0) {
-
 
23199
          return lastComparison;
-
 
23200
        }
-
 
23201
      }
-
 
23202
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
23203
      if (lastComparison != 0) {
-
 
23204
        return lastComparison;
-
 
23205
      }
-
 
23206
      if (isSetEndDate()) {
-
 
23207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
23208
        if (lastComparison != 0) {
-
 
23209
          return lastComparison;
-
 
23210
        }
-
 
23211
      }
-
 
23212
      return 0;
-
 
23213
    }
-
 
23214
 
-
 
23215
    public _Fields fieldForId(int fieldId) {
-
 
23216
      return _Fields.findByThriftId(fieldId);
-
 
23217
    }
-
 
23218
 
-
 
23219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23220
      org.apache.thrift.protocol.TField field;
-
 
23221
      iprot.readStructBegin();
-
 
23222
      while (true)
-
 
23223
      {
-
 
23224
        field = iprot.readFieldBegin();
-
 
23225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23226
          break;
-
 
23227
        }
-
 
23228
        switch (field.id) {
-
 
23229
          case 1: // START_DATE
-
 
23230
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23231
              this.startDate = iprot.readI64();
-
 
23232
              setStartDateIsSet(true);
-
 
23233
            } else { 
-
 
23234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23235
            }
-
 
23236
            break;
-
 
23237
          case 2: // END_DATE
-
 
23238
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23239
              this.endDate = iprot.readI64();
-
 
23240
              setEndDateIsSet(true);
-
 
23241
            } else { 
-
 
23242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23243
            }
-
 
23244
            break;
-
 
23245
          default:
-
 
23246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23247
        }
-
 
23248
        iprot.readFieldEnd();
-
 
23249
      }
-
 
23250
      iprot.readStructEnd();
-
 
23251
      validate();
-
 
23252
    }
-
 
23253
 
-
 
23254
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23255
      validate();
-
 
23256
 
-
 
23257
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23258
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
23259
      oprot.writeI64(this.startDate);
-
 
23260
      oprot.writeFieldEnd();
-
 
23261
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
23262
      oprot.writeI64(this.endDate);
-
 
23263
      oprot.writeFieldEnd();
-
 
23264
      oprot.writeFieldStop();
-
 
23265
      oprot.writeStructEnd();
-
 
23266
    }
-
 
23267
 
-
 
23268
    @Override
-
 
23269
    public String toString() {
-
 
23270
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
-
 
23271
      boolean first = true;
-
 
23272
 
-
 
23273
      sb.append("startDate:");
-
 
23274
      sb.append(this.startDate);
-
 
23275
      first = false;
-
 
23276
      if (!first) sb.append(", ");
-
 
23277
      sb.append("endDate:");
-
 
23278
      sb.append(this.endDate);
-
 
23279
      first = false;
-
 
23280
      sb.append(")");
-
 
23281
      return sb.toString();
-
 
23282
    }
-
 
23283
 
-
 
23284
    public void validate() throws org.apache.thrift.TException {
-
 
23285
      // check for required fields
-
 
23286
    }
-
 
23287
 
-
 
23288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23289
      try {
-
 
23290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23291
      } catch (org.apache.thrift.TException te) {
-
 
23292
        throw new java.io.IOException(te);
-
 
23293
      }
-
 
23294
    }
-
 
23295
 
-
 
23296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23297
      try {
-
 
23298
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
23299
        __isset_bit_vector = new BitSet(1);
-
 
23300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23301
      } catch (org.apache.thrift.TException te) {
-
 
23302
        throw new java.io.IOException(te);
-
 
23303
      }
-
 
23304
    }
-
 
23305
 
-
 
23306
  }
-
 
23307
 
-
 
23308
  public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
-
 
23310
 
-
 
23311
    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);
-
 
23312
 
-
 
23313
    private List<InventoryMovement> success; // required
-
 
23314
 
-
 
23315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23317
      SUCCESS((short)0, "success");
-
 
23318
 
-
 
23319
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23320
 
-
 
23321
      static {
-
 
23322
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23323
          byName.put(field.getFieldName(), field);
-
 
23324
        }
-
 
23325
      }
-
 
23326
 
-
 
23327
      /**
-
 
23328
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23329
       */
-
 
23330
      public static _Fields findByThriftId(int fieldId) {
-
 
23331
        switch(fieldId) {
-
 
23332
          case 0: // SUCCESS
-
 
23333
            return SUCCESS;
-
 
23334
          default:
-
 
23335
            return null;
-
 
23336
        }
-
 
23337
      }
-
 
23338
 
-
 
23339
      /**
-
 
23340
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23341
       * if it is not found.
-
 
23342
       */
-
 
23343
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23344
        _Fields fields = findByThriftId(fieldId);
-
 
23345
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23346
        return fields;
-
 
23347
      }
-
 
23348
 
-
 
23349
      /**
-
 
23350
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23351
       */
-
 
23352
      public static _Fields findByName(String name) {
-
 
23353
        return byName.get(name);
-
 
23354
      }
-
 
23355
 
-
 
23356
      private final short _thriftId;
-
 
23357
      private final String _fieldName;
-
 
23358
 
-
 
23359
      _Fields(short thriftId, String fieldName) {
-
 
23360
        _thriftId = thriftId;
-
 
23361
        _fieldName = fieldName;
-
 
23362
      }
-
 
23363
 
-
 
23364
      public short getThriftFieldId() {
-
 
23365
        return _thriftId;
-
 
23366
      }
-
 
23367
 
-
 
23368
      public String getFieldName() {
-
 
23369
        return _fieldName;
-
 
23370
      }
-
 
23371
    }
-
 
23372
 
-
 
23373
    // isset id assignments
-
 
23374
 
-
 
23375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23376
    static {
-
 
23377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23378
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23379
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
23380
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
23381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
-
 
23383
    }
-
 
23384
 
-
 
23385
    public getCompleteMovementNonSerializedInventoryByScans_result() {
-
 
23386
    }
-
 
23387
 
-
 
23388
    public getCompleteMovementNonSerializedInventoryByScans_result(
-
 
23389
      List<InventoryMovement> success)
-
 
23390
    {
-
 
23391
      this();
-
 
23392
      this.success = success;
-
 
23393
    }
-
 
23394
 
-
 
23395
    /**
-
 
23396
     * Performs a deep copy on <i>other</i>.
-
 
23397
     */
-
 
23398
    public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
-
 
23399
      if (other.isSetSuccess()) {
-
 
23400
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
23401
        for (InventoryMovement other_element : other.success) {
-
 
23402
          __this__success.add(new InventoryMovement(other_element));
-
 
23403
        }
-
 
23404
        this.success = __this__success;
-
 
23405
      }
-
 
23406
    }
-
 
23407
 
-
 
23408
    public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
-
 
23409
      return new getCompleteMovementNonSerializedInventoryByScans_result(this);
-
 
23410
    }
-
 
23411
 
-
 
23412
    @Override
-
 
23413
    public void clear() {
-
 
23414
      this.success = null;
-
 
23415
    }
-
 
23416
 
-
 
23417
    public int getSuccessSize() {
-
 
23418
      return (this.success == null) ? 0 : this.success.size();
-
 
23419
    }
-
 
23420
 
-
 
23421
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
23422
      return (this.success == null) ? null : this.success.iterator();
-
 
23423
    }
-
 
23424
 
-
 
23425
    public void addToSuccess(InventoryMovement elem) {
-
 
23426
      if (this.success == null) {
-
 
23427
        this.success = new ArrayList<InventoryMovement>();
-
 
23428
      }
-
 
23429
      this.success.add(elem);
-
 
23430
    }
-
 
23431
 
-
 
23432
    public List<InventoryMovement> getSuccess() {
-
 
23433
      return this.success;
-
 
23434
    }
-
 
23435
 
-
 
23436
    public void setSuccess(List<InventoryMovement> success) {
-
 
23437
      this.success = success;
-
 
23438
    }
-
 
23439
 
-
 
23440
    public void unsetSuccess() {
-
 
23441
      this.success = null;
-
 
23442
    }
-
 
23443
 
-
 
23444
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
23445
    public boolean isSetSuccess() {
-
 
23446
      return this.success != null;
-
 
23447
    }
-
 
23448
 
-
 
23449
    public void setSuccessIsSet(boolean value) {
-
 
23450
      if (!value) {
-
 
23451
        this.success = null;
-
 
23452
      }
-
 
23453
    }
-
 
23454
 
-
 
23455
    public void setFieldValue(_Fields field, Object value) {
-
 
23456
      switch (field) {
-
 
23457
      case SUCCESS:
-
 
23458
        if (value == null) {
-
 
23459
          unsetSuccess();
-
 
23460
        } else {
-
 
23461
          setSuccess((List<InventoryMovement>)value);
-
 
23462
        }
-
 
23463
        break;
-
 
23464
 
-
 
23465
      }
-
 
23466
    }
-
 
23467
 
-
 
23468
    public Object getFieldValue(_Fields field) {
-
 
23469
      switch (field) {
-
 
23470
      case SUCCESS:
-
 
23471
        return getSuccess();
-
 
23472
 
-
 
23473
      }
-
 
23474
      throw new IllegalStateException();
-
 
23475
    }
-
 
23476
 
-
 
23477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23478
    public boolean isSet(_Fields field) {
-
 
23479
      if (field == null) {
-
 
23480
        throw new IllegalArgumentException();
-
 
23481
      }
-
 
23482
 
-
 
23483
      switch (field) {
-
 
23484
      case SUCCESS:
-
 
23485
        return isSetSuccess();
-
 
23486
      }
-
 
23487
      throw new IllegalStateException();
-
 
23488
    }
-
 
23489
 
-
 
23490
    @Override
-
 
23491
    public boolean equals(Object that) {
-
 
23492
      if (that == null)
-
 
23493
        return false;
-
 
23494
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
-
 
23495
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
-
 
23496
      return false;
-
 
23497
    }
-
 
23498
 
-
 
23499
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
-
 
23500
      if (that == null)
-
 
23501
        return false;
-
 
23502
 
-
 
23503
      boolean this_present_success = true && this.isSetSuccess();
-
 
23504
      boolean that_present_success = true && that.isSetSuccess();
-
 
23505
      if (this_present_success || that_present_success) {
-
 
23506
        if (!(this_present_success && that_present_success))
-
 
23507
          return false;
-
 
23508
        if (!this.success.equals(that.success))
-
 
23509
          return false;
-
 
23510
      }
-
 
23511
 
-
 
23512
      return true;
-
 
23513
    }
-
 
23514
 
-
 
23515
    @Override
-
 
23516
    public int hashCode() {
-
 
23517
      return 0;
-
 
23518
    }
-
 
23519
 
-
 
23520
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
-
 
23521
      if (!getClass().equals(other.getClass())) {
-
 
23522
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23523
      }
-
 
23524
 
-
 
23525
      int lastComparison = 0;
-
 
23526
      getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
-
 
23527
 
-
 
23528
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
23529
      if (lastComparison != 0) {
-
 
23530
        return lastComparison;
-
 
23531
      }
-
 
23532
      if (isSetSuccess()) {
-
 
23533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
23534
        if (lastComparison != 0) {
-
 
23535
          return lastComparison;
-
 
23536
        }
-
 
23537
      }
-
 
23538
      return 0;
-
 
23539
    }
-
 
23540
 
-
 
23541
    public _Fields fieldForId(int fieldId) {
-
 
23542
      return _Fields.findByThriftId(fieldId);
-
 
23543
    }
-
 
23544
 
-
 
23545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23546
      org.apache.thrift.protocol.TField field;
-
 
23547
      iprot.readStructBegin();
-
 
23548
      while (true)
-
 
23549
      {
-
 
23550
        field = iprot.readFieldBegin();
-
 
23551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23552
          break;
-
 
23553
        }
-
 
23554
        switch (field.id) {
-
 
23555
          case 0: // SUCCESS
-
 
23556
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
23557
              {
-
 
23558
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
-
 
23559
                this.success = new ArrayList<InventoryMovement>(_list72.size);
-
 
23560
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
-
 
23561
                {
-
 
23562
                  InventoryMovement _elem74; // required
-
 
23563
                  _elem74 = new InventoryMovement();
-
 
23564
                  _elem74.read(iprot);
-
 
23565
                  this.success.add(_elem74);
-
 
23566
                }
-
 
23567
                iprot.readListEnd();
-
 
23568
              }
-
 
23569
            } else { 
-
 
23570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23571
            }
-
 
23572
            break;
-
 
23573
          default:
-
 
23574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23575
        }
-
 
23576
        iprot.readFieldEnd();
-
 
23577
      }
-
 
23578
      iprot.readStructEnd();
-
 
23579
      validate();
-
 
23580
    }
-
 
23581
 
-
 
23582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23583
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23584
 
-
 
23585
      if (this.isSetSuccess()) {
-
 
23586
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23587
        {
-
 
23588
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
23589
          for (InventoryMovement _iter75 : this.success)
-
 
23590
          {
-
 
23591
            _iter75.write(oprot);
-
 
23592
          }
-
 
23593
          oprot.writeListEnd();
-
 
23594
        }
-
 
23595
        oprot.writeFieldEnd();
-
 
23596
      }
-
 
23597
      oprot.writeFieldStop();
-
 
23598
      oprot.writeStructEnd();
-
 
23599
    }
-
 
23600
 
-
 
23601
    @Override
-
 
23602
    public String toString() {
-
 
23603
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
-
 
23604
      boolean first = true;
-
 
23605
 
-
 
23606
      sb.append("success:");
-
 
23607
      if (this.success == null) {
-
 
23608
        sb.append("null");
22033
      } else {
23609
      } else {
22034
        sb.append(this.success);
23610
        sb.append(this.success);
22035
      }
23611
      }
22036
      first = false;
23612
      first = false;
22037
      sb.append(")");
23613
      sb.append(")");