Subversion Repositories SmartDukaan

Rev

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

Rev 6467 Rev 6548
Line 152... Line 152...
152
     * @param serialNumber
152
     * @param serialNumber
153
     */
153
     */
154
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
154
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
155
 
155
 
156
    /**
156
    /**
157
     * Inserts outgoing scans for Returned Items and updates returnId in InventoryItem
157
     * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
158
     * 
158
     * 
159
     * @param saleReturnItems
159
     * @param saleReturnItems
160
     * @param vendorId
160
     * @param vendorId
161
     */
161
     */
162
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
162
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
163
 
163
 
-
 
164
    /**
-
 
165
     * Inserts scans for lost Items and updates lastScanType in InventoryItems
-
 
166
     * 
-
 
167
     * @param lostItems
-
 
168
     * @param vendorId
-
 
169
     */
-
 
170
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
171
 
-
 
172
    /**
-
 
173
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
174
     */
-
 
175
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
-
 
176
 
164
  }
177
  }
165
 
178
 
166
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
179
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
167
 
180
 
168
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
181
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 197... Line 210...
197
 
210
 
198
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
211
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
199
 
212
 
200
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
213
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
201
 
214
 
-
 
215
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
216
 
-
 
217
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
218
 
202
  }
219
  }
203
 
220
 
204
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
205
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
206
      public Factory() {}
223
      public Factory() {}
Line 647... Line 664...
647
        throw result.ex;
664
        throw result.ex;
648
      }
665
      }
649
      return;
666
      return;
650
    }
667
    }
651
 
668
 
-
 
669
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
670
    {
-
 
671
      send_scanForLostItem(lostItems, vendorId);
-
 
672
      recv_scanForLostItem();
-
 
673
    }
-
 
674
 
-
 
675
    public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
-
 
676
    {
-
 
677
      scanForLostItem_args args = new scanForLostItem_args();
-
 
678
      args.setLostItems(lostItems);
-
 
679
      args.setVendorId(vendorId);
-
 
680
      sendBase("scanForLostItem", args);
-
 
681
    }
-
 
682
 
-
 
683
    public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
-
 
684
    {
-
 
685
      scanForLostItem_result result = new scanForLostItem_result();
-
 
686
      receiveBase(result, "scanForLostItem");
-
 
687
      if (result.ex != null) {
-
 
688
        throw result.ex;
-
 
689
      }
-
 
690
      return;
-
 
691
    }
-
 
692
 
-
 
693
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
694
    {
-
 
695
      send_getCurrentSerializedInventoryByScans();
-
 
696
      return recv_getCurrentSerializedInventoryByScans();
-
 
697
    }
-
 
698
 
-
 
699
    public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
700
    {
-
 
701
      getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
-
 
702
      sendBase("getCurrentSerializedInventoryByScans", args);
-
 
703
    }
-
 
704
 
-
 
705
    public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
706
    {
-
 
707
      getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
-
 
708
      receiveBase(result, "getCurrentSerializedInventoryByScans");
-
 
709
      if (result.isSetSuccess()) {
-
 
710
        return result.success;
-
 
711
      }
-
 
712
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
-
 
713
    }
-
 
714
 
652
  }
715
  }
653
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
716
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
654
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
717
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
655
      private org.apache.thrift.async.TAsyncClientManager clientManager;
718
      private org.apache.thrift.async.TAsyncClientManager clientManager;
656
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
719
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1266... Line 1329...
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1329
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        (new Client(prot)).recv_scanForPurchaseReturn();
1330
        (new Client(prot)).recv_scanForPurchaseReturn();
1268
      }
1331
      }
1269
    }
1332
    }
1270
 
1333
 
-
 
1334
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
1335
      checkReady();
-
 
1336
      scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1337
      this.___currentMethod = method_call;
-
 
1338
      ___manager.call(method_call);
-
 
1339
    }
-
 
1340
 
-
 
1341
    public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1342
      private List<InventoryItem> lostItems;
-
 
1343
      private long vendorId;
-
 
1344
      public scanForLostItem_call(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_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 {
-
 
1345
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1346
        this.lostItems = lostItems;
-
 
1347
        this.vendorId = vendorId;
-
 
1348
      }
-
 
1349
 
-
 
1350
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1351
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1352
        scanForLostItem_args args = new scanForLostItem_args();
-
 
1353
        args.setLostItems(lostItems);
-
 
1354
        args.setVendorId(vendorId);
-
 
1355
        args.write(prot);
-
 
1356
        prot.writeMessageEnd();
-
 
1357
      }
-
 
1358
 
-
 
1359
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
1360
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1361
          throw new IllegalStateException("Method call not finished!");
-
 
1362
        }
-
 
1363
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1364
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1365
        (new Client(prot)).recv_scanForLostItem();
-
 
1366
      }
-
 
1367
    }
-
 
1368
 
-
 
1369
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1370
      checkReady();
-
 
1371
      getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1372
      this.___currentMethod = method_call;
-
 
1373
      ___manager.call(method_call);
-
 
1374
    }
-
 
1375
 
-
 
1376
    public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1377
      public getCurrentSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_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 {
-
 
1378
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1379
      }
-
 
1380
 
-
 
1381
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1382
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1383
        getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
-
 
1384
        args.write(prot);
-
 
1385
        prot.writeMessageEnd();
-
 
1386
      }
-
 
1387
 
-
 
1388
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
-
 
1389
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1390
          throw new IllegalStateException("Method call not finished!");
-
 
1391
        }
-
 
1392
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1393
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1394
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
-
 
1395
      }
-
 
1396
    }
-
 
1397
 
1271
  }
1398
  }
1272
 
1399
 
1273
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1400
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1274
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1401
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1275
    public Processor(I iface) {
1402
    public Processor(I iface) {
Line 1296... Line 1423...
1296
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
1423
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
1297
      processMap.put("getInventoryAge", new getInventoryAge());
1424
      processMap.put("getInventoryAge", new getInventoryAge());
1298
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
1425
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
1299
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1426
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1300
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
1427
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
-
 
1428
      processMap.put("scanForLostItem", new scanForLostItem());
-
 
1429
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
1301
      return processMap;
1430
      return processMap;
1302
    }
1431
    }
1303
 
1432
 
1304
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1433
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1305
      public getInventoryItem() {
1434
      public getInventoryItem() {
Line 1607... Line 1736...
1607
        }
1736
        }
1608
        return result;
1737
        return result;
1609
      }
1738
      }
1610
    }
1739
    }
1611
 
1740
 
-
 
1741
    private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
-
 
1742
      public scanForLostItem() {
-
 
1743
        super("scanForLostItem");
-
 
1744
      }
-
 
1745
 
-
 
1746
      protected scanForLostItem_args getEmptyArgsInstance() {
-
 
1747
        return new scanForLostItem_args();
-
 
1748
      }
-
 
1749
 
-
 
1750
      protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
-
 
1751
        scanForLostItem_result result = new scanForLostItem_result();
-
 
1752
        try {
-
 
1753
          iface.scanForLostItem(args.lostItems, args.vendorId);
-
 
1754
        } catch (WarehouseServiceException ex) {
-
 
1755
          result.ex = ex;
-
 
1756
        }
-
 
1757
        return result;
-
 
1758
      }
-
 
1759
    }
-
 
1760
 
-
 
1761
    private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
-
 
1762
      public getCurrentSerializedInventoryByScans() {
-
 
1763
        super("getCurrentSerializedInventoryByScans");
-
 
1764
      }
-
 
1765
 
-
 
1766
      protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
1767
        return new getCurrentSerializedInventoryByScans_args();
-
 
1768
      }
-
 
1769
 
-
 
1770
      protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
1771
        getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
-
 
1772
        result.success = iface.getCurrentSerializedInventoryByScans();
-
 
1773
        return result;
-
 
1774
      }
-
 
1775
    }
-
 
1776
 
1612
  }
1777
  }
1613
 
1778
 
1614
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1779
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1616
 
1781
 
Line 14090... Line 14255...
14090
      }
14255
      }
14091
      first = false;
14256
      first = false;
14092
      sb.append(")");
14257
      sb.append(")");
14093
      return sb.toString();
14258
      return sb.toString();
14094
    }
14259
    }
-
 
14260
 
-
 
14261
    public void validate() throws org.apache.thrift.TException {
-
 
14262
      // check for required fields
-
 
14263
    }
-
 
14264
 
-
 
14265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14266
      try {
-
 
14267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14268
      } catch (org.apache.thrift.TException te) {
-
 
14269
        throw new java.io.IOException(te);
-
 
14270
      }
-
 
14271
    }
-
 
14272
 
-
 
14273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14274
      try {
-
 
14275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14276
      } catch (org.apache.thrift.TException te) {
-
 
14277
        throw new java.io.IOException(te);
-
 
14278
      }
-
 
14279
    }
-
 
14280
 
-
 
14281
  }
-
 
14282
 
-
 
14283
  public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
14284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
-
 
14285
 
-
 
14286
    private static final org.apache.thrift.protocol.TField LOST_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lostItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
14287
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
14288
 
-
 
14289
    private List<InventoryItem> lostItems; // required
-
 
14290
    private long vendorId; // required
-
 
14291
 
-
 
14292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14294
      LOST_ITEMS((short)1, "lostItems"),
-
 
14295
      VENDOR_ID((short)2, "vendorId");
-
 
14296
 
-
 
14297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14298
 
-
 
14299
      static {
-
 
14300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14301
          byName.put(field.getFieldName(), field);
-
 
14302
        }
-
 
14303
      }
-
 
14304
 
-
 
14305
      /**
-
 
14306
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14307
       */
-
 
14308
      public static _Fields findByThriftId(int fieldId) {
-
 
14309
        switch(fieldId) {
-
 
14310
          case 1: // LOST_ITEMS
-
 
14311
            return LOST_ITEMS;
-
 
14312
          case 2: // VENDOR_ID
-
 
14313
            return VENDOR_ID;
-
 
14314
          default:
-
 
14315
            return null;
-
 
14316
        }
-
 
14317
      }
-
 
14318
 
-
 
14319
      /**
-
 
14320
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14321
       * if it is not found.
-
 
14322
       */
-
 
14323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14324
        _Fields fields = findByThriftId(fieldId);
-
 
14325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14326
        return fields;
-
 
14327
      }
-
 
14328
 
-
 
14329
      /**
-
 
14330
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14331
       */
-
 
14332
      public static _Fields findByName(String name) {
-
 
14333
        return byName.get(name);
-
 
14334
      }
-
 
14335
 
-
 
14336
      private final short _thriftId;
-
 
14337
      private final String _fieldName;
-
 
14338
 
-
 
14339
      _Fields(short thriftId, String fieldName) {
-
 
14340
        _thriftId = thriftId;
-
 
14341
        _fieldName = fieldName;
-
 
14342
      }
-
 
14343
 
-
 
14344
      public short getThriftFieldId() {
-
 
14345
        return _thriftId;
-
 
14346
      }
-
 
14347
 
-
 
14348
      public String getFieldName() {
-
 
14349
        return _fieldName;
-
 
14350
      }
-
 
14351
    }
-
 
14352
 
-
 
14353
    // isset id assignments
-
 
14354
    private static final int __VENDORID_ISSET_ID = 0;
-
 
14355
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14356
 
-
 
14357
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14358
    static {
-
 
14359
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14360
      tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14361
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
14362
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
14363
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
-
 
14367
    }
-
 
14368
 
-
 
14369
    public scanForLostItem_args() {
-
 
14370
    }
-
 
14371
 
-
 
14372
    public scanForLostItem_args(
-
 
14373
      List<InventoryItem> lostItems,
-
 
14374
      long vendorId)
-
 
14375
    {
-
 
14376
      this();
-
 
14377
      this.lostItems = lostItems;
-
 
14378
      this.vendorId = vendorId;
-
 
14379
      setVendorIdIsSet(true);
-
 
14380
    }
-
 
14381
 
-
 
14382
    /**
-
 
14383
     * Performs a deep copy on <i>other</i>.
-
 
14384
     */
-
 
14385
    public scanForLostItem_args(scanForLostItem_args other) {
-
 
14386
      __isset_bit_vector.clear();
-
 
14387
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14388
      if (other.isSetLostItems()) {
-
 
14389
        List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
-
 
14390
        for (InventoryItem other_element : other.lostItems) {
-
 
14391
          __this__lostItems.add(new InventoryItem(other_element));
-
 
14392
        }
-
 
14393
        this.lostItems = __this__lostItems;
-
 
14394
      }
-
 
14395
      this.vendorId = other.vendorId;
-
 
14396
    }
-
 
14397
 
-
 
14398
    public scanForLostItem_args deepCopy() {
-
 
14399
      return new scanForLostItem_args(this);
-
 
14400
    }
-
 
14401
 
-
 
14402
    @Override
-
 
14403
    public void clear() {
-
 
14404
      this.lostItems = null;
-
 
14405
      setVendorIdIsSet(false);
-
 
14406
      this.vendorId = 0;
-
 
14407
    }
-
 
14408
 
-
 
14409
    public int getLostItemsSize() {
-
 
14410
      return (this.lostItems == null) ? 0 : this.lostItems.size();
-
 
14411
    }
-
 
14412
 
-
 
14413
    public java.util.Iterator<InventoryItem> getLostItemsIterator() {
-
 
14414
      return (this.lostItems == null) ? null : this.lostItems.iterator();
-
 
14415
    }
-
 
14416
 
-
 
14417
    public void addToLostItems(InventoryItem elem) {
-
 
14418
      if (this.lostItems == null) {
-
 
14419
        this.lostItems = new ArrayList<InventoryItem>();
-
 
14420
      }
-
 
14421
      this.lostItems.add(elem);
-
 
14422
    }
-
 
14423
 
-
 
14424
    public List<InventoryItem> getLostItems() {
-
 
14425
      return this.lostItems;
-
 
14426
    }
-
 
14427
 
-
 
14428
    public void setLostItems(List<InventoryItem> lostItems) {
-
 
14429
      this.lostItems = lostItems;
-
 
14430
    }
-
 
14431
 
-
 
14432
    public void unsetLostItems() {
-
 
14433
      this.lostItems = null;
-
 
14434
    }
-
 
14435
 
-
 
14436
    /** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
-
 
14437
    public boolean isSetLostItems() {
-
 
14438
      return this.lostItems != null;
-
 
14439
    }
-
 
14440
 
-
 
14441
    public void setLostItemsIsSet(boolean value) {
-
 
14442
      if (!value) {
-
 
14443
        this.lostItems = null;
-
 
14444
      }
-
 
14445
    }
-
 
14446
 
-
 
14447
    public long getVendorId() {
-
 
14448
      return this.vendorId;
-
 
14449
    }
-
 
14450
 
-
 
14451
    public void setVendorId(long vendorId) {
-
 
14452
      this.vendorId = vendorId;
-
 
14453
      setVendorIdIsSet(true);
-
 
14454
    }
-
 
14455
 
-
 
14456
    public void unsetVendorId() {
-
 
14457
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
14458
    }
-
 
14459
 
-
 
14460
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
14461
    public boolean isSetVendorId() {
-
 
14462
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
14463
    }
-
 
14464
 
-
 
14465
    public void setVendorIdIsSet(boolean value) {
-
 
14466
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
14467
    }
-
 
14468
 
-
 
14469
    public void setFieldValue(_Fields field, Object value) {
-
 
14470
      switch (field) {
-
 
14471
      case LOST_ITEMS:
-
 
14472
        if (value == null) {
-
 
14473
          unsetLostItems();
-
 
14474
        } else {
-
 
14475
          setLostItems((List<InventoryItem>)value);
-
 
14476
        }
-
 
14477
        break;
-
 
14478
 
-
 
14479
      case VENDOR_ID:
-
 
14480
        if (value == null) {
-
 
14481
          unsetVendorId();
-
 
14482
        } else {
-
 
14483
          setVendorId((Long)value);
-
 
14484
        }
-
 
14485
        break;
-
 
14486
 
-
 
14487
      }
-
 
14488
    }
-
 
14489
 
-
 
14490
    public Object getFieldValue(_Fields field) {
-
 
14491
      switch (field) {
-
 
14492
      case LOST_ITEMS:
-
 
14493
        return getLostItems();
-
 
14494
 
-
 
14495
      case VENDOR_ID:
-
 
14496
        return Long.valueOf(getVendorId());
-
 
14497
 
-
 
14498
      }
-
 
14499
      throw new IllegalStateException();
-
 
14500
    }
-
 
14501
 
-
 
14502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14503
    public boolean isSet(_Fields field) {
-
 
14504
      if (field == null) {
-
 
14505
        throw new IllegalArgumentException();
-
 
14506
      }
-
 
14507
 
-
 
14508
      switch (field) {
-
 
14509
      case LOST_ITEMS:
-
 
14510
        return isSetLostItems();
-
 
14511
      case VENDOR_ID:
-
 
14512
        return isSetVendorId();
-
 
14513
      }
-
 
14514
      throw new IllegalStateException();
-
 
14515
    }
-
 
14516
 
-
 
14517
    @Override
-
 
14518
    public boolean equals(Object that) {
-
 
14519
      if (that == null)
-
 
14520
        return false;
-
 
14521
      if (that instanceof scanForLostItem_args)
-
 
14522
        return this.equals((scanForLostItem_args)that);
-
 
14523
      return false;
-
 
14524
    }
-
 
14525
 
-
 
14526
    public boolean equals(scanForLostItem_args that) {
-
 
14527
      if (that == null)
-
 
14528
        return false;
-
 
14529
 
-
 
14530
      boolean this_present_lostItems = true && this.isSetLostItems();
-
 
14531
      boolean that_present_lostItems = true && that.isSetLostItems();
-
 
14532
      if (this_present_lostItems || that_present_lostItems) {
-
 
14533
        if (!(this_present_lostItems && that_present_lostItems))
-
 
14534
          return false;
-
 
14535
        if (!this.lostItems.equals(that.lostItems))
-
 
14536
          return false;
-
 
14537
      }
-
 
14538
 
-
 
14539
      boolean this_present_vendorId = true;
-
 
14540
      boolean that_present_vendorId = true;
-
 
14541
      if (this_present_vendorId || that_present_vendorId) {
-
 
14542
        if (!(this_present_vendorId && that_present_vendorId))
-
 
14543
          return false;
-
 
14544
        if (this.vendorId != that.vendorId)
-
 
14545
          return false;
-
 
14546
      }
-
 
14547
 
-
 
14548
      return true;
-
 
14549
    }
-
 
14550
 
-
 
14551
    @Override
-
 
14552
    public int hashCode() {
-
 
14553
      return 0;
-
 
14554
    }
-
 
14555
 
-
 
14556
    public int compareTo(scanForLostItem_args other) {
-
 
14557
      if (!getClass().equals(other.getClass())) {
-
 
14558
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14559
      }
-
 
14560
 
-
 
14561
      int lastComparison = 0;
-
 
14562
      scanForLostItem_args typedOther = (scanForLostItem_args)other;
-
 
14563
 
-
 
14564
      lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
-
 
14565
      if (lastComparison != 0) {
-
 
14566
        return lastComparison;
-
 
14567
      }
-
 
14568
      if (isSetLostItems()) {
-
 
14569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
-
 
14570
        if (lastComparison != 0) {
-
 
14571
          return lastComparison;
-
 
14572
        }
-
 
14573
      }
-
 
14574
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
14575
      if (lastComparison != 0) {
-
 
14576
        return lastComparison;
-
 
14577
      }
-
 
14578
      if (isSetVendorId()) {
-
 
14579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
14580
        if (lastComparison != 0) {
-
 
14581
          return lastComparison;
-
 
14582
        }
-
 
14583
      }
-
 
14584
      return 0;
-
 
14585
    }
-
 
14586
 
-
 
14587
    public _Fields fieldForId(int fieldId) {
-
 
14588
      return _Fields.findByThriftId(fieldId);
-
 
14589
    }
-
 
14590
 
-
 
14591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14592
      org.apache.thrift.protocol.TField field;
-
 
14593
      iprot.readStructBegin();
-
 
14594
      while (true)
-
 
14595
      {
-
 
14596
        field = iprot.readFieldBegin();
-
 
14597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14598
          break;
-
 
14599
        }
-
 
14600
        switch (field.id) {
-
 
14601
          case 1: // LOST_ITEMS
-
 
14602
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
14603
              {
-
 
14604
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
-
 
14605
                this.lostItems = new ArrayList<InventoryItem>(_list36.size);
-
 
14606
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
14607
                {
-
 
14608
                  InventoryItem _elem38; // required
-
 
14609
                  _elem38 = new InventoryItem();
-
 
14610
                  _elem38.read(iprot);
-
 
14611
                  this.lostItems.add(_elem38);
-
 
14612
                }
-
 
14613
                iprot.readListEnd();
-
 
14614
              }
-
 
14615
            } else { 
-
 
14616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14617
            }
-
 
14618
            break;
-
 
14619
          case 2: // VENDOR_ID
-
 
14620
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
14621
              this.vendorId = iprot.readI64();
-
 
14622
              setVendorIdIsSet(true);
-
 
14623
            } else { 
-
 
14624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14625
            }
-
 
14626
            break;
-
 
14627
          default:
-
 
14628
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14629
        }
-
 
14630
        iprot.readFieldEnd();
-
 
14631
      }
-
 
14632
      iprot.readStructEnd();
-
 
14633
      validate();
-
 
14634
    }
-
 
14635
 
-
 
14636
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14637
      validate();
-
 
14638
 
-
 
14639
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14640
      if (this.lostItems != null) {
-
 
14641
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
-
 
14642
        {
-
 
14643
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
-
 
14644
          for (InventoryItem _iter39 : this.lostItems)
-
 
14645
          {
-
 
14646
            _iter39.write(oprot);
-
 
14647
          }
-
 
14648
          oprot.writeListEnd();
-
 
14649
        }
-
 
14650
        oprot.writeFieldEnd();
-
 
14651
      }
-
 
14652
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
14653
      oprot.writeI64(this.vendorId);
-
 
14654
      oprot.writeFieldEnd();
-
 
14655
      oprot.writeFieldStop();
-
 
14656
      oprot.writeStructEnd();
-
 
14657
    }
-
 
14658
 
-
 
14659
    @Override
-
 
14660
    public String toString() {
-
 
14661
      StringBuilder sb = new StringBuilder("scanForLostItem_args(");
-
 
14662
      boolean first = true;
-
 
14663
 
-
 
14664
      sb.append("lostItems:");
-
 
14665
      if (this.lostItems == null) {
-
 
14666
        sb.append("null");
-
 
14667
      } else {
-
 
14668
        sb.append(this.lostItems);
-
 
14669
      }
-
 
14670
      first = false;
-
 
14671
      if (!first) sb.append(", ");
-
 
14672
      sb.append("vendorId:");
-
 
14673
      sb.append(this.vendorId);
-
 
14674
      first = false;
-
 
14675
      sb.append(")");
-
 
14676
      return sb.toString();
-
 
14677
    }
-
 
14678
 
-
 
14679
    public void validate() throws org.apache.thrift.TException {
-
 
14680
      // check for required fields
-
 
14681
    }
-
 
14682
 
-
 
14683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14684
      try {
-
 
14685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14686
      } catch (org.apache.thrift.TException te) {
-
 
14687
        throw new java.io.IOException(te);
-
 
14688
      }
-
 
14689
    }
-
 
14690
 
-
 
14691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14692
      try {
-
 
14693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14694
      } catch (org.apache.thrift.TException te) {
-
 
14695
        throw new java.io.IOException(te);
-
 
14696
      }
-
 
14697
    }
-
 
14698
 
-
 
14699
  }
-
 
14700
 
-
 
14701
  public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
14702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
-
 
14703
 
-
 
14704
    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);
-
 
14705
 
-
 
14706
    private WarehouseServiceException ex; // required
-
 
14707
 
-
 
14708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14710
      EX((short)1, "ex");
-
 
14711
 
-
 
14712
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14713
 
-
 
14714
      static {
-
 
14715
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14716
          byName.put(field.getFieldName(), field);
-
 
14717
        }
-
 
14718
      }
-
 
14719
 
-
 
14720
      /**
-
 
14721
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14722
       */
-
 
14723
      public static _Fields findByThriftId(int fieldId) {
-
 
14724
        switch(fieldId) {
-
 
14725
          case 1: // EX
-
 
14726
            return EX;
-
 
14727
          default:
-
 
14728
            return null;
-
 
14729
        }
-
 
14730
      }
-
 
14731
 
-
 
14732
      /**
-
 
14733
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14734
       * if it is not found.
-
 
14735
       */
-
 
14736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14737
        _Fields fields = findByThriftId(fieldId);
-
 
14738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14739
        return fields;
-
 
14740
      }
-
 
14741
 
-
 
14742
      /**
-
 
14743
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14744
       */
-
 
14745
      public static _Fields findByName(String name) {
-
 
14746
        return byName.get(name);
-
 
14747
      }
-
 
14748
 
-
 
14749
      private final short _thriftId;
-
 
14750
      private final String _fieldName;
-
 
14751
 
-
 
14752
      _Fields(short thriftId, String fieldName) {
-
 
14753
        _thriftId = thriftId;
-
 
14754
        _fieldName = fieldName;
-
 
14755
      }
-
 
14756
 
-
 
14757
      public short getThriftFieldId() {
-
 
14758
        return _thriftId;
-
 
14759
      }
-
 
14760
 
-
 
14761
      public String getFieldName() {
-
 
14762
        return _fieldName;
-
 
14763
      }
-
 
14764
    }
-
 
14765
 
-
 
14766
    // isset id assignments
-
 
14767
 
-
 
14768
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14769
    static {
-
 
14770
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14771
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14772
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
14773
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14774
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
-
 
14775
    }
-
 
14776
 
-
 
14777
    public scanForLostItem_result() {
-
 
14778
    }
-
 
14779
 
-
 
14780
    public scanForLostItem_result(
-
 
14781
      WarehouseServiceException ex)
-
 
14782
    {
-
 
14783
      this();
-
 
14784
      this.ex = ex;
-
 
14785
    }
-
 
14786
 
-
 
14787
    /**
-
 
14788
     * Performs a deep copy on <i>other</i>.
-
 
14789
     */
-
 
14790
    public scanForLostItem_result(scanForLostItem_result other) {
-
 
14791
      if (other.isSetEx()) {
-
 
14792
        this.ex = new WarehouseServiceException(other.ex);
-
 
14793
      }
-
 
14794
    }
-
 
14795
 
-
 
14796
    public scanForLostItem_result deepCopy() {
-
 
14797
      return new scanForLostItem_result(this);
-
 
14798
    }
-
 
14799
 
-
 
14800
    @Override
-
 
14801
    public void clear() {
-
 
14802
      this.ex = null;
-
 
14803
    }
-
 
14804
 
-
 
14805
    public WarehouseServiceException getEx() {
-
 
14806
      return this.ex;
-
 
14807
    }
-
 
14808
 
-
 
14809
    public void setEx(WarehouseServiceException ex) {
-
 
14810
      this.ex = ex;
-
 
14811
    }
-
 
14812
 
-
 
14813
    public void unsetEx() {
-
 
14814
      this.ex = null;
-
 
14815
    }
-
 
14816
 
-
 
14817
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
14818
    public boolean isSetEx() {
-
 
14819
      return this.ex != null;
-
 
14820
    }
-
 
14821
 
-
 
14822
    public void setExIsSet(boolean value) {
-
 
14823
      if (!value) {
-
 
14824
        this.ex = null;
-
 
14825
      }
-
 
14826
    }
-
 
14827
 
-
 
14828
    public void setFieldValue(_Fields field, Object value) {
-
 
14829
      switch (field) {
-
 
14830
      case EX:
-
 
14831
        if (value == null) {
-
 
14832
          unsetEx();
-
 
14833
        } else {
-
 
14834
          setEx((WarehouseServiceException)value);
-
 
14835
        }
-
 
14836
        break;
-
 
14837
 
-
 
14838
      }
-
 
14839
    }
-
 
14840
 
-
 
14841
    public Object getFieldValue(_Fields field) {
-
 
14842
      switch (field) {
-
 
14843
      case EX:
-
 
14844
        return getEx();
-
 
14845
 
-
 
14846
      }
-
 
14847
      throw new IllegalStateException();
-
 
14848
    }
-
 
14849
 
-
 
14850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14851
    public boolean isSet(_Fields field) {
-
 
14852
      if (field == null) {
-
 
14853
        throw new IllegalArgumentException();
-
 
14854
      }
-
 
14855
 
-
 
14856
      switch (field) {
-
 
14857
      case EX:
-
 
14858
        return isSetEx();
-
 
14859
      }
-
 
14860
      throw new IllegalStateException();
-
 
14861
    }
-
 
14862
 
-
 
14863
    @Override
-
 
14864
    public boolean equals(Object that) {
-
 
14865
      if (that == null)
-
 
14866
        return false;
-
 
14867
      if (that instanceof scanForLostItem_result)
-
 
14868
        return this.equals((scanForLostItem_result)that);
-
 
14869
      return false;
-
 
14870
    }
-
 
14871
 
-
 
14872
    public boolean equals(scanForLostItem_result that) {
-
 
14873
      if (that == null)
-
 
14874
        return false;
-
 
14875
 
-
 
14876
      boolean this_present_ex = true && this.isSetEx();
-
 
14877
      boolean that_present_ex = true && that.isSetEx();
-
 
14878
      if (this_present_ex || that_present_ex) {
-
 
14879
        if (!(this_present_ex && that_present_ex))
-
 
14880
          return false;
-
 
14881
        if (!this.ex.equals(that.ex))
-
 
14882
          return false;
-
 
14883
      }
-
 
14884
 
-
 
14885
      return true;
-
 
14886
    }
-
 
14887
 
-
 
14888
    @Override
-
 
14889
    public int hashCode() {
-
 
14890
      return 0;
-
 
14891
    }
-
 
14892
 
-
 
14893
    public int compareTo(scanForLostItem_result other) {
-
 
14894
      if (!getClass().equals(other.getClass())) {
-
 
14895
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14896
      }
-
 
14897
 
-
 
14898
      int lastComparison = 0;
-
 
14899
      scanForLostItem_result typedOther = (scanForLostItem_result)other;
-
 
14900
 
-
 
14901
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
14902
      if (lastComparison != 0) {
-
 
14903
        return lastComparison;
-
 
14904
      }
-
 
14905
      if (isSetEx()) {
-
 
14906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
14907
        if (lastComparison != 0) {
-
 
14908
          return lastComparison;
-
 
14909
        }
-
 
14910
      }
-
 
14911
      return 0;
-
 
14912
    }
-
 
14913
 
-
 
14914
    public _Fields fieldForId(int fieldId) {
-
 
14915
      return _Fields.findByThriftId(fieldId);
-
 
14916
    }
-
 
14917
 
-
 
14918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14919
      org.apache.thrift.protocol.TField field;
-
 
14920
      iprot.readStructBegin();
-
 
14921
      while (true)
-
 
14922
      {
-
 
14923
        field = iprot.readFieldBegin();
-
 
14924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14925
          break;
-
 
14926
        }
-
 
14927
        switch (field.id) {
-
 
14928
          case 1: // EX
-
 
14929
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
14930
              this.ex = new WarehouseServiceException();
-
 
14931
              this.ex.read(iprot);
-
 
14932
            } else { 
-
 
14933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14934
            }
-
 
14935
            break;
-
 
14936
          default:
-
 
14937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14938
        }
-
 
14939
        iprot.readFieldEnd();
-
 
14940
      }
-
 
14941
      iprot.readStructEnd();
-
 
14942
      validate();
-
 
14943
    }
-
 
14944
 
-
 
14945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14946
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14947
 
-
 
14948
      if (this.isSetEx()) {
-
 
14949
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
14950
        this.ex.write(oprot);
-
 
14951
        oprot.writeFieldEnd();
-
 
14952
      }
-
 
14953
      oprot.writeFieldStop();
-
 
14954
      oprot.writeStructEnd();
-
 
14955
    }
-
 
14956
 
-
 
14957
    @Override
-
 
14958
    public String toString() {
-
 
14959
      StringBuilder sb = new StringBuilder("scanForLostItem_result(");
-
 
14960
      boolean first = true;
-
 
14961
 
-
 
14962
      sb.append("ex:");
-
 
14963
      if (this.ex == null) {
-
 
14964
        sb.append("null");
-
 
14965
      } else {
-
 
14966
        sb.append(this.ex);
-
 
14967
      }
-
 
14968
      first = false;
-
 
14969
      sb.append(")");
-
 
14970
      return sb.toString();
-
 
14971
    }
-
 
14972
 
-
 
14973
    public void validate() throws org.apache.thrift.TException {
-
 
14974
      // check for required fields
-
 
14975
    }
-
 
14976
 
-
 
14977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14978
      try {
-
 
14979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14980
      } catch (org.apache.thrift.TException te) {
-
 
14981
        throw new java.io.IOException(te);
-
 
14982
      }
-
 
14983
    }
-
 
14984
 
-
 
14985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14986
      try {
-
 
14987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14988
      } catch (org.apache.thrift.TException te) {
-
 
14989
        throw new java.io.IOException(te);
-
 
14990
      }
-
 
14991
    }
-
 
14992
 
-
 
14993
  }
-
 
14994
 
-
 
14995
  public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
14996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
-
 
14997
 
-
 
14998
 
-
 
14999
 
-
 
15000
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15001
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15002
;
-
 
15003
 
-
 
15004
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15005
 
-
 
15006
      static {
-
 
15007
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15008
          byName.put(field.getFieldName(), field);
-
 
15009
        }
-
 
15010
      }
-
 
15011
 
-
 
15012
      /**
-
 
15013
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15014
       */
-
 
15015
      public static _Fields findByThriftId(int fieldId) {
-
 
15016
        switch(fieldId) {
-
 
15017
          default:
-
 
15018
            return null;
-
 
15019
        }
-
 
15020
      }
-
 
15021
 
-
 
15022
      /**
-
 
15023
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15024
       * if it is not found.
-
 
15025
       */
-
 
15026
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15027
        _Fields fields = findByThriftId(fieldId);
-
 
15028
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15029
        return fields;
-
 
15030
      }
-
 
15031
 
-
 
15032
      /**
-
 
15033
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15034
       */
-
 
15035
      public static _Fields findByName(String name) {
-
 
15036
        return byName.get(name);
-
 
15037
      }
-
 
15038
 
-
 
15039
      private final short _thriftId;
-
 
15040
      private final String _fieldName;
-
 
15041
 
-
 
15042
      _Fields(short thriftId, String fieldName) {
-
 
15043
        _thriftId = thriftId;
-
 
15044
        _fieldName = fieldName;
-
 
15045
      }
-
 
15046
 
-
 
15047
      public short getThriftFieldId() {
-
 
15048
        return _thriftId;
-
 
15049
      }
-
 
15050
 
-
 
15051
      public String getFieldName() {
-
 
15052
        return _fieldName;
-
 
15053
      }
-
 
15054
    }
-
 
15055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15056
    static {
-
 
15057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
-
 
15060
    }
-
 
15061
 
-
 
15062
    public getCurrentSerializedInventoryByScans_args() {
-
 
15063
    }
-
 
15064
 
-
 
15065
    /**
-
 
15066
     * Performs a deep copy on <i>other</i>.
-
 
15067
     */
-
 
15068
    public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
-
 
15069
    }
-
 
15070
 
-
 
15071
    public getCurrentSerializedInventoryByScans_args deepCopy() {
-
 
15072
      return new getCurrentSerializedInventoryByScans_args(this);
-
 
15073
    }
-
 
15074
 
-
 
15075
    @Override
-
 
15076
    public void clear() {
-
 
15077
    }
-
 
15078
 
-
 
15079
    public void setFieldValue(_Fields field, Object value) {
-
 
15080
      switch (field) {
-
 
15081
      }
-
 
15082
    }
-
 
15083
 
-
 
15084
    public Object getFieldValue(_Fields field) {
-
 
15085
      switch (field) {
-
 
15086
      }
-
 
15087
      throw new IllegalStateException();
-
 
15088
    }
-
 
15089
 
-
 
15090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15091
    public boolean isSet(_Fields field) {
-
 
15092
      if (field == null) {
-
 
15093
        throw new IllegalArgumentException();
-
 
15094
      }
-
 
15095
 
-
 
15096
      switch (field) {
-
 
15097
      }
-
 
15098
      throw new IllegalStateException();
-
 
15099
    }
-
 
15100
 
-
 
15101
    @Override
-
 
15102
    public boolean equals(Object that) {
-
 
15103
      if (that == null)
-
 
15104
        return false;
-
 
15105
      if (that instanceof getCurrentSerializedInventoryByScans_args)
-
 
15106
        return this.equals((getCurrentSerializedInventoryByScans_args)that);
-
 
15107
      return false;
-
 
15108
    }
-
 
15109
 
-
 
15110
    public boolean equals(getCurrentSerializedInventoryByScans_args that) {
-
 
15111
      if (that == null)
-
 
15112
        return false;
-
 
15113
 
-
 
15114
      return true;
-
 
15115
    }
-
 
15116
 
-
 
15117
    @Override
-
 
15118
    public int hashCode() {
-
 
15119
      return 0;
-
 
15120
    }
-
 
15121
 
-
 
15122
    public int compareTo(getCurrentSerializedInventoryByScans_args other) {
-
 
15123
      if (!getClass().equals(other.getClass())) {
-
 
15124
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15125
      }
-
 
15126
 
-
 
15127
      int lastComparison = 0;
-
 
15128
      getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
-
 
15129
 
-
 
15130
      return 0;
-
 
15131
    }
-
 
15132
 
-
 
15133
    public _Fields fieldForId(int fieldId) {
-
 
15134
      return _Fields.findByThriftId(fieldId);
-
 
15135
    }
-
 
15136
 
-
 
15137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15138
      org.apache.thrift.protocol.TField field;
-
 
15139
      iprot.readStructBegin();
-
 
15140
      while (true)
-
 
15141
      {
-
 
15142
        field = iprot.readFieldBegin();
-
 
15143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15144
          break;
-
 
15145
        }
-
 
15146
        switch (field.id) {
-
 
15147
          default:
-
 
15148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15149
        }
-
 
15150
        iprot.readFieldEnd();
-
 
15151
      }
-
 
15152
      iprot.readStructEnd();
-
 
15153
      validate();
-
 
15154
    }
-
 
15155
 
-
 
15156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15157
      validate();
-
 
15158
 
-
 
15159
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15160
      oprot.writeFieldStop();
-
 
15161
      oprot.writeStructEnd();
-
 
15162
    }
-
 
15163
 
-
 
15164
    @Override
-
 
15165
    public String toString() {
-
 
15166
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
-
 
15167
      boolean first = true;
-
 
15168
 
-
 
15169
      sb.append(")");
-
 
15170
      return sb.toString();
-
 
15171
    }
-
 
15172
 
-
 
15173
    public void validate() throws org.apache.thrift.TException {
-
 
15174
      // check for required fields
-
 
15175
    }
-
 
15176
 
-
 
15177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15178
      try {
-
 
15179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15180
      } catch (org.apache.thrift.TException te) {
-
 
15181
        throw new java.io.IOException(te);
-
 
15182
      }
-
 
15183
    }
-
 
15184
 
-
 
15185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15186
      try {
-
 
15187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15188
      } catch (org.apache.thrift.TException te) {
-
 
15189
        throw new java.io.IOException(te);
-
 
15190
      }
-
 
15191
    }
-
 
15192
 
-
 
15193
  }
-
 
15194
 
-
 
15195
  public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
15196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
-
 
15197
 
-
 
15198
    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);
-
 
15199
 
-
 
15200
    private List<InventoryAvailability> success; // required
-
 
15201
 
-
 
15202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15204
      SUCCESS((short)0, "success");
-
 
15205
 
-
 
15206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15207
 
-
 
15208
      static {
-
 
15209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15210
          byName.put(field.getFieldName(), field);
-
 
15211
        }
-
 
15212
      }
-
 
15213
 
-
 
15214
      /**
-
 
15215
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15216
       */
-
 
15217
      public static _Fields findByThriftId(int fieldId) {
-
 
15218
        switch(fieldId) {
-
 
15219
          case 0: // SUCCESS
-
 
15220
            return SUCCESS;
-
 
15221
          default:
-
 
15222
            return null;
-
 
15223
        }
-
 
15224
      }
-
 
15225
 
-
 
15226
      /**
-
 
15227
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15228
       * if it is not found.
-
 
15229
       */
-
 
15230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15231
        _Fields fields = findByThriftId(fieldId);
-
 
15232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15233
        return fields;
-
 
15234
      }
-
 
15235
 
-
 
15236
      /**
-
 
15237
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15238
       */
-
 
15239
      public static _Fields findByName(String name) {
-
 
15240
        return byName.get(name);
-
 
15241
      }
-
 
15242
 
-
 
15243
      private final short _thriftId;
-
 
15244
      private final String _fieldName;
-
 
15245
 
-
 
15246
      _Fields(short thriftId, String fieldName) {
-
 
15247
        _thriftId = thriftId;
-
 
15248
        _fieldName = fieldName;
-
 
15249
      }
-
 
15250
 
-
 
15251
      public short getThriftFieldId() {
-
 
15252
        return _thriftId;
-
 
15253
      }
-
 
15254
 
-
 
15255
      public String getFieldName() {
-
 
15256
        return _fieldName;
-
 
15257
      }
-
 
15258
    }
-
 
15259
 
-
 
15260
    // isset id assignments
-
 
15261
 
-
 
15262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15263
    static {
-
 
15264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15265
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15266
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
15267
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
-
 
15268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
-
 
15270
    }
-
 
15271
 
-
 
15272
    public getCurrentSerializedInventoryByScans_result() {
-
 
15273
    }
-
 
15274
 
-
 
15275
    public getCurrentSerializedInventoryByScans_result(
-
 
15276
      List<InventoryAvailability> success)
-
 
15277
    {
-
 
15278
      this();
-
 
15279
      this.success = success;
-
 
15280
    }
-
 
15281
 
-
 
15282
    /**
-
 
15283
     * Performs a deep copy on <i>other</i>.
-
 
15284
     */
-
 
15285
    public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
-
 
15286
      if (other.isSetSuccess()) {
-
 
15287
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
-
 
15288
        for (InventoryAvailability other_element : other.success) {
-
 
15289
          __this__success.add(new InventoryAvailability(other_element));
-
 
15290
        }
-
 
15291
        this.success = __this__success;
-
 
15292
      }
-
 
15293
    }
-
 
15294
 
-
 
15295
    public getCurrentSerializedInventoryByScans_result deepCopy() {
-
 
15296
      return new getCurrentSerializedInventoryByScans_result(this);
-
 
15297
    }
-
 
15298
 
-
 
15299
    @Override
-
 
15300
    public void clear() {
-
 
15301
      this.success = null;
-
 
15302
    }
-
 
15303
 
-
 
15304
    public int getSuccessSize() {
-
 
15305
      return (this.success == null) ? 0 : this.success.size();
-
 
15306
    }
-
 
15307
 
-
 
15308
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
-
 
15309
      return (this.success == null) ? null : this.success.iterator();
-
 
15310
    }
-
 
15311
 
-
 
15312
    public void addToSuccess(InventoryAvailability elem) {
-
 
15313
      if (this.success == null) {
-
 
15314
        this.success = new ArrayList<InventoryAvailability>();
-
 
15315
      }
-
 
15316
      this.success.add(elem);
-
 
15317
    }
-
 
15318
 
-
 
15319
    public List<InventoryAvailability> getSuccess() {
-
 
15320
      return this.success;
-
 
15321
    }
-
 
15322
 
-
 
15323
    public void setSuccess(List<InventoryAvailability> success) {
-
 
15324
      this.success = success;
-
 
15325
    }
-
 
15326
 
-
 
15327
    public void unsetSuccess() {
-
 
15328
      this.success = null;
-
 
15329
    }
-
 
15330
 
-
 
15331
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
15332
    public boolean isSetSuccess() {
-
 
15333
      return this.success != null;
-
 
15334
    }
-
 
15335
 
-
 
15336
    public void setSuccessIsSet(boolean value) {
-
 
15337
      if (!value) {
-
 
15338
        this.success = null;
-
 
15339
      }
-
 
15340
    }
-
 
15341
 
-
 
15342
    public void setFieldValue(_Fields field, Object value) {
-
 
15343
      switch (field) {
-
 
15344
      case SUCCESS:
-
 
15345
        if (value == null) {
-
 
15346
          unsetSuccess();
-
 
15347
        } else {
-
 
15348
          setSuccess((List<InventoryAvailability>)value);
-
 
15349
        }
-
 
15350
        break;
-
 
15351
 
-
 
15352
      }
-
 
15353
    }
-
 
15354
 
-
 
15355
    public Object getFieldValue(_Fields field) {
-
 
15356
      switch (field) {
-
 
15357
      case SUCCESS:
-
 
15358
        return getSuccess();
-
 
15359
 
-
 
15360
      }
-
 
15361
      throw new IllegalStateException();
-
 
15362
    }
-
 
15363
 
-
 
15364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15365
    public boolean isSet(_Fields field) {
-
 
15366
      if (field == null) {
-
 
15367
        throw new IllegalArgumentException();
-
 
15368
      }
-
 
15369
 
-
 
15370
      switch (field) {
-
 
15371
      case SUCCESS:
-
 
15372
        return isSetSuccess();
-
 
15373
      }
-
 
15374
      throw new IllegalStateException();
-
 
15375
    }
-
 
15376
 
-
 
15377
    @Override
-
 
15378
    public boolean equals(Object that) {
-
 
15379
      if (that == null)
-
 
15380
        return false;
-
 
15381
      if (that instanceof getCurrentSerializedInventoryByScans_result)
-
 
15382
        return this.equals((getCurrentSerializedInventoryByScans_result)that);
-
 
15383
      return false;
-
 
15384
    }
-
 
15385
 
-
 
15386
    public boolean equals(getCurrentSerializedInventoryByScans_result that) {
-
 
15387
      if (that == null)
-
 
15388
        return false;
-
 
15389
 
-
 
15390
      boolean this_present_success = true && this.isSetSuccess();
-
 
15391
      boolean that_present_success = true && that.isSetSuccess();
-
 
15392
      if (this_present_success || that_present_success) {
-
 
15393
        if (!(this_present_success && that_present_success))
-
 
15394
          return false;
-
 
15395
        if (!this.success.equals(that.success))
-
 
15396
          return false;
-
 
15397
      }
-
 
15398
 
-
 
15399
      return true;
-
 
15400
    }
-
 
15401
 
-
 
15402
    @Override
-
 
15403
    public int hashCode() {
-
 
15404
      return 0;
-
 
15405
    }
-
 
15406
 
-
 
15407
    public int compareTo(getCurrentSerializedInventoryByScans_result other) {
-
 
15408
      if (!getClass().equals(other.getClass())) {
-
 
15409
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15410
      }
-
 
15411
 
-
 
15412
      int lastComparison = 0;
-
 
15413
      getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
-
 
15414
 
-
 
15415
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
15416
      if (lastComparison != 0) {
-
 
15417
        return lastComparison;
-
 
15418
      }
-
 
15419
      if (isSetSuccess()) {
-
 
15420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
15421
        if (lastComparison != 0) {
-
 
15422
          return lastComparison;
-
 
15423
        }
-
 
15424
      }
-
 
15425
      return 0;
-
 
15426
    }
-
 
15427
 
-
 
15428
    public _Fields fieldForId(int fieldId) {
-
 
15429
      return _Fields.findByThriftId(fieldId);
-
 
15430
    }
-
 
15431
 
-
 
15432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15433
      org.apache.thrift.protocol.TField field;
-
 
15434
      iprot.readStructBegin();
-
 
15435
      while (true)
-
 
15436
      {
-
 
15437
        field = iprot.readFieldBegin();
-
 
15438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15439
          break;
-
 
15440
        }
-
 
15441
        switch (field.id) {
-
 
15442
          case 0: // SUCCESS
-
 
15443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
15444
              {
-
 
15445
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
-
 
15446
                this.success = new ArrayList<InventoryAvailability>(_list40.size);
-
 
15447
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
15448
                {
-
 
15449
                  InventoryAvailability _elem42; // required
-
 
15450
                  _elem42 = new InventoryAvailability();
-
 
15451
                  _elem42.read(iprot);
-
 
15452
                  this.success.add(_elem42);
-
 
15453
                }
-
 
15454
                iprot.readListEnd();
-
 
15455
              }
-
 
15456
            } else { 
-
 
15457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15458
            }
-
 
15459
            break;
-
 
15460
          default:
-
 
15461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15462
        }
-
 
15463
        iprot.readFieldEnd();
-
 
15464
      }
-
 
15465
      iprot.readStructEnd();
-
 
15466
      validate();
-
 
15467
    }
-
 
15468
 
-
 
15469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15470
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15471
 
-
 
15472
      if (this.isSetSuccess()) {
-
 
15473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
15474
        {
-
 
15475
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
15476
          for (InventoryAvailability _iter43 : this.success)
-
 
15477
          {
-
 
15478
            _iter43.write(oprot);
-
 
15479
          }
-
 
15480
          oprot.writeListEnd();
-
 
15481
        }
-
 
15482
        oprot.writeFieldEnd();
-
 
15483
      }
-
 
15484
      oprot.writeFieldStop();
-
 
15485
      oprot.writeStructEnd();
-
 
15486
    }
-
 
15487
 
-
 
15488
    @Override
-
 
15489
    public String toString() {
-
 
15490
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
-
 
15491
      boolean first = true;
-
 
15492
 
-
 
15493
      sb.append("success:");
-
 
15494
      if (this.success == null) {
-
 
15495
        sb.append("null");
-
 
15496
      } else {
-
 
15497
        sb.append(this.success);
-
 
15498
      }
-
 
15499
      first = false;
-
 
15500
      sb.append(")");
-
 
15501
      return sb.toString();
-
 
15502
    }
14095
 
15503
 
14096
    public void validate() throws org.apache.thrift.TException {
15504
    public void validate() throws org.apache.thrift.TException {
14097
      // check for required fields
15505
      // check for required fields
14098
    }
15506
    }
14099
 
15507