Subversion Repositories SmartDukaan

Rev

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

Rev 5110 Rev 5185
Line 151... Line 151...
151
     * 
151
     * 
152
     * @param itemNumber
152
     * @param itemNumber
153
     */
153
     */
154
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
154
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
155
 
155
 
-
 
156
    /**
-
 
157
     * Retrieves all inventory items given a last scan type
-
 
158
     * 
-
 
159
     * @param lastScanType
-
 
160
     */
-
 
161
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
162
 
-
 
163
    /**
-
 
164
     * Retrieves inventory item given a inventoryItem id
-
 
165
     * 
-
 
166
     * @param inventoryItemId
-
 
167
     */
-
 
168
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
169
 
156
  }
170
  }
157
 
171
 
158
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
172
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
159
 
173
 
160
    public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
174
    public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 185... Line 199...
185
 
199
 
186
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
200
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
187
 
201
 
188
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
202
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
189
 
203
 
-
 
204
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
-
 
205
 
-
 
206
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
-
 
207
 
190
  }
208
  }
191
 
209
 
192
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
210
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
193
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
211
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
194
      public Factory() {}
212
      public Factory() {}
Line 588... Line 606...
588
        return result.success;
606
        return result.success;
589
      }
607
      }
590
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
608
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
591
    }
609
    }
592
 
610
 
-
 
611
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
-
 
612
    {
-
 
613
      send_getInventoryItemsFromLastScanType(lastScanType);
-
 
614
      return recv_getInventoryItemsFromLastScanType();
-
 
615
    }
-
 
616
 
-
 
617
    public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
-
 
618
    {
-
 
619
      getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
-
 
620
      args.setLastScanType(lastScanType);
-
 
621
      sendBase("getInventoryItemsFromLastScanType", args);
-
 
622
    }
-
 
623
 
-
 
624
    public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
-
 
625
    {
-
 
626
      getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
-
 
627
      receiveBase(result, "getInventoryItemsFromLastScanType");
-
 
628
      if (result.isSetSuccess()) {
-
 
629
        return result.success;
-
 
630
      }
-
 
631
      if (result.wex != null) {
-
 
632
        throw result.wex;
-
 
633
      }
-
 
634
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
-
 
635
    }
-
 
636
 
-
 
637
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
638
    {
-
 
639
      send_getInventoryItemFromId(inventoryItemId);
-
 
640
      return recv_getInventoryItemFromId();
-
 
641
    }
-
 
642
 
-
 
643
    public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
-
 
644
    {
-
 
645
      getInventoryItemFromId_args args = new getInventoryItemFromId_args();
-
 
646
      args.setInventoryItemId(inventoryItemId);
-
 
647
      sendBase("getInventoryItemFromId", args);
-
 
648
    }
-
 
649
 
-
 
650
    public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
-
 
651
    {
-
 
652
      getInventoryItemFromId_result result = new getInventoryItemFromId_result();
-
 
653
      receiveBase(result, "getInventoryItemFromId");
-
 
654
      if (result.isSetSuccess()) {
-
 
655
        return result.success;
-
 
656
      }
-
 
657
      if (result.wex != null) {
-
 
658
        throw result.wex;
-
 
659
      }
-
 
660
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
-
 
661
    }
-
 
662
 
593
  }
663
  }
594
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
664
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
595
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
665
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
596
      private org.apache.thrift.async.TAsyncClientManager clientManager;
666
      private org.apache.thrift.async.TAsyncClientManager clientManager;
597
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
667
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1158... Line 1228...
1158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1228
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1159
        return (new Client(prot)).recv_getItemIds();
1229
        return (new Client(prot)).recv_getItemIds();
1160
      }
1230
      }
1161
    }
1231
    }
1162
 
1232
 
-
 
1233
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
-
 
1234
      checkReady();
-
 
1235
      getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
-
 
1236
      this.___currentMethod = method_call;
-
 
1237
      ___manager.call(method_call);
-
 
1238
    }
-
 
1239
 
-
 
1240
    public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1241
      private ScanType lastScanType;
-
 
1242
      public getInventoryItemsFromLastScanType_call(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_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 {
-
 
1243
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1244
        this.lastScanType = lastScanType;
-
 
1245
      }
-
 
1246
 
-
 
1247
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1248
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1249
        getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
-
 
1250
        args.setLastScanType(lastScanType);
-
 
1251
        args.write(prot);
-
 
1252
        prot.writeMessageEnd();
-
 
1253
      }
-
 
1254
 
-
 
1255
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
1256
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1257
          throw new IllegalStateException("Method call not finished!");
-
 
1258
        }
-
 
1259
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1260
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1261
        return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
-
 
1262
      }
-
 
1263
    }
-
 
1264
 
-
 
1265
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
-
 
1266
      checkReady();
-
 
1267
      getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1268
      this.___currentMethod = method_call;
-
 
1269
      ___manager.call(method_call);
-
 
1270
    }
-
 
1271
 
-
 
1272
    public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1273
      private long inventoryItemId;
-
 
1274
      public getInventoryItemFromId_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_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 {
-
 
1275
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1276
        this.inventoryItemId = inventoryItemId;
-
 
1277
      }
-
 
1278
 
-
 
1279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1281
        getInventoryItemFromId_args args = new getInventoryItemFromId_args();
-
 
1282
        args.setInventoryItemId(inventoryItemId);
-
 
1283
        args.write(prot);
-
 
1284
        prot.writeMessageEnd();
-
 
1285
      }
-
 
1286
 
-
 
1287
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
1288
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1289
          throw new IllegalStateException("Method call not finished!");
-
 
1290
        }
-
 
1291
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1293
        return (new Client(prot)).recv_getInventoryItemFromId();
-
 
1294
      }
-
 
1295
    }
-
 
1296
 
1163
  }
1297
  }
1164
 
1298
 
1165
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1299
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1166
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1300
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1167
    public Processor(I iface) {
1301
    public Processor(I iface) {
Line 1186... Line 1320...
1186
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
1320
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
1187
      processMap.put("scanForOrder", new scanForOrder());
1321
      processMap.put("scanForOrder", new scanForOrder());
1188
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
1322
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
1189
      processMap.put("getItemNumbers", new getItemNumbers());
1323
      processMap.put("getItemNumbers", new getItemNumbers());
1190
      processMap.put("getItemIds", new getItemIds());
1324
      processMap.put("getItemIds", new getItemIds());
-
 
1325
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
-
 
1326
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
1191
      return processMap;
1327
      return processMap;
1192
    }
1328
    }
1193
 
1329
 
1194
    private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
1330
    private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
1195
      public createSerializedInventoryItem() {
1331
      public createSerializedInventoryItem() {
Line 1461... Line 1597...
1461
        result.success = iface.getItemIds(args.itemNumber);
1597
        result.success = iface.getItemIds(args.itemNumber);
1462
        return result;
1598
        return result;
1463
      }
1599
      }
1464
    }
1600
    }
1465
 
1601
 
-
 
1602
    private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
-
 
1603
      public getInventoryItemsFromLastScanType() {
-
 
1604
        super("getInventoryItemsFromLastScanType");
-
 
1605
      }
-
 
1606
 
-
 
1607
      protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
-
 
1608
        return new getInventoryItemsFromLastScanType_args();
-
 
1609
      }
-
 
1610
 
-
 
1611
      protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
-
 
1612
        getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
-
 
1613
        try {
-
 
1614
          result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
-
 
1615
        } catch (WarehouseServiceException wex) {
-
 
1616
          result.wex = wex;
-
 
1617
        }
-
 
1618
        return result;
-
 
1619
      }
-
 
1620
    }
-
 
1621
 
-
 
1622
    private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
-
 
1623
      public getInventoryItemFromId() {
-
 
1624
        super("getInventoryItemFromId");
-
 
1625
      }
-
 
1626
 
-
 
1627
      protected getInventoryItemFromId_args getEmptyArgsInstance() {
-
 
1628
        return new getInventoryItemFromId_args();
-
 
1629
      }
-
 
1630
 
-
 
1631
      protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
-
 
1632
        getInventoryItemFromId_result result = new getInventoryItemFromId_result();
-
 
1633
        try {
-
 
1634
          result.success = iface.getInventoryItemFromId(args.inventoryItemId);
-
 
1635
        } catch (WarehouseServiceException wex) {
-
 
1636
          result.wex = wex;
-
 
1637
        }
-
 
1638
        return result;
-
 
1639
      }
-
 
1640
    }
-
 
1641
 
1466
  }
1642
  }
1467
 
1643
 
1468
  public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1644
  public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
1645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
1470
 
1646
 
Line 12919... Line 13095...
12919
      }
13095
      }
12920
      first = false;
13096
      first = false;
12921
      sb.append(")");
13097
      sb.append(")");
12922
      return sb.toString();
13098
      return sb.toString();
12923
    }
13099
    }
-
 
13100
 
-
 
13101
    public void validate() throws org.apache.thrift.TException {
-
 
13102
      // check for required fields
-
 
13103
    }
-
 
13104
 
-
 
13105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13106
      try {
-
 
13107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13108
      } catch (org.apache.thrift.TException te) {
-
 
13109
        throw new java.io.IOException(te);
-
 
13110
      }
-
 
13111
    }
-
 
13112
 
-
 
13113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13114
      try {
-
 
13115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13116
      } catch (org.apache.thrift.TException te) {
-
 
13117
        throw new java.io.IOException(te);
-
 
13118
      }
-
 
13119
    }
-
 
13120
 
-
 
13121
  }
-
 
13122
 
-
 
13123
  public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable   {
-
 
13124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
-
 
13125
 
-
 
13126
    private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
13127
 
-
 
13128
    private ScanType lastScanType; // required
-
 
13129
 
-
 
13130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13131
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13132
      /**
-
 
13133
       * 
-
 
13134
       * @see ScanType
-
 
13135
       */
-
 
13136
      LAST_SCAN_TYPE((short)1, "lastScanType");
-
 
13137
 
-
 
13138
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13139
 
-
 
13140
      static {
-
 
13141
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13142
          byName.put(field.getFieldName(), field);
-
 
13143
        }
-
 
13144
      }
-
 
13145
 
-
 
13146
      /**
-
 
13147
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13148
       */
-
 
13149
      public static _Fields findByThriftId(int fieldId) {
-
 
13150
        switch(fieldId) {
-
 
13151
          case 1: // LAST_SCAN_TYPE
-
 
13152
            return LAST_SCAN_TYPE;
-
 
13153
          default:
-
 
13154
            return null;
-
 
13155
        }
-
 
13156
      }
-
 
13157
 
-
 
13158
      /**
-
 
13159
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13160
       * if it is not found.
-
 
13161
       */
-
 
13162
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13163
        _Fields fields = findByThriftId(fieldId);
-
 
13164
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13165
        return fields;
-
 
13166
      }
-
 
13167
 
-
 
13168
      /**
-
 
13169
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13170
       */
-
 
13171
      public static _Fields findByName(String name) {
-
 
13172
        return byName.get(name);
-
 
13173
      }
-
 
13174
 
-
 
13175
      private final short _thriftId;
-
 
13176
      private final String _fieldName;
-
 
13177
 
-
 
13178
      _Fields(short thriftId, String fieldName) {
-
 
13179
        _thriftId = thriftId;
-
 
13180
        _fieldName = fieldName;
-
 
13181
      }
-
 
13182
 
-
 
13183
      public short getThriftFieldId() {
-
 
13184
        return _thriftId;
-
 
13185
      }
-
 
13186
 
-
 
13187
      public String getFieldName() {
-
 
13188
        return _fieldName;
-
 
13189
      }
-
 
13190
    }
-
 
13191
 
-
 
13192
    // isset id assignments
-
 
13193
 
-
 
13194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13195
    static {
-
 
13196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13197
      tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13198
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
13199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
-
 
13201
    }
-
 
13202
 
-
 
13203
    public getInventoryItemsFromLastScanType_args() {
-
 
13204
    }
-
 
13205
 
-
 
13206
    public getInventoryItemsFromLastScanType_args(
-
 
13207
      ScanType lastScanType)
-
 
13208
    {
-
 
13209
      this();
-
 
13210
      this.lastScanType = lastScanType;
-
 
13211
    }
-
 
13212
 
-
 
13213
    /**
-
 
13214
     * Performs a deep copy on <i>other</i>.
-
 
13215
     */
-
 
13216
    public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
-
 
13217
      if (other.isSetLastScanType()) {
-
 
13218
        this.lastScanType = other.lastScanType;
-
 
13219
      }
-
 
13220
    }
-
 
13221
 
-
 
13222
    public getInventoryItemsFromLastScanType_args deepCopy() {
-
 
13223
      return new getInventoryItemsFromLastScanType_args(this);
-
 
13224
    }
-
 
13225
 
-
 
13226
    @Override
-
 
13227
    public void clear() {
-
 
13228
      this.lastScanType = null;
-
 
13229
    }
-
 
13230
 
-
 
13231
    /**
-
 
13232
     * 
-
 
13233
     * @see ScanType
-
 
13234
     */
-
 
13235
    public ScanType getLastScanType() {
-
 
13236
      return this.lastScanType;
-
 
13237
    }
-
 
13238
 
-
 
13239
    /**
-
 
13240
     * 
-
 
13241
     * @see ScanType
-
 
13242
     */
-
 
13243
    public void setLastScanType(ScanType lastScanType) {
-
 
13244
      this.lastScanType = lastScanType;
-
 
13245
    }
-
 
13246
 
-
 
13247
    public void unsetLastScanType() {
-
 
13248
      this.lastScanType = null;
-
 
13249
    }
-
 
13250
 
-
 
13251
    /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
-
 
13252
    public boolean isSetLastScanType() {
-
 
13253
      return this.lastScanType != null;
-
 
13254
    }
-
 
13255
 
-
 
13256
    public void setLastScanTypeIsSet(boolean value) {
-
 
13257
      if (!value) {
-
 
13258
        this.lastScanType = null;
-
 
13259
      }
-
 
13260
    }
-
 
13261
 
-
 
13262
    public void setFieldValue(_Fields field, Object value) {
-
 
13263
      switch (field) {
-
 
13264
      case LAST_SCAN_TYPE:
-
 
13265
        if (value == null) {
-
 
13266
          unsetLastScanType();
-
 
13267
        } else {
-
 
13268
          setLastScanType((ScanType)value);
-
 
13269
        }
-
 
13270
        break;
-
 
13271
 
-
 
13272
      }
-
 
13273
    }
-
 
13274
 
-
 
13275
    public Object getFieldValue(_Fields field) {
-
 
13276
      switch (field) {
-
 
13277
      case LAST_SCAN_TYPE:
-
 
13278
        return getLastScanType();
-
 
13279
 
-
 
13280
      }
-
 
13281
      throw new IllegalStateException();
-
 
13282
    }
-
 
13283
 
-
 
13284
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13285
    public boolean isSet(_Fields field) {
-
 
13286
      if (field == null) {
-
 
13287
        throw new IllegalArgumentException();
-
 
13288
      }
-
 
13289
 
-
 
13290
      switch (field) {
-
 
13291
      case LAST_SCAN_TYPE:
-
 
13292
        return isSetLastScanType();
-
 
13293
      }
-
 
13294
      throw new IllegalStateException();
-
 
13295
    }
-
 
13296
 
-
 
13297
    @Override
-
 
13298
    public boolean equals(Object that) {
-
 
13299
      if (that == null)
-
 
13300
        return false;
-
 
13301
      if (that instanceof getInventoryItemsFromLastScanType_args)
-
 
13302
        return this.equals((getInventoryItemsFromLastScanType_args)that);
-
 
13303
      return false;
-
 
13304
    }
-
 
13305
 
-
 
13306
    public boolean equals(getInventoryItemsFromLastScanType_args that) {
-
 
13307
      if (that == null)
-
 
13308
        return false;
-
 
13309
 
-
 
13310
      boolean this_present_lastScanType = true && this.isSetLastScanType();
-
 
13311
      boolean that_present_lastScanType = true && that.isSetLastScanType();
-
 
13312
      if (this_present_lastScanType || that_present_lastScanType) {
-
 
13313
        if (!(this_present_lastScanType && that_present_lastScanType))
-
 
13314
          return false;
-
 
13315
        if (!this.lastScanType.equals(that.lastScanType))
-
 
13316
          return false;
-
 
13317
      }
-
 
13318
 
-
 
13319
      return true;
-
 
13320
    }
-
 
13321
 
-
 
13322
    @Override
-
 
13323
    public int hashCode() {
-
 
13324
      return 0;
-
 
13325
    }
-
 
13326
 
-
 
13327
    public int compareTo(getInventoryItemsFromLastScanType_args other) {
-
 
13328
      if (!getClass().equals(other.getClass())) {
-
 
13329
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13330
      }
-
 
13331
 
-
 
13332
      int lastComparison = 0;
-
 
13333
      getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
-
 
13334
 
-
 
13335
      lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
-
 
13336
      if (lastComparison != 0) {
-
 
13337
        return lastComparison;
-
 
13338
      }
-
 
13339
      if (isSetLastScanType()) {
-
 
13340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
-
 
13341
        if (lastComparison != 0) {
-
 
13342
          return lastComparison;
-
 
13343
        }
-
 
13344
      }
-
 
13345
      return 0;
-
 
13346
    }
-
 
13347
 
-
 
13348
    public _Fields fieldForId(int fieldId) {
-
 
13349
      return _Fields.findByThriftId(fieldId);
-
 
13350
    }
-
 
13351
 
-
 
13352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13353
      org.apache.thrift.protocol.TField field;
-
 
13354
      iprot.readStructBegin();
-
 
13355
      while (true)
-
 
13356
      {
-
 
13357
        field = iprot.readFieldBegin();
-
 
13358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13359
          break;
-
 
13360
        }
-
 
13361
        switch (field.id) {
-
 
13362
          case 1: // LAST_SCAN_TYPE
-
 
13363
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
13364
              this.lastScanType = ScanType.findByValue(iprot.readI32());
-
 
13365
            } else { 
-
 
13366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13367
            }
-
 
13368
            break;
-
 
13369
          default:
-
 
13370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13371
        }
-
 
13372
        iprot.readFieldEnd();
-
 
13373
      }
-
 
13374
      iprot.readStructEnd();
-
 
13375
      validate();
-
 
13376
    }
-
 
13377
 
-
 
13378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13379
      validate();
-
 
13380
 
-
 
13381
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13382
      if (this.lastScanType != null) {
-
 
13383
        oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
-
 
13384
        oprot.writeI32(this.lastScanType.getValue());
-
 
13385
        oprot.writeFieldEnd();
-
 
13386
      }
-
 
13387
      oprot.writeFieldStop();
-
 
13388
      oprot.writeStructEnd();
-
 
13389
    }
-
 
13390
 
-
 
13391
    @Override
-
 
13392
    public String toString() {
-
 
13393
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
-
 
13394
      boolean first = true;
-
 
13395
 
-
 
13396
      sb.append("lastScanType:");
-
 
13397
      if (this.lastScanType == null) {
-
 
13398
        sb.append("null");
-
 
13399
      } else {
-
 
13400
        sb.append(this.lastScanType);
-
 
13401
      }
-
 
13402
      first = false;
-
 
13403
      sb.append(")");
-
 
13404
      return sb.toString();
-
 
13405
    }
-
 
13406
 
-
 
13407
    public void validate() throws org.apache.thrift.TException {
-
 
13408
      // check for required fields
-
 
13409
    }
-
 
13410
 
-
 
13411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13412
      try {
-
 
13413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13414
      } catch (org.apache.thrift.TException te) {
-
 
13415
        throw new java.io.IOException(te);
-
 
13416
      }
-
 
13417
    }
-
 
13418
 
-
 
13419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13420
      try {
-
 
13421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13422
      } catch (org.apache.thrift.TException te) {
-
 
13423
        throw new java.io.IOException(te);
-
 
13424
      }
-
 
13425
    }
-
 
13426
 
-
 
13427
  }
-
 
13428
 
-
 
13429
  public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable   {
-
 
13430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
-
 
13431
 
-
 
13432
    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);
-
 
13433
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
13434
 
-
 
13435
    private List<InventoryItem> success; // required
-
 
13436
    private WarehouseServiceException wex; // required
-
 
13437
 
-
 
13438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13440
      SUCCESS((short)0, "success"),
-
 
13441
      WEX((short)1, "wex");
-
 
13442
 
-
 
13443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13444
 
-
 
13445
      static {
-
 
13446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13447
          byName.put(field.getFieldName(), field);
-
 
13448
        }
-
 
13449
      }
-
 
13450
 
-
 
13451
      /**
-
 
13452
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13453
       */
-
 
13454
      public static _Fields findByThriftId(int fieldId) {
-
 
13455
        switch(fieldId) {
-
 
13456
          case 0: // SUCCESS
-
 
13457
            return SUCCESS;
-
 
13458
          case 1: // WEX
-
 
13459
            return WEX;
-
 
13460
          default:
-
 
13461
            return null;
-
 
13462
        }
-
 
13463
      }
-
 
13464
 
-
 
13465
      /**
-
 
13466
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13467
       * if it is not found.
-
 
13468
       */
-
 
13469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13470
        _Fields fields = findByThriftId(fieldId);
-
 
13471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13472
        return fields;
-
 
13473
      }
-
 
13474
 
-
 
13475
      /**
-
 
13476
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13477
       */
-
 
13478
      public static _Fields findByName(String name) {
-
 
13479
        return byName.get(name);
-
 
13480
      }
-
 
13481
 
-
 
13482
      private final short _thriftId;
-
 
13483
      private final String _fieldName;
-
 
13484
 
-
 
13485
      _Fields(short thriftId, String fieldName) {
-
 
13486
        _thriftId = thriftId;
-
 
13487
        _fieldName = fieldName;
-
 
13488
      }
-
 
13489
 
-
 
13490
      public short getThriftFieldId() {
-
 
13491
        return _thriftId;
-
 
13492
      }
-
 
13493
 
-
 
13494
      public String getFieldName() {
-
 
13495
        return _fieldName;
-
 
13496
      }
-
 
13497
    }
-
 
13498
 
-
 
13499
    // isset id assignments
-
 
13500
 
-
 
13501
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13502
    static {
-
 
13503
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13504
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13505
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
13506
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
13507
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
13509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
-
 
13511
    }
-
 
13512
 
-
 
13513
    public getInventoryItemsFromLastScanType_result() {
-
 
13514
    }
-
 
13515
 
-
 
13516
    public getInventoryItemsFromLastScanType_result(
-
 
13517
      List<InventoryItem> success,
-
 
13518
      WarehouseServiceException wex)
-
 
13519
    {
-
 
13520
      this();
-
 
13521
      this.success = success;
-
 
13522
      this.wex = wex;
-
 
13523
    }
-
 
13524
 
-
 
13525
    /**
-
 
13526
     * Performs a deep copy on <i>other</i>.
-
 
13527
     */
-
 
13528
    public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
-
 
13529
      if (other.isSetSuccess()) {
-
 
13530
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
13531
        for (InventoryItem other_element : other.success) {
-
 
13532
          __this__success.add(new InventoryItem(other_element));
-
 
13533
        }
-
 
13534
        this.success = __this__success;
-
 
13535
      }
-
 
13536
      if (other.isSetWex()) {
-
 
13537
        this.wex = new WarehouseServiceException(other.wex);
-
 
13538
      }
-
 
13539
    }
-
 
13540
 
-
 
13541
    public getInventoryItemsFromLastScanType_result deepCopy() {
-
 
13542
      return new getInventoryItemsFromLastScanType_result(this);
-
 
13543
    }
-
 
13544
 
-
 
13545
    @Override
-
 
13546
    public void clear() {
-
 
13547
      this.success = null;
-
 
13548
      this.wex = null;
-
 
13549
    }
-
 
13550
 
-
 
13551
    public int getSuccessSize() {
-
 
13552
      return (this.success == null) ? 0 : this.success.size();
-
 
13553
    }
-
 
13554
 
-
 
13555
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
13556
      return (this.success == null) ? null : this.success.iterator();
-
 
13557
    }
-
 
13558
 
-
 
13559
    public void addToSuccess(InventoryItem elem) {
-
 
13560
      if (this.success == null) {
-
 
13561
        this.success = new ArrayList<InventoryItem>();
-
 
13562
      }
-
 
13563
      this.success.add(elem);
-
 
13564
    }
-
 
13565
 
-
 
13566
    public List<InventoryItem> getSuccess() {
-
 
13567
      return this.success;
-
 
13568
    }
-
 
13569
 
-
 
13570
    public void setSuccess(List<InventoryItem> success) {
-
 
13571
      this.success = success;
-
 
13572
    }
-
 
13573
 
-
 
13574
    public void unsetSuccess() {
-
 
13575
      this.success = null;
-
 
13576
    }
-
 
13577
 
-
 
13578
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
13579
    public boolean isSetSuccess() {
-
 
13580
      return this.success != null;
-
 
13581
    }
-
 
13582
 
-
 
13583
    public void setSuccessIsSet(boolean value) {
-
 
13584
      if (!value) {
-
 
13585
        this.success = null;
-
 
13586
      }
-
 
13587
    }
-
 
13588
 
-
 
13589
    public WarehouseServiceException getWex() {
-
 
13590
      return this.wex;
-
 
13591
    }
-
 
13592
 
-
 
13593
    public void setWex(WarehouseServiceException wex) {
-
 
13594
      this.wex = wex;
-
 
13595
    }
-
 
13596
 
-
 
13597
    public void unsetWex() {
-
 
13598
      this.wex = null;
-
 
13599
    }
-
 
13600
 
-
 
13601
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
13602
    public boolean isSetWex() {
-
 
13603
      return this.wex != null;
-
 
13604
    }
-
 
13605
 
-
 
13606
    public void setWexIsSet(boolean value) {
-
 
13607
      if (!value) {
-
 
13608
        this.wex = null;
-
 
13609
      }
-
 
13610
    }
-
 
13611
 
-
 
13612
    public void setFieldValue(_Fields field, Object value) {
-
 
13613
      switch (field) {
-
 
13614
      case SUCCESS:
-
 
13615
        if (value == null) {
-
 
13616
          unsetSuccess();
-
 
13617
        } else {
-
 
13618
          setSuccess((List<InventoryItem>)value);
-
 
13619
        }
-
 
13620
        break;
-
 
13621
 
-
 
13622
      case WEX:
-
 
13623
        if (value == null) {
-
 
13624
          unsetWex();
-
 
13625
        } else {
-
 
13626
          setWex((WarehouseServiceException)value);
-
 
13627
        }
-
 
13628
        break;
-
 
13629
 
-
 
13630
      }
-
 
13631
    }
-
 
13632
 
-
 
13633
    public Object getFieldValue(_Fields field) {
-
 
13634
      switch (field) {
-
 
13635
      case SUCCESS:
-
 
13636
        return getSuccess();
-
 
13637
 
-
 
13638
      case WEX:
-
 
13639
        return getWex();
-
 
13640
 
-
 
13641
      }
-
 
13642
      throw new IllegalStateException();
-
 
13643
    }
-
 
13644
 
-
 
13645
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13646
    public boolean isSet(_Fields field) {
-
 
13647
      if (field == null) {
-
 
13648
        throw new IllegalArgumentException();
-
 
13649
      }
-
 
13650
 
-
 
13651
      switch (field) {
-
 
13652
      case SUCCESS:
-
 
13653
        return isSetSuccess();
-
 
13654
      case WEX:
-
 
13655
        return isSetWex();
-
 
13656
      }
-
 
13657
      throw new IllegalStateException();
-
 
13658
    }
-
 
13659
 
-
 
13660
    @Override
-
 
13661
    public boolean equals(Object that) {
-
 
13662
      if (that == null)
-
 
13663
        return false;
-
 
13664
      if (that instanceof getInventoryItemsFromLastScanType_result)
-
 
13665
        return this.equals((getInventoryItemsFromLastScanType_result)that);
-
 
13666
      return false;
-
 
13667
    }
-
 
13668
 
-
 
13669
    public boolean equals(getInventoryItemsFromLastScanType_result that) {
-
 
13670
      if (that == null)
-
 
13671
        return false;
-
 
13672
 
-
 
13673
      boolean this_present_success = true && this.isSetSuccess();
-
 
13674
      boolean that_present_success = true && that.isSetSuccess();
-
 
13675
      if (this_present_success || that_present_success) {
-
 
13676
        if (!(this_present_success && that_present_success))
-
 
13677
          return false;
-
 
13678
        if (!this.success.equals(that.success))
-
 
13679
          return false;
-
 
13680
      }
-
 
13681
 
-
 
13682
      boolean this_present_wex = true && this.isSetWex();
-
 
13683
      boolean that_present_wex = true && that.isSetWex();
-
 
13684
      if (this_present_wex || that_present_wex) {
-
 
13685
        if (!(this_present_wex && that_present_wex))
-
 
13686
          return false;
-
 
13687
        if (!this.wex.equals(that.wex))
-
 
13688
          return false;
-
 
13689
      }
-
 
13690
 
-
 
13691
      return true;
-
 
13692
    }
-
 
13693
 
-
 
13694
    @Override
-
 
13695
    public int hashCode() {
-
 
13696
      return 0;
-
 
13697
    }
-
 
13698
 
-
 
13699
    public int compareTo(getInventoryItemsFromLastScanType_result other) {
-
 
13700
      if (!getClass().equals(other.getClass())) {
-
 
13701
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13702
      }
-
 
13703
 
-
 
13704
      int lastComparison = 0;
-
 
13705
      getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
-
 
13706
 
-
 
13707
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
13708
      if (lastComparison != 0) {
-
 
13709
        return lastComparison;
-
 
13710
      }
-
 
13711
      if (isSetSuccess()) {
-
 
13712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
13713
        if (lastComparison != 0) {
-
 
13714
          return lastComparison;
-
 
13715
        }
-
 
13716
      }
-
 
13717
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
13718
      if (lastComparison != 0) {
-
 
13719
        return lastComparison;
-
 
13720
      }
-
 
13721
      if (isSetWex()) {
-
 
13722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
13723
        if (lastComparison != 0) {
-
 
13724
          return lastComparison;
-
 
13725
        }
-
 
13726
      }
-
 
13727
      return 0;
-
 
13728
    }
-
 
13729
 
-
 
13730
    public _Fields fieldForId(int fieldId) {
-
 
13731
      return _Fields.findByThriftId(fieldId);
-
 
13732
    }
-
 
13733
 
-
 
13734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13735
      org.apache.thrift.protocol.TField field;
-
 
13736
      iprot.readStructBegin();
-
 
13737
      while (true)
-
 
13738
      {
-
 
13739
        field = iprot.readFieldBegin();
-
 
13740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13741
          break;
-
 
13742
        }
-
 
13743
        switch (field.id) {
-
 
13744
          case 0: // SUCCESS
-
 
13745
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
13746
              {
-
 
13747
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
13748
                this.success = new ArrayList<InventoryItem>(_list24.size);
-
 
13749
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
13750
                {
-
 
13751
                  InventoryItem _elem26; // required
-
 
13752
                  _elem26 = new InventoryItem();
-
 
13753
                  _elem26.read(iprot);
-
 
13754
                  this.success.add(_elem26);
-
 
13755
                }
-
 
13756
                iprot.readListEnd();
-
 
13757
              }
-
 
13758
            } else { 
-
 
13759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13760
            }
-
 
13761
            break;
-
 
13762
          case 1: // WEX
-
 
13763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
13764
              this.wex = new WarehouseServiceException();
-
 
13765
              this.wex.read(iprot);
-
 
13766
            } else { 
-
 
13767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13768
            }
-
 
13769
            break;
-
 
13770
          default:
-
 
13771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13772
        }
-
 
13773
        iprot.readFieldEnd();
-
 
13774
      }
-
 
13775
      iprot.readStructEnd();
-
 
13776
      validate();
-
 
13777
    }
-
 
13778
 
-
 
13779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13780
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13781
 
-
 
13782
      if (this.isSetSuccess()) {
-
 
13783
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13784
        {
-
 
13785
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
13786
          for (InventoryItem _iter27 : this.success)
-
 
13787
          {
-
 
13788
            _iter27.write(oprot);
-
 
13789
          }
-
 
13790
          oprot.writeListEnd();
-
 
13791
        }
-
 
13792
        oprot.writeFieldEnd();
-
 
13793
      } else if (this.isSetWex()) {
-
 
13794
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
13795
        this.wex.write(oprot);
-
 
13796
        oprot.writeFieldEnd();
-
 
13797
      }
-
 
13798
      oprot.writeFieldStop();
-
 
13799
      oprot.writeStructEnd();
-
 
13800
    }
-
 
13801
 
-
 
13802
    @Override
-
 
13803
    public String toString() {
-
 
13804
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
-
 
13805
      boolean first = true;
-
 
13806
 
-
 
13807
      sb.append("success:");
-
 
13808
      if (this.success == null) {
-
 
13809
        sb.append("null");
-
 
13810
      } else {
-
 
13811
        sb.append(this.success);
-
 
13812
      }
-
 
13813
      first = false;
-
 
13814
      if (!first) sb.append(", ");
-
 
13815
      sb.append("wex:");
-
 
13816
      if (this.wex == null) {
-
 
13817
        sb.append("null");
-
 
13818
      } else {
-
 
13819
        sb.append(this.wex);
-
 
13820
      }
-
 
13821
      first = false;
-
 
13822
      sb.append(")");
-
 
13823
      return sb.toString();
-
 
13824
    }
-
 
13825
 
-
 
13826
    public void validate() throws org.apache.thrift.TException {
-
 
13827
      // check for required fields
-
 
13828
    }
-
 
13829
 
-
 
13830
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13831
      try {
-
 
13832
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13833
      } catch (org.apache.thrift.TException te) {
-
 
13834
        throw new java.io.IOException(te);
-
 
13835
      }
-
 
13836
    }
-
 
13837
 
-
 
13838
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13839
      try {
-
 
13840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13841
      } catch (org.apache.thrift.TException te) {
-
 
13842
        throw new java.io.IOException(te);
-
 
13843
      }
-
 
13844
    }
-
 
13845
 
-
 
13846
  }
-
 
13847
 
-
 
13848
  public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
13849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
-
 
13850
 
-
 
13851
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
13852
 
-
 
13853
    private long inventoryItemId; // required
-
 
13854
 
-
 
13855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13857
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
-
 
13858
 
-
 
13859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13860
 
-
 
13861
      static {
-
 
13862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13863
          byName.put(field.getFieldName(), field);
-
 
13864
        }
-
 
13865
      }
-
 
13866
 
-
 
13867
      /**
-
 
13868
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13869
       */
-
 
13870
      public static _Fields findByThriftId(int fieldId) {
-
 
13871
        switch(fieldId) {
-
 
13872
          case 1: // INVENTORY_ITEM_ID
-
 
13873
            return INVENTORY_ITEM_ID;
-
 
13874
          default:
-
 
13875
            return null;
-
 
13876
        }
-
 
13877
      }
-
 
13878
 
-
 
13879
      /**
-
 
13880
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13881
       * if it is not found.
-
 
13882
       */
-
 
13883
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13884
        _Fields fields = findByThriftId(fieldId);
-
 
13885
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13886
        return fields;
-
 
13887
      }
-
 
13888
 
-
 
13889
      /**
-
 
13890
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13891
       */
-
 
13892
      public static _Fields findByName(String name) {
-
 
13893
        return byName.get(name);
-
 
13894
      }
-
 
13895
 
-
 
13896
      private final short _thriftId;
-
 
13897
      private final String _fieldName;
-
 
13898
 
-
 
13899
      _Fields(short thriftId, String fieldName) {
-
 
13900
        _thriftId = thriftId;
-
 
13901
        _fieldName = fieldName;
-
 
13902
      }
-
 
13903
 
-
 
13904
      public short getThriftFieldId() {
-
 
13905
        return _thriftId;
-
 
13906
      }
-
 
13907
 
-
 
13908
      public String getFieldName() {
-
 
13909
        return _fieldName;
-
 
13910
      }
-
 
13911
    }
-
 
13912
 
-
 
13913
    // isset id assignments
-
 
13914
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
13915
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
13916
 
-
 
13917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13918
    static {
-
 
13919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13920
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
13922
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13923
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
-
 
13924
    }
-
 
13925
 
-
 
13926
    public getInventoryItemFromId_args() {
-
 
13927
    }
-
 
13928
 
-
 
13929
    public getInventoryItemFromId_args(
-
 
13930
      long inventoryItemId)
-
 
13931
    {
-
 
13932
      this();
-
 
13933
      this.inventoryItemId = inventoryItemId;
-
 
13934
      setInventoryItemIdIsSet(true);
-
 
13935
    }
-
 
13936
 
-
 
13937
    /**
-
 
13938
     * Performs a deep copy on <i>other</i>.
-
 
13939
     */
-
 
13940
    public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
-
 
13941
      __isset_bit_vector.clear();
-
 
13942
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
13943
      this.inventoryItemId = other.inventoryItemId;
-
 
13944
    }
-
 
13945
 
-
 
13946
    public getInventoryItemFromId_args deepCopy() {
-
 
13947
      return new getInventoryItemFromId_args(this);
-
 
13948
    }
-
 
13949
 
-
 
13950
    @Override
-
 
13951
    public void clear() {
-
 
13952
      setInventoryItemIdIsSet(false);
-
 
13953
      this.inventoryItemId = 0;
-
 
13954
    }
-
 
13955
 
-
 
13956
    public long getInventoryItemId() {
-
 
13957
      return this.inventoryItemId;
-
 
13958
    }
-
 
13959
 
-
 
13960
    public void setInventoryItemId(long inventoryItemId) {
-
 
13961
      this.inventoryItemId = inventoryItemId;
-
 
13962
      setInventoryItemIdIsSet(true);
-
 
13963
    }
-
 
13964
 
-
 
13965
    public void unsetInventoryItemId() {
-
 
13966
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
-
 
13967
    }
-
 
13968
 
-
 
13969
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
-
 
13970
    public boolean isSetInventoryItemId() {
-
 
13971
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
-
 
13972
    }
-
 
13973
 
-
 
13974
    public void setInventoryItemIdIsSet(boolean value) {
-
 
13975
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
-
 
13976
    }
-
 
13977
 
-
 
13978
    public void setFieldValue(_Fields field, Object value) {
-
 
13979
      switch (field) {
-
 
13980
      case INVENTORY_ITEM_ID:
-
 
13981
        if (value == null) {
-
 
13982
          unsetInventoryItemId();
-
 
13983
        } else {
-
 
13984
          setInventoryItemId((Long)value);
-
 
13985
        }
-
 
13986
        break;
-
 
13987
 
-
 
13988
      }
-
 
13989
    }
-
 
13990
 
-
 
13991
    public Object getFieldValue(_Fields field) {
-
 
13992
      switch (field) {
-
 
13993
      case INVENTORY_ITEM_ID:
-
 
13994
        return Long.valueOf(getInventoryItemId());
-
 
13995
 
-
 
13996
      }
-
 
13997
      throw new IllegalStateException();
-
 
13998
    }
-
 
13999
 
-
 
14000
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14001
    public boolean isSet(_Fields field) {
-
 
14002
      if (field == null) {
-
 
14003
        throw new IllegalArgumentException();
-
 
14004
      }
-
 
14005
 
-
 
14006
      switch (field) {
-
 
14007
      case INVENTORY_ITEM_ID:
-
 
14008
        return isSetInventoryItemId();
-
 
14009
      }
-
 
14010
      throw new IllegalStateException();
-
 
14011
    }
-
 
14012
 
-
 
14013
    @Override
-
 
14014
    public boolean equals(Object that) {
-
 
14015
      if (that == null)
-
 
14016
        return false;
-
 
14017
      if (that instanceof getInventoryItemFromId_args)
-
 
14018
        return this.equals((getInventoryItemFromId_args)that);
-
 
14019
      return false;
-
 
14020
    }
-
 
14021
 
-
 
14022
    public boolean equals(getInventoryItemFromId_args that) {
-
 
14023
      if (that == null)
-
 
14024
        return false;
-
 
14025
 
-
 
14026
      boolean this_present_inventoryItemId = true;
-
 
14027
      boolean that_present_inventoryItemId = true;
-
 
14028
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
-
 
14029
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
-
 
14030
          return false;
-
 
14031
        if (this.inventoryItemId != that.inventoryItemId)
-
 
14032
          return false;
-
 
14033
      }
-
 
14034
 
-
 
14035
      return true;
-
 
14036
    }
-
 
14037
 
-
 
14038
    @Override
-
 
14039
    public int hashCode() {
-
 
14040
      return 0;
-
 
14041
    }
-
 
14042
 
-
 
14043
    public int compareTo(getInventoryItemFromId_args other) {
-
 
14044
      if (!getClass().equals(other.getClass())) {
-
 
14045
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14046
      }
-
 
14047
 
-
 
14048
      int lastComparison = 0;
-
 
14049
      getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
-
 
14050
 
-
 
14051
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
-
 
14052
      if (lastComparison != 0) {
-
 
14053
        return lastComparison;
-
 
14054
      }
-
 
14055
      if (isSetInventoryItemId()) {
-
 
14056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
-
 
14057
        if (lastComparison != 0) {
-
 
14058
          return lastComparison;
-
 
14059
        }
-
 
14060
      }
-
 
14061
      return 0;
-
 
14062
    }
-
 
14063
 
-
 
14064
    public _Fields fieldForId(int fieldId) {
-
 
14065
      return _Fields.findByThriftId(fieldId);
-
 
14066
    }
-
 
14067
 
-
 
14068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14069
      org.apache.thrift.protocol.TField field;
-
 
14070
      iprot.readStructBegin();
-
 
14071
      while (true)
-
 
14072
      {
-
 
14073
        field = iprot.readFieldBegin();
-
 
14074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14075
          break;
-
 
14076
        }
-
 
14077
        switch (field.id) {
-
 
14078
          case 1: // INVENTORY_ITEM_ID
-
 
14079
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
14080
              this.inventoryItemId = iprot.readI64();
-
 
14081
              setInventoryItemIdIsSet(true);
-
 
14082
            } else { 
-
 
14083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14084
            }
-
 
14085
            break;
-
 
14086
          default:
-
 
14087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14088
        }
-
 
14089
        iprot.readFieldEnd();
-
 
14090
      }
-
 
14091
      iprot.readStructEnd();
-
 
14092
      validate();
-
 
14093
    }
-
 
14094
 
-
 
14095
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14096
      validate();
-
 
14097
 
-
 
14098
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14099
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
-
 
14100
      oprot.writeI64(this.inventoryItemId);
-
 
14101
      oprot.writeFieldEnd();
-
 
14102
      oprot.writeFieldStop();
-
 
14103
      oprot.writeStructEnd();
-
 
14104
    }
-
 
14105
 
-
 
14106
    @Override
-
 
14107
    public String toString() {
-
 
14108
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
-
 
14109
      boolean first = true;
-
 
14110
 
-
 
14111
      sb.append("inventoryItemId:");
-
 
14112
      sb.append(this.inventoryItemId);
-
 
14113
      first = false;
-
 
14114
      sb.append(")");
-
 
14115
      return sb.toString();
-
 
14116
    }
-
 
14117
 
-
 
14118
    public void validate() throws org.apache.thrift.TException {
-
 
14119
      // check for required fields
-
 
14120
    }
-
 
14121
 
-
 
14122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14123
      try {
-
 
14124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14125
      } catch (org.apache.thrift.TException te) {
-
 
14126
        throw new java.io.IOException(te);
-
 
14127
      }
-
 
14128
    }
-
 
14129
 
-
 
14130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14131
      try {
-
 
14132
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
14133
        __isset_bit_vector = new BitSet(1);
-
 
14134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14135
      } catch (org.apache.thrift.TException te) {
-
 
14136
        throw new java.io.IOException(te);
-
 
14137
      }
-
 
14138
    }
-
 
14139
 
-
 
14140
  }
-
 
14141
 
-
 
14142
  public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
14143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
-
 
14144
 
-
 
14145
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
14146
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
14147
 
-
 
14148
    private InventoryItem success; // required
-
 
14149
    private WarehouseServiceException wex; // required
-
 
14150
 
-
 
14151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14153
      SUCCESS((short)0, "success"),
-
 
14154
      WEX((short)1, "wex");
-
 
14155
 
-
 
14156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14157
 
-
 
14158
      static {
-
 
14159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14160
          byName.put(field.getFieldName(), field);
-
 
14161
        }
-
 
14162
      }
-
 
14163
 
-
 
14164
      /**
-
 
14165
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14166
       */
-
 
14167
      public static _Fields findByThriftId(int fieldId) {
-
 
14168
        switch(fieldId) {
-
 
14169
          case 0: // SUCCESS
-
 
14170
            return SUCCESS;
-
 
14171
          case 1: // WEX
-
 
14172
            return WEX;
-
 
14173
          default:
-
 
14174
            return null;
-
 
14175
        }
-
 
14176
      }
-
 
14177
 
-
 
14178
      /**
-
 
14179
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14180
       * if it is not found.
-
 
14181
       */
-
 
14182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14183
        _Fields fields = findByThriftId(fieldId);
-
 
14184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14185
        return fields;
-
 
14186
      }
-
 
14187
 
-
 
14188
      /**
-
 
14189
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14190
       */
-
 
14191
      public static _Fields findByName(String name) {
-
 
14192
        return byName.get(name);
-
 
14193
      }
-
 
14194
 
-
 
14195
      private final short _thriftId;
-
 
14196
      private final String _fieldName;
-
 
14197
 
-
 
14198
      _Fields(short thriftId, String fieldName) {
-
 
14199
        _thriftId = thriftId;
-
 
14200
        _fieldName = fieldName;
-
 
14201
      }
-
 
14202
 
-
 
14203
      public short getThriftFieldId() {
-
 
14204
        return _thriftId;
-
 
14205
      }
-
 
14206
 
-
 
14207
      public String getFieldName() {
-
 
14208
        return _fieldName;
-
 
14209
      }
-
 
14210
    }
-
 
14211
 
-
 
14212
    // isset id assignments
-
 
14213
 
-
 
14214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14215
    static {
-
 
14216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14217
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14218
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
14219
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
14221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
-
 
14223
    }
-
 
14224
 
-
 
14225
    public getInventoryItemFromId_result() {
-
 
14226
    }
-
 
14227
 
-
 
14228
    public getInventoryItemFromId_result(
-
 
14229
      InventoryItem success,
-
 
14230
      WarehouseServiceException wex)
-
 
14231
    {
-
 
14232
      this();
-
 
14233
      this.success = success;
-
 
14234
      this.wex = wex;
-
 
14235
    }
-
 
14236
 
-
 
14237
    /**
-
 
14238
     * Performs a deep copy on <i>other</i>.
-
 
14239
     */
-
 
14240
    public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
-
 
14241
      if (other.isSetSuccess()) {
-
 
14242
        this.success = new InventoryItem(other.success);
-
 
14243
      }
-
 
14244
      if (other.isSetWex()) {
-
 
14245
        this.wex = new WarehouseServiceException(other.wex);
-
 
14246
      }
-
 
14247
    }
-
 
14248
 
-
 
14249
    public getInventoryItemFromId_result deepCopy() {
-
 
14250
      return new getInventoryItemFromId_result(this);
-
 
14251
    }
-
 
14252
 
-
 
14253
    @Override
-
 
14254
    public void clear() {
-
 
14255
      this.success = null;
-
 
14256
      this.wex = null;
-
 
14257
    }
-
 
14258
 
-
 
14259
    public InventoryItem getSuccess() {
-
 
14260
      return this.success;
-
 
14261
    }
-
 
14262
 
-
 
14263
    public void setSuccess(InventoryItem success) {
-
 
14264
      this.success = success;
-
 
14265
    }
-
 
14266
 
-
 
14267
    public void unsetSuccess() {
-
 
14268
      this.success = null;
-
 
14269
    }
-
 
14270
 
-
 
14271
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
14272
    public boolean isSetSuccess() {
-
 
14273
      return this.success != null;
-
 
14274
    }
-
 
14275
 
-
 
14276
    public void setSuccessIsSet(boolean value) {
-
 
14277
      if (!value) {
-
 
14278
        this.success = null;
-
 
14279
      }
-
 
14280
    }
-
 
14281
 
-
 
14282
    public WarehouseServiceException getWex() {
-
 
14283
      return this.wex;
-
 
14284
    }
-
 
14285
 
-
 
14286
    public void setWex(WarehouseServiceException wex) {
-
 
14287
      this.wex = wex;
-
 
14288
    }
-
 
14289
 
-
 
14290
    public void unsetWex() {
-
 
14291
      this.wex = null;
-
 
14292
    }
-
 
14293
 
-
 
14294
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
14295
    public boolean isSetWex() {
-
 
14296
      return this.wex != null;
-
 
14297
    }
-
 
14298
 
-
 
14299
    public void setWexIsSet(boolean value) {
-
 
14300
      if (!value) {
-
 
14301
        this.wex = null;
-
 
14302
      }
-
 
14303
    }
-
 
14304
 
-
 
14305
    public void setFieldValue(_Fields field, Object value) {
-
 
14306
      switch (field) {
-
 
14307
      case SUCCESS:
-
 
14308
        if (value == null) {
-
 
14309
          unsetSuccess();
-
 
14310
        } else {
-
 
14311
          setSuccess((InventoryItem)value);
-
 
14312
        }
-
 
14313
        break;
-
 
14314
 
-
 
14315
      case WEX:
-
 
14316
        if (value == null) {
-
 
14317
          unsetWex();
-
 
14318
        } else {
-
 
14319
          setWex((WarehouseServiceException)value);
-
 
14320
        }
-
 
14321
        break;
-
 
14322
 
-
 
14323
      }
-
 
14324
    }
-
 
14325
 
-
 
14326
    public Object getFieldValue(_Fields field) {
-
 
14327
      switch (field) {
-
 
14328
      case SUCCESS:
-
 
14329
        return getSuccess();
-
 
14330
 
-
 
14331
      case WEX:
-
 
14332
        return getWex();
-
 
14333
 
-
 
14334
      }
-
 
14335
      throw new IllegalStateException();
-
 
14336
    }
-
 
14337
 
-
 
14338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14339
    public boolean isSet(_Fields field) {
-
 
14340
      if (field == null) {
-
 
14341
        throw new IllegalArgumentException();
-
 
14342
      }
-
 
14343
 
-
 
14344
      switch (field) {
-
 
14345
      case SUCCESS:
-
 
14346
        return isSetSuccess();
-
 
14347
      case WEX:
-
 
14348
        return isSetWex();
-
 
14349
      }
-
 
14350
      throw new IllegalStateException();
-
 
14351
    }
-
 
14352
 
-
 
14353
    @Override
-
 
14354
    public boolean equals(Object that) {
-
 
14355
      if (that == null)
-
 
14356
        return false;
-
 
14357
      if (that instanceof getInventoryItemFromId_result)
-
 
14358
        return this.equals((getInventoryItemFromId_result)that);
-
 
14359
      return false;
-
 
14360
    }
-
 
14361
 
-
 
14362
    public boolean equals(getInventoryItemFromId_result that) {
-
 
14363
      if (that == null)
-
 
14364
        return false;
-
 
14365
 
-
 
14366
      boolean this_present_success = true && this.isSetSuccess();
-
 
14367
      boolean that_present_success = true && that.isSetSuccess();
-
 
14368
      if (this_present_success || that_present_success) {
-
 
14369
        if (!(this_present_success && that_present_success))
-
 
14370
          return false;
-
 
14371
        if (!this.success.equals(that.success))
-
 
14372
          return false;
-
 
14373
      }
-
 
14374
 
-
 
14375
      boolean this_present_wex = true && this.isSetWex();
-
 
14376
      boolean that_present_wex = true && that.isSetWex();
-
 
14377
      if (this_present_wex || that_present_wex) {
-
 
14378
        if (!(this_present_wex && that_present_wex))
-
 
14379
          return false;
-
 
14380
        if (!this.wex.equals(that.wex))
-
 
14381
          return false;
-
 
14382
      }
-
 
14383
 
-
 
14384
      return true;
-
 
14385
    }
-
 
14386
 
-
 
14387
    @Override
-
 
14388
    public int hashCode() {
-
 
14389
      return 0;
-
 
14390
    }
-
 
14391
 
-
 
14392
    public int compareTo(getInventoryItemFromId_result other) {
-
 
14393
      if (!getClass().equals(other.getClass())) {
-
 
14394
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14395
      }
-
 
14396
 
-
 
14397
      int lastComparison = 0;
-
 
14398
      getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
-
 
14399
 
-
 
14400
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
14401
      if (lastComparison != 0) {
-
 
14402
        return lastComparison;
-
 
14403
      }
-
 
14404
      if (isSetSuccess()) {
-
 
14405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
14406
        if (lastComparison != 0) {
-
 
14407
          return lastComparison;
-
 
14408
        }
-
 
14409
      }
-
 
14410
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
14411
      if (lastComparison != 0) {
-
 
14412
        return lastComparison;
-
 
14413
      }
-
 
14414
      if (isSetWex()) {
-
 
14415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
14416
        if (lastComparison != 0) {
-
 
14417
          return lastComparison;
-
 
14418
        }
-
 
14419
      }
-
 
14420
      return 0;
-
 
14421
    }
-
 
14422
 
-
 
14423
    public _Fields fieldForId(int fieldId) {
-
 
14424
      return _Fields.findByThriftId(fieldId);
-
 
14425
    }
-
 
14426
 
-
 
14427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14428
      org.apache.thrift.protocol.TField field;
-
 
14429
      iprot.readStructBegin();
-
 
14430
      while (true)
-
 
14431
      {
-
 
14432
        field = iprot.readFieldBegin();
-
 
14433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14434
          break;
-
 
14435
        }
-
 
14436
        switch (field.id) {
-
 
14437
          case 0: // SUCCESS
-
 
14438
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
14439
              this.success = new InventoryItem();
-
 
14440
              this.success.read(iprot);
-
 
14441
            } else { 
-
 
14442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14443
            }
-
 
14444
            break;
-
 
14445
          case 1: // WEX
-
 
14446
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
14447
              this.wex = new WarehouseServiceException();
-
 
14448
              this.wex.read(iprot);
-
 
14449
            } else { 
-
 
14450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14451
            }
-
 
14452
            break;
-
 
14453
          default:
-
 
14454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14455
        }
-
 
14456
        iprot.readFieldEnd();
-
 
14457
      }
-
 
14458
      iprot.readStructEnd();
-
 
14459
      validate();
-
 
14460
    }
-
 
14461
 
-
 
14462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14463
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14464
 
-
 
14465
      if (this.isSetSuccess()) {
-
 
14466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
14467
        this.success.write(oprot);
-
 
14468
        oprot.writeFieldEnd();
-
 
14469
      } else if (this.isSetWex()) {
-
 
14470
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
14471
        this.wex.write(oprot);
-
 
14472
        oprot.writeFieldEnd();
-
 
14473
      }
-
 
14474
      oprot.writeFieldStop();
-
 
14475
      oprot.writeStructEnd();
-
 
14476
    }
-
 
14477
 
-
 
14478
    @Override
-
 
14479
    public String toString() {
-
 
14480
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
-
 
14481
      boolean first = true;
-
 
14482
 
-
 
14483
      sb.append("success:");
-
 
14484
      if (this.success == null) {
-
 
14485
        sb.append("null");
-
 
14486
      } else {
-
 
14487
        sb.append(this.success);
-
 
14488
      }
-
 
14489
      first = false;
-
 
14490
      if (!first) sb.append(", ");
-
 
14491
      sb.append("wex:");
-
 
14492
      if (this.wex == null) {
-
 
14493
        sb.append("null");
-
 
14494
      } else {
-
 
14495
        sb.append(this.wex);
-
 
14496
      }
-
 
14497
      first = false;
-
 
14498
      sb.append(")");
-
 
14499
      return sb.toString();
-
 
14500
    }
12924
 
14501
 
12925
    public void validate() throws org.apache.thrift.TException {
14502
    public void validate() throws org.apache.thrift.TException {
12926
      // check for required fields
14503
      // check for required fields
12927
    }
14504
    }
12928
 
14505